@nebula.js/stardust 5.1.2 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/esm/dev.js +490 -289
- 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 +4 -4
- package/dist/stardust.dev.js +10391 -9600
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +13 -13
- package/dist/stardust.js.map +1 -1
- package/package.json +15 -15
package/dist/stardust.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v5.
|
|
2
|
+
* @nebula.js/stardust v5.3.0
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).stardust={})}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}!function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof v?t:v,i=Object.create(a.prototype),l=new I(r||[]);return o(i,"_invoke",{value:R(e,n,l)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",m="completed",g={};function v(){}function b(){}function y(){}var x={};c(x,i,(function(){return this}));var S=Object.getPrototypeOf,w=S&&S(S(T([])));w&&w!==n&&r.call(w,i)&&(x=w);var E=y.prototype=v.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,a,i,l){var s=d(e[o],e,a);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,l)}))}l(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function R(e,n,r){var o=p;return function(a,i){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var s=L(l,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?m:f,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(e){if(null!=e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return b.prototype=y,o(E,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},C(k.prototype),c(k.prototype,l,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(u(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(E),c(E,s,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});var c={exports:{}},u={},d=Symbol.for("react.element"),p=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),v=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),w=Symbol.iterator;var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,k={};function R(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||E}function L(){}function O(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||E}R.prototype.isReactComponent={},R.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},R.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},L.prototype=R.prototype;var _=O.prototype=new L;_.constructor=O,C(_,R.prototype),_.isPureReactComponent=!0;var I=Array.isArray,T=Object.prototype.hasOwnProperty,P={current:null},M={key:!0,ref:!0,__self:!0,__source:!0};function N(e,t,n){var r,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)T.call(t,r)&&!M.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:d,type:e,key:a,ref:i,props:o,_owner:P.current}}function q(e){return"object"==typeof e&&null!==e&&e.$$typeof===d}var 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 a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var i=!1;if(null===e)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case d:case p:i=!0}}if(i)return o=o(i=e),e=""===r?"."+D(i,0):r,I(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||i&&i.key===o.key?"":(""+o.key).replace(z,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=""===r?".":r+":",I(e))for(var l=0;l<e.length;l++){var s=r+D(a=e[l],l);i+=A(a,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=w&&e[w]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(a=e.next()).done;)i+=A(a=a.value,t,n,s=r+D(a,l++),o);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function j(e,t,n){if(null==e)return e;var r=[],o=0;return 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},$={transition:null},W={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:$,ReactCurrentOwner:P};function H(){throw Error("act(...) is not supported in production builds of React.")}u.Children={map:j,forEach:function(e,t,n){j(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return j(e,(function(){t++})),t},toArray:function(e){return j(e,(function(e){return e}))||[]},only:function(e){if(!q(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},u.Component=R,u.Fragment=f,u.Profiler=m,u.PureComponent=O,u.StrictMode=h,u.Suspense=y,u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,u.act=H,u.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=C({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=P.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)T.call(t,s)&&!M.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var c=0;c<s;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:d,type:e.type,key:o,ref:a,props:r,_owner:i}},u.createContext=function(e){return(e={$$typeof:v,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:g,_context:e},e.Consumer=e},u.createElement=N,u.createFactory=function(e){var t=N.bind(null,e);return t.type=e,t},u.createRef=function(){return{current:null}},u.forwardRef=function(e){return{$$typeof:b,render:e}},u.isValidElement=q,u.lazy=function(e){return{$$typeof:S,_payload:{_status:-1,_result:e},_init:F}},u.memo=function(e,t){return{$$typeof:x,type:e,compare:void 0===t?null:t}},u.startTransition=function(e){var t=$.transition;$.transition={};try{e()}finally{$.transition=t}},u.unstable_act=H,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.3.1",c.exports=u;var U=c.exports,V=n(U),G=t({__proto__:null,default:V},[U]);const K=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={};let r=e;const o={language:e=>(e&&(r=e),r),add:e=>{const{id:t,locale:r}=e;Object.keys(r).forEach((e=>{n[e]||(n[e]={}),n[e][t]=r[e]}))},get(e,o){let a;return a=n[r]&&void 0!==n[r][e]?n[r][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const t="string"==typeof e||"number"==typeof e?[e]:e;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/\{(\d+)\}/g,((e,n)=>void 0!==t[n]?t[n]:e))}(a,o):a}};return o}({initial:e,fallback:t});return{translator:n}};var Z={Cancel:{id:"Cancel",locale:{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},CurrentSelections_All:{id:"CurrentSelections.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},CurrentSelections_Of:{id:"CurrentSelections.Of",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},Listbox_Cyclic:{id:"Listbox.Cyclic",locale:{"de-DE":"Zyklische Dimension","en-US":"Cyclic dimension","es-ES":"Dimensión cíclica","fr-FR":"Dimension cyclique","it-IT":"Dimensione ciclica","ja-JP":"サイクリック軸","ko-KR":"순환 차원","nl-NL":"Cyclische dimensie","pl-PL":"Wymiar cykliczny","pt-BR":"Dimensão cíclica","ru-RU":"Циклическое измерение","sv-SE":"Cyklisk dimension","tr-TR":"Döngüsel boyut","zh-CN":"循环维度","zh-TW":"循環維度"}},Listbox_Dismiss:{id:"Listbox.Dismiss",locale:{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},Listbox_DrillDown:{id:"Listbox.DrillDown",locale:{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"钻取维度","zh-TW":"向下探查維度"}},Listbox_ItemsOverflow:{id:"Listbox.ItemsOverflow",locale:{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},Listbox_Lock:{id:"Listbox.Lock",locale:{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},Listbox_NoMatchesForYourTerms:{id:"Listbox.NoMatchesForYourTerms",locale:{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},Listbox_ResultFilterLabel:{id:"Listbox.ResultFilterLabel",locale:{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},Listbox_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},Listbox_ScreenReader_SelectionMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},Listbox_ScreenReaderInstructions:{id:"Listbox.ScreenReaderInstructions",locale:{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L'attivazione degli elementi sottostanti causerà l'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},Listbox_Search:{id:"Listbox.Search",locale:{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},Listbox_Search_ScreenReaderInstructions:{id:"Listbox.Search.ScreenReaderInstructions",locale:{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},Listbox_Unlock:{id:"Listbox.Unlock",locale:{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},Menu_More:{id:"Menu.More",locale:{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},Navigate_Back:{id:"Navigate.Back",locale:{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},Navigate_Forward:{id:"Navigate.Forward",locale:{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},OK:{id:"OK",locale:{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},Object_Listbox_Alternative:{id:"Object.Listbox.Alternative",locale:{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},Object_Listbox_Excluded:{id:"Object.Listbox.Excluded",locale:{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},Object_Listbox_ExcludedLock:{id:"Object.Listbox.ExcludedLock",locale:{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},Object_Listbox_Locked:{id:"Object.Listbox.Locked",locale:{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},Object_Listbox_Optional:{id:"Object.Listbox.Optional",locale:{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},Object_Listbox_Selected:{id:"Object.Listbox.Selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбранные","sv-SE":"Urval","tr-TR":"Seçilen","zh-CN":"已选择","zh-TW":"已選取"}},Object_Listbox_SelectedExcluded:{id:"Object.Listbox.SelectedExcluded",locale:{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","zh-CN":"已排除选择","zh-TW":"已選取排除值"}},Object_Update_Active:{id:"Object.Update.Active",locale:{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},Object_Update_Cancelled:{id:"Object.Update.Cancelled",locale:{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},Retry:{id:"Retry",locale:{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},ScreenReader_ManySearchResults:{id:"ScreenReader.ManySearchResults",locale:{"de-DE":"Es sind {0} Ergebnisse verfügbar","en-US":"There are {0} available results","es-ES":"Hay {0} resultados disponibles","fr-FR":"Il existe {0} résultats disponibles.","it-IT":"{0} risultati disponibili","ja-JP":"利用可能な結果が {0} つあります","ko-KR":"{0}개의 결과를 사용할 수 있음","nl-NL":"Er zijn {0} beschikbare resultaten","pl-PL":"Liczba dostępnych wyników: {0}","pt-BR":"Há {0} resultados disponíveis","ru-RU":"Имеются доступные результаты: {0}","sv-SE":"Det finns {0} tillgängliga resultat","tr-TR":"Kullanılabilir {0} sonuç mevcut","zh-CN":"有 {0} 个可用结果","zh-TW":"有 {0} 個可用的結果"}},ScreenReader_ManySelected:{id:"ScreenReader.ManySelected",locale:{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},ScreenReader_OneSearchResult:{id:"ScreenReader.OneSearchResult",locale:{"de-DE":"Es ist ein Ergebnis verfügbar","en-US":"There is one available result","es-ES":"Hay un resultado disponible","fr-FR":"Il existe un résultat disponible.","it-IT":"Un risultato disponibile","ja-JP":"利用可能な結果が 1 つあります","ko-KR":"하나의 결과를 사용할 수 있음","nl-NL":"Er is één beschikbaar resultaat","pl-PL":"Jest jeden dostępny wynik","pt-BR":"Há um resultado disponível","ru-RU":"Имеется один доступный результат","sv-SE":"Det finns ett tillgängligt resultat","tr-TR":"Kullanılabilir bir sonuç mevcut","zh-CN":"有一个可用结果","zh-TW":"有一個可用的結果"}},ScreenReader_OneSelected:{id:"ScreenReader.OneSelected",locale:{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},ScreenReader_ZeroSelected:{id:"ScreenReader.ZeroSelected",locale:{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},Selection_Cancel:{id:"Selection.Cancel",locale:{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},Selection_Clear:{id:"Selection.Clear",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},Selection_ClearAll:{id:"Selection.ClearAll",locale:{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},Selection_ClearAllStates:{id:"Selection.ClearAllStates",locale:{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},Selection_Confirm:{id:"Selection.Confirm",locale:{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},Selection_Menu:{id:"Selection.Menu",locale:{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":'Меню "Выборка"',"sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},Selection_SelectAll:{id:"Selection.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},Selection_SelectAlternative:{id:"Selection.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},Selection_SelectExcluded:{id:"Selection.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},Selection_SelectPossible:{id:"Selection.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SelectionToolbar_ClickToLock:{id:"SelectionToolbar.ClickToLock",locale:{"de-DE":"Klicken zum Sperren","en-US":"Click to lock","es-ES":"Haga clic para bloquearla","fr-FR":"Cliquez pour verrouiller","it-IT":"Fare clic per bloccare","ja-JP":"クリックしてロック","ko-KR":"클릭하여 잠금","nl-NL":"Klik om te vergrendelen","pl-PL":"Kliknij, aby zablokować","pt-BR":"Clique para bloquear","ru-RU":"Щелкните, чтобы заблокировать","sv-SE":"Klicka för att låsa","tr-TR":"Kilitlemek için tıklayın","zh-CN":"单击以锁定","zh-TW":"按一下以鎖定"}},SelectionToolbar_ClickToUnlock:{id:"SelectionToolbar.ClickToUnlock",locale:{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},Visualization_Incomplete:{id:"Visualization.Incomplete",locale:{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},Visualization_Incomplete_Dimensions:{id:"Visualization.Incomplete.Dimensions",locale:{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},Visualization_Incomplete_Measures:{id:"Visualization.Incomplete.Measures",locale:{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},Visualization_Invalid_Dimension:{id:"Visualization.Invalid.Dimension",locale:{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},Visualization_Invalid_Measure:{id:"Visualization.Invalid.Measure",locale:{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},Visualization_LayoutError:{id:"Visualization.LayoutError",locale:{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},Visualization_UnfulfilledCalculationCondition:{id:"Visualization.UnfulfilledCalculationCondition",locale:{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}};function X(e){const t=K({initial:e});return Object.keys(Z).forEach((e=>{t.translator.add(Z[e])})),{translator:t.translator}}var Q={};function J(){J.init.call(this)}Q.isObject=function(e){return"object"==typeof e&&null!==e},Q.isNumber=function(e){return"number"==typeof e},Q.isUndefined=function(e){return void 0===e},Q.isFunction=function(e){return"function"==typeof e};var Y=J;J.EventEmitter=J,J.prototype._events=void 0,J.prototype._maxListeners=void 0,J.defaultMaxListeners=10,J.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},J.prototype.setMaxListeners=function(e){if(!Q.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},J.prototype.emit=function(e){var t,n,r,o,a,i;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],Q.isUndefined(n))return!1;if(Q.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),a=1;a<r;a++)o[a-1]=arguments[a];n.apply(this,o)}else if(Q.isObject(n)){for(r=arguments.length,o=new Array(r-1),a=1;a<r;a++)o[a-1]=arguments[a];for(r=(i=n.slice()).length,a=0;a<r;a++)i[a].apply(this,o)}return!0},J.prototype.addListener=function(e,t){var n;if(!Q.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Q.isFunction(t.listener)?t.listener:t),this._events[e]?Q.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Q.isObject(this._events[e])&&!this._events[e].warned)&&((n=Q.isUndefined(this._maxListeners)?J.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Q.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),Q.isFunction(console.trace)&&console.trace()));return this},J.prototype.on=J.prototype.addListener,J.prototype.once=function(e,t){if(!Q.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},J.prototype.removeListener=function(e,t){var n,r,o,a;if(!Q.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||Q.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Q.isObject(n)){for(a=o;a-- >0;)if(n[a]===t||n[a].listener&&n[a].listener===t){r=a;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},J.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],Q.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},J.prototype.listeners=function(e){return this._events&&this._events[e]?Q.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},J.listenerCount=function(e,t){return e._events&&e._events[t]?Q.isFunction(e._events[t])?1:e._events[t].length:0};var ee=n(Y);function te(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ne(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function re(){}var oe=.7,ae=1/oe,ie="\\s*([+-]?\\d+)\\s*",le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",se="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ce=/^#([0-9a-f]{3,8})$/,ue=new RegExp(`^rgb\\(${ie},${ie},${ie}\\)$`),de=new RegExp(`^rgb\\(${se},${se},${se}\\)$`),pe=new RegExp(`^rgba\\(${ie},${ie},${ie},${le}\\)$`),fe=new RegExp(`^rgba\\(${se},${se},${se},${le}\\)$`),he=new RegExp(`^hsl\\(${le},${se},${se}\\)$`),me=new RegExp(`^hsla\\(${le},${se},${se},${le}\\)$`),ge={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ve(){return this.rgb().formatHex()}function be(){return this.rgb().formatRgb()}function ye(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ce.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?xe(t):3===n?new Ee(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Se(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Se(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ue.exec(e))?new Ee(t[1],t[2],t[3],1):(t=de.exec(e))?new Ee(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=pe.exec(e))?Se(t[1],t[2],t[3],t[4]):(t=fe.exec(e))?Se(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=he.exec(e))?_e(t[1],t[2]/100,t[3]/100,1):(t=me.exec(e))?_e(t[1],t[2]/100,t[3]/100,t[4]):ge.hasOwnProperty(e)?xe(ge[e]):"transparent"===e?new Ee(NaN,NaN,NaN,0):null}function xe(e){return new Ee(e>>16&255,e>>8&255,255&e,1)}function Se(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ee(e,t,n,r)}function we(e,t,n,r){return 1===arguments.length?((o=e)instanceof re||(o=ye(o)),o?new Ee((o=o.rgb()).r,o.g,o.b,o.opacity):new Ee):new Ee(e,t,n,null==r?1:r);var o}function Ee(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ce(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}`}function ke(){const e=Re(this.opacity);return`${1===e?"rgb(":"rgba("}${Le(this.r)}, ${Le(this.g)}, ${Le(this.b)}${1===e?")":`, ${e})`}`}function Re(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Le(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oe(e){return((e=Le(e))<16?"0":"")+e.toString(16)}function _e(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Te(e,t,n,r)}function Ie(e){if(e instanceof Te)return new Te(e.h,e.s,e.l,e.opacity);if(e instanceof re||(e=ye(e)),!e)return new Te;if(e instanceof Te)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,l=a-o,s=(a+o)/2;return l?(i=t===a?(n-r)/l+6*(n<r):n===a?(r-t)/l+2:(t-n)/l+4,l/=s<.5?a+o:2-a-o,i*=60):l=s>0&&s<1?0:i,new Te(i,l,s,e.opacity)}function Te(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Pe(e){return(e=(e||0)%360)<0?e+360:e}function Me(e){return Math.max(0,Math.min(1,e||0))}function Ne(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}te(re,ye,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ve,formatHex:ve,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ie(this).formatHsl()},formatRgb:be,toString:be}),te(Ee,we,ne(re,{brighter(e){return e=null==e?ae:Math.pow(ae,e),new Ee(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?oe:Math.pow(oe,e),new Ee(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ee(Le(this.r),Le(this.g),Le(this.b),Re(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ce,formatHex:Ce,formatHex8:function(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}${Oe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ke,toString:ke})),te(Te,(function(e,t,n,r){return 1===arguments.length?Ie(e):new Te(e,t,n,null==r?1:r)}),ne(re,{brighter(e){return e=null==e?ae:Math.pow(ae,e),new Te(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?oe:Math.pow(oe,e),new Te(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Ee(Ne(e>=240?e-240:e+120,o,r),Ne(e,o,r),Ne(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Te(Pe(this.h),Me(this.s),Me(this.l),Re(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Re(this.opacity);return`${1===e?"hsl(":"hsla("}${Pe(this.h)}, ${100*Me(this.s)}%, ${100*Me(this.l)}%${1===e?")":`, ${e})`}`}}));var qe=Object.prototype.hasOwnProperty,ze=Object.prototype.toString,De=Object.defineProperty,Ae=Object.getOwnPropertyDescriptor,je=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ze.call(e)},Fe=function(e){if(!e||"[object Object]"!==ze.call(e))return!1;var t,n=qe.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&qe.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||qe.call(e,t)},Be=function(e,t){De&&"__proto__"===t.name?De(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(!qe.call(e,t))return;if(Ae)return Ae(e,t).value}return e[t]},We=function e(){var t,n,r,o,a,i,l=arguments[0],s=1,c=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<c;++s)if(null!=(t=arguments[s]))for(n in t)r=$e(l,n),l!==(o=$e(t,n))&&(u&&o&&(Fe(o)||(a=je(o)))?(a?(a=!1,i=r&&je(r)?r:[]):i=r&&Fe(r)?r:{},Be(l,{name:n,newValue:e(u,i,o)})):void 0!==o&&Be(l,{name:n,newValue:o}));return l},He=n(We),Ue={fontSize:"12px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},object:{title:{main:{color:"@B50",fontSize:"15px"},subTitle:{color:"@B50",fontSize:"12px"},footer:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"}}},scales:[{name:"Sequential Gradient",translation:"properties.colorScheme.sequential",type:"gradient",propertyValue:"sg",scale:["#26a0a7","#c7ea8b"]},{name:"Sequential Classes",translation:"properties.colorScheme.sequentialC",propertyValue:"sc",type:"class",scale:["#26a0a7","#c7ea8b"]},{name:"Diverging gradient",translation:"properties.colorScheme.diverging",propertyValue:"dg",type:"gradient",scale:["#26a0a7","#c3ea8c","#ec983d"]},{name:"Diverging Classes",translation:"properties.colorScheme.divergingC",propertyValue:"dc",type:"class",scale:["#26a0a7","#c3ea8c","#ec983d"]}],palettes:{data:[{name:"12 Colors",translation:"properties.colorNumberOfColors.12",propertyValue:"12",type:"pyramid",scale:[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],ui:[{name:"Palette",colors:["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}},Ve={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"light",color:"@B35"},Ge={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"dark",color:"@B98",object:{listBox:{backgroundColor:"@B20",title:{main:{color:"@B98",fontSize:"14px",fontWeight:"bold"}},content:{color:"#@B98",fontSize:"12px"}}}},Ke={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};class Ze{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=ye(e)}addColorPart(e,t,n){n=n||0,this.startLevel=Math.max(n,this.startLevel),this.colorParts[n]||(this.colorParts[n]=[]),this.colorParts[n].push([ye(e),ye(t)])}getColor(e,t){const n=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+n))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const r=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(r);o=o===r?o-1:o;const a=this.colorParts[t][o],i=a[0],l=a[1];if(e===this.min)return l;if(e===this.max)return i;const s=function(e,t,n){return we(Math.floor(e.r+(t.r-e.r)*n),Math.floor(e.g+(t.g-e.g)*n),Math.floor(e.b+(t.b-e.b)*n),Math.floor(e.opacity+(t.opacity-e.opacity)*n))}(i,l,r-o);return s}}function Xe(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Qe(e,t,n){const r=[],o=new Ze(t);r.push(e[0]),n||r.push(e[0]);let a=1;for(;a<e.length-1;a++)r.push(e[a]),r.push(e[a]);r.push(e[a]),n||r.push(e[a]);for(let e=0;e<r.length;e+=2)o.addColorPart(r[e],r[e+1]);return o}function Je(e,t,n){const r=[];for(let o=0;o<t+1;o++){let a;switch(t){case 0:a=e.getColor(.5);break;default:{const r=Xe(1/t*o,t,n);a=e.getColor(r);break}}r.push(ye(a).formatHex())}return r}function Ye(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=Qe(e,n,!0),o=Qe(Je(r,t-1,t),n,!1),a=[null];for(let e=0;e<t;e++)a.push(Je(o,e,t));return a}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function et(e,t){const n=[];let r,o;if(e){let a=e.length;for(;a>=0;){for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat(e)),r.pop(),o--;e.pop(),a--}}else for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat()),r.pop(),o--;return n}function tt(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 nt(e,t,n,r){let o;if(""===e)o=et(null,n);else{o=et(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=tt(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function rt(e,t){const n=e.split(".");return{getStyle:(e,r)=>nt(e,r,n.concat(),t)}}function ot(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?ot(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function at(e){const t=ye(e).rgb(),{r:n,g:r,b:o}=t,[a,i,l]=[n,r,o].map((e=>e/255)),[s,c,u]=[a,i,l].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*s+.7152*c+.0722*u).toFixed(5)}rt.resolveRawTheme=e=>{const t=He(!0,{},e);return ot(t,t._variables),t.scales&&Ye(t.scales,t.dataColors&&t.dataColors.nullColor),t};const it=1e3;function lt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(at);return{getBestContrastColor(o){if(!t[o]){n>it&&(t={},n=0);const a=at(o),i=r.map((e=>{return t=a,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),l=e[i.indexOf(Math.max(...i))];t[o]=l,n++}return t[o]}}}function st(){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]=rt(t,e)),r[t].getStyle(n,o)),validateColor(){const e=arguments.length<=0?void 0:arguments[0];let t;if("string"==typeof e&&(t=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))){const e=parseInt(t[1],10)/255,n=parseInt(t[2],10),r=parseInt(t[3],10),o=parseInt(t[4],10);return"rgba(".concat(n,",").concat(r,",").concat(o,",").concat(e,")")}const n=ye(...arguments);return n?n.toString():void 0}},a={setTheme(a,i){e=function(e,t){const n="dark"===e.type?Ge:Ve;let r=Ke;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=He(!0,{},Ue,r,n),a=He(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return a.palettes.data&&a.palettes.data.length||(a.palettes.data=o.palettes.data),a.palettes.ui&&a.palettes.ui.length||(a.palettes.ui=o.palettes.ui),a.scales&&a.scales.length||(a.scales=o.scales),t(a)}(a,rt.resolveRawTheme),r={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})})),t},dataPalettes(){const t=[];return e.palettes.data.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})})),t},uiPalettes(){const t=[];return e.palettes.ui.forEach((e=>{t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:e.colors})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e,n){const r="number"==typeof(null==e?void 0:e.index)&&!Number.isNaN(null==e?void 0:e.index),o="string"==typeof(null==e?void 0:e.color);if(r||o)return n=!!n,(null==e?void 0:e.index)<0||void 0===(null==e?void 0:e.index)?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index-n]?e.color:t.colors[e.index-n]:e.color)}}}(e);const l=o.getStyle("","","color"),s=at(l);n=lt([l,s<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>i}};return Object.keys(ee.prototype).forEach((e=>{o[e]=ee.prototype[e]})),ee.init(o),a.setTheme({},"light"),{externalAPI:o,internalAPI:a}}const ct=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),ut=5e3;function dt(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 pt={},ft={exports:{}},ht={},mt={exports:{}},gt={};
|
|
7
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).stardust={})}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}!function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof v?t:v,i=Object.create(a.prototype),l=new I(r||[]);return o(i,"_invoke",{value:R(e,n,l)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",m="completed",g={};function v(){}function b(){}function y(){}var x={};c(x,i,(function(){return this}));var S=Object.getPrototypeOf,w=S&&S(S(T([])));w&&w!==n&&r.call(w,i)&&(x=w);var E=y.prototype=v.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,a,i,l){var s=d(e[o],e,a);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,l)}))}l(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function R(e,n,r){var o=p;return function(a,i){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var s=L(l,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?m:f,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(e){if(null!=e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return b.prototype=y,o(E,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},C(k.prototype),c(k.prototype,l,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(u(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(E),c(E,s,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});var c={exports:{}},u={},d=Symbol.for("react.element"),p=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),v=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),w=Symbol.iterator;var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,k={};function R(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||E}function L(){}function O(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||E}R.prototype.isReactComponent={},R.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},R.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},L.prototype=R.prototype;var _=O.prototype=new L;_.constructor=O,C(_,R.prototype),_.isPureReactComponent=!0;var I=Array.isArray,T=Object.prototype.hasOwnProperty,P={current:null},M={key:!0,ref:!0,__self:!0,__source:!0};function N(e,t,n){var r,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)T.call(t,r)&&!M.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:d,type:e,key:a,ref:i,props:o,_owner:P.current}}function q(e){return"object"==typeof e&&null!==e&&e.$$typeof===d}var A=/\/+/g;function z(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function D(e,t,n,r,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var i=!1;if(null===e)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case d:case p:i=!0}}if(i)return o=o(i=e),e=""===r?"."+z(i,0):r,I(o)?(n="",null!=e&&(n=e.replace(A,"$&/")+"/"),D(o,t,n,"",(function(e){return e}))):null!=o&&(q(o)&&(o=function(e,t){return{$$typeof:d,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(A,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=""===r?".":r+":",I(e))for(var l=0;l<e.length;l++){var s=r+z(a=e[l],l);i+=D(a,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=w&&e[w]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(a=e.next()).done;)i+=D(a=a.value,t,n,s=r+z(a,l++),o);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function j(e,t,n){if(null==e)return e;var r=[],o=0;return D(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function F(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var $={current:null},B={transition:null},W={ReactCurrentDispatcher:$,ReactCurrentBatchConfig:B,ReactCurrentOwner:P};function H(){throw Error("act(...) is not supported in production builds of React.")}u.Children={map:j,forEach:function(e,t,n){j(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return j(e,(function(){t++})),t},toArray:function(e){return j(e,(function(e){return e}))||[]},only:function(e){if(!q(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},u.Component=R,u.Fragment=f,u.Profiler=m,u.PureComponent=O,u.StrictMode=h,u.Suspense=y,u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,u.act=H,u.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=C({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=P.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)T.call(t,s)&&!M.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var c=0;c<s;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:d,type:e.type,key:o,ref:a,props:r,_owner:i}},u.createContext=function(e){return(e={$$typeof:v,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:g,_context:e},e.Consumer=e},u.createElement=N,u.createFactory=function(e){var t=N.bind(null,e);return t.type=e,t},u.createRef=function(){return{current:null}},u.forwardRef=function(e){return{$$typeof:b,render:e}},u.isValidElement=q,u.lazy=function(e){return{$$typeof:S,_payload:{_status:-1,_result:e},_init:F}},u.memo=function(e,t){return{$$typeof:x,type:e,compare:void 0===t?null:t}},u.startTransition=function(e){var t=B.transition;B.transition={};try{e()}finally{B.transition=t}},u.unstable_act=H,u.useCallback=function(e,t){return $.current.useCallback(e,t)},u.useContext=function(e){return $.current.useContext(e)},u.useDebugValue=function(){},u.useDeferredValue=function(e){return $.current.useDeferredValue(e)},u.useEffect=function(e,t){return $.current.useEffect(e,t)},u.useId=function(){return $.current.useId()},u.useImperativeHandle=function(e,t,n){return $.current.useImperativeHandle(e,t,n)},u.useInsertionEffect=function(e,t){return $.current.useInsertionEffect(e,t)},u.useLayoutEffect=function(e,t){return $.current.useLayoutEffect(e,t)},u.useMemo=function(e,t){return $.current.useMemo(e,t)},u.useReducer=function(e,t,n){return $.current.useReducer(e,t,n)},u.useRef=function(e){return $.current.useRef(e)},u.useState=function(e){return $.current.useState(e)},u.useSyncExternalStore=function(e,t,n){return $.current.useSyncExternalStore(e,t,n)},u.useTransition=function(){return $.current.useTransition()},u.version="18.3.1",c.exports=u;var U=c.exports,V=n(U),G=t({__proto__:null,default:V},[U]);const K=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={};let r=e;const o={language:e=>(e&&(r=e),r),add:e=>{const{id:t,locale:r}=e;Object.keys(r).forEach((e=>{n[e]||(n[e]={}),n[e][t]=r[e]}))},get(e,o){let a;return a=n[r]&&void 0!==n[r][e]?n[r][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const t="string"==typeof e||"number"==typeof e?[e]:e;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/\{(\d+)\}/g,((e,n)=>void 0!==t[n]?t[n]:e))}(a,o):a}};return o}({initial:e,fallback:t});return{translator:n}};var Z={Cancel:{id:"Cancel",locale:{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},CurrentSelections_All:{id:"CurrentSelections.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},CurrentSelections_Of:{id:"CurrentSelections.Of",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},Listbox_Cyclic:{id:"Listbox.Cyclic",locale:{"de-DE":"Zyklische Dimension","en-US":"Cyclic dimension","es-ES":"Dimensión cíclica","fr-FR":"Dimension cyclique","it-IT":"Dimensione ciclica","ja-JP":"サイクリック軸","ko-KR":"순환 차원","nl-NL":"Cyclische dimensie","pl-PL":"Wymiar cykliczny","pt-BR":"Dimensão cíclica","ru-RU":"Циклическое измерение","sv-SE":"Cyklisk dimension","tr-TR":"Döngüsel boyut","zh-CN":"循环维度","zh-TW":"循環維度"}},Listbox_Dismiss:{id:"Listbox.Dismiss",locale:{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},Listbox_DrillDown:{id:"Listbox.DrillDown",locale:{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"钻取维度","zh-TW":"向下探查維度"}},Listbox_ItemsOverflow:{id:"Listbox.ItemsOverflow",locale:{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},Listbox_Lock:{id:"Listbox.Lock",locale:{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},Listbox_NoMatchesForYourTerms:{id:"Listbox.NoMatchesForYourTerms",locale:{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},Listbox_ResultFilterLabel:{id:"Listbox.ResultFilterLabel",locale:{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},Listbox_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},Listbox_ScreenReader_SelectionMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},Listbox_ScreenReaderInstructions:{id:"Listbox.ScreenReaderInstructions",locale:{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L'attivazione degli elementi sottostanti causerà l'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},Listbox_Search:{id:"Listbox.Search",locale:{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},Listbox_Search_ScreenReaderInstructions:{id:"Listbox.Search.ScreenReaderInstructions",locale:{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},Listbox_Unlock:{id:"Listbox.Unlock",locale:{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},Menu_More:{id:"Menu.More",locale:{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},Navigate_Back:{id:"Navigate.Back",locale:{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},Navigate_Forward:{id:"Navigate.Forward",locale:{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},OK:{id:"OK",locale:{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},Object_Listbox_Alternative:{id:"Object.Listbox.Alternative",locale:{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},Object_Listbox_Excluded:{id:"Object.Listbox.Excluded",locale:{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},Object_Listbox_ExcludedLock:{id:"Object.Listbox.ExcludedLock",locale:{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},Object_Listbox_Locked:{id:"Object.Listbox.Locked",locale:{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},Object_Listbox_Optional:{id:"Object.Listbox.Optional",locale:{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},Object_Listbox_Selected:{id:"Object.Listbox.Selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбранные","sv-SE":"Urval","tr-TR":"Seçilen","zh-CN":"已选择","zh-TW":"已選取"}},Object_Listbox_SelectedExcluded:{id:"Object.Listbox.SelectedExcluded",locale:{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","zh-CN":"已排除选择","zh-TW":"已選取排除值"}},Object_Update_Active:{id:"Object.Update.Active",locale:{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},Object_Update_Cancelled:{id:"Object.Update.Cancelled",locale:{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},Retry:{id:"Retry",locale:{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},ScreenReader_ManySearchResults:{id:"ScreenReader.ManySearchResults",locale:{"de-DE":"Es sind {0} Ergebnisse verfügbar","en-US":"There are {0} available results","es-ES":"Hay {0} resultados disponibles","fr-FR":"Il existe {0} résultats disponibles.","it-IT":"{0} risultati disponibili","ja-JP":"利用可能な結果が {0} つあります","ko-KR":"{0}개의 결과를 사용할 수 있음","nl-NL":"Er zijn {0} beschikbare resultaten","pl-PL":"Liczba dostępnych wyników: {0}","pt-BR":"Há {0} resultados disponíveis","ru-RU":"Имеются доступные результаты: {0}","sv-SE":"Det finns {0} tillgängliga resultat","tr-TR":"Kullanılabilir {0} sonuç mevcut","zh-CN":"有 {0} 个可用结果","zh-TW":"有 {0} 個可用的結果"}},ScreenReader_ManySelected:{id:"ScreenReader.ManySelected",locale:{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},ScreenReader_OneSearchResult:{id:"ScreenReader.OneSearchResult",locale:{"de-DE":"Es ist ein Ergebnis verfügbar","en-US":"There is one available result","es-ES":"Hay un resultado disponible","fr-FR":"Il existe un résultat disponible.","it-IT":"Un risultato disponibile","ja-JP":"利用可能な結果が 1 つあります","ko-KR":"하나의 결과를 사용할 수 있음","nl-NL":"Er is één beschikbaar resultaat","pl-PL":"Jest jeden dostępny wynik","pt-BR":"Há um resultado disponível","ru-RU":"Имеется один доступный результат","sv-SE":"Det finns ett tillgängligt resultat","tr-TR":"Kullanılabilir bir sonuç mevcut","zh-CN":"有一个可用结果","zh-TW":"有一個可用的結果"}},ScreenReader_OneSelected:{id:"ScreenReader.OneSelected",locale:{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},ScreenReader_ZeroSelected:{id:"ScreenReader.ZeroSelected",locale:{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},Selection_Cancel:{id:"Selection.Cancel",locale:{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},Selection_Clear:{id:"Selection.Clear",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},Selection_ClearAll:{id:"Selection.ClearAll",locale:{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},Selection_ClearAllStates:{id:"Selection.ClearAllStates",locale:{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},Selection_Confirm:{id:"Selection.Confirm",locale:{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},Selection_Menu:{id:"Selection.Menu",locale:{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":'Меню "Выборка"',"sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},Selection_SelectAll:{id:"Selection.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},Selection_SelectAlternative:{id:"Selection.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},Selection_SelectExcluded:{id:"Selection.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},Selection_SelectPossible:{id:"Selection.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SelectionToolbar_ClickToLock:{id:"SelectionToolbar.ClickToLock",locale:{"de-DE":"Klicken zum Sperren","en-US":"Click to lock","es-ES":"Haga clic para bloquearla","fr-FR":"Cliquez pour verrouiller","it-IT":"Fare clic per bloccare","ja-JP":"クリックしてロック","ko-KR":"클릭하여 잠금","nl-NL":"Klik om te vergrendelen","pl-PL":"Kliknij, aby zablokować","pt-BR":"Clique para bloquear","ru-RU":"Щелкните, чтобы заблокировать","sv-SE":"Klicka för att låsa","tr-TR":"Kilitlemek için tıklayın","zh-CN":"单击以锁定","zh-TW":"按一下以鎖定"}},SelectionToolbar_ClickToUnlock:{id:"SelectionToolbar.ClickToUnlock",locale:{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},Visualization_Incomplete:{id:"Visualization.Incomplete",locale:{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},Visualization_Incomplete_Dimensions:{id:"Visualization.Incomplete.Dimensions",locale:{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},Visualization_Incomplete_Measures:{id:"Visualization.Incomplete.Measures",locale:{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},Visualization_Invalid_Dimension:{id:"Visualization.Invalid.Dimension",locale:{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},Visualization_Invalid_Measure:{id:"Visualization.Invalid.Measure",locale:{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},Visualization_LayoutError:{id:"Visualization.LayoutError",locale:{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},Visualization_UnfulfilledCalculationCondition:{id:"Visualization.UnfulfilledCalculationCondition",locale:{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}},Listbox_Clear_Search:{id:"Listbox.Clear.Search",locale:{"en-US":"Clear search"}}};function X(e){const t=K({initial:e});return Object.keys(Z).forEach((e=>{t.translator.add(Z[e])})),{translator:t.translator}}var Q={};function J(){J.init.call(this)}Q.isObject=function(e){return"object"==typeof e&&null!==e},Q.isNumber=function(e){return"number"==typeof e},Q.isUndefined=function(e){return void 0===e},Q.isFunction=function(e){return"function"==typeof e};var Y=J;J.EventEmitter=J,J.prototype._events=void 0,J.prototype._maxListeners=void 0,J.defaultMaxListeners=10,J.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},J.prototype.setMaxListeners=function(e){if(!Q.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},J.prototype.emit=function(e){var t,n,r,o,a,i;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],Q.isUndefined(n))return!1;if(Q.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),a=1;a<r;a++)o[a-1]=arguments[a];n.apply(this,o)}else if(Q.isObject(n)){for(r=arguments.length,o=new Array(r-1),a=1;a<r;a++)o[a-1]=arguments[a];for(r=(i=n.slice()).length,a=0;a<r;a++)i[a].apply(this,o)}return!0},J.prototype.addListener=function(e,t){var n;if(!Q.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Q.isFunction(t.listener)?t.listener:t),this._events[e]?Q.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Q.isObject(this._events[e])&&!this._events[e].warned)&&((n=Q.isUndefined(this._maxListeners)?J.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Q.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),Q.isFunction(console.trace)&&console.trace()));return this},J.prototype.on=J.prototype.addListener,J.prototype.once=function(e,t){if(!Q.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},J.prototype.removeListener=function(e,t){var n,r,o,a;if(!Q.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||Q.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Q.isObject(n)){for(a=o;a-- >0;)if(n[a]===t||n[a].listener&&n[a].listener===t){r=a;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},J.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],Q.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},J.prototype.listeners=function(e){return this._events&&this._events[e]?Q.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},J.listenerCount=function(e,t){return e._events&&e._events[t]?Q.isFunction(e._events[t])?1:e._events[t].length:0};var ee=n(Y);function te(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ne(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function re(){}var oe=.7,ae=1/oe,ie="\\s*([+-]?\\d+)\\s*",le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",se="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ce=/^#([0-9a-f]{3,8})$/,ue=new RegExp(`^rgb\\(${ie},${ie},${ie}\\)$`),de=new RegExp(`^rgb\\(${se},${se},${se}\\)$`),pe=new RegExp(`^rgba\\(${ie},${ie},${ie},${le}\\)$`),fe=new RegExp(`^rgba\\(${se},${se},${se},${le}\\)$`),he=new RegExp(`^hsl\\(${le},${se},${se}\\)$`),me=new RegExp(`^hsla\\(${le},${se},${se},${le}\\)$`),ge={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ve(){return this.rgb().formatHex()}function be(){return this.rgb().formatRgb()}function ye(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ce.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?xe(t):3===n?new Ee(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Se(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Se(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ue.exec(e))?new Ee(t[1],t[2],t[3],1):(t=de.exec(e))?new Ee(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=pe.exec(e))?Se(t[1],t[2],t[3],t[4]):(t=fe.exec(e))?Se(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=he.exec(e))?_e(t[1],t[2]/100,t[3]/100,1):(t=me.exec(e))?_e(t[1],t[2]/100,t[3]/100,t[4]):ge.hasOwnProperty(e)?xe(ge[e]):"transparent"===e?new Ee(NaN,NaN,NaN,0):null}function xe(e){return new Ee(e>>16&255,e>>8&255,255&e,1)}function Se(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ee(e,t,n,r)}function we(e,t,n,r){return 1===arguments.length?((o=e)instanceof re||(o=ye(o)),o?new Ee((o=o.rgb()).r,o.g,o.b,o.opacity):new Ee):new Ee(e,t,n,null==r?1:r);var o}function Ee(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ce(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}`}function ke(){const e=Re(this.opacity);return`${1===e?"rgb(":"rgba("}${Le(this.r)}, ${Le(this.g)}, ${Le(this.b)}${1===e?")":`, ${e})`}`}function Re(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Le(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oe(e){return((e=Le(e))<16?"0":"")+e.toString(16)}function _e(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Te(e,t,n,r)}function Ie(e){if(e instanceof Te)return new Te(e.h,e.s,e.l,e.opacity);if(e instanceof re||(e=ye(e)),!e)return new Te;if(e instanceof Te)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,l=a-o,s=(a+o)/2;return l?(i=t===a?(n-r)/l+6*(n<r):n===a?(r-t)/l+2:(t-n)/l+4,l/=s<.5?a+o:2-a-o,i*=60):l=s>0&&s<1?0:i,new Te(i,l,s,e.opacity)}function Te(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Pe(e){return(e=(e||0)%360)<0?e+360:e}function Me(e){return Math.max(0,Math.min(1,e||0))}function Ne(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}te(re,ye,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ve,formatHex:ve,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ie(this).formatHsl()},formatRgb:be,toString:be}),te(Ee,we,ne(re,{brighter(e){return e=null==e?ae:Math.pow(ae,e),new Ee(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?oe:Math.pow(oe,e),new Ee(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ee(Le(this.r),Le(this.g),Le(this.b),Re(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ce,formatHex:Ce,formatHex8:function(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}${Oe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ke,toString:ke})),te(Te,(function(e,t,n,r){return 1===arguments.length?Ie(e):new Te(e,t,n,null==r?1:r)}),ne(re,{brighter(e){return e=null==e?ae:Math.pow(ae,e),new Te(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?oe:Math.pow(oe,e),new Te(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Ee(Ne(e>=240?e-240:e+120,o,r),Ne(e,o,r),Ne(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Te(Pe(this.h),Me(this.s),Me(this.l),Re(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Re(this.opacity);return`${1===e?"hsl(":"hsla("}${Pe(this.h)}, ${100*Me(this.s)}%, ${100*Me(this.l)}%${1===e?")":`, ${e})`}`}}));var qe=Object.prototype.hasOwnProperty,Ae=Object.prototype.toString,ze=Object.defineProperty,De=Object.getOwnPropertyDescriptor,je=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Ae.call(e)},Fe=function(e){if(!e||"[object Object]"!==Ae.call(e))return!1;var t,n=qe.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&qe.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||qe.call(e,t)},$e=function(e,t){ze&&"__proto__"===t.name?ze(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Be=function(e,t){if("__proto__"===t){if(!qe.call(e,t))return;if(De)return De(e,t).value}return e[t]},We=function e(){var t,n,r,o,a,i,l=arguments[0],s=1,c=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<c;++s)if(null!=(t=arguments[s]))for(n in t)r=Be(l,n),l!==(o=Be(t,n))&&(u&&o&&(Fe(o)||(a=je(o)))?(a?(a=!1,i=r&&je(r)?r:[]):i=r&&Fe(r)?r:{},$e(l,{name:n,newValue:e(u,i,o)})):void 0!==o&&$e(l,{name:n,newValue:o}));return l},He=n(We),Ue={fontSize:"12px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},object:{title:{main:{color:"@B50",fontSize:"15px"},subTitle:{color:"@B50",fontSize:"12px"},footer:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"}}},scales:[{name:"Sequential Gradient",translation:"properties.colorScheme.sequential",type:"gradient",propertyValue:"sg",scale:["#26a0a7","#c7ea8b"]},{name:"Sequential Classes",translation:"properties.colorScheme.sequentialC",propertyValue:"sc",type:"class",scale:["#26a0a7","#c7ea8b"]},{name:"Diverging gradient",translation:"properties.colorScheme.diverging",propertyValue:"dg",type:"gradient",scale:["#26a0a7","#c3ea8c","#ec983d"]},{name:"Diverging Classes",translation:"properties.colorScheme.divergingC",propertyValue:"dc",type:"class",scale:["#26a0a7","#c3ea8c","#ec983d"]}],palettes:{data:[{name:"12 Colors",translation:"properties.colorNumberOfColors.12",propertyValue:"12",type:"pyramid",scale:[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],ui:[{name:"Palette",colors:["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}},Ve={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"light",color:"@B35"},Ge={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"dark",color:"@B98",object:{listBox:{backgroundColor:"@B20",title:{main:{color:"@B98",fontSize:"14px",fontWeight:"bold"}},content:{color:"#@B98",fontSize:"12px"}}}},Ke={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};class Ze{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=ye(e)}addColorPart(e,t,n){n=n||0,this.startLevel=Math.max(n,this.startLevel),this.colorParts[n]||(this.colorParts[n]=[]),this.colorParts[n].push([ye(e),ye(t)])}getColor(e,t){const n=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+n))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const r=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(r);o=o===r?o-1:o;const a=this.colorParts[t][o],i=a[0],l=a[1];if(e===this.min)return l;if(e===this.max)return i;const s=function(e,t,n){return we(Math.floor(e.r+(t.r-e.r)*n),Math.floor(e.g+(t.g-e.g)*n),Math.floor(e.b+(t.b-e.b)*n),Math.floor(e.opacity+(t.opacity-e.opacity)*n))}(i,l,r-o);return s}}function Xe(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Qe(e,t,n){const r=[],o=new Ze(t);r.push(e[0]),n||r.push(e[0]);let a=1;for(;a<e.length-1;a++)r.push(e[a]),r.push(e[a]);r.push(e[a]),n||r.push(e[a]);for(let e=0;e<r.length;e+=2)o.addColorPart(r[e],r[e+1]);return o}function Je(e,t,n){const r=[];for(let o=0;o<t+1;o++){let a;switch(t){case 0:a=e.getColor(.5);break;default:{const r=Xe(1/t*o,t,n);a=e.getColor(r);break}}r.push(ye(a).formatHex())}return r}function Ye(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=Qe(e,n,!0),o=Qe(Je(r,t-1,t),n,!1),a=[null];for(let e=0;e<t;e++)a.push(Je(o,e,t));return a}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function et(e,t){const n=[];let r,o;if(e){let a=e.length;for(;a>=0;){for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat(e)),r.pop(),o--;e.pop(),a--}}else for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat()),r.pop(),o--;return n}function tt(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 nt(e,t,n,r){let o;if(""===e)o=et(null,n);else{o=et(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=tt(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function rt(e,t){const n=e.split(".");return{getStyle:(e,r)=>nt(e,r,n.concat(),t)}}function ot(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?ot(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function at(e){const t=ye(e).rgb(),{r:n,g:r,b:o}=t,[a,i,l]=[n,r,o].map((e=>e/255)),[s,c,u]=[a,i,l].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*s+.7152*c+.0722*u).toFixed(5)}rt.resolveRawTheme=e=>{const t=He(!0,{},e);return ot(t,t._variables),t.scales&&Ye(t.scales,t.dataColors&&t.dataColors.nullColor),t};const it=1e3;function lt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(at);return{getBestContrastColor(o){if(!t[o]){n>it&&(t={},n=0);const a=at(o),i=r.map((e=>{return t=a,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),l=e[i.indexOf(Math.max(...i))];t[o]=l,n++}return t[o]}}}function st(){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]=rt(t,e)),r[t].getStyle(n,o)),validateColor(){const e=arguments.length<=0?void 0:arguments[0];let t;if("string"==typeof e&&(t=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))){const e=parseInt(t[1],10)/255,n=parseInt(t[2],10),r=parseInt(t[3],10),o=parseInt(t[4],10);return"rgba(".concat(n,",").concat(r,",").concat(o,",").concat(e,")")}const n=ye(...arguments);return n?n.toString():void 0}},a={setTheme(a,i){e=function(e,t){const n="dark"===e.type?Ge:Ve;let r=Ke;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=He(!0,{},Ue,r,n),a=He(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return a.palettes.data&&a.palettes.data.length||(a.palettes.data=o.palettes.data),a.palettes.ui&&a.palettes.ui.length||(a.palettes.ui=o.palettes.ui),a.scales&&a.scales.length||(a.scales=o.scales),t(a)}(a,rt.resolveRawTheme),r={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})})),t},dataPalettes(){const t=[];return e.palettes.data.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})})),t},uiPalettes(){const t=[];return e.palettes.ui.forEach((e=>{t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:e.colors})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e,n){const r="number"==typeof(null==e?void 0:e.index)&&!Number.isNaN(null==e?void 0:e.index),o="string"==typeof(null==e?void 0:e.color);if(r||o)return n=!!n,(null==e?void 0:e.index)<0||void 0===(null==e?void 0:e.index)?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index-n]?e.color:t.colors[e.index-n]:e.color)}}}(e);const l=o.getStyle("","","color"),s=at(l);n=lt([l,s<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>i}};return Object.keys(ee.prototype).forEach((e=>{o[e]=ee.prototype[e]})),ee.init(o),a.setTheme({},"light"),{externalAPI:o,internalAPI:a}}const ct=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),ut=5e3;function dt(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 pt={},ft={exports:{}},ht={},mt={exports:{}},gt={};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* scheduler.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 xt(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 St=new Set,wt={};function Et(e,t){Ct(e,t),Ct(e+"Capture",t)}function Ct(e,t){for(wt[e]=t,e=0;e<t.length;e++)St.add(t[e])}var kt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Rt=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]*$/,Ot={},_t={};function It(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var 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 Mt(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!!Rt.call(_t,e)||!Rt.call(Ot,e)&&(Lt.test(e)?_t[e]=!0:(Ot[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,Mt);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,Mt);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,Mt);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 qt=bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,zt=Symbol.for("react.element"),Dt=Symbol.for("react.portal"),At=Symbol.for("react.fragment"),jt=Symbol.for("react.strict_mode"),Ft=Symbol.for("react.profiler"),Bt=Symbol.for("react.provider"),$t=Symbol.for("react.context"),Wt=Symbol.for("react.forward_ref"),Ht=Symbol.for("react.suspense"),Ut=Symbol.for("react.suspense_list"),Vt=Symbol.for("react.memo"),Gt=Symbol.for("react.lazy"),Kt=Symbol.for("react.offscreen"),Zt=Symbol.iterator;function Xt(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Zt&&e[Zt]||e["@@iterator"])?e:null}var Qt,Jt=Object.assign;function Yt(e){if(void 0===Qt)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Qt=t&&t[1]||""}return"\n"+Qt+e}var en=!1;function tn(e,t){if(!e||en)return"";en=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var s="\n"+o[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=i&&0<=l);break}}}finally{en=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Yt(e):""}function nn(e){switch(e.tag){case 5:return Yt(e.type);case 16:return Yt("Lazy");case 13:return Yt("Suspense");case 19:return Yt("SuspenseList");case 0:case 2:case 15:return e=tn(e.type,!1);case 11:return e=tn(e.type.render,!1);case 1:return e=tn(e.type,!0);default:return""}}function rn(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 At:return"Fragment";case Dt:return"Portal";case Ft:return"Profiler";case jt:return"StrictMode";case Ht:return"Suspense";case Ut:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case $t:return(e.displayName||"Context")+".Consumer";case Bt: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 Vt:return null!==(t=e.displayName||null)?t:rn(e.type)||"Memo";case Gt:t=e._payload,e=e._init;try{return rn(e(t))}catch(e){}}return null}function on(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 rn(t);case 8:return t===jt?"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 an(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ln(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function sn(e){e._valueTracker||(e._valueTracker=function(e){var t=ln(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function cn(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ln(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function un(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 dn(e,t){var n=t.checked;return Jt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function pn(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=an(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 fn(e,t){null!=(t=t.checked)&&Nt(e,"checked",t,!1)}function hn(e,t){fn(e,t);var n=an(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")?gn(e,t.type,n):t.hasOwnProperty("defaultValue")&&gn(e,t.type,an(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function mn(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 gn(e,t,n){"number"===t&&un(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vn=Array.isArray;function bn(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=""+an(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 yn(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(xt(91));return Jt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function xn(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(xt(92));if(vn(n)){if(1<n.length)throw Error(xt(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:an(n)}}function Sn(e,t){var n=an(t.value),r=an(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 wn(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function En(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 Cn(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?En(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var kn,Rn,Ln=(Rn=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((kn=kn||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=kn.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 Rn(e,t)}))}:Rn);function On(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 _n={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||_n.hasOwnProperty(e)&&_n[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(_n).forEach((function(e){In.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_n[t]=_n[e]}))}));var Mn=Jt({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(Mn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(xt(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(xt(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(xt(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(xt(62))}}function qn(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 zn=null;function Dn(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var An=null,jn=null,Fn=null;function Bn(e){if(e=qi(e)){if("function"!=typeof An)throw Error(xt(280));var t=e.stateNode;t&&(t=Di(t),An(e.stateNode,e.type,t))}}function $n(e){jn?Fn?Fn.push(e):Fn=[e]:jn=e}function Wn(){if(jn){var e=jn,t=Fn;if(Fn=jn=null,Bn(e),t)for(e=0;e<t.length;e++)Bn(t[e])}}function Hn(e,t){return e(t)}function Un(){}var Vn=!1;function Gn(e,t,n){if(Vn)return e(t,n);Vn=!0;try{return Hn(e,t,n)}finally{Vn=!1,(null!==jn||null!==Fn)&&(Un(),Wn())}}function Kn(e,t){var n=e.stateNode;if(null===n)return null;var r=Di(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(xt(231,t,typeof n));return n}var Zn=!1;if(kt)try{var Xn={};Object.defineProperty(Xn,"passive",{get:function(){Zn=!0}}),window.addEventListener("test",Xn,Xn),window.removeEventListener("test",Xn,Xn)}catch(Rn){Zn=!1}function Qn(e,t,n,r,o,a,i,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Jn=!1,Yn=null,er=!1,tr=null,nr={onError:function(e){Jn=!0,Yn=e}};function rr(e,t,n,r,o,a,i,l,s){Jn=!1,Yn=null,Qn.apply(nr,arguments)}function or(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 ar(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(or(e)!==e)throw Error(xt(188))}function lr(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=or(e)))throw Error(xt(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return ir(o),e;if(a===r)return ir(o),t;a=a.sibling}throw Error(xt(188))}if(n.return!==r.return)n=o,r=a;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i){for(l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}if(!i)throw Error(xt(189))}}if(n.alternate!==r)throw Error(xt(190))}if(3!==n.tag)throw Error(xt(188));return n.stateNode.current===n?e:t}(e),null!==e?sr(e):null}function sr(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=sr(e);if(null!==t)return t;e=e.sibling}return null}var cr=yt.unstable_scheduleCallback,ur=yt.unstable_cancelCallback,dr=yt.unstable_shouldYield,pr=yt.unstable_requestPaint,fr=yt.unstable_now,hr=yt.unstable_getCurrentPriorityLevel,mr=yt.unstable_ImmediatePriority,gr=yt.unstable_UserBlockingPriority,vr=yt.unstable_NormalPriority,br=yt.unstable_LowPriority,yr=yt.unstable_IdlePriority,xr=null,Sr=null;var wr=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Er(e)/Cr|0)|0},Er=Math.log,Cr=Math.LN2;var kr=64,Rr=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 Or(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=Lr(l):0!==(a&=i)&&(r=Lr(a))}else 0!==(i=n&~o)?r=Lr(i):0!==a&&(r=Lr(a));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!=(4194240&a)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-wr(t)),r|=e[n],t&=~o;return r}function _r(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=kr;return 0==(4194240&(kr<<=1))&&(kr=64),e}function Pr(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Mr(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-wr(t)]=n}function Nr(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-wr(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var qr=0;function zr(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Dr,Ar,jr,Fr,Br,$r=!1,Wr=[],Hr=null,Ur=null,Vr=null,Gr=new Map,Kr=new Map,Zr=[],Xr="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 Qr(e,t){switch(e){case"focusin":case"focusout":Hr=null;break;case"dragenter":case"dragleave":Ur=null;break;case"mouseover":case"mouseout":Vr=null;break;case"pointerover":case"pointerout":Gr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kr.delete(t.pointerId)}}function Jr(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=qi(t))&&Ar(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Yr(e){var t=Ni(e.target);if(null!==t){var n=or(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=ar(n)))return e.blockedOn=t,void Br(e.priority,(function(){jr(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 eo(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=po(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=qi(n))&&Ar(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);zn=r,n.target.dispatchEvent(r),zn=null,t.shift()}return!0}function to(e,t,n){eo(e)&&n.delete(t)}function no(){$r=!1,null!==Hr&&eo(Hr)&&(Hr=null),null!==Ur&&eo(Ur)&&(Ur=null),null!==Vr&&eo(Vr)&&(Vr=null),Gr.forEach(to),Kr.forEach(to)}function ro(e,t){e.blockedOn===t&&(e.blockedOn=null,$r||($r=!0,yt.unstable_scheduleCallback(yt.unstable_NormalPriority,no)))}function oo(e){function t(t){return ro(t,e)}if(0<Wr.length){ro(Wr[0],e);for(var n=1;n<Wr.length;n++){var r=Wr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Hr&&ro(Hr,e),null!==Ur&&ro(Ur,e),null!==Vr&&ro(Vr,e),Gr.forEach(t),Kr.forEach(t),n=0;n<Zr.length;n++)(r=Zr[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Zr.length&&null===(n=Zr[0]).blockedOn;)Yr(n),null===n.blockedOn&&Zr.shift()}var ao=qt.ReactCurrentBatchConfig,io=!0;function lo(e,t,n,r){var o=qr,a=ao.transition;ao.transition=null;try{qr=1,co(e,t,n,r)}finally{qr=o,ao.transition=a}}function so(e,t,n,r){var o=qr,a=ao.transition;ao.transition=null;try{qr=4,co(e,t,n,r)}finally{qr=o,ao.transition=a}}function co(e,t,n,r){if(io){var o=po(e,t,n,r);if(null===o)ii(e,t,r,uo,n),Qr(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Hr=Jr(Hr,e,t,n,r,o),!0;case"dragenter":return Ur=Jr(Ur,e,t,n,r,o),!0;case"mouseover":return Vr=Jr(Vr,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Gr.set(a,Jr(Gr.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Kr.set(a,Jr(Kr.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Qr(e,r),4&t&&-1<Xr.indexOf(e)){for(;null!==o;){var a=qi(o);if(null!==a&&Dr(a),null===(a=po(e,t,n,r))&&ii(e,t,r,uo,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else ii(e,t,r,null,n)}}var uo=null;function po(e,t,n,r){if(uo=null,null!==(e=Ni(e=Dn(r))))if(null===(t=or(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=ar(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 uo=e,null}function fo(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(hr()){case mr:return 1;case gr:return 4;case vr:case br:return 16;case yr:return 536870912;default:return 16}default:return 16}}var ho=null,mo=null,go=null;function vo(){if(go)return go;var e,t,n=mo,r=n.length,o="value"in ho?ho.value:ho.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return go=o.slice(e,1<t?1-t:void 0)}function bo(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 yo(){return!0}function xo(){return!1}function So(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?yo:xo,this.isPropagationStopped=xo,this}return Jt(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=yo)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=yo)},persist:function(){},isPersistent:yo}),t}var wo,Eo,Co,ko={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ro=So(ko),Lo=Jt({},ko,{view:0,detail:0}),Oo=So(Lo),_o=Jt({},Lo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bo,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!==Co&&(Co&&"mousemove"===e.type?(wo=e.screenX-Co.screenX,Eo=e.screenY-Co.screenY):Eo=wo=0,Co=e),wo)},movementY:function(e){return"movementY"in e?e.movementY:Eo}}),Io=So(_o),To=So(Jt({},_o,{dataTransfer:0})),Po=So(Jt({},Lo,{relatedTarget:0})),Mo=So(Jt({},ko,{animationName:0,elapsedTime:0,pseudoElement:0})),No=Jt({},ko,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),qo=So(No),zo=So(Jt({},ko,{data:0})),Do={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ao={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"},jo={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fo(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=jo[e])&&!!t[e]}function Bo(){return Fo}var $o=Jt({},Lo,{key:function(e){if(e.key){var t=Do[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=bo(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Ao[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bo,charCode:function(e){return"keypress"===e.type?bo(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?bo(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Wo=So($o),Ho=So(Jt({},_o,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Uo=So(Jt({},Lo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bo})),Vo=So(Jt({},ko,{propertyName:0,elapsedTime:0,pseudoElement:0})),Go=Jt({},_o,{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}),Ko=So(Go),Zo=[9,13,27,32],Xo=kt&&"CompositionEvent"in window,Qo=null;kt&&"documentMode"in document&&(Qo=document.documentMode);var Jo=kt&&"TextEvent"in window&&!Qo,Yo=kt&&(!Xo||Qo&&8<Qo&&11>=Qo),ea=String.fromCharCode(32),ta=!1;function na(e,t){switch(e){case"keyup":return-1!==Zo.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ra(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var oa=!1;var aa={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 ia(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!aa[e.type]:"textarea"===t}function la(e,t,n,r){$n(r),0<(t=si(t,"onChange")).length&&(n=new Ro("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var sa=null,ca=null;function ua(e){ei(e,0)}function da(e){if(cn(zi(e)))return e}function pa(e,t){if("change"===e)return t}var fa=!1;if(kt){var ha;if(kt){var ma="oninput"in document;if(!ma){var ga=document.createElement("div");ga.setAttribute("oninput","return;"),ma="function"==typeof ga.oninput}ha=ma}else ha=!1;fa=ha&&(!document.documentMode||9<document.documentMode)}function va(){sa&&(sa.detachEvent("onpropertychange",ba),ca=sa=null)}function ba(e){if("value"===e.propertyName&&da(ca)){var t=[];la(t,ca,e,Dn(e)),Gn(ua,t)}}function ya(e,t,n){"focusin"===e?(va(),ca=n,(sa=t).attachEvent("onpropertychange",ba)):"focusout"===e&&va()}function xa(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return da(ca)}function Sa(e,t){if("click"===e)return da(t)}function wa(e,t){if("input"===e||"change"===e)return da(t)}var Ea="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Ca(e,t){if(Ea(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(!Rt.call(t,o)||!Ea(e[o],t[o]))return!1}return!0}function ka(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ra(e,t){var n,r=ka(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=ka(r)}}function La(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?La(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Oa(){for(var e=window,t=un();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=un((e=t.contentWindow).document)}return t}function _a(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 Ia(e){var t=Oa(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&La(n.ownerDocument.documentElement,n)){if(null!==r&&_a(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=Ra(n,a);var i=Ra(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ta=kt&&"documentMode"in document&&11>=document.documentMode,Pa=null,Ma=null,Na=null,qa=!1;function za(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;qa||null==Pa||Pa!==un(r)||("selectionStart"in(r=Pa)&&_a(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},Na&&Ca(Na,r)||(Na=r,0<(r=si(Ma,"onSelect")).length&&(t=new Ro("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Pa)))}function Da(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Aa={animationend:Da("Animation","AnimationEnd"),animationiteration:Da("Animation","AnimationIteration"),animationstart:Da("Animation","AnimationStart"),transitionend:Da("Transition","TransitionEnd")},ja={},Fa={};function Ba(e){if(ja[e])return ja[e];if(!Aa[e])return e;var t,n=Aa[e];for(t in n)if(n.hasOwnProperty(t)&&t in Fa)return ja[e]=n[t];return e}kt&&(Fa=document.createElement("div").style,"AnimationEvent"in window||(delete Aa.animationend.animation,delete Aa.animationiteration.animation,delete Aa.animationstart.animation),"TransitionEvent"in window||delete Aa.transitionend.transition);var $a=Ba("animationend"),Wa=Ba("animationiteration"),Ha=Ba("animationstart"),Ua=Ba("transitionend"),Va=new Map,Ga="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 Ka(e,t){Va.set(e,t),Et(t,[e])}for(var Za=0;Za<Ga.length;Za++){var Xa=Ga[Za];Ka(Xa.toLowerCase(),"on"+(Xa[0].toUpperCase()+Xa.slice(1)))}Ka($a,"onAnimationEnd"),Ka(Wa,"onAnimationIteration"),Ka(Ha,"onAnimationStart"),Ka("dblclick","onDoubleClick"),Ka("focusin","onFocus"),Ka("focusout","onBlur"),Ka(Ua,"onTransitionEnd"),Ct("onMouseEnter",["mouseout","mouseover"]),Ct("onMouseLeave",["mouseout","mouseover"]),Ct("onPointerEnter",["pointerout","pointerover"]),Ct("onPointerLeave",["pointerout","pointerover"]),Et("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Et("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Et("onBeforeInput",["compositionend","keypress","textInput","paste"]),Et("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Et("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Et("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qa="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(" "),Ja=new Set("cancel close invalid load scroll toggle".split(" ").concat(Qa));function Ya(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,i,l,s){if(rr.apply(this,arguments),Jn){if(!Jn)throw Error(xt(198));var c=Yn;Jn=!1,Yn=null,er||(er=!0,tr=c)}}(r,t,void 0,e),e.currentTarget=null}function ei(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;Ya(o,l,c),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,c=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;Ya(o,l,c),a=s}}}if(er)throw e=tr,er=!1,tr=null,e}function ti(e,t){var n=t[Ti];void 0===n&&(n=t[Ti]=new Set);var r=e+"__bubble";n.has(r)||(ai(t,e,2,!1),n.add(r))}function ni(e,t,n){var r=0;t&&(r|=4),ai(n,e,r,t)}var ri="_reactListening"+Math.random().toString(36).slice(2);function oi(e){if(!e[ri]){e[ri]=!0,St.forEach((function(t){"selectionchange"!==t&&(Ja.has(t)||ni(t,!1,e),ni(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[ri]||(t[ri]=!0,ni("selectionchange",!1,t))}}function ai(e,t,n,r){switch(fo(t)){case 1:var o=lo;break;case 4:o=so;break;default:o=co}n=o.bind(null,t,n,e),o=void 0,!Zn||"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 ii(e,t,n,r,o){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=Ni(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}Gn((function(){var r=a,o=Dn(n),i=[];e:{var l=Va.get(e);if(void 0!==l){var s=Ro,c=e;switch(e){case"keypress":if(0===bo(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=Uo;break;case $a:case Wa:case Ha:s=Mo;break;case Ua:s=Vo;break;case"scroll":s=Oo;break;case"wheel":s=Ko;break;case"copy":case"cut":case"paste":s=qo;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Ho}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=Kn(h,p))&&u.push(li(h,m,f)))),d)break;h=h.return}0<u.length&&(l=new s(l,c,null,n,o),i.push({event:l,listeners:u}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===zn||!(c=n.relatedTarget||n.fromElement)||!Ni(c)&&!c[Ii])&&(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)?Ni(c):null)&&(c!==(d=or(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=Ho,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==s?l:zi(s),f=null==c?l:zi(c),(l=new u(m,h+"leave",s,n,o)).target=d,l.relatedTarget=f,m=null,Ni(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=ci(f))h++;for(f=0,m=p;m;m=ci(m))f++;for(;0<h-f;)u=ci(u),h--;for(;0<f-h;)p=ci(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=ci(u),p=ci(p)}u=null}else u=null;null!==s&&ui(i,l,s,u,!1),null!==c&&null!==d&&ui(i,d,c,u,!0)}if("select"===(s=(l=r?zi(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=pa;else if(ia(l))if(fa)g=wa;else{g=xa;var v=ya}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=Sa);switch(g&&(g=g(e,r))?la(i,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&gn(l,"number",l.value)),v=r?zi(r):window,e){case"focusin":(ia(v)||"true"===v.contentEditable)&&(Pa=v,Ma=r,Na=null);break;case"focusout":Na=Ma=Pa=null;break;case"mousedown":qa=!0;break;case"contextmenu":case"mouseup":case"dragend":qa=!1,za(i,n,o);break;case"selectionchange":if(Ta)break;case"keydown":case"keyup":za(i,n,o)}var b;if(Xo)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 oa?na(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Yo&&"ko"!==n.locale&&(oa||"onCompositionStart"!==y?"onCompositionEnd"===y&&oa&&(b=vo()):(mo="value"in(ho=o)?ho.value:ho.textContent,oa=!0)),0<(v=si(r,y)).length&&(y=new zo(y,e,null,n,o),i.push({event:y,listeners:v}),b?y.data=b:null!==(b=ra(n))&&(y.data=b))),(b=Jo?function(e,t){switch(e){case"compositionend":return ra(t);case"keypress":return 32!==t.which?null:(ta=!0,ea);case"textInput":return(e=t.data)===ea&&ta?null:e;default:return null}}(e,n):function(e,t){if(oa)return"compositionend"===e||!Xo&&na(e,t)?(e=vo(),go=mo=ho=null,oa=!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 Yo&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=si(r,"onBeforeInput")).length&&(o=new zo("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=b))}ei(i,t)}))}function li(e,t,n){return{instance:e,listener:t,currentTarget:n}}function si(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Kn(e,n))&&r.unshift(li(e,a,o)),null!=(a=Kn(e,t))&&r.push(li(e,a,o))),e=e.return}return r}function ci(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function ui(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,o?null!=(s=Kn(n,a))&&i.unshift(li(n,s,l)):o||null!=(s=Kn(n,a))&&i.push(li(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var di=/\r\n?/g,pi=/\u0000|\uFFFD/g;function fi(e){return("string"==typeof e?e:""+e).replace(di,"\n").replace(pi,"")}function hi(e,t,n){if(t=fi(t),fi(e)!==t&&n)throw Error(xt(425))}function mi(){}var gi=null,vi=null;function bi(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 yi="function"==typeof setTimeout?setTimeout:void 0,xi="function"==typeof clearTimeout?clearTimeout:void 0,Si="function"==typeof Promise?Promise:void 0,wi="function"==typeof queueMicrotask?queueMicrotask:void 0!==Si?function(e){return Si.resolve(null).then(e).catch(Ei)}:yi;function Ei(e){setTimeout((function(){throw e}))}function Ci(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 oo(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);oo(t)}function ki(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 Ri(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 Li=Math.random().toString(36).slice(2),Oi="__reactFiber$"+Li,_i="__reactProps$"+Li,Ii="__reactContainer$"+Li,Ti="__reactEvents$"+Li,Pi="__reactListeners$"+Li,Mi="__reactHandles$"+Li;function Ni(e){var t=e[Oi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ii]||n[Oi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Ri(e);null!==e;){if(n=e[Oi])return n;e=Ri(e)}return t}n=(e=n).parentNode}return null}function qi(e){return!(e=e[Oi]||e[Ii])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function zi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(xt(33))}function Di(e){return e[_i]||null}var Ai=[],ji=-1;function Fi(e){return{current:e}}function Bi(e){0>ji||(e.current=Ai[ji],Ai[ji]=null,ji--)}function $i(e,t){ji++,Ai[ji]=e.current,e.current=t}var Wi={},Hi=Fi(Wi),Ui=Fi(!1),Vi=Wi;function Gi(e,t){var n=e.type.contextTypes;if(!n)return Wi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ki(e){return null!=(e=e.childContextTypes)}function Zi(){Bi(Ui),Bi(Hi)}function Xi(e,t,n){if(Hi.current!==Wi)throw Error(xt(168));$i(Hi,t),$i(Ui,n)}function Qi(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(xt(108,on(e)||"Unknown",o));return Jt({},n,r)}function Ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wi,Vi=Hi.current,$i(Hi,e),$i(Ui,Ui.current),!0}function Yi(e,t,n){var r=e.stateNode;if(!r)throw Error(xt(169));n?(e=Qi(e,t,Vi),r.__reactInternalMemoizedMergedChildContext=e,Bi(Ui),Bi(Hi),$i(Hi,e)):Bi(Ui),$i(Ui,n)}var el=null,tl=!1,nl=!1;function rl(e){null===el?el=[e]:el.push(e)}function ol(){if(!nl&&null!==el){nl=!0;var e=0,t=qr;try{var n=el;for(qr=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}el=null,tl=!1}catch(t){throw null!==el&&(el=el.slice(e+1)),cr(mr,ol),t}finally{qr=t,nl=!1}}return null}var al=[],il=0,ll=null,sl=0,cl=[],ul=0,dl=null,pl=1,fl="";function hl(e,t){al[il++]=sl,al[il++]=ll,ll=e,sl=t}function ml(e,t,n){cl[ul++]=pl,cl[ul++]=fl,cl[ul++]=dl,dl=e;var r=pl;e=fl;var o=32-wr(r)-1;r&=~(1<<o),n+=1;var a=32-wr(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,pl=1<<32-wr(t)+o|n<<o|r,fl=a+e}else pl=1<<a|n<<o|r,fl=e}function gl(e){null!==e.return&&(hl(e,1),ml(e,1,0))}function vl(e){for(;e===ll;)ll=al[--il],al[il]=null,sl=al[--il],al[il]=null;for(;e===dl;)dl=cl[--ul],cl[ul]=null,fl=cl[--ul],cl[ul]=null,pl=cl[--ul],cl[ul]=null}var bl=null,yl=null,xl=!1,Sl=null;function wl(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 El(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,bl=e,yl=ki(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,bl=e,yl=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==dl?{id:pl,overflow:fl}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Vd(18,null,null,0)).stateNode=t,n.return=e,e.child=n,bl=e,yl=null,!0);default:return!1}}function Cl(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function kl(e){if(xl){var t=yl;if(t){var n=t;if(!El(e,t)){if(Cl(e))throw Error(xt(418));t=ki(n.nextSibling);var r=bl;t&&El(e,t)?wl(r,n):(e.flags=-4097&e.flags|2,xl=!1,bl=e)}}else{if(Cl(e))throw Error(xt(418));e.flags=-4097&e.flags|2,xl=!1,bl=e}}}function Rl(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;bl=e}function Ll(e){if(e!==bl)return!1;if(!xl)return Rl(e),xl=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!bi(e.type,e.memoizedProps)),t&&(t=yl)){if(Cl(e))throw Ol(),Error(xt(418));for(;t;)wl(e,t),t=ki(t.nextSibling)}if(Rl(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(xt(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){yl=ki(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}yl=null}}else yl=bl?ki(e.stateNode.nextSibling):null;return!0}function Ol(){for(var e=yl;e;)e=ki(e.nextSibling)}function _l(){yl=bl=null,xl=!1}function Il(e){null===Sl?Sl=[e]:Sl.push(e)}var Tl=qt.ReactCurrentBatchConfig;function Pl(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(xt(309));var r=n.stateNode}if(!r)throw Error(xt(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(xt(284));if(!n._owner)throw Error(xt(290,e))}return e}function Ml(e,t){throw e=Object.prototype.toString.call(t),Error(xt(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Nl(e){return(0,e._init)(e._payload)}function ql(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 a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Jd(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var a=n.type;return a===At?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===Gt&&Nl(a)===t.type)?((r=o(t,n.props)).ref=Pl(e,t,n),r.return=e,r):((r=Zd(n.type,n.key,n.props,null,e.mode,r)).ref=Pl(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,a){return null===t||7!==t.tag?((t=Xd(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Jd(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case zt:return(n=Zd(t.type,t.key,t.props,null,e.mode,n)).ref=Pl(e,null,t),n.return=e,n;case Dt:return(t=Yd(t,e.mode,n)).return=e,t;case Gt:return d(e,(0,t._init)(t._payload),n)}if(vn(t)||Xt(t))return(t=Xd(t,e.mode,n,null)).return=e,t;Ml(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 zt:return n.key===o?s(e,t,n,r):null;case Dt:return n.key===o?c(e,t,n,r):null;case Gt:return p(e,t,(o=n._init)(n._payload),r)}if(vn(n)||Xt(n))return null!==o?null:u(e,t,n,r,null);Ml(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 zt:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Dt:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Gt:return f(e,t,n,(0,r._init)(r._payload),o)}if(vn(r)||Xt(r))return u(t,e=e.get(n)||null,r,o,null);Ml(t,r)}return null}function h(o,i,l,s){for(var c=null,u=null,h=i,m=i=0,g=null;null!==h&&m<l.length;m++){h.index>m?(g=h,h=null):g=h.sibling;var v=p(o,h,l[m],s);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&t(o,h),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v,h=g}if(m===l.length)return n(o,h),xl&&hl(o,m),c;if(null===h){for(;m<l.length;m++)null!==(h=d(o,l[m],s))&&(i=a(h,i,m),null===u?c=h:u.sibling=h,u=h);return xl&&hl(o,m),c}for(h=r(o,h);m<l.length;m++)null!==(g=f(h,o,m,l[m],s))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&h.forEach((function(e){return t(o,e)})),xl&&hl(o,m),c}function m(o,i,l,s){var c=Xt(l);if("function"!=typeof c)throw Error(xt(150));if(null==(l=c.call(l)))throw Error(xt(151));for(var u=c=null,h=i,m=i=0,g=null,v=l.next();null!==h&&!v.done;m++,v=l.next()){h.index>m?(g=h,h=null):g=h.sibling;var b=p(o,h,v.value,s);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(o,h),i=a(b,i,m),null===u?c=b:u.sibling=b,u=b,h=g}if(v.done)return n(o,h),xl&&hl(o,m),c;if(null===h){for(;!v.done;m++,v=l.next())null!==(v=d(o,v.value,s))&&(i=a(v,i,m),null===u?c=v:u.sibling=v,u=v);return xl&&hl(o,m),c}for(h=r(o,h);!v.done;m++,v=l.next())null!==(v=f(h,o,m,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v);return e&&h.forEach((function(e){return t(o,e)})),xl&&hl(o,m),c}return function e(r,a,l,s){if("object"==typeof l&&null!==l&&l.type===At&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case zt:e:{for(var c=l.key,u=a;null!==u;){if(u.key===c){if((c=l.type)===At){if(7===u.tag){n(r,u.sibling),(a=o(u,l.props.children)).return=r,r=a;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===Gt&&Nl(c)===u.type){n(r,u.sibling),(a=o(u,l.props)).ref=Pl(r,u,l),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}l.type===At?((a=Xd(l.props.children,r.mode,s,l.key)).return=r,r=a):((s=Zd(l.type,l.key,l.props,null,r.mode,s)).ref=Pl(r,a,l),s.return=r,r=s)}return i(r);case Dt:e:{for(u=l.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===l.containerInfo&&a.stateNode.implementation===l.implementation){n(r,a.sibling),(a=o(a,l.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Yd(l,r.mode,s)).return=r,r=a}return i(r);case Gt:return e(r,a,(u=l._init)(l._payload),s)}if(vn(l))return h(r,a,l,s);if(Xt(l))return m(r,a,l,s);Ml(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,l)).return=r,r=a):(n(r,a),(a=Jd(l,r.mode,s)).return=r,r=a),i(r)):n(r,a)}}var zl=ql(!0),Dl=ql(!1),Al=Fi(null),jl=null,Fl=null,Bl=null;function $l(){Bl=Fl=jl=null}function Wl(e){var t=Al.current;Bi(Al),e._currentValue=t}function Hl(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 Ul(e,t){jl=e,Bl=Fl=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Nc=!0),e.firstContext=null)}function Vl(e){var t=e._currentValue;if(Bl!==e)if(e={context:e,memoizedValue:t,next:null},null===Fl){if(null===jl)throw Error(xt(308));Fl=e,jl.dependencies={lanes:0,firstContext:e}}else Fl=Fl.next=e;return t}var Gl=null;function Kl(e){null===Gl?Gl=[e]:Gl.push(e)}function Zl(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Kl(t)):(n.next=o.next,o.next=n),t.interleaved=n,Xl(e,r)}function Xl(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 Ql=!1;function Jl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yl(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 es(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ts(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,Xl(e,n)}return null===(o=r.interleaved)?(t.next=t,Kl(r)):(t.next=o.next,o.next=t),r.interleaved=t,Xl(e,n)}function ns(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 rs(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function os(e,t,n,r){var o=e.updateQueue;Ql=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===i?a=c:i.next=c,i=s;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(null!==a){var d=o.baseState;for(i=0,u=c=s=null,l=a;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=Jt({},d,p);break e;case 2:Ql=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=f,s=d):u=u.next=f,i|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Qu|=i,e.lanes=i,e.memoizedState=d}}function as(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(xt(191,o));o.call(r)}}}var is={},ls=Fi(is),ss=Fi(is),cs=Fi(is);function us(e){if(e===is)throw Error(xt(174));return e}function ds(e,t){switch($i(cs,t),$i(ss,e),$i(ls,is),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Cn(null,"");break;default:t=Cn(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Bi(ls),$i(ls,t)}function ps(){Bi(ls),Bi(ss),Bi(cs)}function fs(e){us(cs.current);var t=us(ls.current),n=Cn(t,e.type);t!==n&&($i(ss,e),$i(ls,n))}function hs(e){ss.current===e&&(Bi(ls),Bi(ss))}var ms=Fi(0);function gs(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 vs=[];function bs(){for(var e=0;e<vs.length;e++)vs[e]._workInProgressVersionPrimary=null;vs.length=0}var ys=qt.ReactCurrentDispatcher,xs=qt.ReactCurrentBatchConfig,Ss=0,ws=null,Es=null,Cs=null,ks=!1,Rs=!1,Ls=0,Os=0;function _s(){throw Error(xt(321))}function Is(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ea(e[n],t[n]))return!1;return!0}function Ts(e,t,n,r,o,a){if(Ss=a,ws=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ys.current=null===e||null===e.memoizedState?hc:mc,e=n(r,o),Rs){a=0;do{if(Rs=!1,Ls=0,25<=a)throw Error(xt(301));a+=1,Cs=Es=null,t.updateQueue=null,ys.current=gc,e=n(r,o)}while(Rs)}if(ys.current=fc,t=null!==Es&&null!==Es.next,Ss=0,Cs=Es=ws=null,ks=!1,t)throw Error(xt(300));return e}function Ps(){var e=0!==Ls;return Ls=0,e}function Ms(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Cs?ws.memoizedState=Cs=e:Cs=Cs.next=e,Cs}function Ns(){if(null===Es){var e=ws.alternate;e=null!==e?e.memoizedState:null}else e=Es.next;var t=null===Cs?ws.memoizedState:Cs.next;if(null!==t)Cs=t,Es=e;else{if(null===e)throw Error(xt(310));e={memoizedState:(Es=e).memoizedState,baseState:Es.baseState,baseQueue:Es.baseQueue,queue:Es.queue,next:null},null===Cs?ws.memoizedState=Cs=e:Cs=Cs.next=e}return Cs}function qs(e,t){return"function"==typeof t?t(e):t}function zs(e){var t=Ns(),n=t.queue;if(null===n)throw Error(xt(311));n.lastRenderedReducer=e;var r=Es,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var i=o.next;o.next=a.next,a.next=i}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=i=null,s=null,c=a;do{var u=c.lane;if((Ss&u)===u)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(l=s=d,i=r):s=s.next=d,ws.lanes|=u,Qu|=u}c=c.next}while(null!==c&&c!==a);null===s?i=r:s.next=l,Ea(r,t.memoizedState)||(Nc=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,ws.lanes|=a,Qu|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ds(e){var t=Ns(),n=t.queue;if(null===n)throw Error(xt(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var i=o=o.next;do{a=e(a,i.action),i=i.next}while(i!==o);Ea(a,t.memoizedState)||(Nc=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function As(){}function js(e,t){var n=ws,r=Ns(),o=t(),a=!Ea(r.memoizedState,o);if(a&&(r.memoizedState=o,Nc=!0),r=r.queue,Qs($s.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==Cs&&1&Cs.memoizedState.tag){if(n.flags|=2048,Vs(9,Bs.bind(null,n,r,o,t),void 0,null),null===Hu)throw Error(xt(349));0!=(30&Ss)||Fs(n,t,o)}return o}function Fs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ws.updateQueue)?(t={lastEffect:null,stores:null},ws.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Bs(e,t,n,r){t.value=n,t.getSnapshot=r,Ws(t)&&Hs(e)}function $s(e,t,n){return n((function(){Ws(t)&&Hs(e)}))}function Ws(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ea(e,n)}catch(e){return!0}}function Hs(e){var t=Xl(e,1);null!==t&&vd(t,e,1,-1)}function Us(e){var t=Ms();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:qs,lastRenderedState:e},t.queue=e,e=e.dispatch=cc.bind(null,ws,e),[t.memoizedState,e]}function Vs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ws.updateQueue)?(t={lastEffect:null,stores:null},ws.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 Gs(){return Ns().memoizedState}function Ks(e,t,n,r){var o=Ms();ws.flags|=e,o.memoizedState=Vs(1|t,n,void 0,void 0===r?null:r)}function Zs(e,t,n,r){var o=Ns();r=void 0===r?null:r;var a=void 0;if(null!==Es){var i=Es.memoizedState;if(a=i.destroy,null!==r&&Is(r,i.deps))return void(o.memoizedState=Vs(t,n,a,r))}ws.flags|=e,o.memoizedState=Vs(1|t,n,a,r)}function Xs(e,t){return Ks(8390656,8,e,t)}function Qs(e,t){return Zs(2048,8,e,t)}function Js(e,t){return Zs(4,2,e,t)}function Ys(e,t){return Zs(4,4,e,t)}function ec(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 tc(e,t,n){return n=null!=n?n.concat([e]):null,Zs(4,4,ec.bind(null,t,e),n)}function nc(){}function rc(e,t){var n=Ns();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Is(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function oc(e,t){var n=Ns();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Is(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ac(e,t,n){return 0==(21&Ss)?(e.baseState&&(e.baseState=!1,Nc=!0),e.memoizedState=n):(Ea(n,t)||(n=Tr(),ws.lanes|=n,Qu|=n,e.baseState=!0),t)}function ic(e,t){var n=qr;qr=0!==n&&4>n?n:4,e(!0);var r=xs.transition;xs.transition={};try{e(!1),t()}finally{qr=n,xs.transition=r}}function lc(){return Ns().memoizedState}function sc(e,t,n){var r=gd(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},uc(e))dc(t,n);else if(null!==(n=Zl(e,t,n,r))){vd(n,e,r,md()),pc(n,t,r)}}function cc(e,t,n){var r=gd(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(uc(e))dc(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,Ea(l,i)){var s=t.interleaved;return null===s?(o.next=o,Kl(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Zl(e,t,o,r))&&(vd(n,e,r,o=md()),pc(n,t,r))}}function uc(e){var t=e.alternate;return e===ws||null!==t&&t===ws}function dc(e,t){Rs=ks=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function pc(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Nr(e,n)}}var fc={readContext:Vl,useCallback:_s,useContext:_s,useEffect:_s,useImperativeHandle:_s,useInsertionEffect:_s,useLayoutEffect:_s,useMemo:_s,useReducer:_s,useRef:_s,useState:_s,useDebugValue:_s,useDeferredValue:_s,useTransition:_s,useMutableSource:_s,useSyncExternalStore:_s,useId:_s,unstable_isNewReconciler:!1},hc={readContext:Vl,useCallback:function(e,t){return Ms().memoizedState=[e,void 0===t?null:t],e},useContext:Vl,useEffect:Xs,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ks(4194308,4,ec.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ks(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ks(4,2,e,t)},useMemo:function(e,t){var n=Ms();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ms();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=sc.bind(null,ws,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ms().memoizedState=e},useState:Us,useDebugValue:nc,useDeferredValue:function(e){return Ms().memoizedState=e},useTransition:function(){var e=Us(!1),t=e[0];return e=ic.bind(null,e[1]),Ms().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ws,o=Ms();if(xl){if(void 0===n)throw Error(xt(407));n=n()}else{if(n=t(),null===Hu)throw Error(xt(349));0!=(30&Ss)||Fs(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Xs($s.bind(null,r,a,e),[e]),r.flags|=2048,Vs(9,Bs.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Ms(),t=Hu.identifierPrefix;if(xl){var n=fl;t=":"+t+"R"+(n=(pl&~(1<<32-wr(pl)-1)).toString(32)+n),0<(n=Ls++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Os++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},mc={readContext:Vl,useCallback:rc,useContext:Vl,useEffect:Qs,useImperativeHandle:tc,useInsertionEffect:Js,useLayoutEffect:Ys,useMemo:oc,useReducer:zs,useRef:Gs,useState:function(){return zs(qs)},useDebugValue:nc,useDeferredValue:function(e){return ac(Ns(),Es.memoizedState,e)},useTransition:function(){return[zs(qs)[0],Ns().memoizedState]},useMutableSource:As,useSyncExternalStore:js,useId:lc,unstable_isNewReconciler:!1},gc={readContext:Vl,useCallback:rc,useContext:Vl,useEffect:Qs,useImperativeHandle:tc,useInsertionEffect:Js,useLayoutEffect:Ys,useMemo:oc,useReducer:Ds,useRef:Gs,useState:function(){return Ds(qs)},useDebugValue:nc,useDeferredValue:function(e){var t=Ns();return null===Es?t.memoizedState=e:ac(t,Es.memoizedState,e)},useTransition:function(){return[Ds(qs)[0],Ns().memoizedState]},useMutableSource:As,useSyncExternalStore:js,useId:lc,unstable_isNewReconciler:!1};function vc(e,t){if(e&&e.defaultProps){for(var n in t=Jt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function bc(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Jt({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var yc={isMounted:function(e){return!!(e=e._reactInternals)&&or(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=md(),o=gd(e),a=es(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=ts(e,a,o))&&(vd(t,e,o,r),ns(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=md(),o=gd(e),a=es(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=ts(e,a,o))&&(vd(t,e,o,r),ns(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=md(),r=gd(e),o=es(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=ts(e,o,r))&&(vd(t,e,r,n),ns(t,e,r))}};function xc(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!Ca(n,r)||!Ca(o,a))}function Sc(e,t,n){var r=!1,o=Wi,a=t.contextType;return"object"==typeof a&&null!==a?a=Vl(a):(o=Ki(t)?Vi:Hi.current,a=(r=null!=(r=t.contextTypes))?Gi(e,o):Wi),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yc,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function wc(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&&yc.enqueueReplaceState(t,t.state,null)}function Ec(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Jl(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Vl(a):(a=Ki(t)?Vi:Hi.current,o.context=Gi(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(bc(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&yc.enqueueReplaceState(o,o.state,null),os(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Cc(e,t){try{var n="",r=t;do{n+=nn(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 Rc(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Lc="function"==typeof WeakMap?WeakMap:Map;function Oc(e,t,n){(n=es(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ad||(ad=!0,id=r),Rc(0,t)},n}function _c(e,t,n){(n=es(-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(){Rc(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){Rc(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 Ic(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Lc;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 Tc(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=es(-1,1)).tag=2,ts(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Mc=qt.ReactCurrentOwner,Nc=!1;function qc(e,t,n,r){t.child=null===e?Dl(t,null,n,r):zl(t,e.child,n,r)}function zc(e,t,n,r,o){n=n.render;var a=t.ref;return Ul(t,o),r=Ts(e,t,n,r,a,o),n=Ps(),null===e||Nc?(xl&&n&&gl(t),t.flags|=1,qc(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,au(e,t,o))}function Dc(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Gd(a)||void 0!==a.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=a,Ac(e,t,a,r,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:Ca)(i,r)&&e.ref===t.ref)return au(e,t,o)}return t.flags|=1,(e=Kd(a,r)).ref=t.ref,e.return=t,t.child=e}function Ac(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(Ca(a,r)&&e.ref===t.ref){if(Nc=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,au(e,t,o);0!=(131072&e.flags)&&(Nc=!0)}}return Bc(e,t,n,r,o)}function jc(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$i(Ku,Gu),Gu|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$i(Ku,Gu),Gu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,$i(Ku,Gu),Gu|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,$i(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 a=Ki(n)?Vi:Hi.current;return a=Gi(t,a),Ul(t,o),n=Ts(e,t,n,r,a,o),r=Ps(),null===e||Nc?(xl&&r&&gl(t),t.flags|=1,qc(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,au(e,t,o))}function $c(e,t,n,r,o){if(Ki(n)){var a=!0;Ji(t)}else a=!1;if(Ul(t,o),null===t.stateNode)ou(e,t),Sc(t,n,r),Ec(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,c=n.contextType;"object"==typeof c&&null!==c?c=Vl(c):c=Gi(t,c=Ki(n)?Vi:Hi.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||s!==c)&&wc(t,i,r,c),Ql=!1;var p=t.memoizedState;i.state=p,os(t,r,i,o),s=t.memoizedState,l!==r||p!==s||Ui.current||Ql?("function"==typeof u&&(bc(t,n,u,r),s=t.memoizedState),(l=Ql||xc(t,n,l,r,p,s,c))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=c,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Yl(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:vc(t.type,l),i.props=c,d=t.pendingProps,p=i.context,"object"==typeof(s=n.contextType)&&null!==s?s=Vl(s):s=Gi(t,s=Ki(n)?Vi:Hi.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==d||p!==s)&&wc(t,i,r,s),Ql=!1,p=t.memoizedState,i.state=p,os(t,r,i,o);var h=t.memoizedState;l!==d||p!==h||Ui.current||Ql?("function"==typeof f&&(bc(t,n,f,r),h=t.memoizedState),(c=Ql||xc(t,n,c,r,p,h,s)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=s,r=c):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Wc(e,t,n,r,a,o)}function Wc(e,t,n,r,o,a){Fc(e,t);var i=0!=(128&t.flags);if(!r&&!i)return o&&Yi(t,n,!1),au(e,t,a);r=t.stateNode,Mc.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=zl(t,e.child,null,a),t.child=zl(t,null,l,a)):qc(e,t,l,a),t.memoizedState=r.state,o&&Yi(t,n,!0),t.child}function Hc(e){var t=e.stateNode;t.pendingContext?Xi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Xi(0,t.context,!1),ds(e,t.containerInfo)}function Uc(e,t,n,r,o){return _l(),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,a=ms.current,i=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),$i(ms,1&a),null===e)return kl(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,i?(o=t.mode,i=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==i?(i.childLanes=0,i.pendingProps=l):i=Qd(l,o,0,null),e=Xd(e,o,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Qc(n),t.memoizedState=Xc,e):Yc(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,i){if(n)return 256&t.flags?(t.flags&=-257,eu(e,t,i,r=kc(Error(xt(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Qd({mode:"visible",children:r.children},o,0,null),(a=Xd(a,o,i,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&zl(t,e.child,null,i),t.child.memoizedState=Qc(i),t.memoizedState=Xc,a);if(0==(1&t.mode))return eu(e,t,i,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,eu(e,t,i,r=kc(a=Error(xt(419)),r,void 0))}if(l=0!=(i&e.childLanes),Nc||l){if(null!==(r=Hu)){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|i))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Xl(e,o),vd(r,e,o,-1))}return Id(),eu(e,t,i,r=kc(Error(xt(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=$d.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,yl=ki(o.nextSibling),bl=t,xl=!0,Sl=null,null!==e&&(cl[ul++]=pl,cl[ul++]=fl,cl[ul++]=dl,pl=e.id,fl=e.overflow,dl=t),t=Yc(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(i){i=o.fallback,l=t.mode,r=(a=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=Kd(a,s)).subtreeFlags=14680064&a.subtreeFlags,null!==r?i=Kd(r,i):(i=Xd(i,l,n,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,l=null===(l=e.child.memoizedState)?Qc(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Xc,o}return e=(i=e.child).sibling,o=Kd(i,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function 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),zl(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),Hl(e.return,t,n)}function nu(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function ru(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(qc(e,t,r.children,n),0!=(2&(r=ms.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($i(ms,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===gs(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,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===gs(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}nu(t,!0,n,null,a);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 au(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(xt(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 iu(e,t){if(!xl)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(vl(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 Ki(t.type)&&Zi(),lu(t),null;case 3:return r=t.stateNode,ps(),Bi(Ui),Bi(Hi),bs(),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!==Sl&&(Sd(Sl),Sl=null))),Gc(e,t),lu(t),null;case 5:hs(t);var o=us(cs.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(xt(166));return lu(t),null}if(e=us(ls.current),Ll(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Oi]=t,r[_i]=a,e=0!=(1&t.mode),n){case"dialog":ti("cancel",r),ti("close",r);break;case"iframe":case"object":case"embed":ti("load",r);break;case"video":case"audio":for(o=0;o<Qa.length;o++)ti(Qa[o],r);break;case"source":ti("error",r);break;case"img":case"image":case"link":ti("error",r),ti("load",r);break;case"details":ti("toggle",r);break;case"input":pn(r,a),ti("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},ti("invalid",r);break;case"textarea":xn(r,a),ti("invalid",r)}for(var i in Nn(n,a),o=null,a)if(a.hasOwnProperty(i)){var l=a[i];"children"===i?"string"==typeof l?r.textContent!==l&&(!0!==a.suppressHydrationWarning&&hi(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&hi(r.textContent,l,e),o=["children",""+l]):wt.hasOwnProperty(i)&&null!=l&&"onScroll"===i&&ti("scroll",r)}switch(n){case"input":sn(r),mn(r,a,!0);break;case"textarea":sn(r),wn(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=mi)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{i=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=En(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),"select"===n&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Oi]=t,e[_i]=r,Vc(e,t,!1,!1),t.stateNode=e;e:{switch(i=qn(n,r),n){case"dialog":ti("cancel",e),ti("close",e),o=r;break;case"iframe":case"object":case"embed":ti("load",e),o=r;break;case"video":case"audio":for(o=0;o<Qa.length;o++)ti(Qa[o],e);o=r;break;case"source":ti("error",e),o=r;break;case"img":case"image":case"link":ti("error",e),ti("load",e),o=r;break;case"details":ti("toggle",e),o=r;break;case"input":pn(e,r),o=dn(e,r),ti("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Jt({},r,{value:void 0}),ti("invalid",e);break;case"textarea":xn(e,r),o=yn(e,r),ti("invalid",e)}for(a in Nn(n,o),l=o)if(l.hasOwnProperty(a)){var s=l[a];"style"===a?Pn(e,s):"dangerouslySetInnerHTML"===a?null!=(s=s?s.__html:void 0)&&Ln(e,s):"children"===a?"string"==typeof s?("textarea"!==n||""!==s)&&On(e,s):"number"==typeof s&&On(e,""+s):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(wt.hasOwnProperty(a)?null!=s&&"onScroll"===a&&ti("scroll",e):null!=s&&Nt(e,a,s,i))}switch(n){case"input":sn(e),mn(e,r,!1);break;case"textarea":sn(e),wn(e);break;case"option":null!=r.value&&e.setAttribute("value",""+an(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?bn(e,!!r.multiple,a,!1):null!=r.defaultValue&&bn(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=mi)}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(xt(166));if(n=us(cs.current),us(ls.current),Ll(t)){if(r=t.stateNode,n=t.memoizedProps,r[Oi]=t,(a=r.nodeValue!==n)&&null!==(e=bl))switch(e.tag){case 3:hi(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&hi(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Oi]=t,t.stateNode=r}return lu(t),null;case 13:if(Bi(ms),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(xl&&null!==yl&&0!=(1&t.mode)&&0==(128&t.flags))Ol(),_l(),t.flags|=98560,a=!1;else if(a=Ll(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(xt(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(xt(317));a[Oi]=t}else _l(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;lu(t),a=!1}else null!==Sl&&(Sd(Sl),Sl=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ms.current)?0===Zu&&(Zu=3):Id())),null!==t.updateQueue&&(t.flags|=4),lu(t),null);case 4:return ps(),Gc(e,t),null===e&&oi(t.stateNode.containerInfo),lu(t),null;case 10:return Wl(t.type._context),lu(t),null;case 19:if(Bi(ms),null===(a=t.memoizedState))return lu(t),null;if(r=0!=(128&t.flags),null===(i=a.rendering))if(r)iu(a,!1);else{if(0!==Zu||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=gs(e))){for(t.flags|=128,iu(a,!1),null!==(r=i.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(i=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return $i(ms,1&ms.current|2),t.child}e=e.sibling}null!==a.tail&&fr()>rd&&(t.flags|=128,r=!0,iu(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=gs(i))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),iu(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!xl)return lu(t),null}else 2*fr()-a.renderingStartTime>rd&&1073741824!==n&&(t.flags|=128,r=!0,iu(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=a.last)?n.sibling=i:t.child=i,a.last=i)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=fr(),t.sibling=null,n=ms.current,$i(ms,r?1&n|2:1&n),t):(lu(t),null);case 22:case 23:return Rd(),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(xt(156,t.tag))}function cu(e,t){switch(vl(t),t.tag){case 1:return Ki(t.type)&&Zi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ps(),Bi(Ui),Bi(Hi),bs(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return hs(t),null;case 13:if(Bi(ms),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(xt(340));_l()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Bi(ms),null;case 4:return ps(),null;case 10:return Wl(t.type._context),null;case 22:case 23:return Rd(),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,us(ls.current);var a,i=null;switch(n){case"input":o=dn(e,o),r=dn(e,r),i=[];break;case"select":o=Jt({},o,{value:void 0}),r=Jt({},r,{value:void 0}),i=[];break;case"textarea":o=yn(e,o),r=yn(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=mi)}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(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(wt.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var s=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==l&&(null!=s||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(i=i||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(i=i||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(wt.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&ti("scroll",e),i||l===s||(i=[])):(i=i||[]).push(c,s))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},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 a=o.destroy;o.destroy=void 0,void 0!==a&&mu(t,n,a)}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[Oi],delete t[_i],delete t[Ti],delete t[Pi],delete t[Mi])),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=mi));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,Ru=!1;function Lu(e,t,n){for(n=n.child;null!==n;)Ou(e,t,n),n=n.sibling}function Ou(e,t,n){if(Sr&&"function"==typeof Sr.onCommitFiberUnmount)try{Sr.onCommitFiberUnmount(xr,n)}catch(e){}switch(n.tag){case 5:du||hu(n,t);case 6:var r=ku,o=Ru;ku=null,Lu(e,t,n),Ru=o,null!==(ku=r)&&(Ru?(e=ku,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ku.removeChild(n.stateNode));break;case 18:null!==ku&&(Ru?(e=ku,n=n.stateNode,8===e.nodeType?Ci(e.parentNode,n):1===e.nodeType&&Ci(e,n),oo(e)):Ci(ku,n.stateNode));break;case 4:r=ku,o=Ru,ku=n.stateNode.containerInfo,Ru=!0,Lu(e,t,n),ku=r,Ru=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 a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&mu(n,t,i),o=o.next}while(o!==r)}Lu(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)}Lu(e,t,n);break;case 21:Lu(e,t,n);break;case 22:1&n.mode?(du=(r=du)||null!==n.memoizedState,Lu(e,t,n),du=r):Lu(e,t,n);break;default:Lu(e,t,n)}}function _u(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 Iu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,i=t,l=i;e:for(;null!==l;){switch(l.tag){case 5:ku=l.stateNode,Ru=!1;break e;case 3:case 4:ku=l.stateNode.containerInfo,Ru=!0;break e}l=l.return}if(null===ku)throw Error(xt(160));Ou(a,i,o),ku=null,Ru=!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;)Tu(t,e),t=t.sibling}function Tu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Iu(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:Iu(t,e),Pu(e),512&r&&null!==n&&hu(n,n.return);break;case 5:if(Iu(t,e),Pu(e),512&r&&null!==n&&hu(n,n.return),32&e.flags){var o=e.stateNode;try{On(o,"")}catch(t){jd(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,i=null!==n?n.memoizedProps:a,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===a.type&&null!=a.name&&fn(o,a),qn(l,i);var c=qn(l,a);for(i=0;i<s.length;i+=2){var u=s[i],d=s[i+1];"style"===u?Pn(o,d):"dangerouslySetInnerHTML"===u?Ln(o,d):"children"===u?On(o,d):Nt(o,u,d,c)}switch(l){case"input":hn(o,a);break;case"textarea":Sn(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?bn(o,!!a.multiple,f,!1):p!==!!a.multiple&&(null!=a.defaultValue?bn(o,!!a.multiple,a.defaultValue,!0):bn(o,!!a.multiple,a.multiple?[]:"",!1))}o[_i]=a}catch(t){jd(e,e.return,t)}}break;case 6:if(Iu(t,e),Pu(e),4&r){if(null===e.stateNode)throw Error(xt(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){jd(e,e.return,t)}}break;case 3:if(Iu(t,e),Pu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{oo(t.containerInfo)}catch(t){jd(e,e.return,t)}break;case 4:default:Iu(t,e),Pu(e);break;case 13:Iu(t,e),Pu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(nd=fr())),4&r&&_u(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(du=(c=du)||u,Iu(t,e),du=c):Iu(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(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=d.stateNode,i=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=Tn("display",i))}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:Iu(t,e),Pu(e),4&r&&_u(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(xt(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(On(o,""),r.flags&=-33),Cu(e,wu(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;Eu(e,wu(e),a);break;default:throw Error(xt(161))}}catch(t){jd(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Mu(e,t,n){fu=e,Nu(e)}function Nu(e,t,n){for(var r=0!=(1&e.mode);null!==fu;){var o=fu,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||uu;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||du;l=uu;var c=du;if(uu=i,(du=s)&&!c)for(fu=o;null!==fu;)s=(i=fu).child,22===i.tag&&null!==i.memoizedState?Du(o):null!==s?(s.return=i,fu=s):Du(o);for(;null!==a;)fu=a,Nu(a),a=a.sibling;fu=o,uu=l,du=c}qu(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,fu=a):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:vc(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&as(t,a,r);break;case 3:var i=t.updateQueue;if(null!==i){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}as(t,i,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&oo(d)}}}break;default:throw Error(xt(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 a=t.return;try{yu(t)}catch(e){jd(t,a,e)}break;case 5:var i=t.return;try{yu(t)}catch(e){jd(t,i,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=qt.ReactCurrentDispatcher,Bu=qt.ReactCurrentOwner,$u=qt.ReactCurrentBatchConfig,Wu=0,Hu=null,Uu=null,Vu=0,Gu=0,Ku=Fi(0),Zu=0,Xu=null,Qu=0,Ju=0,Yu=0,ed=null,td=null,nd=0,rd=1/0,od=null,ad=!1,id=null,ld=null,sd=!1,cd=null,ud=0,dd=0,pd=null,fd=-1,hd=0;function md(){return 0!=(6&Wu)?fr():-1!==fd?fd:fd=fr()}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=qr)?e:e=void 0===(e=window.event)?16:fo(e.type)}function vd(e,t,n,r){if(50<dd)throw dd=0,pd=null,Error(xt(185));Mr(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=fr()+500,tl&&ol()))}function bd(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-wr(a),l=1<<i,s=o[i];-1===s?0!=(l&n)&&0==(l&r)||(o[i]=_r(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=Or(e,e===Hu?Vu:0);if(0===r)null!==n&&ur(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&ur(n),1===t)0===e.tag?function(e){tl=!0,rl(e)}(Ed.bind(null,e)):rl(Ed.bind(null,e)),wi((function(){0==(6&Wu)&&ol()})),n=null;else{switch(zr(r)){case 1:n=mr;break;case 4:n=gr;break;case 16:default:n=vr;break;case 536870912:n=yr}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(xt(327));var n=e.callbackNode;if(Dd()&&e.callbackNode!==n)return null;var r=Or(e,e===Hu?Vu:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=Td(e,r);else{t=r;var o=Wu;Wu|=2;var a=_d();for(Hu===e&&Vu===t||(od=null,rd=fr()+500,Ld(e,t));;)try{Md();break}catch(t){Od(e,t)}$l(),Fu.current=a,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,Ld(e,0),wd(e,r),bd(e,fr()),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],a=o.getSnapshot;o=o.value;try{if(!Ea(a(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=Td(e,r))&&(0!==(a=Ir(e))&&(r=a,t=xd(e,a))),1===t))throw n=Xu,Ld(e,0),wd(e,r),bd(e,fr()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(xt(345));case 2:case 5:zd(e,td,od);break;case 3:if(wd(e,r),(130023424&r)===r&&10<(t=nd+500-fr())){if(0!==Or(e,0))break;if(((o=e.suspendedLanes)&r)!==r){md(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=yi(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 i=31-wr(r);a=1<<i,(i=t[i])>o&&(o=i),r&=~a}if(r=o,10<(r=(120>(r=fr()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ju(r/1960))-r)){e.timeoutHandle=yi(zd.bind(null,e,td,od),r);break}zd(e,td,od);break;default:throw Error(xt(329))}}}return bd(e,fr()),e.callbackNode===n?yd.bind(null,e):null}function xd(e,t){var n=ed;return e.current.memoizedState.isDehydrated&&(Ld(e,t).flags|=256),2!==(e=Td(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-wr(t),r=1<<n;e[n]=-1,t&=~r}}function Ed(e){if(0!=(6&Wu))throw Error(xt(327));Dd();var t=Or(e,0);if(0==(1&t))return bd(e,fr()),null;var n=Td(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,Ld(e,0),wd(e,t),bd(e,fr()),n;if(6===n)throw Error(xt(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zd(e,td,od),bd(e,fr()),null}function Cd(e,t){var n=Wu;Wu|=1;try{return e(t)}finally{0===(Wu=n)&&(rd=fr()+500,tl&&ol())}}function kd(e){null!==cd&&0===cd.tag&&0==(6&Wu)&&Dd();var t=Wu;Wu|=1;var n=$u.transition,r=qr;try{if($u.transition=null,qr=1,e)return e()}finally{qr=r,$u.transition=n,0==(6&(Wu=t))&&ol()}}function Rd(){Gu=Ku.current,Bi(Ku)}function Ld(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,xi(n)),null!==Uu)for(n=Uu.return;null!==n;){var r=n;switch(vl(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Zi();break;case 3:ps(),Bi(Ui),Bi(Hi),bs();break;case 5:hs(r);break;case 4:ps();break;case 13:case 19:Bi(ms);break;case 10:Wl(r.type._context);break;case 22:case 23:Rd()}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!==Gl){for(t=0;t<Gl.length;t++)if(null!==(r=(n=Gl[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Gl=null}return e}function Od(e,t){for(;;){var n=Uu;try{if($l(),ys.current=fc,ks){for(var r=ws.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ks=!1}if(Ss=0,Cs=Es=ws=null,Rs=!1,Ls=0,Bu.current=null,null===n||null===n.return){Zu=1,Xu=t,Uu=null;break}e:{var a=e,i=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=Tc(i);if(null!==f){f.flags&=-257,Pc(f,i,l,0,t),1&f.mode&&Ic(a,c,t),s=c;var h=(t=f).updateQueue;if(null===h){var m=new Set;m.add(s),t.updateQueue=m}else h.add(s);break e}if(0==(1&t)){Ic(a,c,t),Id();break e}s=Error(xt(426))}else if(xl&&1&l.mode){var g=Tc(i);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),Pc(g,i,l,0,t),Il(Cc(s,l));break e}}a=s=Cc(s,l),4!==Zu&&(Zu=2),null===ed?ed=[a]:ed.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,rs(a,Oc(0,s,t));break e;case 1:l=s;var v=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===ld||!ld.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,rs(a,_c(a,l,t));break e}}a=a.return}while(null!==a)}qd(n)}catch(e){t=e,Uu===n&&null!==n&&(Uu=n=n.return);continue}break}}function _d(){var e=Fu.current;return Fu.current=fc,null===e?fc:e}function Id(){0!==Zu&&3!==Zu&&2!==Zu||(Zu=4),null===Hu||0==(268435455&Qu)&&0==(268435455&Ju)||wd(Hu,Vu)}function Td(e,t){var n=Wu;Wu|=2;var r=_d();for(Hu===e&&Vu===t||(od=null,Ld(e,t));;)try{Pd();break}catch(t){Od(e,t)}if($l(),Wu=n,Fu.current=r,null!==Uu)throw Error(xt(261));return Hu=null,Vu=0,Zu}function Pd(){for(;null!==Uu;)Nd(Uu)}function Md(){for(;null!==Uu&&!dr();)Nd(Uu)}function Nd(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=qr,o=$u.transition;try{$u.transition=null,qr=1,function(e,t,n,r){do{Dd()}while(null!==cd);if(0!=(6&Wu))throw Error(xt(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(xt(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-wr(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,a),e===Hu&&(Uu=Hu=null,Vu=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||sd||(sd=!0,Hd(vr,(function(){return Dd(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=$u.transition,$u.transition=null;var i=qr;qr=1;var l=Wu;Wu|=4,Bu.current=null,function(e,t){if(gi=io,_a(e=Oa())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var i=0,l=-1,s=-1,c=0,u=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=i+o),d!==a||0!==r&&3!==d.nodeType||(s=i+r),3===d.nodeType&&(i+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++c===o&&(l=i),p===a&&++u===r&&(s=i),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(vi={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:vc(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(xt(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),Tu(n,e),Ia(vi),io=!!gi,vi=gi=null,e.current=n,Mu(n),pr(),Wu=l,qr=i,$u.transition=a}else e.current=n;if(sd&&(sd=!1,cd=e,ud=o),a=e.pendingLanes,0===a&&(ld=null),function(e){if(Sr&&"function"==typeof Sr.onCommitFiberRoot)try{Sr.onCommitFiberRoot(xr,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),bd(e,fr()),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(ad)throw ad=!1,e=id,id=null,e;0!=(1&ud)&&0!==e.tag&&Dd(),a=e.pendingLanes,0!=(1&a)?e===pd?dd++:(dd=0,pd=e):dd=0,ol()}(e,t,n,r)}finally{$u.transition=o,qr=r}return null}function Dd(){if(null!==cd){var e=zr(ud),t=$u.transition,n=qr;try{if($u.transition=null,qr=16>e?16:e,null===cd)var r=!1;else{if(e=cd,cd=null,ud=0,0!=(6&Wu))throw Error(xt(331));var o=Wu;for(Wu|=4,fu=e.current;null!==fu;){var a=fu,i=a.child;if(0!=(16&fu.flags)){var l=a.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,a)}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=a.alternate;if(null!==h){var m=h.child;if(null!==m){h.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}fu=a}}if(0!=(2064&a.subtreeFlags)&&null!==i)i.return=a,fu=i;else e:for(;null!==fu;){if(0!=(2048&(a=fu).flags))switch(a.tag){case 0:case 11:case 15:vu(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,fu=v;break e}fu=a.return}}var b=e.current;for(fu=b;null!==fu;){var y=(i=fu).child;if(0!=(2064&i.subtreeFlags)&&null!==y)y.return=i,fu=y;else e:for(i=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===i){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,ol(),Sr&&"function"==typeof Sr.onPostCommitFiberRoot)try{Sr.onPostCommitFiberRoot(xr,e)}catch(e){}r=!0}return r}finally{qr=n,$u.transition=t}}return!1}function Ad(e,t,n){e=ts(e,t=Oc(0,t=Cc(n,t),1),1),t=md(),null!==e&&(Mr(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=ts(t,e=_c(t,e=Cc(n,e),1),1),e=md(),null!==t&&(Mr(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>fr()-nd?Ld(e,0):Yu|=n),bd(e,t)}function Bd(e,t){0===t&&(0==(1&e.mode)?t=1:(t=Rr,0==(130023424&(Rr<<=1))&&(Rr=4194304)));var n=md();null!==(e=Xl(e,t))&&(Mr(e,t,n),bd(e,n))}function $d(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Bd(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(xt(314))}null!==r&&r.delete(t),Bd(e,n)}function Hd(e,t){return cr(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,a){var i=2;if(r=e,"function"==typeof e)Gd(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case At:return Xd(n.children,o,a,t);case jt:i=8,o|=8;break;case Ft:return(e=Vd(12,n,t,2|o)).elementType=Ft,e.lanes=a,e;case Ht:return(e=Vd(13,n,t,o)).elementType=Ht,e.lanes=a,e;case Ut:return(e=Vd(19,n,t,o)).elementType=Ut,e.lanes=a,e;case Kt:return Qd(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Bt:i=10;break e;case $t:i=9;break e;case Wt:i=11;break e;case Vt:i=14;break e;case Gt:i=16,r=null;break e}throw Error(xt(130,null==e?e:typeof e,""))}return(t=Vd(i,n,t,o)).elementType=e,t.type=r,t.lanes=a,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=Kt,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,a,i,l,s){return e=new ep(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Vd(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Jl(a),e}function np(e){if(!e)return Wi;e:{if(or(e=e._reactInternals)!==e||1!==e.tag)throw Error(xt(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ki(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(xt(171))}if(1===e.tag){var n=e.type;if(Ki(n))return Qi(e,n,t)}return t}function rp(e,t,n,r,o,a,i,l,s){return(e=tp(n,r,!0,e,0,a,0,l,s)).context=np(null),n=e.current,(a=es(r=md(),o=gd(n))).callback=null!=t?t:null,ts(n,a,o),e.current.lanes=o,Mr(e,o,r),bd(e,r),e}function op(e,t,n,r){var o=t.current,a=md(),i=gd(o);return n=np(n),null===t.context?t.context=n:t.pendingContext=n,(t=es(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=ts(o,t,i))&&(vd(e,o,i,a),ns(e,o,i)),i}function ap(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function ip(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){ip(e,t),(e=e.alternate)&&ip(e,t)}Au=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ui.current)Nc=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return Nc=!1,function(e,t,n){switch(t.tag){case 3:Hc(t),_l();break;case 5:fs(t);break;case 1:Ki(t.type)&&Ji(t);break;case 4:ds(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;$i(Al,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?($i(ms,1&ms.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Jc(e,t,n):($i(ms,1&ms.current),null!==(e=au(e,t,n))?e.sibling:null);$i(ms,1&ms.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),$i(ms,ms.current),r)break;return null;case 22:case 23:return t.lanes=0,jc(e,t,n)}return au(e,t,n)}(e,t,n);Nc=0!=(131072&e.flags)}else Nc=!1,xl&&0!=(1048576&t.flags)&&ml(t,sl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ou(e,t),e=t.pendingProps;var o=Gi(t,Hi.current);Ul(t,n),o=Ts(null,t,r,e,o,n);var a=Ps();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,Ki(r)?(a=!0,Ji(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Jl(t),o.updater=yc,t.stateNode=o,o._reactInternals=t,Ec(t,r,e,n),t=Wc(null,t,r,!0,a,n)):(t.tag=0,xl&&a&&gl(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===Vt)return 14}return 2}(r),e=vc(r,e),o){case 0:t=Bc(null,t,r,e,n);break e;case 1:t=$c(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,vc(r.type,e),n);break e}throw Error(xt(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Bc(e,t,r,o=t.elementType===r?o:vc(r,o),n);case 1:return r=t.type,o=t.pendingProps,$c(e,t,r,o=t.elementType===r?o:vc(r,o),n);case 3:e:{if(Hc(t),null===e)throw Error(xt(387));r=t.pendingProps,o=(a=t.memoizedState).element,Yl(e,t),os(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Uc(e,t,r,n,o=Cc(Error(xt(423)),t));break e}if(r!==o){t=Uc(e,t,r,n,o=Cc(Error(xt(424)),t));break e}for(yl=ki(t.stateNode.containerInfo.firstChild),bl=t,xl=!0,Sl=null,n=Dl(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(_l(),r===o){t=au(e,t,n);break e}qc(e,t,r,n)}t=t.child}return t;case 5:return fs(t),null===e&&kl(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children,bi(r,o)?i=null:null!==a&&bi(r,a)&&(t.flags|=32),Fc(e,t),qc(e,t,i,n),t.child;case 6:return null===e&&kl(t),null;case 13:return Jc(e,t,n);case 4:return ds(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=zl(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:vc(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,a=t.memoizedProps,i=o.value,$i(Al,r._currentValue),r._currentValue=i,null!==a)if(Ea(a.value,i)){if(a.children===o.children&&!Ui.current){t=au(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){i=a.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===a.tag){(s=es(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?s.next=s:(s.next=u.next,u.next=s),c.pending=s}}a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),Hl(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===a.tag)i=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(i=a.return))throw Error(xt(341));i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),Hl(i,n,t),i=a.sibling}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===t){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}qc(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ul(t,n),r=r(o=Vl(o)),t.flags|=1,qc(e,t,r,n),t.child;case 14:return o=vc(r=t.type,t.pendingProps),Dc(e,t,r,o=vc(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:vc(r,o),ou(e,t),t.tag=1,Ki(r)?(e=!0,Ji(t)):e=!1,Ul(t,n),Sc(t,r,o),Ec(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(xt(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 a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var l=o;o=function(){var e=ap(i);l.call(e)}}op(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=ap(i);a.call(e)}}var i=rp(t,r,e,0,null,!1,0,"",fp);return e._reactRootContainer=i,e[Ii]=i.current,oi(8===e.nodeType?e.parentNode:e),kd(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=ap(s);l.call(e)}}var s=tp(e,0,!1,null,0,!1,0,"",fp);return e._reactRootContainer=s,e[Ii]=s.current,oi(8===e.nodeType?e.parentNode:e),kd((function(){op(t,s,n,r)})),s}(n,t,e,o,r);return ap(i)}up.prototype.render=cp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(xt(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[Ii]=null}},up.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fr();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Zr.length&&0!==t&&t<Zr[n].priority;n++);Zr.splice(n,0,e),0===n&&Yr(e)}},Dr=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,fr()),0==(6&Wu)&&(rd=fr()+500,ol()))}break;case 13:kd((function(){var t=Xl(e,1);if(null!==t){var n=md();vd(t,e,1,n)}})),lp(e,1)}},Ar=function(e){if(13===e.tag){var t=Xl(e,134217728);if(null!==t)vd(t,e,134217728,md());lp(e,134217728)}},jr=function(e){if(13===e.tag){var t=gd(e),n=Xl(e,t);if(null!==n)vd(n,e,t,md());lp(e,t)}},Fr=function(){return qr},Br=function(e,t){var n=qr;try{return qr=e,t()}finally{qr=n}},An=function(e,t,n){switch(t){case"input":if(hn(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=Di(r);if(!o)throw Error(xt(90));cn(r),hn(r,o)}}}break;case"textarea":Sn(e,n);break;case"select":null!=(t=n.value)&&bn(e,!!n.multiple,t,!1)}},Hn=Cd,Un=kd;var mp={usingClientEntryPoint:!1,Events:[qi,zi,Di,$n,Wn,Cd]},gp={findFiberByHostInstance:Ni,bundleType:0,version:"18.3.1",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:qt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=lr(e))?null:e.stateNode},findFiberByHostInstance:gp.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var bp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bp.isDisabled&&bp.supportsFiber)try{xr=bp.inject(vp),Sr=bp}catch(Rn){}}ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mp,ht.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!dp(t))throw Error(xt(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Dt,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},ht.createRoot=function(e,t){if(!dp(e))throw Error(xt(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[Ii]=t.current,oi(8===e.nodeType?e.parentNode:e),new cp(t)},ht.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(xt(188));throw e=Object.keys(e).join(","),Error(xt(268,e))}return e=null===(e=lr(t))?null:e.stateNode},ht.flushSync=function(e){return kd(e)},ht.hydrate=function(e,t,n){if(!pp(t))throw Error(xt(200));return hp(null,e,t,!0,n)},ht.hydrateRoot=function(e,t,n){if(!dp(e))throw Error(xt(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",i=sp;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(i=n.onRecoverableError)),t=rp(t,null,e,1,null!=n?n:null,o,0,a,i),e[Ii]=t.current,oi(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)},ht.render=function(e,t,n){if(!pp(t))throw Error(xt(200));return hp(null,e,t,!1,n)},ht.unmountComponentAtNode=function(e){if(!pp(e))throw Error(xt(40));return!!e._reactRootContainer&&(kd((function(){hp(null,null,e,!1,(function(){e._reactRootContainer=null,e[Ii]=null}))})),!0)},ht.unstable_batchedUpdates=Cd,ht.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!pp(n))throw Error(xt(200));if(null==e||void 0===e._reactInternals)throw Error(xt(38));return hp(e,t,n,!1,r)},ht.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),ft.exports=ht;var yp=ft.exports,xp=n(yp),Sp=yp;function wp(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."}pt.createRoot=Sp.createRoot,pt.hydrateRoot=Sp.hydrateRoot;var Ep=Object.freeze({__proto__:null,default:wp}),Cp="$$material";function kp(){return kp=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},kp.apply(this,arguments)}function Rp(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Lp(){return Lp=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},Lp.apply(this,arguments)}function Op(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var _p=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ip=Op((function(e){return _p.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var Tp=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}(),Pp="-ms-",Mp="-moz-",Np="-webkit-",qp="comm",zp="rule",Dp="decl",Ap="@keyframes",jp=Math.abs,Fp=String.fromCharCode,Bp=Object.assign;function $p(e){return e.trim()}function Wp(e,t,n){return e.replace(t,n)}function Hp(e,t){return e.indexOf(t)}function Up(e,t){return 0|e.charCodeAt(t)}function Vp(e,t,n){return e.slice(t,n)}function Gp(e){return e.length}function Kp(e){return e.length}function Zp(e,t){return t.push(e),e}var Xp=1,Qp=1,Jp=0,Yp=0,ef=0,tf="";function nf(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Xp,column:Qp,length:i,return:""}}function rf(e,t){return Bp(nf("",null,null,"",null,null,0),e,{length:-e.length},t)}function of(){return ef=Yp>0?Up(tf,--Yp):0,Qp--,10===ef&&(Qp=1,Xp--),ef}function af(){return ef=Yp<Jp?Up(tf,Yp++):0,Qp++,10===ef&&(Qp=1,Xp++),ef}function lf(){return Up(tf,Yp)}function sf(){return Yp}function cf(e,t){return Vp(tf,e,t)}function uf(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 df(e){return Xp=Qp=1,Jp=Gp(tf=e),Yp=0,[]}function pf(e){return tf="",e}function ff(e){return $p(cf(Yp-1,gf(91===e?e+2:40===e?e+1:e)))}function hf(e){for(;(ef=lf())&&ef<33;)af();return uf(e)>2||uf(ef)>3?"":" "}function mf(e,t){for(;--t&&af()&&!(ef<48||ef>102||ef>57&&ef<65||ef>70&&ef<97););return cf(e,sf()+(t<6&&32==lf()&&32==af()))}function gf(e){for(;af();)switch(ef){case e:return Yp;case 34:case 39:34!==e&&39!==e&&gf(ef);break;case 40:41===e&&gf(e);break;case 92:af()}return Yp}function vf(e,t){for(;af()&&e+ef!==57&&(e+ef!==84||47!==lf()););return"/*"+cf(t,Yp-1)+"*"+Fp(47===e?e:af())}function bf(e){for(;!uf(lf());)af();return cf(e,Yp)}function yf(e){return pf(xf("",null,null,null,[""],e=df(e),0,[0],e))}function xf(e,t,n,r,o,a,i,l,s){for(var c=0,u=0,d=i,p=0,f=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,S=a,w=r,E=y;g;)switch(h=b,b=af()){case 40:if(108!=h&&58==Up(E,d-1)){-1!=Hp(E+=Wp(ff(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=ff(b);break;case 9:case 10:case 13:case 32:E+=hf(h);break;case 92:E+=mf(sf()-1,7);continue;case 47:switch(lf()){case 42:case 47:Zp(wf(vf(af(),sf()),t,n),s);break;default:E+="/"}break;case 123*m:l[c++]=Gp(E)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(E=Wp(E,/\f/g,"")),f>0&&Gp(E)-d&&Zp(f>32?Ef(E+";",r,n,d-1):Ef(Wp(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(Zp(w=Sf(E,t,n,c,u,o,l,y,x=[],S=[],d),a),123===b)if(0===u)xf(E,t,w,w,x,a,d,l,S);else switch(99===p&&110===Up(E,3)?100:p){case 100:case 108:case 109:case 115:xf(e,w,w,r&&Zp(Sf(e,w,w,0,0,o,l,y,o,x=[],d),S),o,S,d,l,r?x:S);break;default:xf(E,w,w,w,[""],S,0,l,S)}}c=u=f=0,m=v=1,y=E="",d=i;break;case 58:d=1+Gp(E),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==of())continue;switch(E+=Fp(b),b*m){case 38:v=u>0?1:(E+="\f",-1);break;case 44:l[c++]=(Gp(E)-1)*v,v=1;break;case 64:45===lf()&&(E+=ff(af())),p=lf(),u=d=Gp(y=E+=bf(sf())),b++;break;case 45:45===h&&2==Gp(E)&&(m=0)}}return a}function Sf(e,t,n,r,o,a,i,l,s,c,u){for(var d=o-1,p=0===o?a:[""],f=Kp(p),h=0,m=0,g=0;h<r;++h)for(var v=0,b=Vp(e,d+1,d=jp(m=i[h])),y=e;v<f;++v)(y=$p(m>0?p[v]+" "+b:Wp(b,/&\f/g,p[v])))&&(s[g++]=y);return nf(e,t,n,0===o?zp:l,s,c,u)}function wf(e,t,n){return nf(e,t,n,qp,Fp(ef),Vp(e,2,-2),0)}function Ef(e,t,n,r){return nf(e,t,n,Dp,Vp(e,0,r),Vp(e,r+1,-1),r)}function Cf(e,t){for(var n="",r=Kp(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function kf(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Dp:return e.return=e.return||e.value;case qp:return"";case Ap:return e.return=e.value+"{"+Cf(e.children,r)+"}";case zp:e.value=e.props.join(",")}return Gp(n=Cf(e.children,r))?e.return=e.value+"{"+n+"}":""}function Rf(e){var t=Kp(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}var Lf=function(e,t,n){for(var r=0,o=0;r=o,o=lf(),38===r&&12===o&&(t[n]=1),!uf(o);)af();return cf(e,Yp)},Of=function(e,t){return pf(function(e,t){var n=-1,r=44;do{switch(uf(r)){case 0:38===r&&12===lf()&&(t[n]=1),e[n]+=Lf(Yp-1,t,n);break;case 2:e[n]+=ff(r);break;case 4:if(44===r){e[++n]=58===lf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Fp(r)}}while(r=af());return e}(df(e),t))},_f=new WeakMap,If=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)||_f.get(n))&&!r){_f.set(e,!0);for(var o=[],a=Of(t,o),i=n.props,l=0,s=0;l<a.length;l++)for(var c=0;c<i.length;c++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[c]):i[c]+" "+a[l]}}},Tf=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Pf(e,t){switch(function(e,t){return 45^Up(e,0)?(((t<<2^Up(e,0))<<2^Up(e,1))<<2^Up(e,2))<<2^Up(e,3):0}(e,t)){case 5103:return Np+"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 Np+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Np+e+Mp+e+Pp+e+e;case 6828:case 4268:return Np+e+Pp+e+e;case 6165:return Np+e+Pp+"flex-"+e+e;case 5187:return Np+e+Wp(e,/(\w+).+(:[^]+)/,Np+"box-$1$2"+Pp+"flex-$1$2")+e;case 5443:return Np+e+Pp+"flex-item-"+Wp(e,/flex-|-self/,"")+e;case 4675:return Np+e+Pp+"flex-line-pack"+Wp(e,/align-content|flex-|-self/,"")+e;case 5548:return Np+e+Pp+Wp(e,"shrink","negative")+e;case 5292:return Np+e+Pp+Wp(e,"basis","preferred-size")+e;case 6060:return Np+"box-"+Wp(e,"-grow","")+Np+e+Pp+Wp(e,"grow","positive")+e;case 4554:return Np+Wp(e,/([^-])(transform)/g,"$1"+Np+"$2")+e;case 6187:return Wp(Wp(Wp(e,/(zoom-|grab)/,Np+"$1"),/(image-set)/,Np+"$1"),e,"")+e;case 5495:case 3959:return Wp(e,/(image-set\([^]*)/,Np+"$1$`$1");case 4968:return Wp(Wp(e,/(.+:)(flex-)?(.*)/,Np+"box-pack:$3"+Pp+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Np+e+e;case 4095:case 3583:case 4068:case 2532:return Wp(e,/(.+)-inline(.+)/,Np+"$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(Gp(e)-1-t>6)switch(Up(e,t+1)){case 109:if(45!==Up(e,t+4))break;case 102:return Wp(e,/(.+:)(.+)-([^]+)/,"$1"+Np+"$2-$3$1"+Mp+(108==Up(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Hp(e,"stretch")?Pf(Wp(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Up(e,t+1))break;case 6444:switch(Up(e,Gp(e)-3-(~Hp(e,"!important")&&10))){case 107:return Wp(e,":",":"+Np)+e;case 101:return Wp(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Np+(45===Up(e,14)?"inline-":"")+"box$3$1"+Np+"$2$3$1"+Pp+"$2box$3")+e}break;case 5936:switch(Up(e,t+11)){case 114:return Np+e+Pp+Wp(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Np+e+Pp+Wp(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Np+e+Pp+Wp(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Np+e+Pp+e+e}return e}var Mf,Nf="undefined"!=typeof document,qf=Nf?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 Op((function(){var e={};return function(t){return e[t]}}))})),zf=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Dp:e.return=Pf(e.value,e.length);break;case Ap:return Cf([rf(e,{value:Wp(e.value,"@","@"+Np)})],r);case zp: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 Cf([rf(e,{props:[Wp(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Cf([rf(e,{props:[Wp(t,/:(plac\w+)/,":"+Np+"input-$1")]}),rf(e,{props:[Wp(t,/:(plac\w+)/,":-moz-$1")]}),rf(e,{props:[Wp(t,/:(plac\w+)/,Pp+"input-$1")]})],r)}return""}))}}],Df=function(e){var t=e.key;if(Nf&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||zf,i={},l=[];Nf&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)})));var s,c=[If,Tf];if(Nf){var u,d=[kf,(s=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],p=Rf(c.concat(a,d));o=function(e,t,n,r){u=n,function(e){Cf(yf(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(v.inserted[t.name]=!0)}}else{var f=[kf],h=Rf(c.concat(a,f)),m=qf(a)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=function(e){return Cf(yf(e),h)}(e?e+"{"+t.styles+"}":t.styles)),m[n]};o=function(e,t,n,r){var o=t.name,a=g(e,t);return void 0===v.compat?(r&&(v.inserted[o]=!0),a):r?void(v.inserted[o]=a):a}}var v={key:t,sheet:new Tp({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return v.sheet.hydrate(l),v},Af={exports:{}},jf={},Ff=Symbol.for("react.element"),Bf=Symbol.for("react.portal"),$f=Symbol.for("react.fragment"),Wf=Symbol.for("react.strict_mode"),Hf=Symbol.for("react.profiler"),Uf=Symbol.for("react.provider"),Vf=Symbol.for("react.context"),Gf=Symbol.for("react.server_context"),Kf=Symbol.for("react.forward_ref"),Zf=Symbol.for("react.suspense"),Xf=Symbol.for("react.suspense_list"),Qf=Symbol.for("react.memo"),Jf=Symbol.for("react.lazy"),Yf=Symbol.for("react.offscreen");function eh(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ff:switch(e=e.type){case $f:case Hf:case Wf:case Zf:case Xf:return e;default:switch(e=e&&e.$$typeof){case Gf:case Vf:case Kf:case Jf:case Qf:case Uf:return e;default:return t}}case Bf:return t}}}Mf=Symbol.for("react.module.reference"),jf.ContextConsumer=Vf,jf.ContextProvider=Uf,jf.Element=Ff,jf.ForwardRef=Kf,jf.Fragment=$f,jf.Lazy=Jf,jf.Memo=Qf,jf.Portal=Bf,jf.Profiler=Hf,jf.StrictMode=Wf,jf.Suspense=Zf,jf.SuspenseList=Xf,jf.isAsyncMode=function(){return!1},jf.isConcurrentMode=function(){return!1},jf.isContextConsumer=function(e){return eh(e)===Vf},jf.isContextProvider=function(e){return eh(e)===Uf},jf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ff},jf.isForwardRef=function(e){return eh(e)===Kf},jf.isFragment=function(e){return eh(e)===$f},jf.isLazy=function(e){return eh(e)===Jf},jf.isMemo=function(e){return eh(e)===Qf},jf.isPortal=function(e){return eh(e)===Bf},jf.isProfiler=function(e){return eh(e)===Hf},jf.isStrictMode=function(e){return eh(e)===Wf},jf.isSuspense=function(e){return eh(e)===Zf},jf.isSuspenseList=function(e){return eh(e)===Xf},jf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===$f||e===Hf||e===Wf||e===Zf||e===Xf||e===Yf||"object"==typeof e&&null!==e&&(e.$$typeof===Jf||e.$$typeof===Qf||e.$$typeof===Uf||e.$$typeof===Vf||e.$$typeof===Kf||e.$$typeof===Mf||void 0!==e.getModuleId)},jf.typeOf=eh,Af.exports=jf;var th=Af.exports,nh=th,rh={};rh[nh.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},rh[nh.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var oh="undefined"!=typeof document;var ah=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===oh&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},ih=function(e,t,n){ah(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",a=t;do{var i=e.insert(t===a?"."+r:"",a,e.sheet,!0);oh||void 0===i||(o+=i),a=a.next}while(void 0!==a);if(!oh&&0!==o.length)return o}};function lh(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)}var sh={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ch=/[A-Z]|^ms/g,uh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,dh=function(e){return 45===e.charCodeAt(1)},ph=function(e){return null!=e&&"boolean"!=typeof e},fh=Op((function(e){return dh(e)?e:e.replace(ch,"-$&").toLowerCase()})),hh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(uh,(function(e,t,n){return gh={name:t,styles:n,next:gh},t}))}return 1===sh[e]||dh(e)||"number"!=typeof t||0===t?t:t+"px"};function mh(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 gh={name:n.name,styles:n.styles,next:gh},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)gh={name:r.name,styles:r.styles,next:gh},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+=mh(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)ph(i)&&(r+=fh(a)+":"+hh(a,i)+";");else if(Array.isArray(i)&&"string"==typeof i[0]&&null==t)for(var l=0;l<i.length;l++)ph(i[l])&&(r+=fh(a)+":"+hh(a,i[l])+";");else{var s=mh(e,t,i);switch(a){case"animation":case"animationName":r+=fh(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var o=gh,a=n(e);return gh=o,mh(e,t,a)}}return n}var gh,vh=/label:\s*([^\s;\n{]+)\s*(;|$)/g,bh=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="";gh=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=mh(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=mh(n,t,e[i]),r&&(o+=a[i]);vh.lastIndex=0;for(var l,s="";null!==(l=vh.exec(o));)s+="-"+l[1];return{name:lh(o)+s,styles:o,next:gh}},yh="undefined"!=typeof document,xh=function(e){return e()},Sh=!!G.useInsertionEffect&&G.useInsertionEffect,wh=yh&&Sh||xh,Eh=Sh||U.useLayoutEffect,Ch="undefined"!=typeof document,kh=U.createContext("undefined"!=typeof HTMLElement?Df({key:"css"}):null),Rh=kh.Provider,Lh=function(e){return U.forwardRef((function(t,n){var r=U.useContext(kh);return e(t,r,n)}))};Ch||(Lh=function(e){return function(t){var n=U.useContext(kh);return null===n?(n=Df({key:"css"}),U.createElement(kh.Provider,{value:n},e(t,n))):e(t,n)}});var Oh=U.createContext({}),_h=Lh((function(e,t){var n=e.styles,r=bh([n],void 0,U.useContext(Oh));if(!Ch){for(var o,a=r.name,i=r.styles,l=r.next;void 0!==l;)a+=" "+l.name,i+=l.styles,l=l.next;var s=!0===t.compat,c=t.insert("",{name:a,styles:i},t.sheet,s);return s?null:U.createElement("style",((o={})["data-emotion"]=t.key+"-global "+a,o.dangerouslySetInnerHTML={__html:c},o.nonce=t.sheet.nonce,o))}var u=U.useRef();return Eh((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,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),u.current=[n,o],function(){n.flush()}}),[t]),Eh((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&ih(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 Ih(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return bh(t)}var Th=function(){var e=Ih.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_"}}},Ph=/[A-Z]|^ms/g,Mh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Nh=function(e){return 45===e.charCodeAt(1)},qh=function(e){return null!=e&&"boolean"!=typeof e},zh=Op((function(e){return Nh(e)?e:e.replace(Ph,"-$&").toLowerCase()})),Dh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Mh,(function(e,t,n){return jh={name:t,styles:n,next:jh},t}))}return 1===sh[e]||Nh(e)||"number"!=typeof t||0===t?t:t+"px"};function Ah(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 jh={name:n.name,styles:n.styles,next:jh},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)jh={name:r.name,styles:r.styles,next:jh},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+=Ah(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":qh(i)&&(r+=zh(a)+":"+Dh(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=Ah(e,t,i);switch(a){case"animation":case"animationName":r+=zh(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var s=0;s<i.length;s++)qh(i[s])&&(r+=zh(a)+":"+Dh(a,i[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=jh,a=n(e);return jh=o,Ah(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var jh,Fh=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Bh=Ip,$h=function(e){return"theme"!==e},Wh=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Bh:$h},Hh=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},Uh="undefined"!=typeof document,Vh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;ah(t,n,r);var o=wh((function(){return ih(t,n,r)}));if(!Uh&&void 0!==o){for(var a,i=n.name,l=n.next;void 0!==l;)i+=" "+l.name,l=l.next;return U.createElement("style",((a={})["data-emotion"]=t.key+" "+i,a.dangerouslySetInnerHTML={__html:o},a.nonce=t.sheet.nonce,a))}return null},Gh=function e(t,n){var r,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var l=Hh(t,n,a),s=l||Wh(i),c=!s("as");return function(){var u=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)d.push(u[f],u[0][f])}var h=Lh((function(e,t,n){var r,a,u,p,f=c&&e.as||i,h="",m=[],g=e;if(null==e.theme){for(var v in g={},e)g[v]=e[v];g.theme=U.useContext(Oh)}"string"==typeof e.className?(r=t.registered,a=m,u=e.className,p="",u.split(" ").forEach((function(e){void 0!==r[e]?a.push(r[e]+";"):p+=e+" "})),h=p):null!=e.className&&(h=e.className+" ");var b=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="";jh=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=Ah(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=Ah(n,t,e[i]),r&&(o+=a[i]);Fh.lastIndex=0;for(var l,s="";null!==(l=Fh.exec(o));)s+="-"+l[1];return{name:lh(o)+s,styles:o,next:jh}}(d.concat(m),t.registered,g);h+=t.key+"-"+b.name,void 0!==o&&(h+=" "+o);var y=c&&void 0===l?Wh(f):s,x={};for(var S in e)c&&"as"===S||y(S)&&(x[S]=e[S]);return x.className=h,x.ref=n,U.createElement(U.Fragment,null,U.createElement(Vh,{cache:t,serialized:b,isStringTag:"string"==typeof f}),U.createElement(f,x))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,Lp({},n,r,{shouldForwardProp:Hh(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){Gh[e]=Gh(e)}));var Kh={exports:{}},Zh={},Xh=U,Qh=Symbol.for("react.element"),Jh=Symbol.for("react.fragment"),Yh=Object.prototype.hasOwnProperty,em=Xh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tm={key:!0,ref:!0,__self:!0,__source:!0};function nm(e,t,n){var r,o={},a=null,i=null;for(r in void 0!==n&&(a=""+n),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)Yh.call(t,r)&&!tm.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:Qh,type:e,key:a,ref:i,props:o,_owner:em.current}}Zh.Fragment=Jh,Zh.jsx=nm,Zh.jsxs=nm,Kh.exports=Zh;var rm=Kh.exports;let om;function am(e){const{injectFirst:t,children:n}=e;return t&&om?rm.jsx(Rh,{value:om,children:n}):n}function im(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(_h,{styles:r})}
|
|
26
|
+
*/function xt(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 St=new Set,wt={};function Et(e,t){Ct(e,t),Ct(e+"Capture",t)}function Ct(e,t){for(wt[e]=t,e=0;e<t.length;e++)St.add(t[e])}var kt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Rt=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]*$/,Ot={},_t={};function It(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var 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 Mt(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!!Rt.call(_t,e)||!Rt.call(Ot,e)&&(Lt.test(e)?_t[e]=!0:(Ot[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,Mt);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,Mt);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,Mt);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 qt=bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,At=Symbol.for("react.element"),zt=Symbol.for("react.portal"),Dt=Symbol.for("react.fragment"),jt=Symbol.for("react.strict_mode"),Ft=Symbol.for("react.profiler"),$t=Symbol.for("react.provider"),Bt=Symbol.for("react.context"),Wt=Symbol.for("react.forward_ref"),Ht=Symbol.for("react.suspense"),Ut=Symbol.for("react.suspense_list"),Vt=Symbol.for("react.memo"),Gt=Symbol.for("react.lazy"),Kt=Symbol.for("react.offscreen"),Zt=Symbol.iterator;function Xt(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Zt&&e[Zt]||e["@@iterator"])?e:null}var Qt,Jt=Object.assign;function Yt(e){if(void 0===Qt)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Qt=t&&t[1]||""}return"\n"+Qt+e}var en=!1;function tn(e,t){if(!e||en)return"";en=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var s="\n"+o[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=i&&0<=l);break}}}finally{en=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Yt(e):""}function nn(e){switch(e.tag){case 5:return Yt(e.type);case 16:return Yt("Lazy");case 13:return Yt("Suspense");case 19:return Yt("SuspenseList");case 0:case 2:case 15:return e=tn(e.type,!1);case 11:return e=tn(e.type.render,!1);case 1:return e=tn(e.type,!0);default:return""}}function rn(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 Ft:return"Profiler";case jt:return"StrictMode";case Ht:return"Suspense";case Ut:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Bt:return(e.displayName||"Context")+".Consumer";case $t: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 Vt:return null!==(t=e.displayName||null)?t:rn(e.type)||"Memo";case Gt:t=e._payload,e=e._init;try{return rn(e(t))}catch(e){}}return null}function on(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 rn(t);case 8:return t===jt?"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 an(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ln(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function sn(e){e._valueTracker||(e._valueTracker=function(e){var t=ln(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function cn(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ln(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function un(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 dn(e,t){var n=t.checked;return Jt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function pn(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=an(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 fn(e,t){null!=(t=t.checked)&&Nt(e,"checked",t,!1)}function hn(e,t){fn(e,t);var n=an(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")?gn(e,t.type,n):t.hasOwnProperty("defaultValue")&&gn(e,t.type,an(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function mn(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 gn(e,t,n){"number"===t&&un(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vn=Array.isArray;function bn(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=""+an(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 yn(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(xt(91));return Jt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function xn(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(xt(92));if(vn(n)){if(1<n.length)throw Error(xt(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:an(n)}}function Sn(e,t){var n=an(t.value),r=an(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 wn(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function En(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 Cn(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?En(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var kn,Rn,Ln=(Rn=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((kn=kn||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=kn.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 Rn(e,t)}))}:Rn);function On(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 _n={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||_n.hasOwnProperty(e)&&_n[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(_n).forEach((function(e){In.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_n[t]=_n[e]}))}));var Mn=Jt({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(Mn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(xt(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(xt(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(xt(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(xt(62))}}function qn(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 An=null;function zn(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Dn=null,jn=null,Fn=null;function $n(e){if(e=qi(e)){if("function"!=typeof Dn)throw Error(xt(280));var t=e.stateNode;t&&(t=zi(t),Dn(e.stateNode,e.type,t))}}function Bn(e){jn?Fn?Fn.push(e):Fn=[e]:jn=e}function Wn(){if(jn){var e=jn,t=Fn;if(Fn=jn=null,$n(e),t)for(e=0;e<t.length;e++)$n(t[e])}}function Hn(e,t){return e(t)}function Un(){}var Vn=!1;function Gn(e,t,n){if(Vn)return e(t,n);Vn=!0;try{return Hn(e,t,n)}finally{Vn=!1,(null!==jn||null!==Fn)&&(Un(),Wn())}}function Kn(e,t){var n=e.stateNode;if(null===n)return null;var r=zi(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(xt(231,t,typeof n));return n}var Zn=!1;if(kt)try{var Xn={};Object.defineProperty(Xn,"passive",{get:function(){Zn=!0}}),window.addEventListener("test",Xn,Xn),window.removeEventListener("test",Xn,Xn)}catch(Rn){Zn=!1}function Qn(e,t,n,r,o,a,i,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Jn=!1,Yn=null,er=!1,tr=null,nr={onError:function(e){Jn=!0,Yn=e}};function rr(e,t,n,r,o,a,i,l,s){Jn=!1,Yn=null,Qn.apply(nr,arguments)}function or(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 ar(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(or(e)!==e)throw Error(xt(188))}function lr(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=or(e)))throw Error(xt(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return ir(o),e;if(a===r)return ir(o),t;a=a.sibling}throw Error(xt(188))}if(n.return!==r.return)n=o,r=a;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i){for(l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}if(!i)throw Error(xt(189))}}if(n.alternate!==r)throw Error(xt(190))}if(3!==n.tag)throw Error(xt(188));return n.stateNode.current===n?e:t}(e),null!==e?sr(e):null}function sr(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=sr(e);if(null!==t)return t;e=e.sibling}return null}var cr=yt.unstable_scheduleCallback,ur=yt.unstable_cancelCallback,dr=yt.unstable_shouldYield,pr=yt.unstable_requestPaint,fr=yt.unstable_now,hr=yt.unstable_getCurrentPriorityLevel,mr=yt.unstable_ImmediatePriority,gr=yt.unstable_UserBlockingPriority,vr=yt.unstable_NormalPriority,br=yt.unstable_LowPriority,yr=yt.unstable_IdlePriority,xr=null,Sr=null;var wr=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Er(e)/Cr|0)|0},Er=Math.log,Cr=Math.LN2;var kr=64,Rr=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 Or(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=Lr(l):0!==(a&=i)&&(r=Lr(a))}else 0!==(i=n&~o)?r=Lr(i):0!==a&&(r=Lr(a));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!=(4194240&a)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-wr(t)),r|=e[n],t&=~o;return r}function _r(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=kr;return 0==(4194240&(kr<<=1))&&(kr=64),e}function Pr(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Mr(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-wr(t)]=n}function Nr(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-wr(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var qr=0;function Ar(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var zr,Dr,jr,Fr,$r,Br=!1,Wr=[],Hr=null,Ur=null,Vr=null,Gr=new Map,Kr=new Map,Zr=[],Xr="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 Qr(e,t){switch(e){case"focusin":case"focusout":Hr=null;break;case"dragenter":case"dragleave":Ur=null;break;case"mouseover":case"mouseout":Vr=null;break;case"pointerover":case"pointerout":Gr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kr.delete(t.pointerId)}}function Jr(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=qi(t))&&Dr(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Yr(e){var t=Ni(e.target);if(null!==t){var n=or(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=ar(n)))return e.blockedOn=t,void $r(e.priority,(function(){jr(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 eo(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=po(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=qi(n))&&Dr(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);An=r,n.target.dispatchEvent(r),An=null,t.shift()}return!0}function to(e,t,n){eo(e)&&n.delete(t)}function no(){Br=!1,null!==Hr&&eo(Hr)&&(Hr=null),null!==Ur&&eo(Ur)&&(Ur=null),null!==Vr&&eo(Vr)&&(Vr=null),Gr.forEach(to),Kr.forEach(to)}function ro(e,t){e.blockedOn===t&&(e.blockedOn=null,Br||(Br=!0,yt.unstable_scheduleCallback(yt.unstable_NormalPriority,no)))}function oo(e){function t(t){return ro(t,e)}if(0<Wr.length){ro(Wr[0],e);for(var n=1;n<Wr.length;n++){var r=Wr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Hr&&ro(Hr,e),null!==Ur&&ro(Ur,e),null!==Vr&&ro(Vr,e),Gr.forEach(t),Kr.forEach(t),n=0;n<Zr.length;n++)(r=Zr[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Zr.length&&null===(n=Zr[0]).blockedOn;)Yr(n),null===n.blockedOn&&Zr.shift()}var ao=qt.ReactCurrentBatchConfig,io=!0;function lo(e,t,n,r){var o=qr,a=ao.transition;ao.transition=null;try{qr=1,co(e,t,n,r)}finally{qr=o,ao.transition=a}}function so(e,t,n,r){var o=qr,a=ao.transition;ao.transition=null;try{qr=4,co(e,t,n,r)}finally{qr=o,ao.transition=a}}function co(e,t,n,r){if(io){var o=po(e,t,n,r);if(null===o)ii(e,t,r,uo,n),Qr(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Hr=Jr(Hr,e,t,n,r,o),!0;case"dragenter":return Ur=Jr(Ur,e,t,n,r,o),!0;case"mouseover":return Vr=Jr(Vr,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Gr.set(a,Jr(Gr.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Kr.set(a,Jr(Kr.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Qr(e,r),4&t&&-1<Xr.indexOf(e)){for(;null!==o;){var a=qi(o);if(null!==a&&zr(a),null===(a=po(e,t,n,r))&&ii(e,t,r,uo,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else ii(e,t,r,null,n)}}var uo=null;function po(e,t,n,r){if(uo=null,null!==(e=Ni(e=zn(r))))if(null===(t=or(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=ar(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 uo=e,null}function fo(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(hr()){case mr:return 1;case gr:return 4;case vr:case br:return 16;case yr:return 536870912;default:return 16}default:return 16}}var ho=null,mo=null,go=null;function vo(){if(go)return go;var e,t,n=mo,r=n.length,o="value"in ho?ho.value:ho.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return go=o.slice(e,1<t?1-t:void 0)}function bo(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 yo(){return!0}function xo(){return!1}function So(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?yo:xo,this.isPropagationStopped=xo,this}return Jt(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=yo)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=yo)},persist:function(){},isPersistent:yo}),t}var wo,Eo,Co,ko={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ro=So(ko),Lo=Jt({},ko,{view:0,detail:0}),Oo=So(Lo),_o=Jt({},Lo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$o,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!==Co&&(Co&&"mousemove"===e.type?(wo=e.screenX-Co.screenX,Eo=e.screenY-Co.screenY):Eo=wo=0,Co=e),wo)},movementY:function(e){return"movementY"in e?e.movementY:Eo}}),Io=So(_o),To=So(Jt({},_o,{dataTransfer:0})),Po=So(Jt({},Lo,{relatedTarget:0})),Mo=So(Jt({},ko,{animationName:0,elapsedTime:0,pseudoElement:0})),No=Jt({},ko,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),qo=So(No),Ao=So(Jt({},ko,{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"},jo={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fo(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=jo[e])&&!!t[e]}function $o(){return Fo}var Bo=Jt({},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=bo(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:$o,charCode:function(e){return"keypress"===e.type?bo(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?bo(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Wo=So(Bo),Ho=So(Jt({},_o,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Uo=So(Jt({},Lo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$o})),Vo=So(Jt({},ko,{propertyName:0,elapsedTime:0,pseudoElement:0})),Go=Jt({},_o,{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}),Ko=So(Go),Zo=[9,13,27,32],Xo=kt&&"CompositionEvent"in window,Qo=null;kt&&"documentMode"in document&&(Qo=document.documentMode);var Jo=kt&&"TextEvent"in window&&!Qo,Yo=kt&&(!Xo||Qo&&8<Qo&&11>=Qo),ea=String.fromCharCode(32),ta=!1;function na(e,t){switch(e){case"keyup":return-1!==Zo.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ra(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var oa=!1;var aa={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 ia(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!aa[e.type]:"textarea"===t}function la(e,t,n,r){Bn(r),0<(t=si(t,"onChange")).length&&(n=new Ro("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var sa=null,ca=null;function ua(e){ei(e,0)}function da(e){if(cn(Ai(e)))return e}function pa(e,t){if("change"===e)return t}var fa=!1;if(kt){var ha;if(kt){var ma="oninput"in document;if(!ma){var ga=document.createElement("div");ga.setAttribute("oninput","return;"),ma="function"==typeof ga.oninput}ha=ma}else ha=!1;fa=ha&&(!document.documentMode||9<document.documentMode)}function va(){sa&&(sa.detachEvent("onpropertychange",ba),ca=sa=null)}function ba(e){if("value"===e.propertyName&&da(ca)){var t=[];la(t,ca,e,zn(e)),Gn(ua,t)}}function ya(e,t,n){"focusin"===e?(va(),ca=n,(sa=t).attachEvent("onpropertychange",ba)):"focusout"===e&&va()}function xa(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return da(ca)}function Sa(e,t){if("click"===e)return da(t)}function wa(e,t){if("input"===e||"change"===e)return da(t)}var Ea="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Ca(e,t){if(Ea(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(!Rt.call(t,o)||!Ea(e[o],t[o]))return!1}return!0}function ka(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ra(e,t){var n,r=ka(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=ka(r)}}function La(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?La(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Oa(){for(var e=window,t=un();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=un((e=t.contentWindow).document)}return t}function _a(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 Ia(e){var t=Oa(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&La(n.ownerDocument.documentElement,n)){if(null!==r&&_a(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=Ra(n,a);var i=Ra(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ta=kt&&"documentMode"in document&&11>=document.documentMode,Pa=null,Ma=null,Na=null,qa=!1;function Aa(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;qa||null==Pa||Pa!==un(r)||("selectionStart"in(r=Pa)&&_a(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},Na&&Ca(Na,r)||(Na=r,0<(r=si(Ma,"onSelect")).length&&(t=new Ro("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Pa)))}function za(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Da={animationend:za("Animation","AnimationEnd"),animationiteration:za("Animation","AnimationIteration"),animationstart:za("Animation","AnimationStart"),transitionend:za("Transition","TransitionEnd")},ja={},Fa={};function $a(e){if(ja[e])return ja[e];if(!Da[e])return e;var t,n=Da[e];for(t in n)if(n.hasOwnProperty(t)&&t in Fa)return ja[e]=n[t];return e}kt&&(Fa=document.createElement("div").style,"AnimationEvent"in window||(delete Da.animationend.animation,delete Da.animationiteration.animation,delete Da.animationstart.animation),"TransitionEvent"in window||delete Da.transitionend.transition);var Ba=$a("animationend"),Wa=$a("animationiteration"),Ha=$a("animationstart"),Ua=$a("transitionend"),Va=new Map,Ga="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 Ka(e,t){Va.set(e,t),Et(t,[e])}for(var Za=0;Za<Ga.length;Za++){var Xa=Ga[Za];Ka(Xa.toLowerCase(),"on"+(Xa[0].toUpperCase()+Xa.slice(1)))}Ka(Ba,"onAnimationEnd"),Ka(Wa,"onAnimationIteration"),Ka(Ha,"onAnimationStart"),Ka("dblclick","onDoubleClick"),Ka("focusin","onFocus"),Ka("focusout","onBlur"),Ka(Ua,"onTransitionEnd"),Ct("onMouseEnter",["mouseout","mouseover"]),Ct("onMouseLeave",["mouseout","mouseover"]),Ct("onPointerEnter",["pointerout","pointerover"]),Ct("onPointerLeave",["pointerout","pointerover"]),Et("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Et("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Et("onBeforeInput",["compositionend","keypress","textInput","paste"]),Et("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Et("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Et("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qa="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(" "),Ja=new Set("cancel close invalid load scroll toggle".split(" ").concat(Qa));function Ya(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,i,l,s){if(rr.apply(this,arguments),Jn){if(!Jn)throw Error(xt(198));var c=Yn;Jn=!1,Yn=null,er||(er=!0,tr=c)}}(r,t,void 0,e),e.currentTarget=null}function ei(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;Ya(o,l,c),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,c=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;Ya(o,l,c),a=s}}}if(er)throw e=tr,er=!1,tr=null,e}function ti(e,t){var n=t[Ti];void 0===n&&(n=t[Ti]=new Set);var r=e+"__bubble";n.has(r)||(ai(t,e,2,!1),n.add(r))}function ni(e,t,n){var r=0;t&&(r|=4),ai(n,e,r,t)}var ri="_reactListening"+Math.random().toString(36).slice(2);function oi(e){if(!e[ri]){e[ri]=!0,St.forEach((function(t){"selectionchange"!==t&&(Ja.has(t)||ni(t,!1,e),ni(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[ri]||(t[ri]=!0,ni("selectionchange",!1,t))}}function ai(e,t,n,r){switch(fo(t)){case 1:var o=lo;break;case 4:o=so;break;default:o=co}n=o.bind(null,t,n,e),o=void 0,!Zn||"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 ii(e,t,n,r,o){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=Ni(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}Gn((function(){var r=a,o=zn(n),i=[];e:{var l=Va.get(e);if(void 0!==l){var s=Ro,c=e;switch(e){case"keypress":if(0===bo(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=Uo;break;case Ba:case Wa:case Ha:s=Mo;break;case Ua:s=Vo;break;case"scroll":s=Oo;break;case"wheel":s=Ko;break;case"copy":case"cut":case"paste":s=qo;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Ho}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=Kn(h,p))&&u.push(li(h,m,f)))),d)break;h=h.return}0<u.length&&(l=new s(l,c,null,n,o),i.push({event:l,listeners:u}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===An||!(c=n.relatedTarget||n.fromElement)||!Ni(c)&&!c[Ii])&&(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)?Ni(c):null)&&(c!==(d=or(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=Ho,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==s?l:Ai(s),f=null==c?l:Ai(c),(l=new u(m,h+"leave",s,n,o)).target=d,l.relatedTarget=f,m=null,Ni(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=ci(f))h++;for(f=0,m=p;m;m=ci(m))f++;for(;0<h-f;)u=ci(u),h--;for(;0<f-h;)p=ci(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=ci(u),p=ci(p)}u=null}else u=null;null!==s&&ui(i,l,s,u,!1),null!==c&&null!==d&&ui(i,d,c,u,!0)}if("select"===(s=(l=r?Ai(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=pa;else if(ia(l))if(fa)g=wa;else{g=xa;var v=ya}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=Sa);switch(g&&(g=g(e,r))?la(i,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&gn(l,"number",l.value)),v=r?Ai(r):window,e){case"focusin":(ia(v)||"true"===v.contentEditable)&&(Pa=v,Ma=r,Na=null);break;case"focusout":Na=Ma=Pa=null;break;case"mousedown":qa=!0;break;case"contextmenu":case"mouseup":case"dragend":qa=!1,Aa(i,n,o);break;case"selectionchange":if(Ta)break;case"keydown":case"keyup":Aa(i,n,o)}var b;if(Xo)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 oa?na(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Yo&&"ko"!==n.locale&&(oa||"onCompositionStart"!==y?"onCompositionEnd"===y&&oa&&(b=vo()):(mo="value"in(ho=o)?ho.value:ho.textContent,oa=!0)),0<(v=si(r,y)).length&&(y=new Ao(y,e,null,n,o),i.push({event:y,listeners:v}),b?y.data=b:null!==(b=ra(n))&&(y.data=b))),(b=Jo?function(e,t){switch(e){case"compositionend":return ra(t);case"keypress":return 32!==t.which?null:(ta=!0,ea);case"textInput":return(e=t.data)===ea&&ta?null:e;default:return null}}(e,n):function(e,t){if(oa)return"compositionend"===e||!Xo&&na(e,t)?(e=vo(),go=mo=ho=null,oa=!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 Yo&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=si(r,"onBeforeInput")).length&&(o=new Ao("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=b))}ei(i,t)}))}function li(e,t,n){return{instance:e,listener:t,currentTarget:n}}function si(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Kn(e,n))&&r.unshift(li(e,a,o)),null!=(a=Kn(e,t))&&r.push(li(e,a,o))),e=e.return}return r}function ci(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function ui(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,o?null!=(s=Kn(n,a))&&i.unshift(li(n,s,l)):o||null!=(s=Kn(n,a))&&i.push(li(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var di=/\r\n?/g,pi=/\u0000|\uFFFD/g;function fi(e){return("string"==typeof e?e:""+e).replace(di,"\n").replace(pi,"")}function hi(e,t,n){if(t=fi(t),fi(e)!==t&&n)throw Error(xt(425))}function mi(){}var gi=null,vi=null;function bi(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 yi="function"==typeof setTimeout?setTimeout:void 0,xi="function"==typeof clearTimeout?clearTimeout:void 0,Si="function"==typeof Promise?Promise:void 0,wi="function"==typeof queueMicrotask?queueMicrotask:void 0!==Si?function(e){return Si.resolve(null).then(e).catch(Ei)}:yi;function Ei(e){setTimeout((function(){throw e}))}function Ci(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 oo(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);oo(t)}function ki(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 Ri(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 Li=Math.random().toString(36).slice(2),Oi="__reactFiber$"+Li,_i="__reactProps$"+Li,Ii="__reactContainer$"+Li,Ti="__reactEvents$"+Li,Pi="__reactListeners$"+Li,Mi="__reactHandles$"+Li;function Ni(e){var t=e[Oi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ii]||n[Oi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Ri(e);null!==e;){if(n=e[Oi])return n;e=Ri(e)}return t}n=(e=n).parentNode}return null}function qi(e){return!(e=e[Oi]||e[Ii])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Ai(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(xt(33))}function zi(e){return e[_i]||null}var Di=[],ji=-1;function Fi(e){return{current:e}}function $i(e){0>ji||(e.current=Di[ji],Di[ji]=null,ji--)}function Bi(e,t){ji++,Di[ji]=e.current,e.current=t}var Wi={},Hi=Fi(Wi),Ui=Fi(!1),Vi=Wi;function Gi(e,t){var n=e.type.contextTypes;if(!n)return Wi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ki(e){return null!=(e=e.childContextTypes)}function Zi(){$i(Ui),$i(Hi)}function Xi(e,t,n){if(Hi.current!==Wi)throw Error(xt(168));Bi(Hi,t),Bi(Ui,n)}function Qi(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(xt(108,on(e)||"Unknown",o));return Jt({},n,r)}function Ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wi,Vi=Hi.current,Bi(Hi,e),Bi(Ui,Ui.current),!0}function Yi(e,t,n){var r=e.stateNode;if(!r)throw Error(xt(169));n?(e=Qi(e,t,Vi),r.__reactInternalMemoizedMergedChildContext=e,$i(Ui),$i(Hi),Bi(Hi,e)):$i(Ui),Bi(Ui,n)}var el=null,tl=!1,nl=!1;function rl(e){null===el?el=[e]:el.push(e)}function ol(){if(!nl&&null!==el){nl=!0;var e=0,t=qr;try{var n=el;for(qr=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}el=null,tl=!1}catch(t){throw null!==el&&(el=el.slice(e+1)),cr(mr,ol),t}finally{qr=t,nl=!1}}return null}var al=[],il=0,ll=null,sl=0,cl=[],ul=0,dl=null,pl=1,fl="";function hl(e,t){al[il++]=sl,al[il++]=ll,ll=e,sl=t}function ml(e,t,n){cl[ul++]=pl,cl[ul++]=fl,cl[ul++]=dl,dl=e;var r=pl;e=fl;var o=32-wr(r)-1;r&=~(1<<o),n+=1;var a=32-wr(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,pl=1<<32-wr(t)+o|n<<o|r,fl=a+e}else pl=1<<a|n<<o|r,fl=e}function gl(e){null!==e.return&&(hl(e,1),ml(e,1,0))}function vl(e){for(;e===ll;)ll=al[--il],al[il]=null,sl=al[--il],al[il]=null;for(;e===dl;)dl=cl[--ul],cl[ul]=null,fl=cl[--ul],cl[ul]=null,pl=cl[--ul],cl[ul]=null}var bl=null,yl=null,xl=!1,Sl=null;function wl(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 El(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,bl=e,yl=ki(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,bl=e,yl=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==dl?{id:pl,overflow:fl}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Vd(18,null,null,0)).stateNode=t,n.return=e,e.child=n,bl=e,yl=null,!0);default:return!1}}function Cl(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function kl(e){if(xl){var t=yl;if(t){var n=t;if(!El(e,t)){if(Cl(e))throw Error(xt(418));t=ki(n.nextSibling);var r=bl;t&&El(e,t)?wl(r,n):(e.flags=-4097&e.flags|2,xl=!1,bl=e)}}else{if(Cl(e))throw Error(xt(418));e.flags=-4097&e.flags|2,xl=!1,bl=e}}}function Rl(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;bl=e}function Ll(e){if(e!==bl)return!1;if(!xl)return Rl(e),xl=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!bi(e.type,e.memoizedProps)),t&&(t=yl)){if(Cl(e))throw Ol(),Error(xt(418));for(;t;)wl(e,t),t=ki(t.nextSibling)}if(Rl(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(xt(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){yl=ki(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}yl=null}}else yl=bl?ki(e.stateNode.nextSibling):null;return!0}function Ol(){for(var e=yl;e;)e=ki(e.nextSibling)}function _l(){yl=bl=null,xl=!1}function Il(e){null===Sl?Sl=[e]:Sl.push(e)}var Tl=qt.ReactCurrentBatchConfig;function Pl(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(xt(309));var r=n.stateNode}if(!r)throw Error(xt(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(xt(284));if(!n._owner)throw Error(xt(290,e))}return e}function Ml(e,t){throw e=Object.prototype.toString.call(t),Error(xt(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Nl(e){return(0,e._init)(e._payload)}function ql(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 a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Jd(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var a=n.type;return a===Dt?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===Gt&&Nl(a)===t.type)?((r=o(t,n.props)).ref=Pl(e,t,n),r.return=e,r):((r=Zd(n.type,n.key,n.props,null,e.mode,r)).ref=Pl(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,a){return null===t||7!==t.tag?((t=Xd(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Jd(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case At:return(n=Zd(t.type,t.key,t.props,null,e.mode,n)).ref=Pl(e,null,t),n.return=e,n;case zt:return(t=Yd(t,e.mode,n)).return=e,t;case Gt:return d(e,(0,t._init)(t._payload),n)}if(vn(t)||Xt(t))return(t=Xd(t,e.mode,n,null)).return=e,t;Ml(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 At:return n.key===o?s(e,t,n,r):null;case zt:return n.key===o?c(e,t,n,r):null;case Gt:return p(e,t,(o=n._init)(n._payload),r)}if(vn(n)||Xt(n))return null!==o?null:u(e,t,n,r,null);Ml(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 At: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 Gt:return f(e,t,n,(0,r._init)(r._payload),o)}if(vn(r)||Xt(r))return u(t,e=e.get(n)||null,r,o,null);Ml(t,r)}return null}function h(o,i,l,s){for(var c=null,u=null,h=i,m=i=0,g=null;null!==h&&m<l.length;m++){h.index>m?(g=h,h=null):g=h.sibling;var v=p(o,h,l[m],s);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&t(o,h),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v,h=g}if(m===l.length)return n(o,h),xl&&hl(o,m),c;if(null===h){for(;m<l.length;m++)null!==(h=d(o,l[m],s))&&(i=a(h,i,m),null===u?c=h:u.sibling=h,u=h);return xl&&hl(o,m),c}for(h=r(o,h);m<l.length;m++)null!==(g=f(h,o,m,l[m],s))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&h.forEach((function(e){return t(o,e)})),xl&&hl(o,m),c}function m(o,i,l,s){var c=Xt(l);if("function"!=typeof c)throw Error(xt(150));if(null==(l=c.call(l)))throw Error(xt(151));for(var u=c=null,h=i,m=i=0,g=null,v=l.next();null!==h&&!v.done;m++,v=l.next()){h.index>m?(g=h,h=null):g=h.sibling;var b=p(o,h,v.value,s);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(o,h),i=a(b,i,m),null===u?c=b:u.sibling=b,u=b,h=g}if(v.done)return n(o,h),xl&&hl(o,m),c;if(null===h){for(;!v.done;m++,v=l.next())null!==(v=d(o,v.value,s))&&(i=a(v,i,m),null===u?c=v:u.sibling=v,u=v);return xl&&hl(o,m),c}for(h=r(o,h);!v.done;m++,v=l.next())null!==(v=f(h,o,m,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v);return e&&h.forEach((function(e){return t(o,e)})),xl&&hl(o,m),c}return function e(r,a,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 At:e:{for(var c=l.key,u=a;null!==u;){if(u.key===c){if((c=l.type)===Dt){if(7===u.tag){n(r,u.sibling),(a=o(u,l.props.children)).return=r,r=a;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===Gt&&Nl(c)===u.type){n(r,u.sibling),(a=o(u,l.props)).ref=Pl(r,u,l),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}l.type===Dt?((a=Xd(l.props.children,r.mode,s,l.key)).return=r,r=a):((s=Zd(l.type,l.key,l.props,null,r.mode,s)).ref=Pl(r,a,l),s.return=r,r=s)}return i(r);case zt:e:{for(u=l.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===l.containerInfo&&a.stateNode.implementation===l.implementation){n(r,a.sibling),(a=o(a,l.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Yd(l,r.mode,s)).return=r,r=a}return i(r);case Gt:return e(r,a,(u=l._init)(l._payload),s)}if(vn(l))return h(r,a,l,s);if(Xt(l))return m(r,a,l,s);Ml(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,l)).return=r,r=a):(n(r,a),(a=Jd(l,r.mode,s)).return=r,r=a),i(r)):n(r,a)}}var Al=ql(!0),zl=ql(!1),Dl=Fi(null),jl=null,Fl=null,$l=null;function Bl(){$l=Fl=jl=null}function Wl(e){var t=Dl.current;$i(Dl),e._currentValue=t}function Hl(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 Ul(e,t){jl=e,$l=Fl=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Nc=!0),e.firstContext=null)}function Vl(e){var t=e._currentValue;if($l!==e)if(e={context:e,memoizedValue:t,next:null},null===Fl){if(null===jl)throw Error(xt(308));Fl=e,jl.dependencies={lanes:0,firstContext:e}}else Fl=Fl.next=e;return t}var Gl=null;function Kl(e){null===Gl?Gl=[e]:Gl.push(e)}function Zl(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Kl(t)):(n.next=o.next,o.next=n),t.interleaved=n,Xl(e,r)}function Xl(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 Ql=!1;function Jl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yl(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 es(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ts(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,Xl(e,n)}return null===(o=r.interleaved)?(t.next=t,Kl(r)):(t.next=o.next,o.next=t),r.interleaved=t,Xl(e,n)}function ns(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 rs(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function os(e,t,n,r){var o=e.updateQueue;Ql=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===i?a=c:i.next=c,i=s;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(null!==a){var d=o.baseState;for(i=0,u=c=s=null,l=a;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=Jt({},d,p);break e;case 2:Ql=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=f,s=d):u=u.next=f,i|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Qu|=i,e.lanes=i,e.memoizedState=d}}function as(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(xt(191,o));o.call(r)}}}var is={},ls=Fi(is),ss=Fi(is),cs=Fi(is);function us(e){if(e===is)throw Error(xt(174));return e}function ds(e,t){switch(Bi(cs,t),Bi(ss,e),Bi(ls,is),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Cn(null,"");break;default:t=Cn(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}$i(ls),Bi(ls,t)}function ps(){$i(ls),$i(ss),$i(cs)}function fs(e){us(cs.current);var t=us(ls.current),n=Cn(t,e.type);t!==n&&(Bi(ss,e),Bi(ls,n))}function hs(e){ss.current===e&&($i(ls),$i(ss))}var ms=Fi(0);function gs(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 vs=[];function bs(){for(var e=0;e<vs.length;e++)vs[e]._workInProgressVersionPrimary=null;vs.length=0}var ys=qt.ReactCurrentDispatcher,xs=qt.ReactCurrentBatchConfig,Ss=0,ws=null,Es=null,Cs=null,ks=!1,Rs=!1,Ls=0,Os=0;function _s(){throw Error(xt(321))}function Is(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ea(e[n],t[n]))return!1;return!0}function Ts(e,t,n,r,o,a){if(Ss=a,ws=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ys.current=null===e||null===e.memoizedState?hc:mc,e=n(r,o),Rs){a=0;do{if(Rs=!1,Ls=0,25<=a)throw Error(xt(301));a+=1,Cs=Es=null,t.updateQueue=null,ys.current=gc,e=n(r,o)}while(Rs)}if(ys.current=fc,t=null!==Es&&null!==Es.next,Ss=0,Cs=Es=ws=null,ks=!1,t)throw Error(xt(300));return e}function Ps(){var e=0!==Ls;return Ls=0,e}function Ms(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Cs?ws.memoizedState=Cs=e:Cs=Cs.next=e,Cs}function Ns(){if(null===Es){var e=ws.alternate;e=null!==e?e.memoizedState:null}else e=Es.next;var t=null===Cs?ws.memoizedState:Cs.next;if(null!==t)Cs=t,Es=e;else{if(null===e)throw Error(xt(310));e={memoizedState:(Es=e).memoizedState,baseState:Es.baseState,baseQueue:Es.baseQueue,queue:Es.queue,next:null},null===Cs?ws.memoizedState=Cs=e:Cs=Cs.next=e}return Cs}function qs(e,t){return"function"==typeof t?t(e):t}function As(e){var t=Ns(),n=t.queue;if(null===n)throw Error(xt(311));n.lastRenderedReducer=e;var r=Es,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var i=o.next;o.next=a.next,a.next=i}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=i=null,s=null,c=a;do{var u=c.lane;if((Ss&u)===u)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(l=s=d,i=r):s=s.next=d,ws.lanes|=u,Qu|=u}c=c.next}while(null!==c&&c!==a);null===s?i=r:s.next=l,Ea(r,t.memoizedState)||(Nc=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,ws.lanes|=a,Qu|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function zs(e){var t=Ns(),n=t.queue;if(null===n)throw Error(xt(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var i=o=o.next;do{a=e(a,i.action),i=i.next}while(i!==o);Ea(a,t.memoizedState)||(Nc=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ds(){}function js(e,t){var n=ws,r=Ns(),o=t(),a=!Ea(r.memoizedState,o);if(a&&(r.memoizedState=o,Nc=!0),r=r.queue,Qs(Bs.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==Cs&&1&Cs.memoizedState.tag){if(n.flags|=2048,Vs(9,$s.bind(null,n,r,o,t),void 0,null),null===Hu)throw Error(xt(349));0!=(30&Ss)||Fs(n,t,o)}return o}function Fs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ws.updateQueue)?(t={lastEffect:null,stores:null},ws.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function $s(e,t,n,r){t.value=n,t.getSnapshot=r,Ws(t)&&Hs(e)}function Bs(e,t,n){return n((function(){Ws(t)&&Hs(e)}))}function Ws(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ea(e,n)}catch(e){return!0}}function Hs(e){var t=Xl(e,1);null!==t&&vd(t,e,1,-1)}function Us(e){var t=Ms();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:qs,lastRenderedState:e},t.queue=e,e=e.dispatch=cc.bind(null,ws,e),[t.memoizedState,e]}function Vs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ws.updateQueue)?(t={lastEffect:null,stores:null},ws.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 Gs(){return Ns().memoizedState}function Ks(e,t,n,r){var o=Ms();ws.flags|=e,o.memoizedState=Vs(1|t,n,void 0,void 0===r?null:r)}function Zs(e,t,n,r){var o=Ns();r=void 0===r?null:r;var a=void 0;if(null!==Es){var i=Es.memoizedState;if(a=i.destroy,null!==r&&Is(r,i.deps))return void(o.memoizedState=Vs(t,n,a,r))}ws.flags|=e,o.memoizedState=Vs(1|t,n,a,r)}function Xs(e,t){return Ks(8390656,8,e,t)}function Qs(e,t){return Zs(2048,8,e,t)}function Js(e,t){return Zs(4,2,e,t)}function Ys(e,t){return Zs(4,4,e,t)}function ec(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 tc(e,t,n){return n=null!=n?n.concat([e]):null,Zs(4,4,ec.bind(null,t,e),n)}function nc(){}function rc(e,t){var n=Ns();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Is(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function oc(e,t){var n=Ns();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Is(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ac(e,t,n){return 0==(21&Ss)?(e.baseState&&(e.baseState=!1,Nc=!0),e.memoizedState=n):(Ea(n,t)||(n=Tr(),ws.lanes|=n,Qu|=n,e.baseState=!0),t)}function ic(e,t){var n=qr;qr=0!==n&&4>n?n:4,e(!0);var r=xs.transition;xs.transition={};try{e(!1),t()}finally{qr=n,xs.transition=r}}function lc(){return Ns().memoizedState}function sc(e,t,n){var r=gd(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},uc(e))dc(t,n);else if(null!==(n=Zl(e,t,n,r))){vd(n,e,r,md()),pc(n,t,r)}}function cc(e,t,n){var r=gd(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(uc(e))dc(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,Ea(l,i)){var s=t.interleaved;return null===s?(o.next=o,Kl(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Zl(e,t,o,r))&&(vd(n,e,r,o=md()),pc(n,t,r))}}function uc(e){var t=e.alternate;return e===ws||null!==t&&t===ws}function dc(e,t){Rs=ks=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function pc(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Nr(e,n)}}var fc={readContext:Vl,useCallback:_s,useContext:_s,useEffect:_s,useImperativeHandle:_s,useInsertionEffect:_s,useLayoutEffect:_s,useMemo:_s,useReducer:_s,useRef:_s,useState:_s,useDebugValue:_s,useDeferredValue:_s,useTransition:_s,useMutableSource:_s,useSyncExternalStore:_s,useId:_s,unstable_isNewReconciler:!1},hc={readContext:Vl,useCallback:function(e,t){return Ms().memoizedState=[e,void 0===t?null:t],e},useContext:Vl,useEffect:Xs,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ks(4194308,4,ec.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ks(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ks(4,2,e,t)},useMemo:function(e,t){var n=Ms();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ms();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=sc.bind(null,ws,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ms().memoizedState=e},useState:Us,useDebugValue:nc,useDeferredValue:function(e){return Ms().memoizedState=e},useTransition:function(){var e=Us(!1),t=e[0];return e=ic.bind(null,e[1]),Ms().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ws,o=Ms();if(xl){if(void 0===n)throw Error(xt(407));n=n()}else{if(n=t(),null===Hu)throw Error(xt(349));0!=(30&Ss)||Fs(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Xs(Bs.bind(null,r,a,e),[e]),r.flags|=2048,Vs(9,$s.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Ms(),t=Hu.identifierPrefix;if(xl){var n=fl;t=":"+t+"R"+(n=(pl&~(1<<32-wr(pl)-1)).toString(32)+n),0<(n=Ls++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Os++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},mc={readContext:Vl,useCallback:rc,useContext:Vl,useEffect:Qs,useImperativeHandle:tc,useInsertionEffect:Js,useLayoutEffect:Ys,useMemo:oc,useReducer:As,useRef:Gs,useState:function(){return As(qs)},useDebugValue:nc,useDeferredValue:function(e){return ac(Ns(),Es.memoizedState,e)},useTransition:function(){return[As(qs)[0],Ns().memoizedState]},useMutableSource:Ds,useSyncExternalStore:js,useId:lc,unstable_isNewReconciler:!1},gc={readContext:Vl,useCallback:rc,useContext:Vl,useEffect:Qs,useImperativeHandle:tc,useInsertionEffect:Js,useLayoutEffect:Ys,useMemo:oc,useReducer:zs,useRef:Gs,useState:function(){return zs(qs)},useDebugValue:nc,useDeferredValue:function(e){var t=Ns();return null===Es?t.memoizedState=e:ac(t,Es.memoizedState,e)},useTransition:function(){return[zs(qs)[0],Ns().memoizedState]},useMutableSource:Ds,useSyncExternalStore:js,useId:lc,unstable_isNewReconciler:!1};function vc(e,t){if(e&&e.defaultProps){for(var n in t=Jt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function bc(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Jt({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var yc={isMounted:function(e){return!!(e=e._reactInternals)&&or(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=md(),o=gd(e),a=es(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=ts(e,a,o))&&(vd(t,e,o,r),ns(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=md(),o=gd(e),a=es(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=ts(e,a,o))&&(vd(t,e,o,r),ns(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=md(),r=gd(e),o=es(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=ts(e,o,r))&&(vd(t,e,r,n),ns(t,e,r))}};function xc(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!Ca(n,r)||!Ca(o,a))}function Sc(e,t,n){var r=!1,o=Wi,a=t.contextType;return"object"==typeof a&&null!==a?a=Vl(a):(o=Ki(t)?Vi:Hi.current,a=(r=null!=(r=t.contextTypes))?Gi(e,o):Wi),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yc,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function wc(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&&yc.enqueueReplaceState(t,t.state,null)}function Ec(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Jl(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Vl(a):(a=Ki(t)?Vi:Hi.current,o.context=Gi(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(bc(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&yc.enqueueReplaceState(o,o.state,null),os(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Cc(e,t){try{var n="",r=t;do{n+=nn(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 Rc(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Lc="function"==typeof WeakMap?WeakMap:Map;function Oc(e,t,n){(n=es(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ad||(ad=!0,id=r),Rc(0,t)},n}function _c(e,t,n){(n=es(-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(){Rc(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){Rc(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 Ic(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Lc;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 Tc(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=es(-1,1)).tag=2,ts(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Mc=qt.ReactCurrentOwner,Nc=!1;function qc(e,t,n,r){t.child=null===e?zl(t,null,n,r):Al(t,e.child,n,r)}function Ac(e,t,n,r,o){n=n.render;var a=t.ref;return Ul(t,o),r=Ts(e,t,n,r,a,o),n=Ps(),null===e||Nc?(xl&&n&&gl(t),t.flags|=1,qc(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,au(e,t,o))}function zc(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Gd(a)||void 0!==a.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=a,Dc(e,t,a,r,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:Ca)(i,r)&&e.ref===t.ref)return au(e,t,o)}return t.flags|=1,(e=Kd(a,r)).ref=t.ref,e.return=t,t.child=e}function Dc(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(Ca(a,r)&&e.ref===t.ref){if(Nc=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,au(e,t,o);0!=(131072&e.flags)&&(Nc=!0)}}return $c(e,t,n,r,o)}function jc(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Bi(Ku,Gu),Gu|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Bi(Ku,Gu),Gu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Bi(Ku,Gu),Gu|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Bi(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 a=Ki(n)?Vi:Hi.current;return a=Gi(t,a),Ul(t,o),n=Ts(e,t,n,r,a,o),r=Ps(),null===e||Nc?(xl&&r&&gl(t),t.flags|=1,qc(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,au(e,t,o))}function Bc(e,t,n,r,o){if(Ki(n)){var a=!0;Ji(t)}else a=!1;if(Ul(t,o),null===t.stateNode)ou(e,t),Sc(t,n,r),Ec(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,c=n.contextType;"object"==typeof c&&null!==c?c=Vl(c):c=Gi(t,c=Ki(n)?Vi:Hi.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||s!==c)&&wc(t,i,r,c),Ql=!1;var p=t.memoizedState;i.state=p,os(t,r,i,o),s=t.memoizedState,l!==r||p!==s||Ui.current||Ql?("function"==typeof u&&(bc(t,n,u,r),s=t.memoizedState),(l=Ql||xc(t,n,l,r,p,s,c))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=c,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Yl(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:vc(t.type,l),i.props=c,d=t.pendingProps,p=i.context,"object"==typeof(s=n.contextType)&&null!==s?s=Vl(s):s=Gi(t,s=Ki(n)?Vi:Hi.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==d||p!==s)&&wc(t,i,r,s),Ql=!1,p=t.memoizedState,i.state=p,os(t,r,i,o);var h=t.memoizedState;l!==d||p!==h||Ui.current||Ql?("function"==typeof f&&(bc(t,n,f,r),h=t.memoizedState),(c=Ql||xc(t,n,c,r,p,h,s)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=s,r=c):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Wc(e,t,n,r,a,o)}function Wc(e,t,n,r,o,a){Fc(e,t);var i=0!=(128&t.flags);if(!r&&!i)return o&&Yi(t,n,!1),au(e,t,a);r=t.stateNode,Mc.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Al(t,e.child,null,a),t.child=Al(t,null,l,a)):qc(e,t,l,a),t.memoizedState=r.state,o&&Yi(t,n,!0),t.child}function Hc(e){var t=e.stateNode;t.pendingContext?Xi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Xi(0,t.context,!1),ds(e,t.containerInfo)}function Uc(e,t,n,r,o){return _l(),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,a=ms.current,i=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Bi(ms,1&a),null===e)return kl(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,i?(o=t.mode,i=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==i?(i.childLanes=0,i.pendingProps=l):i=Qd(l,o,0,null),e=Xd(e,o,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Qc(n),t.memoizedState=Xc,e):Yc(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,i){if(n)return 256&t.flags?(t.flags&=-257,eu(e,t,i,r=kc(Error(xt(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Qd({mode:"visible",children:r.children},o,0,null),(a=Xd(a,o,i,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Al(t,e.child,null,i),t.child.memoizedState=Qc(i),t.memoizedState=Xc,a);if(0==(1&t.mode))return eu(e,t,i,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,eu(e,t,i,r=kc(a=Error(xt(419)),r,void 0))}if(l=0!=(i&e.childLanes),Nc||l){if(null!==(r=Hu)){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|i))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Xl(e,o),vd(r,e,o,-1))}return Id(),eu(e,t,i,r=kc(Error(xt(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Bd.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,yl=ki(o.nextSibling),bl=t,xl=!0,Sl=null,null!==e&&(cl[ul++]=pl,cl[ul++]=fl,cl[ul++]=dl,pl=e.id,fl=e.overflow,dl=t),t=Yc(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(i){i=o.fallback,l=t.mode,r=(a=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=Kd(a,s)).subtreeFlags=14680064&a.subtreeFlags,null!==r?i=Kd(r,i):(i=Xd(i,l,n,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,l=null===(l=e.child.memoizedState)?Qc(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Xc,o}return e=(i=e.child).sibling,o=Kd(i,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function 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),Al(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),Hl(e.return,t,n)}function nu(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function ru(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(qc(e,t,r.children,n),0!=(2&(r=ms.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(Bi(ms,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===gs(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,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===gs(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}nu(t,!0,n,null,a);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 au(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(xt(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 iu(e,t){if(!xl)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(vl(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 Ki(t.type)&&Zi(),lu(t),null;case 3:return r=t.stateNode,ps(),$i(Ui),$i(Hi),bs(),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!==Sl&&(Sd(Sl),Sl=null))),Gc(e,t),lu(t),null;case 5:hs(t);var o=us(cs.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(xt(166));return lu(t),null}if(e=us(ls.current),Ll(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Oi]=t,r[_i]=a,e=0!=(1&t.mode),n){case"dialog":ti("cancel",r),ti("close",r);break;case"iframe":case"object":case"embed":ti("load",r);break;case"video":case"audio":for(o=0;o<Qa.length;o++)ti(Qa[o],r);break;case"source":ti("error",r);break;case"img":case"image":case"link":ti("error",r),ti("load",r);break;case"details":ti("toggle",r);break;case"input":pn(r,a),ti("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},ti("invalid",r);break;case"textarea":xn(r,a),ti("invalid",r)}for(var i in Nn(n,a),o=null,a)if(a.hasOwnProperty(i)){var l=a[i];"children"===i?"string"==typeof l?r.textContent!==l&&(!0!==a.suppressHydrationWarning&&hi(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&hi(r.textContent,l,e),o=["children",""+l]):wt.hasOwnProperty(i)&&null!=l&&"onScroll"===i&&ti("scroll",r)}switch(n){case"input":sn(r),mn(r,a,!0);break;case"textarea":sn(r),wn(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=mi)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{i=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=En(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),"select"===n&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Oi]=t,e[_i]=r,Vc(e,t,!1,!1),t.stateNode=e;e:{switch(i=qn(n,r),n){case"dialog":ti("cancel",e),ti("close",e),o=r;break;case"iframe":case"object":case"embed":ti("load",e),o=r;break;case"video":case"audio":for(o=0;o<Qa.length;o++)ti(Qa[o],e);o=r;break;case"source":ti("error",e),o=r;break;case"img":case"image":case"link":ti("error",e),ti("load",e),o=r;break;case"details":ti("toggle",e),o=r;break;case"input":pn(e,r),o=dn(e,r),ti("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Jt({},r,{value:void 0}),ti("invalid",e);break;case"textarea":xn(e,r),o=yn(e,r),ti("invalid",e)}for(a in Nn(n,o),l=o)if(l.hasOwnProperty(a)){var s=l[a];"style"===a?Pn(e,s):"dangerouslySetInnerHTML"===a?null!=(s=s?s.__html:void 0)&&Ln(e,s):"children"===a?"string"==typeof s?("textarea"!==n||""!==s)&&On(e,s):"number"==typeof s&&On(e,""+s):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(wt.hasOwnProperty(a)?null!=s&&"onScroll"===a&&ti("scroll",e):null!=s&&Nt(e,a,s,i))}switch(n){case"input":sn(e),mn(e,r,!1);break;case"textarea":sn(e),wn(e);break;case"option":null!=r.value&&e.setAttribute("value",""+an(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?bn(e,!!r.multiple,a,!1):null!=r.defaultValue&&bn(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=mi)}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(xt(166));if(n=us(cs.current),us(ls.current),Ll(t)){if(r=t.stateNode,n=t.memoizedProps,r[Oi]=t,(a=r.nodeValue!==n)&&null!==(e=bl))switch(e.tag){case 3:hi(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&hi(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Oi]=t,t.stateNode=r}return lu(t),null;case 13:if($i(ms),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(xl&&null!==yl&&0!=(1&t.mode)&&0==(128&t.flags))Ol(),_l(),t.flags|=98560,a=!1;else if(a=Ll(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(xt(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(xt(317));a[Oi]=t}else _l(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;lu(t),a=!1}else null!==Sl&&(Sd(Sl),Sl=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ms.current)?0===Zu&&(Zu=3):Id())),null!==t.updateQueue&&(t.flags|=4),lu(t),null);case 4:return ps(),Gc(e,t),null===e&&oi(t.stateNode.containerInfo),lu(t),null;case 10:return Wl(t.type._context),lu(t),null;case 19:if($i(ms),null===(a=t.memoizedState))return lu(t),null;if(r=0!=(128&t.flags),null===(i=a.rendering))if(r)iu(a,!1);else{if(0!==Zu||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=gs(e))){for(t.flags|=128,iu(a,!1),null!==(r=i.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(i=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Bi(ms,1&ms.current|2),t.child}e=e.sibling}null!==a.tail&&fr()>rd&&(t.flags|=128,r=!0,iu(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=gs(i))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),iu(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!xl)return lu(t),null}else 2*fr()-a.renderingStartTime>rd&&1073741824!==n&&(t.flags|=128,r=!0,iu(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=a.last)?n.sibling=i:t.child=i,a.last=i)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=fr(),t.sibling=null,n=ms.current,Bi(ms,r?1&n|2:1&n),t):(lu(t),null);case 22:case 23:return Rd(),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(xt(156,t.tag))}function cu(e,t){switch(vl(t),t.tag){case 1:return Ki(t.type)&&Zi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ps(),$i(Ui),$i(Hi),bs(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return hs(t),null;case 13:if($i(ms),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(xt(340));_l()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return $i(ms),null;case 4:return ps(),null;case 10:return Wl(t.type._context),null;case 22:case 23:return Rd(),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,us(ls.current);var a,i=null;switch(n){case"input":o=dn(e,o),r=dn(e,r),i=[];break;case"select":o=Jt({},o,{value:void 0}),r=Jt({},r,{value:void 0}),i=[];break;case"textarea":o=yn(e,o),r=yn(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=mi)}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(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(wt.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var s=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==l&&(null!=s||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(i=i||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(i=i||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(wt.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&ti("scroll",e),i||l===s||(i=[])):(i=i||[]).push(c,s))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},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 a=o.destroy;o.destroy=void 0,void 0!==a&&mu(t,n,a)}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[Oi],delete t[_i],delete t[Ti],delete t[Pi],delete t[Mi])),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=mi));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,Ru=!1;function Lu(e,t,n){for(n=n.child;null!==n;)Ou(e,t,n),n=n.sibling}function Ou(e,t,n){if(Sr&&"function"==typeof Sr.onCommitFiberUnmount)try{Sr.onCommitFiberUnmount(xr,n)}catch(e){}switch(n.tag){case 5:du||hu(n,t);case 6:var r=ku,o=Ru;ku=null,Lu(e,t,n),Ru=o,null!==(ku=r)&&(Ru?(e=ku,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ku.removeChild(n.stateNode));break;case 18:null!==ku&&(Ru?(e=ku,n=n.stateNode,8===e.nodeType?Ci(e.parentNode,n):1===e.nodeType&&Ci(e,n),oo(e)):Ci(ku,n.stateNode));break;case 4:r=ku,o=Ru,ku=n.stateNode.containerInfo,Ru=!0,Lu(e,t,n),ku=r,Ru=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 a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&mu(n,t,i),o=o.next}while(o!==r)}Lu(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)}Lu(e,t,n);break;case 21:Lu(e,t,n);break;case 22:1&n.mode?(du=(r=du)||null!==n.memoizedState,Lu(e,t,n),du=r):Lu(e,t,n);break;default:Lu(e,t,n)}}function _u(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 Iu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,i=t,l=i;e:for(;null!==l;){switch(l.tag){case 5:ku=l.stateNode,Ru=!1;break e;case 3:case 4:ku=l.stateNode.containerInfo,Ru=!0;break e}l=l.return}if(null===ku)throw Error(xt(160));Ou(a,i,o),ku=null,Ru=!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;)Tu(t,e),t=t.sibling}function Tu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Iu(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:Iu(t,e),Pu(e),512&r&&null!==n&&hu(n,n.return);break;case 5:if(Iu(t,e),Pu(e),512&r&&null!==n&&hu(n,n.return),32&e.flags){var o=e.stateNode;try{On(o,"")}catch(t){jd(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,i=null!==n?n.memoizedProps:a,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===a.type&&null!=a.name&&fn(o,a),qn(l,i);var c=qn(l,a);for(i=0;i<s.length;i+=2){var u=s[i],d=s[i+1];"style"===u?Pn(o,d):"dangerouslySetInnerHTML"===u?Ln(o,d):"children"===u?On(o,d):Nt(o,u,d,c)}switch(l){case"input":hn(o,a);break;case"textarea":Sn(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?bn(o,!!a.multiple,f,!1):p!==!!a.multiple&&(null!=a.defaultValue?bn(o,!!a.multiple,a.defaultValue,!0):bn(o,!!a.multiple,a.multiple?[]:"",!1))}o[_i]=a}catch(t){jd(e,e.return,t)}}break;case 6:if(Iu(t,e),Pu(e),4&r){if(null===e.stateNode)throw Error(xt(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){jd(e,e.return,t)}}break;case 3:if(Iu(t,e),Pu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{oo(t.containerInfo)}catch(t){jd(e,e.return,t)}break;case 4:default:Iu(t,e),Pu(e);break;case 13:Iu(t,e),Pu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(nd=fr())),4&r&&_u(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(du=(c=du)||u,Iu(t,e),du=c):Iu(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){Au(d);continue}}null!==f?(f.return=p,fu=f):Au(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{o=d.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=d.stateNode,i=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=Tn("display",i))}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:Iu(t,e),Pu(e),4&r&&_u(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(xt(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(On(o,""),r.flags&=-33),Cu(e,wu(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;Eu(e,wu(e),a);break;default:throw Error(xt(161))}}catch(t){jd(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Mu(e,t,n){fu=e,Nu(e)}function Nu(e,t,n){for(var r=0!=(1&e.mode);null!==fu;){var o=fu,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||uu;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||du;l=uu;var c=du;if(uu=i,(du=s)&&!c)for(fu=o;null!==fu;)s=(i=fu).child,22===i.tag&&null!==i.memoizedState?zu(o):null!==s?(s.return=i,fu=s):zu(o);for(;null!==a;)fu=a,Nu(a),a=a.sibling;fu=o,uu=l,du=c}qu(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,fu=a):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:vc(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&as(t,a,r);break;case 3:var i=t.updateQueue;if(null!==i){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}as(t,i,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&oo(d)}}}break;default:throw Error(xt(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 Au(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 zu(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 a=t.return;try{yu(t)}catch(e){jd(t,a,e)}break;case 5:var i=t.return;try{yu(t)}catch(e){jd(t,i,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 Du,ju=Math.ceil,Fu=qt.ReactCurrentDispatcher,$u=qt.ReactCurrentOwner,Bu=qt.ReactCurrentBatchConfig,Wu=0,Hu=null,Uu=null,Vu=0,Gu=0,Ku=Fi(0),Zu=0,Xu=null,Qu=0,Ju=0,Yu=0,ed=null,td=null,nd=0,rd=1/0,od=null,ad=!1,id=null,ld=null,sd=!1,cd=null,ud=0,dd=0,pd=null,fd=-1,hd=0;function md(){return 0!=(6&Wu)?fr():-1!==fd?fd:fd=fr()}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=qr)?e:e=void 0===(e=window.event)?16:fo(e.type)}function vd(e,t,n,r){if(50<dd)throw dd=0,pd=null,Error(xt(185));Mr(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=fr()+500,tl&&ol()))}function bd(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-wr(a),l=1<<i,s=o[i];-1===s?0!=(l&n)&&0==(l&r)||(o[i]=_r(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=Or(e,e===Hu?Vu:0);if(0===r)null!==n&&ur(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&ur(n),1===t)0===e.tag?function(e){tl=!0,rl(e)}(Ed.bind(null,e)):rl(Ed.bind(null,e)),wi((function(){0==(6&Wu)&&ol()})),n=null;else{switch(Ar(r)){case 1:n=mr;break;case 4:n=gr;break;case 16:default:n=vr;break;case 536870912:n=yr}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(xt(327));var n=e.callbackNode;if(zd()&&e.callbackNode!==n)return null;var r=Or(e,e===Hu?Vu:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=Td(e,r);else{t=r;var o=Wu;Wu|=2;var a=_d();for(Hu===e&&Vu===t||(od=null,rd=fr()+500,Ld(e,t));;)try{Md();break}catch(t){Od(e,t)}Bl(),Fu.current=a,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,Ld(e,0),wd(e,r),bd(e,fr()),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],a=o.getSnapshot;o=o.value;try{if(!Ea(a(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=Td(e,r))&&(0!==(a=Ir(e))&&(r=a,t=xd(e,a))),1===t))throw n=Xu,Ld(e,0),wd(e,r),bd(e,fr()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(xt(345));case 2:case 5:Ad(e,td,od);break;case 3:if(wd(e,r),(130023424&r)===r&&10<(t=nd+500-fr())){if(0!==Or(e,0))break;if(((o=e.suspendedLanes)&r)!==r){md(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=yi(Ad.bind(null,e,td,od),t);break}Ad(e,td,od);break;case 4:if(wd(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-wr(r);a=1<<i,(i=t[i])>o&&(o=i),r&=~a}if(r=o,10<(r=(120>(r=fr()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ju(r/1960))-r)){e.timeoutHandle=yi(Ad.bind(null,e,td,od),r);break}Ad(e,td,od);break;default:throw Error(xt(329))}}}return bd(e,fr()),e.callbackNode===n?yd.bind(null,e):null}function xd(e,t){var n=ed;return e.current.memoizedState.isDehydrated&&(Ld(e,t).flags|=256),2!==(e=Td(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-wr(t),r=1<<n;e[n]=-1,t&=~r}}function Ed(e){if(0!=(6&Wu))throw Error(xt(327));zd();var t=Or(e,0);if(0==(1&t))return bd(e,fr()),null;var n=Td(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,Ld(e,0),wd(e,t),bd(e,fr()),n;if(6===n)throw Error(xt(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ad(e,td,od),bd(e,fr()),null}function Cd(e,t){var n=Wu;Wu|=1;try{return e(t)}finally{0===(Wu=n)&&(rd=fr()+500,tl&&ol())}}function kd(e){null!==cd&&0===cd.tag&&0==(6&Wu)&&zd();var t=Wu;Wu|=1;var n=Bu.transition,r=qr;try{if(Bu.transition=null,qr=1,e)return e()}finally{qr=r,Bu.transition=n,0==(6&(Wu=t))&&ol()}}function Rd(){Gu=Ku.current,$i(Ku)}function Ld(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,xi(n)),null!==Uu)for(n=Uu.return;null!==n;){var r=n;switch(vl(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Zi();break;case 3:ps(),$i(Ui),$i(Hi),bs();break;case 5:hs(r);break;case 4:ps();break;case 13:case 19:$i(ms);break;case 10:Wl(r.type._context);break;case 22:case 23:Rd()}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!==Gl){for(t=0;t<Gl.length;t++)if(null!==(r=(n=Gl[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Gl=null}return e}function Od(e,t){for(;;){var n=Uu;try{if(Bl(),ys.current=fc,ks){for(var r=ws.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ks=!1}if(Ss=0,Cs=Es=ws=null,Rs=!1,Ls=0,$u.current=null,null===n||null===n.return){Zu=1,Xu=t,Uu=null;break}e:{var a=e,i=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=Tc(i);if(null!==f){f.flags&=-257,Pc(f,i,l,0,t),1&f.mode&&Ic(a,c,t),s=c;var h=(t=f).updateQueue;if(null===h){var m=new Set;m.add(s),t.updateQueue=m}else h.add(s);break e}if(0==(1&t)){Ic(a,c,t),Id();break e}s=Error(xt(426))}else if(xl&&1&l.mode){var g=Tc(i);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),Pc(g,i,l,0,t),Il(Cc(s,l));break e}}a=s=Cc(s,l),4!==Zu&&(Zu=2),null===ed?ed=[a]:ed.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,rs(a,Oc(0,s,t));break e;case 1:l=s;var v=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===ld||!ld.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,rs(a,_c(a,l,t));break e}}a=a.return}while(null!==a)}qd(n)}catch(e){t=e,Uu===n&&null!==n&&(Uu=n=n.return);continue}break}}function _d(){var e=Fu.current;return Fu.current=fc,null===e?fc:e}function Id(){0!==Zu&&3!==Zu&&2!==Zu||(Zu=4),null===Hu||0==(268435455&Qu)&&0==(268435455&Ju)||wd(Hu,Vu)}function Td(e,t){var n=Wu;Wu|=2;var r=_d();for(Hu===e&&Vu===t||(od=null,Ld(e,t));;)try{Pd();break}catch(t){Od(e,t)}if(Bl(),Wu=n,Fu.current=r,null!==Uu)throw Error(xt(261));return Hu=null,Vu=0,Zu}function Pd(){for(;null!==Uu;)Nd(Uu)}function Md(){for(;null!==Uu&&!dr();)Nd(Uu)}function Nd(e){var t=Du(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 Ad(e,t,n){var r=qr,o=Bu.transition;try{Bu.transition=null,qr=1,function(e,t,n,r){do{zd()}while(null!==cd);if(0!=(6&Wu))throw Error(xt(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(xt(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-wr(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,a),e===Hu&&(Uu=Hu=null,Vu=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||sd||(sd=!0,Hd(vr,(function(){return zd(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=Bu.transition,Bu.transition=null;var i=qr;qr=1;var l=Wu;Wu|=4,$u.current=null,function(e,t){if(gi=io,_a(e=Oa())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var i=0,l=-1,s=-1,c=0,u=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=i+o),d!==a||0!==r&&3!==d.nodeType||(s=i+r),3===d.nodeType&&(i+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++c===o&&(l=i),p===a&&++u===r&&(s=i),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(vi={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:vc(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(xt(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),Tu(n,e),Ia(vi),io=!!gi,vi=gi=null,e.current=n,Mu(n),pr(),Wu=l,qr=i,Bu.transition=a}else e.current=n;if(sd&&(sd=!1,cd=e,ud=o),a=e.pendingLanes,0===a&&(ld=null),function(e){if(Sr&&"function"==typeof Sr.onCommitFiberRoot)try{Sr.onCommitFiberRoot(xr,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),bd(e,fr()),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(ad)throw ad=!1,e=id,id=null,e;0!=(1&ud)&&0!==e.tag&&zd(),a=e.pendingLanes,0!=(1&a)?e===pd?dd++:(dd=0,pd=e):dd=0,ol()}(e,t,n,r)}finally{Bu.transition=o,qr=r}return null}function zd(){if(null!==cd){var e=Ar(ud),t=Bu.transition,n=qr;try{if(Bu.transition=null,qr=16>e?16:e,null===cd)var r=!1;else{if(e=cd,cd=null,ud=0,0!=(6&Wu))throw Error(xt(331));var o=Wu;for(Wu|=4,fu=e.current;null!==fu;){var a=fu,i=a.child;if(0!=(16&fu.flags)){var l=a.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,a)}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=a.alternate;if(null!==h){var m=h.child;if(null!==m){h.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}fu=a}}if(0!=(2064&a.subtreeFlags)&&null!==i)i.return=a,fu=i;else e:for(;null!==fu;){if(0!=(2048&(a=fu).flags))switch(a.tag){case 0:case 11:case 15:vu(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,fu=v;break e}fu=a.return}}var b=e.current;for(fu=b;null!==fu;){var y=(i=fu).child;if(0!=(2064&i.subtreeFlags)&&null!==y)y.return=i,fu=y;else e:for(i=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===i){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,ol(),Sr&&"function"==typeof Sr.onPostCommitFiberRoot)try{Sr.onPostCommitFiberRoot(xr,e)}catch(e){}r=!0}return r}finally{qr=n,Bu.transition=t}}return!1}function Dd(e,t,n){e=ts(e,t=Oc(0,t=Cc(n,t),1),1),t=md(),null!==e&&(Mr(e,1,t),bd(e,t))}function jd(e,t,n){if(3===e.tag)Dd(e,e,n);else for(;null!==t;){if(3===t.tag){Dd(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=ts(t,e=_c(t,e=Cc(n,e),1),1),e=md(),null!==t&&(Mr(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>fr()-nd?Ld(e,0):Yu|=n),bd(e,t)}function $d(e,t){0===t&&(0==(1&e.mode)?t=1:(t=Rr,0==(130023424&(Rr<<=1))&&(Rr=4194304)));var n=md();null!==(e=Xl(e,t))&&(Mr(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(xt(314))}null!==r&&r.delete(t),$d(e,n)}function Hd(e,t){return cr(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,a){var i=2;if(r=e,"function"==typeof e)Gd(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case Dt:return Xd(n.children,o,a,t);case jt:i=8,o|=8;break;case Ft:return(e=Vd(12,n,t,2|o)).elementType=Ft,e.lanes=a,e;case Ht:return(e=Vd(13,n,t,o)).elementType=Ht,e.lanes=a,e;case Ut:return(e=Vd(19,n,t,o)).elementType=Ut,e.lanes=a,e;case Kt:return Qd(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case $t:i=10;break e;case Bt:i=9;break e;case Wt:i=11;break e;case Vt:i=14;break e;case Gt:i=16,r=null;break e}throw Error(xt(130,null==e?e:typeof e,""))}return(t=Vd(i,n,t,o)).elementType=e,t.type=r,t.lanes=a,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=Kt,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,a,i,l,s){return e=new ep(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Vd(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Jl(a),e}function np(e){if(!e)return Wi;e:{if(or(e=e._reactInternals)!==e||1!==e.tag)throw Error(xt(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ki(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(xt(171))}if(1===e.tag){var n=e.type;if(Ki(n))return Qi(e,n,t)}return t}function rp(e,t,n,r,o,a,i,l,s){return(e=tp(n,r,!0,e,0,a,0,l,s)).context=np(null),n=e.current,(a=es(r=md(),o=gd(n))).callback=null!=t?t:null,ts(n,a,o),e.current.lanes=o,Mr(e,o,r),bd(e,r),e}function op(e,t,n,r){var o=t.current,a=md(),i=gd(o);return n=np(n),null===t.context?t.context=n:t.pendingContext=n,(t=es(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=ts(o,t,i))&&(vd(e,o,i,a),ns(e,o,i)),i}function ap(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function ip(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){ip(e,t),(e=e.alternate)&&ip(e,t)}Du=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ui.current)Nc=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return Nc=!1,function(e,t,n){switch(t.tag){case 3:Hc(t),_l();break;case 5:fs(t);break;case 1:Ki(t.type)&&Ji(t);break;case 4:ds(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Bi(Dl,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Bi(ms,1&ms.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Jc(e,t,n):(Bi(ms,1&ms.current),null!==(e=au(e,t,n))?e.sibling:null);Bi(ms,1&ms.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),Bi(ms,ms.current),r)break;return null;case 22:case 23:return t.lanes=0,jc(e,t,n)}return au(e,t,n)}(e,t,n);Nc=0!=(131072&e.flags)}else Nc=!1,xl&&0!=(1048576&t.flags)&&ml(t,sl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ou(e,t),e=t.pendingProps;var o=Gi(t,Hi.current);Ul(t,n),o=Ts(null,t,r,e,o,n);var a=Ps();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,Ki(r)?(a=!0,Ji(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Jl(t),o.updater=yc,t.stateNode=o,o._reactInternals=t,Ec(t,r,e,n),t=Wc(null,t,r,!0,a,n)):(t.tag=0,xl&&a&&gl(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===Vt)return 14}return 2}(r),e=vc(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=Ac(null,t,r,e,n);break e;case 14:t=zc(null,t,r,vc(r.type,e),n);break e}throw Error(xt(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,$c(e,t,r,o=t.elementType===r?o:vc(r,o),n);case 1:return r=t.type,o=t.pendingProps,Bc(e,t,r,o=t.elementType===r?o:vc(r,o),n);case 3:e:{if(Hc(t),null===e)throw Error(xt(387));r=t.pendingProps,o=(a=t.memoizedState).element,Yl(e,t),os(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Uc(e,t,r,n,o=Cc(Error(xt(423)),t));break e}if(r!==o){t=Uc(e,t,r,n,o=Cc(Error(xt(424)),t));break e}for(yl=ki(t.stateNode.containerInfo.firstChild),bl=t,xl=!0,Sl=null,n=zl(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(_l(),r===o){t=au(e,t,n);break e}qc(e,t,r,n)}t=t.child}return t;case 5:return fs(t),null===e&&kl(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children,bi(r,o)?i=null:null!==a&&bi(r,a)&&(t.flags|=32),Fc(e,t),qc(e,t,i,n),t.child;case 6:return null===e&&kl(t),null;case 13:return Jc(e,t,n);case 4:return ds(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Al(t,null,r,n):qc(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ac(e,t,r,o=t.elementType===r?o:vc(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,a=t.memoizedProps,i=o.value,Bi(Dl,r._currentValue),r._currentValue=i,null!==a)if(Ea(a.value,i)){if(a.children===o.children&&!Ui.current){t=au(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){i=a.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===a.tag){(s=es(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?s.next=s:(s.next=u.next,u.next=s),c.pending=s}}a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),Hl(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===a.tag)i=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(i=a.return))throw Error(xt(341));i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),Hl(i,n,t),i=a.sibling}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===t){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}qc(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ul(t,n),r=r(o=Vl(o)),t.flags|=1,qc(e,t,r,n),t.child;case 14:return o=vc(r=t.type,t.pendingProps),zc(e,t,r,o=vc(r.type,o),n);case 15:return Dc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vc(r,o),ou(e,t),t.tag=1,Ki(r)?(e=!0,Ji(t)):e=!1,Ul(t,n),Sc(t,r,o),Ec(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(xt(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 a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var l=o;o=function(){var e=ap(i);l.call(e)}}op(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=ap(i);a.call(e)}}var i=rp(t,r,e,0,null,!1,0,"",fp);return e._reactRootContainer=i,e[Ii]=i.current,oi(8===e.nodeType?e.parentNode:e),kd(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=ap(s);l.call(e)}}var s=tp(e,0,!1,null,0,!1,0,"",fp);return e._reactRootContainer=s,e[Ii]=s.current,oi(8===e.nodeType?e.parentNode:e),kd((function(){op(t,s,n,r)})),s}(n,t,e,o,r);return ap(i)}up.prototype.render=cp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(xt(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[Ii]=null}},up.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fr();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Zr.length&&0!==t&&t<Zr[n].priority;n++);Zr.splice(n,0,e),0===n&&Yr(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,fr()),0==(6&Wu)&&(rd=fr()+500,ol()))}break;case 13:kd((function(){var t=Xl(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=Xl(e,134217728);if(null!==t)vd(t,e,134217728,md());lp(e,134217728)}},jr=function(e){if(13===e.tag){var t=gd(e),n=Xl(e,t);if(null!==n)vd(n,e,t,md());lp(e,t)}},Fr=function(){return qr},$r=function(e,t){var n=qr;try{return qr=e,t()}finally{qr=n}},Dn=function(e,t,n){switch(t){case"input":if(hn(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=zi(r);if(!o)throw Error(xt(90));cn(r),hn(r,o)}}}break;case"textarea":Sn(e,n);break;case"select":null!=(t=n.value)&&bn(e,!!n.multiple,t,!1)}},Hn=Cd,Un=kd;var mp={usingClientEntryPoint:!1,Events:[qi,Ai,zi,Bn,Wn,Cd]},gp={findFiberByHostInstance:Ni,bundleType:0,version:"18.3.1",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:qt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=lr(e))?null:e.stateNode},findFiberByHostInstance:gp.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var bp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bp.isDisabled&&bp.supportsFiber)try{xr=bp.inject(vp),Sr=bp}catch(Rn){}}ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mp,ht.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!dp(t))throw Error(xt(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)},ht.createRoot=function(e,t){if(!dp(e))throw Error(xt(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[Ii]=t.current,oi(8===e.nodeType?e.parentNode:e),new cp(t)},ht.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(xt(188));throw e=Object.keys(e).join(","),Error(xt(268,e))}return e=null===(e=lr(t))?null:e.stateNode},ht.flushSync=function(e){return kd(e)},ht.hydrate=function(e,t,n){if(!pp(t))throw Error(xt(200));return hp(null,e,t,!0,n)},ht.hydrateRoot=function(e,t,n){if(!dp(e))throw Error(xt(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",i=sp;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(i=n.onRecoverableError)),t=rp(t,null,e,1,null!=n?n:null,o,0,a,i),e[Ii]=t.current,oi(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)},ht.render=function(e,t,n){if(!pp(t))throw Error(xt(200));return hp(null,e,t,!1,n)},ht.unmountComponentAtNode=function(e){if(!pp(e))throw Error(xt(40));return!!e._reactRootContainer&&(kd((function(){hp(null,null,e,!1,(function(){e._reactRootContainer=null,e[Ii]=null}))})),!0)},ht.unstable_batchedUpdates=Cd,ht.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!pp(n))throw Error(xt(200));if(null==e||void 0===e._reactInternals)throw Error(xt(38));return hp(e,t,n,!1,r)},ht.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),ft.exports=ht;var yp=ft.exports,xp=n(yp),Sp=yp;function wp(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."}pt.createRoot=Sp.createRoot,pt.hydrateRoot=Sp.hydrateRoot;var Ep=Object.freeze({__proto__:null,default:wp}),Cp="$$material";function kp(){return kp=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},kp.apply(this,arguments)}function Rp(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Lp(){return Lp=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},Lp.apply(this,arguments)}function Op(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var _p=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ip=Op((function(e){return _p.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var Tp=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Pp="-ms-",Mp="-moz-",Np="-webkit-",qp="comm",Ap="rule",zp="decl",Dp="@keyframes",jp=Math.abs,Fp=String.fromCharCode,$p=Object.assign;function Bp(e,t){return 45^Gp(e,0)?(((t<<2^Gp(e,0))<<2^Gp(e,1))<<2^Gp(e,2))<<2^Gp(e,3):0}function Wp(e){return e.trim()}function Hp(e,t){return(e=t.exec(e))?e[0]:e}function Up(e,t,n){return e.replace(t,n)}function Vp(e,t){return e.indexOf(t)}function Gp(e,t){return 0|e.charCodeAt(t)}function Kp(e,t,n){return e.slice(t,n)}function Zp(e){return e.length}function Xp(e){return e.length}function Qp(e,t){return t.push(e),e}function Jp(e,t){return e.map(t).join("")}var Yp=1,ef=1,tf=0,nf=0,rf=0,of="";function af(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Yp,column:ef,length:i,return:""}}function lf(e,t){return $p(af("",null,null,"",null,null,0),e,{length:-e.length},t)}function sf(){return rf=nf>0?Gp(of,--nf):0,ef--,10===rf&&(ef=1,Yp--),rf}function cf(){return rf=nf<tf?Gp(of,nf++):0,ef++,10===rf&&(ef=1,Yp++),rf}function uf(){return Gp(of,nf)}function df(){return nf}function pf(e,t){return Kp(of,e,t)}function ff(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 hf(e){return Yp=ef=1,tf=Zp(of=e),nf=0,[]}function mf(e){return of="",e}function gf(e){return Wp(pf(nf-1,yf(91===e?e+2:40===e?e+1:e)))}function vf(e){for(;(rf=uf())&&rf<33;)cf();return ff(e)>2||ff(rf)>3?"":" "}function bf(e,t){for(;--t&&cf()&&!(rf<48||rf>102||rf>57&&rf<65||rf>70&&rf<97););return pf(e,df()+(t<6&&32==uf()&&32==cf()))}function yf(e){for(;cf();)switch(rf){case e:return nf;case 34:case 39:34!==e&&39!==e&&yf(rf);break;case 40:41===e&&yf(e);break;case 92:cf()}return nf}function xf(e,t){for(;cf()&&e+rf!==57&&(e+rf!==84||47!==uf()););return"/*"+pf(t,nf-1)+"*"+Fp(47===e?e:cf())}function Sf(e){for(;!ff(uf());)cf();return pf(e,nf)}function wf(e){return mf(Ef("",null,null,null,[""],e=hf(e),0,[0],e))}function Ef(e,t,n,r,o,a,i,l,s){for(var c=0,u=0,d=i,p=0,f=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,S=a,w=r,E=y;g;)switch(h=b,b=cf()){case 40:if(108!=h&&58==Gp(E,d-1)){-1!=Vp(E+=Up(gf(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=gf(b);break;case 9:case 10:case 13:case 32:E+=vf(h);break;case 92:E+=bf(df()-1,7);continue;case 47:switch(uf()){case 42:case 47:Qp(kf(xf(cf(),df()),t,n),s);break;default:E+="/"}break;case 123*m:l[c++]=Zp(E)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(E=Up(E,/\f/g,"")),f>0&&Zp(E)-d&&Qp(f>32?Rf(E+";",r,n,d-1):Rf(Up(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(Qp(w=Cf(E,t,n,c,u,o,l,y,x=[],S=[],d),a),123===b)if(0===u)Ef(E,t,w,w,x,a,d,l,S);else switch(99===p&&110===Gp(E,3)?100:p){case 100:case 108:case 109:case 115:Ef(e,w,w,r&&Qp(Cf(e,w,w,0,0,o,l,y,o,x=[],d),S),o,S,d,l,r?x:S);break;default:Ef(E,w,w,w,[""],S,0,l,S)}}c=u=f=0,m=v=1,y=E="",d=i;break;case 58:d=1+Zp(E),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==sf())continue;switch(E+=Fp(b),b*m){case 38:v=u>0?1:(E+="\f",-1);break;case 44:l[c++]=(Zp(E)-1)*v,v=1;break;case 64:45===uf()&&(E+=gf(cf())),p=uf(),u=d=Zp(y=E+=Sf(df())),b++;break;case 45:45===h&&2==Zp(E)&&(m=0)}}return a}function Cf(e,t,n,r,o,a,i,l,s,c,u){for(var d=o-1,p=0===o?a:[""],f=Xp(p),h=0,m=0,g=0;h<r;++h)for(var v=0,b=Kp(e,d+1,d=jp(m=i[h])),y=e;v<f;++v)(y=Wp(m>0?p[v]+" "+b:Up(b,/&\f/g,p[v])))&&(s[g++]=y);return af(e,t,n,0===o?Ap:l,s,c,u)}function kf(e,t,n){return af(e,t,n,qp,Fp(rf),Kp(e,2,-2),0)}function Rf(e,t,n,r){return af(e,t,n,zp,Kp(e,0,r),Kp(e,r+1,-1),r)}function Lf(e,t){for(var n="",r=Xp(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Of(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case zp:return e.return=e.return||e.value;case qp:return"";case Dp:return e.return=e.value+"{"+Lf(e.children,r)+"}";case Ap:e.value=e.props.join(",")}return Zp(n=Lf(e.children,r))?e.return=e.value+"{"+n+"}":""}function _f(e){var t=Xp(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}function If(e){return function(t){t.root||(t=t.return)&&e(t)}}var Tf="undefined"!=typeof document,Pf=function(e,t,n){for(var r=0,o=0;r=o,o=uf(),38===r&&12===o&&(t[n]=1),!ff(o);)cf();return pf(e,nf)},Mf=function(e,t){return mf(function(e,t){var n=-1,r=44;do{switch(ff(r)){case 0:38===r&&12===uf()&&(t[n]=1),e[n]+=Pf(nf-1,t,n);break;case 2:e[n]+=gf(r);break;case 4:if(44===r){e[++n]=58===uf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Fp(r)}}while(r=cf());return e}(hf(e),t))},Nf=new WeakMap,qf=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)||Nf.get(n))&&!r){Nf.set(e,!0);for(var o=[],a=Mf(t,o),i=n.props,l=0,s=0;l<a.length;l++)for(var c=0;c<i.length;c++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[c]):i[c]+" "+a[l]}}},Af=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function zf(e,t){switch(Bp(e,t)){case 5103:return Np+"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 Np+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Np+e+Mp+e+Pp+e+e;case 6828:case 4268:return Np+e+Pp+e+e;case 6165:return Np+e+Pp+"flex-"+e+e;case 5187:return Np+e+Up(e,/(\w+).+(:[^]+)/,Np+"box-$1$2"+Pp+"flex-$1$2")+e;case 5443:return Np+e+Pp+"flex-item-"+Up(e,/flex-|-self/,"")+e;case 4675:return Np+e+Pp+"flex-line-pack"+Up(e,/align-content|flex-|-self/,"")+e;case 5548:return Np+e+Pp+Up(e,"shrink","negative")+e;case 5292:return Np+e+Pp+Up(e,"basis","preferred-size")+e;case 6060:return Np+"box-"+Up(e,"-grow","")+Np+e+Pp+Up(e,"grow","positive")+e;case 4554:return Np+Up(e,/([^-])(transform)/g,"$1"+Np+"$2")+e;case 6187:return Up(Up(Up(e,/(zoom-|grab)/,Np+"$1"),/(image-set)/,Np+"$1"),e,"")+e;case 5495:case 3959:return Up(e,/(image-set\([^]*)/,Np+"$1$`$1");case 4968:return Up(Up(e,/(.+:)(flex-)?(.*)/,Np+"box-pack:$3"+Pp+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Np+e+e;case 4095:case 3583:case 4068:case 2532:return Up(e,/(.+)-inline(.+)/,Np+"$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(Zp(e)-1-t>6)switch(Gp(e,t+1)){case 109:if(45!==Gp(e,t+4))break;case 102:return Up(e,/(.+:)(.+)-([^]+)/,"$1"+Np+"$2-$3$1"+Mp+(108==Gp(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Vp(e,"stretch")?zf(Up(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Gp(e,t+1))break;case 6444:switch(Gp(e,Zp(e)-3-(~Vp(e,"!important")&&10))){case 107:return Up(e,":",":"+Np)+e;case 101:return Up(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Np+(45===Gp(e,14)?"inline-":"")+"box$3$1"+Np+"$2$3$1"+Pp+"$2box$3")+e}break;case 5936:switch(Gp(e,t+11)){case 114:return Np+e+Pp+Up(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Np+e+Pp+Up(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Np+e+Pp+Up(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Np+e+Pp+e+e}return e}var Df,jf=Tf?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 Op((function(){var e={};return function(t){return e[t]}}))})),Ff=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case zp:e.return=zf(e.value,e.length);break;case Dp:return Lf([lf(e,{value:Up(e.value,"@","@"+Np)})],r);case Ap:if(e.length)return Jp(e.props,(function(t){switch(Hp(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Lf([lf(e,{props:[Up(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Lf([lf(e,{props:[Up(t,/:(plac\w+)/,":"+Np+"input-$1")]}),lf(e,{props:[Up(t,/:(plac\w+)/,":-moz-$1")]}),lf(e,{props:[Up(t,/:(plac\w+)/,Pp+"input-$1")]})],r)}return""}))}}],$f=function(e){var t=e.key;if(Tf&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||Ff,i={},l=[];Tf&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)})));var s=[qf,Af];if(Tf){var c,u=[Of,If((function(e){c.insert(e)}))],d=_f(s.concat(a,u));o=function(e,t,n,r){c=n,function(e){Lf(wf(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(g.inserted[t.name]=!0)}}else{var p=[Of],f=_f(s.concat(a,p)),h=jf(a)(t),m=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return Lf(wf(e),f)}(e?e+"{"+t.styles+"}":t.styles)),h[n]};o=function(e,t,n,r){var o=t.name,a=m(e,t);return void 0===g.compat?(r&&(g.inserted[o]=!0),a):r?void(g.inserted[o]=a):a}}var g={key:t,sheet:new Tp({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return g.sheet.hydrate(l),g},Bf={exports:{}},Wf={},Hf=Symbol.for("react.element"),Uf=Symbol.for("react.portal"),Vf=Symbol.for("react.fragment"),Gf=Symbol.for("react.strict_mode"),Kf=Symbol.for("react.profiler"),Zf=Symbol.for("react.provider"),Xf=Symbol.for("react.context"),Qf=Symbol.for("react.server_context"),Jf=Symbol.for("react.forward_ref"),Yf=Symbol.for("react.suspense"),eh=Symbol.for("react.suspense_list"),th=Symbol.for("react.memo"),nh=Symbol.for("react.lazy"),rh=Symbol.for("react.offscreen");function oh(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Hf:switch(e=e.type){case Vf:case Kf:case Gf:case Yf:case eh:return e;default:switch(e=e&&e.$$typeof){case Qf:case Xf:case Jf:case nh:case th:case Zf:return e;default:return t}}case Uf:return t}}}Df=Symbol.for("react.module.reference"),Wf.ContextConsumer=Xf,Wf.ContextProvider=Zf,Wf.Element=Hf,Wf.ForwardRef=Jf,Wf.Fragment=Vf,Wf.Lazy=nh,Wf.Memo=th,Wf.Portal=Uf,Wf.Profiler=Kf,Wf.StrictMode=Gf,Wf.Suspense=Yf,Wf.SuspenseList=eh,Wf.isAsyncMode=function(){return!1},Wf.isConcurrentMode=function(){return!1},Wf.isContextConsumer=function(e){return oh(e)===Xf},Wf.isContextProvider=function(e){return oh(e)===Zf},Wf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Hf},Wf.isForwardRef=function(e){return oh(e)===Jf},Wf.isFragment=function(e){return oh(e)===Vf},Wf.isLazy=function(e){return oh(e)===nh},Wf.isMemo=function(e){return oh(e)===th},Wf.isPortal=function(e){return oh(e)===Uf},Wf.isProfiler=function(e){return oh(e)===Kf},Wf.isStrictMode=function(e){return oh(e)===Gf},Wf.isSuspense=function(e){return oh(e)===Yf},Wf.isSuspenseList=function(e){return oh(e)===eh},Wf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Vf||e===Kf||e===Gf||e===Yf||e===eh||e===rh||"object"==typeof e&&null!==e&&(e.$$typeof===nh||e.$$typeof===th||e.$$typeof===Zf||e.$$typeof===Xf||e.$$typeof===Jf||e.$$typeof===Df||void 0!==e.getModuleId)},Wf.typeOf=oh,Bf.exports=Wf;var ah=Bf.exports,ih=ah,lh={};lh[ih.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},lh[ih.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var sh="undefined"!=typeof document;var ch=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===sh&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},uh=function(e,t,n){ch(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",a=t;do{var i=e.insert(t===a?"."+r:"",a,e.sheet,!0);sh||void 0===i||(o+=i),a=a.next}while(void 0!==a);if(!sh&&0!==o.length)return o}};var dh={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},ph=!1,fh=/[A-Z]|^ms/g,hh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mh=function(e){return 45===e.charCodeAt(1)},gh=function(e){return null!=e&&"boolean"!=typeof e},vh=Op((function(e){return mh(e)?e:e.replace(fh,"-$&").toLowerCase()})),bh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(hh,(function(e,t,n){return Sh={name:t,styles:n,next:Sh},t}))}return 1===dh[e]||mh(e)||"number"!=typeof t||0===t?t:t+"px"},yh="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function xh(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Sh={name:o.name,styles:o.styles,next:Sh},o.name;var a=n;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)Sh={name:i.name,styles:i.styles,next:Sh},i=i.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=xh(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i){var l=i;null!=t&&void 0!==t[l]?r+=a+"{"+t[l]+"}":gh(l)&&(r+=vh(a)+":"+bh(a,l)+";")}else{if("NO_COMPONENT_SELECTOR"===a&&ph)throw new Error(yh);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=xh(e,t,i);switch(a){case"animation":case"animationName":r+=vh(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var c=0;c<i.length;c++)gh(i[c])&&(r+=vh(a)+":"+bh(a,i[c])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var l=Sh,s=n(e);return Sh=l,xh(e,t,s)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Sh,wh=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function Eh(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="";Sh=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=xh(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++){if(o+=xh(n,t,e[i]),r)o+=a[i]}wh.lastIndex=0;for(var l,s="";null!==(l=wh.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:Sh}}var Ch="undefined"!=typeof document,kh=function(e){return e()},Rh=!!G.useInsertionEffect&&G.useInsertionEffect,Lh=Ch&&Rh||kh,Oh=Rh||U.useLayoutEffect,_h="undefined"!=typeof document,Ih=U.createContext("undefined"!=typeof HTMLElement?$f({key:"css"}):null),Th=Ih.Provider,Ph=function(e){return U.forwardRef((function(t,n){var r=U.useContext(Ih);return e(t,r,n)}))};_h||(Ph=function(e){return function(t){var n=U.useContext(Ih);return null===n?(n=$f({key:"css"}),U.createElement(Ih.Provider,{value:n},e(t,n))):e(t,n)}});var Mh=U.createContext({}),Nh=Ph((function(e,t){var n=Eh([e.styles],void 0,U.useContext(Mh));if(!_h){for(var r,o=n.name,a=n.styles,i=n.next;void 0!==i;)o+=" "+i.name,a+=i.styles,i=i.next;var l=!0===t.compat,s=t.insert("",{name:o,styles:a},t.sheet,l);return l?null:U.createElement("style",((r={})["data-emotion"]=t.key+"-global "+o,r.dangerouslySetInnerHTML={__html:s},r.nonce=t.sheet.nonce,r))}var c=U.useRef();return Oh((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),r.hydrate([a])),c.current=[r,o],function(){r.flush()}}),[t]),Oh((function(){var e=c.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&uh(t,n.next,!0),r.tags.length){var o=r.tags[r.tags.length-1].nextElementSibling;r.before=o,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function qh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Eh(t)}var Ah=function(){var e=qh.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_"}}},zh=Ip,Dh=function(e){return"theme"!==e},jh=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?zh:Dh},Fh=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},$h="undefined"!=typeof document,Bh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;ch(t,n,r);var o=Lh((function(){return uh(t,n,r)}));if(!$h&&void 0!==o){for(var a,i=n.name,l=n.next;void 0!==l;)i+=" "+l.name,l=l.next;return U.createElement("style",((a={})["data-emotion"]=t.key+" "+i,a.dangerouslySetInnerHTML={__html:o},a.nonce=t.sheet.nonce,a))}return null},Wh=function e(t,n){var r,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var l=Fh(t,n,a),s=l||jh(i),c=!s("as");return function(){var u=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)d.push(u[f],u[0][f])}var h=Ph((function(e,t,n){var r,a,u,p,f=c&&e.as||i,h="",m=[],g=e;if(null==e.theme){for(var v in g={},e)g[v]=e[v];g.theme=U.useContext(Mh)}"string"==typeof e.className?(r=t.registered,a=m,u=e.className,p="",u.split(" ").forEach((function(e){void 0!==r[e]?a.push(r[e]+";"):p+=e+" "})),h=p):null!=e.className&&(h=e.className+" ");var b=Eh(d.concat(m),t.registered,g);h+=t.key+"-"+b.name,void 0!==o&&(h+=" "+o);var y=c&&void 0===l?jh(f):s,x={};for(var S in e)c&&"as"===S||y(S)&&(x[S]=e[S]);return x.className=h,n&&(x.ref=n),U.createElement(U.Fragment,null,U.createElement(Bh,{cache:t,serialized:b,isStringTag:"string"==typeof f}),U.createElement(f,x))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,Lp({},n,r,{shouldForwardProp:Fh(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){Wh[e]=Wh(e)}));var Hh=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var Uh=function(e,t,n){for(var r=0,o=0;r=o,o=uf(),38===r&&12===o&&(t[n]=1),!ff(o);)cf();return pf(e,nf)},Vh=function(e,t){return mf(function(e,t){var n=-1,r=44;do{switch(ff(r)){case 0:38===r&&12===uf()&&(t[n]=1),e[n]+=Uh(nf-1,t,n);break;case 2:e[n]+=gf(r);break;case 4:if(44===r){e[++n]=58===uf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Fp(r)}}while(r=cf());return e}(hf(e),t))},Gh=new WeakMap,Kh=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)||Gh.get(n))&&!r){Gh.set(e,!0);for(var o=[],a=Vh(t,o),i=n.props,l=0,s=0;l<a.length;l++)for(var c=0;c<i.length;c++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[c]):i[c]+" "+a[l]}}},Zh=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Xh(e,t){switch(Bp(e,t)){case 5103:return Np+"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 Np+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Np+e+Mp+e+Pp+e+e;case 6828:case 4268:return Np+e+Pp+e+e;case 6165:return Np+e+Pp+"flex-"+e+e;case 5187:return Np+e+Up(e,/(\w+).+(:[^]+)/,Np+"box-$1$2"+Pp+"flex-$1$2")+e;case 5443:return Np+e+Pp+"flex-item-"+Up(e,/flex-|-self/,"")+e;case 4675:return Np+e+Pp+"flex-line-pack"+Up(e,/align-content|flex-|-self/,"")+e;case 5548:return Np+e+Pp+Up(e,"shrink","negative")+e;case 5292:return Np+e+Pp+Up(e,"basis","preferred-size")+e;case 6060:return Np+"box-"+Up(e,"-grow","")+Np+e+Pp+Up(e,"grow","positive")+e;case 4554:return Np+Up(e,/([^-])(transform)/g,"$1"+Np+"$2")+e;case 6187:return Up(Up(Up(e,/(zoom-|grab)/,Np+"$1"),/(image-set)/,Np+"$1"),e,"")+e;case 5495:case 3959:return Up(e,/(image-set\([^]*)/,Np+"$1$`$1");case 4968:return Up(Up(e,/(.+:)(flex-)?(.*)/,Np+"box-pack:$3"+Pp+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Np+e+e;case 4095:case 3583:case 4068:case 2532:return Up(e,/(.+)-inline(.+)/,Np+"$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(Zp(e)-1-t>6)switch(Gp(e,t+1)){case 109:if(45!==Gp(e,t+4))break;case 102:return Up(e,/(.+:)(.+)-([^]+)/,"$1"+Np+"$2-$3$1"+Mp+(108==Gp(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Vp(e,"stretch")?Xh(Up(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Gp(e,t+1))break;case 6444:switch(Gp(e,Zp(e)-3-(~Vp(e,"!important")&&10))){case 107:return Up(e,":",":"+Np)+e;case 101:return Up(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Np+(45===Gp(e,14)?"inline-":"")+"box$3$1"+Np+"$2$3$1"+Pp+"$2box$3")+e}break;case 5936:switch(Gp(e,t+11)){case 114:return Np+e+Pp+Up(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Np+e+Pp+Up(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Np+e+Pp+Up(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Np+e+Pp+e+e}return e}var Qh="undefined"!=typeof document,Jh=Qh?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]}}))})),Yh=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case zp:e.return=Xh(e.value,e.length);break;case Dp:return Lf([lf(e,{value:Up(e.value,"@","@"+Np)})],r);case Ap:if(e.length)return Jp(e.props,(function(t){switch(Hp(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Lf([lf(e,{props:[Up(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Lf([lf(e,{props:[Up(t,/:(plac\w+)/,":"+Np+"input-$1")]}),lf(e,{props:[Up(t,/:(plac\w+)/,":-moz-$1")]}),lf(e,{props:[Up(t,/:(plac\w+)/,Pp+"input-$1")]})],r)}return""}))}}],em={exports:{}},tm={},nm=U,rm=Symbol.for("react.element"),om=Symbol.for("react.fragment"),am=Object.prototype.hasOwnProperty,im=nm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,lm={key:!0,ref:!0,__self:!0,__source:!0};function sm(e,t,n){var r,o={},a=null,i=null;for(r in void 0!==n&&(a=""+n),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)am.call(t,r)&&!lm.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:rm,type:e,key:a,ref:i,props:o,_owner:im.current}}tm.Fragment=om,tm.jsx=sm,tm.jsxs=sm,em.exports=tm;var cm=em.exports;let um;function dm(e){const{injectFirst:t,children:n}=e;return t&&um?cm.jsx(Th,{value:um,children:n}):n}function pm(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 cm.jsx(Nh,{styles:r})}
|
|
27
27
|
/**
|
|
28
|
-
* @mui/styled-engine v5.
|
|
28
|
+
* @mui/styled-engine v5.16.4
|
|
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 lm(e,t){return Gh(e,t)}"object"==typeof document&&(om=Df({key:"css",prepend:!0}));const sm=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};var cm=Object.freeze({__proto__:null,GlobalStyles:im,StyledEngineProvider:am,ThemeContext:Oh,css:Ih,default:lm,internal_processStyles:sm,keyframes:Th});function um(){return um=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},um.apply(this,arguments)}function dm(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function pm(){return pm=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},pm.apply(this,arguments)}function fm(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function hm(e){if(!fm(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=hm(e[n])})),t}function mm(e,t,n={clone:!0}){const r=n.clone?pm({},e):e;return fm(e)&&fm(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(fm(t[o])&&o in e&&fm(e[o])?r[o]=mm(e[o],t[o],n):n.clone?r[o]=fm(t[o])?hm(t[o]):t[o]:r[o]=t[o])})),r}var gm=Object.freeze({__proto__:null,default:mm,isPlainObject:fm});const vm=["values","unit","step"],bm=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)=>um({},e,{[t.key]:t.val})),{})};function ym(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=dm(e,vm),a=bm(t),i=Object.keys(a);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-r/100}${n})`}return um({keys:i,values:a,up:l,down:s,between:c,only:function(e){return i.indexOf(e)+1<i.length?c(e,i[i.indexOf(e)+1]):l(e)},not:function(e){const t=i.indexOf(e);return 0===t?l(i[1]):t===i.length-1?s(i[t]):c(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const xm={borderRadius:4};function Sm(e,t){return t?mm(e,t,{clone:!1}):e}const wm={xs:0,sm:600,md:900,lg:1200,xl:1536},Em={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${wm[e]}px)`};function Cm(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Em;return t.reduce(((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Em;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||wm).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function km(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function Rm(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function Lm({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let a;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[a],a=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[a],a=n):t[n]=e,t)),{})}function Om(e){if("string"!=typeof e)throw new Error(wp(7));return e.charAt(0).toUpperCase()+e.slice(1)}var _m=Object.freeze({__proto__:null,default:Om});function Im(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 Tm(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Im(e,n)||r,t&&(o=t(o,r,e)),o}function Pm(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=Im(e.theme,r)||{};return Cm(e,a,(e=>{let r=Tm(i,o,e);return e===r&&"string"==typeof e&&(r=Tm(i,o,`${t}${"default"===e?"":Om(e)}`,e)),!1===n?r:{[n]:r}}))};return a.propTypes={},a.filterProps=[t],a}const Mm={m:"margin",p:"padding"},Nm={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qm={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(!qm[e])return[e];e=qm[e]}const[t,n]=e.split(""),r=Mm[t],o=Nm[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Dm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Am=["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 a=null!=(o=Im(e,t,!1))?o:n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function Fm(e){return jm(e,"spacing",8)}function Bm(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 $m(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Bm(t,n),e)),{})}(zm(n),r);return Cm(e,e[n],o)}function Wm(e,t){const n=Fm(e.theme);return Object.keys(e).map((r=>$m(e,t,r,n))).reduce(Sm,{})}function Hm(e){return Wm(e,Dm)}function Um(e){return Wm(e,Am)}function Vm(e=8){if(e.mui)return e;const t=Fm({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 Gm(...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]?Sm(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Km(e){return"number"!=typeof e?e:`${e}px solid`}function Zm(e,t){return Pm({prop:e,themeKey:"borders",transform:t})}Hm.propTypes={},Hm.filterProps=Dm,Um.propTypes={},Um.filterProps=Am;const Xm=Zm("border",Km),Qm=Zm("borderTop",Km),Jm=Zm("borderRight",Km),Ym=Zm("borderBottom",Km),eg=Zm("borderLeft",Km),tg=Zm("borderColor"),ng=Zm("borderTopColor"),rg=Zm("borderRightColor"),og=Zm("borderBottomColor"),ag=Zm("borderLeftColor"),ig=Zm("outline",Km),lg=Zm("outlineColor"),sg=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=jm(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Bm(t,e)});return Cm(e,e.borderRadius,n)}return null};sg.propTypes={},sg.filterProps=["borderRadius"],Gm(Xm,Qm,Jm,Ym,eg,tg,ng,rg,og,ag,sg,ig,lg);const cg=e=>{if(void 0!==e.gap&&null!==e.gap){const t=jm(e.theme,"spacing",8),n=e=>({gap:Bm(t,e)});return Cm(e,e.gap,n)}return null};cg.propTypes={},cg.filterProps=["gap"];const ug=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=jm(e.theme,"spacing",8),n=e=>({columnGap:Bm(t,e)});return Cm(e,e.columnGap,n)}return null};ug.propTypes={},ug.filterProps=["columnGap"];const dg=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=jm(e.theme,"spacing",8),n=e=>({rowGap:Bm(t,e)});return Cm(e,e.rowGap,n)}return null};dg.propTypes={},dg.filterProps=["rowGap"];function pg(e,t){return"grey"===t?t:e}Gm(cg,ug,dg,Pm({prop:"gridColumn"}),Pm({prop:"gridRow"}),Pm({prop:"gridAutoFlow"}),Pm({prop:"gridAutoColumns"}),Pm({prop:"gridAutoRows"}),Pm({prop:"gridTemplateColumns"}),Pm({prop:"gridTemplateRows"}),Pm({prop:"gridTemplateAreas"}),Pm({prop:"gridArea"}));function fg(e){return e<=1&&0!==e?100*e+"%":e}Gm(Pm({prop:"color",themeKey:"palette",transform:pg}),Pm({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:pg}),Pm({prop:"backgroundColor",themeKey:"palette",transform:pg}));const hg=Pm({prop:"width",transform:fg}),mg=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||wm[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:fg(t)}};return Cm(e,e.maxWidth,t)}return null};mg.filterProps=["maxWidth"];const gg=Pm({prop:"minWidth",transform:fg}),vg=Pm({prop:"height",transform:fg}),bg=Pm({prop:"maxHeight",transform:fg}),yg=Pm({prop:"minHeight",transform:fg});Pm({prop:"size",cssProperty:"width",transform:fg}),Pm({prop:"size",cssProperty:"height",transform:fg});Gm(hg,mg,gg,vg,bg,yg,Pm({prop:"boxSizing"}));const xg={border:{themeKey:"borders",transform:Km},borderTop:{themeKey:"borders",transform:Km},borderRight:{themeKey:"borders",transform:Km},borderBottom:{themeKey:"borders",transform:Km},borderLeft:{themeKey:"borders",transform:Km},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Km},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:sg},color:{themeKey:"palette",transform:pg},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:pg},backgroundColor:{themeKey:"palette",transform:pg},p:{style:Um},pt:{style:Um},pr:{style:Um},pb:{style:Um},pl:{style:Um},px:{style:Um},py:{style:Um},padding:{style:Um},paddingTop:{style:Um},paddingRight:{style:Um},paddingBottom:{style:Um},paddingLeft:{style:Um},paddingX:{style:Um},paddingY:{style:Um},paddingInline:{style:Um},paddingInlineStart:{style:Um},paddingInlineEnd:{style:Um},paddingBlock:{style:Um},paddingBlockStart:{style:Um},paddingBlockEnd:{style:Um},m:{style:Hm},mt:{style:Hm},mr:{style:Hm},mb:{style:Hm},ml:{style:Hm},mx:{style:Hm},my:{style:Hm},margin:{style:Hm},marginTop:{style:Hm},marginRight:{style:Hm},marginBottom:{style:Hm},marginLeft:{style:Hm},marginX:{style:Hm},marginY:{style:Hm},marginInline:{style:Hm},marginInlineStart:{style:Hm},marginInlineEnd:{style:Hm},marginBlock:{style:Hm},marginBlockStart:{style:Hm},marginBlockEnd:{style:Hm},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:cg},rowGap:{style:dg},columnGap:{style:ug},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:fg},maxWidth:{style:mg},minWidth:{transform:fg},height:{transform:fg},maxHeight:{transform:fg},minHeight:{transform:fg},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Sg(){function e(e,t,n,r){const o={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:l,transform:s,style:c}=a;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const u=Im(n,l)||{};if(c)return c(o);return Cm(o,t,(t=>{let n=Tm(u,s,t);return t===n&&"string"==typeof t&&(n=Tm(u,s,`${e}${"default"===t?"":Om(t)}`,t)),!1===i?n:{[i]:n}}))}return function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=null!=(r=a.unstable_sxConfig)?r:xg;function l(n){let r=n;if("function"==typeof n)r=n(a);else if("object"!=typeof n)return n;if(!r)return null;const o=km(a.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],c=a,"function"==typeof l?l(c):l);var l,c;if(null!=o)if("object"==typeof o)if(i[n])s=Sm(s,e(n,o,a,i));else{const e=Cm({theme:a},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=Sm(s,e):s[n]=t({sx:o,theme:a})}else s=Sm(s,e(n,o,a,i))})),Rm(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const wg=Sg();function Eg(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}wg.filterProps=["sx"];const Cg=["breakpoints","palette","spacing","shape"];function kg(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=dm(e,Cg),l=ym(n),s=Vm(o);let c=mm({breakpoints:l,direction:"ltr",components:{},palette:um({mode:"light"},r),spacing:s,shape:um({},xm,a)},i);return c.applyStyles=Eg,c=t.reduce(((e,t)=>mm(e,t)),c),c.unstable_sxConfig=um({},xg,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return wg({sx:e,theme:this})},c}var Rg=Object.freeze({__proto__:null,default:kg,private_createBreakpoints:ym,unstable_applyStyles:Eg});function Lg(e=null){const t=U.useContext(Oh);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Og=kg();function _g(e=Og){return Lg(e)}function Ig({styles:e,themeId:t,defaultTheme:n={}}){const r=_g(n),o="function"==typeof e?e(t&&r[t]||r):e;return rm.jsx(im,{styles:o})}const Tg=["sx"],Pg=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:xg;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Mg(e){const{sx:t}=e,n=dm(e,Tg),{systemProps:r,otherProps:o}=Pg(n);let a;return a=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return fm(n)?um({},r,n):r}:um({},r,t),um({},o,{sx:a})}var Ng=Object.freeze({__proto__:null,default:wg,extendSxProp:Mg,unstable_createStyleFunctionSx:Sg,unstable_defaultSxConfig:xg});const qg=e=>e,zg=(()=>{let e=qg;return{configure(t){e=t},generate:t=>e(t),reset(){e=qg}}})();function Dg(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Dg(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ag(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Dg(e))&&(r&&(r+=" "),r+=t);return r}const jg=["className","component"];const Fg={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Bg(e,t,n="Mui"){const r=Fg[t];return r?`${n}-${r}`:`${zg.generate(e)}-${t}`}function $g(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Bg(e,t,n)})),r}const Wg=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Hg(e){const t=`${e}`.match(Wg);return t&&t[1]||""}function Ug(e,t=""){return e.displayName||e.name||Hg(e)||t}function Vg(e,t,n){const r=Ug(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Gg=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Ug(e,"Component");if("object"==typeof e)switch(e.$$typeof){case th.ForwardRef:return Vg(e,e.render,"ForwardRef");case th.Memo:return Vg(e,e.type,"memo");default:return}}},getFunctionName:Hg});const Kg=["ownerState"],Zg=["variants"],Xg=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Qg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Jg=kg(),Yg=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function ev({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function tv(e){return e?(t,n)=>n[e]:null}function nv(e,t){let{ownerState:n}=t,r=dm(t,Kg);const o="function"==typeof e?e(um({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>nv(e,um({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=dm(o,Zg);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(um({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(um({ownerState:n},r,n)):e.style))})),t}return o}const rv=function(e={}){const{themeId:t,defaultTheme:n=Jg,rootShouldForwardProp:r=Qg,slotShouldForwardProp:o=Qg}=e,a=e=>wg(um({},e,{theme:ev(um({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{sm(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d=tv(Yg(s))}=i,p=dm(i,Xg),f=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,h=u||!1;let m=Qg;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=lm(e,um({shouldForwardProp:m,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||fm(e)?r=>nv(e,um({},r,{theme:ev({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let i=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=ev(um({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,a={};return Object.entries(o).forEach((([t,n])=>{a[t]=nv(n,um({},e,{theme:r}))})),d(e,a)})),l&&!f&&s.push((e=>{var r;const o=ev(um({},e,{defaultTheme:n,themeId:t}));return nv({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},um({},e,{theme:o}))})),h||s.push(a);const c=s.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const u=g(i,...s);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(b.withConfig=g.withConfig),b}}();function ov(e,t){const n=pm({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=pm({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},a&&Object.keys(a)?o&&Object.keys(o)?(n[r]=pm({},a),Object.keys(o).forEach((e=>{n[r][e]=ov(o[e],a[e])}))):n[r]=a:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function av({props:e,name:t,defaultTheme:n,themeId:r}){let o=_g(n);r&&(o=o[r]||o);const a=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?ov(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return a}const iv="undefined"!=typeof window?U.useLayoutEffect:U.useEffect;var lv=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function sv(){return sv=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},sv.apply(this,arguments)}function cv(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function uv(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function dv(e,t){var n,r;return U.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(r=e.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)}function pv(e){return e&&e.ownerDocument||document}function fv(e){return pv(e).defaultView||window}function hv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let mv=0;const gv=G["useId".toString()];function vv(e){if(void 0!==gv){const t=gv();return null!=e?e:t}return function(e){const[t,n]=U.useState(e),r=e||t;return U.useEffect((()=>{null==t&&(mv+=1,n(`mui-${mv}`))}),[t]),r}(e)}function bv({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=U.useRef(void 0!==e),[a,i]=U.useState(t);return[o?e:a,U.useCallback((e=>{o||i(e)}),[])]}function yv(e){const t=U.useRef(e);return iv((()=>{t.current=e})),U.useRef(((...e)=>(0,t.current)(...e))).current}function xv(...e){return U.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{hv(e,t)}))}),e)}const Sv={};const wv=[];class Ev{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ev}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Cv(){const e=function(e,t){const n=U.useRef(Sv);return n.current===Sv&&(n.current=e(t)),n}(Ev.create).current;var t;return t=e.disposeEffect,U.useEffect(t,wv),e}let kv=!0,Rv=!1;const Lv=new Ev,Ov={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 _v(e){e.metaKey||e.altKey||e.ctrlKey||(kv=!0)}function Iv(){kv=!1}function Tv(){"hidden"===this.visibilityState&&Rv&&(kv=!0)}function Pv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return kv||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Ov[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Mv(){const e=U.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",_v,!0),t.addEventListener("mousedown",Iv,!0),t.addEventListener("pointerdown",Iv,!0),t.addEventListener("touchstart",Iv,!0),t.addEventListener("visibilitychange",Tv,!0))}),[]),t=U.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Pv(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Rv=!0,Lv.start(100,(()=>{Rv=!1})),t.current=!1,!0)},ref:e}}function Nv(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const qv=e=>{const t=U.useRef({});return U.useEffect((()=>{t.current=e})),t.current};function zv(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 Dv=U.createContext(null);function Av(){return U.useContext(Dv)}var jv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Fv(e){const{children:t,theme:n}=e,r=Av(),o=U.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return sv({},e,t)}(r,n);return null!=e&&(e[jv]=null!==r),e}),[n,r]);return rm.jsx(Dv.Provider,{value:o,children:t})}const Bv=["value"],$v=U.createContext();function Wv(e){let{value:t}=e,n=dm(e,Bv);return rm.jsx($v.Provider,um({value:null==t||t},n))}const Hv={};function Uv(e,t,n,r=!1){return U.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const a=n(o),i=e?um({},t,{[e]:a}):a;return r?()=>i:i}return um({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Vv(e){const{children:t,theme:n,themeId:r}=e,o=Lg(Hv),a=Av()||Hv,i=Uv(r,o,n),l=Uv(r,a,n,!0),s="rtl"===i.direction;return rm.jsx(Fv,{theme:l,children:rm.jsx(Oh.Provider,{value:i,children:rm.jsx(Wv,{value:s,children:t})})})}const Gv=["component","direction","spacing","divider","children","className","useFlexGap"],Kv=kg(),Zv=rv("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Xv(e){return av({props:e,name:"MuiStack",defaultTheme:Kv})}function Qv(e,t){const n=U.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(U.cloneElement(t,{key:`separator-${o}`})),e)),[])}const Jv=({ownerState:e,theme:t})=>{let n=um({display:"flex",flexDirection:"column"},Cm({theme:t},Lm({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=Fm(t),o=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),a=Lm({values:e.direction,base:o}),i=Lm({values:e.spacing,base:o});"object"==typeof a&&Object.keys(a).forEach(((e,t,n)=>{if(!a[e]){const r=t>0?a[n[t-1]]:"column";a[e]=r}}));n=mm(n,Cm({theme:t},i,((t,n)=>{return e.useFlexGap?{gap:Bm(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?a[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:Bm(r,t)}};var o})))}return n=function(e,...t){const n=km(e),r=[n,...t].reduce(((e,t)=>mm(e,t)),{});return Rm(Object.keys(n),r)}(t.breakpoints,n),n};const Yv=["defaultProps","mixins","overrides","palette","props","styleOverrides"],eb=["type","mode"];var tb={},nb={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(nb);var rb=nb.exports,ob=r(Ep),ab=r(lv),ib=rb;Object.defineProperty(tb,"__esModule",{value:!0});var lb=tb.alpha=xb;tb.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=mb(e),i=mb(t),l=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return vb({type:"rgb",values:l})},tb.colorChannel=void 0;var sb=tb.darken=Sb;tb.decomposeColor=mb,tb.emphasize=Eb;var cb=tb.getContrastRatio=function(e,t){const n=yb(e),r=yb(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};tb.getLuminance=yb,tb.hexToRgb=hb,tb.hslToRgb=bb;var ub=tb.lighten=wb;tb.private_safeAlpha=function(e,t,n){try{return xb(e,t)}catch(t){return e}},tb.private_safeColorChannel=void 0,tb.private_safeDarken=function(e,t,n){try{return Sb(e,t)}catch(t){return e}},tb.private_safeEmphasize=function(e,t,n){try{return Eb(e,t)}catch(t){return e}},tb.private_safeLighten=function(e,t,n){try{return wb(e,t)}catch(t){return e}},tb.recomposeColor=vb,tb.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=mb(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var db=ib(ob),pb=ib(ab);function fb(e,t=0,n=1){return(0,pb.default)(e,t,n)}function hb(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function mb(e){if(e.type)return e;if("#"===e.charAt(0))return mb(hb(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,db.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,db.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const gb=e=>{const t=mb(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};tb.colorChannel=gb;function vb(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 bb(e){e=mb(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),vb({type:l,values:s})}function yb(e){let t="hsl"===(e=mb(e)).type||"hsla"===e.type?mb(bb(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 xb(e,t){return e=mb(e),t=fb(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,vb(e)}function Sb(e,t){if(e=mb(e),t=fb(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return vb(e)}function wb(e,t){if(e=mb(e),t=fb(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return vb(e)}function Eb(e,t=.15){return yb(e)>.5?Sb(e,t):wb(e,t)}tb.private_safeColorChannel=(e,t)=>{try{return gb(e)}catch(t){return e}};const Cb={black:"#000",white:"#fff"},kb={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"},Rb={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"},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"},Ob={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"},_b={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"},Ib={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"},Tb={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"},Pb=["mode","contrastThreshold","tonalOffset"],Mb={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:Cb.white,default:Cb.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}},Nb={text:{primary:Cb.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:Cb.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 qb(e,t,n,r){const o=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=ub(e.main,o):"dark"===t&&(e.dark=sb(e.main,a)))}function zb(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Rp(e,Pb),a=e.primary||function(e="light"){return"dark"===e?{main:_b[200],light:_b[50],dark:_b[400]}:{main:_b[700],light:_b[400],dark:_b[800]}}(t),i=e.secondary||function(e="light"){return"dark"===e?{main:Rb[200],light:Rb[50],dark:Rb[400]}:{main:Rb[500],light:Rb[300],dark:Rb[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:Ib[400],light:Ib[300],dark:Ib[700]}:{main:Ib[700],light:Ib[500],dark:Ib[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Tb[400],light:Tb[300],dark:Tb[700]}:{main:Tb[800],light:Tb[500],dark:Tb[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Ob[400],light:Ob[300],dark:Ob[700]}:{main:"#ed6c02",light:Ob[500],dark:Ob[900]}}(t);function d(e){return cb(e,Nb.text.primary)>=n?Nb.text.primary:Mb.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=kp({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(wp(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(wp(12,t?` (${t})`:"",JSON.stringify(e.main)));return qb(e,"light",o,r),qb(e,"dark",a,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Nb,light:Mb};return mm(kp({common:kp({},Cb),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:c,name:"success"}),grey:kb,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Db=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ab={textTransform:"uppercase"},jb='"Roboto", "Helvetica", "Arial", sans-serif';function Fb(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=jb,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=Rp(n,Db),f=o/14,h=d||(e=>e/c*f+"rem"),m=(e,t,n,o,a)=>{return kp({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===jb?{letterSpacing:(i=o/t,Math.round(1e5*i)/1e5)+"em"}:{},a,u);var i},g={h1:m(a,96,1.167,-1.5),h2:m(a,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(l,14,1.75,.4,Ab),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,Ab),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return mm(kp({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Bb(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const $b=["none",Bb(0,2,1,-1,0,1,1,0,0,1,3,0),Bb(0,3,1,-2,0,2,2,0,0,1,5,0),Bb(0,3,3,-2,0,3,4,0,0,1,8,0),Bb(0,2,4,-1,0,4,5,0,0,1,10,0),Bb(0,3,5,-1,0,5,8,0,0,1,14,0),Bb(0,3,5,-1,0,6,10,0,0,1,18,0),Bb(0,4,5,-2,0,7,10,1,0,2,16,1),Bb(0,5,5,-3,0,8,10,1,0,3,14,2),Bb(0,5,6,-3,0,9,12,1,0,3,16,2),Bb(0,6,6,-3,0,10,14,1,0,4,18,3),Bb(0,6,7,-4,0,11,15,1,0,4,20,3),Bb(0,7,8,-4,0,12,17,2,0,5,22,4),Bb(0,7,8,-4,0,13,19,2,0,5,24,4),Bb(0,7,9,-4,0,14,21,2,0,5,26,4),Bb(0,8,9,-5,0,15,22,2,0,6,28,5),Bb(0,8,10,-5,0,16,24,2,0,6,30,5),Bb(0,8,11,-5,0,17,26,2,0,6,32,5),Bb(0,9,11,-5,0,18,28,2,0,7,34,6),Bb(0,9,12,-6,0,19,29,2,0,7,36,6),Bb(0,10,13,-6,0,20,31,3,0,8,38,7),Bb(0,10,13,-6,0,21,33,3,0,8,40,7),Bb(0,10,14,-6,0,22,35,3,0,8,42,7),Bb(0,11,14,-7,0,23,36,3,0,9,44,8),Bb(0,11,15,-7,0,24,38,3,0,9,46,8)],Wb=["duration","easing","delay"],Hb={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)"},Ub={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Vb(e){return`${Math.round(e)}ms`}function Gb(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Kb(e){const t=kp({},Hb,e.easing),n=kp({},Ub,e.duration);return kp({getAutoHeightDuration:Gb,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:i=0}=r;return Rp(r,Wb),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Vb(o)} ${a} ${"string"==typeof i?i:Vb(i)}`)).join(",")}},e,{easing:t,duration:n})}const Zb={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Xb=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Qb(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=Rp(e,Xb);if(e.vars)throw new Error(wp(18));const l=zb(r),s=kg(e);let c=mm(s,{mixins:(u=s.breakpoints,d=n,kp({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:$b.slice(),typography:Fb(l,a),transitions:Kb(o),zIndex:kp({},Zb)});var u,d;return c=mm(c,i),c=t.reduce(((e,t)=>mm(e,t)),c),c.unstable_sxConfig=kp({},xg,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return wg({sx:e,theme:this})},c}const Jb=Qb();function Yb(){const e=_g(Jb);return e[Cp]||e}function ey({props:e,name:t}){return av({props:e,name:t,defaultTheme:Jb,themeId:Cp})}var ty,ny={},ry={exports:{}};var oy,ay={exports:{}};var iy=r(cm),ly=r(gm),sy=r(_m),cy=r(Gg),uy=r(Rg),dy=r(Ng),py=rb;Object.defineProperty(ny,"__esModule",{value:!0});var fy=ny.default=function(e={}){const{themeId:t,defaultTheme:n=ky,rootShouldForwardProp:r=Cy,slotShouldForwardProp:o=Cy}=e,a=e=>(0,yy.default)((0,hy.default)({},e,{theme:Ly((0,hy.default)({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{(0,gy.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d=Oy(Ry(s))}=i,p=(0,my.default)(i,wy),f=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,h=u||!1;let m=Cy;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,gy.default)(e,(0,hy.default)({shouldForwardProp:m,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,vy.isPlainObject)(e)?r=>_y(e,(0,hy.default)({},r,{theme:Ly({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let i=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=Ly((0,hy.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,a={};return Object.entries(o).forEach((([t,n])=>{a[t]=_y(n,(0,hy.default)({},e,{theme:r}))})),d(e,a)})),l&&!f&&s.push((e=>{var r;const o=Ly((0,hy.default)({},e,{defaultTheme:n,themeId:t}));return _y({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,hy.default)({},e,{theme:o}))})),h||s.push(a);const c=s.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const u=g(i,...s);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(b.withConfig=g.withConfig),b}};ny.shouldForwardProp=Cy,ny.systemDefaultTheme=void 0;var hy=py((ty||(ty=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ry)),ry.exports)),my=py((oy||(oy=1,function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports}(ay)),ay.exports)),gy=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=Ey(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(iy),vy=ly;py(sy),py(cy);var by=py(uy),yy=py(dy);const xy=["ownerState"],Sy=["variants"],wy=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ey(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Ey=function(e){return e?n:t})(e)}function Cy(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const ky=ny.systemDefaultTheme=(0,by.default)(),Ry=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Ly({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Oy(e){return e?(t,n)=>n[e]:null}function _y(e,t){let{ownerState:n}=t,r=(0,my.default)(t,xy);const o="function"==typeof e?e((0,hy.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>_y(e,(0,hy.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,my.default)(o,Sy);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,hy.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,hy.default)({ownerState:n},r,n)):e.style))})),t}return o}const Iy=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,Ty=fy({themeId:Cp,defaultTheme:Jb,rootShouldForwardProp:Iy}),Py=["theme"];function My(e){let{theme:t}=e,n=Rp(e,Py);const r=t[Cp];return rm.jsx(Vv,kp({},n,{themeId:r?Cp:void 0,theme:r||t}))}const Ny=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function qy(){return qy=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},qy.apply(this,arguments)}function zy(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Dy(e,t){return Dy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dy(e,t)}function Ay(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Dy(e,t)}var jy=!1,Fy=V.createContext(null),By="unmounted",$y="exited",Wy="entering",Hy="entered",Uy="exiting",Vy=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=$y,r.appearStatus=Wy):o=Hy:o=t.unmountOnExit||t.mountOnEnter?By:$y,r.state={status:o},r.nextCallback=null,r}Ay(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===By?{status:$y}: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!==Wy&&n!==Hy&&(t=Wy):n!==Wy&&n!==Hy||(t=Uy)}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===Wy){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===$y&&this.setState({status:By})},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],a=o[0],i=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||jy?this.safeSetState({status:Hy},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:Wy},(function(){t.props.onEntering(a,i),t.onTransitionEnd(s,(function(){t.safeSetState({status:Hy},(function(){t.props.onEntered(a,i)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:xp.findDOMNode(this);t&&!jy?(this.props.onExit(r),this.safeSetState({status:Uy},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:$y},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:$y},(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],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===By)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=zy(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return V.createElement(Fy.Provider,{value:null},"function"==typeof n?n(e,r):V.cloneElement(V.Children.only(n),r))},t}(V.Component);function Gy(){}function Ky(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zy(e,t){var n=Object.create(null);return e&&U.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&U.isValidElement(e)?t(e):e}(e)})),n}function Xy(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Qy(e,t,n){var r=Zy(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var c=o[s][r];l[o[s][r]]=n(c)}l[s]=n(s)}for(r=0;r<a.length;r++)l[a[r]]=n(a[r]);return l}(t,r);return Object.keys(o).forEach((function(a){var i=o[a];if(U.isValidElement(i)){var l=a in t,s=a in r,c=t[a],u=U.isValidElement(c)&&!c.props.in;!s||l&&!u?s||!l||u?s&&l&&U.isValidElement(c)&&(o[a]=U.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:Xy(i,"exit",e),enter:Xy(i,"enter",e)})):o[a]=U.cloneElement(i,{in:!1}):o[a]=U.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:Xy(i,"exit",e),enter:Xy(i,"enter",e)})}})),o}Vy.contextType=Fy,Vy.propTypes={},Vy.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gy,onEntering:Gy,onEntered:Gy,onExit:Gy,onExiting:Gy,onExited:Gy},Vy.UNMOUNTED=By,Vy.EXITED=$y,Vy.ENTERING=Wy,Vy.ENTERED=Hy,Vy.EXITING=Uy;var Jy=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Yy=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Ky(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Ay(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,Zy(n.children,(function(e){return U.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Xy(e,"appear",n),enter:Xy(e,"enter",n),exit:Xy(e,"exit",n)})}))):Qy(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=Zy(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=qy({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=zy(e,["component","childFactory"]),o=this.state.contextValue,a=Jy(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?V.createElement(Fy.Provider,{value:o},a):V.createElement(Fy.Provider,{value:o},V.createElement(t,r,a))},t}(V.Component);Yy.propTypes={},Yy.defaultProps={component:"div",childFactory:function(e){return e}};const ex=$g("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),tx=["center","classes","className"];let nx,rx,ox,ax,ix=e=>e;const lx=Th(nx||(nx=ix`
|
|
33
|
+
*/function fm(e,t){return Wh(e,t)}"object"==typeof document&&(um=function(e){var t=e.key;if(Qh&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||Yh,i={},l=[];Qh&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)})));var s=[Kh,Zh];if(Qh){var c,u=[Of,If((function(e){c.insert(e)}))],d=_f(s.concat(a,u));o=function(e,t,n,r){c=n,function(e){Lf(wf(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(g.inserted[t.name]=!0)}}else{var p=[Of],f=_f(s.concat(a,p)),h=Jh(a)(t),m=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return Lf(wf(e),f)}(e?e+"{"+t.styles+"}":t.styles)),h[n]};o=function(e,t,n,r){var o=t.name,a=m(e,t);return void 0===g.compat?(r&&(g.inserted[o]=!0),a):r?void(g.inserted[o]=a):a}}var g={key:t,sheet:new Hh({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return g.sheet.hydrate(l),g}({key:"css",prepend:!0}));const hm=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};var mm=Object.freeze({__proto__:null,GlobalStyles:pm,StyledEngineProvider:dm,ThemeContext:Mh,css:qh,default:fm,internal_processStyles:hm,keyframes:Ah});function gm(){return gm=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},gm.apply(this,arguments)}function vm(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function bm(){return bm=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},bm.apply(this,arguments)}function ym(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function xm(e){if(!ym(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=xm(e[n])})),t}function Sm(e,t,n={clone:!0}){const r=n.clone?bm({},e):e;return ym(e)&&ym(t)&&Object.keys(t).forEach((o=>{ym(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ym(e[o])?r[o]=Sm(e[o],t[o],n):n.clone?r[o]=ym(t[o])?xm(t[o]):t[o]:r[o]=t[o]})),r}var wm=Object.freeze({__proto__:null,default:Sm,isPlainObject:ym});const Em=["values","unit","step"],Cm=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)=>gm({},e,{[t.key]:t.val})),{})};function km(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=vm(e,Em),a=Cm(t),i=Object.keys(a);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-r/100}${n})`}return gm({keys:i,values:a,up:l,down:s,between:c,only:function(e){return i.indexOf(e)+1<i.length?c(e,i[i.indexOf(e)+1]):l(e)},not:function(e){const t=i.indexOf(e);return 0===t?l(i[1]):t===i.length-1?s(i[t]):c(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const Rm={borderRadius:4};function Lm(e,t){return t?Sm(e,t,{clone:!1}):e}const Om={xs:0,sm:600,md:900,lg:1200,xl:1536},_m={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Om[e]}px)`};function Im(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||_m;return t.reduce(((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r)),{})}if("object"==typeof t){const e=r.breakpoints||_m;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Om).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Tm(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function Pm(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function Mm({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let a;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[a],a=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[a],a=n):t[n]=e,t)),{})}function Nm(e){if("string"!=typeof e)throw new Error(wp(7));return e.charAt(0).toUpperCase()+e.slice(1)}var qm=Object.freeze({__proto__:null,default:Nm});function Am(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 zm(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Am(e,n)||r,t&&(o=t(o,r,e)),o}function Dm(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=Am(e.theme,r)||{};return Im(e,a,(e=>{let r=zm(i,o,e);return e===r&&"string"==typeof e&&(r=zm(i,o,`${t}${"default"===e?"":Nm(e)}`,e)),!1===n?r:{[n]:r}}))};return a.propTypes={},a.filterProps=[t],a}const jm={m:"margin",p:"padding"},Fm={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$m={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Bm=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!$m[e])return[e];e=$m[e]}const[t,n]=e.split(""),r=jm[t],o=Fm[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Wm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Hm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Um(e,t,n,r){var o;const a=null!=(o=Am(e,t,!1))?o:n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function Vm(e){return Um(e,"spacing",8)}function Gm(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 Km(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Gm(t,n),e)),{})}(Bm(n),r);return Im(e,e[n],o)}function Zm(e,t){const n=Vm(e.theme);return Object.keys(e).map((r=>Km(e,t,r,n))).reduce(Lm,{})}function Xm(e){return Zm(e,Wm)}function Qm(e){return Zm(e,Hm)}function Jm(e=8){if(e.mui)return e;const t=Vm({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 Ym(...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]?Lm(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function eg(e){return"number"!=typeof e?e:`${e}px solid`}function tg(e,t){return Dm({prop:e,themeKey:"borders",transform:t})}Xm.propTypes={},Xm.filterProps=Wm,Qm.propTypes={},Qm.filterProps=Hm;const ng=tg("border",eg),rg=tg("borderTop",eg),og=tg("borderRight",eg),ag=tg("borderBottom",eg),ig=tg("borderLeft",eg),lg=tg("borderColor"),sg=tg("borderTopColor"),cg=tg("borderRightColor"),ug=tg("borderBottomColor"),dg=tg("borderLeftColor"),pg=tg("outline",eg),fg=tg("outlineColor"),hg=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Um(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Gm(t,e)});return Im(e,e.borderRadius,n)}return null};hg.propTypes={},hg.filterProps=["borderRadius"],Ym(ng,rg,og,ag,ig,lg,sg,cg,ug,dg,hg,pg,fg);const mg=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Um(e.theme,"spacing",8),n=e=>({gap:Gm(t,e)});return Im(e,e.gap,n)}return null};mg.propTypes={},mg.filterProps=["gap"];const gg=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Um(e.theme,"spacing",8),n=e=>({columnGap:Gm(t,e)});return Im(e,e.columnGap,n)}return null};gg.propTypes={},gg.filterProps=["columnGap"];const vg=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Um(e.theme,"spacing",8),n=e=>({rowGap:Gm(t,e)});return Im(e,e.rowGap,n)}return null};vg.propTypes={},vg.filterProps=["rowGap"];function bg(e,t){return"grey"===t?t:e}Ym(mg,gg,vg,Dm({prop:"gridColumn"}),Dm({prop:"gridRow"}),Dm({prop:"gridAutoFlow"}),Dm({prop:"gridAutoColumns"}),Dm({prop:"gridAutoRows"}),Dm({prop:"gridTemplateColumns"}),Dm({prop:"gridTemplateRows"}),Dm({prop:"gridTemplateAreas"}),Dm({prop:"gridArea"}));function yg(e){return e<=1&&0!==e?100*e+"%":e}Ym(Dm({prop:"color",themeKey:"palette",transform:bg}),Dm({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:bg}),Dm({prop:"backgroundColor",themeKey:"palette",transform:bg}));const xg=Dm({prop:"width",transform:yg}),Sg=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Om[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:yg(t)}};return Im(e,e.maxWidth,t)}return null};Sg.filterProps=["maxWidth"];const wg=Dm({prop:"minWidth",transform:yg}),Eg=Dm({prop:"height",transform:yg}),Cg=Dm({prop:"maxHeight",transform:yg}),kg=Dm({prop:"minHeight",transform:yg});Dm({prop:"size",cssProperty:"width",transform:yg}),Dm({prop:"size",cssProperty:"height",transform:yg});Ym(xg,Sg,wg,Eg,Cg,kg,Dm({prop:"boxSizing"}));const Rg={border:{themeKey:"borders",transform:eg},borderTop:{themeKey:"borders",transform:eg},borderRight:{themeKey:"borders",transform:eg},borderBottom:{themeKey:"borders",transform:eg},borderLeft:{themeKey:"borders",transform:eg},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:eg},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:hg},color:{themeKey:"palette",transform:bg},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:bg},backgroundColor:{themeKey:"palette",transform:bg},p:{style:Qm},pt:{style:Qm},pr:{style:Qm},pb:{style:Qm},pl:{style:Qm},px:{style:Qm},py:{style:Qm},padding:{style:Qm},paddingTop:{style:Qm},paddingRight:{style:Qm},paddingBottom:{style:Qm},paddingLeft:{style:Qm},paddingX:{style:Qm},paddingY:{style:Qm},paddingInline:{style:Qm},paddingInlineStart:{style:Qm},paddingInlineEnd:{style:Qm},paddingBlock:{style:Qm},paddingBlockStart:{style:Qm},paddingBlockEnd:{style:Qm},m:{style:Xm},mt:{style:Xm},mr:{style:Xm},mb:{style:Xm},ml:{style:Xm},mx:{style:Xm},my:{style:Xm},margin:{style:Xm},marginTop:{style:Xm},marginRight:{style:Xm},marginBottom:{style:Xm},marginLeft:{style:Xm},marginX:{style:Xm},marginY:{style:Xm},marginInline:{style:Xm},marginInlineStart:{style:Xm},marginInlineEnd:{style:Xm},marginBlock:{style:Xm},marginBlockStart:{style:Xm},marginBlockEnd:{style:Xm},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:mg},rowGap:{style:vg},columnGap:{style:gg},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:yg},maxWidth:{style:Sg},minWidth:{transform:yg},height:{transform:yg},maxHeight:{transform:yg},minHeight:{transform:yg},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Lg(){function e(e,t,n,r){const o={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:l,transform:s,style:c}=a;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const u=Am(n,l)||{};if(c)return c(o);return Im(o,t,(t=>{let n=zm(u,s,t);return t===n&&"string"==typeof t&&(n=zm(u,s,`${e}${"default"===t?"":Nm(t)}`,t)),!1===i?n:{[i]:n}}))}return function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=null!=(r=a.unstable_sxConfig)?r:Rg;function l(n){let r=n;if("function"==typeof n)r=n(a);else if("object"!=typeof n)return n;if(!r)return null;const o=Tm(a.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],c=a,"function"==typeof l?l(c):l);var l,c;if(null!=o)if("object"==typeof o)if(i[n])s=Lm(s,e(n,o,a,i));else{const e=Im({theme:a},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=Lm(s,e):s[n]=t({sx:o,theme:a})}else s=Lm(s,e(n,o,a,i))})),Pm(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const Og=Lg();function _g(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}Og.filterProps=["sx"];const Ig=["breakpoints","palette","spacing","shape"];function Tg(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=vm(e,Ig),l=km(n),s=Jm(o);let c=Sm({breakpoints:l,direction:"ltr",components:{},palette:gm({mode:"light"},r),spacing:s,shape:gm({},Rm,a)},i);return c.applyStyles=_g,c=t.reduce(((e,t)=>Sm(e,t)),c),c.unstable_sxConfig=gm({},Rg,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return Og({sx:e,theme:this})},c}var Pg=Object.freeze({__proto__:null,default:Tg,private_createBreakpoints:km,unstable_applyStyles:_g});function Mg(e=null){const t=U.useContext(Mh);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Ng=Tg();function qg(e=Ng){return Mg(e)}function Ag({styles:e,themeId:t,defaultTheme:n={}}){const r=qg(n),o="function"==typeof e?e(t&&r[t]||r):e;return cm.jsx(pm,{styles:o})}const zg=["sx"],Dg=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Rg;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function jg(e){const{sx:t}=e,n=vm(e,zg),{systemProps:r,otherProps:o}=Dg(n);let a;return a=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return ym(n)?gm({},r,n):r}:gm({},r,t),gm({},o,{sx:a})}var Fg=Object.freeze({__proto__:null,default:Og,extendSxProp:jg,unstable_createStyleFunctionSx:Lg,unstable_defaultSxConfig:Rg});const $g=e=>e,Bg=(()=>{let e=$g;return{configure(t){e=t},generate:t=>e(t),reset(){e=$g}}})();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)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Wg(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Hg(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Wg(e))&&(r&&(r+=" "),r+=t);return r}const Ug=["className","component"];const Vg={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Gg(e,t,n="Mui"){const r=Vg[t];return r?`${n}-${r}`:`${Bg.generate(e)}-${t}`}function Kg(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Gg(e,t,n)})),r}const Zg=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Xg(e){const t=`${e}`.match(Zg);return t&&t[1]||""}function Qg(e,t=""){return e.displayName||e.name||Xg(e)||t}function Jg(e,t,n){const r=Qg(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Yg=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Qg(e,"Component");if("object"==typeof e)switch(e.$$typeof){case ah.ForwardRef:return Jg(e,e.render,"ForwardRef");case ah.Memo:return Jg(e,e.type,"memo");default:return}}},getFunctionName:Xg});const ev=["ownerState"],tv=["variants"],nv=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function rv(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const ov=Tg(),av=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function iv({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function lv(e){return e?(t,n)=>n[e]:null}function sv(e,t){let{ownerState:n}=t,r=vm(t,ev);const o="function"==typeof e?e(gm({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>sv(e,gm({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=vm(o,tv);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(gm({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(gm({ownerState:n},r,n)):e.style))})),t}return o}const cv=function(e={}){const{themeId:t,defaultTheme:n=ov,rootShouldForwardProp:r=rv,slotShouldForwardProp:o=rv}=e,a=e=>Og(gm({},e,{theme:iv(gm({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{hm(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d=lv(av(s))}=i,p=vm(i,nv),f=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,h=u||!1;let m=rv;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=fm(e,gm({shouldForwardProp:m,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||ym(e)?r=>sv(e,gm({},r,{theme:iv({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let i=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=iv(gm({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,a={};return Object.entries(o).forEach((([t,n])=>{a[t]=sv(n,gm({},e,{theme:r}))})),d(e,a)})),l&&!f&&s.push((e=>{var r;const o=iv(gm({},e,{defaultTheme:n,themeId:t}));return sv({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},gm({},e,{theme:o}))})),h||s.push(a);const c=s.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const u=g(i,...s);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(b.withConfig=g.withConfig),b}}();function uv(e,t){const n=bm({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=bm({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},a&&Object.keys(a)?o&&Object.keys(o)?(n[r]=bm({},a),Object.keys(o).forEach((e=>{n[r][e]=uv(o[e],a[e])}))):n[r]=a:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function dv({props:e,name:t,defaultTheme:n,themeId:r}){let o=qg(n);r&&(o=o[r]||o);const a=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?uv(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return a}const pv="undefined"!=typeof window?U.useLayoutEffect:U.useEffect;var fv=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function hv(){return hv=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},hv.apply(this,arguments)}function mv(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function gv(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function vv(e,t){var n,r;return U.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(r=e.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)}function bv(e){return e&&e.ownerDocument||document}function yv(e){return bv(e).defaultView||window}function xv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Sv=0;const wv=G["useId".toString()];function Ev(e){if(void 0!==wv){const t=wv();return null!=e?e:t}return function(e){const[t,n]=U.useState(e),r=e||t;return U.useEffect((()=>{null==t&&(Sv+=1,n(`mui-${Sv}`))}),[t]),r}(e)}function Cv({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=U.useRef(void 0!==e),[a,i]=U.useState(t);return[o?e:a,U.useCallback((e=>{o||i(e)}),[])]}function kv(e){const t=U.useRef(e);return pv((()=>{t.current=e})),U.useRef(((...e)=>(0,t.current)(...e))).current}function Rv(...e){return U.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{xv(e,t)}))}),e)}const Lv={};const Ov=[];class _v{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new _v}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Iv(){const e=function(e,t){const n=U.useRef(Lv);return n.current===Lv&&(n.current=e(t)),n}(_v.create).current;var t;return t=e.disposeEffect,U.useEffect(t,Ov),e}let Tv=!0,Pv=!1;const Mv=new _v,Nv={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 qv(e){e.metaKey||e.altKey||e.ctrlKey||(Tv=!0)}function Av(){Tv=!1}function zv(){"hidden"===this.visibilityState&&Pv&&(Tv=!0)}function Dv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Tv||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Nv[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function jv(){const e=U.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",qv,!0),t.addEventListener("mousedown",Av,!0),t.addEventListener("pointerdown",Av,!0),t.addEventListener("touchstart",Av,!0),t.addEventListener("visibilitychange",zv,!0))}),[]),t=U.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Dv(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Pv=!0,Mv.start(100,(()=>{Pv=!1})),t.current=!1,!0)},ref:e}}function Fv(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const $v=e=>{const t=U.useRef({});return U.useEffect((()=>{t.current=e})),t.current};function Bv(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}function Wv(e){return"string"==typeof e}function Hv(e,t,n){return void 0===e||Wv(e)?t:bm({},t,{ownerState:bm({},t.ownerState,n)})}function Uv(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Uv(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Vv(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Uv(e))&&(r&&(r+=" "),r+=t);return r}function Gv(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function Kv(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const Zv=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Xv(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Zv),l=a?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=Vv(null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),t=bm({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),i=bm({},n,o,r);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=Gv(bm({},o,r)),l=Kv(r),s=Kv(o),c=t(i),u=Vv(null==c?void 0:c.className,null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),d=bm({},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=bm({},c,n,s,l);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}(bm({},i,{externalSlotProps:l}));return Hv(n,bm({},s,{ref:Rv(c,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}const Qv=U.createContext(null);function Jv(){return U.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=U.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return hv({},e,t)}(r,n);return null!=e&&(e[Yv]=null!==r),e}),[n,r]);return cm.jsx(Qv.Provider,{value:o,children:t})}const tb=["value"],nb=U.createContext();function rb(e){let{value:t}=e,n=vm(e,tb);return cm.jsx(nb.Provider,gm({value:null==t||t},n))}const ob=U.createContext(void 0);function ab({value:e,children:t}){return cm.jsx(ob.Provider,{value:e,children:t})}function ib({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?uv(o.defaultProps,r):o.styleOverrides||o.variants?r:uv(o,r)}({props:e,name:t,theme:{components:U.useContext(ob)}})}const lb={};function sb(e,t,n,r=!1){return U.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const a=n(o),i=e?gm({},t,{[e]:a}):a;return r?()=>i:i}return gm({},t,e?{[e]:n}:n)}),[e,t,n,r])}function cb(e){const{children:t,theme:n,themeId:r}=e,o=Mg(lb),a=Jv()||lb,i=sb(r,o,n),l=sb(r,a,n,!0),s="rtl"===i.direction;return cm.jsx(eb,{theme:l,children:cm.jsx(Mh.Provider,{value:i,children:cm.jsx(rb,{value:s,children:cm.jsx(ab,{value:null==i?void 0:i.components,children:t})})})})}const ub=["component","direction","spacing","divider","children","className","useFlexGap"],db=Tg(),pb=cv("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function fb(e){return dv({props:e,name:"MuiStack",defaultTheme:db})}function hb(e,t){const n=U.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(U.cloneElement(t,{key:`separator-${o}`})),e)),[])}const mb=({ownerState:e,theme:t})=>{let n=gm({display:"flex",flexDirection:"column"},Im({theme:t},Mm({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=Vm(t),o=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),a=Mm({values:e.direction,base:o}),i=Mm({values:e.spacing,base:o});"object"==typeof a&&Object.keys(a).forEach(((e,t,n)=>{if(!a[e]){const r=t>0?a[n[t-1]]:"column";a[e]=r}}));n=Sm(n,Im({theme:t},i,((t,n)=>{return e.useFlexGap?{gap:Gm(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?a[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:Gm(r,t)}};var o})))}return n=function(e,...t){const n=Tm(e),r=[n,...t].reduce(((e,t)=>Sm(e,t)),{});return Pm(Object.keys(n),r)}(t.breakpoints,n),n};const gb=["defaultProps","mixins","overrides","palette","props","styleOverrides"],vb=["type","mode"];var bb={},yb={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(yb);var xb=yb.exports,Sb=r(Ep),wb=r(fv),Eb=xb;Object.defineProperty(bb,"__esModule",{value:!0});var Cb=bb.alpha=zb;bb.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=Pb(e),i=Pb(t),l=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return Nb({type:"rgb",values:l})},bb.colorChannel=void 0;var kb=bb.darken=Db;bb.decomposeColor=Pb,bb.emphasize=Fb;var Rb=bb.getContrastRatio=function(e,t){const n=Ab(e),r=Ab(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};bb.getLuminance=Ab,bb.hexToRgb=Tb,bb.hslToRgb=qb;var Lb=bb.lighten=jb;bb.private_safeAlpha=function(e,t,n){try{return zb(e,t)}catch(t){return e}},bb.private_safeColorChannel=void 0,bb.private_safeDarken=function(e,t,n){try{return Db(e,t)}catch(t){return e}},bb.private_safeEmphasize=function(e,t,n){try{return Fb(e,t)}catch(t){return e}},bb.private_safeLighten=function(e,t,n){try{return jb(e,t)}catch(t){return e}},bb.recomposeColor=Nb,bb.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Pb(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var Ob=Eb(Sb),_b=Eb(wb);function Ib(e,t=0,n=1){return(0,_b.default)(e,t,n)}function Tb(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Pb(e){if(e.type)return e;if("#"===e.charAt(0))return Pb(Tb(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,Ob.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,Ob.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Mb=e=>{const t=Pb(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};bb.colorChannel=Mb;function Nb(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 qb(e){e=Pb(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Nb({type:l,values:s})}function Ab(e){let t="hsl"===(e=Pb(e)).type||"hsla"===e.type?Pb(qb(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 zb(e,t){return e=Pb(e),t=Ib(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Nb(e)}function Db(e,t){if(e=Pb(e),t=Ib(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 Nb(e)}function jb(e,t){if(e=Pb(e),t=Ib(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 Nb(e)}function Fb(e,t=.15){return Ab(e)>.5?Db(e,t):jb(e,t)}bb.private_safeColorChannel=(e,t)=>{try{return Mb(e)}catch(t){return e}};const $b={black:"#000",white:"#fff"},Bb={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"},Wb={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"},Hb={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"},Ub={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"},Vb={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"},Gb={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"},Kb={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"},Zb=["mode","contrastThreshold","tonalOffset"],Xb={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:$b.white,default:$b.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}},Qb={text:{primary:$b.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:$b.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 Jb(e,t,n,r){const o=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Lb(e.main,o):"dark"===t&&(e.dark=kb(e.main,a)))}function Yb(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Rp(e,Zb),a=e.primary||function(e="light"){return"dark"===e?{main:Vb[200],light:Vb[50],dark:Vb[400]}:{main:Vb[700],light:Vb[400],dark:Vb[800]}}(t),i=e.secondary||function(e="light"){return"dark"===e?{main:Wb[200],light:Wb[50],dark:Wb[400]}:{main:Wb[500],light:Wb[300],dark:Wb[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Hb[500],light:Hb[300],dark:Hb[700]}:{main:Hb[700],light:Hb[400],dark:Hb[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Gb[400],light:Gb[300],dark:Gb[700]}:{main:Gb[700],light:Gb[500],dark:Gb[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Kb[400],light:Kb[300],dark:Kb[700]}:{main:Kb[800],light:Kb[500],dark:Kb[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Ub[400],light:Ub[300],dark:Ub[700]}:{main:"#ed6c02",light:Ub[500],dark:Ub[900]}}(t);function d(e){return Rb(e,Qb.text.primary)>=n?Qb.text.primary:Xb.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=kp({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(wp(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(wp(12,t?` (${t})`:"",JSON.stringify(e.main)));return Jb(e,"light",o,r),Jb(e,"dark",a,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Qb,light:Xb};return Sm(kp({common:kp({},$b),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:c,name:"success"}),grey:Bb,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const ey=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const ty={textTransform:"uppercase"},ny='"Roboto", "Helvetica", "Arial", sans-serif';function ry(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=ny,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=Rp(n,ey),f=o/14,h=d||(e=>e/c*f+"rem"),m=(e,t,n,o,a)=>{return kp({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===ny?{letterSpacing:(i=o/t,Math.round(1e5*i)/1e5)+"em"}:{},a,u);var i},g={h1:m(a,96,1.167,-1.5),h2:m(a,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(l,14,1.75,.4,ty),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,ty),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Sm(kp({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function oy(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const ay=["none",oy(0,2,1,-1,0,1,1,0,0,1,3,0),oy(0,3,1,-2,0,2,2,0,0,1,5,0),oy(0,3,3,-2,0,3,4,0,0,1,8,0),oy(0,2,4,-1,0,4,5,0,0,1,10,0),oy(0,3,5,-1,0,5,8,0,0,1,14,0),oy(0,3,5,-1,0,6,10,0,0,1,18,0),oy(0,4,5,-2,0,7,10,1,0,2,16,1),oy(0,5,5,-3,0,8,10,1,0,3,14,2),oy(0,5,6,-3,0,9,12,1,0,3,16,2),oy(0,6,6,-3,0,10,14,1,0,4,18,3),oy(0,6,7,-4,0,11,15,1,0,4,20,3),oy(0,7,8,-4,0,12,17,2,0,5,22,4),oy(0,7,8,-4,0,13,19,2,0,5,24,4),oy(0,7,9,-4,0,14,21,2,0,5,26,4),oy(0,8,9,-5,0,15,22,2,0,6,28,5),oy(0,8,10,-5,0,16,24,2,0,6,30,5),oy(0,8,11,-5,0,17,26,2,0,6,32,5),oy(0,9,11,-5,0,18,28,2,0,7,34,6),oy(0,9,12,-6,0,19,29,2,0,7,36,6),oy(0,10,13,-6,0,20,31,3,0,8,38,7),oy(0,10,13,-6,0,21,33,3,0,8,40,7),oy(0,10,14,-6,0,22,35,3,0,8,42,7),oy(0,11,14,-7,0,23,36,3,0,9,44,8),oy(0,11,15,-7,0,24,38,3,0,9,46,8)],iy=["duration","easing","delay"],ly={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)"},sy={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function cy(e){return`${Math.round(e)}ms`}function uy(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function dy(e){const t=kp({},ly,e.easing),n=kp({},sy,e.duration);return kp({getAutoHeightDuration:uy,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:i=0}=r;return Rp(r,iy),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:cy(o)} ${a} ${"string"==typeof i?i:cy(i)}`)).join(",")}},e,{easing:t,duration:n})}const py={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},fy=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function hy(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=Rp(e,fy);if(e.vars)throw new Error(wp(18));const l=Yb(r),s=Tg(e);let c=Sm(s,{mixins:(u=s.breakpoints,d=n,kp({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:ay.slice(),typography:ry(l,a),transitions:dy(o),zIndex:kp({},py)});var u,d;return c=Sm(c,i),c=t.reduce(((e,t)=>Sm(e,t)),c),c.unstable_sxConfig=kp({},Rg,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return Og({sx:e,theme:this})},c}const my=hy();function gy(){const e=qg(my);return e[Cp]||e}var vy,by={},yy={exports:{}};var xy,Sy={exports:{}};var wy=r(mm),Ey=r(wm),Cy=r(qm),ky=r(Yg),Ry=r(Pg),Ly=r(Fg),Oy=xb;Object.defineProperty(by,"__esModule",{value:!0});var _y=by.default=function(e={}){const{themeId:t,defaultTheme:n=$y,rootShouldForwardProp:r=Fy,slotShouldForwardProp:o=Fy}=e,a=e=>(0,qy.default)((0,Iy.default)({},e,{theme:Wy((0,Iy.default)({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{(0,Py.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d=Hy(By(s))}=i,p=(0,Ty.default)(i,Dy),f=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,h=u||!1;let m=Fy;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,Py.default)(e,(0,Iy.default)({shouldForwardProp:m,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,My.isPlainObject)(e)?r=>Uy(e,(0,Iy.default)({},r,{theme:Wy({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let i=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=Wy((0,Iy.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,a={};return Object.entries(o).forEach((([t,n])=>{a[t]=Uy(n,(0,Iy.default)({},e,{theme:r}))})),d(e,a)})),l&&!f&&s.push((e=>{var r;const o=Wy((0,Iy.default)({},e,{defaultTheme:n,themeId:t}));return Uy({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,Iy.default)({},e,{theme:o}))})),h||s.push(a);const c=s.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const u=g(i,...s);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(b.withConfig=g.withConfig),b}};by.shouldForwardProp=Fy,by.systemDefaultTheme=void 0;var Iy=Oy((vy||(vy=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(yy)),yy.exports)),Ty=Oy((xy||(xy=1,function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports}(Sy)),Sy.exports)),Py=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=jy(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(wy),My=Ey;Oy(Cy),Oy(ky);var Ny=Oy(Ry),qy=Oy(Ly);const Ay=["ownerState"],zy=["variants"],Dy=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function jy(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(jy=function(e){return e?n:t})(e)}function Fy(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const $y=by.systemDefaultTheme=(0,Ny.default)(),By=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Wy({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Hy(e){return e?(t,n)=>n[e]:null}function Uy(e,t){let{ownerState:n}=t,r=(0,Ty.default)(t,Ay);const o="function"==typeof e?e((0,Iy.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Uy(e,(0,Iy.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Ty.default)(o,zy);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Iy.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,Iy.default)({ownerState:n},r,n)):e.style))})),t}return o}const Vy=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,Gy=_y({themeId:Cp,defaultTheme:my,rootShouldForwardProp:Vy}),Ky=["theme"];function Zy(e){let{theme:t}=e,n=Rp(e,Ky);const r=t[Cp];return cm.jsx(cb,kp({},n,{themeId:r?Cp:void 0,theme:r||t}))}const Xy=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Qy(e){return ib(e)}function Jy(){return Jy=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},Jy.apply(this,arguments)}function Yy(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function ex(e,t){return ex=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ex(e,t)}function tx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ex(e,t)}var nx=!1,rx=V.createContext(null),ox="unmounted",ax="exited",ix="entering",lx="entered",sx="exiting",cx=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=ax,r.appearStatus=ix):o=lx:o=t.unmountOnExit||t.mountOnEnter?ox:ax,r.state={status:o},r.nextCallback=null,r}tx(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ox?{status:ax}: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!==ix&&n!==lx&&(t=ix):n!==ix&&n!==lx||(t=sx)}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===ix){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===ax&&this.setState({status:ox})},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],a=o[0],i=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||nx?this.safeSetState({status:lx},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:ix},(function(){t.props.onEntering(a,i),t.onTransitionEnd(s,(function(){t.safeSetState({status:lx},(function(){t.props.onEntered(a,i)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:xp.findDOMNode(this);t&&!nx?(this.props.onExit(r),this.safeSetState({status:sx},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:ax},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:ax},(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],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===ox)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=Yy(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return V.createElement(rx.Provider,{value:null},"function"==typeof n?n(e,r):V.cloneElement(V.Children.only(n),r))},t}(V.Component);function ux(){}function dx(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function px(e,t){var n=Object.create(null);return e&&U.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&U.isValidElement(e)?t(e):e}(e)})),n}function fx(e,t,n){return null!=n[t]?n[t]:e.props[t]}function hx(e,t,n){var r=px(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var c=o[s][r];l[o[s][r]]=n(c)}l[s]=n(s)}for(r=0;r<a.length;r++)l[a[r]]=n(a[r]);return l}(t,r);return Object.keys(o).forEach((function(a){var i=o[a];if(U.isValidElement(i)){var l=a in t,s=a in r,c=t[a],u=U.isValidElement(c)&&!c.props.in;!s||l&&!u?s||!l||u?s&&l&&U.isValidElement(c)&&(o[a]=U.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:fx(i,"exit",e),enter:fx(i,"enter",e)})):o[a]=U.cloneElement(i,{in:!1}):o[a]=U.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:fx(i,"exit",e),enter:fx(i,"enter",e)})}})),o}cx.contextType=rx,cx.propTypes={},cx.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},cx.UNMOUNTED=ox,cx.EXITED=ax,cx.ENTERING=ix,cx.ENTERED=lx,cx.EXITING=sx;var mx=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},gx=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(dx(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}tx(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,px(n.children,(function(e){return U.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:fx(e,"appear",n),enter:fx(e,"enter",n),exit:fx(e,"exit",n)})}))):hx(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=px(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Jy({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Yy(e,["component","childFactory"]),o=this.state.contextValue,a=mx(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?V.createElement(rx.Provider,{value:o},a):V.createElement(rx.Provider,{value:o},V.createElement(t,r,a))},t}(V.Component);gx.propTypes={},gx.defaultProps={component:"div",childFactory:function(e){return e}};const vx=Kg("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),bx=["center","classes","className"];let yx,xx,Sx,wx,Ex=e=>e;const Cx=Ah(yx||(yx=Ex`
|
|
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
|
+
`)),kx=Ah(xx||(xx=Ex`
|
|
44
44
|
0% {
|
|
45
45
|
opacity: 1;
|
|
46
46
|
}
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
100% {
|
|
49
49
|
opacity: 0;
|
|
50
50
|
}
|
|
51
|
-
`)),
|
|
51
|
+
`)),Rx=Ah(Sx||(Sx=Ex`
|
|
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
|
+
`)),Lx=Gy("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Ox=Gy((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:l,onExited:s,timeout:c}=e,[u,d]=U.useState(!1),p=Hg(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:i,height:i,top:-i/2+a,left:-i/2+o},h=Hg(n.child,u&&n.childLeaving,r&&n.childPulsate);return l||u||d(!0),U.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,c);return()=>{clearTimeout(e)}}}),[s,l,c]),cm.jsx("span",{className:p,style:f,children:cm.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(wx||(wx=Ex`
|
|
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
|
-
`),ex.rippleVisible,lx,550,(({theme:e})=>e.transitions.easing.easeInOut),ex.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),ex.child,ex.childLeaving,sx,550,(({theme:e})=>e.transitions.easing.easeInOut),ex.childPulsate,cx,(({theme:e})=>e.transitions.easing.easeInOut)),px=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,i=Rp(n,tx),[l,s]=U.useState([]),c=U.useRef(0),u=U.useRef(null);U.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const d=U.useRef(!1),p=Cv(),f=U.useRef(null),h=U.useRef(null),m=U.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;s((e=>[...e,rm.jsx(dx,{classes:{ripple:Ag(o.ripple,ex.ripple),rippleVisible:Ag(o.rippleVisible,ex.rippleVisible),ripplePulsate:Ag(o.ripplePulsate,ex.ripplePulsate),child:Ag(o.child,ex.child),childLeaving:Ag(o.childLeaving,ex.childLeaving),childPulsate:Ag(o.childPulsate,ex.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},c.current)])),c.current+=1,u.current=i}),[o]),g=U.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=i?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),u=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),u=Math.round(n-s.top)}if(a)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,p]),v=U.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=U.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{b(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return U.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),rm.jsx(ux,kp({className:Ag(ex.root,o.root,a),ref:h},i,{children:rm.jsx(Yy,{component:null,exit:!0,children:l})}))}));function fx(e){return Bg("MuiButtonBase",e)}const hx=$g("MuiButtonBase",["root","disabled","focusVisible"]),mx=["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"],gx=Ty("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"},[`&.${hx.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),vx=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:l="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:E,onTouchEnd:C,onTouchMove:k,onTouchStart:R,tabIndex:L=0,TouchRippleProps:O,touchRippleRef:_,type:I}=n,T=Rp(n,mx),P=U.useRef(null),M=U.useRef(null),N=xv(M,_),{isFocusVisibleRef:q,onFocus:z,onBlur:D,ref:A}=Mv(),[j,F]=U.useState(!1);s&&j&&F(!1),U.useImperativeHandle(r,(()=>({focusVisible:()=>{F(!0),P.current.focus()}})),[]);const[B,$]=U.useState(!1);U.useEffect((()=>{$(!0)}),[]);const W=B&&!c&&!s;function H(e,t,n=u){return yv((r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!0}))}U.useEffect((()=>{j&&d&&!c&&B&&M.current.pulsate()}),[c,d,j,B]);const V=H("start",S),G=H("stop",m),K=H("stop",g),Z=H("stop",E),X=H("stop",(e=>{j&&e.preventDefault(),w&&w(e)})),Q=H("start",R),J=H("stop",C),Y=H("stop",k),ee=H("stop",(e=>{D(e),!1===q.current&&F(!1),f&&f(e)}),!1),te=yv((e=>{P.current||(P.current=e.currentTarget),z(e),!0===q.current&&(F(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=U.useRef(!1),oe=yv((e=>{d&&!re.current&&j&&M.current&&" "===e.key&&(re.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ae=yv((e=>{d&&" "===e.key&&M.current&&j&&!e.defaultPrevented&&(re.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(T.href||T.to)&&(ie=p);const le={};"button"===ie?(le.type=void 0===I?"button":I,le.disabled=s):(T.href||T.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=xv(t,A,P),ce=kp({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:L,focusVisible:j}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=zv({root:["root",t&&"disabled",n&&"focusVisible"]},fx,o);return n&&r&&(a.root+=` ${r}`),a})(ce);return rm.jsxs(gx,kp({as:ie,className:Ag(ue.root,i),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:V,onMouseLeave:X,onMouseUp:Z,onDragLeave:K,onTouchEnd:J,onTouchMove:Y,onTouchStart:Q,ref:se,tabIndex:s?-1:L,type:I},le,T,{children:[a,W?rm.jsx(px,kp({ref:N,center:o},O)):null]}))}));function bx(e){return Bg("MuiButton",e)}const yx=$g("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),xx=U.createContext({}),Sx=U.createContext(void 0),wx=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ex=e=>kp({},"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}}),Cx=Ty(vx,{shouldForwardProp:e=>Iy(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Om(n.color)}`],t[`size${Om(n.size)}`],t[`${n.variant}Size${Om(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],a="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return kp({},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":kp({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:lb(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})`:lb(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})`:lb(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":kp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${yx.focusVisible}`]:kp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${yx.disabled}`]:kp({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 ${lb(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"},[`&.${yx.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${yx.disabled}`]:{boxShadow:"none"}})),kx=Ty("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Om(n.size)}`]]}})((({ownerState:e})=>kp({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ex(e)))),Rx=Ty("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Om(n.size)}`]]}})((({ownerState:e})=>kp({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ex(e)))),Lx=U.forwardRef((function(e,t){const n=U.useContext(xx),r=U.useContext(Sx),o=ey({props:ov(n,e),name:"MuiButton"}),{children:a,color:i="primary",component:l="button",className:s,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,y=Rp(o,wx),x=kp({},o,{color:i,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e;return kp({},i,zv({root:["root",a,`${a}${Om(t)}`,`size${Om(o)}`,`${a}Size${Om(o)}`,`color${Om(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Om(o)}`],endIcon:["icon","endIcon",`iconSize${Om(o)}`]},bx,i))})(x),w=g&&rm.jsx(kx,{className:S.startIcon,ownerState:x,children:g}),E=p&&rm.jsx(Rx,{className:S.endIcon,ownerState:x,children:p}),C=r||"";return rm.jsxs(Cx,kp({ownerState:x,className:Ag(n.className,S.root,s,C),component:l,disabled:c,focusRipple:!d,focusVisibleClassName:Ag(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[w,a,E]}))}));var Ox={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 _x={green:"#009845",greenPale:"#0AAF54",red:"#DC423F",redPale:"#F05551",blue:"#3F8AB3",bluePale:"#469DCD",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey85:"#D9D9D9",grey55:"#8C8C8C",grey45:"#737373",grey30:"#4D4D4D",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey5:"#0E0E0E",grey0:"#000000"},Ix={mode:"light",palette:{primary:{main:_x.grey25,contrastText:_x.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:_x.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:_x.grey100,dark:_x.grey0},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:_x.grey100,default:_x.grey100,lightest:_x.grey100,lighter:_x.grey98,darker:_x.grey95,darkest:_x.grey90},custom:{focusBorder:_x.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:_x.grey45,disabledContrastText:_x.grey100},selected:{main:_x.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:_x.grey100,selectedContrastText:_x.grey100,mainContrastText:_x.grey100,alternativeContrastText:_x.grey25,excludedContrastText:_x.grey25,selectedExcludedContrastText:_x.grey100,possibleContrastText:_x.grey0},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},Tx={mode:"dark",palette:{primary:{main:_x.grey20,contrastText:_x.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:_x.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:_x.grey100,dark:_x.grey0},action:{active:_x.grey100,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:_x.grey25,lighter:_x.grey20,darker:_x.grey15,darkest:_x.grey10},custom:{focusBorder:_x.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:_x.grey45,disabledContrastText:_x.grey100},selected:{main:_x.green,alternative:_x.grey20,excluded:_x.grey10,selectedExcluded:_x.grey10,possible:_x.grey80,selectedContrastText:_x.grey100,mainContrastText:_x.grey100,alternativeContrastText:_x.grey100,excludedContrastText:_x.grey100,selectedExcludedContrastText:_x.grey100,possibleContrastText:_x.grey0},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},Px={},Mx=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(yx.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(yx.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(yx.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(yx.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function Nx(e){let t=Ix,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=Tx));const r=JSON.stringify(t);if(Px[r])return Px[r];const o={palette:l(l({type:t.mode},Ox.palette),t.palette),typography:l({},Ox.typography),shadows:Ox.shadows,props:l({},Ox.props),shape:l({},Ox.shape)};return Px[r]=Qb(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:a={},styleOverrides:i={}}=e,l=kp({},Rp(e,Yv),{components:{}});Object.keys(t).forEach((e=>{const n=l.components[e]||{};n.defaultProps=t[e],l.components[e]=n})),Object.keys(a).forEach((e=>{const t=l.components[e]||{};t.defaultProps=a[e],l.components[e]=t})),Object.keys(i).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=i[e],l.components[e]=t})),Object.keys(r).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=r[e],l.components[e]=t})),l.spacing=Vm(e.spacing);const s=ym(e.breakpoints||{}),c=l.spacing;l.mixins=kp({gutters:(e={})=>kp({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:kp({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=Rp(o,eb),f=d||u||"light";return l.palette=kp({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},p),l}(l(l({},o),{},{overrides:Mx(o)}))),Px[r].name=n,Px[r]}zg.configure((e=>"njs-".concat("4acd","-").concat(e.replace("Mui",""))));var qx=V.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{}});const zx={active:!0,select:!0,passive:!0,edit:!1};function Dx(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(zx).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=zx[e],n[e]=!zx[e])})),e.constraints=n,e.interactions=t}var Ax=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=[],r={get:e=>t[e],set:(n,r)=>{if(void 0===n||"object"==typeof n)throw new Error("Invalid key: ".concat(JSON.stringify(n)));return t[n]=r,e({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));t[e]=null},dispatch:e=>{n.forEach((n=>n(e?{}:t)))}};return[()=>{const[,e]=U.useState(t);return U.useEffect((()=>(n.push(e),()=>{const t=n.indexOf(e);n.splice(t,1)})),[e]),[r]},r]};const jx=U.forwardRef(((e,t)=>{let{initialContext:n,renderCallback:r,modelStore:o,selectionStore:a}=e;const[i,l]=U.useState(n),[s,c]=U.useState(),{theme:u}=U.useMemo((()=>({theme:Nx(s)})),[s]),[d,p]=U.useState([]);return U.useEffect((()=>{r&&r()}),[]),U.useImperativeHandle(t,(()=>({setComps(e){p([...e])},setMuiThemeName:c,setContext:e=>l((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t))})),[]),i&&(i.modelStore=o,i.selectionStore=a),V.createElement(am,{injectFirst:!0},V.createElement(My,{theme:u},V.createElement(qx.Provider,{value:i},d)))}));function Fx(e){let t,{app:n,context:r}=e;const o=new Promise((e=>{t=e})),a=V.createRef(),i=document.createElement("div");i.style.display="none",i.setAttribute("data-nebulajs-version","5.1.2"),i.setAttribute("data-app-id",n.id),document.body.appendChild(i),r&&Dx(r);const l=function(e){const[t,n]=Ax({}),[r,o]=Ax({}),[a,i]=Ax({}),[l,s]=Ax({}),[c,u]=Ax({}),[,d]=Ax({}),p=e=>{let{type:t,value:r}=e;const a=d.get(r.id);d.set(r.id,{});const l=()=>{o.clear(r.id),u.set(r.id,{}),u.dispatch(!0)},c=()=>{r.removeListener("changed",l),n.clear(r.id),o.clear(r.id),i.clear(r.id),s.clear(r.id),u.clear(r.id),d.clear(r.id)};return"SET"===t&&(a||(r.on("changed",l),r.once("closed",(()=>{c()})))),c},[f,h]=Ax({},p);return{subscribe:e=>{const t=p({type:"SET",value:e});return()=>{t(),h.clear(e.id)}},useModelStore:f,modelStore:h,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:r,rpcRequestStore:o,useRpcRequestModelStore:l,rpcRequestModelStore:s,useRpcRequestSessionModelStore:a,rpcRequestSessionModelStore:i,modelChangedStore:u,appId:e}}(n.id),s=function(e){const[t,n]=Ax({}),[r,o]=Ax({}),[a,i]=Ax({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:a,modalObjectStore:i,appId:e}}(n.id);pt.createRoot(i).render(V.createElement(jx,{ref:a,initialContext:r,renderCallback:t,modelStore:l,selectionStore:s}));const c={},u=[];return[{toggleFocusOfCells(e){Object.keys(c).forEach((t=>{c[t].current.toggleFocus(t===e)}))},cells:c,addCell(e,t){c[e]=t},removeCell(e){delete c[e]},add(e){(async()=>{await o,u.push(e),a.current.setComps(u)})()},remove(e){(async()=>{await o;const t=u.indexOf(e);-1!==t&&u.splice(t,1),a.current.setComps(u)})()},setMuiThemeName(e){(async()=>{await o,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,e&&Dx(e),a.current.setContext(e)})()}},l,s,a,o]}function Bx(e){return Bg("MuiSvgIcon",e)}$g("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const $x=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Wx=Ty("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Om(n.color)}`],t[`fontSize${Om(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,a,i,l,s,c,u,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(i=a.pxToRem)?void 0:i.call(a,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),Hx=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=Rp(n,$x),f=U.isValidElement(r)&&"svg"===r.type,h=kp({},n,{color:a,component:i,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return zv({root:["root","inherit"!==t&&`color${Om(t)}`,`fontSize${Om(n)}`]},Bx,r)})(h);return rm.jsxs(Wx,kp({as:i,className:Ag(g.root,o),focusable:"false",color:s,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,u?rm.jsx("title",{children:u}):null]}))}));function Ux(e,t){function n(n,r){return rm.jsx(Hx,kp({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Hx.muiName,U.memo(U.forwardRef(n))}Hx.muiName="SvgIcon";const Vx={configure:e=>{zg.configure(e)}};var Gx=Object.freeze({__proto__:null,capitalize:Om,createChainedFunction:cv,createSvgIcon:Ux,debounce:uv,deprecatedPropType:function(e,t){return()=>null},isMuiElement:dv,ownerDocument:pv,ownerWindow:fv,requirePropFactory:function(e,t){return()=>null},setRef:hv,unstable_ClassNameGenerator:Vx,unstable_useEnhancedEffect:iv,unstable_useId:vv,unsupportedProp:function(e,t,n,r,o){return null},useControlled:bv,useEventCallback:yv,useForkRef:xv,useIsFocusVisible:Mv});const Kx=e=>e.scrollTop;function Zx(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(n=i.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=i.transitionTimingFunction)?r:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}function Xx(e){return Bg("MuiPaper",e)}$g("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 Qx=["className","component","elevation","square","variant"],Jx=Ty("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 kp({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&&kp({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${lb("#fff",Ny(t.elevation))}, ${lb("#fff",Ny(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),Yx=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:i=!1,variant:l="elevation"}=n,s=Rp(n,Qx),c=kp({},n,{component:o,elevation:a,square:i,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return zv({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Xx,o)})(c);return rm.jsx(Jx,kp({as:o,ownerState:c,className:Ag(u.root,r),ref:t},s))}));function eS(){return eS=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},eS.apply(this,arguments)}function tS(e){return"string"==typeof e}function nS(e,t,n){return void 0===e||tS(e)?t:eS({},t,{ownerState:eS({},t.ownerState,n)})}const rS={disableDefaultClasses:!1},oS=U.createContext(rS);function aS(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function iS(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function lS(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const sS=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function cS(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=iS(e,sS),l=a?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=Ag(null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),t=eS({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),i=eS({},n,o,r);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=aS(eS({},o,r)),l=lS(r),s=lS(o),c=t(i),u=Ag(null==c?void 0:c.className,null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),d=eS({},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=eS({},c,n,s,l);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}(eS({},i,{externalSlotProps:l}));return nS(n,eS({},s,{ref:xv(c,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}function uS(e){return Bg("MuiIconButton",e)}const dS=$g("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),pS=["edge","children","className","color","disabled","disableFocusRipple","size"],fS=Ty(vx,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Om(n.color)}`],n.edge&&t[`edge${Om(n.edge)}`],t[`size${Om(n.size)}`]]}})((({theme:e,ownerState:t})=>kp({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})`:lb(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 kp({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&kp({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":kp({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lb(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)},{[`&.${dS.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),hS=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:i="default",disabled:l=!1,disableFocusRipple:s=!1,size:c="medium"}=n,u=Rp(n,pS),d=kp({},n,{edge:r,color:i,disabled:l,disableFocusRipple:s,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e;return zv({root:["root",n&&"disabled","default"!==r&&`color${Om(r)}`,o&&`edge${Om(o)}`,`size${Om(a)}`]},uS,t)})(d);return rm.jsx(fS,kp({className:Ag(p.root,a),centerRipple:!0,focusRipple:!s,disabled:l,ref:t},u,{ownerState:d,children:o}))}));function mS(e){return Bg("MuiTypography",e)}$g("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const gS=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],vS=Ty("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${Om(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>kp({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),bS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},yS={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},xS=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiTypography"}),r=(e=>yS[e]||e)(n.color),o=Mg(kp({},n,{color:r})),{align:a="inherit",className:i,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=bS}=o,f=Rp(o,gS),h=kp({},o,{align:a,color:r,className:i,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=l||(u?"p":p[d]||bS[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e;return zv({root:["root",a,"inherit"!==e.align&&`align${Om(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},mS,i)})(h);return rm.jsx(vS,kp({as:m,ref:t,ownerState:h,className:Ag(g.root,i)},f))}));const SS="base";function wS(e,t){const n=Fg[t];return n?`${SS}--${n}`:function(e,t){return`${SS}-${e}-${t}`}(e,t)}const ES=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function CS(e){const t=[],n=[];return Array.from(e.querySelectorAll(ES)).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 kS(){return!0}function RS(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=CS,isEnabled:i=kS,open:l}=e,s=U.useRef(!1),c=U.useRef(null),u=U.useRef(null),d=U.useRef(null),p=U.useRef(null),f=U.useRef(!1),h=U.useRef(null),m=xv(t.ref,h),g=U.useRef(null);U.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),U.useEffect((()=>{if(!l||!h.current)return;const e=pv(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),U.useEffect((()=>{if(!l||!h.current)return;const e=pv(h.current),t=t=>{g.current=t,!r&&i()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,u.current&&u.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!i()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=a(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,i,l,a]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return rm.jsxs(U.Fragment,{children:[rm.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),U.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),rm.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})}const LS=U.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,i]=U.useState(null),l=xv(U.isValidElement(n)?n.ref:null,t);if(iv((()=>{o||i(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),iv((()=>{if(a&&!o)return hv(t,a),()=>{hv(t,null)}}),[t,a,o]),o){if(U.isValidElement(n)){const e={ref:l};return U.cloneElement(n,e)}return rm.jsx(U.Fragment,{children:n})}return rm.jsx(U.Fragment,{children:a?yp.createPortal(n,a):a})}));function OS(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function _S(e){return parseInt(fv(e).getComputedStyle(e).paddingRight,10)||0}function IS(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===a.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&OS(e,o)}))}function TS(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function PS(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=pv(e);return t.body===e?fv(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Nv(pv(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${_S(r)+e}px`;const t=pv(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${_S(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=pv(r).body;else{const t=r.parentElement,n=fv(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const MS=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&&OS(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);IS(t,e.mount,e.modalRef,r,!0);const o=TS(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=TS(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=PS(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=TS(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&&OS(e.modalRef,t),IS(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&&OS(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function NS(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=MS,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:l,children:s,onClose:c,open:u,rootRef:d}=e,p=U.useRef({}),f=U.useRef(null),h=U.useRef(null),m=xv(h,d),[g,v]=U.useState(!u),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},w=yv((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||pv(f.current).body;o.add(x(),e),h.current&&S()})),E=U.useCallback((()=>o.isTopModal(x())),[o]),C=yv((e=>{f.current=e,e&&(u&&E()?S():h.current&&OS(h.current,y))})),k=U.useCallback((()=>{o.remove(x(),y)}),[y,o]);U.useEffect((()=>()=>{k()}),[k]),U.useEffect((()=>{u?w():b&&a||k()}),[u,k,b,a,w]);const R=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},L=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=aS(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=eS({},n,t);return eS({role:"presentation"},r,{onKeyDown:R(r),ref:m})},getBackdropProps:(e={})=>eS({"aria-hidden":!0},e,{onClick:L(e),open:u}),getTransitionProps:()=>({onEnter:cv((()=>{v(!1),i&&i()}),null==s?void 0:s.props.onEnter),onExited:cv((()=>{v(!0),l&&l(),a&&k()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:C,isTopModal:E,exited:g,hasTransition:b}}var qS="top",zS="bottom",DS="right",AS="left",jS="auto",FS=[qS,zS,DS,AS],BS="start",$S="end",WS="clippingParents",HS="viewport",US="popper",VS="reference",GS=FS.reduce((function(e,t){return e.concat([t+"-"+BS,t+"-"+$S])}),[]),KS=[].concat(FS,[jS]).reduce((function(e,t){return e.concat([t,t+"-"+BS,t+"-"+$S])}),[]),ZS=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function XS(e){return e?(e.nodeName||"").toLowerCase():null}function QS(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function JS(e){return e instanceof QS(e).Element||e instanceof Element}function YS(e){return e instanceof QS(e).HTMLElement||e instanceof HTMLElement}function ew(e){return"undefined"!=typeof ShadowRoot&&(e instanceof QS(e).ShadowRoot||e instanceof ShadowRoot)}var tw={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];YS(o)&&XS(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});YS(r)&&XS(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function nw(e){return e.split("-")[0]}var rw=Math.max,ow=Math.min,aw=Math.round;function iw(){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 lw(){return!/^((?!chrome|android).)*safari/i.test(iw())}function sw(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&YS(e)&&(o=e.offsetWidth>0&&aw(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&aw(r.height)/e.offsetHeight||1);var i=(JS(e)?QS(e):window).visualViewport,l=!lw()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,c=(r.top+(l&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function cw(e){var t=sw(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 uw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ew(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function dw(e){return QS(e).getComputedStyle(e)}function pw(e){return["table","td","th"].indexOf(XS(e))>=0}function fw(e){return((JS(e)?e.ownerDocument:e.document)||window.document).documentElement}function hw(e){return"html"===XS(e)?e:e.assignedSlot||e.parentNode||(ew(e)?e.host:null)||fw(e)}function mw(e){return YS(e)&&"fixed"!==dw(e).position?e.offsetParent:null}function gw(e){for(var t=QS(e),n=mw(e);n&&pw(n)&&"static"===dw(n).position;)n=mw(n);return n&&("html"===XS(n)||"body"===XS(n)&&"static"===dw(n).position)?t:n||function(e){var t=/firefox/i.test(iw());if(/Trident/i.test(iw())&&YS(e)&&"fixed"===dw(e).position)return null;var n=hw(e);for(ew(n)&&(n=n.host);YS(n)&&["html","body"].indexOf(XS(n))<0;){var r=dw(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 vw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bw(e,t,n){return rw(e,ow(t,n))}function yw(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function xw(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Sw={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=nw(n.placement),s=vw(l),c=[AS,DS].indexOf(l)>=0?"height":"width";if(a&&i){var u=function(e,t){return yw("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:xw(e,FS))}(o.padding,n),d=cw(a),p="y"===s?qS:AS,f="y"===s?zS:DS,h=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],m=i[s]-n.rects.reference[s],g=gw(a),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,y=u[p],x=v-d[c]-u[f],S=v/2-d[c]/2+b,w=bw(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)))&&uw(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ww(e){return e.split("-")[1]}var Ew={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Cw(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,h=i.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),y=AS,x=qS,S=window;if(c){var w=gw(n),E="clientHeight",C="clientWidth";if(w===QS(n)&&"static"!==dw(w=fw(n)).position&&"absolute"===l&&(E="scrollHeight",C="scrollWidth"),o===qS||(o===AS||o===DS)&&a===$S)x=zS,m-=(d&&w===S&&S.visualViewport?S.visualViewport.height:w[E])-r.height,m*=s?1:-1;if(o===AS||(o===qS||o===zS)&&a===$S)y=DS,f-=(d&&w===S&&S.visualViewport?S.visualViewport.width:w[C])-r.width,f*=s?1:-1}var k,R=Object.assign({position:l},c&&Ew),L=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:aw(n*o)/o||0,y:aw(r*o)/o||0}}({x:f,y:m},QS(n)):{x:f,y:m};return f=L.x,m=L.y,s?Object.assign({},R,((k={})[x]=b?"0":"",k[y]=v?"0":"",k.transform=(S.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",k)):Object.assign({},R,((t={})[x]=b?m+"px":"",t[y]=v?f+"px":"",t.transform="",t))}var kw={passive:!0};var Rw={left:"right",right:"left",bottom:"top",top:"bottom"};function Lw(e){return e.replace(/left|right|bottom|top/g,(function(e){return Rw[e]}))}var Ow={start:"end",end:"start"};function _w(e){return e.replace(/start|end/g,(function(e){return Ow[e]}))}function Iw(e){var t=QS(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Tw(e){return sw(fw(e)).left+Iw(e).scrollLeft}function Pw(e){var t=dw(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Mw(e){return["html","body","#document"].indexOf(XS(e))>=0?e.ownerDocument.body:YS(e)&&Pw(e)?e:Mw(hw(e))}function Nw(e,t){var n;void 0===t&&(t=[]);var r=Mw(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=QS(r),i=o?[a].concat(a.visualViewport||[],Pw(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Nw(hw(i)))}function qw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zw(e,t,n){return t===HS?qw(function(e,t){var n=QS(e),r=fw(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=lw();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+Tw(e),y:s}}(e,n)):JS(t)?function(e,t){var n=sw(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):qw(function(e){var t,n=fw(e),r=Iw(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=rw(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=rw(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Tw(e),s=-r.scrollTop;return"rtl"===dw(o||n).direction&&(l+=rw(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(fw(e)))}function Dw(e,t,n,r){var o="clippingParents"===t?function(e){var t=Nw(hw(e)),n=["absolute","fixed"].indexOf(dw(e).position)>=0&&YS(e)?gw(e):e;return JS(n)?t.filter((function(e){return JS(e)&&uw(e,n)&&"body"!==XS(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=zw(e,n,r);return t.top=rw(o.top,t.top),t.right=ow(o.right,t.right),t.bottom=ow(o.bottom,t.bottom),t.left=rw(o.left,t.left),t}),zw(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Aw(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?nw(o):null,i=o?ww(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case qS:t={x:l,y:n.y-r.height};break;case zS:t={x:l,y:n.y+n.height};break;case DS:t={x:n.x+n.width,y:s};break;case AS:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?vw(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case BS:t[c]=t[c]-(n[u]/2-r[u]/2);break;case $S:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function jw(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,s=void 0===l?WS:l,c=n.rootBoundary,u=void 0===c?HS:c,d=n.elementContext,p=void 0===d?US:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=yw("number"!=typeof g?g:xw(g,FS)),b=p===US?VS:US,y=e.rects.popper,x=e.elements[h?b:p],S=Dw(JS(x)?x:x.contextElement||fw(e.elements.popper),s,u,i),w=sw(e.elements.reference),E=Aw({reference:w,element:y,strategy:"absolute",placement:o}),C=qw(Object.assign({},y,E)),k=p===US?C:w,R={top:S.top-k.top+v.top,bottom:k.bottom-S.bottom+v.bottom,left:S.left-k.left+v.left,right:k.right-S.right+v.right},L=e.modifiersData.offset;if(p===US&&L){var O=L[o];Object.keys(R).forEach((function(e){var t=[DS,zS].indexOf(e)>=0?1:-1,n=[qS,zS].indexOf(e)>=0?"y":"x";R[e]+=O[n]*t}))}return R}function Fw(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?KS:s,u=ww(r),d=u?l?GS:GS.filter((function(e){return ww(e)===u})):FS,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]=jw(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[nw(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var Bw={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=nw(g),b=s||(v===g||!h?[Lw(g)]:function(e){if(nw(e)===jS)return[];var t=Lw(e);return[_w(e),t,_w(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(nw(n)===jS?Fw(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,S=t.rects.popper,w=new Map,E=!0,C=y[0],k=0;k<y.length;k++){var R=y[k],L=nw(R),O=ww(R)===BS,_=[qS,zS].indexOf(L)>=0,I=_?"width":"height",T=jw(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),P=_?O?DS:AS:O?zS:qS;x[I]>S[I]&&(P=Lw(P));var M=Lw(P),N=[];if(a&&N.push(T[L]<=0),l&&N.push(T[P]<=0,T[M]<=0),N.every((function(e){return e}))){C=R,E=!1;break}w.set(R,N)}if(E)for(var q=function(e){var t=y.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},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 $w(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 Ww(e){return[qS,DS,zS,AS].some((function(t){return e[t]>=0}))}var Hw={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=KS.reduce((function(e,n){return e[n]=function(e,t,n){var r=nw(e),o=[AS,qS].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[AS,DS].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}};var Uw={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=jw(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=nw(t.placement),b=ww(t.placement),y=!b,x=vw(v),S="x"===x?"y":"x",w=t.modifiersData.popperOffsets,E=t.rects.reference,C=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,R="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(w){if(a){var _,I="y"===x?qS:AS,T="y"===x?zS:DS,P="y"===x?"height":"width",M=w[x],N=M+g[I],q=M-g[T],z=f?-C[P]/2:0,D=b===BS?E[P]:C[P],A=b===BS?-C[P]:-E[P],j=t.elements.arrow,F=f&&j?cw(j):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=B[I],W=B[T],H=bw(0,E[P],F[P]),U=y?E[P]/2-z-H-$-R.mainAxis:D-H-$-R.mainAxis,V=y?-E[P]/2+z+H+W+R.mainAxis:A+H+W+R.mainAxis,G=t.elements.arrow&&gw(t.elements.arrow),K=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,Z=null!=(_=null==L?void 0:L[x])?_:0,X=M+V-Z,Q=bw(f?ow(N,M+U-Z-K):N,M,f?rw(q,X):q);w[x]=Q,O[x]=Q-M}if(l){var J,Y="x"===x?qS:AS,ee="x"===x?zS:DS,te=w[S],ne="y"===S?"height":"width",re=te+g[Y],oe=te-g[ee],ae=-1!==[qS,AS].indexOf(v),ie=null!=(J=null==L?void 0:L[S])?J:0,le=ae?re:te-E[ne]-C[ne]-ie+R.altAxis,se=ae?te+E[ne]+C[ne]-ie-R.altAxis:oe,ce=f&&ae?function(e,t,n){var r=bw(e,t,n);return r>n?n:r}(le,te,se):bw(f?le:re,te,f?se:oe);w[S]=ce,O[S]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function Vw(e,t,n){void 0===n&&(n=!1);var r=YS(t),o=YS(t)&&function(e){var t=e.getBoundingClientRect(),n=aw(t.width)/e.offsetWidth||1,r=aw(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=fw(t),i=sw(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==XS(t)||Pw(a))&&(l=function(e){return e!==QS(e)&&YS(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Iw(e);var t}(t)),YS(t)?((s=sw(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=Tw(a))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function Gw(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 Kw={placement:"bottom",modifiers:[],strategy:"absolute"};function Zw(){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 Xw(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Kw:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Kw,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},a,l.options,o),l.scrollParents={reference:JS(e)?Nw(e):e.contextElement?Nw(e.contextElement):[],popper:Nw(t)};var i,c,p=function(e){var t=Gw(e);return ZS.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,l.options.modifiers),c=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return l.orderedModifiers=p.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:l,name:t,instance:u,options:r}),i=function(){};s.push(a||i)}})),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(Zw(t,n)){l.rects={reference:Vw(t,gw(n),"fixed"===l.options.strategy),popper:cw(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],a=o.fn,i=o.options,s=void 0===i?{}:i,d=o.name;"function"==typeof a&&(l=a({state:l,options:s,name:d,instance:u})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(l)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),c=!0}};if(!Zw(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 Qw=Xw({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,s=QS(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,kw)})),l&&s.addEventListener("resize",n.update,kw),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,kw)})),l&&s.removeEventListener("resize",n.update,kw)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Aw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,c={placement:nw(t.placement),variation:ww(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,Cw(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Cw(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:{}},tw,Hw,Bw,Uw,Sw,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=jw(t,{elementContext:"reference"}),l=jw(t,{altBoundary:!0}),s=$w(i,r),c=$w(l,o,a),u=Ww(s),d=Ww(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const Jw="Popper";function Yw(e){return wS(Jw,e)}!function(e,t){const n={};t.forEach((t=>{n[t]=wS(e,t)}))}(Jw,["root"]);const eE=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],tE=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function nE(e){return"function"==typeof e?e():e}const rE=()=>zv({root:["root"]},function(e){const{disableDefaultClasses:t}=U.useContext(oS);return n=>t?"":e(n)}(Yw)),oE={},aE=U.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,direction:a,disablePortal:i,modifiers:l,open:s,placement:c,popperOptions:u,popperRef:d,slotProps:p={},slots:f={},TransitionProps:h}=e,m=iS(e,eE),g=U.useRef(null),v=xv(g,t),b=U.useRef(null),y=xv(b,d),x=U.useRef(y);iv((()=>{x.current=y}),[y]),U.useImperativeHandle(d,(()=>b.current),[]);const S=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(c,a),[w,E]=U.useState(S),[C,k]=U.useState(nE(r));U.useEffect((()=>{b.current&&b.current.forceUpdate()})),U.useEffect((()=>{r&&k(nE(r))}),[r]),iv((()=>{if(!C||!s)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{E(e.placement)}}];null!=l&&(e=e.concat(l)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=Qw(C,g.current,eS({placement:S},u,{modifiers:e}));return x.current(t),()=>{t.destroy(),x.current(null)}}),[C,i,l,s,u,S]);const R={placement:w};null!==h&&(R.TransitionProps=h);const L=rE(),O=null!=(n=f.root)?n:"div",_=cS({elementType:O,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:L.root});return rm.jsx(O,eS({},_,{children:"function"==typeof o?o(R):o}))})),iE=U.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:a="ltr",disablePortal:i=!1,keepMounted:l=!1,modifiers:s,open:c,placement:u="bottom",popperOptions:d=oE,popperRef:p,style:f,transition:h=!1,slotProps:m={},slots:g={}}=e,v=iS(e,tE),[b,y]=U.useState(!0);if(!l&&!c&&(!h||b))return null;let x;if(o)x=o;else if(n){const e=nE(n);x=e&&void 0!==e.nodeType?pv(e).body:pv(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(LS,{disablePortal:i,container:x,children:rm.jsx(aE,eS({anchorEl:n,direction:a,disablePortal:i,modifiers:s,ref:t,open:h?!b:c,placement:u,popperOptions:d,popperRef:p,slotProps:m,slots:g},v,{style:eS({position:"fixed",top:0,left:0,display:S},f),TransitionProps:w,children:r}))})})),lE=["onChange","maxRows","minRows","style","value"];function sE(e){return parseInt(e,10)||0}const cE={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const uE=U.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:i}=e,l=iS(e,lE),{current:s}=U.useRef(null!=i),c=U.useRef(null),u=xv(t,c),d=U.useRef(null),p=U.useCallback((()=>{const t=c.current,n=fv(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const a=d.current;a.style.width=n.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");const i=n.boxSizing,l=sE(n.paddingBottom)+sE(n.paddingTop),s=sE(n.borderBottomWidth)+sE(n.borderTopWidth),u=a.scrollHeight;a.value="x";const p=a.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"===i?l+s:0),overflowing:Math.abs(f-u)<=1}}),[r,o,e.placeholder]),f=U.useCallback((()=>{const e=p();if(null==(t=e)||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=c.current;n.style.height=`${e.outerHeightStyle}px`,n.style.overflow=e.overflowing?"hidden":""}),[p]);iv((()=>{const e=()=>{f()};const t=uv(e),n=c.current,r=fv(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[p,f]),iv((()=>{f()}));return rm.jsxs(U.Fragment,{children:[rm.jsx("textarea",eS({value:i,onChange:e=>{s||f(),n&&n(e)},ref:u,rows:o,style:a},l)),rm.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:eS({},cE,a,{paddingTop:0,paddingBottom:0})})]})}));var dE={};Object.defineProperty(dE,"__esModule",{value:!0});var pE=dE.default=void 0,fE=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=mE(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(U),hE=iy;function mE(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(mE=function(e){return e?n:t})(e)}pE=dE.default=function(e=null){const t=fE.useContext(hE.ThemeContext);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n};const gE=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],vE=Ty(iE,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bE=U.forwardRef((function(e,t){var n;const r=pE(),o=ey({props:e,name:"MuiPopper"}),{anchorEl:a,component:i,components:l,componentsProps:s,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v,slots:b,slotProps:y}=o,x=Rp(o,gE),S=null!=(n=null==b?void 0:b.root)?n:null==l?void 0:l.Root,w=kp({anchorEl:a,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v},x);return rm.jsx(vE,kp({as:i,direction:null==r?void 0:r.direction,slots:{root:S},slotProps:null!=y?y:s},w,{ref:t}))}));function yE({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}const xE=U.createContext(void 0);function SE(){return U.useContext(xE)}function wE(e){return rm.jsx(Ig,kp({},e,{defaultTheme:Jb,themeId:Cp}))}function EE(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function CE(e){return Bg("MuiInputBase",e)}const kE=$g("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),RE=["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"],LE=(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${Om(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},OE=(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]},_E=Ty("div",{name:"MuiInputBase",slot:"Root",overridesResolver:LE})((({theme:e,ownerState:t})=>kp({},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",[`&.${kE.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&kp({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),IE=Ty("input",{name:"MuiInputBase",slot:"Input",overridesResolver:OE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=kp({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return kp({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] + .${kE.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${kE.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"})})),TE=rm.jsx(wE,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),PE=U.forwardRef((function(e,t){var n;const r=ey({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:l,components:s={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:w,onBlur:E,onChange:C,onClick:k,onFocus:R,onKeyDown:L,onKeyUp:O,placeholder:_,readOnly:I,renderSuffix:T,rows:P,slotProps:M={},slots:N={},startAdornment:q,type:z="text",value:D}=r,A=Rp(r,RE),j=null!=v.value?v.value:D,{current:F}=U.useRef(null!=j),B=U.useRef(),$=U.useCallback((e=>{}),[]),W=xv(B,b,v.ref,$),[H,V]=U.useState(!1),G=SE(),K=yE({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:H,U.useEffect((()=>{!G&&d&&H&&(V(!1),E&&E())}),[G,d,H,E]);const Z=G&&G.onFilled,X=G&&G.onEmpty,Q=U.useCallback((e=>{!function(e,t=!1){return e&&(EE(e.value)&&""!==e.value||t&&EE(e.defaultValue)&&""!==e.defaultValue)}(e)?X&&X():Z&&Z()}),[Z,X]);iv((()=>{F&&Q({value:j})}),[j,Q,F]);U.useEffect((()=>{Q(B.current)}),[]);let J=g,Y=v;S&&"input"===J&&(Y=kp(P?{type:void 0,minRows:P,maxRows:P}:{type:void 0,maxRows:y,minRows:x},Y),J=uE);U.useEffect((()=>{G&&G.setAdornedStart(Boolean(q))}),[G,q]);const ee=kp({},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:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return zv({root:["root",`color${Om(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Om(p)}`,u&&"multiline",f&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]},CE,t)})(ee),ne=N.root||s.Root||_E,re=M.root||c.root||{},oe=N.input||s.Input||IE;return Y=kp({},Y,null!=(n=M.input)?n:c.input),rm.jsxs(U.Fragment,{children:[!p&&TE,rm.jsxs(ne,kp({},re,!tS(ne)&&{ownerState:kp({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),k&&k(e)}},A,{className:Ag(te.root,re.className,l,I&&"MuiInputBase-readOnly"),children:[q,rm.jsx(xE.Provider,{value:null,children:rm.jsx(oe,kp({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{Q("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:w,placeholder:_,readOnly:I,required:K.required,rows:P,value:j,onKeyDown:L,onKeyUp:O,type:z},Y,!tS(oe)&&{as:J,ownerState:kp({},ee,Y.ownerState)},{ref:W,className:Ag(te.input,Y.className,I&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!F){const t=e.target||B.current;if(null==t)throw new Error(wp(1));Q({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(R&&R(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):V(!0))}}))}),f,T?T(kp({},K,{startAdornment:q})):null]}))]})}));var ME=PE;function NE(e){return Bg("MuiOutlinedInput",e)}const qE=kp({},kE,$g("MuiOutlinedInput",["root","notchedOutline","input"])),zE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],DE={entering:{opacity:1},entered:{opacity:1}},AE=U.forwardRef((function(e,t){const n=Yb(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:i,easing:l,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=Vy}=e,b=Rp(e,zE),y=U.useRef(null),x=xv(y,i.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},w=S(d),E=S(((e,t)=>{Kx(e);const r=Zx({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),C=S(u),k=S(h),R=S((e=>{const t=Zx({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),L=S(f);return rm.jsx(v,kp({appear:a,in:s,nodeRef:y,onEnter:E,onEntered:C,onEntering:w,onExit:R,onExited:L,onExiting:k,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>U.cloneElement(i,kp({style:kp({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},DE[e],m,i.props.style),ref:x},t))}))}));function jE(e){return Bg("MuiBackdrop",e)}$g("MuiBackdrop",["root","invisible"]);const FE=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],BE=Ty("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>kp({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"}))),$E=U.forwardRef((function(e,t){var n,r,o;const a=ey({props:e,name:"MuiBackdrop"}),{children:i,className:l,component:s="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=AE,transitionDuration:g}=a,v=Rp(a,FE),b=kp({},a,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return zv({root:["root",n&&"invisible"]},jE,t)})(b),x=null!=(n=f.root)?n:u.root;return rm.jsx(m,kp({in:p,timeout:g},v,{children:rm.jsx(BE,kp({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:Ag(y.root,l,null==x?void 0:x.className),ownerState:kp({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:i}))}))}));function WE(e){return Bg("MuiBadge",e)}const HE=$g("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"]),UE=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],VE=ey,GE=Ty("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),KE=Ty("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Om(n.anchorOrigin.vertical)}${Om(n.anchorOrigin.horizontal)}${Om(n.overlap)}`],"default"!==n.color&&t[`color${Om(n.color)}`],n.invisible&&t.invisible]}})((({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n,r;return(null!=(n=e.vars)?n:e).palette[t].main&&(null!=(r=e.vars)?r:e).palette[t].contrastText})).map((t=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${HE.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${HE.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${HE.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${HE.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${HE.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${HE.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${HE.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${HE.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}})),ZE=U.forwardRef((function(e,t){var n,r,o,a,i,l;const s=VE({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=Rp(s,UE),{badgeContent:k,invisible:R,max:L,displayValue:O}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=qv({badgeContent:t,max:r});let i=n;!1!==n||0!==t||o||(i=!0);const{badgeContent:l,max:s=r}=i?a:e;return{badgeContent:l,invisible:i,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:b,invisible:v,badgeContent:y,showZero:w}),_=qv({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:y}),I=R||null==k&&"dot"!==E,{color:T=g,overlap:P=m,anchorOrigin:M=c,variant:N=E}=I?_:s,q="dot"!==N?O:void 0,z=kp({},s,{badgeContent:k,invisible:I,max:L,displayValue:q,showZero:w,anchorOrigin:M,color:T,overlap:P,variant:N}),D=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return zv({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${Om(n.vertical)}${Om(n.horizontal)}`,`anchorOrigin${Om(n.vertical)}${Om(n.horizontal)}${Om(o)}`,`overlap${Om(o)}`,"default"!==t&&`color${Om(t)}`]},WE,i)})(z),A=null!=(n=null!=(r=null==x?void 0:x.root)?r:p.Root)?n:GE,j=null!=(o=null!=(a=null==x?void 0:x.badge)?a:p.Badge)?o:KE,F=null!=(i=null==S?void 0:S.root)?i:f.root,B=null!=(l=null==S?void 0:S.badge)?l:f.badge,$=cS({elementType:A,externalSlotProps:F,externalForwardedProps:C,additionalProps:{ref:t,as:d},ownerState:z,className:Ag(null==F?void 0:F.className,D.root,u)}),W=cS({elementType:j,externalSlotProps:B,ownerState:z,className:Ag(D.badge,null==B?void 0:B.className)});return rm.jsxs(A,kp({},$,{children:[h,rm.jsx(j,kp({},W,{children:q}))]}))})),XE=$g("MuiBox",["root"]),QE=Qb(),JE=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=lm("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(wg),i=U.forwardRef((function(e,i){const l=_g(n),s=Mg(e),{className:c,component:u="div"}=s,d=dm(s,jg);return rm.jsx(a,um({as:u,ref:i,className:Ag(c,o?o(r):r),theme:t&&l[t]||l},d))}));return i}({themeId:Cp,defaultTheme:QE,defaultClassName:XE.root,generateClassName:zg.generate});function YE(e){return Bg("PrivateSwitchBase",e)}$g("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const eC=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],tC=Ty(vx)((({ownerState:e})=>kp({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),nC=Ty("input",{shouldForwardProp:Iy})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),rC=U.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:a,defaultChecked:i,disabled:l,disableFocusRipple:s=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:v,readOnly:b,required:y=!1,tabIndex:x,type:S,value:w}=e,E=Rp(e,eC),[C,k]=bv({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),R=SE();let L=l;R&&void 0===L&&(L=R.disabled);const O="checkbox"===S||"radio"===S,_=kp({},e,{checked:C,disabled:L,disableFocusRipple:s,edge:c}),I=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return zv({root:["root",n&&"checked",r&&"disabled",o&&`edge${Om(o)}`],input:["input"]},YE,t)})(_);return rm.jsxs(tC,kp({component:"span",className:Ag(I.root,a),centerRipple:!0,focusRipple:!s,disabled:L,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),R&&R.onFocus&&R.onFocus(e)},onBlur:e=>{m&&m(e),R&&R.onBlur&&R.onBlur(e)},ownerState:_,ref:t},E,{children:[rm.jsx(nC,kp({autoFocus:n,checked:r,defaultChecked:i,className:I.input,disabled:L,id:O?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),g&&g(e,t)},readOnly:b,ref:f,required:y,ownerState:_,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),C?o:u]}))}));var oC=Ux(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"),aC=Ux(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"),iC=Ux(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 lC(e){return Bg("MuiCheckbox",e)}const sC=$g("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),cC=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],uC=Ty(rC,{shouldForwardProp:e=>Iy(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Om(n.size)}`],"default"!==n.color&&t[`color${Om(n.color)}`]]}})((({theme:e,ownerState:t})=>kp({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})`:lb("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${sC.checked}, &.${sC.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${sC.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),dC=rm.jsx(aC,{}),pC=rm.jsx(oC,{}),fC=rm.jsx(iC,{}),hC=U.forwardRef((function(e,t){var n,r;const o=ey({props:e,name:"MuiCheckbox"}),{checkedIcon:a=dC,color:i="primary",icon:l=pC,indeterminate:s=!1,indeterminateIcon:c=fC,inputProps:u,size:d="medium",className:p}=o,f=Rp(o,cC),h=s?c:l,m=s?c:a,g=kp({},o,{color:i,indeterminate:s,size:d}),v=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e;return kp({},t,zv({root:["root",n&&"indeterminate",`color${Om(r)}`,`size${Om(o)}`]},lC,t))})(g);return rm.jsx(uC,kp({type:"checkbox",inputProps:kp({"data-indeterminate":s},u),icon:U.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:U.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:Ag(v.root,p)},f,{classes:v}))}));function mC(e){return Bg("MuiCircularProgress",e)}$g("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const gC=["className","color","disableShrink","size","style","thickness","value","variant"];let vC,bC,yC,xC,SC=e=>e;const wC=44,EC=Th(vC||(vC=SC`
|
|
106
|
+
`),vx.rippleVisible,Cx,550,(({theme:e})=>e.transitions.easing.easeInOut),vx.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),vx.child,vx.childLeaving,kx,550,(({theme:e})=>e.transitions.easing.easeInOut),vx.childPulsate,Rx,(({theme:e})=>e.transitions.easing.easeInOut)),_x=U.forwardRef((function(e,t){const n=Qy({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,i=Rp(n,bx),[l,s]=U.useState([]),c=U.useRef(0),u=U.useRef(null);U.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const d=U.useRef(!1),p=Iv(),f=U.useRef(null),h=U.useRef(null),m=U.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;s((e=>[...e,cm.jsx(Ox,{classes:{ripple:Hg(o.ripple,vx.ripple),rippleVisible:Hg(o.rippleVisible,vx.rippleVisible),ripplePulsate:Hg(o.ripplePulsate,vx.ripplePulsate),child:Hg(o.child,vx.child),childLeaving:Hg(o.childLeaving,vx.childLeaving),childPulsate:Hg(o.childPulsate,vx.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},c.current)])),c.current+=1,u.current=i}),[o]),g=U.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=i?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),u=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),u=Math.round(n-s.top)}if(a)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,p]),v=U.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=U.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{b(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return U.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),cm.jsx(Lx,kp({className:Hg(vx.root,o.root,a),ref:h},i,{children:cm.jsx(gx,{component:null,exit:!0,children:l})}))}));function Ix(e){return Gg("MuiButtonBase",e)}const Tx=Kg("MuiButtonBase",["root","disabled","focusVisible"]),Px=["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"],Mx=Gy("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"},[`&.${Tx.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Nx=U.forwardRef((function(e,t){const n=Qy({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:l="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:E,onTouchEnd:C,onTouchMove:k,onTouchStart:R,tabIndex:L=0,TouchRippleProps:O,touchRippleRef:_,type:I}=n,T=Rp(n,Px),P=U.useRef(null),M=U.useRef(null),N=Rv(M,_),{isFocusVisibleRef:q,onFocus:A,onBlur:z,ref:D}=jv(),[j,F]=U.useState(!1);s&&j&&F(!1),U.useImperativeHandle(r,(()=>({focusVisible:()=>{F(!0),P.current.focus()}})),[]);const[$,B]=U.useState(!1);U.useEffect((()=>{B(!0)}),[]);const W=$&&!c&&!s;function H(e,t,n=u){return kv((r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!0}))}U.useEffect((()=>{j&&d&&!c&&$&&M.current.pulsate()}),[c,d,j,$]);const V=H("start",S),G=H("stop",m),K=H("stop",g),Z=H("stop",E),X=H("stop",(e=>{j&&e.preventDefault(),w&&w(e)})),Q=H("start",R),J=H("stop",C),Y=H("stop",k),ee=H("stop",(e=>{z(e),!1===q.current&&F(!1),f&&f(e)}),!1),te=kv((e=>{P.current||(P.current=e.currentTarget),A(e),!0===q.current&&(F(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=U.useRef(!1),oe=kv((e=>{d&&!re.current&&j&&M.current&&" "===e.key&&(re.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ae=kv((e=>{d&&" "===e.key&&M.current&&j&&!e.defaultPrevented&&(re.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(T.href||T.to)&&(ie=p);const le={};"button"===ie?(le.type=void 0===I?"button":I,le.disabled=s):(T.href||T.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Rv(t,D,P),ce=kp({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:L,focusVisible:j}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Bv({root:["root",t&&"disabled",n&&"focusVisible"]},Ix,o);return n&&r&&(a.root+=` ${r}`),a})(ce);return cm.jsxs(Mx,kp({as:ie,className:Hg(ue.root,i),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:V,onMouseLeave:X,onMouseUp:Z,onDragLeave:K,onTouchEnd:J,onTouchMove:Y,onTouchStart:Q,ref:se,tabIndex:s?-1:L,type:I},le,T,{children:[a,W?cm.jsx(_x,kp({ref:N,center:o},O)):null]}))}));function qx(e){return Gg("MuiButton",e)}const Ax=Kg("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),zx=U.createContext({}),Dx=U.createContext(void 0),jx=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Fx=e=>kp({},"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}}),$x=Gy(Nx,{shouldForwardProp:e=>Vy(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Nm(n.color)}`],t[`size${Nm(n.size)}`],t[`${n.variant}Size${Nm(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],a="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return kp({},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":kp({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Cb(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})`:Cb(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})`:Cb(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":kp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ax.focusVisible}`]:kp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ax.disabled}`]:kp({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 ${Cb(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"},[`&.${Ax.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ax.disabled}`]:{boxShadow:"none"}})),Bx=Gy("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Nm(n.size)}`]]}})((({ownerState:e})=>kp({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Fx(e)))),Wx=Gy("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Nm(n.size)}`]]}})((({ownerState:e})=>kp({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Fx(e)))),Hx=U.forwardRef((function(e,t){const n=U.useContext(zx),r=U.useContext(Dx),o=Qy({props:uv(n,e),name:"MuiButton"}),{children:a,color:i="primary",component:l="button",className:s,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,y=Rp(o,jx),x=kp({},o,{color:i,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e;return kp({},i,Bv({root:["root",a,`${a}${Nm(t)}`,`size${Nm(o)}`,`${a}Size${Nm(o)}`,`color${Nm(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Nm(o)}`],endIcon:["icon","endIcon",`iconSize${Nm(o)}`]},qx,i))})(x),w=g&&cm.jsx(Bx,{className:S.startIcon,ownerState:x,children:g}),E=p&&cm.jsx(Wx,{className:S.endIcon,ownerState:x,children:p}),C=r||"";return cm.jsxs($x,kp({ownerState:x,className:Hg(n.className,S.root,s,C),component:l,disabled:c,focusRipple:!d,focusVisibleClassName:Hg(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[w,a,E]}))}));var Ux={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 Vx={green:"#009845",greenPale:"#0AAF54",red:"#DC423F",redPale:"#F05551",blue:"#3F8AB3",bluePale:"#469DCD",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey85:"#D9D9D9",grey55:"#8C8C8C",grey45:"#737373",grey30:"#4D4D4D",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey5:"#0E0E0E",grey0:"#000000"},Gx={mode:"light",palette:{primary:{main:Vx.grey25,contrastText:Vx.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Vx.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:Vx.grey100,dark:Vx.grey0},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:Vx.grey100,default:Vx.grey100,lightest:Vx.grey100,lighter:Vx.grey98,darker:Vx.grey95,darkest:Vx.grey90},custom:{focusBorder:Vx.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:Vx.grey45,disabledContrastText:Vx.grey100},selected:{main:Vx.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:Vx.grey100,selectedContrastText:Vx.grey100,mainContrastText:Vx.grey100,alternativeContrastText:Vx.grey25,excludedContrastText:Vx.grey25,selectedExcludedContrastText:Vx.grey100,possibleContrastText:Vx.grey0},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},Kx={mode:"dark",palette:{primary:{main:Vx.grey20,contrastText:Vx.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Vx.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:Vx.grey100,dark:Vx.grey0},action:{active:Vx.grey100,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:Vx.grey25,lighter:Vx.grey20,darker:Vx.grey15,darkest:Vx.grey10},custom:{focusBorder:Vx.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:Vx.grey45,disabledContrastText:Vx.grey100},selected:{main:Vx.green,alternative:Vx.grey20,excluded:Vx.grey10,selectedExcluded:Vx.grey10,possible:Vx.grey80,selectedContrastText:Vx.grey100,mainContrastText:Vx.grey100,alternativeContrastText:Vx.grey100,excludedContrastText:Vx.grey100,selectedExcludedContrastText:Vx.grey100,possibleContrastText:Vx.grey0},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},Zx={},Xx=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(Ax.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(Ax.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(Ax.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(Ax.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function Qx(e){let t=Gx,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=Kx));const r=JSON.stringify(t);if(Zx[r])return Zx[r];const o={palette:l(l({type:t.mode},Ux.palette),t.palette),typography:l({},Ux.typography),shadows:Ux.shadows,props:l({},Ux.props),shape:l({},Ux.shape)};return Zx[r]=hy(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:a={},styleOverrides:i={}}=e,l=kp({},Rp(e,gb),{components:{}});Object.keys(t).forEach((e=>{const n=l.components[e]||{};n.defaultProps=t[e],l.components[e]=n})),Object.keys(a).forEach((e=>{const t=l.components[e]||{};t.defaultProps=a[e],l.components[e]=t})),Object.keys(i).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=i[e],l.components[e]=t})),Object.keys(r).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=r[e],l.components[e]=t})),l.spacing=Jm(e.spacing);const s=km(e.breakpoints||{}),c=l.spacing;l.mixins=kp({gutters:(e={})=>kp({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:kp({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=Rp(o,vb),f=d||u||"light";return l.palette=kp({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},p),l}(l(l({},o),{},{overrides:Xx(o)}))),Zx[r].name=n,Zx[r]}Bg.configure((e=>"njs-".concat("b434","-").concat(e.replace("Mui",""))));var Jx=V.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{}});const Yx={active:!0,select:!0,passive:!0,edit:!1};function eS(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(Yx).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=Yx[e],n[e]=!Yx[e])})),e.constraints=n,e.interactions=t}var tS=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=[],r={get:e=>t[e],set:(n,r)=>{if(void 0===n||"object"==typeof n)throw new Error("Invalid key: ".concat(JSON.stringify(n)));return t[n]=r,e({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));t[e]=null},dispatch:e=>{n.forEach((n=>n(e?{}:t)))}};return[()=>{const[,e]=U.useState(t);return U.useEffect((()=>(n.push(e),()=>{const t=n.indexOf(e);n.splice(t,1)})),[e]),[r]},r]};const nS=U.forwardRef(((e,t)=>{let{initialContext:n,renderCallback:r,modelStore:o,selectionStore:a}=e;const[i,l]=U.useState(n),[s,c]=U.useState(),{theme:u}=U.useMemo((()=>({theme:Qx(s)})),[s]),[d,p]=U.useState([]);return U.useEffect((()=>{r&&r()}),[]),U.useImperativeHandle(t,(()=>({setComps(e){p([...e])},setMuiThemeName:c,setContext:e=>l((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t))})),[]),i&&(i.modelStore=o,i.selectionStore=a),V.createElement(dm,{injectFirst:!0},V.createElement(Zy,{theme:u},V.createElement(Jx.Provider,{value:i},d)))}));function rS(e){let t,{app:n,context:r}=e;const o=new Promise((e=>{t=e})),a=V.createRef(),i=document.createElement("div");i.style.display="none",i.setAttribute("data-nebulajs-version","5.3.0"),i.setAttribute("data-app-id",n.id),document.body.appendChild(i),r&&eS(r);const l=function(e){const[t,n]=tS({}),[r,o]=tS({}),[a,i]=tS({}),[l,s]=tS({}),[c,u]=tS({}),[,d]=tS({}),p=e=>{let{type:t,value:r}=e;const a=d.get(r.id);d.set(r.id,{});const l=()=>{o.clear(r.id),u.set(r.id,{}),u.dispatch(!0)},c=()=>{r.removeListener("changed",l),n.clear(r.id),o.clear(r.id),i.clear(r.id),s.clear(r.id),u.clear(r.id),d.clear(r.id)};return"SET"===t&&(a||(r.on("changed",l),r.once("closed",(()=>{c()})))),c},[f,h]=tS({},p);return{subscribe:e=>{const t=p({type:"SET",value:e});return()=>{t(),h.clear(e.id)}},useModelStore:f,modelStore:h,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:r,rpcRequestStore:o,useRpcRequestModelStore:l,rpcRequestModelStore:s,useRpcRequestSessionModelStore:a,rpcRequestSessionModelStore:i,modelChangedStore:u,appId:e}}(n.id),s=function(e){const[t,n]=tS({}),[r,o]=tS({}),[a,i]=tS({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:a,modalObjectStore:i,appId:e}}(n.id);pt.createRoot(i).render(V.createElement(nS,{ref:a,initialContext:r,renderCallback:t,modelStore:l,selectionStore:s}));const c={},u=[];return[{toggleFocusOfCells(e){Object.keys(c).forEach((t=>{c[t].current.toggleFocus(t===e)}))},cells:c,addCell(e,t){c[e]=t},removeCell(e){delete c[e]},add(e){(async()=>{await o,u.push(e),a.current.setComps(u)})()},remove(e){(async()=>{await o;const t=u.indexOf(e);-1!==t&&u.splice(t,1),a.current.setComps(u)})()},setMuiThemeName(e){(async()=>{await o,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,e&&eS(e),a.current.setContext(e)})()}},l,s,a,o]}function oS(e){return Gg("MuiSvgIcon",e)}Kg("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const aS=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],iS=Gy("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Nm(n.color)}`],t[`fontSize${Nm(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,a,i,l,s,c,u,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(i=a.pxToRem)?void 0:i.call(a,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),lS=U.forwardRef((function(e,t){const n=Qy({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=Rp(n,aS),f=U.isValidElement(r)&&"svg"===r.type,h=kp({},n,{color:a,component:i,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return Bv({root:["root","inherit"!==t&&`color${Nm(t)}`,`fontSize${Nm(n)}`]},oS,r)})(h);return cm.jsxs(iS,kp({as:i,className:Hg(g.root,o),focusable:"false",color:s,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,u?cm.jsx("title",{children:u}):null]}))}));function sS(e,t){function n(n,r){return cm.jsx(lS,kp({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=lS.muiName,U.memo(U.forwardRef(n))}lS.muiName="SvgIcon";const cS={configure:e=>{Bg.configure(e)}};var uS=Object.freeze({__proto__:null,capitalize:Nm,createChainedFunction:mv,createSvgIcon:sS,debounce:gv,deprecatedPropType:function(e,t){return()=>null},isMuiElement:vv,ownerDocument:bv,ownerWindow:yv,requirePropFactory:function(e,t){return()=>null},setRef:xv,unstable_ClassNameGenerator:cS,unstable_useEnhancedEffect:pv,unstable_useId:Ev,unsupportedProp:function(e,t,n,r,o){return null},useControlled:Cv,useEventCallback:kv,useForkRef:Rv,useIsFocusVisible:jv});const dS=e=>e.scrollTop;function pS(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(n=i.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=i.transitionTimingFunction)?r:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}function fS(e){return Gg("MuiPaper",e)}Kg("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 hS=["className","component","elevation","square","variant"],mS=Gy("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 kp({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&&kp({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Cb("#fff",Xy(t.elevation))}, ${Cb("#fff",Xy(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),gS=U.forwardRef((function(e,t){const n=Qy({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:i=!1,variant:l="elevation"}=n,s=Rp(n,hS),c=kp({},n,{component:o,elevation:a,square:i,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Bv({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},fS,o)})(c);return cm.jsx(mS,kp({as:o,ownerState:c,className:Hg(u.root,r),ref:t},s))}));function vS(e){return Gg("MuiIconButton",e)}const bS=Kg("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),yS=["edge","children","className","color","disabled","disableFocusRipple","size"],xS=Gy(Nx,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Nm(n.color)}`],n.edge&&t[`edge${Nm(n.edge)}`],t[`size${Nm(n.size)}`]]}})((({theme:e,ownerState:t})=>kp({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})`:Cb(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 kp({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&kp({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":kp({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Cb(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)},{[`&.${bS.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),SS=U.forwardRef((function(e,t){const n=Qy({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:i="default",disabled:l=!1,disableFocusRipple:s=!1,size:c="medium"}=n,u=Rp(n,yS),d=kp({},n,{edge:r,color:i,disabled:l,disableFocusRipple:s,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e;return Bv({root:["root",n&&"disabled","default"!==r&&`color${Nm(r)}`,o&&`edge${Nm(o)}`,`size${Nm(a)}`]},vS,t)})(d);return cm.jsx(xS,kp({className:Hg(p.root,a),centerRipple:!0,focusRipple:!s,disabled:l,ref:t},u,{ownerState:d,children:o}))}));function wS(e){return Gg("MuiTypography",e)}Kg("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ES=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],CS=Gy("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${Nm(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>kp({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),kS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},RS={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},LS=U.forwardRef((function(e,t){const n=Qy({props:e,name:"MuiTypography"}),r=(e=>RS[e]||e)(n.color),o=jg(kp({},n,{color:r})),{align:a="inherit",className:i,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=kS}=o,f=Rp(o,ES),h=kp({},o,{align:a,color:r,className:i,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=l||(u?"p":p[d]||kS[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e;return Bv({root:["root",a,"inherit"!==e.align&&`align${Nm(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},wS,i)})(h);return cm.jsx(CS,kp({as:m,ref:t,ownerState:h,className:Hg(g.root,i)},f))}));var OS={};Object.defineProperty(OS,"__esModule",{value:!0});var _S=OS.default=void 0,IS=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=PS(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(U),TS=wy;function PS(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(PS=function(e){return e?n:t})(e)}_S=OS.default=function(e=null){const t=IS.useContext(TS.ThemeContext);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n};var MS="top",NS="bottom",qS="right",AS="left",zS="auto",DS=[MS,NS,qS,AS],jS="start",FS="end",$S="clippingParents",BS="viewport",WS="popper",HS="reference",US=DS.reduce((function(e,t){return e.concat([t+"-"+jS,t+"-"+FS])}),[]),VS=[].concat(DS,[zS]).reduce((function(e,t){return e.concat([t,t+"-"+jS,t+"-"+FS])}),[]),GS=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function KS(e){return e?(e.nodeName||"").toLowerCase():null}function ZS(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function XS(e){return e instanceof ZS(e).Element||e instanceof Element}function QS(e){return e instanceof ZS(e).HTMLElement||e instanceof HTMLElement}function JS(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ZS(e).ShadowRoot||e instanceof ShadowRoot)}var YS={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];QS(o)&&KS(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});QS(r)&&KS(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function ew(e){return e.split("-")[0]}var tw=Math.max,nw=Math.min,rw=Math.round;function ow(){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 aw(){return!/^((?!chrome|android).)*safari/i.test(ow())}function iw(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&QS(e)&&(o=e.offsetWidth>0&&rw(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&rw(r.height)/e.offsetHeight||1);var i=(XS(e)?ZS(e):window).visualViewport,l=!aw()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,c=(r.top+(l&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function lw(e){var t=iw(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 sw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&JS(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function cw(e){return ZS(e).getComputedStyle(e)}function uw(e){return["table","td","th"].indexOf(KS(e))>=0}function dw(e){return((XS(e)?e.ownerDocument:e.document)||window.document).documentElement}function pw(e){return"html"===KS(e)?e:e.assignedSlot||e.parentNode||(JS(e)?e.host:null)||dw(e)}function fw(e){return QS(e)&&"fixed"!==cw(e).position?e.offsetParent:null}function hw(e){for(var t=ZS(e),n=fw(e);n&&uw(n)&&"static"===cw(n).position;)n=fw(n);return n&&("html"===KS(n)||"body"===KS(n)&&"static"===cw(n).position)?t:n||function(e){var t=/firefox/i.test(ow());if(/Trident/i.test(ow())&&QS(e)&&"fixed"===cw(e).position)return null;var n=pw(e);for(JS(n)&&(n=n.host);QS(n)&&["html","body"].indexOf(KS(n))<0;){var r=cw(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 mw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function gw(e,t,n){return tw(e,nw(t,n))}function vw(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function bw(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var yw={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=ew(n.placement),s=mw(l),c=[AS,qS].indexOf(l)>=0?"height":"width";if(a&&i){var u=function(e,t){return vw("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:bw(e,DS))}(o.padding,n),d=lw(a),p="y"===s?MS:AS,f="y"===s?NS:qS,h=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],m=i[s]-n.rects.reference[s],g=hw(a),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,y=u[p],x=v-d[c]-u[f],S=v/2-d[c]/2+b,w=gw(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)))&&sw(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xw(e){return e.split("-")[1]}var Sw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ww(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,h=i.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),y=AS,x=MS,S=window;if(c){var w=hw(n),E="clientHeight",C="clientWidth";if(w===ZS(n)&&"static"!==cw(w=dw(n)).position&&"absolute"===l&&(E="scrollHeight",C="scrollWidth"),o===MS||(o===AS||o===qS)&&a===FS)x=NS,m-=(d&&w===S&&S.visualViewport?S.visualViewport.height:w[E])-r.height,m*=s?1:-1;if(o===AS||(o===MS||o===NS)&&a===FS)y=qS,f-=(d&&w===S&&S.visualViewport?S.visualViewport.width:w[C])-r.width,f*=s?1:-1}var k,R=Object.assign({position:l},c&&Sw),L=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:rw(n*o)/o||0,y:rw(r*o)/o||0}}({x:f,y:m},ZS(n)):{x:f,y:m};return f=L.x,m=L.y,s?Object.assign({},R,((k={})[x]=b?"0":"",k[y]=v?"0":"",k.transform=(S.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",k)):Object.assign({},R,((t={})[x]=b?m+"px":"",t[y]=v?f+"px":"",t.transform="",t))}var Ew={passive:!0};var Cw={left:"right",right:"left",bottom:"top",top:"bottom"};function kw(e){return e.replace(/left|right|bottom|top/g,(function(e){return Cw[e]}))}var Rw={start:"end",end:"start"};function Lw(e){return e.replace(/start|end/g,(function(e){return Rw[e]}))}function Ow(e){var t=ZS(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function _w(e){return iw(dw(e)).left+Ow(e).scrollLeft}function Iw(e){var t=cw(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Tw(e){return["html","body","#document"].indexOf(KS(e))>=0?e.ownerDocument.body:QS(e)&&Iw(e)?e:Tw(pw(e))}function Pw(e,t){var n;void 0===t&&(t=[]);var r=Tw(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=ZS(r),i=o?[a].concat(a.visualViewport||[],Iw(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Pw(pw(i)))}function Mw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Nw(e,t,n){return t===BS?Mw(function(e,t){var n=ZS(e),r=dw(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=aw();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+_w(e),y:s}}(e,n)):XS(t)?function(e,t){var n=iw(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):Mw(function(e){var t,n=dw(e),r=Ow(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=tw(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=tw(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+_w(e),s=-r.scrollTop;return"rtl"===cw(o||n).direction&&(l+=tw(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(dw(e)))}function qw(e,t,n,r){var o="clippingParents"===t?function(e){var t=Pw(pw(e)),n=["absolute","fixed"].indexOf(cw(e).position)>=0&&QS(e)?hw(e):e;return XS(n)?t.filter((function(e){return XS(e)&&sw(e,n)&&"body"!==KS(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=Nw(e,n,r);return t.top=tw(o.top,t.top),t.right=nw(o.right,t.right),t.bottom=nw(o.bottom,t.bottom),t.left=tw(o.left,t.left),t}),Nw(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Aw(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?ew(o):null,i=o?xw(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case MS:t={x:l,y:n.y-r.height};break;case NS:t={x:l,y:n.y+n.height};break;case qS:t={x:n.x+n.width,y:s};break;case AS:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?mw(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case jS:t[c]=t[c]-(n[u]/2-r[u]/2);break;case FS:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function zw(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,s=void 0===l?$S:l,c=n.rootBoundary,u=void 0===c?BS:c,d=n.elementContext,p=void 0===d?WS:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=vw("number"!=typeof g?g:bw(g,DS)),b=p===WS?HS:WS,y=e.rects.popper,x=e.elements[h?b:p],S=qw(XS(x)?x:x.contextElement||dw(e.elements.popper),s,u,i),w=iw(e.elements.reference),E=Aw({reference:w,element:y,strategy:"absolute",placement:o}),C=Mw(Object.assign({},y,E)),k=p===WS?C:w,R={top:S.top-k.top+v.top,bottom:k.bottom-S.bottom+v.bottom,left:S.left-k.left+v.left,right:k.right-S.right+v.right},L=e.modifiersData.offset;if(p===WS&&L){var O=L[o];Object.keys(R).forEach((function(e){var t=[qS,NS].indexOf(e)>=0?1:-1,n=[MS,NS].indexOf(e)>=0?"y":"x";R[e]+=O[n]*t}))}return R}function Dw(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?VS:s,u=xw(r),d=u?l?US:US.filter((function(e){return xw(e)===u})):DS,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]=zw(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[ew(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var jw={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=ew(g),b=s||(v===g||!h?[kw(g)]:function(e){if(ew(e)===zS)return[];var t=kw(e);return[Lw(e),t,Lw(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(ew(n)===zS?Dw(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,S=t.rects.popper,w=new Map,E=!0,C=y[0],k=0;k<y.length;k++){var R=y[k],L=ew(R),O=xw(R)===jS,_=[MS,NS].indexOf(L)>=0,I=_?"width":"height",T=zw(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),P=_?O?qS:AS:O?NS:MS;x[I]>S[I]&&(P=kw(P));var M=kw(P),N=[];if(a&&N.push(T[L]<=0),l&&N.push(T[P]<=0,T[M]<=0),N.every((function(e){return e}))){C=R,E=!1;break}w.set(R,N)}if(E)for(var q=function(e){var t=y.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},A=h?3:1;A>0;A--){if("break"===q(A))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Fw(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 $w(e){return[MS,qS,NS,AS].some((function(t){return e[t]>=0}))}var Bw={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=VS.reduce((function(e,n){return e[n]=function(e,t,n){var r=ew(e),o=[AS,MS].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[AS,qS].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}};var Ww={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=zw(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=ew(t.placement),b=xw(t.placement),y=!b,x=mw(v),S="x"===x?"y":"x",w=t.modifiersData.popperOffsets,E=t.rects.reference,C=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,R="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(w){if(a){var _,I="y"===x?MS:AS,T="y"===x?NS:qS,P="y"===x?"height":"width",M=w[x],N=M+g[I],q=M-g[T],A=f?-C[P]/2:0,z=b===jS?E[P]:C[P],D=b===jS?-C[P]:-E[P],j=t.elements.arrow,F=f&&j?lw(j):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=$[I],W=$[T],H=gw(0,E[P],F[P]),U=y?E[P]/2-A-H-B-R.mainAxis:z-H-B-R.mainAxis,V=y?-E[P]/2+A+H+W+R.mainAxis:D+H+W+R.mainAxis,G=t.elements.arrow&&hw(t.elements.arrow),K=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,Z=null!=(_=null==L?void 0:L[x])?_:0,X=M+V-Z,Q=gw(f?nw(N,M+U-Z-K):N,M,f?tw(q,X):q);w[x]=Q,O[x]=Q-M}if(l){var J,Y="x"===x?MS:AS,ee="x"===x?NS:qS,te=w[S],ne="y"===S?"height":"width",re=te+g[Y],oe=te-g[ee],ae=-1!==[MS,AS].indexOf(v),ie=null!=(J=null==L?void 0:L[S])?J:0,le=ae?re:te-E[ne]-C[ne]-ie+R.altAxis,se=ae?te+E[ne]+C[ne]-ie-R.altAxis:oe,ce=f&&ae?function(e,t,n){var r=gw(e,t,n);return r>n?n:r}(le,te,se):gw(f?le:re,te,f?se:oe);w[S]=ce,O[S]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function Hw(e,t,n){void 0===n&&(n=!1);var r=QS(t),o=QS(t)&&function(e){var t=e.getBoundingClientRect(),n=rw(t.width)/e.offsetWidth||1,r=rw(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=dw(t),i=iw(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==KS(t)||Iw(a))&&(l=function(e){return e!==ZS(e)&&QS(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Ow(e);var t}(t)),QS(t)?((s=iw(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=_w(a))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function Uw(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 Vw={placement:"bottom",modifiers:[],strategy:"absolute"};function Gw(){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 Kw(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Vw:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Vw,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},a,l.options,o),l.scrollParents={reference:XS(e)?Pw(e):e.contextElement?Pw(e.contextElement):[],popper:Pw(t)};var i,c,p=function(e){var t=Uw(e);return GS.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,l.options.modifiers),c=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return l.orderedModifiers=p.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:l,name:t,instance:u,options:r}),i=function(){};s.push(a||i)}})),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(Gw(t,n)){l.rects={reference:Hw(t,hw(n),"fixed"===l.options.strategy),popper:lw(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],a=o.fn,i=o.options,s=void 0===i?{}:i,d=o.name;"function"==typeof a&&(l=a({state:l,options:s,name:d,instance:u})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(l)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),c=!0}};if(!Gw(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 Zw=Kw({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,s=ZS(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,Ew)})),l&&s.addEventListener("resize",n.update,Ew),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Ew)})),l&&s.removeEventListener("resize",n.update,Ew)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Aw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,c={placement:ew(t.placement),variation:xw(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,ww(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ww(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:{}},YS,Bw,jw,Ww,yw,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=zw(t,{elementContext:"reference"}),l=zw(t,{altBoundary:!0}),s=Fw(i,r),c=Fw(l,o,a),u=$w(s),d=$w(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const Xw=U.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,i]=U.useState(null),l=Rv(U.isValidElement(n)?n.ref:null,t);if(pv((()=>{o||i(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),pv((()=>{if(a&&!o)return xv(t,a),()=>{xv(t,null)}}),[t,a,o]),o){if(U.isValidElement(n)){const e={ref:l};return U.cloneElement(n,e)}return cm.jsx(U.Fragment,{children:n})}return cm.jsx(U.Fragment,{children:a?yp.createPortal(n,a):a})}));function Qw(e){return Gg("MuiPopper",e)}Kg("MuiPopper",["root"]);const Jw=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Yw=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function eE(e){return"function"==typeof e?e():e}const tE={},nE=U.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,direction:a,disablePortal:i,modifiers:l,open:s,placement:c,popperOptions:u,popperRef:d,slotProps:p={},slots:f={},TransitionProps:h}=e,m=Rp(e,Jw),g=U.useRef(null),v=Rv(g,t),b=U.useRef(null),y=Rv(b,d),x=U.useRef(y);pv((()=>{x.current=y}),[y]),U.useImperativeHandle(d,(()=>b.current),[]);const S=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(c,a),[w,E]=U.useState(S),[C,k]=U.useState(eE(r));U.useEffect((()=>{b.current&&b.current.forceUpdate()})),U.useEffect((()=>{r&&k(eE(r))}),[r]),pv((()=>{if(!C||!s)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{E(e.placement)}}];null!=l&&(e=e.concat(l)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=Zw(C,g.current,kp({placement:S},u,{modifiers:e}));return x.current(t),()=>{t.destroy(),x.current(null)}}),[C,i,l,s,u,S]);const R={placement:w};null!==h&&(R.TransitionProps=h);const L=(e=>{const{classes:t}=e;return Bv({root:["root"]},Qw,t)})(e),O=null!=(n=f.root)?n:"div",_=Xv({elementType:O,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:L.root});return cm.jsx(O,kp({},_,{children:"function"==typeof o?o(R):o}))})),rE=U.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:a="ltr",disablePortal:i=!1,keepMounted:l=!1,modifiers:s,open:c,placement:u="bottom",popperOptions:d=tE,popperRef:p,style:f,transition:h=!1,slotProps:m={},slots:g={}}=e,v=Rp(e,Yw),[b,y]=U.useState(!0);if(!l&&!c&&(!h||b))return null;let x;if(o)x=o;else if(n){const e=eE(n);x=e&&void 0!==e.nodeType?bv(e).body:bv(null).body}const S=c||!l||h&&!b?void 0:"none",w=h?{in:c,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return cm.jsx(Xw,{disablePortal:i,container:x,children:cm.jsx(nE,kp({anchorEl:n,direction:a,disablePortal:i,modifiers:s,ref:t,open:h?!b:c,placement:u,popperOptions:d,popperRef:p,slotProps:m,slots:g},v,{style:kp({position:"fixed",top:0,left:0,display:S},f),TransitionProps:w,children:r}))})})),oE=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],aE=Gy(rE,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),iE=U.forwardRef((function(e,t){var n;const r=_S(),o=Qy({props:e,name:"MuiPopper"}),{anchorEl:a,component:i,components:l,componentsProps:s,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v,slots:b,slotProps:y}=o,x=Rp(o,oE),S=null!=(n=null==b?void 0:b.root)?n:null==l?void 0:l.Root,w=kp({anchorEl:a,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v},x);return cm.jsx(aE,kp({as:i,direction:null==r?void 0:r.direction,slots:{root:S},slotProps:null!=y?y:s},w,{ref:t}))})),lE=["onChange","maxRows","minRows","style","value"];function sE(e){return parseInt(e,10)||0}const cE={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const uE=U.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:i}=e,l=Rp(e,lE),{current:s}=U.useRef(null!=i),c=U.useRef(null),u=Rv(t,c),d=U.useRef(null),p=U.useRef(null),f=U.useCallback((()=>{const t=c.current,n=yv(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const a=p.current;a.style.width=n.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");const i=n.boxSizing,l=sE(n.paddingBottom)+sE(n.paddingTop),s=sE(n.borderBottomWidth)+sE(n.borderTopWidth),u=a.scrollHeight;a.value="x";const d=a.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===i?l+s:0),overflowing:Math.abs(f-u)<=1}}),[r,o,e.placeholder]),h=U.useCallback((()=>{const e=f();if(null==(t=e)||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=e.outerHeightStyle,r=c.current;d.current!==n&&(d.current=n,r.style.height=`${n}px`),r.style.overflow=e.overflowing?"hidden":""}),[f]);pv((()=>{const e=()=>{h()};const t=gv(e),n=c.current,r=yv(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[f,h]),pv((()=>{h()}));return cm.jsxs(U.Fragment,{children:[cm.jsx("textarea",kp({value:i,onChange:e=>{s||h(),n&&n(e)},ref:u,rows:o,style:a},l)),cm.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:kp({},cE,a,{paddingTop:0,paddingBottom:0})})]})}));function dE({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}const pE=U.createContext(void 0);function fE(){return U.useContext(pE)}function hE(e){return cm.jsx(Ag,kp({},e,{defaultTheme:my,themeId:Cp}))}function mE(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function gE(e){return Gg("MuiInputBase",e)}const vE=Kg("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),bE=["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"],yE=(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${Nm(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},xE=(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]},SE=Gy("div",{name:"MuiInputBase",slot:"Root",overridesResolver:yE})((({theme:e,ownerState:t})=>kp({},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",[`&.${vE.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&kp({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),wE=Gy("input",{name:"MuiInputBase",slot:"Input",overridesResolver:xE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=kp({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return kp({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] + .${vE.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${vE.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"})})),EE=cm.jsx(hE,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),CE=U.forwardRef((function(e,t){var n;const r=Qy({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:l,components:s={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:w,onBlur:E,onChange:C,onClick:k,onFocus:R,onKeyDown:L,onKeyUp:O,placeholder:_,readOnly:I,renderSuffix:T,rows:P,slotProps:M={},slots:N={},startAdornment:q,type:A="text",value:z}=r,D=Rp(r,bE),j=null!=v.value?v.value:z,{current:F}=U.useRef(null!=j),$=U.useRef(),B=U.useCallback((e=>{}),[]),W=Rv($,b,v.ref,B),[H,V]=U.useState(!1),G=fE(),K=dE({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:H,U.useEffect((()=>{!G&&d&&H&&(V(!1),E&&E())}),[G,d,H,E]);const Z=G&&G.onFilled,X=G&&G.onEmpty,Q=U.useCallback((e=>{!function(e,t=!1){return e&&(mE(e.value)&&""!==e.value||t&&mE(e.defaultValue)&&""!==e.defaultValue)}(e)?X&&X():Z&&Z()}),[Z,X]);pv((()=>{F&&Q({value:j})}),[j,Q,F]);U.useEffect((()=>{Q($.current)}),[]);let J=g,Y=v;S&&"input"===J&&(Y=kp(P?{type:void 0,minRows:P,maxRows:P}:{type:void 0,maxRows:y,minRows:x},Y),J=uE);U.useEffect((()=>{G&&G.setAdornedStart(Boolean(q))}),[G,q]);const ee=kp({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:S,size:K.size,startAdornment:q,type:A}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return Bv({root:["root",`color${Nm(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Nm(p)}`,u&&"multiline",f&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]},gE,t)})(ee),ne=N.root||s.Root||SE,re=M.root||c.root||{},oe=N.input||s.Input||wE;return Y=kp({},Y,null!=(n=M.input)?n:c.input),cm.jsxs(U.Fragment,{children:[!p&&EE,cm.jsxs(ne,kp({},re,!Wv(ne)&&{ownerState:kp({},ee,re.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),k&&k(e)}},D,{className:Hg(te.root,re.className,l,I&&"MuiInputBase-readOnly"),children:[q,cm.jsx(pE.Provider,{value:null,children:cm.jsx(oe,kp({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{Q("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:w,placeholder:_,readOnly:I,required:K.required,rows:P,value:j,onKeyDown:L,onKeyUp:O,type:A},Y,!Wv(oe)&&{as:J,ownerState:kp({},ee,Y.ownerState)},{ref:W,className:Hg(te.input,Y.className,I&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!F){const t=e.target||$.current;if(null==t)throw new Error(wp(1));Q({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(R&&R(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):V(!0))}}))}),f,T?T(kp({},K,{startAdornment:q})):null]}))]})}));var kE=CE;function RE(e){return Gg("MuiOutlinedInput",e)}const LE=kp({},vE,Kg("MuiOutlinedInput",["root","notchedOutline","input"])),OE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],_E={entering:{opacity:1},entered:{opacity:1}},IE=U.forwardRef((function(e,t){const n=gy(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:i,easing:l,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=cx}=e,b=Rp(e,OE),y=U.useRef(null),x=Rv(y,i.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},w=S(d),E=S(((e,t)=>{dS(e);const r=pS({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),C=S(u),k=S(h),R=S((e=>{const t=pS({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),L=S(f);return cm.jsx(v,kp({appear:a,in:s,nodeRef:y,onEnter:E,onEntered:C,onEntering:w,onExit:R,onExited:L,onExiting:k,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>U.cloneElement(i,kp({style:kp({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},_E[e],m,i.props.style),ref:x},t))}))}));function TE(e){return Gg("MuiBackdrop",e)}Kg("MuiBackdrop",["root","invisible"]);const PE=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ME=Gy("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>kp({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"}))),NE=U.forwardRef((function(e,t){var n,r,o;const a=Qy({props:e,name:"MuiBackdrop"}),{children:i,className:l,component:s="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=IE,transitionDuration:g}=a,v=Rp(a,PE),b=kp({},a,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Bv({root:["root",n&&"invisible"]},TE,t)})(b),x=null!=(n=f.root)?n:u.root;return cm.jsx(m,kp({in:p,timeout:g},v,{children:cm.jsx(ME,kp({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:Hg(y.root,l,null==x?void 0:x.className),ownerState:kp({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:i}))}))}));function qE(e){return Gg("MuiBadge",e)}const AE=Kg("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"]),zE=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],DE=Gy("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),jE=Gy("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Nm(n.anchorOrigin.vertical)}${Nm(n.anchorOrigin.horizontal)}${Nm(n.overlap)}`],"default"!==n.color&&t[`color${Nm(n.color)}`],n.invisible&&t.invisible]}})((({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n,r;return(null!=(n=e.vars)?n:e).palette[t].main&&(null!=(r=e.vars)?r:e).palette[t].contrastText})).map((t=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${AE.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${AE.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${AE.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${AE.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${AE.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${AE.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${AE.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${AE.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}})),FE=U.forwardRef((function(e,t){var n,r,o,a,i,l;const s=Qy({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=Rp(s,zE),{badgeContent:k,invisible:R,max:L,displayValue:O}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=$v({badgeContent:t,max:r});let i=n;!1!==n||0!==t||o||(i=!0);const{badgeContent:l,max:s=r}=i?a:e;return{badgeContent:l,invisible:i,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:b,invisible:v,badgeContent:y,showZero:w}),_=$v({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:y}),I=R||null==k&&"dot"!==E,{color:T=g,overlap:P=m,anchorOrigin:M=c,variant:N=E}=I?_:s,q="dot"!==N?O:void 0,A=kp({},s,{badgeContent:k,invisible:I,max:L,displayValue:q,showZero:w,anchorOrigin:M,color:T,overlap:P,variant:N}),z=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return Bv({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${Nm(n.vertical)}${Nm(n.horizontal)}`,`anchorOrigin${Nm(n.vertical)}${Nm(n.horizontal)}${Nm(o)}`,`overlap${Nm(o)}`,"default"!==t&&`color${Nm(t)}`]},qE,i)})(A),D=null!=(n=null!=(r=null==x?void 0:x.root)?r:p.Root)?n:DE,j=null!=(o=null!=(a=null==x?void 0:x.badge)?a:p.Badge)?o:jE,F=null!=(i=null==S?void 0:S.root)?i:f.root,$=null!=(l=null==S?void 0:S.badge)?l:f.badge,B=Xv({elementType:D,externalSlotProps:F,externalForwardedProps:C,additionalProps:{ref:t,as:d},ownerState:A,className:Hg(null==F?void 0:F.className,z.root,u)}),W=Xv({elementType:j,externalSlotProps:$,ownerState:A,className:Hg(z.badge,null==$?void 0:$.className)});return cm.jsxs(D,kp({},B,{children:[h,cm.jsx(j,kp({},W,{children:q}))]}))})),$E=Kg("MuiBox",["root"]),BE=hy(),WE=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=fm("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Og),i=U.forwardRef((function(e,i){const l=qg(n),s=jg(e),{className:c,component:u="div"}=s,d=vm(s,Ug);return cm.jsx(a,gm({as:u,ref:i,className:Hg(c,o?o(r):r),theme:t&&l[t]||l},d))}));return i}({themeId:Cp,defaultTheme:BE,defaultClassName:$E.root,generateClassName:Bg.generate});function HE(e){return Gg("PrivateSwitchBase",e)}Kg("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const UE=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],VE=Gy(Nx)((({ownerState:e})=>kp({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),GE=Gy("input",{shouldForwardProp:Vy})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),KE=U.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:a,defaultChecked:i,disabled:l,disableFocusRipple:s=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:v,readOnly:b,required:y=!1,tabIndex:x,type:S,value:w}=e,E=Rp(e,UE),[C,k]=Cv({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),R=fE();let L=l;R&&void 0===L&&(L=R.disabled);const O="checkbox"===S||"radio"===S,_=kp({},e,{checked:C,disabled:L,disableFocusRipple:s,edge:c}),I=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return Bv({root:["root",n&&"checked",r&&"disabled",o&&`edge${Nm(o)}`],input:["input"]},HE,t)})(_);return cm.jsxs(VE,kp({component:"span",className:Hg(I.root,a),centerRipple:!0,focusRipple:!s,disabled:L,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),R&&R.onFocus&&R.onFocus(e)},onBlur:e=>{m&&m(e),R&&R.onBlur&&R.onBlur(e)},ownerState:_,ref:t},E,{children:[cm.jsx(GE,kp({autoFocus:n,checked:r,defaultChecked:i,className:I.input,disabled:L,id:O?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),g&&g(e,t)},readOnly:b,ref:f,required:y,ownerState:_,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),C?o:u]}))}));var ZE=sS(cm.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"),XE=sS(cm.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"),QE=sS(cm.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 JE(e){return Gg("MuiCheckbox",e)}const YE=Kg("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),eC=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],tC=Gy(KE,{shouldForwardProp:e=>Vy(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Nm(n.size)}`],"default"!==n.color&&t[`color${Nm(n.color)}`]]}})((({theme:e,ownerState:t})=>kp({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})`:Cb("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${YE.checked}, &.${YE.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${YE.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),nC=cm.jsx(XE,{}),rC=cm.jsx(ZE,{}),oC=cm.jsx(QE,{}),aC=U.forwardRef((function(e,t){var n,r;const o=Qy({props:e,name:"MuiCheckbox"}),{checkedIcon:a=nC,color:i="primary",icon:l=rC,indeterminate:s=!1,indeterminateIcon:c=oC,inputProps:u,size:d="medium",className:p}=o,f=Rp(o,eC),h=s?c:l,m=s?c:a,g=kp({},o,{color:i,indeterminate:s,size:d}),v=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e;return kp({},t,Bv({root:["root",n&&"indeterminate",`color${Nm(r)}`,`size${Nm(o)}`]},JE,t))})(g);return cm.jsx(tC,kp({type:"checkbox",inputProps:kp({"data-indeterminate":s},u),icon:U.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:U.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:Hg(v.root,p)},f,{classes:v}))}));function iC(e){return Gg("MuiCircularProgress",e)}Kg("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const lC=["className","color","disableShrink","size","style","thickness","value","variant"];let sC,cC,uC,dC,pC=e=>e;const fC=44,hC=Ah(sC||(sC=pC`
|
|
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
|
+
`)),mC=Ah(cC||(cC=pC`
|
|
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
|
+
`)),gC=Gy("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Nm(n.color)}`]]}})((({ownerState:e,theme:t})=>kp({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&&qh(uC||(uC=pC`
|
|
130
130
|
animation: ${0} 1.4s linear infinite;
|
|
131
|
-
`),
|
|
131
|
+
`),hC))),vC=Gy("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),bC=Gy("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Nm(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>kp({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&&qh(dC||(dC=pC`
|
|
132
132
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
133
|
-
`),CC))),OC=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:a=!1,size:i=40,style:l,thickness:s=3.6,value:c=0,variant:u="indeterminate"}=n,d=Rp(n,gC),p=kp({},n,{color:o,disableShrink:a,size:i,thickness:s,value:c,variant:u}),f=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return zv({root:["root",n,`color${Om(r)}`],svg:["svg"],circle:["circle",`circle${Om(n)}`,o&&"circleDisableShrink"]},mC,t)})(p),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((wC-s)/2);h.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(c),h.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return rm.jsx(kC,kp({className:Ag(f.root,r),style:kp({width:i,height:i},m,l),ownerState:p,ref:t,role:"progressbar"},g,d,{children:rm.jsx(RC,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:rm.jsx(LC,{className:f.circle,style:h,ownerState:p,cx:wC,cy:wC,r:(wC-s)/2,fill:"none",strokeWidth:s})})}))}));function _C(e){return Bg("MuiModal",e)}$g("MuiModal",["root","hidden","backdrop"]);const IC=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],TC=Ty("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})=>kp({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),PC=Ty($E,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),MC=U.forwardRef((function(e,t){var n,r,o,a,i,l;const s=ey({name:"MuiModal",props:e}),{BackdropComponent:c=PC,BackdropProps:u,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:E=!1,hideBackdrop:C=!1,keepMounted:k=!1,onBackdropClick:R,open:L,slotProps:O,slots:_}=s,I=Rp(s,IC),T=kp({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:w,disableScrollLock:E,hideBackdrop:C,keepMounted:k}),{getRootProps:P,getBackdropProps:M,getTransitionProps:N,portalRef:q,isTopModal:z,exited:D,hasTransition:A}=NS(kp({},T,{rootRef:t})),j=kp({},T,{exited:D}),F=(e=>{const{open:t,exited:n,classes:r}=e;return zv({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},_C,r)})(j),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),A){const{onEnter:e,onExited:t}=N();B.onEnter=e,B.onExited=t}const $=null!=(n=null!=(r=null==_?void 0:_.root)?r:g.Root)?n:TC,W=null!=(o=null!=(a=null==_?void 0:_.backdrop)?a:g.Backdrop)?o:c,H=null!=(i=null==O?void 0:O.root)?i:v.root,V=null!=(l=null==O?void 0:O.backdrop)?l:v.backdrop,G=cS({elementType:$,externalSlotProps:H,externalForwardedProps:I,getSlotProps:P,additionalProps:{ref:t,as:m},ownerState:j,className:Ag(d,null==H?void 0:H.className,null==F?void 0:F.root,!j.open&&j.exited&&(null==F?void 0:F.hidden))}),K=cS({elementType:W,externalSlotProps:V,additionalProps:u,getSlotProps:e=>M(kp({},e,{onClick:t=>{R&&R(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Ag(null==V?void 0:V.className,null==u?void 0:u.className,null==F?void 0:F.backdrop),ownerState:j});return k||L||A&&!D?rm.jsx(LS,{ref:q,container:h,disablePortal:S,children:rm.jsxs($,kp({},G,{children:[!C&&c?rm.jsx(W,kp({},K)):null,rm.jsx(RS,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:w,isEnabled:z,open:L,children:U.cloneElement(f,B)})]}))}):null}));function NC(e){return Bg("MuiDivider",e)}const qC=$g("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),zC=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],DC=Ty("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})=>kp({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)`:lb(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})=>kp({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>kp({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>kp({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>kp({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),AC=Ty("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>kp({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)`}))),jC=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:a,component:i=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:c="horizontal",role:u=("hr"!==i?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Rp(n,zC),h=kp({},n,{absolute:r,component:i,flexItem:l,light:s,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:l,variant:s}=e;return zv({root:["root",t&&"absolute",s,a&&"light","vertical"===i&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===i&&"withChildrenVertical","right"===l&&"vertical"!==i&&"textAlignRight","left"===l&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]},NC,r)})(h);return rm.jsx(DC,kp({as:i,className:Ag(m.root,a),role:u,ref:t,ownerState:h},f,{children:o?rm.jsx(AC,{className:m.wrapper,ownerState:h,children:o}):null}))}));jC.muiSkipListHighlight=!0;const FC=function(e={}){const{createStyledComponent:t=Zv,useThemeProps:n=Xv,componentName:r="MuiStack"}=e,o=t(Jv),a=U.forwardRef((function(e,t){const a=Mg(n(e)),{component:i="div",direction:l="column",spacing:s=0,divider:c,children:u,className:d,useFlexGap:p=!1}=a,f=dm(a,Gv),h={direction:l,spacing:s,useFlexGap:p},m=zv({root:["root"]},(e=>Bg(r,e)),{});return rm.jsx(o,um({as:i,ownerState:h,ref:t,className:Ag(m.root,d)},f,{children:c?Qv(u,c):u}))}));return a}({createStyledComponent:Ty("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ey({props:e,name:"MuiStack"})});function BC(e){return Bg("MuiFormControlLabel",e)}const $C=$g("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),WC=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],HC=Ty("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$C.label}`]:t.label},t.root,t[`labelPlacement${Om(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>kp({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${$C.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},{[`& .${$C.label}`]:{[`&.${$C.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),UC=Ty("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${$C.error}`]:{color:(e.vars||e).palette.error.main}}))),VC=U.forwardRef((function(e,t){var n,r;const o=ey({props:e,name:"MuiFormControlLabel"}),{className:a,componentsProps:i={},control:l,disabled:s,disableTypography:c,label:u,labelPlacement:d="end",required:p,slotProps:f={}}=o,h=Rp(o,WC),m=SE(),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=yE({props:o,muiFormControl:m,states:["error"]}),x=kp({},o,{disabled:g,labelPlacement:d,required:v,error:y.error}),S=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e;return zv({root:["root",n&&"disabled",`labelPlacement${Om(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},BC,t)})(x),w=null!=(r=f.typography)?r:i.typography;let E=u;return null==E||E.type===xS||c||(E=rm.jsx(xS,kp({component:"span"},w,{className:Ag(S.label,null==w?void 0:w.className),children:E}))),rm.jsxs(HC,kp({className:Ag(S.root,a),ownerState:x,ref:t},h,{children:[U.cloneElement(l,b),v?rm.jsxs(FC,{display:"block",children:[E,rm.jsxs(UC,{ownerState:x,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):E]}))})),GC=U.createContext();function KC(e){return Bg("MuiGrid",e)}const ZC=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],XC=$g("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}`)),...ZC.map((e=>`grid-xs-${e}`)),...ZC.map((e=>`grid-sm-${e}`)),...ZC.map((e=>`grid-md-${e}`)),...ZC.map((e=>`grid-lg-${e}`)),...ZC.map((e=>`grid-xl-${e}`))]),QC=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function JC(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function YC({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 ek=Ty("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:l,zeroMinWidth:s,breakpoints:c}=n;let u=[];r&&(u=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&r.push(n[`spacing-${t}-${String(o)}`])})),r}(i,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,a&&t.item,s&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==l&&t[`wrap-xs-${String(l)}`],...d]}})((({ownerState:e})=>kp({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 Cm({theme:e},Lm({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${XC.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=Lm({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=YC({breakpoints:e.breakpoints.values,values:t})),o=Cm({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${JC(a)}`,[`& > .${XC.item}`]:{paddingTop:JC(a)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${XC.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=Lm({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=YC({breakpoints:e.breakpoints.values,values:t})),o=Cm({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${JC(a)})`,marginLeft:`-${JC(a)}`,[`& > .${XC.item}`]:{paddingLeft:JC(a)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${XC.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Lm({values:t.columns,breakpoints:e.breakpoints.values}),l="object"==typeof i?i[o]:i;if(null==l)return r;const s=Math.round(n/l*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${s} + ${JC(n)})`;c={flexBasis:e,maxWidth:e}}}a=kp({flexBasis:s,flexGrow:0,maxWidth:s},c)}return 0===e.breakpoints.values[o]?Object.assign(r,a):r[e.breakpoints.up(o)]=a,r}),{})}));const tk=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:l,breakpoints:s}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(a,s));const u=[];s.forEach((t=>{const n=e[t];n&&u.push(`grid-${t}-${String(n)}`)}));return zv({root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...u]},KC,t)},nk=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiGrid"}),{breakpoints:r}=Yb(),o=Mg(n),{className:a,columns:i,columnSpacing:l,component:s="div",container:c=!1,direction:u="row",item:d=!1,rowSpacing:p,spacing:f=0,wrap:h="wrap",zeroMinWidth:m=!1}=o,g=Rp(o,QC),v=p||f,b=l||f,y=U.useContext(GC),x=c?i||12:y,S={},w=kp({},g);r.keys.forEach((e=>{null!=g[e]&&(S[e]=g[e],delete w[e])}));const E=kp({},o,{columns:x,container:c,direction:u,item:d,rowSpacing:v,columnSpacing:b,wrap:h,zeroMinWidth:m,spacing:f},S,{breakpoints:r.keys}),C=tk(E);return rm.jsx(GC.Provider,{value:x,children:rm.jsx(ek,kp({ownerState:E,className:Ag(C.root,a),as:s,ref:t},w))})})),rk=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ok(e){return`scale(${e}, ${e**2})`}const ak={entering:{opacity:1,transform:ok(1)},entered:{opacity:1,transform:"none"}},ik="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),lk=U.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:a,in:i,onEnter:l,onEntered:s,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Vy}=e,g=Rp(e,rk),v=Cv(),b=U.useRef(),y=Yb(),x=U.useRef(null),S=xv(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)=>{Kx(e);const{duration:n,delay:r,easing:o}=Zx({style:f,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=n,e.style.transition=[y.transitions.create("opacity",{duration:i,delay:r}),y.transitions.create("transform",{duration:ik?i:.666*i,delay:r,easing:o})].join(","),l&&l(e,t)})),k=w(s),R=w(p),L=w((e=>{const{duration:t,delay:n,easing:r}=Zx({style:f,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:ik?o:.666*o,delay:ik?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=ok(.75),u&&u(e)})),O=w(d);return rm.jsx(m,kp({appear:r,in:i,nodeRef:x,onEnter:C,onEntered:k,onEntering:E,onExit:L,onExited:O,onExiting:R,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>U.cloneElement(o,kp({style:kp({opacity:0,transform:ok(.75),visibility:"exited"!==e||i?void 0:"hidden"},ak[e],f,o.props.style),ref:S},t))}))}));function sk(e){return Bg("MuiIcon",e)}lk.muiSupportAuto=!0,$g("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ck=["baseClassName","className","color","component","fontSize"],uk=Ty("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Om(n.color)}`],t[`fontSize${Om(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]}))),dk=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:a="inherit",component:i="span",fontSize:l="medium"}=n,s=Rp(n,ck),c=kp({},n,{baseClassName:r,color:a,component:i,fontSize:l}),u=(e=>{const{color:t,fontSize:n,classes:r}=e;return zv({root:["root","inherit"!==t&&`color${Om(t)}`,`fontSize${Om(n)}`]},sk,r)})(c);return rm.jsx(uk,kp({as:i,className:Ag(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t},s))}));function pk(e){return Bg("MuiInputAdornment",e)}dk.muiName="Icon";const fk=$g("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var hk;const mk=["children","className","component","disablePointerEvents","disableTypography","position","variant"],gk=Ty("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Om(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>kp({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${fk.positionStart}&:not(.${fk.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),vk=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:i=!1,disableTypography:l=!1,position:s,variant:c}=n,u=Rp(n,mk),d=SE()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f=kp({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:i,position:s,variant:p}),h=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e;return zv({root:["root",n&&"disablePointerEvents",o&&`position${Om(o)}`,i,r&&"hiddenLabel",a&&`size${Om(a)}`]},pk,t)})(f);return rm.jsx(xE.Provider,{value:null,children:rm.jsx(gk,kp({as:a,ownerState:f,className:Ag(h.root,o),ref:t},u,{children:"string"!=typeof r||l?rm.jsxs(U.Fragment,{children:["start"===s?hk||(hk=rm.jsx("span",{className:"notranslate",children:""})):null,r]}):rm.jsx(xS,{color:"text.secondary",children:r})}))})})),bk=U.createContext({});function yk(e){return Bg("MuiList",e)}$g("MuiList",["root","padding","dense","subheader"]);const xk=["children","className","component","dense","disablePadding","subheader"],Sk=Ty("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})=>kp({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),wk=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:s}=n,c=Rp(n,xk),u=U.useMemo((()=>({dense:i})),[i]),d=kp({},n,{component:a,dense:i,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return zv({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},yk,t)})(d);return rm.jsx(bk.Provider,{value:u,children:rm.jsxs(Sk,kp({as:a,className:Ag(p.root,o),ref:t,ownerState:d},c,{children:[s,r]}))})}));function Ek(e){return Bg("MuiListItem",e)}const Ck=$g("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),kk=$g("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Rk(e){return Bg("MuiListItemSecondaryAction",e)}$g("MuiListItemSecondaryAction",["root","disableGutters"]);const Lk=["className"],Ok=Ty("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>kp({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),_k=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Rp(n,Lk),a=kp({},n,{disableGutters:U.useContext(bk).disableGutters}),i=(e=>{const{disableGutters:t,classes:n}=e;return zv({root:["root",t&&"disableGutters"]},Rk,n)})(a);return rm.jsx(Ok,kp({className:Ag(i.root,r),ownerState:a,ref:t},o))}));_k.muiName="ListItemSecondaryAction";const Ik=["className"],Tk=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Pk=Ty("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})=>kp({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&kp({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${kk.root}`]:{paddingRight:48}},{[`&.${Ck.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ck.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lb(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ck.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lb(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ck.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"}},[`&.${Ck.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:lb(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})`:lb(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),Mk=Ty("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Nk=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:a=!1,children:i,className:l,component:s,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:v=!1,focusVisibleClassName:b,secondaryAction:y,selected:x=!1,slotProps:S={},slots:w={}}=n,E=Rp(n.ContainerProps,Ik),C=Rp(n,Tk),k=U.useContext(bk),R=U.useMemo((()=>({dense:f||k.dense||!1,alignItems:r,disableGutters:m})),[r,k.dense,f,m]),L=U.useRef(null);iv((()=>{o&&L.current&&L.current.focus()}),[o]);const O=U.Children.toArray(i),_=O.length&&dv(O[O.length-1],["ListItemSecondaryAction"]),I=kp({},n,{alignItems:r,autoFocus:o,button:a,dense:R.dense,disabled:h,disableGutters:m,disablePadding:g,divider:v,hasSecondaryAction:_,selected:x}),T=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:l,divider:s,hasSecondaryAction:c,selected:u}=e;return zv({root:["root",o&&"dense",!i&&"gutters",!l&&"padding",s&&"divider",a&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},Ek,r)})(I),P=xv(L,t),M=w.root||c.Root||Pk,N=S.root||u.root||{},q=kp({className:Ag(T.root,N.className,l),disabled:h},C);let z=s||"li";return a&&(q.component=s||"div",q.focusVisibleClassName=Ag(Ck.focusVisible,b),z=vx),_?(z=q.component||s?z:"div","li"===d&&("li"===z?z="div":"li"===q.component&&(q.component="div")),rm.jsx(bk.Provider,{value:R,children:rm.jsxs(Mk,kp({as:d,className:Ag(T.container,p),ref:P,ownerState:I},E,{children:[rm.jsx(M,kp({},N,!tS(M)&&{as:z,ownerState:kp({},I,N.ownerState)},q,{children:O})),O.pop()]}))})):rm.jsx(bk.Provider,{value:R,children:rm.jsxs(M,kp({},N,{as:z,ref:P},!tS(M)&&{ownerState:kp({},I,N.ownerState)},q,{children:[O,y&&rm.jsx(_k,{children:y})]}))})}));function qk(e){return Bg("MuiListItemIcon",e)}const zk=$g("MuiListItemIcon",["root","alignItemsFlexStart"]),Dk=["className"],Ak=Ty("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})=>kp({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),jk=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Rp(n,Dk),a=kp({},n,{alignItems:U.useContext(bk).alignItems}),i=(e=>{const{alignItems:t,classes:n}=e;return zv({root:["root","flex-start"===t&&"alignItemsFlexStart"]},qk,n)})(a);return rm.jsx(Ak,kp({className:Ag(i.root,r),ownerState:a,ref:t},o))})),Fk=$g("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Bk=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function $k(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Wk(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Hk(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 Uk(e,t,n,r,o,a){let i=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Hk(l,a)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const Vk=U.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:i,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=Rp(e,Bk),p=U.useRef(null),f=U.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});iv((()=>{r&&p.current.focus()}),[r]),U.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Nv(pv(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=xv(p,t);let m=-1;U.Children.forEach(a,((e,t)=>{U.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=a.length&&(m=-1))):m===t&&(m+=1,m>=a.length&&(m=-1))}));const g=U.Children.map(a,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),U.cloneElement(e,t)}return e}));return rm.jsx(wk,kp({role:"menu",ref:h,className:i,onKeyDown:e=>{const t=p.current,n=e.key,r=pv(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Uk(t,r,s,l,$k);else if("ArrowUp"===n)e.preventDefault(),Uk(t,r,s,l,Wk);else if("Home"===n)e.preventDefault(),Uk(t,null,s,l,$k);else if("End"===n)e.preventDefault(),Uk(t,null,s,l,Wk);else if(1===n.length){const o=f.current,a=n.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const s=r&&!o.repeating&&Hk(r,o);o.previousKeyMatched&&(s||Uk(t,r,!1,l,$k,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:g}))}));function Gk(e){return Bg("MuiPopover",e)}$g("MuiPopover",["root","paper"]);const Kk=["onEntering"],Zk=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Xk=["slotProps"];function Qk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Jk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Yk(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function eR(e){return"function"==typeof e?e():e}const tR=Ty(MC,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nR=Ty(Yx,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),rR=U.forwardRef((function(e,t){var n,r,o;const a=ey({props:e,name:"MuiPopover"}),{action:i,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=lk,transitionDuration:w="auto",TransitionProps:{onEntering:E}={},disableScrollLock:C=!1}=a,k=Rp(a.TransitionProps,Kk),R=Rp(a,Zk),L=null!=(n=null==y?void 0:y.paper)?n:v,O=U.useRef(),_=xv(O,L.ref),I=kp({},a,{anchorOrigin:s,anchorReference:u,elevation:h,marginThreshold:m,externalPaperSlotProps:L,transformOrigin:x,TransitionComponent:S,transitionDuration:w,TransitionProps:k}),T=(e=>{const{classes:t}=e;return zv({root:["root"],paper:["paper"]},Gk,t)})(I),P=U.useCallback((()=>{if("anchorPosition"===u)return c;const e=eR(l),t=(e&&1===e.nodeType?e:pv(O.current).body).getBoundingClientRect();return{top:t.top+Qk(t,s.vertical),left:t.left+Jk(t,s.horizontal)}}),[l,s.horizontal,s.vertical,c,u]),M=U.useCallback((e=>({vertical:Qk(e,x.vertical),horizontal:Jk(e,x.horizontal)})),[x.horizontal,x.vertical]),N=U.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=M(t);if("none"===u)return{top:null,left:null,transformOrigin:Yk(n)};const r=P();let o=r.top-n.vertical,a=r.left-n.horizontal;const i=o+t.height,s=a+t.width,c=fv(eR(l)),d=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&i>d){const e=i-d;o-=e,n.vertical+=e}if(null!==m&&a<m){const e=a-m;a-=e,n.horizontal+=e}else if(s>p){const e=s-p;a-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(a)}px`,transformOrigin:Yk(n)}}),[l,u,P,M,m]),[q,z]=U.useState(g),D=U.useCallback((()=>{const e=O.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,z(!0)}),[N]);U.useEffect((()=>(C&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D))),[l,C,D]);U.useEffect((()=>{g&&D()})),U.useImperativeHandle(i,(()=>g?{updatePosition:()=>{D()}}:null),[g,D]),U.useEffect((()=>{if(!g)return;const e=uv((()=>{D()})),t=fv(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,D]);let A=w;"auto"!==w||S.muiSupportAuto||(A=void 0);const j=f||(l?pv(eR(l)).body:void 0),F=null!=(r=null==b?void 0:b.root)?r:tR,B=null!=(o=null==b?void 0:b.paper)?o:nR,$=cS({elementType:B,externalSlotProps:kp({},L,{style:q?L.style:kp({},L.style,{opacity:0})}),additionalProps:{elevation:h,ref:_},ownerState:I,className:Ag(T.paper,null==L?void 0:L.className)}),W=cS({elementType:F,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:R,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:I,className:Ag(T.root,p)}),{slotProps:H}=W,V=Rp(W,Xk);return rm.jsx(F,kp({},V,!tS(F)&&{slotProps:H,disableScrollLock:C},{children:rm.jsx(S,kp({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),D()},onExited:()=>{z(!1)},timeout:A},k,{children:rm.jsx(B,kp({},$,{children:d}))}))}))}));function oR(e){return Bg("MuiMenuItem",e)}const aR=$g("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),iR=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],lR=Ty(vx,{shouldForwardProp:e=>Iy(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})=>kp({},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"}},[`&.${aR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lb(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${aR.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lb(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${aR.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:lb(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})`:lb(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${aR.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${aR.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${qC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${qC.inset}`]:{marginLeft:52},[`& .${Fk.root}`]:{marginTop:0,marginBottom:0},[`& .${Fk.inset}`]:{paddingLeft:36},[`& .${zk.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&kp({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${zk.root} svg`]:{fontSize:"1.25rem"}})))),sR=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:a=!1,divider:i=!1,disableGutters:l=!1,focusVisibleClassName:s,role:c="menuitem",tabIndex:u,className:d}=n,p=Rp(n,iR),f=U.useContext(bk),h=U.useMemo((()=>({dense:a||f.dense||!1,disableGutters:l})),[f.dense,a,l]),m=U.useRef(null);iv((()=>{r&&m.current&&m.current.focus()}),[r]);const g=kp({},n,{dense:h.dense,divider:i,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e;return kp({},i,zv({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},oR,i))})(n),b=xv(m,t);let y;return n.disabled||(y=void 0!==u?u:-1),rm.jsx(bk.Provider,{value:h,children:rm.jsx(lR,kp({ref:b,role:c,tabIndex:y,component:o,focusVisibleClassName:Ag(v.focusVisible,s),className:Ag(v.root,d)},p,{ownerState:g,classes:v}))})}));var cR;const uR=["children","classes","className","label","notched"],dR=Ty("fieldset",{shouldForwardProp:Iy})({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%"}),pR=Ty("legend",{shouldForwardProp:Iy})((({ownerState:e,theme:t})=>kp({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&&kp({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 fR=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],hR=Ty(_E,{shouldForwardProp:e=>Iy(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:LE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return kp({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${qE.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${qE.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${qE.focused} .${qE.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${qE.error} .${qE.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${qE.disabled} .${qE.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&kp({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),mR=Ty((function(e){const{className:t,label:n,notched:r}=e,o=Rp(e,uR),a=null!=n&&""!==n,i=kp({},e,{notched:r,withLabel:a});return rm.jsx(dR,kp({"aria-hidden":!0,className:t,ownerState:i},o,{children:rm.jsx(pR,{ownerState:i,children:a?rm.jsx("span",{children:n}):cR||(cR=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}})),gR=Ty(IE,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:OE})((({theme:e,ownerState:t})=>kp({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}))),vR=U.forwardRef((function(e,t){var n,r,o,a,i;const l=ey({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=Rp(l,fR),v=(e=>{const{classes:t}=e;return kp({},t,zv({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},NE,t))})(l),b=SE(),y=yE({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=kp({},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:hR,w=null!=(o=null!=(a=h.input)?a:s.Input)?o:gR;return rm.jsx(ME,kp({slots:{root:S,input:w},renderSuffix:e=>rm.jsx(mR,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?i||(i=rm.jsxs(U.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:u,multiline:p,ref:t,type:m},g,{classes:kp({},v,{notchedOutline:null})}))}));vR.muiName="Input";var bR=Ux(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"),yR=Ux(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 xR=Ty("span",{shouldForwardProp:Iy})({position:"relative",display:"flex"}),SR=Ty(bR)({transform:"scale(1)"}),wR=Ty(yR)((({theme:e,ownerState:t})=>kp({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 ER(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=kp({},e,{checked:t});return rm.jsxs(xR,{className:n.root,ownerState:o,children:[rm.jsx(SR,{fontSize:r,className:n.background,ownerState:o}),rm.jsx(wR,{fontSize:r,className:n.dot,ownerState:o})]})}const CR=U.createContext(void 0);function kR(e){return Bg("MuiRadio",e)}const RR=$g("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),LR=["checked","checkedIcon","color","icon","name","onChange","size","className"],OR=Ty(rC,{shouldForwardProp:e=>Iy(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${Om(n.size)}`],t[`color${Om(n.color)}`]]}})((({theme:e,ownerState:t})=>kp({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})`:lb("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${RR.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${RR.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const _R=rm.jsx(ER,{checked:!0}),IR=rm.jsx(ER,{}),TR=U.forwardRef((function(e,t){var n,r;const o=ey({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:i=_R,color:l="primary",icon:s=IR,name:c,onChange:u,size:d="medium",className:p}=o,f=Rp(o,LR),h=kp({},o,{color:l,size:d}),m=(e=>{const{classes:t,color:n,size:r}=e;return kp({},t,zv({root:["root",`color${Om(n)}`,"medium"!==r&&`size${Om(r)}`]},kR,t))})(h),g=U.useContext(CR);let v=a;const b=cv(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(OR,kp({type:"radio",icon:U.cloneElement(s,{fontSize:null!=(n=IR.props.fontSize)?n:d}),checkedIcon:U.cloneElement(i,{fontSize:null!=(r=_R.props.fontSize)?r:d}),ownerState:h,classes:m,name:y,checked:v,onChange:b,ref:t,className:Ag(m.root,p)},f))}));function PR(e){return Bg("MuiTooltip",e)}const MR=$g("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),NR=["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 qR=Ty(bE,{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})=>kp({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${MR.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${MR.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${MR.arrow}`]:kp({},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"] .${MR.arrow}`]:kp({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),zR=Ty("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${Om(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return kp({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:lb(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},{[`.${MR.popper}[data-popper-placement*="left"] &`]:kp({transformOrigin:"right center"},t.isRtl?kp({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):kp({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${MR.popper}[data-popper-placement*="right"] &`]:kp({transformOrigin:"left center"},t.isRtl?kp({marginRight:"14px"},t.touch&&{marginRight:"24px"}):kp({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${MR.popper}[data-popper-placement*="top"] &`]:kp({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${MR.popper}[data-popper-placement*="bottom"] &`]:kp({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),DR=Ty("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:lb(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let AR=!1;const jR=new Ev;let FR={x:0,y:0};function BR(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const $R=U.forwardRef((function(e,t){var n,r,o,a,i,l,s,c,u,d,p,f,h,m,g,v,b,y,x;const S=ey({props:e,name:"MuiTooltip"}),{arrow:w=!1,children:E,components:C={},componentsProps:k={},describeChild:R=!1,disableFocusListener:L=!1,disableHoverListener:O=!1,disableInteractive:_=!1,disableTouchListener:I=!1,enterDelay:T=100,enterNextDelay:P=0,enterTouchDelay:M=700,followCursor:N=!1,id:q,leaveDelay:z=0,leaveTouchDelay:D=1500,onClose:A,onOpen:j,open:F,placement:B="bottom",PopperComponent:$,PopperProps:W={},slotProps:H={},slots:V={},title:G,TransitionComponent:K=lk,TransitionProps:Z}=S,X=Rp(S,NR),Q=U.isValidElement(E)?E:rm.jsx("span",{children:E}),J=Yb(),Y=(()=>{const e=U.useContext($v);return null!=e&&e})(),[ee,te]=U.useState(),[ne,re]=U.useState(null),oe=U.useRef(!1),ae=_||N,ie=Cv(),le=Cv(),se=Cv(),ce=Cv(),[ue,de]=bv({controlled:F,default:!1,name:"Tooltip",state:"open"});let pe=ue;const fe=vv(q),he=U.useRef(),me=yv((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ce.clear()}));U.useEffect((()=>me),[me]);const ge=e=>{jR.clear(),AR=!0,de(!0),j&&!pe&&j(e)},ve=yv((e=>{jR.start(800+z,(()=>{AR=!1})),de(!1),A&&pe&&A(e),ie.start(J.transitions.duration.shortest,(()=>{oe.current=!1}))})),be=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),le.clear(),se.clear(),T||AR&&P?le.start(AR?P:T,(()=>{ge(e)})):ge(e))},ye=e=>{le.clear(),se.start(z,(()=>{ve(e)}))},{isFocusVisibleRef:xe,onBlur:Se,onFocus:we,ref:Ee}=Mv(),[,Ce]=U.useState(!1),ke=e=>{Se(e),!1===xe.current&&(Ce(!1),ye(e))},Re=e=>{ee||te(e.currentTarget),we(e),!0===xe.current&&(Ce(!0),be(e))},Le=e=>{oe.current=!0;const t=Q.props;t.onTouchStart&&t.onTouchStart(e)},Oe=e=>{Le(e),se.clear(),ie.clear(),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(M,(()=>{document.body.style.WebkitUserSelect=he.current,be(e)}))},_e=e=>{Q.props.onTouchEnd&&Q.props.onTouchEnd(e),me(),se.start(D,(()=>{ve(e)}))};U.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}}),[ve,pe]);const Ie=xv(Q.ref,Ee,te,t);G||0===G||(pe=!1);const Te=U.useRef(),Pe={},Me="string"==typeof G;R?(Pe.title=pe||!Me||O?null:G,Pe["aria-describedby"]=pe?fe:null):(Pe["aria-label"]=Me?G:null,Pe["aria-labelledby"]=pe&&!Me?fe:null);const Ne=kp({},Pe,X,Q.props,{className:Ag(X.className,Q.props.className),onTouchStart:Le,ref:Ie},N?{onMouseMove:e=>{const t=Q.props;t.onMouseMove&&t.onMouseMove(e),FR={x:e.clientX,y:e.clientY},Te.current&&Te.current.update()}}:{}),qe={};I||(Ne.onTouchStart=Oe,Ne.onTouchEnd=_e),O||(Ne.onMouseOver=BR(be,Ne.onMouseOver),Ne.onMouseLeave=BR(ye,Ne.onMouseLeave),ae||(qe.onMouseOver=be,qe.onMouseLeave=ye)),L||(Ne.onFocus=BR(Re,Ne.onFocus),Ne.onBlur=BR(ke,Ne.onBlur),ae||(qe.onFocus=Re,qe.onBlur=ke));const ze=U.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=W.popperOptions)&&e.modifiers&&(t=t.concat(W.popperOptions.modifiers)),kp({},W.popperOptions,{modifiers:t})}),[ne,W]),De=kp({},S,{isRtl:Y,arrow:w,disableInteractive:ae,placement:B,PopperComponentProp:$,touch:oe.current}),Ae=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e;return zv({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Om(a.split("-")[0])}`],arrow:["arrow"]},PR,t)})(De),je=null!=(n=null!=(r=V.popper)?r:C.Popper)?n:qR,Fe=null!=(o=null!=(a=null!=(i=V.transition)?i:C.Transition)?a:K)?o:lk,Be=null!=(l=null!=(s=V.tooltip)?s:C.Tooltip)?l:zR,$e=null!=(c=null!=(u=V.arrow)?u:C.Arrow)?c:DR,We=nS(je,kp({},W,null!=(d=H.popper)?d:k.popper,{className:Ag(Ae.popper,null==W?void 0:W.className,null==(p=null!=(f=H.popper)?f:k.popper)?void 0:p.className)}),De),He=nS(Fe,kp({},Z,null!=(h=H.transition)?h:k.transition),De),Ue=nS(Be,kp({},null!=(m=H.tooltip)?m:k.tooltip,{className:Ag(Ae.tooltip,null==(g=null!=(v=H.tooltip)?v:k.tooltip)?void 0:g.className)}),De),Ve=nS($e,kp({},null!=(b=H.arrow)?b:k.arrow,{className:Ag(Ae.arrow,null==(y=null!=(x=H.arrow)?x:k.arrow)?void 0:y.className)}),De);return rm.jsxs(U.Fragment,{children:[U.cloneElement(Q,Ne),rm.jsx(je,kp({as:null!=$?$:bE,placement:B,anchorEl:N?{getBoundingClientRect:()=>({top:FR.y,left:FR.x,right:FR.x,bottom:FR.y,width:0,height:0})}:ee,popperRef:Te,open:!!ee&&pe,id:fe,transition:!0},qe,We,{popperOptions:ze,children:({TransitionProps:e})=>rm.jsx(Fe,kp({timeout:J.transitions.duration.shorter},e,He,{children:rm.jsxs(Be,kp({},Ue,{children:[G,w?rm.jsx($e,kp({},Ve,{ref:re})):null]}))}))}))]})}));function WR(){const{useModelStore:e}=U.useContext(qx).modelStore;return e()}function HR(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=WR(),[o]=function(){const{useRpcRequestSessionModelStore:e}=U.useContext(qx).modelStore;return e()}(),[a,i]=U.useState();for(var l=arguments.length,s=new Array(l>2?l-2:0),c=2;c<l;c++)s[c-2]=arguments[c];return U.useEffect((()=>{if(!t)return;(async()=>{let a=o.get(n);a||(a=t.createSessionObject(e),o.set(n,a));const l=await a;r.set(n,l),i(l)})()}),[t,...s]),[a]}const UR={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function VR(e){return HR(UR,e)}const GR=e=>new Promise((t=>{setTimeout(t,e)})),KR=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let a;switch(t.type){case"INVALID":a=l(l({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":a={result:l({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":a=l(l({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let i=n.get(r);return i||(i={}),i[o]=a,n.set(r,i),a};function ZR(e,t){const n=e?"".concat(e.id):null,[r]=function(){const{useRpcResultStore:e}=U.useContext(qx).modelStore;return e()}(),[o,a]=U.useReducer(KR,n?r.get(n):null),[i]=function(){const{useModelChangedStore:e}=U.useContext(qx).modelStore;return e()}(),[l]=function(){const{useRpcRequestStore:e}=U.useContext(qx).modelStore;return e()}();let s;n&&(s=l.get(n),s||(s={},l.set(n,s)));const c=async o=>{let i=s[t];if(!i||i&&i.rpcRetry){i={rpc:e[t](),rpcRetry:!1},s[t]=i,a({type:"INVALID",method:t,key:n,model:e,rpcResultStore:r,canCancel:!0})}try{await GR(0);const o=await i.rpc;a({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(i.rpcRetry||(i.rpcRetry=!0),c(!0))}},u={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(s[t].rpc.requestId),a({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{s[t].rpcRetry=!0,c()}};return U.useEffect((()=>{e&&c()}),[e,i.get(e&&e.id),n,t]),[o&&o.result,{validating:o&&o.validating,canCancel:o&&o.canCancel,canRetry:o&&o.canRetry},u]}function XR(e){return ZR(e,"getLayout")}function QR(e){return ZR(e,"getAppLayout")}function JR(){const[e,t]=U.useState(),[n,r]=U.useState(),o=U.useCallback((e=>{e&&t(e)}),[]),a=()=>{const{left:t,top:n,width:o,height:a}=e.getBoundingClientRect();r({left:t,top:n,width:o,height:a})};return U.useLayoutEffect((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(a);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return a(),window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}}}),[e]),[o,n,e]}function YR(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function eL(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:o=[]}=e;const i=l({fontSize:YR(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n);return V.createElement("i",{style:i},V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},o.map(((e,t)=>{let{type:n,attrs:r}=e;return V.createElement(n,a({key:t},r))}))))}var tL=e=>eL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"}}]}))(e));var nL=e=>eL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));const rL=e=>l(l({},e),{},{viewBox:"0 0 12 16",shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]});var oL=e=>eL(rL(e));var aL=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}}(),iL=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},lL=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=iL(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r._lastRenderedStartIndex=-1,r._lastRenderedStopIndex=-1,r._memoizedUnloadedRanges=[],r._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;r._lastRenderedStartIndex=t,r._lastRenderedStopIndex=n,r._ensureRowsLoaded(t,n)},r._setRef=function(e){r._listRef=e},iL(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),aL(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,r=n.isItemLoaded,o=n.itemCount,a=n.minimumBatchSize,i=void 0===a?10:a,l=n.threshold,s=void 0===l?15:l,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.startIndex,a=e.stopIndex,i=[],l=null,s=null,c=o;c<=a;c++)t(c)?null!==s&&(i.push(l,s),l=s=null):(s=c,null===l&&(l=c));if(null!==s){for(var u=Math.min(Math.max(s,l+r-1),n-1),d=s+1;d<=u&&!t(d);d++)s=d;i.push(l,s)}if(i.length)for(;i[1]-i[0]+1<r&&i[0]>0;){var p=i[0]-1;if(t(p))break;i[0]=p}return i}({isItemLoaded:r,itemCount:o,minimumBatchSize:i,startIndex:Math.max(0,e-s),stopIndex:Math.min(o-1,t+s)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some((function(e,t){return c[t]!==e})))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,r=function(r){var o=e[r],a=e[r+1],i=n(o,a);null!=i&&i.then((function(){if(function(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,o=e.stopIndex;return!(r>n||o<t)}({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:a})){if(null==t._listRef)return;"function"==typeof t._listRef.resetAfterIndex?t._listRef.resetAfterIndex(o,!0):("function"==typeof t._listRef._getItemStyleCache&&t._listRef._getItemStyleCache(-1),t._listRef.forceUpdate())}}))},o=0;o<e.length;o+=2)r(o)}}]),t}(U.PureComponent);const sL=["S","XS"],cL=e=>e.reduce(((e,t)=>e.concat(t)));function uL(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 cL(t)}async function dL(e){let{selections:t,elemNumbers:n,toggle:r,isSingleSelect:o}=e;if(0===n.length)return!1;let a=!1;if(!n.some((e=>Number.isNaN(e)))){const e=n;try{a=!1!==await t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,r]})}catch(e){a=!1}a||(o?t.cancel():t.clear())}return a}const pL="RowColumn",fL={row:"".concat(pL,"-row"),rowBorderBottom:"".concat(pL,"-rowBorderBottom"),column:"".concat(pL,"-column"),fieldRoot:"".concat(pL,"-fieldRoot"),cell:"".concat(pL,"-cell"),labelText:"".concat(pL,"-labelText"),labelDense:"".concat(pL,"-labelDense"),highlighted:"".concat(pL,"-highlighted"),checkboxLabel:"".concat(pL,"-checkboxLabel"),icon:"".concat(pL,"-icon"),S:"".concat(pL,"-S"),XS:"".concat(pL,"-XS"),A:"".concat(pL,"-A"),X:"".concat(pL,"-X"),frequencyCount:"".concat(pL,"-frequencyCount"),barContainer:"".concat(pL,"-barContainer"),bar:"".concat(pL,"-bar"),barSelected:"".concat(pL,"-barSelected"),barWithCheckbox:"".concat(pL,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(pL,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(pL,"-excludedTextWithCheckbox")},hL=".".concat(fL.fieldRoot),mL=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function gL(e){var t;let{selectionState:n,selections:r,checkboxes:o=!1,doc:a=document,loaderRef:i}=e;const l=U.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});U.useEffect((()=>{var e;if(null===(e=i.current)||void 0===e||null===(e=e._listRef)||void 0===e||!e._outerRef)return;const t=e=>e.preventDefault(),n=e=>e.preventDefault(),r=e=>e.preventDefault(),o=i.current._listRef._outerRef;return o.addEventListener("gesturestart",t),o.addEventListener("gesturechange",n),o.addEventListener("gestureend",r),()=>{o.removeEventListener("gesturestart",t),o.removeEventListener("gesturechange",n),o.removeEventListener("gestureend",r)}}),[null===(t=i.current)||void 0===t||null===(t=t._listRef)||void 0===t?void 0:t._outerRef]);const s=async()=>{var e;return(null===(e=n.selectDisabled)||void 0===e||!e.call(n))&&(n.setSelectableValuesUpdating(),dL({selections:r,elemNumbers:l.current.elemNumbers,isSingleSelect:n.isSingleSelect,toggle:l.current.toggle}))},c=(e,t)=>{const r=function(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}));return t}));return cL(t)}(n.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r})),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([e,t],r)},u=e=>{const{startElemNumber:t}=l.current;if(t===e)return;const r=c(l.current.startElemNumber,e);n.updateItems(r,!0,l.current.elemNumbers)},d=U.useCallback((e=>{if(n.selectDisabled())return;const t=+e.target.getAttribute("data-n"),r=!n.isSingleSelect&&mL(e.nativeEvent);l.current.elemNumbers=[t],l.current.toggle=r,r||n.clearItemStates(!0),n.updateItem(t),l.current.active=!1,s()}),[]),p=U.useCallback((e=>{if(0!==e.button||n.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),r=!n.isSingleSelect&&mL(e);l.current.isRange=!1,l.current.startElemNumber=t,l.current.elemNumbers=[t],l.current.toggle=r,l.current.active=!0,r||n.clearItemStates(!0),n.updateItem(t),n.isSingleSelect&&(l.current.active=!1,s()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),f=U.useCallback((e=>{if(0===e.button&&l.current.active){if(l.current.active=!1,l.current.isRange){const t=+e.currentTarget.getAttribute("data-n");u(t)}s()}}),[]),h=U.useCallback((e=>{0===e.button&&l.current.active&&(l.current.active=!1,s())}),[]),m=U.useCallback((e=>{if(!l.current.active)return;l.current.isRange||(l.current.isRange=!0,n.isSelected(l.current.startElemNumber)||(n.updateItem(l.current.startElemNumber,!0),l.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");u(t)}),[]),g=U.useCallback((e=>{var t,r;if(l.current.active||l.current.isRange||n.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void s();const o=Number(null===(t=e.touches[0].target)||void 0===t||null===(t=t.closest(hL))||void 0===t?void 0:t.getAttribute("data-n")),a=Number(null===(r=e.touches[1].target)||void 0===r||null===(r=r.closest(hL))||void 0===r?void 0:r.getAttribute("data-n"));if(Number.isNaN(o)||Number.isNaN(o))return void s();l.current.active=!0;c(o,a).length<7&&(l.current.touchRangeSmall=!0),l.current.elemNumbers=[],l.current.touchElemNumbers=[o,a]}),[]),v=U.useCallback((()=>{if(2!==l.current.touchElemNumbers.length)return;if(l.current.touchRangeSmall)return l.current.touchRangeSmall=!1,l.current.touchElemNumbers=[],void(l.current.active=!1);const[e,t]=l.current.touchElemNumbers;l.current.startElemNumber=e,u(t),l.current.touchElemNumbers=[],l.current.active=!1,l.current.toggle=!0,s()}),[]);U.useEffect((()=>(a.addEventListener("mouseup",h),()=>{a.removeEventListener("mouseup",h)})),[h]),U.useEffect((()=>{const e=()=>{n.clearItemStates(!1)},t=()=>{n.clearItemStates(!0),n.triggerStateChanged()};return r.on("clearItemStates",e),r.on("deactivated",e),r.on("cleared",t),()=>{r.removeListener("clearItemStates",e),r.removeListener("deactivated",e),r.removeListener("cleared",t)}}),[r]);const b={};return o?Object.assign(b,{onChange:d}):Object.assign(b,{onMouseUp:f,onMouseDown:p,onMouseEnter:m,onTouchStart:g,onTouchEnd:v}),{interactionEvents:b,select:async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(null!==(e=n.selectDisabled)&&void 0!==e&&e.call(n))return!1;const i=!n.isSingleSelect&&mL(null==a?void 0:a.nativeEvent);i||n.clearItemStates(!0);const l=[];return n.updateItems(t,o,l),n.setSelectableValuesUpdating(),dL({selections:r,elemNumbers:o?l:t,isSingleSelect:n.isSingleSelect,toggle:i})}}}const vL=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var bL=e=>eL(vL(e));const yL=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,xL=e=>{let{cell:t,checkboxes:n}=e;return((e=>e?"A"===e.qState:null)(t)||yL(t))&&n};const SL=e=>{let{column:t,histogram:n,cell:r,showGray:o}=e;if(!r)return[];const a=[t?fL.column:fL.row];n||a.push(fL.rowBorderBottom);const i=function(e){let t,{cell:n,showGray:r}=e;switch(n.qState){case"XS":t=r?fL.XS:fL.S;break;case"S":case"L":t=fL.S;break;case"A":t=!!r&&fL.A;break;case"X":case"XL":t=!!r&&fL.X;break;default:t=!1}return t}({cell:r,showGray:o});return i&&a.push(i),a},wL=9,EL=4,CL=7,kL=12+2*(CL+1),RL=80,LL=10,OL=150,_L=56,IL=20,TL="-",PL=32,ML=29,NL=20,qL=4,zL=e=>e.filter((e=>!!e)).join(" ").trim(),DL=e=>{let{qFrequency:t,frequencyMax:n}=e;const r=String(t),o="%"===r.substring(r.length-1),a=parseFloat(o?r:t);return"".concat(o?a:a/n*100,"%")},AL=e=>e||TL,jL=["backgroundColor"],FL=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%"},BL=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},$L=e=>{let{theme:t,checkboxes:n,styles:r,selectionState:o}=e;if(n)return"selected"===o?{["& .".concat(fL.labelText)]:{color:r.selections.selected}}:{};const a=r.selections,i=a[o],l=a["".concat(o,"Contrast")];return{background:i,color:l,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0},["& .".concat(fL.labelText)]:{color:l},["& .".concat(fL.icon)]:{color:l}}},WL={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},HL=Ty("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})((e=>{let{theme:t,checkboxes:n,isGridMode:r,isGridCol:o,dense:a,direction:i,sizes:c,frequencyMode:u,freqHitsValue:d,styles:p}=e;const f=s(p.content,jL),h=$L({theme:t,styles:p,checkboxes:n,selectionState:"selected"}),m=$L({theme:t,styles:p,checkboxes:n,selectionState:"excluded"}),g={height:"100%",transition:"width 0.2s",border:"".concat(1,"px solid"),borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},v={opacity:"30%"};return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(fL.row)]:l({flexWrap:"nowrap"},p.content),["& .".concat(fL.rowBorderBottom)]:{borderBottom:o?"none":"1px solid ".concat(t.palette.divider),borderLeft:o?"1px solid ".concat(t.palette.divider):"none"},["& .".concat(fL.column)]:l({flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider)},p.content),["& .".concat(fL.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:n?"52px":"26px",flexBasis:n?"auto":"max-content",paddingLeft:"".concat(wL,"px"),paddingRight:0},["& .".concat(fL.labelText)]:l(l({lineHeight:"16px",userSelect:"none",paddingRight:"1px"},WL),f),["& .".concat(fL.labelDense)]:{fontSize:12},["& .".concat(fL.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(fL.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":l(l({},WL),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(fL.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:f.color},["& .".concat(fL.S)]:l(l({},h),{},{border:r?"none":void 0}),["& .".concat(fL.XS)]:l(l({},$L({theme:t,styles:p,checkboxes:n,selectionState:"selectedExcluded"})),{},{border:r?"none":void 0}),["& .".concat(fL.A)]:l(l({},$L({theme:t,styles:p,checkboxes:n,selectionState:"alternative"})),{},{border:r?"none":void 0}),["& .".concat(fL.X)]:l(l({},m),{},{border:r?"none":void 0}),["& .".concat(fL.X,", & .").concat(fL.XS)]:{border:r?"none":void 0,["& .".concat(fL.barSelected," .bar-filled")]:l({},g)},["& .".concat(fL.frequencyCount)]:l(l({zIndex:3,justifyContent:"flex-end"},WL),{},{flex:"0 0 ".concat(FL({sizes:c,frequencyMode:u,isGridMode:r,freqHitsValue:d})),minWidth:!r&&"P"!==u&&d?c.freqMinWidth:"max-content",maxWidth:BL({sizes:c,frequencyMode:u,isGridMode:r}),textAlign:"rtl"===i?"left":"right",paddingLeft:"rtl"!==i?"8px":0}),["&.".concat(fL.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(fL.bar)]:{height:a?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":l({},g)},["& .".concat(fL.barSelected)]:{"& .bar-filled":l({},v)},["& .".concat(fL.barWithCheckbox)]:{left:"rtl"===i?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(fL.barSelectedWithCheckbox)]:{"& .bar-filled":l(l({},v),{},{backgroundColor:p.selections.selected||"#BFE5D0",borderColor:p.selections.selected})},["& .".concat(fL.excludedTextWithCheckbox)]:{color:p.content.color,fontStyle:"italic"}}}));var UL=V.memo(HL);const VL="ListBoxCheckbox",GL={cbIcon:"".concat(VL,"-cbIcon"),cbIconChecked:"".concat(VL,"-cbIconChecked"),cbIconExcluded:"".concat(VL,"-cbIconExcluded"),cbIconAlternative:"".concat(VL,"-cbIconAlternative"),checkbox:"".concat(VL,"-checkbox"),dense:"".concat(VL,"-dense")},KL=Ty(hC,{shouldForwardProp:e=>"styles"!==e})((e=>{let{styles:t}=e;return{["& .".concat(GL.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(GL.cbIconChecked)]:{borderRadius:3,backgroundColor:t.selections.selected,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(GL.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.excluded},["& .".concat(GL.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.alternative},["&.".concat(GL.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(GL.dense)]:{padding:"4px 8px"}}})),ZL=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return V.createElement("span",{className:e.cbIcon},n&&V.createElement("span",{className:t&&n?e.cbIconExcluded:""}))};function XL(e){let{onChange:t,checked:n,label:r,dense:o,excluded:a,styles:i,showGray:l=!0,dataN:s}=e;return V.createElement(KL,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[GL.checkbox,o&&GL.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":s},name:r,icon:ZL(GL,l,a),checkedIcon:V.createElement("span",{className:GL.cbIconChecked}),styles:i})}const QL={radioButton:"".concat("ListBoxRadioButton","-radioButton")},JL=Ty(TR,{shouldForwardProp:e=>!["dense","styles"].includes(e)})((e=>{let{checked:t,styles:n,dense:r}=e;return{["&.".concat(QL.radioButton)]:{right:"5px",color:t?n.selections.selected:n.content.color,padding:r?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}}));function YL(e){let{onChange:t,checked:n,label:r,dense:o,dataN:a,styles:i}=e;return V.createElement(JL,{checked:n,onChange:t,value:r,name:r,className:QL.radioButton,inputProps:{"data-n":a},disableRipple:!0,size:o?"small":"medium",dense:o,styles:i})}function eO(e){let{label:t,dense:n,showGray:r=!0,checkboxes:o,cell:a,valueTextAlign:i}=e;return V.createElement(xS,{component:"span",variant:"body2",className:zL([fL.labelText,n&&fL.labelDense,r&&xL({cell:a,checkboxes:o})&&fL.excludedTextWithCheckbox]),align:i,dir:"auto"},V.createElement("span",null,t))}function tO(e){let{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}=e;return"string"==typeof t?V.createElement(eO,{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}):t}function nO(e){let{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:a,cell:i,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}=e;const f=V.createElement(XL,{onChange:t,label:n,checked:o,dense:a,excluded:yL(i),isGridCol:l,showGray:s,dataN:r,styles:p}),h=V.createElement(YL,{onChange:t,label:n,checked:o,dense:a,dataN:r,styles:p});return V.createElement(VC,{control:c?h:f,className:fL.checkboxLabel,label:V.createElement(tO,{label:n,dense:a,showGray:s,checkboxes:u,cell:i,valueTextAlign:d}),key:r})}function rO(e){let{labels:t,dense:n,showGray:r,checkboxes:o}=e;const a=t.map(((e,t)=>{let[n,r]=e;return V.createElement("span",{id:t,className:r?fL.highlighted:""},n)}));return V.createElement(eO,{label:a,dense:n,showGray:r,checkboxes:o})}function oO(e){let{onChange:t,labels:n,checkboxes:r,dense:o,showGray:a,qElemNumber:i,isSelected:l,cell:s,isGridCol:c,isSingleSelect:u,valueTextAlign:d,styles:p}=e;const f=V.createElement(rO,{labels:n,dense:o,showGray:a,checkboxes:r});return r?V.createElement(nO,{onChange:t,label:f,qElemNumber:i,isSelected:l,dense:o,cell:s,isGridCol:c,showGray:a,isSingleSelect:u,checkboxes:r,valueTextAlign:d,styles:p}):f}var aO=V.memo((function(e){let{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:a,cell:i,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}=e;return u?V.createElement(nO,{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:a,cell:i,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}):V.createElement(eO,{label:n,dense:a,showGray:!0,checkboxes:u,cell:i,valueTextAlign:d})}));function iO(e){let{qFrequency:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:a}=e;if(!(t&&n&&AL(t)!==TL))return;const i=DL({qFrequency:t,checkboxes:r,frequencyMax:a});return V.createElement(JE,{className:zL([fL.bar,r&&fL.barWithCheckbox,o&&(r?fL.barSelectedWithCheckbox:fL.barSelected)])},V.createElement(JE,{className:"bar-filled",width:i}))}function lO(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;const a=AL(null==t?void 0:t.qFrequency);return V.createElement(nk,{item:!0,style:{display:"flex",alignItems:"center"},className:fL.frequencyCount,"aria-label":a,title:a},V.createElement(xS,{noWrap:!0,color:"inherit",variant:"body2",className:zL([r&&fL.labelDense,fL.labelText,o&&xL({cell:t,checkboxes:n})&&fL.excludedTextWithCheckbox])},a))}function sO(e){let{dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:o}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:o?"100%":"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const cO=Ty(nk,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:a,fillHeight:i}=e;const s="padding".concat("rtl"===a?"Left":"Right");return{["&.".concat(fL.fieldRoot)]:l(l({},sO({dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:i})),{},{[s]:o?"8px":void 0})}}));const uO=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===uO.ARROW_UP||e===uO.ARROW_DOWN||e===uO.ARROW_LEFT||e===uO.ARROW_RIGHT}),dO=e=>+e.getAttribute("data-n"),pO=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},fO=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},hO=e=>{let{rowIndex:t,columnIndex:n,rowCount:r,columnCount:o,layoutOrder:a,keyCode:i,numCells:l}=e;const s=e=>{let t;return"row"===a?(t=l%o,e<t?r:r-1):(t=l%r,e<o-1?r:t)};let c=t,u=n;if(i===uO.ARROW_DOWN)if(t>=s(n)-1){if(n===o-1)return-1;c=0,u=n+1}else c=t+1;else if(0===t){if(0===n)return-1;c=s(n-1)-1,u=n-1}else c=t-1;if("row"===a)return c*o+u;const d=l%r;return 0===d||c<d?c*o+u:(c-d)*(o-1)+u+d*o};const mO={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 gO(e){var t,n;let{index:r,rowIndex:o,columnIndex:a,style:i,data:s}=e;const{onChange:c,onClick:u,onMouseDown:d,onMouseUp:p,onMouseEnter:f,onTouchStart:h,onTouchEnd:m,pages:g,isLocked:v,column:b=!1,checkboxes:y=!1,textAlign:x,direction:S,layoutOptions:w={},freqIsAllowed:E,isSingleSelect:C,actions:k,frequencyMax:R="",histogram:L=!1,keyboard:O,showGray:_=!0,showTick:I=!0,columnCount:T=1,rowCount:P=1,dataOffset:M,deducedFrequencyMode:N,focusListItems:q,listCount:z,sizes:D,translator:A,showSearch:j,isModal:F,contentFontStyle:B,styles:$,fillHeight:W}=s,{dense:H=!1,dataLayout:G="singleColumn",layoutOrder:K}=w,{itemPadding:Z}=D;let X,Q;const J={max:null,currentIndex:null};if("number"==typeof o&&"number"==typeof a){"row"===K?(X=o*T+a,J.max=P,J.currentIndex=o):(X=a*P+o,J.max=T,J.currentIndex=a);const e=0;Q=l(l({},i),{},{height:W?"100%":i.height,left:e+(0===a?i.left:Number(i.left)+a*e),top:0===o?i.top:Number(i.top)+o*e})}else X=r,J.max=z,J.currentIndex=r,Q=l({},i);X+=M;const[Y,ee]=U.useState(null);U.useEffect((()=>{null!==Y&&(0===J.currentIndex&&q.first&&(Y.focus(),q.setFirst(!1)),J.currentIndex===J.max-1&&q.last&&(Y.focus(),q.setLast(!1)))}),[Y,q.first,q.last]);const te=U.useCallback(function(e){let{select:t,selectAll:n,onCtrlF:r,confirm:o,cancel:a,setScrollPosition:i,focusListItems:l,keyboard:s,isModal:c,rowCount:u,columnCount:d,rowIndex:p,columnIndex:f,layoutOrder:h}=e;const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e===uO.ARROW_LEFT||e===uO.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=hO({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 uO.TAB:{const e=d.closest(".listbox-container"),t=c();if(d.classList.add("last-focused"),h){pO(e)||(t?s.focusSelection():s.blur(!0));break}t?s.focusSelection():(d.blur(),s.blur());break}case uO.SHIFT:v(!0);break;case uO.SPACE:t([dO(d)],!1,e);break;case uO.ARROW_DOWN:case uO.ARROW_RIGHT:u=m(f,d,!0),h&&u&&(g&&(t([dO(d)],!0),v(!1)),t([dO(u)],!0));break;case uO.ARROW_UP:case uO.ARROW_LEFT:u=m(f,d,!1),h&&u&&(g&&(t([dO(d)],!0),v(!1)),t([dO(u)],!0));break;case uO.ENTER:if(o(),void 0===c)return;break;case uO.ESCAPE:if(!c())return;a();break;case uO.HOME:if(l.setFirst(!0),b){null==i||i("overflowStart");break}null==i||i("start");break;case uO.END:if(l.setLast(!0),b){null==i||i("overflowEnd");break}null==i||i("end");break;case uO.A:if(b||y){n();break}return;case uO.F:if(b||y){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(l(l({},k),{},{focusListItems:q,keyboard:O,isModal:F,rowCount:P,columnCount:T,rowIndex:o,columnIndex:a,layoutOrder:K})),[k,null==O?void 0:O.innerTabStops,P,T,o,a,K]),ne=U.useMemo((()=>function(e){let t,{pages:n,cellIndex:r}=e;const o=n.filter((e=>e.qArea.qTop<=r&&r<e.qArea.qTop+e.qArea.qHeight))[0];if(o){const e=o.qArea;r>=e.qTop&&r<e.qTop+e.qHeight&&([t]=o.qMatrix[r-e.qTop])}return t}({pages:g,cellIndex:X})),[g,X]),re="S"===(null==ne?void 0:ne.qState)||"XS"===(null==ne?void 0:ne.qState)||"L"===(null==ne?void 0:ne.qState)||"XL"===(null==ne?void 0:ne.qState),oe=U.useMemo((()=>SL({column:b,histogram:L,cell:ne,showGray:_})),[null==ne?void 0:ne.qState,L,H]),ae=U.useCallback((e=>{e.preventDefault()}),[y]),ie=U.useMemo((()=>ne&&function(e){let{direction:t,cell:n,textAlign:r}=e;const o=!["NaN",void 0].includes(null==n?void 0:n.qNum);let a;return a=!r||r.auto?o?"rtl"===t?"left":"right":{rtl:"right",ltr:"left"}[t]:(null==r?void 0:r.align)||"left",["left","center","right"].includes(a)?a:"left"}({direction:S,cell:ne,textAlign:x})),[S,ne,x]);if(!ne)return null;const le="grid"===G&&"column"===K,se=null!==(t=null==ne?void 0:ne.qText)&&void 0!==t?t:"";let ce;if(null!==(n=ne.qHighlightRanges)&&void 0!==n&&null!==(n=n.qRanges)&&void 0!==n&&n.length){const e=ne.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];ce=function(e,t){if(!t.length)return[];const n=t.reduce(((n,r,o)=>{const a=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{qCharPos:r,qCharCount:o}=t,a=[];return r>n&&a.push([e.slice(n,r),!1]),a.push([e.slice(r,r+o),!0]),a}(e,r,a));const i=o===t.length-1,l=t[o].qCharPos+t[o].qCharCount;return i&&l<e.length&&n.push([e.slice(l),!1]),n}),[]);return n}(se,e)}const ue={alignItems:"center",display:"flex",fontSize:"8px"},de="rtl"===S,pe={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:de?8:y?0:void 0,paddingRight:y?0:de?8:0,justifyContent:ie,textAlign:ie},fe=0===r,he=re&&v,me=!y&&re&&!v,ge=!y&&I,ve=y||!I,be=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:a,maxIndex:i,showSearch:l}=e;const s=mO[r],c=t.get(s),u=[];if(o){const e=l?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=t.get(e);u.push(n)}const d="".concat(n," ").concat(c),p=t.get("CurrentSelections.Of",[a+1,i+1]);return u.unshift(d,p),u.join(". ").trim()}({translator:A,label:se,qState:ne.qState,currentIndex:J.currentIndex,maxIndex:J.max,showSearch:j}),ye=!de&&"right"===ie||de&&"left"===ie;return V.createElement(UL,{className:fL.barContainer,checkboxes:y,style:Q,styles:$,isGridCol:le,isGridMode:"grid"===G,dense:H,direction:S,sizes:D,frequencyMode:N,freqHitsValue:ye,contentFontStyle:B,"data-testid":"listbox.item"},V.createElement(cO,{role:"row","aria-label":be,"aria-selected":re,"aria-setsize":J.max,"aria-rowindex":J.currentIndex,ref:ee,container:!0,dataLayout:G,cellPaddingRight:ve,layoutOrder:K,itemPadding:Z,gap:0,className:zL(["value",...oe]),classes:{root:fL.fieldRoot},onClick:u,onMouseDown:d,onMouseUp:p,onMouseEnter:f,onKeyDown:te,onTouchStart:h,onTouchEnd:m,onContextMenu:ae,tabIndex:fe&&O.innerTabStops?0:-1,"data-n":null==ne?void 0:ne.qElemNumber,direction:S,fillHeight:W},(null==ne?void 0:ne.qFrequency)&&V.createElement(iO,{qFrequency:null==ne?void 0:ne.qFrequency,histogram:L,checkboxes:y,isSelected:re,frequencyMax:R}),V.createElement(nk,{item:!0,style:pe,className:zL([fL.cell,fL.selectedCell]),title:"".concat(se)},ce?V.createElement(oO,{onChange:c,labels:ce,checkboxes:y,dense:H,showGray:_,qElemNumber:ne.qElemNumber,isSelected:re,cell:ne,isGridCol:le,isSingleSelect:C,valueTextAlign:ie,styles:$}):V.createElement(aO,{onChange:c,label:se,qElemNumber:ne.qElemNumber,isSelected:re,dense:H,cell:ne,isGridCol:le,showGray:_,isSingleSelect:C,checkboxes:y,valueTextAlign:ie,styles:$})),E&&V.createElement(lO,{cell:ne,checkboxes:y,dense:H,showGray:_}),ge&&V.createElement(nk,{item:!0,className:fL.icon},he&&V.createElement(nL,{style:ue,size:"small"}),me&&V.createElement(bL,{style:ue,size:"small"}))))}var vO=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function bO(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||vO(r)&&vO(o)))return!1;var r,o;return!0}function yO(e,t){var n;void 0===t&&(t=bO);var r,o=[],a=!1;return function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}}var xO="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function SO(e){cancelAnimationFrame(e.id)}function wO(e,t){var n=xO();var r={id:requestAnimationFrame((function o(){xO()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var EO=-1;function CO(e){if(void 0===e&&(e=!1),-1===EO||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),EO=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return EO}var kO=null;function RO(e){if(void 0===e&&(e=!1),null===kO||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?kO="positive-descending":(t.scrollLeft=1,kO=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),kO}return kO}var LO=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function OO(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,i=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,Ky(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Ky(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=yO((function(e,t,n,o,a,i,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:a,visibleColumnStopIndex:i,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=yO((function(e,t,n,o,a){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:a})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,i=r.props,l=i.columnWidth,s=i.direction,c=i.rowHeight,p=r._getItemStyleCache(m&&l,m&&s,m&&c),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:a(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=yO((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,a=t.scrollLeft,i=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===a&&e.scrollTop===i)return null;var t=r.props.direction,c=a;if("rtl"===t)switch(RO()){case"negative":c=-a;break;case"positive-descending":c=s-o-a}c=Math.max(0,Math.min(c,s-o));var u=Math.max(0,Math.min(i,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<a?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<i?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&SO(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=wO(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Ay(t,e),t.getDerivedStateFromProps=function(e,t){return _O(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,a=this.props,u=a.columnCount,d=a.height,p=a.rowCount,f=a.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=CO();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=i(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(RO()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var a=o.clientWidth,i=o.scrollWidth;o.scrollLeft=i-a-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&SO(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,a=e.height,s=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?LO:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],E=S[1],C=this._getVerticalRangeToRender(),k=C[0],R=C[1],L=[];if(r>0&&g)for(var O=k;O<=R;O++)for(var _=w;_<=E;_++)L.push(U.createElement(t,{columnIndex:_,data:d,isScrolling:b?x:void 0,key:f({columnIndex:_,data:d,rowIndex:O}),rowIndex:O,style:this._getItemStyle(O,_)}));var I=i(this.props,this._instanceProps),T=l(this.props,this._instanceProps);return U.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:qy({position:"relative",height:a,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},U.createElement(c||u||"div",{children:L,ref:s,style:{height:I,pointerEvents:x?"none":void 0,width:T}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var a=this._getHorizontalRangeToRender(),i=a[0],l=a[1],s=a[2],c=a[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(i,l,d,p,s,c,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,b=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,a=e.overscanColumnsCount,i=e.overscanCount,l=e.rowCount,s=this.state,c=s.horizontalScrollDirection,u=s.isScrolling,d=s.scrollLeft,p=n||a||i||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,a=e.rowCount,i=this.state,l=i.isScrolling,s=i.verticalScrollDirection,c=i.scrollTop,u=r||o||n||1;if(0===t||0===a)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,u),g=l&&"forward"!==s?1:Math.max(1,u);return[Math.max(0,d-m),Math.max(0,Math.min(a-1,h+g)),d,h]},t}(U.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var _O=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},IO=function(e,t){return e};function TO(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,a=e.getOffsetForIndexAndAlignment,i=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,Ky(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Ky(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=yO((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=yO((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,a=r.props,i=a.direction,l=a.itemSize,s=a.layout,u=r._getItemStyleCache(c&&l,c&&s,c&&i);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===i||"horizontal"===s,h="rtl"===i,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=yO((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,a=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,i=o;if("rtl"===t)switch(RO()){case"negative":i=-o;break;case"positive-descending":i=a-n-o}return i=Math.max(0,Math.min(i,a-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<i?"forward":"backward",scrollOffset:i,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,a=t.scrollTop;r.setState((function(e){if(e.scrollOffset===a)return null;var t=Math.max(0,Math.min(a,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&SO(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=wO(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Ay(t,e),t.getDerivedStateFromProps=function(e,t){return PO(e,t),u(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?CO():0:s.scrollHeight>s.clientHeight?CO():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var a=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(RO()){case"negative":a.scrollLeft=-o;break;case"positive-ascending":a.scrollLeft=o;break;default:var i=a.clientWidth,l=a.scrollWidth;a.scrollLeft=l-i-o}else a.scrollLeft=o;else a.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&SO(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,a=e.height,i=e.innerRef,l=e.innerElementType,s=e.innerTagName,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?IO:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),E=w[0],C=w[1],k=[];if(c>0)for(var R=E;R<=C;R++)k.push(U.createElement(t,{data:u,key:p(R,u),index:R,isScrolling:v?y:void 0,style:this._getItemStyle(R)}));var L=r(this.props,this._instanceProps);return U.createElement(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:qy({position:"relative",height:a,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},U.createElement(l||s||"div",{children:k,ref:i,style:{height:x?"100%":L,pointerEvents:y?"none":void 0,width:x?L:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var a=this.state,i=a.scrollDirection,l=a.scrollOffset,s=a.scrollUpdateWasRequested;this._callOnScroll(i,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,a=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var c=i(this.props,s,this._instanceProps),u=l(this.props,c,s,this._instanceProps),d=o&&"backward"!==a?1:Math.max(1,n),p=o&&"forward"!==a?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(U.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var PO=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},MO=OO({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,o,a){var i=e.columnCount,l=e.columnWidth,s=e.width,c=Math.max(0,i*l-s),u=Math.min(c,t*l),d=Math.max(0,t*l-s+a+l);switch("smart"===n&&(n=r>=d-s&&r<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(s/2)?0:p>c+Math.floor(s/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getOffsetForRowAndAlignment:function(e,t,n,r,o,a){var i=e.rowHeight,l=e.height,s=e.rowCount,c=Math.max(0,s*i-l),u=Math.min(c,t*i),d=Math.max(0,t*i-l+a+i);switch("smart"===n&&(n=r>=d-l&&r<=u+l?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(l/2)?0:p>c+Math.floor(l/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,o=e.columnCount,a=e.width,i=t*r,l=Math.ceil((a+n-i)/r);return Math.max(0,Math.min(o-1,t+l-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,o=e.rowCount,a=e.height,i=t*r,l=Math.ceil((a+n-i)/r);return Math.max(0,Math.min(o-1,t+l-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),NO=TO({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,a){var i=e.direction,l=e.height,s=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===i||"horizontal"===u?d:l,f=Math.max(0,s*c-p),h=Math.min(f,t*c),m=Math.max(0,t*c-p+c+a);switch("smart"===n&&(n=r>=m-p&&r<=h+p?"auto":"center"),n){case"start":return h;case"end":return m;case"center":var g=Math.round(m+(h-m)/2);return g<Math.ceil(p/2)?0:g>f+Math.floor(p/2)?f:g;default:return r>=m&&r<=h?r:r<m?m:h}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,a=e.itemCount,i=e.itemSize,l=e.layout,s=e.width,c=t*i,u="horizontal"===r||"horizontal"===l?s:o,d=Math.ceil((u+n-c)/i);return Math.max(0,Math.min(a-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const qO="#BBB",zO="#f1f1f1",DO={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const AO=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,jO=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,FO=(e,t,n,r)=>e===t*n+r+n;function BO(e){let{renderProps:t,layoutOptions:n,maxCount:r,columnCount:o,rowCount:a,overflowDisclaimer:i,qCardinal:l,dataOffset:s}=e;const c="column"===(null==n?void 0:n.layoutOrder)&&"singleColumn"!==n.dataLayout,u=AO(t,c),d=c?r.column:r.row,p=(c?o:a)>=d,f=FO(l,u,c?a:o,s),h=!!s&&jO(t,c),m=p&&!f&&u>=d-1||h||i.state.show;i.set(m)}const{StyledFixedSizeList:$O,StyledFixedSizeGrid:WO}=function(){const e=e=>({scrollbarColor:"".concat(qO," ").concat(zO),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:zO},"&::-webkit-scrollbar-thumb":{backgroundColor:qO,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:Gh(NO,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(DO.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:Gh(MO,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(DO.styledScrollbars)]:e(n)}}))}}();const HO=(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)},UO=e=>{const t=U.useMemo((()=>"text"in e?e:{}),[e]);return U.useMemo((()=>HO(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function VO(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function GO(e){let{isGridMode:t,dense:n}=e;let r=n?NL:t?PL:ML;return t&&(r+=qL),r}function KO(e){let{layout:t,width:n,height:r,listCount:o,count:a,freqIsAllowed:i,checkboxes:l,styles:s}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:p,dense:f,dataLayout:h}=c,{fontSize:m="12px",fontFamily:g="Source sans pro"}=(null==s?void 0:s.content)||{},v="".concat(m," ").concat(g),b=UO({text:VO(t),font:v}),y=UO({text:VO(5),font:v}),x=UO({text:VO(8),font:v}),S=i?y:0,w=l?IL:0;let E=_L+S+w;!l&&E>=RL&&(E+=IL);let C,k,R,L,O=b+18+S+w;!l&&O>=RL&&(O+=IL),O=Math.min(OL,Math.max(O,E));const _=GO({isGridMode:"grid"===h,dense:f}),I=null!=r?r:8*_;if(u){let e=n;"row"===u?(C={overflowX:"hidden"},e+=2*qL,({rowCount:L,columnWidth:R,columnCount:k}=function(e){let{maxVisibleColumns:t,listCount:n,containerWidth:r,columnAutoWidth:o,itemMinWidth:a}=e;const i=(null==t?void 0:t.maxColumns)||3,l=r-LL;let s;const c=Math.min(n,Math.max(1,Math.round(l/Math.max(a,o))));s=!1!==(null==t?void 0:t.auto)?c:Math.min(n,i,c),s=Math.max(s,1);const u=l/s;return{rowCount:Math.ceil(n/s),columnWidth:u,columnCount:s}}({maxVisibleColumns:p,listCount:o,containerWidth:e,columnAutoWidth:O,itemMinWidth:E}))):(C={overflowY:"hidden"},({rowCount:L,columnWidth:R,columnCount:k}=function(e){let t,{maxVisibleRows:n,itemHeight:r,listCount:o,listHeight:a,columnAutoWidth:i,containerWidth:l,itemMinWidth:s}=e;const c=(null==n?void 0:n.maxRows)||3,u=Math.floor(a/r);t=!1!==n.auto?u:Math.min(o,c,u),t=Math.max(t,1);const d=Math.ceil(o/t);return{columnWidth:Math.max(i,l/d,s),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:_,listCount:o,listHeight:I,columnAutoWidth:O,containerWidth:e,itemMinWidth:E})))}k=("singleColumn"===h?1:k)||1,L=("singleColumn"===h?a:L)||o;const T=c.dense?838e3:577e3;L=Math.min(L,T);const P=Math.floor(3355e4/R);k=Math.min(k,P)||1;const M=L*k,N=Math.min(o,M);return{columnCount:k,columnWidth:R,rowCount:L,overflowStyling:C,itemHeight:_,listHeight:I,listWidth:n,scrollBarWidth:LL,count:a,listCount:N,maxCount:{row:T,column:P},itemPadding:qL,textWidth:b,freqMinWidth:y,freqMaxWidth:x}}const ZO=e=>{let{pages:t=[],minimumBatchSize:n,count:r}=e;const o=t.some((e=>e.qArea.qHeight<n)),a=Math.max(...t.map((e=>e.qArea.qTop+e.qArea.qHeight)));return o?a:r};const[XO,QO]=Ax({});function JO(e){const t="".concat(e.id),[n]=XO();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const YO=Ty(xS,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return l({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px")},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function e_(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:a}=U.useContext(qx);return V.createElement($R,{title:o?a.get(n):""},V.createElement(YO,{width:t,dense:r,component:"div",variant:"body1",py:"12px"},a.get(n)))}var t_={},n_={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(n_);var r_,o_=n_.exports,a_={},i_=r(Gx);var l_=o_;Object.defineProperty(t_,"__esModule",{value:!0});var s_=t_.default=void 0,c_=l_((r_||(r_=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=i_}(a_)),a_)),u_=rm;s_=t_.default=(0,c_.default)((0,u_.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const d_=Ty(Yx)((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}})),p_=Ty("div")((()=>({paddingLeft:"6px",flexGrow:1}))),f_=Ty("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),h_=Ty(s_)((()=>({fontSize:"14px"})));function m_(e){let{text:t,dismiss:n,dense:r,parentWidth:o=0}=e;const a="function"==typeof n,i=r?370:282,l=Math.max(o/2-i/2,0),s=Math.min(i,o)-42,c=r&&o<i;return V.createElement(d_,{left:l,style:{maxWidth:i}},V.createElement(p_,null,V.createElement(e_,{text:t,dense:r,width:s,tooltip:c})),V.createElement(f_,{dense:r},a&&V.createElement(hS,{"aria-label":"close",onClick:()=>n()},V.createElement(h_,null))))}const g_=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const v_=80;function b_(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>v_,{frequencyEnabled:a=!1}=(null==n?void 0:n.qListObject)||{},i=!["N",void 0].includes(r);return!(!o||!i&&!a)}const y_=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,"))")},x_=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=U.useState(),[a,i]=U.useState(n);return U.useEffect((()=>{if(!n)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=y_(r);return(await t.evaluateEx(o)).qNumber})(t,e);o(n),i(!1)})()}),[n&&t]),{frequencyMax:n?r:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:a}};const S_=["isLoadingData"],w_=100,E_=Ty("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function C_(e){var t,n;let{model:r,app:o,constraints:i,layout:c,selections:u,selectionState:d,direction:p,checkboxes:f,height:h,width:m,frequencyMode:g,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:x=!1,keyboard:S={},showGray:w=!0,scrollState:E,keyScroll:C={state:{},reset:()=>{}},currentScrollIndex:k={set:()=>{}},renderedCallback:R,onCtrlF:L,showSearch:O,isModal:_,styles:I}=e;const{translator:T}=U.useContext(qx),[P,M]=U.useState(!1),N=!(!c||!c.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:q=f,histogram:z}=null!=c?c:{},D=U.useRef(null),A=U.useRef({queue:[],validPages:!1,dataOffset:0}),j=U.useRef({pages:[]}),{frequencyMax:F,awaitingFrequencyMax:B}=x_(o,c),$=function(e){let{local:t,loaderRef:n,model:r,fetchStart:o,scrollTimeout:a,postProcessPages:i,listData:l}=e;const[s,c]=U.useState(!1),[u,d]=U.useState([]);let[p]=U.useState(0);const f=(e,s)=>{const u=t.current.dataOffset;t.current.queue.push({start:e+u,stop:s+u});const f=!!n.current&&n.current._listRef&&n.current._listRef.state.isScrolling;return t.current.queue.length>10&&t.current.queue.shift(),clearTimeout(t.current.timeout),c(!0),new Promise((e=>{t.current.timeout=setTimeout((()=>{const n=t.current.queue.slice(-1)[0],a=r.getListObjectData("/qListObjectDef",[{qTop:n.start>p?n.start-p:0,qHeight:p,qLeft:0,qWidth:1},{qTop:n.start,qHeight:p,qLeft:0,qWidth:1}]).then((n=>{const r=i?i(n):n;t.current.validPages=!0,l.current.pages=r,d(r),c(!1),e()}));o&&o(a)}),f?a:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(p=t),f}},pages:u,isLoading:s}}({local:A,loaderRef:D,model:r,fetchStart:b,scrollTimeout:0,postProcessPages:y,listData:j}),W=s($,S_),{getStoreValue:H,setStoreValue:G}=JO(r),K=U.useCallback(W.loadMoreItems,[c]),[Z,X]=U.useState({show:!1,dismissed:!1}),[Q,J]=U.useState([]);null!=W&&W.pages&&d.update({setPages:J,pages:W.pages,isSingleSelect:N,layout:c});const Y=null==c?void 0:c.qListObject.qDimensionInfo.qCardinal;(null!=W&&W.pages.length&&!B||0===Y)&&(null==R||R());const ee=U.useCallback((e=>{if(null==Q||!Q.length||!A.current.validPages)return!1;A.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=Q.filter((e=>t(e)))[0];return n&&t(n)}),[c,Q]),{interactionEvents:te,select:ne}=gL({selectionState:d,selections:u,checkboxes:q,doc:document,loaderRef:D}),{layoutOptions:re={}}=c||{};let oe=!0;re.dataLayout&&(oe="singleColumn"===re.dataLayout||"row"===(null==re?void 0:re.layoutOrder));const ae="grid"===(null==re?void 0:re.dataLayout),ie=e=>{const t=l({},oe?{rowIndex:e}:{columnIndex:e}),n=ae?t:e;D.current._listRef.scrollToItem(n)},le=()=>{if(A.current.queue=[],A.current.validPages=!1,D.current){D.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===C.state.scrollPosition;if(c&&c.qSelectionInfo.qInSelections||e)return void(e&&C.reset());A.current.dataOffset=0,ie(0)}};v&&v.call(null,le),U.useEffect((()=>{E&&!P&&D.current&&(D.current._listRef.scrollToItem(E.initScrollPos),M(!0))}),[D.current]),U.useEffect((()=>{le()}),[c,A.current.dataOffset]);let se=w_;const ce="grid"!==re.dataLayout,ue=null==c||null===(t=c.qListObject.qSize)||void 0===t?void 0:t.qcy,de=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?ZO({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:Q,minimumBatchSize:se,count:ue,calculatePagesHeight:x,layoutOptions:re,model:r});let pe=b_({itemWidth:m,layout:c,frequencyMode:g});const fe=function(e){return e.some((e=>{let{qMatrix:t}=e;return t.some((e=>{var t;let[n]=e;return!(null===(t=n.qFrequency)||void 0===t||!t.match("%"))}))}))?"P":"-"}(Q),he=KO({layout:c,width:m,height:h,listCount:de,count:ue,freqIsAllowed:pe,checkboxes:q,styles:I});he.columnWidth&&(pe=b_({itemWidth:he.columnWidth,layout:c,frequencyMode:g}));const{listCount:me}=he;G("listCount",me);const ge=H("inputText"),ve=function(e){let{layout:t,searchInputText:n,listCount:r}=e;const{translator:o}=U.useContext(qx),a=[];if(null!=n&&n.length){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(r),t=o.get(e,[r]);a.push(t)}const i=function(e){var t;let{layout:n,translatorDynamic:r}=e;const{qStateCounts:o={}}=(null==n||null===(t=n.qListObject)||void 0===t?void 0:t.qDimensionInfo)||{},a=o.qSelected+o.qSelectedExcluded+o.qLocked+o.qLockedExcluded;let i;switch(a){case 0:i="ScreenReader.ZeroSelected";break;case 1:i="ScreenReader.OneSelected";break;default:i="ScreenReader.ManySelected"}return r.get(i,[a])}({layout:t,translatorDynamic:o});a.push(i);const l=a.filter((e=>!(null==e||!e.length))).join(". ");return l}({layout:c,searchInputText:ge,listCount:me}),be=e=>{const{scrollIndex:t,offset:n,triggerRerender:r}=function(e){let t,{position:n,isRow:r,sizes:o,layout:a,offset:i}=e,l=!1,s=null!=i?i:0;switch(n){case"start":t=0;break;case"end":t=r?o.rowCount:o.columnCount;break;case"overflowStart":s=0,t=0,l=!0;break;case"overflowEnd":s=g_(a,o.listCount),t=a.qListObject.qDimensionInfo.qCardinal,l=!0}return{scrollIndex:t,offset:s,triggerRerender:l}}({position:e,isRow:oe,sizes:he,layout:c,offset:A.current.dataOffset});A.current.dataOffset=n,r&&d.triggerStateChanged(),ie(t)};U.useEffect((()=>{const e=C.state;e.up?ie(k.state.start-e.up):e.down?ie(k.state.stop+e.down):e.scrollPosition&&be(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&C.reset()}),[C.state.up,C.state.down,C.state.scrollPosition]);const{textAlign:ye}=(null==c?void 0:c.qListObject.qDimensionInfo)||{},[xe,Se]=U.useState({first:!1,last:!1}),{List:we,Grid:Ee}=function(e){let{layout:t,width:n,checkboxes:r,local:o,isVertical:i,pages:s,selectionState:c,interactionEvents:u,deducedFrequencyMode:d,histogram:p,isSingleSelect:f,select:h,selectAll:m,onCtrlF:g,textAlign:v,selections:b,keyboard:y,showGray:x,scrollState:S,direction:w,sizes:E,listCount:C,overflowDisclaimer:k,setScrollPosition:R,focusListItems:L,setCurrentScrollIndex:O,constraints:_,frequencyMax:I,freqIsAllowed:T,translator:P,showSearch:M,isModal:N,styles:q}=e;const{layoutOptions:z={}}=t||{},{columnWidth:D,listHeight:A,itemHeight:j,rowCount:F,columnCount:B}=E||{},$=("grid"===z.dataLayout?D:n)>RL,W={direction:"rtl"===w?"rtl":"ltr",useIsScrolling:!0,className:DO.styledScrollbars},H=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,U=A<=j,G=l(l({isLocked:H,column:!i,pages:s},H||c.selectDisabled()?{}:u),{},{checkboxes:r,layoutOptions:z,deducedFrequencyMode:d,freqIsAllowed:T,isSingleSelect:f,textAlign:v,sizes:E,actions:{select:h,confirm:()=>null==b?void 0:b.confirm.call(b),cancel:()=>null==b?void 0:b.cancel.call(b),setScrollPosition:R,selectAll:m,onCtrlF:g},frequencyMax:I,histogram:p,keyboard:y,showGray:x,showTick:$,dataOffset:o.current.dataOffset,focusListItems:L,direction:w,translator:P,showSearch:M,isModal:N,styles:q,fillHeight:U});return{List:e=>{let{onItemsRendered:r,ref:i}=e;return o.current.listRef=i,V.createElement($O,a({},W,{dataTestid:"fixed-size-list",scrollDisabled:null==_?void 0:_.active,height:A,width:n,itemCount:C,itemData:l(l({},G),{},{listCount:C}),itemSize:j,onItemsRendered:e=>{var n;O({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),BO({renderProps:e,layoutOptions:z,maxCount:E.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(l({},e))},ref:i}),gO)},Grid:e=>{let{onItemsRendered:r,ref:i}=e;const{overflowStyling:s,scrollBarWidth:c}=E,{layoutOrder:u}=z||{},d=Math.min(A,F*j+c);return o.current.listRef=i,V.createElement(WO,a({},W,{dataTestid:"fixed-size-grid",scrollDisabled:null==_?void 0:_.active,height:d,width:n,columnCount:B,columnWidth:D,rowCount:F,rowHeight:j,style:l({},s),itemData:l(l({},G),{},{column:void 0,columnCount:B,rowCount:F}),onItemsRendered:e=>{var n;const a="row"===u;O({start:a?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:a?e.visibleRowStopIndex:e.visibleColumnStopIndex});const i=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:a}=e,{overscanRowStartIndex:i,overscanRowStopIndex:l,overscanColumnStartIndex:s,overscanColumnStopIndex:c,visibleStopIndex:u}=t;let d,p,f,h;return n&&n.setScrollPos(u),"column"===r?(d=s*o,p=i,f=c*o,h=l):(d=s,p=i*a,f=c,h=l*a),{visibleStartIndex:d+p,visibleStopIndex:f+h}}({renderProps:e,scrollState:S,layoutOrder:u,rowCount:F,columnCount:B});BO({renderProps:e,layoutOptions:z,maxCount:E.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(i)},ref:i}),gO)}}}({direction:p,layout:c,height:h,width:m,checkboxes:q,deducedFrequencyMode:fe,histogram:z,keyboard:S,showGray:w,interactionEvents:te,select:ne,selectAll:()=>{d.clearItemStates(!1),r.selectListObjectAll("/qListObjectDef")},onCtrlF:L,textAlign:ye,isVertical:ce,pages:Q,selectionState:d,isSingleSelect:N,selections:u,scrollState:E,local:A,sizes:he,listCount:me,overflowDisclaimer:{state:Z,set:e=>X((t=>l(l({},t),{},{show:e})))},setScrollPosition:be,focusListItems:{first:xe.first,setFirst:e=>Se((t=>l(l({},t),{},{first:e}))),last:xe.last,setLast:e=>Se((t=>l(l({},t),{},{last:e})))},setCurrentScrollIndex:k.set,constraints:i,frequencyMax:F,freqIsAllowed:pe,translator:T,showSearch:O,isModal:_,styles:I}),{columnWidth:Ce,listHeight:ke,itemHeight:Re}=he||{};return ce||(se=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:m,columnWidth:Ce,listHeight:ke,itemHeight:Re})),V.createElement(E_,null,V.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},ve),!me&&Y>0&&V.createElement(e_,{width:m,text:"Listbox.NoMatchesForYourTerms"}),V.createElement(lL,{isItemLoaded:ee,itemCount:me||1,loadMoreItems:K.with({minimumBatchSize:se}),threshold:0,minimumBatchSize:se,ref:D,role:"grid"},ce?we:Ee),Z.show&&!Z.dismissed&&V.createElement(m_,{text:"Listbox.ItemsOverflow",dismiss:()=>X((e=>l(l({},e),{},{dismissed:!0}))),parentWidth:null==D||null===(n=D.current)||void 0===n||null===(n=n._listRef)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.width,dense:null==re?void 0:re.dense}))}const k_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]}),R_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),L_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),O_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});var __=e=>{let{layout:t,model:n,translator:r,selectionState:o,isDirectQuery:a=!1}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:k_,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:L_,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectPossible("/qListObjectDef")}},!a&&{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:R_,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAlternative("/qListObjectDef")}},!a&&{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:O_,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectExcluded("/qListObjectDef")}}].filter(Boolean)};const I_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M2,6.5 L3,6.5 C3.55228475,6.5 4,6.94771525 4,7.5 L4,8.5 C4,9.05228475 3.55228475,9.5 3,9.5 L2,9.5 C1.44771525,9.5 1,9.05228475 1,8.5 L1,7.5 C1,6.94771525 1.44771525,6.5 2,6.5 Z M7.5,6.5 L8.5,6.5 C9.05228475,6.5 9.5,6.94771525 9.5,7.5 L9.5,8.5 C9.5,9.05228475 9.05228475,9.5 8.5,9.5 L7.5,9.5 C6.94771525,9.5 6.5,9.05228475 6.5,8.5 L6.5,7.5 C6.5,6.94771525 6.94771525,6.5 7.5,6.5 Z M13,6.5 L14,6.5 C14.5522847,6.5 15,6.94771525 15,7.5 L15,8.5 C15,9.05228475 14.5522847,9.5 14,9.5 L13,9.5 C12.4477153,9.5 12,9.05228475 12,8.5 L12,7.5 C12,6.94771525 12.4477153,6.5 13,6.5 Z"}}]});function T_(e){const t=Yb(),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 P_={className:"njs-cell-action"},M_=V.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const a=Yb(),{hidden:i,disabled:l,style:s,hasSvgIconShape:c}=T_(r);if(i)return null;const u=Number.parseInt(a.spacing(.5),10),d=r.keyboardAction||r.action,p=d?e=>["Enter"].includes(e.key)&&d():null,f=d?e=>[" ","Spacebar"].includes(e.key)&&d():null,h="actions-toolbar-".concat(r.key);return V.createElement(hS,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:p,onKeyUp:f,disabled:l,style:s,className:[P_.className,h].join(" "),size:"large",disableRipple:!0,"aria-expanded":n,"aria-controls":"moreMenuList","data-testid":h},c&&eL(r.getSvgIconShape()),o&&V.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),N_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]}),q_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]});var z_=e=>eL(q_(e));const D_="njs-action-toolbar-more",A_={icon:"".concat("More","-icon")},j_=Ty(rR)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(A_.icon," *")]:{color:t.palette.text.primary}}}));function F_(e){let{item:t,autoFocus:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:a,hasSvgIconShape:i}=T_(t);return o?null:V.createElement(sR,{autoFocus:n,title:t.label,onClick:()=>{t.action(),r()},disabled:a,tabindex:"0"},i&&V.createElement(jk,{className:A_.icon},eL(t.getSvgIconShape())),V.createElement(xS,{noWrap:!0},t.label))}const B_=V.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:o,popoverProps:i={},popoverPaperStyle:s={},onCloseOrActionClick:c=(()=>{})}=e;const u=n.length>0,d=n.findIndex((e=>!e.disabled));return u&&V.createElement(j_,a({},i,{onClose:c,ref:t,open:r,anchorEl:o.current,getContentAnchorEl:null,container:o.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:D_},paper:{style:l({pointerEvents:"auto",maxWidth:"250px"},s)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),V.createElement(Vk,{id:"moreMenuList"},n.map(((e,t)=>V.createElement(F_,{key:t,item:e,autoFocus:t===d,onActionClick:c})))))})),$_=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},W_=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 H_="ActionsToolbar",U_={item:"".concat(H_,"-item"),itemSpacing:"".concat(H_,"-itemSpacing")},V_=Ty(rR)((e=>{let{theme:t}=e;return{["& .".concat(U_.itemSpacing)]:{padding:t.spacing(0,.25)}}})),G_={className:"njs-action-toolbar-popover"},K_=V.forwardRef(((e,t)=>{let{className:n,ariaExpanded:r=!1,actions:o=[],addAnchor:a=!1,isRtl:i=!1}=e;return o.length>0?V.createElement(nk,{item:!0,container:!0,gap:0,flexDirection:i?"row-reverse":"row",wrap:"nowrap",className:n},o.map(((e,n)=>V.createElement(nk,{item:!0,key:e.key,className:"".concat(U_.itemSpacing," ").concat(U_.item)},V.createElement(M_,{ariaExpanded:r,key:e.key,item:e,ref:0===n?t:null,addAnchor:a}))))):null})),Z_={pointerEvents:"none"},X_={vertical:"bottom",horizontal:"right"};function Q_(e){var t,n;let{show:r=!0,actions:o=[],maxItems:a=3,selections:i={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:s,more:c={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:u={show:!1,anchorEl:null},focusHandler:d=null,actionsRefMock:p=null,isRtl:f,autoConfirm:h=!1,layout:m}=e;const g=function(e){let{api:t,layout:n,onConfirm:r=(()=>{}),onCancel:o=(()=>{}),onKeyDeactivate:a=(()=>{})}=e;const{translator:i}=U.useContext(qx);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(n),action:()=>t.clear(),getSvgIconShape:q_},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(n),action:()=>{o(),t.cancel()},keyboardAction:()=>{a(),o(),t.cancel()},getSvgIconShape:N_},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(n),action:()=>{r(),t.confirm()},keyboardAction:()=>{a(),r(),t.confirm()},getSvgIconShape:vL}]}(l(l({},i),{},{layout:m})),{translator:v,keyboardNavigation:b}=U.useContext(qx),[y,x]=U.useState(!1),S={vertical:12,horizontal:(null!==(t=null===(n=u.anchorEl)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)-7},w=U.useRef(),E=U.useRef(),C=Yb(),k=U.useMemo((()=>({margin:C.spacing(.5,0)}))),R=e=>{const t=w.current||p;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},L=U.useMemo((()=>function(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r,selections:o,isRtl:a}=e;return e=>{const{target:i,nativeEvent:l}=e,{keyCode:s}=l;switch(s){case uO.ARROW_LEFT:case uO.ARROW_DOWN:case uO.ARROW_RIGHT:case uO.ARROW_UP:if(i.classList.contains("njs-cell-action")){const e=$_(i);let t=[uO.ARROW_LEFT,uO.ARROW_DOWN].includes(s);t=a?!t:t,W_(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case uO.SPACE:e.preventDefault();break;case uO.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 uO.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:b,focusHandler:d,getEnabledButton:R,selections:i,isRtl:f})),[b,d,R,i,f]);if(U.useEffect((()=>()=>{x(!1)}),[u.show,r,i.show]),U.useEffect((()=>{if(!d)return;d.on("focus_toolbar_first",(()=>{const e=R(!1);null==e||e.focus()})),d.on("focus_toolbar_last",(()=>{const e=R(!0);null==e||e.focus()}))}),[]),h)return;let O=c.enabled,_=c.actions;const I=c.alignTo||E,T=o.filter((e=>!e.hidden));if(T.length>a){const e=T.splice(-(T.length-a)-1);O=!0,_=[...e,...c.actions]}if(!i.show&&0===T.length)return null;const P={key:"more",label:v.get("Menu.More"),getSvgIconShape:I_,hidden:!1,active:y,enabled:()=>O,action:()=>x(!y)},M=T.length>0,N=_.length>0,q=M&&i.show||N&&i.show,z=V.createElement(nk,{ref:w,onKeyDown:L,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:f?"row-reverse":"row"}},(null==s?void 0:s.length)&&V.createElement(K_,{className:"actions-toolbar-extra-actions",actions:s,isRtl:f}),M&&V.createElement(K_,{actions:T}),N&&V.createElement(K_,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:E,ariaExpanded:y,actions:[P],addAnchor:!0}),q&&V.createElement(nk,{item:!0,className:U_.itemSpacing,style:k},V.createElement(jC,{orientation:"vertical"})),i.show&&V.createElement(K_,{className:"actions-toolbar-default-actions",actions:g,isRtl:f}),y&&V.createElement(B_,{show:y,actions:_,alignTo:I,popoverProps:c.popoverProps,popoverPaperStyle:c.popoverPaperStyle,onCloseOrActionClick:()=>{x(!1)}}));return u.show?V.createElement(V_,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:u.show,anchorEl:u.anchorEl,anchorOrigin:S,transformOrigin:X_,hideBackdrop:!0,style:Z_,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:G_.className,style:{pointerEvents:"auto",padding:C.spacing(.5,.25)}}}},z):r&&z}var J_=e=>eL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(e));const Y_="/qListObjectDef",eI="**",tI=e=>null==e?void 0:e.substring(0,64e3),nI=Ty(vR,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})((e=>{let{theme:t,styles:n,dense:r,isRtl:o}=e,a={};return r&&(a={fontSize:12,paddingLeft:t.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}),l({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:n.search.backgroundColor,backdropFilter:n.background.backgroundImage?n.search.backdropFilter:void 0,paddingLeft:"".concat(wL,"px"),flexDirection:o?"row-reverse":"row","& fieldset":{borderColor:"".concat(n.search.borderColor),borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:"".concat(n.search.highlightBorderColor," !important")},"& .MuiInputBase-root":l({},n.search),"& *":{color:n.search.color},"& input":{color:n.search.color,textAlign:o?"right":"left"}},a)}));function rI(e){let{selections:t,selectionState:n,model:r,keyboard:o,dense:a=!1,visible:i=!0,autoFocus:l=!0,wildCardSearch:s=!1,searchEnabled:c,direction:u,hide:d,styles:p}=e;const{translator:f}=U.useContext(qx),[h,m]=U.useState(""),[g,v]=U.useState(!1),b=U.useRef(),{getStoreValue:y,setStoreValue:x}=JO(r),S="rtl"===u,w=async()=>{try{await r.abortListObjectSearch(Y_)}finally{m("")}};U.useEffect((()=>i?()=>w():()=>{}),[i]),U.useEffect((()=>(t.on("deactivated",w),()=>{t.removeListener&&t.removeListener("deactivated",w)})),[]),U.useEffect((()=>{if(g&&b.current){const e=h.length-1;b.current.setSelectionRange(e,e),v(!1)}}),[g,b.current]),U.useEffect((()=>{x("inputText",h)}),[h]);const E=async()=>{let e;const o=tI(h),a=await r.searchListObjectFor(Y_,o);return n.selectDisabled()?a:(a&&o.length&&y("listCount")>0&&(e=r.acceptListObjectSearch(Y_,!0),t.selectionsMade=!0,n.clearItemStates(!1),m("")),e)};function C(e){const t=(null==e?void 0:e.querySelector(".last-focused"))||(null==e?void 0:e.querySelector('[role="row"]:first-child'));null==t||t.setAttribute("tabIndex",0),null==t||t.focus()}return i&&!1!==c?V.createElement(nI,{styles:p,dense:a,isRtl:S,startAdornment:V.createElement(vk,{position:"start"},V.createElement(J_,{size:a?"small":"normal"})),className:"search",inputRef:b,size:"small",fullWidth:!0,placeholder:f.get("Listbox.Search"),value:h,onFocus:()=>{s&&(m(eI),v(!0))},onChange:async e=>{const t=tI(e.target.value);return m(t),t.length?r.searchListObjectFor(Y_,t):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.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,"data-testid":"search-input-field","aria-label":f.get("Listbox.Search.ScreenReaderInstructions")}}):null}function oI(e){if(!e.session)return[];const{selectionStore:t}=U.useContext(qx),[n]=t.useAppSelectionsStore(),r=e?e.id:null;let o=n.get(r);return U.useEffect((()=>{e&&!o&&(o=function(e){let{app:t,selectionStore:n}=e;const r="".concat(t.id),{modalObjectStore:o,appModalStore:a}=n,i=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{model:t,objectSelections:n}=o.get(r)||{};t&&(await t.endSelections(e),o.clear(r),n.emit("deactivated"))},l={begin:async e=>{var n;let{model:a,paths:l,accept:s=!0,objectSelections:c}=e;if(c===(null===(n=o.get(r))||void 0===n?void 0:n.objectSelections))return;i(s),o.set(r,{model:a,objectSelections:c});const u=Array.isArray(l)?l:[l],d=async e=>{try{await a.beginSelections(u),o.set(r,{model:a,objectSelections:c})}catch(n){6003!==n.code||e?o.clear(r):(await t.abortModal(s),d(!0))}};await d()},end:i};a.set(r,l);const s={model:t,isInModal:()=>!!o.get(r),isModal(e){var t;return e?(null===(t=o.get(r))||void 0===t?void 0:t.objectSelections)===e:!!o.get(r)},forward:()=>l.end().then((()=>t.forward())),back:()=>l.end().then((()=>t.back())),clear:()=>l.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return l.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return s}({app:e,selectionStore:t}),n.set(r,o),n.dispatch(!0))}),[e]),[o]}function aI(e){return Object.keys(ee.prototype).forEach((t=>{e[t]=ee.prototype[t]})),ee.init(e),e}const iI=e=>{let t,{appSelections:n,appModal:r,model:o}=e,a=!1,i=!1;const l={id:o.id,setLayout(e){t=e},begin(e){const t=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",t),t.isPrevented()?Promise.resolve():(a=!0,this.emit("activated"),r.begin({model:o,paths:e,accept:!0,objectSelections:l}))},clear(){return i=!1,this.emit("cleared"),t.qListObject?o.clearSelections("/qListObjectDef"):o.resetMadeSelections()},confirm(){return i=!1,a=!1,this.emit("confirmed"),this.emit("deactivated"),r.end(!0)},cancel(){return i=!1,a=!1,this.emit("canceled"),this.emit("deactivated"),r.end(!1)},async select(e){const t=this.begin([e.params[0]]);if(!n.isModal())return!1;await t;const r=await o[e.method](...e.params);return i="resetMadeSelections"!==e.method,!!r||(o.resetMadeSelections(),!1)},canClear:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked&&!t.qListObject.qDimensionInfo.qIsOneAndOnlyOne:i,canConfirm:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:i,canCancel:()=>!(t&&t.qListObject&&t.qListObject.qDimensionInfo)||!t.qListObject.qDimensionInfo.qLocked,isActive:()=>a,isModal:()=>n.isModal(l),goModal:e=>r.begin({model:o,paths:e,accept:!1,objectSelections:l}),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return aI(l),l},lI=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 sI(e,t,n,r){const o=Array.isArray(n)?n:[n],[a]=oI(e),[i]=XR(t),{appModalStore:l}=U.useContext(qx).selectionStore,s=l.get(e.id),[c,u]=U.useState();return U.useEffect((()=>{a&&t&&!c&&u(iI({appSelections:a,appModal:s,model:t}))}),[a,t]),U.useEffect((()=>{if(!c)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=lI({elements:o,objectSelections:c,options:r});return c.addListener("activated",e),c.addListener("deactivated",t),()=>{c.isActive()&&c.confirm(),c.removeListener("activated",e),c.removeListener("deactivated",t)}}),[c]),U.useEffect((()=>{c&&c.setLayout(i)}),[c,i]),[c]}function cI(){const e=l(l({itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{update(t){var n,r;let{setPages:o,pages:a,isSingleSelect:i,selectDisabled:l,layout:s}=t;this.setPages=o;const c=this.lastRowCount===s.qListObject.qSize.qcy,u=this.lastApprMaxGlyphCount===s.qListObject.qDimensionInfo.qApprMaxGlyphCount;c&&u||(this.lastRowCount=s.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=s.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==a&&void 0!==a&&(e.enginePages=null!=a?a:[],e.selectedInEngine=uL(a),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=i,e.selectDisabled=l||e.selectDisabled,e.isDimCalculated=null!==(n=null==s||null===(r=s.qListObject)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.qIsCalculated)&&void 0!==n&&n},allowedToSelect:()=>!e.selectDisabled()&&!(e.isDimCalculated&&e.selectableValuesUpdating),setSelectableValuesUpdating(){e.selectableValuesUpdating=!0},useClientItemState:t=>e.ignoreSelectionState||t in e.itemStates,isSelected:t=>e.useClientItemState(t)?!!e.itemStates[t]:e.selectedInEngine.includes(t),getState(t){const{qElemNumber:n,qState:r}=t;return e.useClientItemState(n)?e.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(t,n,r){const o=e.isSelected(t);o&&!n?e.itemStates[t]=!1:o||(null==r||r.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages(t){const n=t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[l(l({},n),{},{qState:r}),...t.slice(1)]}));return l(l({},t),{},{qMatrix:n})}));return n},updateItem(t,n,r){e.updateItemNoEvents(t,n,r),e.triggerStateChanged()},updateItems(t,n,r){t.forEach((t=>{e.updateItemNoEvents(t,n,r)})),e.triggerStateChanged()},clearItemStates(t){e.itemStates={},e.ignoreSelectionState=t}});return e}const uI=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 dI(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return uI(t,"qSelected",0)+uI(t,"qSelectedExcluded",0)+uI(t,"qLocked",0)+uI(t,"qLockedExcluded",0)>0}const pI={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},fI=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,hI=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,mI=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,gI=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,vI=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,bI=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:yI}=Math,{round:xI}=Math;class SI{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r,o,a,i,l,s,c,u,d,p,f,h,m=0,g=0,v=0,b=1;if(this._invalid=!1,t[0]instanceof SI)m=t[0]._r,g=t[0]._g,v=t[0]._b,b=t[0]._a,this._invalid=t[0]._invalid;else if(t.length<3)if("string"==typeof t[0])if(h=t[0],f=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))m=parseInt(f[1],10),g=parseInt(f[2],10),v=parseInt(f[3],10);else if(f=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(h))m=parseInt(f[1],10),g=parseInt(f[2],10),v=parseInt(f[3],10),b=parseFloat(f[4]);else if(f=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))b=parseInt(f[1],10)/255,m=parseInt(f[2],10),g=parseInt(f[3],10),v=parseInt(f[4],10);else if(f=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(h))m=parseInt(f[1],16),g=parseInt(f[2],16),v=parseInt(f[3],16),b=1;else if(f=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(h))m=parseInt(f[1]+f[1],16),g=parseInt(f[2]+f[2],16),v=parseInt(f[3]+f[3],16),b=1;else if(f=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),i=parseFloat(f[5]),r%=360,o/=100,i/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,i=i<0?0:i>1?1:i,s=i<=.5?2*i*o:(2-2*i)*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=i-.5*s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=xI(255*m),g=xI(255*g),v=xI(255*v),b=1}else if(f=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),i=parseFloat(f[5]),b=parseFloat(f[7]),r%=360,o/=100,i/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,i=i<0?0:i>1?1:i,s=i<=.5?2*i*o:(2-2*i)*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=i-.5*s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=xI(255*m),g=xI(255*g),v=xI(255*v)}else if(f=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),l=parseFloat(f[5]),r%=360,o/=100,l/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,l=l<0?0:l>1?1:l,s=l*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=l-s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=xI(255*m),g=xI(255*g),v=xI(255*v),b=1}else pI[h.toLowerCase()]?(a=h.toLowerCase(),m=pI[a].r,g=pI[a].g,v=pI[a].b,b="number"==typeof pI[a].a?pI[a].a:1):this._invalid=!0;else"number"==typeof t[0]&&t[0]>=0&&"argb"===t[1]?(b=(4278190080&t[0])>>>24,b/=255,m=(16711680&t[0])>>16,g=(65280&t[0])>>8,v=255&t[0]):"number"==typeof t[0]&&t[0]>=0?(m=(16711680&t[0])>>16,g=(65280&t[0])>>8,v=255&t[0]):this._invalid=!0;else t.length>=3?(m=t[0],g=t[1],v=t[2],b=arguments.length>=4?t[3]:1):this._invalid=!0;Number.isNaN(+m+g+v+b)&&(this._invalid=!0),this._r=yI(m),this._g=yI(g),this._b=yI(v),this._a=b,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=SI.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=SI.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=SI.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=SI.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=SI.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=SI.toHSLA(this,e)),this._spaces.hsla}toHSV(){const e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=SI.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=SI.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(e){const t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]);let a=parseFloat(n[5]);const i=parseFloat(n[7]);return a+=e,a=Math.max(0,Math.min(a,100)),"hsla(".concat(r,",").concat(o,",").concat(a,",").concat(i,")")}isEqual(e){return e instanceof SI||(e=new SI(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){const n=yI(this._r+(e._r-this._r)*t),r=yI(this._g+(e._g-this._g)*t),o=yI(this._b+(e._b-this._b)*t),a=yI(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,a].join(","),")")}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),n=this._g<126?1:1+this._g/512,r=this.shiftLuminance(20*(t*n<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new SI(r)}static toRGB(e){if(e instanceof SI)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=SI.toNumber(e));const t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")}static toRGBA(e,t){if(e instanceof SI)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=SI.toNumber(e));const n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")}static toHex(e){let t,n,r;return e instanceof SI?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=SI.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))}static toHSL(e,t){let n,r,o,a=0;"string"==typeof e&&(e=new SI(e));const i=e._r/255,l=e._g/255,s=e._b/255,c=Math.max(i,l,s),u=Math.min(i,l,s);if(r=t?.21*i+.72*l+.07*s:(c+u)/2,c===u)n=0,a=0;else{switch(o=c-u,n=r>.5?o/(2-c-u):o/(c+u),c){case i:a=(l-s)/o+(l<s?6:0);break;case l:a=(s-i)/o+2;break;case s:a=(i-l)/o+4}a/=6}return"hsl(".concat(360*a,",").concat(100*n,",").concat(100*r,")")}static toHSLA(e,t){let n,r,o,a=0;"string"==typeof e&&(e=new SI(e));const i=e._r/255,l=e._g/255,s=e._b/255,c=e._a,u=Math.max(i,l,s),d=Math.min(i,l,s);if(r=t?.21*i+.72*l+.07*s:(u+d)/2,u===d)n=0,a=0;else{switch(o=u-d,n=r>.5?o/(2-u-d):o/(u+d),u){case i:a=(l-s)/o+(l<s?6:0);break;case l:a=(s-i)/o+2;break;case s:a=(i-l)/o+4}a/=6}return"hsla(".concat(360*a,",").concat(100*n,",").concat(100*r,",").concat(c,")")}static toHSVComponents(e){let t,n,r=0;"string"==typeof e&&(e=new SI(e));const o=e._r/255,a=e._g/255,i=e._b/255,l=Math.max(o,a,i),s=Math.min(o,a,i),c=l;if(l===s)t=0,r=0;else{switch(n=l-s,t=0===n?0:n/c,l){case o:r=(a-i)/n+(a<i?6:0);break;case a:r=(i-o)/n+2;break;case i:r=(o-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}static toNumber(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length&&t[0]instanceof SI)return(t[0]._r<<16)+(t[0]._g<<8)+t[0]._b;let r,o,a=0,i=0,l=0;return 1===t.length&&"string"==typeof t[0]&&(o=t[0],(r=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(o))?(a=parseInt(r[1],10),i=parseInt(r[2],10),l=parseInt(r[3],10)):(r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(o))?(a=parseInt(r[1],16),i=parseInt(r[2],16),l=parseInt(r[3],16)):(r=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(o))&&(a=parseInt(r[1]+r[1],16),i=parseInt(r[2]+r[2],16),l=parseInt(r[3]+r[3],16))),(a<<16)+(i<<8)+l}static blend(e,t,n){const r=(16711680&(e=SI.toNumber(e)))>>16,o=(65280&e)>>8,a=255&e;return(r+(((16711680&(t=SI.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(a+((255&t)-a)*n)}static getBlend(e,t,n){const r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,a=e._b+(t._b-e._b)*n,i=e._a+(t._a-e._a)*n;return new SI(r,o,a,i)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(fI.test(e)||hI.test(e)||mI.test(e)||gI.test(e)||vI.test(e)||bI.test(e)||pI[e.toLowerCase()])}static getBestContrast(e,t,n){const r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n}static getContrast(e,t){if(!e||!t)return;const n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}static isDark(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new SI(...t).isDark(...t)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}const wI=/,(?![^(]*\))/,EI=/\s(?![^(]*\))/,CI=/^[0-9]+[a-zA-Z%]+?$/,kI=["none","inset","initial","inherit"],RI=e=>{if(!e)return;const t=e.split(EI).filter((e=>!kI.includes(e.toLowerCase()))).at(-1),n=!t||(e=>"0"===e||CI.test(e))(t)||kI.includes(t.toLowerCase())?void 0:t;return n},LI=e=>e?e.split(wI).map((e=>e.trim())):[];function OI(e,t,n,r){return n&&r?n.getStyle("object.".concat(r),e,t):n?n.getStyle("",e,t):void 0}const _I=!0;function II(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e,_I):void 0:OI(t,n,r,o)}const TI={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},PI={"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 MI(e,t){return t?function(e){var t;let n,r,o,a;return null!=e&&null!==(t=e.session)&&void 0!==t&&t.config?(n=e.session.config,r=new URL(n.url),a="wss:"===r.protocol,o=a?"https://":"http://",o+r.host):""}(e)+t:void 0}function NI(e,t){const n=null==e?void 0:e.bgImage;if(n){let r="";if("media"===n.mode||"media"===e.useImage){const e=null==n?void 0:n.mediaUrl,{qUrl:o}=(null==e?void 0:e.qStaticContentUrl)||{};r=o?decodeURIComponent(o):void 0,r=MI(t,r)}"expression"===n.mode&&(r=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const o=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=PI[e.bgImage.position]),n}(e),a=function(e){var t;let n=TI.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=TI[r]),n}(e);return r?{url:r,pos:o,size:a}:void 0}}function qI(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):II(null==r?void 0:r.color,"","backgroundColor",t,n)}function zI(e,t,n){var r,o;const a=OI("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&kI.includes(e.toLowerCase()))return e.toLowerCase();const r=LI(e);if(1!==r.length)return e;let o=n;if(!o){const n=LI(t);if(1!==n.length)return e;o=RI(n[0])}if(!o)return e;const a=RI(r[0]);return a?e.replace(a,o):"".concat(e," ").concat(o)})((null==e||null===(r=e.shadow)||void 0===r?void 0:r.boxShadow)||a,a,II(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function DI(e,t,n,r){var o;const a=(null==e||null===(o=e.title)||void 0===o?void 0:o[t])||{},i=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(a.fontStyle,t);return{fontFamily:a.fontFamily||n.getStyle("object.".concat(r),"title.".concat(t),"fontFamily"),fontSize:a.fontSize||n.getStyle("object.".concat(r),"title.".concat(t),"fontSize"),color:a.color&&"none"!==a.color.color?n.getColorPickerColor(a.color,!0):n.getStyle("object.".concat(r),t,"color"),fontWeight:i.includes("bold")?"bold":"normal",fontStyle:i.includes("italic")?"italic":"normal",textDecoration:i.includes("underline")?"underline":"initial"}}const AI="#FFF",jI="#000",FI=1.5,BI=3,$I=(e,t)=>{let n=!1;const r=new SI(e),o=new SI(t);if(!(o.isInvalid()||r.isInvalid()||o.getAlpha()<1||r.getAlpha()<1)){try{n=SI.getContrast(r,o)}catch(e){n=void 0}return n}};function WI(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:jI,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:AI;const o=new SI(r),a=new SI(e),i=new SI(t);if(a.isInvalid()||i.isInvalid()||a.getAlpha()<1||i.getAlpha()<1)return t;const l=$I(o,a),s=$I(i,a),c=l>s||l>BI;let u;return u=t&&s>FI&&!c?t:c?r:n,u}const HI=["theme","selections"];function UI(e){var t,n,r,o,a,i,l,s;let{app:c,themeApi:u,theme:d,components:p=[],checkboxes:f=!1}=e;const h=function(){const e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const n=null==t?void 0:t.key;HI.includes(n)&&(e[n]=t)})),e}(p),m=(e,t)=>u.getStyle("object.listBox",e,t),g=e=>(null==e?void 0:e.index)>0||null!=e&&e.color?u.getColorPickerColor(e,!1):void 0,v=function(e){var t,n,r,o,a,i,l,s,c,u,d,p,f,h,m;let{getColorPickerColor:g,theme:v,getListboxStyle:b,overrides:y,checkboxes:x}=e;const S=g(null===(t=y.theme)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.fontColor)||b("content","color")||(null===(n=v.palette)||void 0===n?void 0:n.text.primary),w=!x&&(null===(r=null===(o=y.theme)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.useContrastColor)||void 0===r||r),E=(null===(a=y.selections)||void 0===a?void 0:a.colors)||{},C=g(E.selected)||(null===(i=v.palette)||void 0===i?void 0:i.selected.main)||"#009845",k=g(E.alternative)||(null===(l=v.palette)||void 0===l?void 0:l.selected.alternative)||"#E4E4E4",R=g(E.excluded)||(null===(s=v.palette)||void 0===s?void 0:s.selected.excluded)||"#A9A9A9",L=g(E.selectedExcluded)||(null===(c=v.palette)||void 0===c?void 0:c.selected.selectedExcluded)||"#A9A9A9",O=g(E.possible)||b("","backgroundColor")||(null===(u=v.palette)||void 0===u?void 0:u.selected.possible)||"#FFFFFF";let _=S||(null===(d=v.palette)||void 0===d?void 0:d.selected.selectedContrastText),I=S||(null===(p=v.palette)||void 0===p?void 0:p.selected.alternativeContrastText),T=S||(null===(f=v.palette)||void 0===f?void 0:f.selected.excludedContrastText),P=S||(null===(h=v.palette)||void 0===h?void 0:h.selected.selectedExcludedContrastText),M=S||(null===(m=v.palette)||void 0===m?void 0:m.selected.possibleContrastText);return w&&(_=WI(C,S),I=WI(k,S),T=WI(R,S),P=WI(L,S),M=WI(O,S)),{selected:C,alternative:k,excluded:R,selectedExcluded:L,possible:O,selectedContrast:_,alternativeContrast:I,excludedContrast:T,selectedExcludedContrast:P,possibleContrast:M}}({getColorPickerColor:g,theme:d,getListboxStyle:m,overrides:h,checkboxes:f}),b=h.theme||{},y=g(null===(t=b.header)||void 0===t?void 0:t.fontColor)||m("title.main","color"),x=function(e){let t,{themeApi:n,themeOverrides:r}=e;const o=null==r?void 0:r.background;return o?(t=null!=o&&o.useExpression?qI({bgColor:o},n,"listBox"):n.getColorPickerColor(null==o?void 0:o.color,!1),t):t}({themeApi:u,themeOverrides:b}),S=null!==(n=b.background)&&void 0!==n&&n.image?NI({bgImage:b.background.image},c):void 0,w=x||m("","backgroundColor")||d.palette.background.default,E=function(e,t){const n=new SI(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.toRGBA()}(w,m),C=function(e){return WI("#fff",e("content","color"))}(m),k=(null===(r=b.header)||void 0===r?void 0:r.fontStyle)||{},R=(null===(o=b.content)||void 0===o?void 0:o.fontStyle)||{},L=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:w,backgroundImage:null==S||!S.url||null!=S&&S.url.startsWith("url(")?void 0:"url('".concat(S.url,"')"),backgroundRepeat:"no-repeat",backgroundSize:null==S?void 0:S.size,backgroundPosition:null==S?void 0:S.pos},header:{color:y,fontSize:(null===(a=b.header)||void 0===a?void 0:a.fontSize)||m("title.main","fontSize"),fontFamily:(null===(i=b.header)||void 0===i?void 0:i.fontFamily)||m("title.main","fontFamily"),fontWeight:L(k.bold,"bold","normal")||m("title.main","fontWeight")||"bold",textDecoration:k.underline?"underline":"initial",fontStyle:L(k.italic,"italic","normal")||m("title.main","fontStyle")||"initial"},content:{backgroundColor:f?void 0:v.possible,color:v.possibleContrast||m("content","color"),fontSize:(null===(l=b.content)||void 0===l?void 0:l.fontSize)||m("content","fontSize"),fontFamily:(null===(s=b.content)||void 0===s?void 0:s.fontFamily)||m("content","fontFamily"),fontWeight:L(R.bold,"bold","normal")||m("content","fontWeight")||"normal",textDecoration:R.underline?"underline":"initial",fontStyle:L(R.italic,"italic","normal")||m("content","fontStyle")||"initial"},search:{color:C,borderColor:d.palette.divider,highlightBorderColor:d.palette.custom.focusBorder,backgroundColor:E,backdropFilter:"blur(8px)"},selections:v}}function VI(e){let{alignTo:t,anchorOrigin:n={vertical:"bottom",horizontal:"center"},transformOrigin:r={vertical:"top",horizontal:"center"},show:o,close:a,app:i,fieldName:l,stateName:s="$",autoFocus:c,components:u,checkboxes:d,selectDisabled:p=(()=>!1)}=e;const f=Boolean(null==l?void 0:l.qLibraryId),h=o&&Boolean(t.current),[m,g]=U.useState(0),v=Yb(),b=U.useRef(),[y]=HR({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:f?void 0:[l]},qLibraryId:f?l.qLibraryId:void 0}},i,l,s),x=U.useCallback((()=>{y.lock("/qListObjectDef")}),[y]),S=U.useCallback((()=>{y.unlock("/qListObjectDef")}),[y]),{translator:w,themeApi:E}=U.useContext(qx),C=U.useRef(),k=U.useRef(),[R]=sI(i,y,k),[L]=XR(y),[O]=U.useState((()=>cI({selectDisabled:p}))),{checkboxes:_=d}=L||{},I=UI({themeApi:E,theme:v,components:u,checkboxes:_});if(U.useEffect((()=>{R&&h&&(R.isModal(y)||R.goModal("/qListObjectDef"))}),[R,h]),!y||!L||!w)return null;const T=!0===L.qListObject.qDimensionInfo.qLocked,P=(e,t)=>{const n="escapeKeyDown"!==t;R.noModal(n),a()},M=__({layout:L,model:y,translator:w,selectionState:O}),N=dI(L);return V.createElement(rR,{open:h,onClose:P,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?P():void 0},V.createElement(nk,{container:!0,direction:"column",gap:0,ref:k},V.createElement(nk,{item:!0,container:!0,style:{padding:v.spacing(1)}},V.createElement(nk,{item:!0},T?V.createElement(hS,{onClick:S,disabled:!T,size:"large"},V.createElement(nL,{title:w.get("Listbox.Unlock")})):V.createElement(hS,{onClick:x,disabled:!N,size:"large"},V.createElement(oL,{title:w.get("Listbox.Lock")}))),V.createElement(nk,{item:!0,xs:!0}),V.createElement(nk,{item:!0},V.createElement(Q_,{layout:L,more:{enabled:!T,actions:M,alignTo:C,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:R,onConfirm:P,onCancel:()=>P(0,"escapeKeyDown")}}))),V.createElement(nk,{item:!0,xs:!0},V.createElement("div",{ref:C}),V.createElement(nk,{item:!0,ref:b},V.createElement(rI,{styles:I,visible:!0,model:y,listCount:m,selections:R,selectionState:O,keyboard:{enabled:!1},autoFocus:null==c||c})),V.createElement(C_,{model:y,app:i,layout:L,selections:R,selectionState:O,direction:"ltr",onSetListCount:e=>g(e),onCtrlF:()=>{const e=b.current.querySelector("input");null==e||e.focus()},styles:I}))))}function GI(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:a=null,onClose:i=(()=>{})}=e;const{translator:l}=U.useContext(qx),s=a||U.useRef(),c=Yb(),[u,d]=U.useState(!1),p=e=>{e.currentTarget.contains(e.target)&&d(!u)},f=()=>{d(!1),i()},h=t.selections[r];void 0===h.qTotal&&(h.qTotal=0);const m=h.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},g=(m.qSelected+m.qLocked)/h.qTotal,v=m.qAlternative/h.qTotal,b=(m.qExcluded+m.qLockedExcluded+m.qSelectedExcluded)/h.qTotal,y=m.qSelected+m.qSelectedExcluded+m.qLocked+m.qLockedExcluded,x=0===y&&0===h.qTotal;let S="";h.qTotal===y&&h.qTotal>1?S=l.get("CurrentSelections.All"):y>1&&h.qTotal?S=l.get("CurrentSelections.Of",[y,h.qTotal]):h.qSelectedFieldSelectionInfo&&(S=h.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==t.states[r]&&(S="".concat(t.states[r],": ").concat(S));const w=[{color:c.palette.selected.main,ratio:g},{color:c.palette.selected.alternative,ratio:v},{color:c.palette.selected.excluded,ratio:b}];w.forEach(((e,t)=>{e.offset=t?w[t-1].offset+w[t-1].ratio:0}));let E=null,C=null,k=null,R=null;return a||(E=V.createElement(nk,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:h.qLocked?"0.3":""}},V.createElement(xS,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},h.qField),V.createElement(xS,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},S)),h.qLocked?C=V.createElement(nk,{item:!0},V.createElement(hS,{size:"large"},V.createElement(nL,null))):h.qOneAndOnlyOne||(C=V.createElement(nk,{item:!0},V.createElement(hS,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(h.qField,t.states[r])},size:"large"},V.createElement(tL,null)))),k=V.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===x&&w.map((e=>V.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:"".concat(100*e.ratio,"%"),left:"".concat(100*e.offset,"%")}})))),R=V.createElement(nk,{container:!0,gap:1,ref:s,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===o&&p||null},E,C,k,u&&V.createElement(VI,{alignTo:s,show:u,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}))),a?V.createElement(VI,{alignTo:s,show:!0,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}):R}var KI=e=>eL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(e));const ZI={item:"".concat("MultiState","-item")},XI=Ty(nk)((e=>{let{theme:t}=e;return{["&.".concat(ZI.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function QI(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[a,i]=U.useState(!!r),[l,s]=U.useState(-1),[c,u]=U.useState(r?r.current:null),d=r||U.useRef(),{translator:p}=U.useContext(qx),f=p.get("Selection.ClearAllStates"),h=()=>{s(-1),o()};let m=null;r||(m=V.createElement(V.Fragment,null,V.createElement(nk,{item:!0,xs:!0,zeroMinWidth:!0},V.createElement(ZE,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},V.createElement(xS,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.name))),V.createElement(nk,{item:!0},V.createElement("div",{style:{width:"12px"}})),V.createElement(nk,{item:!0},V.createElement(hS,{size:"large"},V.createElement(KI,null)))));const g=V.createElement(wk,{dense:!0},V.createElement(Nk,{title:f,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},V.createElement(Lx,{variant:"contained",fullWidth:!0},f)),t.states.map(((e,r)=>V.createElement(Nk,{key:r,title:t.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),s(t)})(e,r)},V.createElement(JE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},V.createElement(GI,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),v=V.createElement(rR,{open:a,onClose:()=>{i(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},g),b=r?v:V.createElement(XI,{container:!0,gap:0,className:ZI.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),d.current=e.currentTarget,i(!a))}},m,a&&v,l>-1&&V.createElement(VI,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}));return r&&l>-1?V.createElement(VI,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):b}const JI="More",YI={item:"".concat(JI,"-item"),badge:"".concat(JI,"-badge")},eT=Ty(nk)((e=>{let{theme:t}=e;return{["&.".concat(YI.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(YI.badge)]:{padding:t.spacing(0,1)}}}));function tT(e){let{items:t=[],api:n}=e;const r=Yb(),[o,a]=U.useState(!1),[i,l]=U.useState(-1),[s,c]=U.useState(null),u=U.useRef(),d=()=>{l(-1)};let p=null;return i>-1&&(p=t[i].states.length>1?V.createElement(QI,{field:t[i],api:n,moreAlignTo:u,onClose:d}):V.createElement(GI,{field:t[i],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:d})),V.createElement(eT,{container:!0,gap:0,className:YI.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,a(!o))}},V.createElement(nk,{item:!0},V.createElement(JE,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},V.createElement(xS,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),V.createElement(nk,{item:!0},V.createElement(hS,{size:"large"},V.createElement(KI,null))),o&&V.createElement(rR,{open:o,onClose:()=>{a(!1)},anchorEl:s,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},V.createElement(wk,{dense:!0},t.map(((e,t)=>V.createElement(Nk,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),l(t)})(e,t)},V.createElement(JE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?V.createElement(QI,{field:e,api:n}):V.createElement(GI,{field:e,api:n}))))))),p)}const nT=120,rT=72;function oT(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 aT(e){let{api:t,app:n}=e;const r=Yb(),[o]=VR(n),[a]=XR(o),[i,l]=U.useState({items:[],more:[]}),{modalObjectStore:s}=U.useContext(qx).selectionStore,[c,u]=JR(),[d,p]=U.useState(0);return U.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-rT,n=Math.floor(t/nT);p(n)}),[u]),U.useEffect((()=>{if(!(n&&o&&a&&d))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&oT(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>oT(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(a);l((t=>{const r=e;if((()=>{const{model:e}=s.get(n.id)||{};return"njsListbox"===(null==e?void 0:e.genericType)})()&&r.length+1===t.items.length){const e=t.items.filter((e=>!1===r.some((t=>e.name===t.name))))[0],{qField:n}=e.selections[0];e.selections=[{qField:n}];const o=t.items.indexOf(e);r.splice(o,0,e)}let o=[];return d<r.length&&(o=r.splice(d-r.length)),{items:r,more:o}}))}),[n,o,a,t.isInModal(),d]),V.createElement(nk,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},i.items.map((e=>V.createElement(nk,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(nT,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?V.createElement(QI,{field:e,api:t}):V.createElement(GI,{field:e,api:t})))),i.more.length>0&&V.createElement(nk,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(rT,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},V.createElement(tT,{items:i.more,api:t})))}var iT=e=>eL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(e));var lT=e=>eL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));const sT=(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 cT(e){let{api:t,app:n}=e;const{translator:r}=U.useContext(qx),[o]=function(e){const[t]=VR(e),[n]=XR(t),[r]=QR(e),[o,a]=U.useState(null);return U.useEffect((()=>{r&&t&&n&&sT(t,n,r)}),[r,t,n]),U.useEffect((()=>{if(!n)return;let e=!1,t=!1,r=!1;[n,...n.alternateStates||[]].forEach((n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,r=r||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),a({canGoBack:e,canGoForward:t,canClear:r})}),[n]),[o,t,n]}(n);return V.createElement(nk,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},V.createElement(nk,{item:!0},V.createElement(hS,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},V.createElement(iT,null))),V.createElement(nk,{item:!0},V.createElement(hS,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},V.createElement(lT,null))),V.createElement(nk,{item:!0},V.createElement(hS,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},V.createElement(z_,null))))}const uT=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function dT(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function pT(){return uT.map(dT).join("")}function fT(e){let{app:t}=e;const n=Yb(),[r]=oI(t);return r?V.createElement(nk,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},V.createElement(nk,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},V.createElement(cT,{api:r,app:t})),V.createElement(nk,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},V.createElement(aT,{api:r,app:t}))):null}let hT;hT="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let mT=null,gT=null;const vT=hT.clearTimeout,bT=hT.setTimeout,yT=hT.cancelAnimationFrame||hT.mozCancelAnimationFrame||hT.webkitCancelAnimationFrame,xT=hT.requestAnimationFrame||hT.mozRequestAnimationFrame||hT.webkitRequestAnimationFrame;function ST(e){let t,n,r,o,a,i,l;const s="undefined"!=typeof document&&document.attachEvent;if(!s){i=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},a=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},l=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;i(this),this.__resizeRAF__&&mT(this.__resizeRAF__),this.__resizeRAF__=gT((function(){a(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,s="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],s="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+s+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=s+"animation: 1ms "+n+"; "}return{addResizeListener:function(a,c){if(s)a.attachEvent("onresize",c);else{if(!a.__resizeTriggers__){const s=a.ownerDocument,c=hT.getComputedStyle(a);c&&"static"===c.position&&(a.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',a=n.head||n.getElementsByTagName("head")[0],i=n.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=r:i.appendChild(n.createTextNode(r)),a.appendChild(i)}}(s),a.__resizeLast__={},a.__resizeListeners__=[],(a.__resizeTriggers__=s.createElement("div")).className="resize-triggers";const u=s.createElement("div");u.className="expand-trigger",u.appendChild(s.createElement("div"));const d=s.createElement("div");d.className="contract-trigger",a.__resizeTriggers__.appendChild(u),a.__resizeTriggers__.appendChild(d),a.appendChild(a.__resizeTriggers__),i(a),a.addEventListener("scroll",l,!0),r&&(a.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&i(a)},a.__resizeTriggers__.addEventListener(r,a.__resizeTriggers__.__animationListener__))}a.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(s)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==yT||null==xT?(mT=vT,gT=function(e){return bT(e,20)}):(mT=function([e,t]){yT(e),vT(t)},gT=function(e){const t=xT((function(){vT(n),e()})),n=bT((function(){yT(t),e()}),20);return[t,n]});class wT extends U.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),a=parseFloat(r.paddingRight||"0"),i=parseFloat(r.paddingTop||"0"),l=parseFloat(r.paddingBottom||"0"),s=this._parentNode.getBoundingClientRect(),c=s.height-i-l,u=s.width-o-a,d=this._parentNode.offsetHeight-i-l,p=this._parentNode.offsetWidth-o-a;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===p&&this.state.scaledWidth===u)||(this.setState({height:d,width:p,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:p}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=ST(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:i,onResize:l,style:s={},tagName:c="div",...u}=this.props,{height:d,scaledHeight:p,scaledWidth:f,width:h}=this.state,m={overflow:"visible"},g={};let v=!1;return r||(0===d&&(v=!0),m.height=0,g.height=d,g.scaledHeight=p),o||(0===h&&(v=!0),m.width=0,g.width=h,g.scaledWidth=f),a&&(v=!1),U.createElement(c,{ref:this._setRef,style:{...m,...s},...u},!v&&e(g))}}function ET(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function CT(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))}function kT(e){let{keyboard:t,hovering:n,updateKeyScroll:r,containerRef:o,currentScrollIndex:a,isModal:i,constraints:l}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,a=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const l=e.currentTarget.closest(".listbox-container"),s=i();switch(n){case uO.TAB:if(s)r?fO(l)||pO(l):pO(l)||fO(l);else{if(!r)break;t.blur(!0)}a();break;case uO.ENTER:case uO.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),a();break;case uO.ESCAPE:(e=>{const{currentTarget:n,target:r}=e,a=r.classList.contains("listbox-container"),i=CT(n.closest(".listbox-container")),l=1===(null==i?void 0:i.querySelectorAll(".listbox-container").length);if(a||l)t.blur(!0);else{ET(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:()=>{n.current=!0},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current||(()=>{const e=(null==l?void 0:l.select)||(null==l?void 0:l.active),t=i();return e||t})())return;const{keyCode:t,ctrlKey:o=!1,shiftKey:s=!1}=e;switch(t){case uO.ARROW_UP:r({up:1});break;case uO.ARROW_DOWN:r({down:1});break;case uO.PAGE_UP:r({up:a.stop-a.start});break;case uO.PAGE_DOWN:r({down:a.stop-a.start});break;case uO.HOME:r({scrollPosition:o&&s?"overflowStart":"start"});break;case uO.END:r({scrollPosition:o&&s?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const RT=Ty("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function LT(e){let{text:t}=e;const{translator:n}=U.useContext(qx);return V.createElement(RT,null,n.get(t))}const OT={fontSize:"12px"},_T=Ty(vx)((e=>{let{theme:t,isLoading:n}=e;return{position:"absolute",top:0,left:0,height:48,zIndex:2,background:t.palette.custom.disabledBackground,opacity:1,color:t.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:n?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:t.palette.custom.disabledContrastText},"& i":{padding:"".concat(CL,"px")}}})),IT=Ty(nk,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((e=>{let{styles:t,isRtl:n}=e;return l(l({flexDirection:n?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},t.header),{},{"& *":{color:t.header.color}})})),TT=Ty(xS)((e=>{let{styles:t}=e;return l(l({},t.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})}));function PT(e){let{translator:t,toggleLock:n,keyboard:r,isLoading:o}=e;const a=t.get("SelectionToolbar.ClickToUnlock");return V.createElement(_T,{title:a,tabIndex:r.enabled?0:-1,onClick:n,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:o},o?V.createElement(OC,{size:16,variant:"indeterminate",color:"primary"}):V.createElement(nL,{disableRipple:!0,style:OT}),!o&&V.createElement(xS,{fontSize:"14px"},a))}var MT=e=>eL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"}}]}))(e));var NT=e=>eL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"}}]}))(e));var qT=e=>eL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"}}]}))(e));const zT="H",DT="C";var AT={createDimensionIconData:e=>{let{dimInfo:t,app:n,selections:r,isPopover:o,active:a}=e;switch(t.qGrouping){case zT:return{icon:NT,tooltip:"Listbox.DrillDown",onClick:void 0};case DT:{const e=n&&a;return{icon:e?qT:MT,tooltip:"Listbox.Cyclic",onClick:e?()=>{o||r.confirm(),n.getDimension(t.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):console.log("engine api spec version doesn't have support for function stepCycle")})).catch((()=>null))}:void 0}}default:return}}};const jT=Ty(Lx)((()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0})));function FT(e){let{iconData:t,translator:n,iconStyle:r,disabled:o}=e;if(!t)return;const{icon:a,tooltip:i,onClick:s}=t,c=a,u=n.get(i);return s?V.createElement(jT,{variant:"outlined",onClick:s,tabIndex:-1,title:u,size:"large",disableRipple:!0,disabled:o},V.createElement(c,{style:r})):V.createElement(c,{title:u,size:"large",style:l(l({},r),{},{padding:"".concat(CL,"px")})})}const BT=500;let $T=0;function WT(e){var t,n,r;let{layout:o,translator:i,styles:s,isRtl:c,showLock:u,showSearchIcon:d,constraints:p,onShowSearch:f,classes:h,containerRect:m,isPopover:g,showToolbar:v,showDetachedToolbarOnly:b,containerRef:y,model:x,selectionState:S,isDirectQuery:w,selections:E,keyboard:C,autoConfirm:k,app:R,isInSelection:L}=e;const[O,_]=U.useState(b),[I,T]=U.useState(null==o||null===(t=o.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked),[P,M]=U.useState(!1);U.useEffect((()=>{var e;T(null==o||null===(e=o.qListObject)||void 0===e||null===(e=e.qDimensionInfo)||void 0===e?void 0:e.qLocked)}),[null==o||null===(n=o.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qLocked]);const N=U.useRef(null),q=AT.createDimensionIconData({dimInfo:null==o||null===(r=o.qListObject)||void 0===r?void 0:r.qDimensionInfo,app:R,selections:E,isPopover:g,active:!(null!=p&&p.active)}),z=u&&I,D=!u&&I,A=d||D||q,j=wL-(A?CL:0),F=c?wL-(A?CL:0):EL,B=(d?kL:0)+(D?kL:0)+(q?kL:0),$=function(e){let{isLocked:t,setLocked:n,settingLockedState:r,model:o,setSettingLockedState:a}=e;return()=>{const e=new Date;if(e-$T<BT)return Promise.resolve();if(r)return()=>{};a(!0),$T=e;const i=t?o.unlock:o.lock;return n(!t),i.call(o,"/qListObjectDef").catch((()=>{n(t)})).finally((()=>{setTimeout((()=>{a(!1)}),0)}))}}({isLocked:I,setLocked:T,settingLockedState:P,setSettingLockedState:M,model:x}),W=__({layout:o,model:x,translator:i,selectionState:S,isDirectQuery:w}),H=I||!u?void 0:[{key:"lock",type:void 0,label:i.get("SelectionToolbar.ClickToLock"),getSvgIconShape:rL,enabled:()=>!P&&!S.selectDisabled()&&dI(o),action:$}],G=null!=p&&p.active?V.createElement(J_,{title:i.get("Listbox.Search"),size:"large",style:l(l({},OT),{},{padding:"".concat(CL,"px")})}):V.createElement(hS,{onClick:f,tabIndex:-1,title:i.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},V.createElement(J_,{style:OT}));U.useEffect((()=>{if(!N.current||!m)return;const e=function(e){var t,n,r,o;let{containerRect:a,titleRef:i,iconsWidth:l,paddingLeft:s,paddingRight:c}=e;const u=s+c,d=a.width<(null!==(t=null==i||null===(n=i.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)+l+u+2+128,p=(null==i||null===(r=i.current)||void 0===r?void 0:r.scrollWidth)>(null==i||null===(o=i.current)||void 0===o?void 0:o.offsetWidth);return!(!d&&!p)}({containerRect:m,titleRef:N,iconsWidth:B,paddingLeft:j,paddingRight:F});_(b||e)}),[B,j,F,N.current,b,Object.entries(m||{}).sort().join(",")]);const K=function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:a,extraItems:i,selections:l,keyboard:s,autoConfirm:c}=e;return{autoConfirm:c,isDetached:t,show:n&&!t,popover:{show:n&&t,anchorEl:r.current},extraItems:i,more:{enabled:!o,actions:a,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:n,api:l,onConfirm:()=>{null==s||s.focus()},onCancel:()=>{null==s||s.focus()}}}}({isDetached:!g&&O,showToolbar:v,containerRef:y,isLocked:I,extraItems:H,listboxSelectionToolbarItems:W,selections:E,keyboard:C,autoConfirm:k}),Z=V.createElement(Q_,a({isRtl:c,layout:o},K));if(b)return Z;const X=D?V.createElement(nL,{size:"large",style:l(l({},OT),{},{padding:"".concat(CL,"px")})}):void 0;return V.createElement(IT,{item:!0,container:!0,styles:s,isRtl:c,marginY:1,paddingLeft:"".concat(j,"px"),paddingRight:"".concat(F,"px"),className:"header-container"},z&&V.createElement(PT,{isLoading:P,translator:i,toggleLock:$,keyboard:C}),A&&V.createElement(nk,{item:!0,container:!0,alignItems:"center",width:B,className:"header-action-container"},X||d&&G,V.createElement(FT,{iconData:q,iconStyle:OT,disabled:L&&g,translator:i})),V.createElement(nk,{item:!0,xs:!0,minWidth:0,justifyContent:c?"flex-end":"flex-start",className:h.listBoxHeader},V.createElement(TT,{variant:"h6",noWrap:!0,ref:N,title:o.title,styles:s},o.title)),V.createElement(nk,{item:!0,display:"flex"},Z))}const HT="ListBoxInline",UT={listBoxHeader:"".concat(HT,"-listBoxHeader"),screenReaderOnly:"".concat(HT,"-screenReaderOnly"),listboxWrapper:"".concat(HT,"-listboxWrapper")},VT=Ty(nk,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((e=>{let{theme:t,containerPadding:n,isGridMode:r,styles:o}=e;return l(l({},o.background),{},{["& .".concat(UT.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(UT.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(UT.listboxWrapper)]:{padding:n},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:r?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}})}));const GT=V.memo((function(e){var t,n,r,o;let{options:a,layout:i}=e;const{app:s,direction:c,frequencyMode:u,checkboxes:d,search:p=!0,focusSearch:f=!1,rangeSelect:h=!0,model:m,selections:g,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:x,showGray:S=!0,scrollState:w,renderedCallback:E,toolbar:C=!0,isPopover:k=!1,showLock:R=!1,components:L,selectDisabled:O=(()=>!1)}=a,_=Yb(),{translator:I,keyboardNavigation:T,themeApi:P,constraints:M}=U.useContext(qx),{checkboxes:N=d}=i||{},q=UI({app:s,themeApi:P,theme:_,components:L,checkboxes:N}),z=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==s?void 0:s.layout}),D=U.useRef(),[A,j]=JR(),[F,B]=(()=>{const[e,t]=U.useState({}),n=U.useCallback((e=>{t({current:e})}),[t]);return[e,n]})(),[$,W]=U.useState(!1),[H,G]=U.useState(!1),K=U.useRef(!1),[Z,X]=U.useState({down:0,up:0,scrollPosition:""}),Q=e=>X((t=>l(l({},t),e))),[J,Y]=U.useState({start:0,stop:0}),[ee]=oI(s),[te]=U.useState((()=>cI({selectDisabled:O}))),ne=function(e){let{containerRef:t,enabled:n}=e;const[r,o]=U.useState(!1),a={enabled:n,active:r,innerTabStops:!n||r,blur(e){var r;if(!n)return;o(!1);const a=CT(t.current)||(null===(r=t.current)||void 0===r?void 0:r.parentElement);var i;null==(i=t.current)||i.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),ET(t.current),e&&a&&(a.setAttribute("tabIndex",0),a.focus())},focus(){if(!n)return;o(!0);const e=t.current,r=null==e?void 0:e.querySelector(".search input"),a=null==e?void 0:e.querySelector(".value.last-focused"),i=null==e?void 0:e.querySelector(".value.selector, .value"),l=null==e?void 0:e.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),s=null==e?void 0:e.querySelector("#listbox-unlock-button"),c=r||a||i||s||l;null==c||c.setAttribute("tabIndex",0),null==c||c.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),n=e||t;null==n||n.setAttribute("tabIndex",0),null==n||n.focus()}};return a}({containerRef:D,enabled:T}),re=U.useCallback((()=>(e=>{var t,n;let{app:r,appSelections:o}=e;return null!==(t=null===(n=r.isInModalSelection)||void 0===n?void 0:n.call(r))&&void 0!==t?t:o.isInModal()})({app:s,appSelections:ee})),[s,ee]),oe=null==i?void 0:i.qListObject.qDimensionInfo.qError,ae=oe&&M.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",[ie,le]=U.useState(!1),{handleKeyDown:se,handleOnMouseEnter:ce,handleOnMouseLeave:ue,globalKeyDown:de}=U.useMemo((()=>kT({keyboard:ne,hovering:K,updateKeyScroll:Q,containerRef:D,currentScrollIndex:J,app:s,appSelections:ee,constraints:M,isModal:re})),[ne,K,Q,D,J,s,ee,M,re]);U.useEffect((()=>(document.addEventListener("keydown",de),()=>{document.removeEventListener("keydown",de)})),[de]),U.useEffect((()=>{!0===p&&G(!0);const e=()=>{W(!0),le(!0)},t=()=>{W(!1),le(!1),"toggle"===p&&G(!1)};return k&&(g.isActive()||(g.on("activated",e),g.on("deactivated",t)),W(k)),C&&g&&(g.isModal()||(g.on("activated",e),g.on("deactivated",t)),W(g.isActive())),()=>{g&&g.removeListener&&(g.removeListener("activated",e),g.removeListener("deactivated",t))}}),[C,g,k]),U.useEffect((()=>{if(F&&F.current&&(p&&f||"toggle"===p&&H)){const e=F.current.querySelector("input");e&&e.focus()}}),[F&&F.current,H,p,f]);const{wildCardSearch:pe,searchEnabled:fe,autoConfirm:he=!1,layoutOptions:me={}}=null!=i?i:{},ge=null==i||null===(t=i.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked,ve=!1!==fe&&"toggle"===p&&!ge,be=(null==i||null===(n=i.title)||void 0===n?void 0:n.length)&&!1!==(null==i?void 0:i.showTitle),ye=C&&!be&&!k,xe=C&&be||k,Se="rtl"===c;if(!m||!i||!I)return null;const we=!0===p||"toggle"===p&&H&&!1!==fe,Ee=null!==(r=me.dense)&&void 0!==r&&r,Ce=()=>{G(!H)},ke=()=>{if("toggle"===p)Ce();else{const e=F.current.querySelector("input");null==e||e.focus()}},Re=we&&"toggle"===p,Le="grid"===(null==me?void 0:me.dataLayout),Oe=function(e){let t,{isGridMode:n,dense:r,height:o,layoutOrder:a}=e;if(n){let e;e=GO({isGridMode:n,dense:r})>o?"0px":"2px",t="row"===a?"".concat(e," 4px"):"".concat(e," 6px ").concat(e," 4px")}else t=void 0;return t}({isGridMode:Le,dense:Ee,height:null===(o=D.current)||void 0===o?void 0:o.clientHeight,layoutOrder:me.layoutOrder});oe&&(null==E||E());const _e=xe?NL+LL:0,Ie=V.createElement(WT,{app:s,showSearchIcon:ve,onShowSearch:Ce,isPopover:k,showToolbar:$,isDirectQuery:z,autoConfirm:he,showDetachedToolbarOnly:ye,layout:i,translator:I,styles:q,isRtl:Se,showLock:R,constraints:M,classes:UT,containerRect:j,containerRef:D,model:m,selectionState:te,selections:g,keyboard:ne,isInSelection:ie});return V.createElement(V.Fragment,null,ye&&Ie,V.createElement(VT,{className:"listbox-container",container:!0,tabIndex:ne.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Oe,styles:q,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:se,onMouseEnter:ce,onMouseLeave:ue,ref:e=>{D.current=e,A(e)},isGridMode:Le,"aria-label":ne.active?I.get("Listbox.ScreenReaderInstructions"):""},xe&&Ie,V.createElement(nk,{item:!0,container:!0,direction:"column",height:"100%",minHeight:_e,role:"region","aria-label":I.get("Listbox.ResultFilterLabel")},V.createElement(nk,{item:!0,ref:B},V.createElement(rI,{selections:g,selectionState:te,model:m,dense:Ee,keyboard:ne,visible:we,search:p,autoFocus:Re,wildCardSearch:pe,searchEnabled:fe,direction:c,hide:ve&&Ce,styles:q})),V.createElement(nk,{item:!0,xs:!0,className:UT.listboxWrapper},oe?V.createElement(LT,{text:ae}):V.createElement(wT,null,(e=>{let{height:t,width:n}=e;return V.createElement(C_,{model:m,app:s,constraints:M,layout:i,selections:g,selectionState:te,direction:c,frequencyMode:u,rangeSelect:h,checkboxes:N,height:t,width:n,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:x,keyboard:ne,showGray:S,scrollState:w,keyScroll:{state:Z,reset:()=>X({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:J,set:Y},renderedCallback:E,onCtrlF:ke,isModal:re,styles:q})}))))))}));function KT(e){let{options:t={}}=e;const{model:n}=t,[r]=XR(n);return V.createElement(GT,{options:t,layout:r})}function ZT(e){let{app:t,qId:n,options:r={}}=e;const[o,a]=U.useState(),[i]=WR(),{sessionModel:l}=r,s=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(r).filter((e=>s.includes(e)));if(c.length)throw new Error('Option "'.concat(c.join(", "),'" is not applicable for existing objects.'));return U.useEffect((()=>{Promise.resolve(l||async function(e){return i.get(e)||await t.getObject(e)}(n)).then((e=>{!function(e){i.get(e.id)||(i.set(e.id,e),e.once("closed",(()=>{i.clear(e.id)})))}(e),a(e)}))}),[]),o}const XT={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function QT(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 JT=["__DO_NOT_USE__"],YT=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1};return l(l(l({},s(e,JT)),n),t)};function eP(e){let{app:t,fieldIdentifier:n,qId:r,stateName:o,element:a,options:i,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:i});c||Object.assign(i,{frequencyMode:QT(i.frequencyMode)});const[d,p]=U.useState(0);U.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?ZT({app:t,qId:r,options:i}):function(e){var t;let{app:n,fieldIdentifier:r,stateName:o,options:a={}}=e;const[i,l]=U.useState(""),[s,c]=U.useState(!0),[u,d]=U.useState(),[p,f]=U.useState(),h=null!==(t=a.title)&&void 0!==t?t:p;let{histogram:m=!1,frequencyMode:g="N"}=a;i&&i.failedToFetchFieldDef&&(m=!1,g="N"),U.useEffect((()=>{const e=m||"N"!==g;r.qLibraryId&&e?async function(){try{const e=await n.getDimension(r.qLibraryId),t=await e.getLayout();f(t.qDim.title),"N"===t.qDim.qGrouping?l(t.qDim.qFieldDefs?t.qDim.qFieldDefs[0]:""):l({multiFieldDim:!0}),c(!1)}catch(e){throw c(!1),l({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}():(c(!1),f(r))}),[]);const{dense:v,checkboxes:b,listLayout:y,properties:x={}}=a,S={dense:v};"horizontal"===y&&(S.dataLayout="grid",S.layoutOrder="column",S.maxVisibleColumns={auto:!0},S.maxVisibleRows={auto:!1,maxRows:1});const w=U.useRef();w.current||(w.current=pT());const E=He(!0,{},XT,{qInfo:{qId:w.current},qListObjectDef:{qStateName:o,qFrequencyMode:m&&"N"===g?"V":g},histogram:m,checkboxes:b,layoutOptions:S,title:h});let C;if(He(!0,E,x),r.qLibraryId?(E.qListObjectDef.qLibraryId=r.qLibraryId,C=r.qLibraryId):(E.qListObjectDef.qDef.qFieldDefs=[r],C=r),"P"!==g&&m)if(null!=i&&i.multiFieldDim)E.frequencyMax="fetch";else{const e=r.qLibraryId?i:C;E.frequencyMax={qValueExpression:y_(e)}}const[k]=HR(E,s?null:n,C,o);return U.useEffect((()=>{k&&d(k)}),[k]),u}({app:t,fieldIdentifier:n,stateName:o,options:i}),h=U.useRef(a),m=u?i.selectionsApi:sI(t,f,[h,".njs-action-toolbar-more",".njs-action-toolbar-popover"],i)[0],g=U.useMemo((()=>l(l({},i),{},{selections:m,model:f,app:t,renderedCallback:s})),[i,m,f,t]);return m&&f?V.createElement(KT,{options:g}):null}const tP={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function nP(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:a={}}=e;const[i,l]=U.useState(!!a.show);return V.createElement(VI,{show:i,app:t,alignTo:{current:o},anchorOrigin:a.anchorOrigin,transformOrigin:a.transformOrigin,close:()=>{l(!1),a.onPopoverClose&&a.onPopoverClose()},fieldName:n,stateName:r,autoFocus:a.autoFocus,components:a.components})}function rP(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function oP(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 aP=e=>({qDef:{qFieldDefs:[e]}}),iP=e=>({qDef:{qDef:e}});function lP(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?aP(e):l(l({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||pT(),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),rP(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 oP(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?iP(e):l(l({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||pT(),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),rP(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];oP(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 sP=e=>({qDef:{qFieldDefs:[e]}});function cP(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?sP(e):l(l({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||pT(),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 uP=e=>({qDef:{qFieldDefs:[e]}}),dP=e=>{let t;return t="string"==typeof e?He(!0,{},XT,{qListObjectDef:uP(e)}):e.qListObjectDef?He(!0,{},XT,e):He(!0,{},XT,{qListObjectDef:e}),t};function pP(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=dP(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||pT(),!r.title)if(o.qLibraryId){const e=await n.app.getDimension(o.qLibraryId),t=await e.getProperties();t.qDim.qLabelExpression?r.title={qStringExpression:{qExpr:t.qDim.qLabelExpression}}:r.title=t.qDim.title}else{var a,i;r.title=o.qDef.title||(null===(a=o.qDef.qFieldLabels)||void 0===a?void 0:a[0])||(null===(i=o.qDef.qFieldDefs)||void 0===i?void 0:i[0])}t.push({qProperty:r,qChildren:[]})},addMeasure(){}};return r}function fP(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 hP(e,t){let{sn:n,properties:r,fields:o,children:a}=e;if(!o.length)return;const i=n.qae.data.targets[0];if(!i)return;const{propertyPath:l}=i,s=l.split("/");let c=r;for(let e=0;e<s.length;e++){const t=s[e];c=t?c[t]:c}const u=function(e){return e.match("/qListObjectDef")?cP:e.match("/qChildListDef")?pP:lP}(l),d=u({dc:c,def:i,properties:r,children:a,halo:t});for(let e=0;e<o.length;++e){const t=o[e];"measure"===fP(t)?await d.addMeasure(t):await d.addDimension(t)}}var mP={getValue:(e,t,n)=>{if(null==e||null==t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},setValue:(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let a=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==a[t]&&null!==a[t]||(a[t]=Number.isNaN(+r[e+1])?{}:[]),a=a[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?a[o]=n:delete a[o]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object};var gP={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 vP=2**53-1;function bP(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function yP(e,t){const n=He(!0,{},t,e);return mP.getValue(n,"qOtherTotalSpec.qOtherCounted")||mP.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),mP.getValue(n,"qOtherTotalSpec.qOtherLimit")||mP.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function xP(e,t){return He(!0,{},t,e)}function SP(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var wP={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===mP.getValue(e,t)&&mP.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:bP,importCommonProperties:function(e,t,n){const r="masterobject"===mP.getValue(t,"properties.qInfo.qType")?"masterobject":mP.getValue(n,"qInfo.qType");mP.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:yP,createDefaultMeasure:xP,resolveValue:SP,getHypercubePath:function(e){const t=mP.getValue(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function(e){let{exportFormat:t,newHyperCubeDef:n}=e;const r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();let a=n.qInterColumnSortOrder.length;if(a!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());a!==o;)a<o?(gP.indexAdded(n.qInterColumnSortOrder,a),++a):(--a,gP.indexRemoved(n.qInterColumnSortOrder,a))},createNewProperties:function(e){let{exportFormat:t,initialProperties:n,hypercubePath:r}=e,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((e=>{"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=He(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?mP.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||bP(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=He(!0,{},n,o),null===o.components&&(o.components=[]),o},getMaxMinDimensionMeasure:function(e){let{exportFormat:t,dataDefinition:n={}}=e;const r=t.data[0],o=n.dimensions||{max:0},a=n.measures||{max:0},i=SP(a.max,r.dimensions.length,vP),l=SP(a.min,r.dimensions.length,0);return{maxDimensions:SP(o.max,i,vP),minDimensions:SP(o.min,l,0),maxMeasures:i,minMeasures:l}},shouldInitLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:a}=e;const i=t.data[0];return i.dimensions.length>n&&n>0||i.measures.length>o&&o>0||i.excludedDimensions.length>0&&i.dimensions.length+i.excludedDimensions.length>r||i.excludedMeasures.length>0&&i.measures.length+i.excludedMeasures.length>a||!o&&i.measures.length>0||!n&&i.dimensions.length>0},initLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:a,newHyperCubeDef:i}=e;const l=t.data[0];i.qLayoutExclude||(i.qLayoutExclude={}),i.qLayoutExclude.qHyperCubeDef||(i.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>a)&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,newHyperCubeDef:o,defaultDimension:a}=e;const i=t.data[0];let l;if(n>0)for(l=0;l<i.dimensions.length;++l)o.qDimensions.length<n?o.qDimensions.push(yP(i.dimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(yP(i.dimensions[l],a));else if(i.dimensions.length)for(l=0;l<i.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(yP(i.dimensions[l],a));if(i.excludedDimensions.length)for(l=0;l<i.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(yP(i.excludedDimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(yP(i.excludedDimensions[l],a))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:a}=e;const i=t.data[0];let l;if(n>0)for(l=0;l<i.measures.length;++l)o.qMeasures.length<n?o.qMeasures.push(xP(i.measures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(xP(i.measures[l],a));else if(i.measures.length)for(l=0;l<i.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(xP(i.measures[l],a));if(i.excludedMeasures.length)for(l=0;l<i.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(xP(i.excludedMeasures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(xP(i.excludedMeasures[l],a))},updateDimensionsOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.dimensions&&"function"==typeof n.dimensions.added){const e=mP.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=mP.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var EP={exportProperties:e=>function(e){let{propertyTree:t,hypercubePath:n}=e;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),o=t.qProperty,a=mP.getValue(o,n||""),i=a.qHyperCubeDef,l=r.data[0];if(i.qInterColumnSortOrder||(i.qInterColumnSortOrder=[]),l.dimensions.push(...i.qDimensions),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qDimensions&&l.excludedDimensions.push(...i.qLayoutExclude.qHyperCubeDef.qDimensions),l.measures.push(...i.qMeasures),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qMeasures&&l.excludedMeasures.push(...i.qLayoutExclude.qHyperCubeDef.qMeasures),l.interColumnSortOrder=i.qInterColumnSortOrder.concat(),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();gP.isOrderedSubset(e,l.interColumnSortOrder)&&(l.interColumnSortOrder=e)}return delete i.qLayoutExclude,Object.keys(o).forEach((e=>{r.properties[e]=o[e]})),n&&(r.properties.qHyperCubeDef=a.qHyperCubeDef,delete a.qHyperCubeDef),o.qLayoutExclude||(o.qLayoutExclude={}),o.qLayoutExclude.disabled&&(Object.keys(o.qLayoutExclude.disabled).forEach((e=>{r.properties.hasOwnProperty(e)||(r.properties[e]=o.qLayoutExclude.disabled[e])})),delete o.qLayoutExclude.disabled),o.qLayoutExclude.changed&&(wP.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!mP.isEmpty(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:a}=e;const i={qChildren:[]},l=wP.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:a}),s=mP.getValue(n,a||"").qHyperCubeDef,c=mP.getValue(l,a||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=wP.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=wP.getDefaultDimension(),defaultMeasure:m=wP.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,wP.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&wP.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),wP.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),wP.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),wP.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),wP.copyPropertyIfExist("qMaxStackedCells",s,c),wP.copyPropertyIfExist("qNoOfLeftDims",s,c),wP.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),wP.copyPropertyOrSetDefault("qMode",s,c,"S"),wP.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),wP.copyPropertyOrSetDefault("qSortbyYValue",s,c),wP.copyPropertyOrSetDefault("qIndentMode",s,c),wP.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),wP.importCommonProperties(l,t,n),wP.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),wP.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),i.qProperty=l,i}(e)};const CP=e=>mP.getValue(e,"data.targets.0.propertyPath"),kP=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return EP.exportProperties})(CP(e))},RP=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return EP.importProperties})(CP(e))},LP=async e=>{let{halo:t,model:n,cellRef:r,newType:o,properties:a,viewDataMode:i=!1}=e;const s=a?{qProperty:a}:await n.getFullPropertyTree(),c=r.current.getQae(),u=kP(c);if(!u)throw new Error("Source chart does not support conversion");const d=await(async e=>{let{halo:t,name:n,version:r}=e;const{types:o}=t;return await o.get({name:n,version:r}).supernova()})({halo:t,name:o}),p=d.qae,f=RP(p);if(!f)throw new Error("Target chart does not support conversion");return f({exportFormat:u({propertyTree:s,hypercubePath:wP.getHypercubePath(c),viewDataMode:i}),initialProperties:l({qInfo:{qType:o},visualization:o},mP.getValue(p,"properties.initial",{})),dataDefinition:mP.getValue(p,"data.targets.0.",{}),hypercubePath:wP.getHypercubePath(p),viewDataMode:i})},OP={hypercube:EP};var _P=e=>eL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(e));function IP(e){let{d:t}=e;const n=Yb();let r="inherit",o=n.palette.success.main;t.missing?o=n.palette.warning.main:t.error&&(r="error",o=n.palette.error.main);const a={color:o},i=V.createElement(xS,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},V.createElement(dk,null,t.missing||t.error?V.createElement(_P,{style:a}):V.createElement(bL,{style:a})));return V.createElement(nk,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},V.createElement(nk,{item:!0},i),V.createElement(nk,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},V.createElement(xS,{noWrap:!0,component:"p"},V.createElement(xS,{component:"span",variant:"subtitle2",color:r},t.description),V.createElement(xS,{component:"span"}," "),V.createElement(xS,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function TP(e){let{data:t}=e;const n=Yb();return V.createElement(nk,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>V.createElement(IP,{d:e,key:t})));return r.length>0&&V.createElement(nk,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},V.createElement(xS,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function PP(e){let{title:t="Error",message:n="",data:r=[]}=e;return V.createElement(nk,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},V.createElement(nk,{item:!0},V.createElement(_P,{style:{fontSize:"38px"}})),V.createElement(nk,{item:!0},V.createElement(xS,{variant:"h6",align:"center","data-tid":"error-title"},t)),V.createElement(nk,{item:!0},V.createElement(xS,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),V.createElement(TP,{data:r}))}const MP=["size"],NP="Progress",qP={root:"".concat(NP,"-root"),front:"".concat(NP,"-front"),back:"".concat(NP,"-back")},zP=Ty("div")((e=>{let{theme:t}=e;return{["&.".concat(qP.root)]:{position:"relative",display:"inline-block"},["& .".concat(qP.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(qP.back)]:{color:t.palette.divider}}})),DP={small:16,medium:32,large:64,xlarge:128};function AP(e){let{size:t="medium"}=e,n=s(e,MP);const r=DP[t];return V.createElement(zP,{className:qP.root},V.createElement(OC,a({variant:"determinate",value:100,className:qP.back,size:r,thickness:3},n)),V.createElement(OC,a({variant:"indeterminate",disableShrink:!0,className:qP.front,size:r,thickness:3},n)))}const jP=["cancel","translator"],FP=["retry","translator"],BP={stripes:"".concat("LongRunningQuery","-stripes")},$P=Ty(nk)((()=>({["& .".concat(BP.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 WP(e){let{cancel:t,translator:n}=e,r=s(e,jP);return V.createElement(V.Fragment,null,V.createElement($P,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},V.createElement(nk,{item:!0},V.createElement(AP,null)),V.createElement(nk,{item:!0},V.createElement(xS,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),V.createElement(nk,a({item:!0},r),V.createElement(Lx,{variant:"contained",onClick:t},n.get("Cancel"))))}function HP(e){let{retry:t,translator:n}=e,r=s(e,FP);return V.createElement(V.Fragment,null,V.createElement(nk,{item:!0},V.createElement(_P,{style:{fontSize:"38px"}})),V.createElement(nk,{item:!0},V.createElement(xS,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),V.createElement(nk,{item:!0},V.createElement(Lx,a({variant:"contained",onClick:t},r),n.get("Retry"))))}function UP(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=U.useContext(qx);return V.createElement(nk,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:BP.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&V.createElement(WP,{cancel:r.cancel,translator:o,className:BP.cancel}),n&&V.createElement(HP,{retry:r.retry,translator:o,className:BP.retry}))}function VP(){return V.createElement(nk,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},V.createElement(AP,{size:"large"}))}const GP="Header",KP={containerStyle:"".concat(GP,"-containerStyle"),containerTitleStyle:"".concat(GP,"-containerTitleStyle")},ZP=Ty(nk)((e=>{let{theme:t}=e;return{["&.".concat(KP.containerStyle)]:{flexGrow:0},["&.".concat(KP.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),XP="njs-cell-title",QP="njs-cell-sub-title";function JP(e){let{layout:t,sn:n,anchorEl:r,hovering:o,focusHandler:a,titleStyles:i={}}=e;const l=t.showTitles&&!!t.title,s=t.showTitles&&!!t.subtitle,c=t.qSelectionInfo&&t.qSelectionInfo.qInSelections,[u,d]=U.useState([]),[p,f]=JR(),[h,m]=U.useState(!1);U.useEffect((()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions((e=>{d([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])}))}),[n]),U.useEffect((()=>{if(!f)return;const{width:e}=f;m(e<221)}),[f]);const g=l||s,v=[KP.containerStyle,...g?[KP.containerTitleStyle]:[]],b=(o||c)&&(h||!g),y=g&&!b&&!h,x=V.createElement(Q_,{show:y,selections:{show:c,api:n.component.selections,onKeyDeactivate:a.refocusContent},actions:u,popover:{show:b,anchorEl:r},focusHandler:a,layout:t});return V.createElement(ZP,{ref:p,item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},V.createElement(nk,{item:!0,zeroMinWidth:!0,xs:!0},V.createElement(nk,{container:!0,wrap:"nowrap",direction:"column"},l&&V.createElement(xS,{variant:"h6",noWrap:!0,className:XP,style:i.main},t.title),s&&V.createElement(xS,{variant:"body2",noWrap:!0,className:QP,style:i.subTitle},t.subtitle))),V.createElement(nk,{item:!0},x))}const YP={itemStyle:"".concat("Footer","-itemStyle")},eM=Ty(nk)((e=>{let{theme:t}=e;return{["& .".concat(YP.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),tM="njs-cell-footer";function nM(e){let{layout:t,titleStyles:n={}}=e;return t&&t.showTitles&&t.footnote?V.createElement(eM,{container:!0},V.createElement(nk,{item:!0,className:YP.itemStyle},V.createElement(xS,{noWrap:!0,variant:"body2",className:tM,style:n.footer},t.footnote))):null}class rM{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 oM="njs-viz";function aM(e){let{sn:t,snOptions:n,snPlugins:r,layout:o,appLayout:a,halo:i}=e;const{component:s}=t,{theme:c,language:u,constraints:d,interactions:p,keyboardNavigation:f}=U.useContext(qx),[h]=U.useState((()=>new rM)),[m,g]=U.useState(!1),[v,b]=U.useState(0),[y,x,S]=JR(),[w,E]=U.useState(null),C=U.useCallback((e=>{e&&E(e)}),[]);return U.useEffect((()=>{if(w)return s.created({options:n}),s.mounted(w),g(!0),()=>{h.stop(),s.willUnmount()}}),[w,s]),U.useEffect((()=>{m&&w&&x&&(!s.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||h.schedule((()=>{const e=[];return d.passive||e.push("passive"),d.active||e.push("interact"),d.select||e.push("select"),d.edit||e.push("edit"),i.app&&i.app.session&&e.push("fetch"),Promise.resolve(s.render({layout:o,options:n,plugins:r,embed:i.public.nebbie,context:l({constraints:d,interactions:p,theme:i.public.theme,appLayout:a,keyboardNavigation:f},s.isHooked?{}:{logicalSize:t.logicalSize({layout:o}),localeInfo:(a||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===v&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),b(v+1))}))})))}),[x,n,r,w,S,o,a,c,u,d,p,m,f]),V.createElement("div",{ref:y,"data-render-count":v,style:{position:"relative",height:"100%"},className:oM},V.createElement("div",{ref:C,style:{position:"absolute",width:"100%",height:"100%"}}))}const iM=(e,t,n,r)=>{const o=U.useMemo((()=>{if(e&&t){const r=e.components?e.components.find((e=>"general"===e.key)):null,o={main:DI(r,"main",t,e.visualization),footer:DI(r,"footer",t,e.visualization),subTitle:DI(r,"subTitle",t,e.visualization)},a=qI(r,t,e.visualization),i=NI(r,n),l=function(e,t,n){const r=II(null==e?void 0:e.borderColor,"","borderColor",t,n),o=(null==e?void 0:e.borderWidth)||OI("","borderWidth",t,n);return o&&r?"".concat(o," solid ").concat(r):void 0}(r,t,e.visualization),s=function(e,t,n){return(null==e?void 0:e.borderRadius)||OI("","borderRadius",t,n)}(r,t,e.visualization);return{titleStyles:o,bgColor:a,bgImage:i,border:l,borderRadius:s,boxShadow:zI(r,t,e.visualization)}}return{}}),[e,t,n,r]);return o},lM="njs-cell",sM=(e,t)=>{switch(t.type){case"LOADING":return l(l({},e),{},{loading:!0});case"LOADED":return l(l({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return l(l({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return l(l({},e),{},{longRunningQuery:!0});case"ERROR":return l(l({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function cM(e){let{delay:t=750}=e;const[n,r]=U.useState(!1);return U.useEffect((()=>{const e=setTimeout((()=>r(!0)),t);return()=>clearTimeout(e)}),[]),n?V.createElement(VP,null):null}const uM=e=>!e.qError||7005===e.qError.qErrorCode,dM=(e,t,n,r,o)=>[...Array(e).keys()].map((e=>{const a=!(!t||!t[e]),i=a&&t[e].qError&&7005===t[e].qError.qErrorCode,l=a&&!i&&t[e].qError,s=i&&t[e].qCalcCondMsg,c="".concat(l?r:i?s||o:a&&t[e].qFallbackTitle||""),u=n(e);return{description:u?"".concat(u).concat(c.length?":":""):null,label:c,missing:t&&!a&&!l&&e>=t.length||i,error:l}})),pM=e=>e&&(Array.isArray(e)?e:[e])||[],fM=(e,t,n,r)=>{const o=r.dimensions.min(),a=r.measures.min(),i=r.resolveLayout(t);return{reqDimErrors:dM(o,pM(i.qDimensionInfo||i.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:dM(a,pM(i.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},hM=async(e,t,n,r)=>{let{targets:o}=n;const{hasUnfulfilledErrors:a,aggMinD:i,aggMinM:l,hasLayoutErrors:s,layoutErrors:c}=((e,t,n)=>{let r=!1,o=0,a=0,i=!1,l=!1;const s=[];for(let c=0;c<t.length;++c){const u=t[c],d=u.dimensions.min(),p=u.measures.min(),f=u.resolveLayout(n),h=pM(f.qDimensionInfo||f.qItems).filter(uM),m=pM(f.qMeasureInfo).filter(uM);if(o+=d,a+=p,(h.length<d||m.length<p)&&(r=!0),f.qError){i=!0,l=7005===f.qError.qErrorCode;const t=l&&f.qCalcCondMsg?f.qCalcCondMsg:l?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");s.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:a,hasLayoutErrors:i,layoutErrors:s}})(e,o,t),u=[],d=[];let p=null;for(let n=0;n<o.length;++n){const i=o[n];if(!s&&a){const n=p||await r.getProperties();p=n;const o=fM(e,t,n,i);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const f=u.filter((e=>!(e.missing||e.error))).length,h=e.get("Visualization.Incomplete.Dimensions",[f,i]),m=d.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,l]),v=[{title:h,descriptions:[...u]},{title:g,descriptions:[...d]}],b=s?c:v;return[s||a,{title:s?c[0].title:e.get("Visualization.Incomplete"),data:b}]},mM=U.forwardRef(((e,t)=>{let{halo:n,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:i,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}=U.useContext(qx),y=Yb(),[x,S,w]=JR(),[E,C]=U.useReducer(sM,{loading:!1,loaded:!1,longRunningQuery:!1,error:(k=i)?{title:k.message}:null,sn:null,visualization:null});var k;const[R,L]=U.useState(r),[O,{validating:_,canCancel:I,canRetry:T},P]=XR(R),[M]=QR(d),[N,q,z]=JR(),[D,A]=U.useState(o),[j,F]=U.useState(a),B="njs-cell-".concat(c),[$]=sI(d,R,["#".concat(B),".njs-action-toolbar-popover"]),[W,H]=U.useState(!1),G=U.useRef({enter:null,leave:null}),{titleStyles:K,bgColor:Z,bgImage:X,border:Q,borderRadius:J,boxShadow:Y}=iM(O,n.public.theme,n.app,h),ee=U.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});U.useEffect((()=>{aI(ee.current)}),[]),ee.current.blurCallback=e=>{n.root.toggleFocusOfCells(),e&&z&&z.focus()},ee.current.refocusContent=()=>{E.sn.component&&"function"==typeof E.sn.component.focus&&E.sn.component.focus()};U.useEffect((()=>{if(i)return void s();if(!M||!O)return;if(E.visualization===O.visualization&&E.sn)return void(async e=>{const[t,n]=await hM(m,O,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:O,model:R})})(E.sn);const e=p.getSupportedVersion(O.visualization,O.version);return(async(e,t)=>{C({type:"LOADING"}),await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:a,app:i,selections:l,nebbie:s,focusHandler:c,emitter:u,onMount:d}=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}),p=e.create({model:a,app:i,selections:l,nebbie:s,focusHandler:c,emitter:u});p&&(t({type:"LOADED",sn:p,visualization:r}),d())}catch(e){t(o?{type:"ERROR",error:{title:e.message}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(r,"' that supports current object version. Did you forget to register ").concat(r,"?")}}),d()}})({dispatch:C,types:p,visualization:e,version:t,model:R,app:d,selections:$,nebbie:f,focusHandler:ee.current,emitter:u,onMount:s})})(O.visualization,e),()=>{}}),[p,E.sn,R,$,O,M,g]),U.useEffect((()=>{if(!_)return;const e=setTimeout((()=>C({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[_]),U.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:A,setSnPlugins:F,setModel:L,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(O));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:M,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,q,S,O,y.name,M]);let te=null;return E.loading&&!E.longRunningQuery?te=V.createElement(cM,null):E.error?te=V.createElement(PP,E.error):E.loaded&&(te=V.createElement(aM,{key:O.visualization,sn:E.sn,halo:n,snOptions:D,snPlugins:j,layout:O,appLayout:M})),V.createElement(Yx,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:Z||"unset",backgroundImage:X&&X.url?"url(".concat(X.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:X&&X.size,backgroundPosition:X&&X.pos,border:Q,borderRadius:J,boxShadow:Y,boxSizing:"border-box"},elevation:0,square:!0,className:lM,ref:x,id:B,onMouseEnter:()=>{G.current.leave&&clearTimeout(G.current.leave),G.enter||(G.current.enter=setTimeout((()=>{H(!0),G.current.enter=null}),250))},onMouseLeave:()=>{G.current.enter&&clearTimeout(G.current.enter),G.current.leave||(G.current.leave=setTimeout((()=>{H(!1),G.current.leave=null}),750))}},V.createElement(nk,{container:!0,direction:"column",gap:0,style:l(l({position:"relative",width:"100%",height:"100%"},b?{}:{padding:y.spacing(1)}),E.longRunningQuery?{opacity:"0.3"}:{})},w&&O&&E.sn&&V.createElement(JP,{layout:O,sn:E.sn,anchorEl:w,hovering:W,focusHandler:ee.current,titleStyles:K}," "),V.createElement(nk,{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:N},te),w&&O&&E.sn&&V.createElement(nM,{layout:O,titleStyles:K})),E.longRunningQuery&&V.createElement(UP,{canCancel:I,canRetry:T,api:P}))}));function gM(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function vM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const r=[];return Object.keys(t).forEach((o=>{const a=t[o];"object"!=typeof n[o]||"object"!=typeof a||Array.isArray(a)?function(e,t){return gM(e)&&gM(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}(a,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...vM("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function bM(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 yM=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))},xM=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t),SM=He.bind(null,!0),wM={},{isArray:EM}=Array;function CM(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function kM(e){return void 0===e}function RM(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function LM(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const a=isNaN(r)?{}:[];e[r||t]=kM(e[r||t])?a:e[t],e=e[r||t]})),e}function OM(e,t){let n=!0;if(CM(e)&&CM(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{OM(e[r],t[r])||(n=!1)})),n);if(EM(e)&&EM(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!OM(e[n],t[n]))return!1;return!0}return e===t}wM.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const a=function(e){return e?SM({},{val:e}).val:e}(t[o]),i=e[o],l="".concat(n,"/").concat(o);OM(a,i)||RM(t,o)||(kM(i)?r.push({op:"add",path:l,value:a}):CM(a)&&CM(i)?r=r.concat(wM.generate(i,a,l)):EM(a)&&EM(i)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let a=-1;function i(e,t,n){if(e[n]&&kM(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(OM(t,o))return r;if(!kM(t[0])&&kM(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)a=i(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===a?(r.push({op:"remove",path:"".concat(n,"/").concat(e)}),o.splice(e,1)):r=r.concat(wM.generate(o[e],t[a],"".concat(n,"/").concat(e)));for(let e=0,l=t.length;e<l;e+=1)a=i(o,t[e].qInfo&&t[e].qInfo.qId),-1===a?(r.push({op:"add",path:"".concat(n,"/").concat(e),value:t[e]}),o.splice(e,0,t[e])):a!==e&&(r.push({op:"move",path:"".concat(n,"/").concat(e),from:"".concat(n,"/").concat(a)}),o.splice(e,0,o.splice(a,1)[0]));return r}(i,a,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:a}))})),Object.keys(e).forEach((o=>{kM(t[o])&&!RM(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},wM.apply=function(e,t){t.forEach((t=>{let n=LM(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const a=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(EM(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(EM(o)&&EM(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(CM(o)&&CM(t.value))i=o,Object.keys(i).forEach((e=>{Object.getOwnPropertyDescriptor(i,e).configurable&&!RM(i,e)&&delete i[e]})),SM(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=LM(e,t.from);EM(n)?n.splice(+r,0,o.splice(+a,1)[0]):(n[r]=o[a],delete o[a])}else"remove"===t.op&&(EM(n)?n.splice(+r,1):delete n[r]);var i}))},wM.clone=function(e){return SM({},e)},wM.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},wM.updateObject=function(e,t){Object.keys(e).length?wM.apply(e,wM.generate(e,t)):SM(e,t)};const _M=e=>t=>{const n=(r=l(l({},t),{},{action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0}),Object.keys(ee.prototype).forEach((e=>{r[e]=ee.prototype[e]})),ee.init(r),r);var r;return n};let IM,TM;function PM(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 MM(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null},contraintsWarning:!0}}function NM(e){zM(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 qM(e){if(e.__hooks.obsolete)return Promise.resolve();TM=-1,IM=e,IM.__hooks.initiated&&IM.__hooks.list.length;try{IM.fn.call(null)}catch(e){console.error(e)}IM.__hooks.initiated=!0;const t=IM.__hooks;return FM(IM),TM=void 0,IM=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){zM(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){zM(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 zM(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 DM(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 AM(e,t,n,r){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n,r))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function jM(e){return e.__hooks.imperativeHandle}function FM(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function BM(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,FM(e))}function $M(e){if(void 0===IM)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=IM.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function WM(e){$M(++TM);return IM.context[e]}function HM(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function UM(e){return{__hooked:!0,fn:e,initiate:MM,run:qM,teardown:NM,runSnaps:DM,runMenu:AM,focus:QM,blur:JM,observeActions:BM,getImperativeHandle:jM,updateRectOnNextRun:HM}}function VM(e){const t=$M(++TM);if(!t.value){t.component=IM;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,qM(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function GM(e,t){const n=$M(++TM);PM(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===IM.__hooks.pendingEffects.indexOf(n)&&IM.__hooks.pendingEffects.push(n))}function KM(e,t){const n=$M(++TM);PM(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],IM.__hooks.pendingLayoutEffects.push(n))}function ZM(e,t){const n=$M(++TM);return PM(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function XM(){return WM("element")}function QM(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 JM(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 YM={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},eN=Object.keys(YM),tN=e=>(Object.keys(ee.prototype).forEach((t=>{e[t]=ee.prototype[t]})),ee.init(e),e);function nN(e,t){const n=l({},YM);tN(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==eN.indexOf(t)?n[t]=e.component[t].bind(r):r[t]=e.component[t]}));const o=function(e){let{sn:t,component:n}=e;const r={},o=[],a=_M(n);return((t.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=a(e);r[e.key]=t,o.push(t)})),(t.definition.actions||[]).forEach((e=>{const t=a(e);r[e.key]=t})),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:r}),a=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(r,{model:t.model,app:t.app,global:a,selections:t.selections,actions:o.actions}),Object.assign(n,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[n,o]}function rN(e,t,n){"function"==typeof e.component&&(e.component=UM(e.component));const[r,o]=e.component&&e.component.__hooked?function(e,t,n){const r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const a={},i=["appLayout","constraints","interactions"],s={},c={};t.model&&t.model.session||(s.select=!0,s.edit=!0,c.select=!1,c.edit=!1);const u={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:s,interactions:c,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(u,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let r=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(r=!0)})),r&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,n)=>{this.context.plugins[n]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],n=!0)}i.forEach((e=>{const r=t.context;if(r&&Object.prototype.hasOwnProperty.call(r,e)){let t=JSON.stringify(r[e]);"constraints"===e&&(t=JSON.stringify(l(l({},r[e]),s))),"interactions"===e&&(t=JSON.stringify(l(l({},r[e]),c))),t!==a[e]&&(n=!0,a[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==a.themeName&&(n=!0,a.themeName=this.context.theme.name()),this.context.translator.language()!==a.language&&(n=!0,a.language=u.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n,r){return e.component.runMenu(this,t,n,r)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return i.forEach((e=>{a[e]=JSON.stringify(u.context[e])})),a.themeName=u.context.theme?u.context.theme.name():void 0,a.language=u.context.translator?u.context.translator.language():void 0,Object.assign(u,{selections:t.selections}),[u,null]}(e,t,n):nN(e,t),a=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];try{e.qae.properties.onChange.call({model:t.model},...r)}catch(e){}return t.model.__snInterceptor.setProperties.call(this,...r)},t.model.applyPatches=function(n,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const a=wM.clone(o),i=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));wM.apply(o,i);try{e.qae.properties.onChange.call({model:t.model},o)}catch(e){}const l=wM.generate(a,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,l,r)}))},t.model.__snInterceptor.teardown=()=>{t.model.__snInterceptor&&(t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor)},a.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){a.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const oN=()=>{};function aN(e,t){return void 0===e?()=>t:()=>e}function iN(e){const t=e||{};return{min:"function"==typeof t.min?t.min:aN(t.min,0),max:"function"==typeof t.max?t.max:aN(t.max,1e3),added:t.added||t.add||oN,description:t.description||oN,moved:t.moved||t.move||oN,removed:t.removed||t.remove||oN,replaced:t.replaced||t.replace||oN,isDefined:()=>!!e}}const lN=(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 sN(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=>lN(e,n,{}),dimensions:iN(e.dimensions),measures:iN(e.measures)}}function cN(){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(sN)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function uN(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:cN(n.qae),component:n.component||{},create:e=>rN(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}const dN=(e,t,n)=>{if(!e)return Promise.resolve();let r=wM.generate(t,n);return He(!0,t,n),r&&r.length?(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,r,!0):e.applyPatches(r,!0)):Promise.resolve()},pN=()=>{};function fN(){let e,{model:t,halo:n,initialError:r,onDestroy:o=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=pN,i=null,s=null,c=null,u=null;const d=new Promise((e=>{c=e})),p=new Promise((e=>{u=e})),f=e=>()=>{e&&e(),u()};let h={},m=[];const g=new ee,v={id:t.id,model:t,async destroy(){await o(),a(),a=pN},async convertTo(e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){const o=await t.getLayout();if(yM(o)&&!r){const r=await LP({halo:n,model:t,cellRef:i,newType:e});return await xM(t,r.qProperty),r}const a=await t.getEffectiveProperties(),l=await LP({halo:n,model:t,cellRef:i,newType:e,properties:a}),s=l.qProperty;return await dN(t,a,s),l}return await LP({halo:n,model:t,cellRef:i,newType:e})},async toggleDataView(r){let o;if(e||!1===r)e&&!0!==r&&(o=t,await n.app.destroySessionObject(e),e=void 0);else{let r=n.config.context.dataViewType;const a=await t.getEffectiveProperties();if(!n.types.getSupportedVersion(r)){if(!n.types.getSupportedVersion("table"))throw new Error("No data view type registered");r="table"}const l=await LP({halo:n,model:t,cellRef:i,newType:r,properties:a,viewDataMode:!0});o=await n.app.createSessionObject(l.qProperty),e=o.id}o&&i.current.setModel(o)},addListener(e,t){g.addListener(e,t)},removeListener(e,t){g.removeListener(e,t)},getImperativeHandle:async()=>(await p,i.current.getImperativeHandle()),takeSnapshot:async()=>(await p,i.current.takeSnapshot()),__DO_NOT_USE__:{mount(e){if(s)throw new Error("Already mounted");if(!(e instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return s=e,[a,i]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,emitter:l,initialError:s}=e;const{root:c}=t,u=V.createRef(),d=pT(),p=xp.createPortal(V.createElement(mM,{ref:u,halo:t,model:r,currentId:d,initialSnOptions:o,initialSnPlugins:a,initialError:s,onMount:i,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:n,element:e,model:t,initialSnOptions:h,initialSnPlugins:m,initialError:r,onMount:c,emitter:g}),d},async applyProperties(e){const n=vM("/",e,await t.getEffectiveProperties());if(n.length)return t.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;s?(async()=>{await d,i.current.setSnOptions(l(l(l({},h),e),{onInitialRender:f(t)}))})():h=l(l(l({},h),e),{onInitialRender:f(t)})})(e)},plugins(e){(async e=>{bM(e),s?(async()=>{await d,i.current.setSnPlugins(e)})():m=e})(e)},exportImage:()=>i.current.exportImage(),takeSnapshot:()=>i.current.takeSnapshot(),getModel:()=>t,convert:{async toType(e){const r=await t.getEffectiveProperties(),o=await LP({halo:n,model:t,cellRef:i,newType:e,properties:r}),a=o.qProperty;return await dN(t,r,a),o},async revert(){await t.clearSoftPatches()}}}};return v}async function hN(e,t,n,r){const o=fN({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 mN(e,t,n,r){let{type:o,version:a,fields:i,properties:l,extendProperties:s}=e,c={};const u=[],{modelStore:d}=r;try{const e=t.types.get({name:o,version:a});c=await e.initialProperties(l,s);const n=await e.supernova();i&&await hP({sn:n,properties:c,fields:i,children:u},t),l&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},c)}catch(e){c=n?null:{qInfo:{qType:o},visualization:o}}if(!n){const e=await t.app.createObject(c);return u.length>0&&await e.setFullPropertyTree({qProperty:c,qChildren:u}),d.set(e.id,e),e}return c}const gN={className:"njs-sheet"};function vN(e,t,n){return e.bounds?e.bounds:{y:e.row/n*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/n*100}}function bN(e){let{model:t,halo:n,initialSnOptions:r,initialSnPlugins:o,initialError:a,onMount:i}=e;const{root:l}=n,[s]=XR(t),{theme:c,modelStore:u}=U.useContext(qx),[d,p]=U.useState([]),[f,h]=U.useState(void 0),[m,g]=U.useState(void 0),[v,b]=U.useState("");U.useEffect((()=>{if(s){const e=JSON.stringify(s.cells);if(e===v)return;b(e);const t=async()=>{d.forEach((e=>{l.removeCell(e.currentId)}));const e=s.cells,{columns:t,rows:r}=s,o=await Promise.all(e.map((async e=>{let o;const a=new Promise((e=>{o=e})),i=d.find((t=>t.id===e.name));if(i)return i.bounds=vN(e,t,r),delete i.mountedPromise,i;const l=await async function(e,t,n){let{id:r,options:o,plugins:a,element:i}=e;const{modelStore:l,rpcRequestModelStore:s}=n,c="".concat(r);let u=s.get(c);u||(u=t.app.getObject(r),s.set(c,u));const d=await u;return l.set(c,d),hN(d,{options:o,plugins:a,element:i},t)}({id:e.name},n,u);return{model:l.model,id:e.name,bounds:vN(e,t,r),cellRef:V.createRef(),currentId:pT(),mounted:o,mountedPromise:a}})));o.forEach((e=>l.addCell(e.currentId,e.cellRef))),p(o)};t()}}),[s]);const y=U.useMemo((()=>d?d.map((e=>function(e,t,n,r,o,a){const{x:i,y:l,width:s,height:c}=e.bounds;return V.createElement("div",{style:{left:"".concat(i,"%"),top:"".concat(l,"%"),width:"".concat(s,"%"),height:"".concat(c,"%"),position:"absolute"}},V.createElement(mM,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:a}))}(e,n,r,o,a,e.mounted))):[]),[d]);U.useEffect((()=>{const e=null!=s&&s.components?s.components.find((e=>"general"===e.key)):null;h(qI(e,n.public.theme)),g(NI(e,n.app))}),[s,n.public.theme,n.app,c]);const x=!s||Number.isNaN(s.height)?"100%":"".concat(Number(s.height),"%"),S=d.map((e=>e.mountedPromise)),w=S.filter((e=>!!e));return w.length&&Promise.all(S).then((()=>{i()})),V.createElement("div",{className:gN.className,style:{width:"100%",height:x,position:"relative",backgroundColor:f,backgroundImage:m&&m.url?"url(".concat(m.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:m&&m.size,backgroundPosition:m&&m.pos}},y)}const yN=()=>{};function xN(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=yN,a=null,i=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=yN},__DO_NOT_USE__:{mount(r){if(i)throw new Error("Already mounted");if(!(r instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return i=r,[o,a]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,initialError:l}=e;const{root:s}=t,c=V.createRef(),u=xp.createPortal(V.createElement(bN,{ref:c,halo:t,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:l,onMount:i}),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=vM("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{i?(async()=>{await c,a.current.setSnOptions(l(l({},u),e))})():u=l(l({},u),e)})(e)},plugins(e){(async e=>{bM(e),i?(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 SN(e,t,n){let{id:r,options:o,plugins:a,element:i}=e;const{modelStore:l,rpcRequestModelStore:s}=n,c="".concat(r);let u=s.get(c);u||(u=t.app.getObject(r),s.set(c,u));const d=await u;return l.set(c,d),"sheet"===d.genericType?async function(e,t,n,r){const o=xN({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}(d,{options:o,plugins:a,element:i},t):hN(d,{options:o,plugins:a,element:i},t)}function wN(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}var EN=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}};const CN=Object.freeze({loose:!0}),kN=Object.freeze({});var RN=e=>e?"object"!=typeof e?CN:e:kN,LN={exports:{}};var ON={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const _N="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error("SEMVER",...t)}:()=>{};var IN=_N;!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=ON,a=IN,i=(t=e.exports={}).re=[],l=t.safeRe=[],s=t.src=[],c=t.t={};let u=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[d,r]],f=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split("".concat(t,"*")).join("".concat(t,"{0,").concat(n,"}")).split("".concat(t,"+")).join("".concat(t,"{1,").concat(n,"}"));return e})(t),o=u++;a(e,o,t),c[e]=o,s[o]=t,i[o]=new RegExp(t,n?"g":void 0),l[o]=new RegExp(r,n?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(d,"*")),f("MAINVERSION","(".concat(s[c.NUMERICIDENTIFIER],")\\.")+"(".concat(s[c.NUMERICIDENTIFIER],")\\.")+"(".concat(s[c.NUMERICIDENTIFIER],")")),f("MAINVERSIONLOOSE","(".concat(s[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[c.NUMERICIDENTIFIERLOOSE],")")),f("PRERELEASEIDENTIFIER","(?:".concat(s[c.NUMERICIDENTIFIER],"|").concat(s[c.NONNUMERICIDENTIFIER],")")),f("PRERELEASEIDENTIFIERLOOSE","(?:".concat(s[c.NUMERICIDENTIFIERLOOSE],"|").concat(s[c.NONNUMERICIDENTIFIER],")")),f("PRERELEASE","(?:-(".concat(s[c.PRERELEASEIDENTIFIER],"(?:\\.").concat(s[c.PRERELEASEIDENTIFIER],")*))")),f("PRERELEASELOOSE","(?:-?(".concat(s[c.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(s[c.PRERELEASEIDENTIFIERLOOSE],")*))")),f("BUILDIDENTIFIER","".concat(d,"+")),f("BUILD","(?:\\+(".concat(s[c.BUILDIDENTIFIER],"(?:\\.").concat(s[c.BUILDIDENTIFIER],")*))")),f("FULLPLAIN","v?".concat(s[c.MAINVERSION]).concat(s[c.PRERELEASE],"?").concat(s[c.BUILD],"?")),f("FULL","^".concat(s[c.FULLPLAIN],"$")),f("LOOSEPLAIN","[v=\\s]*".concat(s[c.MAINVERSIONLOOSE]).concat(s[c.PRERELEASELOOSE],"?").concat(s[c.BUILD],"?")),f("LOOSE","^".concat(s[c.LOOSEPLAIN],"$")),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE","".concat(s[c.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),f("XRANGEIDENTIFIER","".concat(s[c.NUMERICIDENTIFIER],"|x|X|\\*")),f("XRANGEPLAIN","[v=\\s]*(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:".concat(s[c.PRERELEASE],")?").concat(s[c.BUILD],"?")+")?)?"),f("XRANGEPLAINLOOSE","[v=\\s]*(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(s[c.PRERELEASELOOSE],")?").concat(s[c.BUILD],"?")+")?)?"),f("XRANGE","^".concat(s[c.GTLT],"\\s*").concat(s[c.XRANGEPLAIN],"$")),f("XRANGELOOSE","^".concat(s[c.GTLT],"\\s*").concat(s[c.XRANGEPLAINLOOSE],"$")),f("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")),f("COERCE","".concat(s[c.COERCEPLAIN],"(?:$|[^\\d])")),f("COERCEFULL",s[c.COERCEPLAIN]+"(?:".concat(s[c.PRERELEASE],")?")+"(?:".concat(s[c.BUILD],")?")+"(?:$|[^\\d])"),f("COERCERTL",s[c.COERCE],!0),f("COERCERTLFULL",s[c.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM","(\\s*)".concat(s[c.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",f("TILDE","^".concat(s[c.LONETILDE]).concat(s[c.XRANGEPLAIN],"$")),f("TILDELOOSE","^".concat(s[c.LONETILDE]).concat(s[c.XRANGEPLAINLOOSE],"$")),f("LONECARET","(?:\\^)"),f("CARETTRIM","(\\s*)".concat(s[c.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",f("CARET","^".concat(s[c.LONECARET]).concat(s[c.XRANGEPLAIN],"$")),f("CARETLOOSE","^".concat(s[c.LONECARET]).concat(s[c.XRANGEPLAINLOOSE],"$")),f("COMPARATORLOOSE","^".concat(s[c.GTLT],"\\s*(").concat(s[c.LOOSEPLAIN],")$|^$")),f("COMPARATOR","^".concat(s[c.GTLT],"\\s*(").concat(s[c.FULLPLAIN],")$|^$")),f("COMPARATORTRIM","(\\s*)".concat(s[c.GTLT],"\\s*(").concat(s[c.LOOSEPLAIN],"|").concat(s[c.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE","^\\s*(".concat(s[c.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(s[c.XRANGEPLAIN],")")+"\\s*$"),f("HYPHENRANGELOOSE","^\\s*(".concat(s[c.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(s[c.XRANGEPLAINLOOSE],")")+"\\s*$"),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(LN,LN.exports);var TN=LN.exports;const PN=/^[0-9]+$/,MN=(e,t)=>{const n=PN.test(e),r=PN.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var NN={compareIdentifiers:MN,rcompareIdentifiers:(e,t)=>MN(t,e)};const qN=IN,{MAX_LENGTH:zN,MAX_SAFE_INTEGER:DN}=ON,{safeRe:AN,t:jN}=TN,FN=RN,{compareIdentifiers:BN}=NN;var $N=class e{constructor(t,n){if(n=FN(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof t,'".'));if(t.length>zN)throw new TypeError("version is longer than ".concat(zN," characters"));qN("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?AN[jN.LOOSE]:AN[jN.FULL]);if(!r)throw new TypeError("Invalid Version: ".concat(t));if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>DN||this.major<0)throw new TypeError("Invalid major version");if(this.minor>DN||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>DN||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<DN)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(t){if(qN("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),BN(this.major,t.major)||BN(this.minor,t.minor)||BN(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(qN("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return BN(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(qN("build compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return BN(e,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===BN(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error("invalid increment argument: ".concat(e))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}};const WN=$N;var HN=(e,t,n)=>new WN(e,n).compare(new WN(t,n));const UN=HN;var VN=(e,t,n)=>0===UN(e,t,n);const GN=HN;var KN=(e,t,n)=>0!==GN(e,t,n);const ZN=HN;var XN=(e,t,n)=>ZN(e,t,n)>0;const QN=HN;var JN=(e,t,n)=>QN(e,t,n)>=0;const YN=HN;var eq=(e,t,n)=>YN(e,t,n)<0;const tq=HN;var nq=(e,t,n)=>tq(e,t,n)<=0;const rq=VN,oq=KN,aq=XN,iq=JN,lq=eq,sq=nq;var cq,uq,dq,pq,fq=(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 rq(e,n,r);case"!=":return oq(e,n,r);case">":return aq(e,n,r);case">=":return iq(e,n,r);case"<":return lq(e,n,r);case"<=":return sq(e,n,r);default:throw new TypeError("Invalid operator: ".concat(t))}};function hq(){if(pq)return dq;pq=1;class e{constructor(t,o){if(o=n(o),t instanceof e)return t.loose===!!o.loose&&t.includePrerelease===!!o.includePrerelease?t:new e(t.raw,o);if(t instanceof r)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&h(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const n=((this.options.includePrerelease&&d)|(this.options.loose&&p))+":"+e,a=t.get(n);if(a)return a;const h=this.options.loose,m=h?i[l.HYPHENRANGELOOSE]:i[l.HYPHENRANGE];e=e.replace(m,R(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(i[l.COMPARATORTRIM],s),o("comparator trim",e),e=e.replace(i[l.TILDETRIM],c),o("tilde trim",e),e=e.replace(i[l.CARETTRIM],u),o("caret trim",e);let v=e.split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>k(e,this.options)));h&&(v=v.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(i[l.COMPARATORLOOSE]))))),o("range list",v);const b=new Map,y=v.map((e=>new r(e,this.options)));for(const e of y){if(f(e))return[e];b.set(e.value,e)}b.size>1&&b.has("")&&b.delete("");const x=[...b.values()];return t.set(n,x),x}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>m(e,n)&&t.set.some((t=>m(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(L(this.set[t],e,this.options))return!0;return!1}}dq=e;const t=new EN,n=RN,r=function(){if(uq)return cq;uq=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),i("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}parse(t){const n=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],a=t.match(n);if(!a)throw new TypeError("Invalid comparator: ".concat(t));this.operator=void 0!==a[1]?a[1]:"","="===this.operator&&(this.operator=""),a[2]?this.semver=new l(a[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(i("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new l(t,this.options)}catch(e){return!1}return a(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new s(e.value,r).test(this.value):""===e.operator?""===e.value||new s(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(a(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(a(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}cq=t;const n=RN,{safeRe:r,t:o}=TN,a=fq,i=IN,l=$N,s=hq();return cq}(),o=IN,a=$N,{safeRe:i,t:l,comparatorTrimReplace:s,tildeTrimReplace:c,caretTrimReplace:u}=TN,{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:p}=ON,f=e=>"<0.0.0-0"===e.value,h=e=>""===e.value,m=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},g=(e,t)=>(o("comp",e,t),e=x(e,t),o("caret",e),e=b(e,t),o("tildes",e),e=w(e,t),o("xrange",e),e=C(e,t),o("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>y(e,t))).join(" "),y=(e,t)=>{const n=t.loose?i[l.TILDELOOSE]:i[l.TILDE];return e.replace(n,((t,n,r,a,i)=>{let l;return o("tilde",e,t,n,r,a,i),v(n)?l="":v(r)?l=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):v(a)?l=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):i?(o("replaceTilde pr",i),l=">=".concat(n,".").concat(r,".").concat(a,"-").concat(i," <").concat(n,".").concat(+r+1,".0-0")):l=">=".concat(n,".").concat(r,".").concat(a," <").concat(n,".").concat(+r+1,".0-0"),o("tilde return",l),l}))},x=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{o("caret",e,t);const n=t.loose?i[l.CARETLOOSE]:i[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,a,i,l)=>{let s;return o("caret",e,t,n,a,i,l),v(n)?s="":v(a)?s=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):v(i)?s="0"===n?">=".concat(n,".").concat(a,".0").concat(r," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".0").concat(r," <").concat(+n+1,".0.0-0"):l?(o("replaceCaret pr",l),s="0"===n?"0"===a?">=".concat(n,".").concat(a,".").concat(i,"-").concat(l," <").concat(n,".").concat(a,".").concat(+i+1,"-0"):">=".concat(n,".").concat(a,".").concat(i,"-").concat(l," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".").concat(i,"-").concat(l," <").concat(+n+1,".0.0-0")):(o("no pr"),s="0"===n?"0"===a?">=".concat(n,".").concat(a,".").concat(i).concat(r," <").concat(n,".").concat(a,".").concat(+i+1,"-0"):">=".concat(n,".").concat(a,".").concat(i).concat(r," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".").concat(i," <").concat(+n+1,".0.0-0")),o("caret return",s),s}))},w=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>E(e,t))).join(" ")),E=(e,t)=>{e=e.trim();const n=t.loose?i[l.XRANGELOOSE]:i[l.XRANGE];return e.replace(n,((n,r,a,i,l,s)=>{o("xRange",e,n,r,a,i,l,s);const c=v(a),u=c||v(i),d=u||v(l),p=d;return"="===r&&p&&(r=""),s=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(i=0),l=0,">"===r?(r=">=",u?(a=+a+1,i=0,l=0):(i=+i+1,l=0)):"<="===r&&(r="<",u?a=+a+1:i=+i+1),"<"===r&&(s="-0"),n="".concat(r+a,".").concat(i,".").concat(l).concat(s)):u?n=">=".concat(a,".0.0").concat(s," <").concat(+a+1,".0.0-0"):d&&(n=">=".concat(a,".").concat(i,".0").concat(s," <").concat(a,".").concat(+i+1,".0-0")),o("xRange return",n),n}))},C=(e,t)=>(o("replaceStars",e,t),e.trim().replace(i[l.STAR],"")),k=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(i[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),R=e=>(t,n,r,o,a,i,l,s,c,u,d,p)=>(n=v(r)?"":v(o)?">=".concat(r,".0.0").concat(e?"-0":""):v(a)?">=".concat(r,".").concat(o,".0").concat(e?"-0":""):i?">=".concat(n):">=".concat(n).concat(e?"-0":""),s=v(c)?"":v(u)?"<".concat(+c+1,".0.0-0"):v(d)?"<".concat(c,".").concat(+u+1,".0-0"):p?"<=".concat(c,".").concat(u,".").concat(d,"-").concat(p):e?"<".concat(c,".").concat(u,".").concat(+d+1,"-0"):"<=".concat(s),"".concat(n," ").concat(s).trim()),L=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==r.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return dq}const mq=hq();var gq=(e,t,n)=>{try{t=new mq(t,n)}catch(e){return!1}return t.test(e)},vq=n(gq);const bq={};function yq(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:a}=o,i={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&a&&a.deps&&a.deps.properties)||vq(e,a.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const a="".concat(e,"__").concat(t);if(!bq[a]){const n="".concat(e).concat(t&&" v".concat(t)||"");if(r&&"function"!=typeof r)throw new Error("load of visualization '".concat(n,"' is not a fuction, wrap load promise in function"));const i=(r||o.load)({name:e,version:t}),l=Promise.resolve(i);bq[a]=l.then((e=>{if(!e)throw new Error("load() of visualization '".concat(n,"' resolved to an invalid object"));return e})).catch((e=>{throw new Error("Failed to load visualization: '".concat(n,"'"))}))}return bq[a]}(i.name,i.version,t,o.load).then((e=>(n=n||uN(e,t.public.galaxy),r=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.supernova().then((()=>{const n=l({qInfo:{qType:i.name},visualization:i.name,version:i.version,showTitles:!0},JSON.parse(r));return t?(He(!0,n,e),n):l(l({},n),e)}))}};return i}function xq(e,t){const n={};let r=null;return{get:e=>n[e],register:(o,a)=>{if(n[o])throw new Error("Supernova '".concat(e,"@").concat(o,"' already registered."));n[o]=yq({name:e,version:o},t,a),r=null},getMatchingVersionFromProperties:e=>{r||(r=function(e){const t=e.filter((e=>"undefined"===e));return[...t,...e.filter((e=>"undefined"!==e)).map((e=>e.split(".").map((e=>parseInt(e,10))))).sort(((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2])).map((e=>e.join(".")))]}(Object.keys(n)));for(let t=r.length-1;t>=0;t--){if(n[r[t]].supportsPropertiesVersion(e))return r[t]}return null},versions:n}}function Sq(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=xq(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(bq).forEach((t=>{t.split("__")[0]===e&&(bq[t]=void 0)}))}(e)}}}const wq={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()))},Eq={context:{},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0,IM_1869_HIDE_DIM_MEA_LINE:!0,IM_1579_HIDE_DIM_MEA:!0,CLIENT_IM_3365:!0},snapshot:wq};Eq.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table"};const Cq=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(l({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},kq=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 Rq=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=X(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let a=l(l({},t.context),{},{translator:n.translator});const[i,s]=Fx({app:e,context:a}),c=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=st();return{setTheme:async o=>{let a=e.filter((e=>e.id===o))[0],i="dark"===o?"dark":"light";if(!a&&t&&(a={load:t}),a&&a.load)try{const e=await Promise.race([a.load(o),ct(ut,{__timedOut:!0})]);e.__timedOut||(i="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(i))}catch(e){}else r.internalAPI.setTheme({type:i},o),n.setMuiThemeName(i)},externalAPI:r.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:i});a.themeApi=c.externalAPI;const u={galaxy:{translator:n.translator,flags:wN(t.flags),deviceType:dt(t.context.deviceType),anything:t.anything},theme:c.externalAPI,translator:n.translator,nebbie:null},d={app:e,root:i,config:t,public:u,context:a,types:null},p=Sq({halo:d});t.types.forEach((e=>p.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let f=c.setTheme(t.context.theme),h=null,m=null;const g={render:async e=>(await f,e.id?SN(e,d,s):async function(e,t,n){let{type:r,version:o,fields:a,properties:i,options:l,plugins:s,element:c,extendProperties:u}=e,d={};const p=[],{modelStore:f,subscribe:h}=n;let m;try{const e=t.types.get({name:r,version:o});d=await e.initialProperties(i,u);const n=await e.supernova();a&&await hP({sn:n,properties:d,fields:a,children:p},t),i&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},d)}catch(e){m=e,d={qInfo:{qType:r},visualization:r}}const g=await t.app.createSessionObject(d);p.length>0&&await g.setFullPropertyTree({qProperty:d,qChildren:p}),f.set(g.id,g);const v=h(g);return hN(g,{options:l,plugins:s,element:c},t,m,(async()=>{await t.app.destroySessionObject(g.id),v()}))}(e,d,s)),create:async e=>mN(e,d,!1,s),generateProperties:async e=>mN(e,d,!0,s),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==a[n]&&(t||(t={}),t[n]=e[n])})),t&&(a=l(l(l({},a),t),{},{translator:n.translator}),t.theme&&(f=c.setTheme(t.theme),await f),t.language&&d.public.translator.language(t.language),i.context(a))},selections:async()=>(h||(h={mount(t){m||(m=function(e){let{element:t,app:n}=e;return xp.createPortal(V.createElement(fT,{app:n}),t,pT())}({element:t,app:e}),i.add(m))},unmount(){m&&(i.remove(m),m=null)}}),h),field:async t=>{let n;const r="string"==typeof t?t:t.qLibraryId;if(t.qId)n=t.qId;else if(!r)throw new Error("Field identifier or object id must be provided");const o={fieldName:r,async mount(a){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!a)throw new Error("Element for ".concat(r||n," not provided"));if(this._instance)throw new Error("Field or object ".concat(r||n," already mounted"));const c=()=>o.emit("selectionActivated"),u=()=>o.emit("selectionDeactivated");return new Promise((r=>{this._instance=function(e){let{element:t,app:n,fieldIdentifier:r,qId:o,stateName:a="$",options:i={},renderedCallback:l}=e;return xp.createPortal(V.createElement(eP,{app:n,element:t,fieldIdentifier:r,qId:o,stateName:a,options:i,renderedCallback:l}),t,pT())}({element:a,app:e,fieldIdentifier:t,qId:n,options:YT(l({onSelectionActivated:c,onSelectionDeactivated:u},s)),stateName:s.stateName||"$",renderedCallback:r}),i.add(this._instance)}))},unmount(){this._instance&&(i.remove(this._instance),this._instance=null)}};return aI(o),o},getRegisteredTypes:p.getList,__DO_NOT_USE__:{types:p,popover(t,n,r){g._popoverInstance&&(i.remove(g._popoverInstance),g._popoverInstance=null);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=l({},tP);return He(!0,t,e),t}(l({onPopoverClose:()=>g.emit("fieldPopoverClose")},r));g._popoverInstance=V.createElement(nP,{element:t,key:pT(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),i.add(g._popoverInstance)}}};return d.public.nebbie=g,d.types=p,aI(g),g}return r.createConfiguration=n=>e(((e,t)=>({context:Cq(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:l({},t.snapshot||e.snapshot),types:kq(e.types,t.types),themes:kq(e.themes,t.themes),flags:Cq(e.flags,t.flags),anything:Cq(e.anything,t.anything)}))(t,n)),r.config=t,r}(Eq);function Lq(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const Oq=globalThis.crypto||{getRandomValues:()=>123456};function _q(e){return t=>{const n=He({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^Oq.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=n._mock;let o=n;return r&&(delete n._mock,o=He({},n,r)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(n),getEffectiveProperties:()=>Promise.resolve(n),removeListener:()=>{},id:n.qInfo.qId,properties:n,session:e})}}const Iq=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},Tq=function(e){let{defaultValue:t,async:n=!0,delay:r=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];const l=Iq(e,{defaultValue:t,args:a});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},Pq=["id","session"],Mq=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function Nq(e){return!Mq.includes(e)}function qq(e){const t=Iq(e.getLayout);return t.qInfo&&t.qInfo.qId}function zq(e,t){return e.reduce(((e,n)=>l(l({},e),function(e,t){let n=qq(e);const{delay:r}=t,{id:o,session:a}=e,i=s(e,Pq);if(o&&n&&o!==n)throw new Error("Generic object has multiple IDs, qInfo.qId: ".concat(n,", id: ").concat(o));return n=n||o||"object - ".concat(+Date.now()),{[n]:l(l({id:n,session:Iq(a,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(i).reduce(((e,t)=>{let[n,o]=t;return l(l({},e),{},{[n]:Tq(o,{async:Nq(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function Dq(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!qq(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function Aq(){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(Dq);const n=zq(e,t);return async e=>Promise.resolve(n[e])}function jq(){return()=>Promise.resolve({id:"app-layout"})}const Fq={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Lq,r=new _q(n),o=new Aq(e,t),a=new jq,i={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,destroySessionObject:async()=>{},getObject:o,getAppLayout:a};return Promise.resolve(i)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},Bq={generator:uN,hook:UM,theme:st,locale:K};e.EnigmaMocker=Fq,e.__DO_NOT_USE__=Bq,e.conversion=OP,e.embed=Rq,e.onContextMenu=function(e){const t=$M(++TM);t.value||(t.value=1,IM.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=$M(++TM);t.value||(t.value=1,IM.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=VM({action(){n._config.action.call(null)}});return n.component||(n.component=IM,IM.__hooks.actions.list.push(n)),ZM((()=>{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=WM("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return WM("appLayout")},e.useConstraints=function(){return WM("constraints")},e.useDeviceType=function(){return WM("deviceType")},e.useEffect=GM,e.useElement=XM,e.useEmbed=function(){return WM("nebbie")},e.useEmitter=function(){return WM("emitter")},e.useGlobal=function(){const e=WM("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=$M(++TM);if(n.imperative||(n.imperative=!0),PM(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],IM.__hooks.imperativeHandle=r}},e.useInteractionState=function(){return WM("interactions")},e.useKeyboard=function(){const e=WM("keyboardNavigation"),t=WM("focusHandler");if(!IM.__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&&(JM(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(IM);IM.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),QM(this))}.bind(IM);IM.__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(IM);IM.__hooks.accessibility.focusSelectionFunction=r}const n=IM.__hooks.accessibility.focusFunction,r=IM.__hooks.accessibility.exitFunction,o=IM.__hooks.accessibility.focusSelectionFunction,[a,i]=VM({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return IM.__hooks.accessibility.setter=i,IM.__hooks.accessibility.enabled=e,GM((()=>i({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),a},e.useLayout=function(){return WM("layout")},e.useMemo=ZM,e.useModel=function(){const e=WM("model");return e&&e.session?e:void 0},e.useOptions=function(){return WM("options")},e.usePlugins=function(){return WM("plugins")},e.usePromise=function(e,t){const[n,r]=VM((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=$M(++TM);return o.component||(o.component=IM),KM((()=>{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=XM(),t=IM.__hooks.resizer,[n,r]=VM((()=>{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()),KM((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:a}=e.getBoundingClientRect(),i=t.current;i.width===o&&i.height===a&&i.left===n&&i.top===r||t.setters.forEach((e=>e({left:n,top:r,width:o,height:a})))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let r=new ResizeObserver(n);return r.observe(e),()=>{r.unobserve(e),r.disconnect(e),r=null,t.resize=void 0}}}),[e]),n},e.useRenderState=function(){$M(++TM);const e=IM.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return WM("selections")},e.useStaleLayout=function(){const e=WM("layout"),[t]=VM({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=VM,e.useTheme=function(){return WM("theme")},e.useTranslator=function(){return WM("translator")}}));
|
|
133
|
+
`),mC))),yC=U.forwardRef((function(e,t){const n=Qy({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:a=!1,size:i=40,style:l,thickness:s=3.6,value:c=0,variant:u="indeterminate"}=n,d=Rp(n,lC),p=kp({},n,{color:o,disableShrink:a,size:i,thickness:s,value:c,variant:u}),f=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return Bv({root:["root",n,`color${Nm(r)}`],svg:["svg"],circle:["circle",`circle${Nm(n)}`,o&&"circleDisableShrink"]},iC,t)})(p),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((fC-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 cm.jsx(gC,kp({className:Hg(f.root,r),style:kp({width:i,height:i},m,l),ownerState:p,ref:t,role:"progressbar"},g,d,{children:cm.jsx(vC,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:cm.jsx(bC,{className:f.circle,style:h,ownerState:p,cx:fC,cy:fC,r:(fC-s)/2,fill:"none",strokeWidth:s})})}))}));function xC(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function SC(e){return parseInt(yv(e).getComputedStyle(e).paddingRight,10)||0}function wC(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===a.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&xC(e,o)}))}function EC(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function CC(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=bv(e);return t.body===e?yv(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Fv(bv(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${SC(r)+e}px`;const t=bv(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${SC(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=bv(r).body;else{const t=r.parentElement,n=yv(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const kC=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function RC(e){const t=[],n=[];return Array.from(e.querySelectorAll(kC)).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 LC(){return!0}function OC(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=RC,isEnabled:i=LC,open:l}=e,s=U.useRef(!1),c=U.useRef(null),u=U.useRef(null),d=U.useRef(null),p=U.useRef(null),f=U.useRef(!1),h=U.useRef(null),m=Rv(t.ref,h),g=U.useRef(null);U.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),U.useEffect((()=>{if(!l||!h.current)return;const e=bv(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),U.useEffect((()=>{if(!l||!h.current)return;const e=bv(h.current),t=t=>{g.current=t,!r&&i()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,u.current&&u.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!i()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=a(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,i,l,a]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return cm.jsxs(U.Fragment,{children:[cm.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),U.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),cm.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})}const _C=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&&xC(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);wC(t,e.mount,e.modalRef,r,!0);const o=EC(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=EC(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=CC(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=EC(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&&xC(e.modalRef,t),wC(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&&xC(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function IC(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=_C,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:l,children:s,onClose:c,open:u,rootRef:d}=e,p=U.useRef({}),f=U.useRef(null),h=U.useRef(null),m=Rv(h,d),[g,v]=U.useState(!u),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},w=kv((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||bv(f.current).body;o.add(x(),e),h.current&&S()})),E=U.useCallback((()=>o.isTopModal(x())),[o]),C=kv((e=>{f.current=e,e&&(u&&E()?S():h.current&&xC(h.current,y))})),k=U.useCallback((()=>{o.remove(x(),y)}),[y,o]);U.useEffect((()=>()=>{k()}),[k]),U.useEffect((()=>{u?w():b&&a||k()}),[u,k,b,a,w]);const R=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},L=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Gv(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=kp({},n,t);return kp({role:"presentation"},r,{onKeyDown:R(r),ref:m})},getBackdropProps:(e={})=>kp({"aria-hidden":!0},e,{onClick:L(e),open:u}),getTransitionProps:()=>({onEnter:mv((()=>{v(!1),i&&i()}),null==s?void 0:s.props.onEnter),onExited:mv((()=>{v(!0),l&&l(),a&&k()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:C,isTopModal:E,exited:g,hasTransition:b}}function TC(e){return Gg("MuiModal",e)}Kg("MuiModal",["root","hidden","backdrop"]);const PC=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],MC=Gy("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})=>kp({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),NC=Gy(NE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),qC=U.forwardRef((function(e,t){var n,r,o,a,i,l;const s=Qy({name:"MuiModal",props:e}),{BackdropComponent:c=NC,BackdropProps:u,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:E=!1,hideBackdrop:C=!1,keepMounted:k=!1,onBackdropClick:R,open:L,slotProps:O,slots:_}=s,I=Rp(s,PC),T=kp({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:w,disableScrollLock:E,hideBackdrop:C,keepMounted:k}),{getRootProps:P,getBackdropProps:M,getTransitionProps:N,portalRef:q,isTopModal:A,exited:z,hasTransition:D}=IC(kp({},T,{rootRef:t})),j=kp({},T,{exited:z}),F=(e=>{const{open:t,exited:n,classes:r}=e;return Bv({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},TC,r)})(j),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),D){const{onEnter:e,onExited:t}=N();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==_?void 0:_.root)?r:g.Root)?n:MC,W=null!=(o=null!=(a=null==_?void 0:_.backdrop)?a:g.Backdrop)?o:c,H=null!=(i=null==O?void 0:O.root)?i:v.root,V=null!=(l=null==O?void 0:O.backdrop)?l:v.backdrop,G=Xv({elementType:B,externalSlotProps:H,externalForwardedProps:I,getSlotProps:P,additionalProps:{ref:t,as:m},ownerState:j,className:Hg(d,null==H?void 0:H.className,null==F?void 0:F.root,!j.open&&j.exited&&(null==F?void 0:F.hidden))}),K=Xv({elementType:W,externalSlotProps:V,additionalProps:u,getSlotProps:e=>M(kp({},e,{onClick:t=>{R&&R(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Hg(null==V?void 0:V.className,null==u?void 0:u.className,null==F?void 0:F.backdrop),ownerState:j});return k||L||D&&!z?cm.jsx(Xw,{ref:q,container:h,disablePortal:S,children:cm.jsxs(B,kp({},G,{children:[!C&&c?cm.jsx(W,kp({},K)):null,cm.jsx(OC,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:w,isEnabled:A,open:L,children:U.cloneElement(f,$)})]}))}):null}));function AC(e){return Gg("MuiDivider",e)}const zC=Kg("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),DC=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],jC=Gy("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})=>kp({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)`:Cb(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})=>kp({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>kp({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>kp({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>kp({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),FC=Gy("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>kp({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)`}))),$C=U.forwardRef((function(e,t){const n=Qy({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:a,component:i=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:c="horizontal",role:u=("hr"!==i?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Rp(n,DC),h=kp({},n,{absolute:r,component:i,flexItem:l,light:s,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:l,variant:s}=e;return Bv({root:["root",t&&"absolute",s,a&&"light","vertical"===i&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===i&&"withChildrenVertical","right"===l&&"vertical"!==i&&"textAlignRight","left"===l&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]},AC,r)})(h);return cm.jsx(jC,kp({as:i,className:Hg(m.root,a),role:u,ref:t,ownerState:h},f,{children:o?cm.jsx(FC,{className:m.wrapper,ownerState:h,children:o}):null}))}));$C.muiSkipListHighlight=!0;const BC=function(e={}){const{createStyledComponent:t=pb,useThemeProps:n=fb,componentName:r="MuiStack"}=e,o=t(mb),a=U.forwardRef((function(e,t){const a=jg(n(e)),{component:i="div",direction:l="column",spacing:s=0,divider:c,children:u,className:d,useFlexGap:p=!1}=a,f=vm(a,ub),h={direction:l,spacing:s,useFlexGap:p},m=Bv({root:["root"]},(e=>Gg(r,e)),{});return cm.jsx(o,gm({as:i,ownerState:h,ref:t,className:Hg(m.root,d)},f,{children:c?hb(u,c):u}))}));return a}({createStyledComponent:Gy("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Qy({props:e,name:"MuiStack"})});function WC(e){return Gg("MuiFormControlLabel",e)}const HC=Kg("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),UC=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],VC=Gy("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${HC.label}`]:t.label},t.root,t[`labelPlacement${Nm(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>kp({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${HC.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},{[`& .${HC.label}`]:{[`&.${HC.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),GC=Gy("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${HC.error}`]:{color:(e.vars||e).palette.error.main}}))),KC=U.forwardRef((function(e,t){var n,r;const o=Qy({props:e,name:"MuiFormControlLabel"}),{className:a,componentsProps:i={},control:l,disabled:s,disableTypography:c,label:u,labelPlacement:d="end",required:p,slotProps:f={}}=o,h=Rp(o,UC),m=fE(),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=dE({props:o,muiFormControl:m,states:["error"]}),x=kp({},o,{disabled:g,labelPlacement:d,required:v,error:y.error}),S=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e;return Bv({root:["root",n&&"disabled",`labelPlacement${Nm(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},WC,t)})(x),w=null!=(r=f.typography)?r:i.typography;let E=u;return null==E||E.type===LS||c||(E=cm.jsx(LS,kp({component:"span"},w,{className:Hg(S.label,null==w?void 0:w.className),children:E}))),cm.jsxs(VC,kp({className:Hg(S.root,a),ownerState:x,ref:t},h,{children:[U.cloneElement(l,b),v?cm.jsxs(BC,{display:"block",children:[E,cm.jsxs(GC,{ownerState:x,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):E]}))})),ZC=U.createContext();function XC(e){return Gg("MuiGrid",e)}const QC=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],JC=Kg("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}`)),...QC.map((e=>`grid-xs-${e}`)),...QC.map((e=>`grid-sm-${e}`)),...QC.map((e=>`grid-md-${e}`)),...QC.map((e=>`grid-lg-${e}`)),...QC.map((e=>`grid-xl-${e}`))]),YC=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function ek(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function tk({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 nk=Gy("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:l,zeroMinWidth:s,breakpoints:c}=n;let u=[];r&&(u=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&r.push(n[`spacing-${t}-${String(o)}`])})),r}(i,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,a&&t.item,s&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==l&&t[`wrap-xs-${String(l)}`],...d]}})((({ownerState:e})=>kp({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 Im({theme:e},Mm({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${JC.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=Mm({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=tk({breakpoints:e.breakpoints.values,values:t})),o=Im({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${ek(a)}`,[`& > .${JC.item}`]:{paddingTop:ek(a)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${JC.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=Mm({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=tk({breakpoints:e.breakpoints.values,values:t})),o=Im({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${ek(a)})`,marginLeft:`-${ek(a)}`,[`& > .${JC.item}`]:{paddingLeft:ek(a)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${JC.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Mm({values:t.columns,breakpoints:e.breakpoints.values}),l="object"==typeof i?i[o]:i;if(null==l)return r;const s=Math.round(n/l*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${s} + ${ek(n)})`;c={flexBasis:e,maxWidth:e}}}a=kp({flexBasis:s,flexGrow:0,maxWidth:s},c)}return 0===e.breakpoints.values[o]?Object.assign(r,a):r[e.breakpoints.up(o)]=a,r}),{})}));const rk=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:l,breakpoints:s}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(a,s));const u=[];s.forEach((t=>{const n=e[t];n&&u.push(`grid-${t}-${String(n)}`)}));return Bv({root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...u]},XC,t)},ok=U.forwardRef((function(e,t){const n=Qy({props:e,name:"MuiGrid"}),{breakpoints:r}=gy(),o=jg(n),{className:a,columns:i,columnSpacing:l,component:s="div",container:c=!1,direction:u="row",item:d=!1,rowSpacing:p,spacing:f=0,wrap:h="wrap",zeroMinWidth:m=!1}=o,g=Rp(o,YC),v=p||f,b=l||f,y=U.useContext(ZC),x=c?i||12:y,S={},w=kp({},g);r.keys.forEach((e=>{null!=g[e]&&(S[e]=g[e],delete w[e])}));const E=kp({},o,{columns:x,container:c,direction:u,item:d,rowSpacing:v,columnSpacing:b,wrap:h,zeroMinWidth:m,spacing:f},S,{breakpoints:r.keys}),C=rk(E);return cm.jsx(ZC.Provider,{value:x,children:cm.jsx(nk,kp({ownerState:E,className:Hg(C.root,a),as:s,ref:t},w))})})),ak=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ik(e){return`scale(${e}, ${e**2})`}const lk={entering:{opacity:1,transform:ik(1)},entered:{opacity:1,transform:"none"}},sk="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ck=U.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:a,in:i,onEnter:l,onEntered:s,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=cx}=e,g=Rp(e,ak),v=Iv(),b=U.useRef(),y=gy(),x=U.useRef(null),S=Rv(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)=>{dS(e);const{duration:n,delay:r,easing:o}=pS({style:f,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=n,e.style.transition=[y.transitions.create("opacity",{duration:i,delay:r}),y.transitions.create("transform",{duration:sk?i:.666*i,delay:r,easing:o})].join(","),l&&l(e,t)})),k=w(s),R=w(p),L=w((e=>{const{duration:t,delay:n,easing:r}=pS({style:f,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:sk?o:.666*o,delay:sk?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=ik(.75),u&&u(e)})),O=w(d);return cm.jsx(m,kp({appear:r,in:i,nodeRef:x,onEnter:C,onEntered:k,onEntering:E,onExit:L,onExited:O,onExiting:R,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>U.cloneElement(o,kp({style:kp({opacity:0,transform:ik(.75),visibility:"exited"!==e||i?void 0:"hidden"},lk[e],f,o.props.style),ref:S},t))}))}));function uk(e){return Gg("MuiIcon",e)}ck.muiSupportAuto=!0,Kg("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const dk=["baseClassName","className","color","component","fontSize"],pk=Gy("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Nm(n.color)}`],t[`fontSize${Nm(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]}))),fk=U.forwardRef((function(e,t){const n=Qy({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:a="inherit",component:i="span",fontSize:l="medium"}=n,s=Rp(n,dk),c=kp({},n,{baseClassName:r,color:a,component:i,fontSize:l}),u=(e=>{const{color:t,fontSize:n,classes:r}=e;return Bv({root:["root","inherit"!==t&&`color${Nm(t)}`,`fontSize${Nm(n)}`]},uk,r)})(c);return cm.jsx(pk,kp({as:i,className:Hg(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t},s))}));function hk(e){return Gg("MuiInputAdornment",e)}fk.muiName="Icon";const mk=Kg("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var gk;const vk=["children","className","component","disablePointerEvents","disableTypography","position","variant"],bk=Gy("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Nm(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>kp({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${mk.positionStart}&:not(.${mk.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),yk=U.forwardRef((function(e,t){const n=Qy({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:i=!1,disableTypography:l=!1,position:s,variant:c}=n,u=Rp(n,vk),d=fE()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f=kp({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:i,position:s,variant:p}),h=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e;return Bv({root:["root",n&&"disablePointerEvents",o&&`position${Nm(o)}`,i,r&&"hiddenLabel",a&&`size${Nm(a)}`]},hk,t)})(f);return cm.jsx(pE.Provider,{value:null,children:cm.jsx(bk,kp({as:a,ownerState:f,className:Hg(h.root,o),ref:t},u,{children:"string"!=typeof r||l?cm.jsxs(U.Fragment,{children:["start"===s?gk||(gk=cm.jsx("span",{className:"notranslate",children:""})):null,r]}):cm.jsx(LS,{color:"text.secondary",children:r})}))})})),xk=U.createContext({});function Sk(e){return Gg("MuiList",e)}Kg("MuiList",["root","padding","dense","subheader"]);const wk=["children","className","component","dense","disablePadding","subheader"],Ek=Gy("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})=>kp({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Ck=U.forwardRef((function(e,t){const n=Qy({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:s}=n,c=Rp(n,wk),u=U.useMemo((()=>({dense:i})),[i]),d=kp({},n,{component:a,dense:i,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Bv({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Sk,t)})(d);return cm.jsx(xk.Provider,{value:u,children:cm.jsxs(Ek,kp({as:a,className:Hg(p.root,o),ref:t,ownerState:d},c,{children:[s,r]}))})}));function kk(e){return Gg("MuiListItem",e)}const Rk=Kg("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Lk=Kg("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Ok(e){return Gg("MuiListItemSecondaryAction",e)}Kg("MuiListItemSecondaryAction",["root","disableGutters"]);const _k=["className"],Ik=Gy("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>kp({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),Tk=U.forwardRef((function(e,t){const n=Qy({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Rp(n,_k),a=kp({},n,{disableGutters:U.useContext(xk).disableGutters}),i=(e=>{const{disableGutters:t,classes:n}=e;return Bv({root:["root",t&&"disableGutters"]},Ok,n)})(a);return cm.jsx(Ik,kp({className:Hg(i.root,r),ownerState:a,ref:t},o))}));Tk.muiName="ListItemSecondaryAction";const Pk=["className"],Mk=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Nk=Gy("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})=>kp({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&kp({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Lk.root}`]:{paddingRight:48}},{[`&.${Rk.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Rk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Cb(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Rk.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Cb(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Rk.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"}},[`&.${Rk.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Cb(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})`:Cb(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),qk=Gy("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Ak=U.forwardRef((function(e,t){const n=Qy({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:a=!1,children:i,className:l,component:s,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:v=!1,focusVisibleClassName:b,secondaryAction:y,selected:x=!1,slotProps:S={},slots:w={}}=n,E=Rp(n.ContainerProps,Pk),C=Rp(n,Mk),k=U.useContext(xk),R=U.useMemo((()=>({dense:f||k.dense||!1,alignItems:r,disableGutters:m})),[r,k.dense,f,m]),L=U.useRef(null);pv((()=>{o&&L.current&&L.current.focus()}),[o]);const O=U.Children.toArray(i),_=O.length&&vv(O[O.length-1],["ListItemSecondaryAction"]),I=kp({},n,{alignItems:r,autoFocus:o,button:a,dense:R.dense,disabled:h,disableGutters:m,disablePadding:g,divider:v,hasSecondaryAction:_,selected:x}),T=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:l,divider:s,hasSecondaryAction:c,selected:u}=e;return Bv({root:["root",o&&"dense",!i&&"gutters",!l&&"padding",s&&"divider",a&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},kk,r)})(I),P=Rv(L,t),M=w.root||c.Root||Nk,N=S.root||u.root||{},q=kp({className:Hg(T.root,N.className,l),disabled:h},C);let A=s||"li";return a&&(q.component=s||"div",q.focusVisibleClassName=Hg(Rk.focusVisible,b),A=Nx),_?(A=q.component||s?A:"div","li"===d&&("li"===A?A="div":"li"===q.component&&(q.component="div")),cm.jsx(xk.Provider,{value:R,children:cm.jsxs(qk,kp({as:d,className:Hg(T.container,p),ref:P,ownerState:I},E,{children:[cm.jsx(M,kp({},N,!Wv(M)&&{as:A,ownerState:kp({},I,N.ownerState)},q,{children:O})),O.pop()]}))})):cm.jsx(xk.Provider,{value:R,children:cm.jsxs(M,kp({},N,{as:A,ref:P},!Wv(M)&&{ownerState:kp({},I,N.ownerState)},q,{children:[O,y&&cm.jsx(Tk,{children:y})]}))})}));function zk(e){return Gg("MuiListItemIcon",e)}const Dk=Kg("MuiListItemIcon",["root","alignItemsFlexStart"]),jk=["className"],Fk=Gy("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})=>kp({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),$k=U.forwardRef((function(e,t){const n=Qy({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Rp(n,jk),a=kp({},n,{alignItems:U.useContext(xk).alignItems}),i=(e=>{const{alignItems:t,classes:n}=e;return Bv({root:["root","flex-start"===t&&"alignItemsFlexStart"]},zk,n)})(a);return cm.jsx(Fk,kp({className:Hg(i.root,r),ownerState:a,ref:t},o))})),Bk=Kg("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Wk=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Hk(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Uk(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Vk(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 Gk(e,t,n,r,o,a){let i=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Vk(l,a)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const Kk=U.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:i,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=Rp(e,Wk),p=U.useRef(null),f=U.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});pv((()=>{r&&p.current.focus()}),[r]),U.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Fv(bv(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=Rv(p,t);let m=-1;U.Children.forEach(a,((e,t)=>{U.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=a.length&&(m=-1))):m===t&&(m+=1,m>=a.length&&(m=-1))}));const g=U.Children.map(a,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),U.cloneElement(e,t)}return e}));return cm.jsx(Ck,kp({role:"menu",ref:h,className:i,onKeyDown:e=>{const t=p.current,n=e.key,r=bv(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Gk(t,r,s,l,Hk);else if("ArrowUp"===n)e.preventDefault(),Gk(t,r,s,l,Uk);else if("Home"===n)e.preventDefault(),Gk(t,null,s,l,Hk);else if("End"===n)e.preventDefault(),Gk(t,null,s,l,Uk);else if(1===n.length){const o=f.current,a=n.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const s=r&&!o.repeating&&Vk(r,o);o.previousKeyMatched&&(s||Gk(t,r,!1,l,Hk,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:g}))}));function Zk(e){return Gg("MuiPopover",e)}Kg("MuiPopover",["root","paper"]);const Xk=["onEntering"],Qk=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Jk=["slotProps"];function Yk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function eR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function tR(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function nR(e){return"function"==typeof e?e():e}const rR=Gy(qC,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oR=Gy(gS,{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}),aR=U.forwardRef((function(e,t){var n,r,o;const a=Qy({props:e,name:"MuiPopover"}),{action:i,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=ck,transitionDuration:w="auto",TransitionProps:{onEntering:E}={},disableScrollLock:C=!1}=a,k=Rp(a.TransitionProps,Xk),R=Rp(a,Qk),L=null!=(n=null==y?void 0:y.paper)?n:v,O=U.useRef(),_=Rv(O,L.ref),I=kp({},a,{anchorOrigin:s,anchorReference:u,elevation:h,marginThreshold:m,externalPaperSlotProps:L,transformOrigin:x,TransitionComponent:S,transitionDuration:w,TransitionProps:k}),T=(e=>{const{classes:t}=e;return Bv({root:["root"],paper:["paper"]},Zk,t)})(I),P=U.useCallback((()=>{if("anchorPosition"===u)return c;const e=nR(l),t=(e&&1===e.nodeType?e:bv(O.current).body).getBoundingClientRect();return{top:t.top+Yk(t,s.vertical),left:t.left+eR(t,s.horizontal)}}),[l,s.horizontal,s.vertical,c,u]),M=U.useCallback((e=>({vertical:Yk(e,x.vertical),horizontal:eR(e,x.horizontal)})),[x.horizontal,x.vertical]),N=U.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=M(t);if("none"===u)return{top:null,left:null,transformOrigin:tR(n)};const r=P();let o=r.top-n.vertical,a=r.left-n.horizontal;const i=o+t.height,s=a+t.width,c=yv(nR(l)),d=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&i>d){const e=i-d;o-=e,n.vertical+=e}if(null!==m&&a<m){const e=a-m;a-=e,n.horizontal+=e}else if(s>p){const e=s-p;a-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(a)}px`,transformOrigin:tR(n)}}),[l,u,P,M,m]),[q,A]=U.useState(g),z=U.useCallback((()=>{const e=O.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,A(!0)}),[N]);U.useEffect((()=>(C&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z))),[l,C,z]);U.useEffect((()=>{g&&z()})),U.useImperativeHandle(i,(()=>g?{updatePosition:()=>{z()}}:null),[g,z]),U.useEffect((()=>{if(!g)return;const e=gv((()=>{z()})),t=yv(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,z]);let D=w;"auto"!==w||S.muiSupportAuto||(D=void 0);const j=f||(l?bv(nR(l)).body:void 0),F=null!=(r=null==b?void 0:b.root)?r:rR,$=null!=(o=null==b?void 0:b.paper)?o:oR,B=Xv({elementType:$,externalSlotProps:kp({},L,{style:q?L.style:kp({},L.style,{opacity:0})}),additionalProps:{elevation:h,ref:_},ownerState:I,className:Hg(T.paper,null==L?void 0:L.className)}),W=Xv({elementType:F,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:R,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:I,className:Hg(T.root,p)}),{slotProps:H}=W,V=Rp(W,Jk);return cm.jsx(F,kp({},V,!Wv(F)&&{slotProps:H,disableScrollLock:C},{children:cm.jsx(S,kp({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),z()},onExited:()=>{A(!1)},timeout:D},k,{children:cm.jsx($,kp({},B,{children:d}))}))}))}));function iR(e){return Gg("MuiMenuItem",e)}const lR=Kg("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),sR=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],cR=Gy(Nx,{shouldForwardProp:e=>Vy(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})=>kp({},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"}},[`&.${lR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Cb(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${lR.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Cb(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${lR.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Cb(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})`:Cb(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${lR.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${lR.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${zC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${zC.inset}`]:{marginLeft:52},[`& .${Bk.root}`]:{marginTop:0,marginBottom:0},[`& .${Bk.inset}`]:{paddingLeft:36},[`& .${Dk.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&kp({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Dk.root} svg`]:{fontSize:"1.25rem"}})))),uR=U.forwardRef((function(e,t){const n=Qy({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:a=!1,divider:i=!1,disableGutters:l=!1,focusVisibleClassName:s,role:c="menuitem",tabIndex:u,className:d}=n,p=Rp(n,sR),f=U.useContext(xk),h=U.useMemo((()=>({dense:a||f.dense||!1,disableGutters:l})),[f.dense,a,l]),m=U.useRef(null);pv((()=>{r&&m.current&&m.current.focus()}),[r]);const g=kp({},n,{dense:h.dense,divider:i,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e;return kp({},i,Bv({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},iR,i))})(n),b=Rv(m,t);let y;return n.disabled||(y=void 0!==u?u:-1),cm.jsx(xk.Provider,{value:h,children:cm.jsx(cR,kp({ref:b,role:c,tabIndex:y,component:o,focusVisibleClassName:Hg(v.focusVisible,s),className:Hg(v.root,d)},p,{ownerState:g,classes:v}))})}));var dR;const pR=["children","classes","className","label","notched"],fR=Gy("fieldset",{shouldForwardProp:Vy})({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%"}),hR=Gy("legend",{shouldForwardProp:Vy})((({ownerState:e,theme:t})=>kp({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&&kp({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 mR=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],gR=Gy(SE,{shouldForwardProp:e=>Vy(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:yE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return kp({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${LE.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${LE.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${LE.focused} .${LE.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${LE.error} .${LE.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${LE.disabled} .${LE.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&kp({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),vR=Gy((function(e){const{className:t,label:n,notched:r}=e,o=Rp(e,pR),a=null!=n&&""!==n,i=kp({},e,{notched:r,withLabel:a});return cm.jsx(fR,kp({"aria-hidden":!0,className:t,ownerState:i},o,{children:cm.jsx(hR,{ownerState:i,children:a?cm.jsx("span",{children:n}):dR||(dR=cm.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}})),bR=Gy(wE,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:xE})((({theme:e,ownerState:t})=>kp({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}))),yR=U.forwardRef((function(e,t){var n,r,o,a,i;const l=Qy({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=Rp(l,mR),v=(e=>{const{classes:t}=e;return kp({},t,Bv({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},RE,t))})(l),b=fE(),y=dE({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=kp({},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:gR,w=null!=(o=null!=(a=h.input)?a:s.Input)?o:bR;return cm.jsx(kE,kp({slots:{root:S,input:w},renderSuffix:e=>cm.jsx(vR,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?i||(i=cm.jsxs(U.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:u,multiline:p,ref:t,type:m},g,{classes:kp({},v,{notchedOutline:null})}))}));yR.muiName="Input";var xR=sS(cm.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"),SR=sS(cm.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 wR=Gy("span",{shouldForwardProp:Vy})({position:"relative",display:"flex"}),ER=Gy(xR)({transform:"scale(1)"}),CR=Gy(SR)((({theme:e,ownerState:t})=>kp({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 kR(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=kp({},e,{checked:t});return cm.jsxs(wR,{className:n.root,ownerState:o,children:[cm.jsx(ER,{fontSize:r,className:n.background,ownerState:o}),cm.jsx(CR,{fontSize:r,className:n.dot,ownerState:o})]})}const RR=U.createContext(void 0);function LR(e){return Gg("MuiRadio",e)}const OR=Kg("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),_R=["checked","checkedIcon","color","icon","name","onChange","size","className"],IR=Gy(KE,{shouldForwardProp:e=>Vy(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${Nm(n.size)}`],t[`color${Nm(n.color)}`]]}})((({theme:e,ownerState:t})=>kp({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})`:Cb("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${OR.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${OR.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const TR=cm.jsx(kR,{checked:!0}),PR=cm.jsx(kR,{}),MR=U.forwardRef((function(e,t){var n,r;const o=Qy({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:i=TR,color:l="primary",icon:s=PR,name:c,onChange:u,size:d="medium",className:p}=o,f=Rp(o,_R),h=kp({},o,{color:l,size:d}),m=(e=>{const{classes:t,color:n,size:r}=e;return kp({},t,Bv({root:["root",`color${Nm(n)}`,"medium"!==r&&`size${Nm(r)}`]},LR,t))})(h),g=U.useContext(RR);let v=a;const b=mv(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)),cm.jsx(IR,kp({type:"radio",icon:U.cloneElement(s,{fontSize:null!=(n=PR.props.fontSize)?n:d}),checkedIcon:U.cloneElement(i,{fontSize:null!=(r=TR.props.fontSize)?r:d}),ownerState:h,classes:m,name:y,checked:v,onChange:b,ref:t,className:Hg(m.root,p)},f))}));function NR(e){return Gg("MuiTooltip",e)}const qR=Kg("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),AR=["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 zR=Gy(iE,{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})=>kp({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${qR.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${qR.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${qR.arrow}`]:kp({},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"] .${qR.arrow}`]:kp({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),DR=Gy("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${Nm(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return kp({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Cb(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},{[`.${qR.popper}[data-popper-placement*="left"] &`]:kp({transformOrigin:"right center"},t.isRtl?kp({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):kp({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${qR.popper}[data-popper-placement*="right"] &`]:kp({transformOrigin:"left center"},t.isRtl?kp({marginRight:"14px"},t.touch&&{marginRight:"24px"}):kp({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${qR.popper}[data-popper-placement*="top"] &`]:kp({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${qR.popper}[data-popper-placement*="bottom"] &`]:kp({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),jR=Gy("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:Cb(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let FR=!1;const $R=new _v;let BR={x:0,y:0};function WR(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const HR=U.forwardRef((function(e,t){var n,r,o,a,i,l,s,c,u,d,p,f,h,m,g,v,b,y,x;const S=Qy({props:e,name:"MuiTooltip"}),{arrow:w=!1,children:E,components:C={},componentsProps:k={},describeChild:R=!1,disableFocusListener:L=!1,disableHoverListener:O=!1,disableInteractive:_=!1,disableTouchListener:I=!1,enterDelay:T=100,enterNextDelay:P=0,enterTouchDelay:M=700,followCursor:N=!1,id:q,leaveDelay:A=0,leaveTouchDelay:z=1500,onClose:D,onOpen:j,open:F,placement:$="bottom",PopperComponent:B,PopperProps:W={},slotProps:H={},slots:V={},title:G,TransitionComponent:K=ck,TransitionProps:Z}=S,X=Rp(S,AR),Q=U.isValidElement(E)?E:cm.jsx("span",{children:E}),J=gy(),Y=(()=>{const e=U.useContext(nb);return null!=e&&e})(),[ee,te]=U.useState(),[ne,re]=U.useState(null),oe=U.useRef(!1),ae=_||N,ie=Iv(),le=Iv(),se=Iv(),ce=Iv(),[ue,de]=Cv({controlled:F,default:!1,name:"Tooltip",state:"open"});let pe=ue;const fe=Ev(q),he=U.useRef(),me=kv((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ce.clear()}));U.useEffect((()=>me),[me]);const ge=e=>{$R.clear(),FR=!0,de(!0),j&&!pe&&j(e)},ve=kv((e=>{$R.start(800+A,(()=>{FR=!1})),de(!1),D&&pe&&D(e),ie.start(J.transitions.duration.shortest,(()=>{oe.current=!1}))})),be=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),le.clear(),se.clear(),T||FR&&P?le.start(FR?P:T,(()=>{ge(e)})):ge(e))},ye=e=>{le.clear(),se.start(A,(()=>{ve(e)}))},{isFocusVisibleRef:xe,onBlur:Se,onFocus:we,ref:Ee}=jv(),[,Ce]=U.useState(!1),ke=e=>{Se(e),!1===xe.current&&(Ce(!1),ye(e))},Re=e=>{ee||te(e.currentTarget),we(e),!0===xe.current&&(Ce(!0),be(e))},Le=e=>{oe.current=!0;const t=Q.props;t.onTouchStart&&t.onTouchStart(e)},Oe=e=>{Le(e),se.clear(),ie.clear(),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(M,(()=>{document.body.style.WebkitUserSelect=he.current,be(e)}))},_e=e=>{Q.props.onTouchEnd&&Q.props.onTouchEnd(e),me(),se.start(z,(()=>{ve(e)}))};U.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}}),[ve,pe]);const Ie=Rv(Q.ref,Ee,te,t);G||0===G||(pe=!1);const Te=U.useRef(),Pe={},Me="string"==typeof G;R?(Pe.title=pe||!Me||O?null:G,Pe["aria-describedby"]=pe?fe:null):(Pe["aria-label"]=Me?G:null,Pe["aria-labelledby"]=pe&&!Me?fe:null);const Ne=kp({},Pe,X,Q.props,{className:Hg(X.className,Q.props.className),onTouchStart:Le,ref:Ie},N?{onMouseMove:e=>{const t=Q.props;t.onMouseMove&&t.onMouseMove(e),BR={x:e.clientX,y:e.clientY},Te.current&&Te.current.update()}}:{}),qe={};I||(Ne.onTouchStart=Oe,Ne.onTouchEnd=_e),O||(Ne.onMouseOver=WR(be,Ne.onMouseOver),Ne.onMouseLeave=WR(ye,Ne.onMouseLeave),ae||(qe.onMouseOver=be,qe.onMouseLeave=ye)),L||(Ne.onFocus=WR(Re,Ne.onFocus),Ne.onBlur=WR(ke,Ne.onBlur),ae||(qe.onFocus=Re,qe.onBlur=ke));const Ae=U.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=W.popperOptions)&&e.modifiers&&(t=t.concat(W.popperOptions.modifiers)),kp({},W.popperOptions,{modifiers:t})}),[ne,W]),ze=kp({},S,{isRtl:Y,arrow:w,disableInteractive:ae,placement:$,PopperComponentProp:B,touch:oe.current}),De=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e;return Bv({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Nm(a.split("-")[0])}`],arrow:["arrow"]},NR,t)})(ze),je=null!=(n=null!=(r=V.popper)?r:C.Popper)?n:zR,Fe=null!=(o=null!=(a=null!=(i=V.transition)?i:C.Transition)?a:K)?o:ck,$e=null!=(l=null!=(s=V.tooltip)?s:C.Tooltip)?l:DR,Be=null!=(c=null!=(u=V.arrow)?u:C.Arrow)?c:jR,We=Hv(je,kp({},W,null!=(d=H.popper)?d:k.popper,{className:Hg(De.popper,null==W?void 0:W.className,null==(p=null!=(f=H.popper)?f:k.popper)?void 0:p.className)}),ze),He=Hv(Fe,kp({},Z,null!=(h=H.transition)?h:k.transition),ze),Ue=Hv($e,kp({},null!=(m=H.tooltip)?m:k.tooltip,{className:Hg(De.tooltip,null==(g=null!=(v=H.tooltip)?v:k.tooltip)?void 0:g.className)}),ze),Ve=Hv(Be,kp({},null!=(b=H.arrow)?b:k.arrow,{className:Hg(De.arrow,null==(y=null!=(x=H.arrow)?x:k.arrow)?void 0:y.className)}),ze);return cm.jsxs(U.Fragment,{children:[U.cloneElement(Q,Ne),cm.jsx(je,kp({as:null!=B?B:iE,placement:$,anchorEl:N?{getBoundingClientRect:()=>({top:BR.y,left:BR.x,right:BR.x,bottom:BR.y,width:0,height:0})}:ee,popperRef:Te,open:!!ee&&pe,id:fe,transition:!0},qe,We,{popperOptions:Ae,children:({TransitionProps:e})=>cm.jsx(Fe,kp({timeout:J.transitions.duration.shorter},e,He,{children:cm.jsxs($e,kp({},Ue,{children:[G,w?cm.jsx(Be,kp({},Ve,{ref:re})):null]}))}))}))]})}));function UR(){const{useModelStore:e}=U.useContext(Jx).modelStore;return e()}function VR(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=UR(),[o]=function(){const{useRpcRequestSessionModelStore:e}=U.useContext(Jx).modelStore;return e()}(),[a,i]=U.useState();for(var l=arguments.length,s=new Array(l>2?l-2:0),c=2;c<l;c++)s[c-2]=arguments[c];return U.useEffect((()=>{if(!t)return;(async()=>{let a=o.get(n);a||(a=t.createSessionObject(e),o.set(n,a));const l=await a;r.set(n,l),i(l)})()}),[t,...s]),[a]}const GR={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function KR(e){return VR(GR,e)}const ZR=e=>new Promise((t=>{setTimeout(t,e)})),XR=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let a;switch(t.type){case"INVALID":a=l(l({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":a={result:l({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":a=l(l({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let i=n.get(r);return i||(i={}),i[o]=a,n.set(r,i),a};function QR(e,t){const n=e?"".concat(e.id):null,[r]=function(){const{useRpcResultStore:e}=U.useContext(Jx).modelStore;return e()}(),[o,a]=U.useReducer(XR,n?r.get(n):null),[i]=function(){const{useModelChangedStore:e}=U.useContext(Jx).modelStore;return e()}(),[l]=function(){const{useRpcRequestStore:e}=U.useContext(Jx).modelStore;return e()}();let s;n&&(s=l.get(n),s||(s={},l.set(n,s)));const c=async o=>{let i=s[t];if(!i||i&&i.rpcRetry){i={rpc:e[t](),rpcRetry:!1},s[t]=i,a({type:"INVALID",method:t,key:n,model:e,rpcResultStore:r,canCancel:!0})}try{await ZR(0);const o=await i.rpc;a({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(i.rpcRetry||(i.rpcRetry=!0),c(!0))}},u={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(s[t].rpc.requestId),a({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{s[t].rpcRetry=!0,c()}};return U.useEffect((()=>{e&&c()}),[e,i.get(e&&e.id),n,t]),[o&&o.result,{validating:o&&o.validating,canCancel:o&&o.canCancel,canRetry:o&&o.canRetry},u]}function JR(e){return QR(e,"getLayout")}function YR(e){return QR(e,"getAppLayout")}function eL(){const[e,t]=U.useState(),[n,r]=U.useState(),o=U.useCallback((e=>{e&&t(e)}),[]),a=()=>{const{left:t,top:n,width:o,height:a}=e.getBoundingClientRect();r({left:t,top:n,width:o,height:a})};return U.useLayoutEffect((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(a);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return a(),window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}}}),[e]),[o,n,e]}function tL(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function nL(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:o=[]}=e;const i=l({fontSize:tL(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n);return V.createElement("i",{style:i},V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},o.map(((e,t)=>{let{type:n,attrs:r}=e;return V.createElement(n,a({key:t},r))}))))}var rL=e=>nL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"}}]}))(e));var oL=e=>nL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));const aL=e=>l(l({},e),{},{viewBox:"0 0 12 16",shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]});var iL=e=>nL(aL(e));var lL=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}}(),sL=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},cL=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=sL(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r._lastRenderedStartIndex=-1,r._lastRenderedStopIndex=-1,r._memoizedUnloadedRanges=[],r._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;r._lastRenderedStartIndex=t,r._lastRenderedStopIndex=n,r._ensureRowsLoaded(t,n)},r._setRef=function(e){r._listRef=e},sL(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),lL(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,r=n.isItemLoaded,o=n.itemCount,a=n.minimumBatchSize,i=void 0===a?10:a,l=n.threshold,s=void 0===l?15:l,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.startIndex,a=e.stopIndex,i=[],l=null,s=null,c=o;c<=a;c++)t(c)?null!==s&&(i.push(l,s),l=s=null):(s=c,null===l&&(l=c));if(null!==s){for(var u=Math.min(Math.max(s,l+r-1),n-1),d=s+1;d<=u&&!t(d);d++)s=d;i.push(l,s)}if(i.length)for(;i[1]-i[0]+1<r&&i[0]>0;){var p=i[0]-1;if(t(p))break;i[0]=p}return i}({isItemLoaded:r,itemCount:o,minimumBatchSize:i,startIndex:Math.max(0,e-s),stopIndex:Math.min(o-1,t+s)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some((function(e,t){return c[t]!==e})))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,r=function(r){var o=e[r],a=e[r+1],i=n(o,a);null!=i&&i.then((function(){if(function(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,o=e.stopIndex;return!(r>n||o<t)}({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:a})){if(null==t._listRef)return;"function"==typeof t._listRef.resetAfterIndex?t._listRef.resetAfterIndex(o,!0):("function"==typeof t._listRef._getItemStyleCache&&t._listRef._getItemStyleCache(-1),t._listRef.forceUpdate())}}))},o=0;o<e.length;o+=2)r(o)}}]),t}(U.PureComponent);const uL=["S","XS"],dL=e=>e.reduce(((e,t)=>e.concat(t)));function pL(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!uL.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return dL(t)}async function fL(e){let{selections:t,elemNumbers:n,toggle:r,isSingleSelect:o}=e;if(0===n.length)return!1;let a=!1;if(!n.some((e=>Number.isNaN(e)))){const e=n;try{a=!1!==await t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,r]})}catch(e){a=!1}a||(o?t.cancel():t.clear())}return a}const hL="RowColumn",mL={row:"".concat(hL,"-row"),rowBorderBottom:"".concat(hL,"-rowBorderBottom"),column:"".concat(hL,"-column"),fieldRoot:"".concat(hL,"-fieldRoot"),cell:"".concat(hL,"-cell"),labelText:"".concat(hL,"-labelText"),labelDense:"".concat(hL,"-labelDense"),highlighted:"".concat(hL,"-highlighted"),checkboxLabel:"".concat(hL,"-checkboxLabel"),icon:"".concat(hL,"-icon"),S:"".concat(hL,"-S"),XS:"".concat(hL,"-XS"),A:"".concat(hL,"-A"),X:"".concat(hL,"-X"),frequencyCount:"".concat(hL,"-frequencyCount"),barContainer:"".concat(hL,"-barContainer"),bar:"".concat(hL,"-bar"),barSelected:"".concat(hL,"-barSelected"),barWithCheckbox:"".concat(hL,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(hL,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(hL,"-excludedTextWithCheckbox")},gL=".".concat(mL.fieldRoot),vL=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function bL(e){var t;let{selectionState:n,selections:r,checkboxes:o=!1,doc:a=document,loaderRef:i}=e;const l=U.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});U.useEffect((()=>{var e;if(null===(e=i.current)||void 0===e||null===(e=e._listRef)||void 0===e||!e._outerRef)return;const t=e=>e.preventDefault(),n=e=>e.preventDefault(),r=e=>e.preventDefault(),o=i.current._listRef._outerRef;return o.addEventListener("gesturestart",t),o.addEventListener("gesturechange",n),o.addEventListener("gestureend",r),()=>{o.removeEventListener("gesturestart",t),o.removeEventListener("gesturechange",n),o.removeEventListener("gestureend",r)}}),[null===(t=i.current)||void 0===t||null===(t=t._listRef)||void 0===t?void 0:t._outerRef]);const s=async()=>{var e;return(null===(e=n.selectDisabled)||void 0===e||!e.call(n))&&(n.setSelectableValuesUpdating(),fL({selections:r,elemNumbers:l.current.elemNumbers,isSingleSelect:n.isSingleSelect,toggle:l.current.toggle}))},c=(e,t)=>{const r=function(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}));return t}));return dL(t)}(n.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r})),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([e,t],r)},u=e=>{const{startElemNumber:t}=l.current;if(t===e)return;const r=c(l.current.startElemNumber,e);n.updateItems(r,!0,l.current.elemNumbers)},d=U.useCallback((e=>{if(n.selectDisabled())return;const t=+e.target.getAttribute("data-n"),r=!n.isSingleSelect&&vL(e.nativeEvent);l.current.elemNumbers=[t],l.current.toggle=r,r||n.clearItemStates(!0),n.updateItem(t),l.current.active=!1,s()}),[]),p=U.useCallback((e=>{if(0!==e.button||n.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),r=!n.isSingleSelect&&vL(e);l.current.isRange=!1,l.current.startElemNumber=t,l.current.elemNumbers=[t],l.current.toggle=r,l.current.active=!0,r||n.clearItemStates(!0),n.updateItem(t),n.isSingleSelect&&(l.current.active=!1,s()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),f=U.useCallback((e=>{if(0===e.button&&l.current.active){if(l.current.active=!1,l.current.isRange){const t=+e.currentTarget.getAttribute("data-n");u(t)}s()}}),[]),h=U.useCallback((e=>{0===e.button&&l.current.active&&(l.current.active=!1,s())}),[]),m=U.useCallback((e=>{if(!l.current.active)return;l.current.isRange||(l.current.isRange=!0,n.isSelected(l.current.startElemNumber)||(n.updateItem(l.current.startElemNumber,!0),l.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");u(t)}),[]),g=U.useCallback((e=>{var t,r;if(l.current.active||l.current.isRange||n.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void s();const o=Number(null===(t=e.touches[0].target)||void 0===t||null===(t=t.closest(gL))||void 0===t?void 0:t.getAttribute("data-n")),a=Number(null===(r=e.touches[1].target)||void 0===r||null===(r=r.closest(gL))||void 0===r?void 0:r.getAttribute("data-n"));if(Number.isNaN(o)||Number.isNaN(o))return void s();l.current.active=!0;c(o,a).length<7&&(l.current.touchRangeSmall=!0),l.current.elemNumbers=[],l.current.touchElemNumbers=[o,a]}),[]),v=U.useCallback((()=>{if(2!==l.current.touchElemNumbers.length)return;if(l.current.touchRangeSmall)return l.current.touchRangeSmall=!1,l.current.touchElemNumbers=[],void(l.current.active=!1);const[e,t]=l.current.touchElemNumbers;l.current.startElemNumber=e,u(t),l.current.touchElemNumbers=[],l.current.active=!1,l.current.toggle=!0,s()}),[]);U.useEffect((()=>(a.addEventListener("mouseup",h),()=>{a.removeEventListener("mouseup",h)})),[h]),U.useEffect((()=>{const e=()=>{n.clearItemStates(!1)},t=()=>{n.clearItemStates(!0),n.triggerStateChanged()};return r.on("clearItemStates",e),r.on("deactivated",e),r.on("cleared",t),()=>{r.removeListener("clearItemStates",e),r.removeListener("deactivated",e),r.removeListener("cleared",t)}}),[r]);const b={};return o?Object.assign(b,{onChange:d}):Object.assign(b,{onMouseUp:f,onMouseDown:p,onMouseEnter:m,onTouchStart:g,onTouchEnd:v}),{interactionEvents:b,select:async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(null!==(e=n.selectDisabled)&&void 0!==e&&e.call(n))return!1;const i=!n.isSingleSelect&&vL(null==a?void 0:a.nativeEvent);i||n.clearItemStates(!0);const l=[];return n.updateItems(t,o,l),n.setSelectableValuesUpdating(),fL({selections:r,elemNumbers:o?l:t,isSingleSelect:n.isSingleSelect,toggle:i})}}}const yL=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var xL=e=>nL(yL(e));const SL=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,wL=e=>{let{cell:t,checkboxes:n}=e;return((e=>e?"A"===e.qState:null)(t)||SL(t))&&n};const EL=e=>{let{column:t,histogram:n,cell:r,showGray:o}=e;if(!r)return[];const a=[t?mL.column:mL.row];n||a.push(mL.rowBorderBottom);const i=function(e){let t,{cell:n,showGray:r}=e;switch(n.qState){case"XS":t=r?mL.XS:mL.S;break;case"S":case"L":t=mL.S;break;case"A":t=!!r&&mL.A;break;case"X":case"XL":t=!!r&&mL.X;break;default:t=!1}return t}({cell:r,showGray:o});return i&&a.push(i),a},CL=9,kL=4,RL=7,LL=12+2*(RL+1),OL=80,_L=10,IL=150,TL=56,PL=20,ML="-",NL=32,qL=29,AL=20,zL=4,DL=e=>e.filter((e=>!!e)).join(" ").trim(),jL=e=>{let{qFrequency:t,frequencyMax:n}=e;const r=String(t),o="%"===r.substring(r.length-1),a=parseFloat(o?r:t);return"".concat(o?a:a/n*100,"%")},FL=e=>e||ML,$L=["backgroundColor"],BL=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%"},WL=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},HL=e=>{let{theme:t,checkboxes:n,styles:r,selectionState:o}=e;if(n)return"selected"===o?{["& .".concat(mL.labelText)]:{color:r.selections.selected}}:{};const a=r.selections,i=a[o],l=a["".concat(o,"Contrast")];return{background:i,color:l,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0},["& .".concat(mL.labelText)]:{color:l},["& .".concat(mL.icon)]:{color:l}}},UL={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},VL=Gy("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})((e=>{let{theme:t,checkboxes:n,isGridMode:r,isGridCol:o,dense:a,direction:i,sizes:c,frequencyMode:u,freqHitsValue:d,styles:p}=e;const f=s(p.content,$L),h=HL({theme:t,styles:p,checkboxes:n,selectionState:"selected"}),m=HL({theme:t,styles:p,checkboxes:n,selectionState:"excluded"}),g={height:"100%",transition:"width 0.2s",border:"".concat(1,"px solid"),borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},v={opacity:"30%"};return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(mL.row)]:l({flexWrap:"nowrap"},p.content),["& .".concat(mL.rowBorderBottom)]:{borderBottom:o?"none":"1px solid ".concat(t.palette.divider),borderLeft:o?"1px solid ".concat(t.palette.divider):"none"},["& .".concat(mL.column)]:l({flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider)},p.content),["& .".concat(mL.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:n?"52px":"26px",flexBasis:n?"auto":"max-content",paddingLeft:"".concat(CL,"px"),paddingRight:0},["& .".concat(mL.labelText)]:l(l({lineHeight:"16px",userSelect:"none",paddingRight:"1px"},UL),f),["& .".concat(mL.labelDense)]:{fontSize:12},["& .".concat(mL.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(mL.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":l(l({},UL),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(mL.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:f.color},["& .".concat(mL.S)]:l(l({},h),{},{border:r?"none":void 0}),["& .".concat(mL.XS)]:l(l({},HL({theme:t,styles:p,checkboxes:n,selectionState:"selectedExcluded"})),{},{border:r?"none":void 0}),["& .".concat(mL.A)]:l(l({},HL({theme:t,styles:p,checkboxes:n,selectionState:"alternative"})),{},{border:r?"none":void 0}),["& .".concat(mL.X)]:l(l({},m),{},{border:r?"none":void 0}),["& .".concat(mL.X,", & .").concat(mL.XS)]:{border:r?"none":void 0,["& .".concat(mL.barSelected," .bar-filled")]:l({},g)},["& .".concat(mL.frequencyCount)]:l(l({zIndex:3,justifyContent:"flex-end"},UL),{},{flex:"0 0 ".concat(BL({sizes:c,frequencyMode:u,isGridMode:r,freqHitsValue:d})),minWidth:!r&&"P"!==u&&d?c.freqMinWidth:"max-content",maxWidth:WL({sizes:c,frequencyMode:u,isGridMode:r}),textAlign:"rtl"===i?"left":"right",paddingLeft:"rtl"!==i?"8px":0}),["&.".concat(mL.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(mL.bar)]:{height:a?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":l({},g)},["& .".concat(mL.barSelected)]:{"& .bar-filled":l({},v)},["& .".concat(mL.barWithCheckbox)]:{left:"rtl"===i?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(mL.barSelectedWithCheckbox)]:{"& .bar-filled":l(l({},v),{},{backgroundColor:p.selections.selected||"#BFE5D0",borderColor:p.selections.selected})},["& .".concat(mL.excludedTextWithCheckbox)]:{color:p.content.color,fontStyle:"italic"}}}));var GL=V.memo(VL);const KL="ListBoxCheckbox",ZL={cbIcon:"".concat(KL,"-cbIcon"),cbIconChecked:"".concat(KL,"-cbIconChecked"),cbIconExcluded:"".concat(KL,"-cbIconExcluded"),cbIconAlternative:"".concat(KL,"-cbIconAlternative"),checkbox:"".concat(KL,"-checkbox"),dense:"".concat(KL,"-dense")},XL=Gy(aC,{shouldForwardProp:e=>"styles"!==e})((e=>{let{styles:t}=e;return{["& .".concat(ZL.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(ZL.cbIconChecked)]:{borderRadius:3,backgroundColor:t.selections.selected,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(ZL.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.excluded},["& .".concat(ZL.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.alternative},["&.".concat(ZL.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(ZL.dense)]:{padding:"4px 8px"}}})),QL=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return V.createElement("span",{className:e.cbIcon},n&&V.createElement("span",{className:t&&n?e.cbIconExcluded:""}))};function JL(e){let{onChange:t,checked:n,label:r,dense:o,excluded:a,styles:i,showGray:l=!0,dataN:s}=e;return V.createElement(XL,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[ZL.checkbox,o&&ZL.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":s},name:r,icon:QL(ZL,l,a),checkedIcon:V.createElement("span",{className:ZL.cbIconChecked}),styles:i})}const YL={radioButton:"".concat("ListBoxRadioButton","-radioButton")},eO=Gy(MR,{shouldForwardProp:e=>!["dense","styles"].includes(e)})((e=>{let{checked:t,styles:n,dense:r}=e;return{["&.".concat(YL.radioButton)]:{right:"5px",color:t?n.selections.selected:n.content.color,padding:r?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}}));function tO(e){let{onChange:t,checked:n,label:r,dense:o,dataN:a,styles:i}=e;return V.createElement(eO,{checked:n,onChange:t,value:r,name:r,className:YL.radioButton,inputProps:{"data-n":a},disableRipple:!0,size:o?"small":"medium",dense:o,styles:i})}function nO(e){let{label:t,dense:n,showGray:r=!0,checkboxes:o,cell:a,valueTextAlign:i}=e;return V.createElement(LS,{component:"span",variant:"body2",className:DL([mL.labelText,n&&mL.labelDense,r&&wL({cell:a,checkboxes:o})&&mL.excludedTextWithCheckbox]),align:i,dir:"auto"},V.createElement("span",null,t))}function rO(e){let{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}=e;return"string"==typeof t?V.createElement(nO,{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}):t}function oO(e){let{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:a,cell:i,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}=e;const f=V.createElement(JL,{onChange:t,label:n,checked:o,dense:a,excluded:SL(i),isGridCol:l,showGray:s,dataN:r,styles:p}),h=V.createElement(tO,{onChange:t,label:n,checked:o,dense:a,dataN:r,styles:p});return V.createElement(KC,{control:c?h:f,className:mL.checkboxLabel,label:V.createElement(rO,{label:n,dense:a,showGray:s,checkboxes:u,cell:i,valueTextAlign:d}),key:r})}function aO(e){let{labels:t,dense:n,showGray:r,checkboxes:o}=e;const a=t.map(((e,t)=>{let[n,r]=e;return V.createElement("span",{id:t,className:r?mL.highlighted:""},n)}));return V.createElement(nO,{label:a,dense:n,showGray:r,checkboxes:o})}function iO(e){let{onChange:t,labels:n,checkboxes:r,dense:o,showGray:a,qElemNumber:i,isSelected:l,cell:s,isGridCol:c,isSingleSelect:u,valueTextAlign:d,styles:p}=e;const f=V.createElement(aO,{labels:n,dense:o,showGray:a,checkboxes:r});return r?V.createElement(oO,{onChange:t,label:f,qElemNumber:i,isSelected:l,dense:o,cell:s,isGridCol:c,showGray:a,isSingleSelect:u,checkboxes:r,valueTextAlign:d,styles:p}):f}var lO=V.memo((function(e){let{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:a,cell:i,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}=e;return u?V.createElement(oO,{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:a,cell:i,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}):V.createElement(nO,{label:n,dense:a,showGray:!0,checkboxes:u,cell:i,valueTextAlign:d})}));function sO(e){let{qFrequency:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:a}=e;if(!(t&&n&&FL(t)!==ML))return;const i=jL({qFrequency:t,checkboxes:r,frequencyMax:a});return V.createElement(WE,{className:DL([mL.bar,r&&mL.barWithCheckbox,o&&(r?mL.barSelectedWithCheckbox:mL.barSelected)])},V.createElement(WE,{className:"bar-filled",width:i}))}function cO(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;const a=FL(null==t?void 0:t.qFrequency);return V.createElement(ok,{item:!0,style:{display:"flex",alignItems:"center"},className:mL.frequencyCount,"aria-label":a,title:a},V.createElement(LS,{noWrap:!0,color:"inherit",variant:"body2",className:DL([r&&mL.labelDense,mL.labelText,o&&wL({cell:t,checkboxes:n})&&mL.excludedTextWithCheckbox])},a))}function uO(e){let{dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:o}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:o?"100%":"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const dO=Gy(ok,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:a,fillHeight:i}=e;const s="padding".concat("rtl"===a?"Left":"Right");return{["&.".concat(mL.fieldRoot)]:l(l({},uO({dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:i})),{},{[s]:o?"8px":void 0})}}));const pO=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===pO.ARROW_UP||e===pO.ARROW_DOWN||e===pO.ARROW_LEFT||e===pO.ARROW_RIGHT});function fO(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function hO(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))||(null==e?void 0:e.closest(".qv-gs-listbox"))}function mO(e){let{containerRef:t,enabled:n}=e;const[r,o]=U.useState(!1),a={enabled:n,active:r,innerTabStops:!n||r,blur(e){var r;if(!n)return;o(!1);const a=hO(t.current)||(null===(r=t.current)||void 0===r?void 0:r.parentElement);var i;null==(i=t.current)||i.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),fO(t.current),e&&a&&(a.setAttribute("tabIndex",0),t.current.setAttribute("tabIndex",-1),a.focus())},focus(){if(!n)return;o(!0);const e=t.current,r=null==e?void 0:e.querySelector(".search input"),a=null==e?void 0:e.querySelector(".value.last-focused"),i=null==e?void 0:e.querySelector(".value.selector, .value"),l=null==e?void 0:e.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),s=null==e?void 0:e.querySelector("#listbox-unlock-button"),c=(null==e?void 0:e.querySelector(".listbox-cyclic-button"))||r||a||i||s||l;null==c||c.setAttribute("tabIndex",0),null==c||c.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm:not(:disabled)"),n=e||t;return null==n||n.setAttribute("tabIndex",0),null==n||n.focus(),n}};return a}const gO=e=>+e.getAttribute("data-n"),vO=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},bO=e=>{const t=null==e?void 0:e.querySelector(".value.last-focused"),n=null==e?void 0:e.querySelector(".value.selector"),r=null==e?void 0:e.querySelector(".value"),o=t||n||r;return null==o||o.setAttribute("tabIndex",0),null==o||o.focus(),fO(e),o},yO=e=>{const t=null==e?void 0:e.querySelector(".listbox-cyclic-button:not(:disabled)");return null==t||t.setAttribute("tabIndex",0),null==t||t.focus(),t},xO=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:r}=e,o=r.classList.contains("listbox-container"),a=n.closest(".listbox-container"),i=hO(a),l=1===(null==i?void 0:i.querySelectorAll(".listbox-container").length);if(o||l)t.blur(!0);else{fO(a),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}},SO=e=>{let{rowIndex:t,columnIndex:n,rowCount:r,columnCount:o,layoutOrder:a,keyCode:i,numCells:l}=e;const s=e=>{let t;return"row"===a?(t=l%o,e<t?r:r-1):(t=l%r,e<o-1?r:t)};let c=t,u=n;if(i===pO.ARROW_DOWN)if(t>=s(n)-1){if(n===o-1)return-1;c=0,u=n+1}else c=t+1;else if(0===t){if(0===n)return-1;c=s(n-1)-1,u=n-1}else c=t-1;if("row"===a)return c*o+u;const d=l%r;return 0===d||c<d?c*o+u:(c-d)*(o-1)+u+d*o};const wO={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 EO(e){var t,n;let{index:r,rowIndex:o,columnIndex:a,style:i,data:s}=e;const{onChange:c,onClick:u,onMouseDown:d,onMouseUp:p,onMouseEnter:f,onTouchStart:h,onTouchEnd:m,pages:g,isLocked:v,column:b=!1,checkboxes:y=!1,textAlign:x,direction:S,layoutOptions:w={},freqIsAllowed:E,isSingleSelect:C,actions:k,frequencyMax:R="",histogram:L=!1,keyboard:O,showGray:_=!0,showTick:I=!0,columnCount:T=1,rowCount:P=1,dataOffset:M,deducedFrequencyMode:N,focusListItems:q,listCount:A,sizes:z,translator:D,showSearch:j,isModal:F,contentFontStyle:$,styles:B,fillHeight:W}=s,{dense:H=!1,dataLayout:G="singleColumn",layoutOrder:K}=w,{itemPadding:Z}=z;let X,Q;const J={max:null,currentIndex:null};if("number"==typeof o&&"number"==typeof a){"row"===K?(X=o*T+a,J.max=P,J.currentIndex=o):(X=a*P+o,J.max=T,J.currentIndex=a);const e=0;Q=l(l({},i),{},{height:W?"100%":i.height,left:e+(0===a?i.left:Number(i.left)+a*e),top:0===o?i.top:Number(i.top)+o*e})}else X=r,J.max=A,J.currentIndex=r,Q=l({},i);X+=M;const[Y,ee]=U.useState(null);U.useEffect((()=>{null!==Y&&(0===J.currentIndex&&q.first&&(Y.focus(),q.setFirst(!1)),J.currentIndex===J.max-1&&q.last&&(Y.focus(),q.setLast(!1)))}),[Y,q.first,q.last]);const te=U.useCallback(function(e){let{select:t,selectAll:n,onCtrlF:r,confirm:o,cancel:a,setScrollPosition:i,focusListItems:l,keyboard:s,isModal:c,rowCount:u,columnCount:d,rowIndex:p,columnIndex:f,layoutOrder:h}=e;const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e===pO.ARROW_LEFT||e===pO.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=SO({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 pO.TAB:{const t=d.closest(".listbox-container"),n=void 0!==c?c():void 0;if(d.classList.add("last-focused"),null==s||!s.enabled){if(!n)return;return s.focusSelection(),e.preventDefault(),void e.stopPropagation()}if(h){vO(t)||yO(t)||(n?s.focusSelection():xO(e,s));break}s.focusSelection()||yO(t)||vO(t)||(d.blur(),xO(e,s));break}case pO.SHIFT:v(!0);break;case pO.SPACE:t([gO(d)],!1,e);break;case pO.ARROW_DOWN:case pO.ARROW_RIGHT:u=m(f,d,!0),h&&u&&(g&&(t([gO(d)],!0),v(!1)),t([gO(u)],!0));break;case pO.ARROW_UP:case pO.ARROW_LEFT:u=m(f,d,!1),h&&u&&(g&&(t([gO(d)],!0),v(!1)),t([gO(u)],!0));break;case pO.ENTER:if(o(),void 0===c)return;break;case pO.ESCAPE:if(void 0===c)return void a();if(!c())return;a();break;case pO.HOME:if(l.setFirst(!0),b){null==i||i("overflowStart");break}null==i||i("start");break;case pO.END:if(l.setLast(!0),b){null==i||i("overflowEnd");break}null==i||i("end");break;case pO.A:if(b||y){n();break}return;case pO.F:if(b||y){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(l(l({},k),{},{focusListItems:q,keyboard:O,isModal:F,rowCount:P,columnCount:T,rowIndex:o,columnIndex:a,layoutOrder:K})),[k,null==O?void 0:O.innerTabStops,P,T,o,a,K]),ne=U.useMemo((()=>function(e){let t,{pages:n,cellIndex:r}=e;const o=n.filter((e=>e.qArea.qTop<=r&&r<e.qArea.qTop+e.qArea.qHeight))[0];if(o){const e=o.qArea;r>=e.qTop&&r<e.qTop+e.qHeight&&([t]=o.qMatrix[r-e.qTop])}return t}({pages:g,cellIndex:X})),[g,X]),re="S"===(null==ne?void 0:ne.qState)||"XS"===(null==ne?void 0:ne.qState)||"L"===(null==ne?void 0:ne.qState)||"XL"===(null==ne?void 0:ne.qState),oe=U.useMemo((()=>EL({column:b,histogram:L,cell:ne,showGray:_})),[null==ne?void 0:ne.qState,L,H]),ae=U.useCallback((e=>{e.preventDefault()}),[y]),ie=U.useMemo((()=>ne&&function(e){let{direction:t,cell:n,textAlign:r}=e;const o=!["NaN",void 0].includes(null==n?void 0:n.qNum);let a;return a=!r||r.auto?o?"rtl"===t?"left":"right":{rtl:"right",ltr:"left"}[t]:(null==r?void 0:r.align)||"left",["left","center","right"].includes(a)?a:"left"}({direction:S,cell:ne,textAlign:x})),[S,ne,x]);if(!ne)return null;const le="grid"===G&&"column"===K,se=null!==(t=null==ne?void 0:ne.qText)&&void 0!==t?t:"";let ce;if(null!==(n=ne.qHighlightRanges)&&void 0!==n&&null!==(n=n.qRanges)&&void 0!==n&&n.length){const e=ne.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];ce=function(e,t){if(!t.length)return[];const n=t.reduce(((n,r,o)=>{const a=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{qCharPos:r,qCharCount:o}=t,a=[];return r>n&&a.push([e.slice(n,r),!1]),a.push([e.slice(r,r+o),!0]),a}(e,r,a));const i=o===t.length-1,l=t[o].qCharPos+t[o].qCharCount;return i&&l<e.length&&n.push([e.slice(l),!1]),n}),[]);return n}(se,e)}const ue={alignItems:"center",display:"flex",fontSize:"8px"},de="rtl"===S,pe={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:de?8:y?0:void 0,paddingRight:y?0:de?8:0,justifyContent:ie,textAlign:ie},fe=0===r,he=re&&v,me=!y&&re&&!v,ge=!y&&I,ve=y||!I,be=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:a,maxIndex:i,showSearch:l}=e;const s=wO[r],c=t.get(s),u=[];if(o){const e=l?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=t.get(e);u.push(n)}const d="".concat(n," ").concat(c),p=t.get("CurrentSelections.Of",[a+1,i+1]);return u.unshift(d,p),u.join(". ").trim()}({translator:D,label:se,qState:ne.qState,currentIndex:J.currentIndex,maxIndex:J.max,showSearch:j}),ye=!de&&"right"===ie||de&&"left"===ie;return V.createElement(GL,{className:mL.barContainer,checkboxes:y,style:Q,styles:B,isGridCol:le,isGridMode:"grid"===G,dense:H,direction:S,sizes:z,frequencyMode:N,freqHitsValue:ye,contentFontStyle:$,"data-testid":"listbox.item"},V.createElement(dO,{role:"row","aria-label":be,"aria-selected":re,"aria-setsize":J.max,"aria-rowindex":J.currentIndex,ref:ee,container:!0,dataLayout:G,cellPaddingRight:ve,layoutOrder:K,itemPadding:Z,gap:0,className:DL(["value",...oe]),classes:{root:mL.fieldRoot},onClick:u,onMouseDown:d,onMouseUp:p,onMouseEnter:f,onKeyDown:te,onTouchStart:h,onTouchEnd:m,onContextMenu:ae,tabIndex:fe&&O.innerTabStops?0:-1,"data-n":null==ne?void 0:ne.qElemNumber,direction:S,fillHeight:W},(null==ne?void 0:ne.qFrequency)&&V.createElement(sO,{qFrequency:null==ne?void 0:ne.qFrequency,histogram:L,checkboxes:y,isSelected:re,frequencyMax:R}),V.createElement(ok,{item:!0,style:pe,className:DL([mL.cell,mL.selectedCell]),title:"".concat(se)},ce?V.createElement(iO,{onChange:c,labels:ce,checkboxes:y,dense:H,showGray:_,qElemNumber:ne.qElemNumber,isSelected:re,cell:ne,isGridCol:le,isSingleSelect:C,valueTextAlign:ie,styles:B}):V.createElement(lO,{onChange:c,label:se,qElemNumber:ne.qElemNumber,isSelected:re,dense:H,cell:ne,isGridCol:le,showGray:_,isSingleSelect:C,checkboxes:y,valueTextAlign:ie,styles:B})),E&&V.createElement(cO,{cell:ne,checkboxes:y,dense:H,showGray:_}),ge&&V.createElement(ok,{item:!0,className:mL.icon},he&&V.createElement(oL,{style:ue,size:"small"}),me&&V.createElement(xL,{style:ue,size:"small"}))))}var CO=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function kO(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||CO(r)&&CO(o)))return!1;var r,o;return!0}function RO(e,t){var n;void 0===t&&(t=kO);var r,o=[],a=!1;return function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}}var LO="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function OO(e){cancelAnimationFrame(e.id)}function _O(e,t){var n=LO();var r={id:requestAnimationFrame((function o(){LO()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var IO=-1;function TO(e){if(void 0===e&&(e=!1),-1===IO||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),IO=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return IO}var PO=null;function MO(e){if(void 0===e&&(e=!1),null===PO||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?PO="positive-descending":(t.scrollLeft=1,PO=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),PO}return PO}var NO=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function qO(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,i=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,dx(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:dx(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=RO((function(e,t,n,o,a,i,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:a,visibleColumnStopIndex:i,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=RO((function(e,t,n,o,a){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:a})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,i=r.props,l=i.columnWidth,s=i.direction,c=i.rowHeight,p=r._getItemStyleCache(m&&l,m&&s,m&&c),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:a(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=RO((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,a=t.scrollLeft,i=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===a&&e.scrollTop===i)return null;var t=r.props.direction,c=a;if("rtl"===t)switch(MO()){case"negative":c=-a;break;case"positive-descending":c=s-o-a}c=Math.max(0,Math.min(c,s-o));var u=Math.max(0,Math.min(i,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<a?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<i?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&OO(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=_O(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}tx(t,e),t.getDerivedStateFromProps=function(e,t){return AO(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,a=this.props,u=a.columnCount,d=a.height,p=a.rowCount,f=a.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=TO();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=i(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(MO()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var a=o.clientWidth,i=o.scrollWidth;o.scrollLeft=i-a-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&OO(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,a=e.height,s=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?NO:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],E=S[1],C=this._getVerticalRangeToRender(),k=C[0],R=C[1],L=[];if(r>0&&g)for(var O=k;O<=R;O++)for(var _=w;_<=E;_++)L.push(U.createElement(t,{columnIndex:_,data:d,isScrolling:b?x:void 0,key:f({columnIndex:_,data:d,rowIndex:O}),rowIndex:O,style:this._getItemStyle(O,_)}));var I=i(this.props,this._instanceProps),T=l(this.props,this._instanceProps);return U.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Jy({position:"relative",height:a,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},U.createElement(c||u||"div",{children:L,ref:s,style:{height:I,pointerEvents:x?"none":void 0,width:T}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var a=this._getHorizontalRangeToRender(),i=a[0],l=a[1],s=a[2],c=a[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(i,l,d,p,s,c,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,b=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,a=e.overscanColumnsCount,i=e.overscanCount,l=e.rowCount,s=this.state,c=s.horizontalScrollDirection,u=s.isScrolling,d=s.scrollLeft,p=n||a||i||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,a=e.rowCount,i=this.state,l=i.isScrolling,s=i.verticalScrollDirection,c=i.scrollTop,u=r||o||n||1;if(0===t||0===a)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,u),g=l&&"forward"!==s?1:Math.max(1,u);return[Math.max(0,d-m),Math.max(0,Math.min(a-1,h+g)),d,h]},t}(U.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var AO=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},zO=function(e,t){return e};function DO(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,a=e.getOffsetForIndexAndAlignment,i=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,dx(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:dx(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=RO((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=RO((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,a=r.props,i=a.direction,l=a.itemSize,s=a.layout,u=r._getItemStyleCache(c&&l,c&&s,c&&i);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===i||"horizontal"===s,h="rtl"===i,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=RO((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,a=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,i=o;if("rtl"===t)switch(MO()){case"negative":i=-o;break;case"positive-descending":i=a-n-o}return i=Math.max(0,Math.min(i,a-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<i?"forward":"backward",scrollOffset:i,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,a=t.scrollTop;r.setState((function(e){if(e.scrollOffset===a)return null;var t=Math.max(0,Math.min(a,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&OO(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=_O(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}tx(t,e),t.getDerivedStateFromProps=function(e,t){return jO(e,t),u(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?TO():0:s.scrollHeight>s.clientHeight?TO():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var a=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(MO()){case"negative":a.scrollLeft=-o;break;case"positive-ascending":a.scrollLeft=o;break;default:var i=a.clientWidth,l=a.scrollWidth;a.scrollLeft=l-i-o}else a.scrollLeft=o;else a.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&OO(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,a=e.height,i=e.innerRef,l=e.innerElementType,s=e.innerTagName,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?zO:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),E=w[0],C=w[1],k=[];if(c>0)for(var R=E;R<=C;R++)k.push(U.createElement(t,{data:u,key:p(R,u),index:R,isScrolling:v?y:void 0,style:this._getItemStyle(R)}));var L=r(this.props,this._instanceProps);return U.createElement(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:Jy({position:"relative",height:a,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},U.createElement(l||s||"div",{children:k,ref:i,style:{height:x?"100%":L,pointerEvents:y?"none":void 0,width:x?L:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var a=this.state,i=a.scrollDirection,l=a.scrollOffset,s=a.scrollUpdateWasRequested;this._callOnScroll(i,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,a=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var c=i(this.props,s,this._instanceProps),u=l(this.props,c,s,this._instanceProps),d=o&&"backward"!==a?1:Math.max(1,n),p=o&&"forward"!==a?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(U.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var jO=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},FO=qO({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,o,a){var i=e.columnCount,l=e.columnWidth,s=e.width,c=Math.max(0,i*l-s),u=Math.min(c,t*l),d=Math.max(0,t*l-s+a+l);switch("smart"===n&&(n=r>=d-s&&r<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(s/2)?0:p>c+Math.floor(s/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getOffsetForRowAndAlignment:function(e,t,n,r,o,a){var i=e.rowHeight,l=e.height,s=e.rowCount,c=Math.max(0,s*i-l),u=Math.min(c,t*i),d=Math.max(0,t*i-l+a+i);switch("smart"===n&&(n=r>=d-l&&r<=u+l?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(l/2)?0:p>c+Math.floor(l/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,o=e.columnCount,a=e.width,i=t*r,l=Math.ceil((a+n-i)/r);return Math.max(0,Math.min(o-1,t+l-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,o=e.rowCount,a=e.height,i=t*r,l=Math.ceil((a+n-i)/r);return Math.max(0,Math.min(o-1,t+l-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),$O=DO({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,a){var i=e.direction,l=e.height,s=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===i||"horizontal"===u?d:l,f=Math.max(0,s*c-p),h=Math.min(f,t*c),m=Math.max(0,t*c-p+c+a);switch("smart"===n&&(n=r>=m-p&&r<=h+p?"auto":"center"),n){case"start":return h;case"end":return m;case"center":var g=Math.round(m+(h-m)/2);return g<Math.ceil(p/2)?0:g>f+Math.floor(p/2)?f:g;default:return r>=m&&r<=h?r:r<m?m:h}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,a=e.itemCount,i=e.itemSize,l=e.layout,s=e.width,c=t*i,u="horizontal"===r||"horizontal"===l?s:o,d=Math.ceil((u+n-c)/i);return Math.max(0,Math.min(a-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const BO="#BBB",WO="#f1f1f1",HO={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const UO=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,VO=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,GO=(e,t,n,r)=>e===t*n+r+n;function KO(e){let{renderProps:t,layoutOptions:n,maxCount:r,columnCount:o,rowCount:a,overflowDisclaimer:i,qCardinal:l,dataOffset:s}=e;const c="column"===(null==n?void 0:n.layoutOrder)&&"singleColumn"!==n.dataLayout,u=UO(t,c),d=c?r.column:r.row,p=(c?o:a)>=d,f=GO(l,u,c?a:o,s),h=!!s&&VO(t,c),m=p&&!f&&u>=d-1||h||i.state.show;i.set(m)}const{StyledFixedSizeList:ZO,StyledFixedSizeGrid:XO}=function(){const e=e=>({scrollbarColor:"".concat(BO," ").concat(WO),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:WO},"&::-webkit-scrollbar-thumb":{backgroundColor:BO,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:Wh($O,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(HO.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:Wh(FO,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(HO.styledScrollbars)]:e(n)}}))}}();const QO=(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)},JO=e=>{const t=U.useMemo((()=>"text"in e?e:{}),[e]);return U.useMemo((()=>QO(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function YO(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function e_(e){let{isGridMode:t,dense:n}=e;let r=n?AL:t?NL:qL;return t&&(r+=zL),r}function t_(e){let{layout:t,width:n,height:r,listCount:o,count:a,freqIsAllowed:i,checkboxes:l,styles:s}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:p,dense:f,dataLayout:h}=c,{fontSize:m="12px",fontFamily:g="Source sans pro"}=(null==s?void 0:s.content)||{},v="".concat(m," ").concat(g),b=JO({text:YO(t),font:v}),y=JO({text:YO(5),font:v}),x=JO({text:YO(8),font:v}),S=i?y:0,w=l?PL:0;let E=TL+S+w;!l&&E>=OL&&(E+=PL);let C,k,R,L,O=b+18+S+w;!l&&O>=OL&&(O+=PL),O=Math.min(IL,Math.max(O,E));const _=e_({isGridMode:"grid"===h,dense:f}),I=null!=r?r:8*_;if(u){let e=n;"row"===u?(C={overflowX:"hidden"},e+=2*zL,({rowCount:L,columnWidth:R,columnCount:k}=function(e){let{maxVisibleColumns:t,listCount:n,containerWidth:r,columnAutoWidth:o,itemMinWidth:a}=e;const i=(null==t?void 0:t.maxColumns)||3,l=r-_L;let s;const c=Math.min(n,Math.max(1,Math.round(l/Math.max(a,o))));s=!1!==(null==t?void 0:t.auto)?c:Math.min(n,i,c),s=Math.max(s,1);const u=l/s;return{rowCount:Math.ceil(n/s),columnWidth:u,columnCount:s}}({maxVisibleColumns:p,listCount:o,containerWidth:e,columnAutoWidth:O,itemMinWidth:E}))):(C={overflowY:"hidden"},({rowCount:L,columnWidth:R,columnCount:k}=function(e){let t,{maxVisibleRows:n,itemHeight:r,listCount:o,listHeight:a,columnAutoWidth:i,containerWidth:l,itemMinWidth:s}=e;const c=(null==n?void 0:n.maxRows)||3,u=Math.floor(a/r);t=!1!==n.auto?u:Math.min(o,c,u),t=Math.max(t,1);const d=Math.ceil(o/t);return{columnWidth:Math.max(i,l/d,s),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:_,listCount:o,listHeight:I,columnAutoWidth:O,containerWidth:e,itemMinWidth:E})))}k=("singleColumn"===h?1:k)||1,L=("singleColumn"===h?a:L)||o;const T=c.dense?838e3:577e3;L=Math.min(L,T);const P=Math.floor(3355e4/R);k=Math.min(k,P)||1;const M=L*k,N=Math.min(o,M);return{columnCount:k,columnWidth:R,rowCount:L,overflowStyling:C,itemHeight:_,listHeight:I,listWidth:n,scrollBarWidth:_L,count:a,listCount:N,maxCount:{row:T,column:P},itemPadding:zL,textWidth:b,freqMinWidth:y,freqMaxWidth:x}}const n_=e=>{let{pages:t=[],minimumBatchSize:n,count:r}=e;const o=t.some((e=>e.qArea.qHeight<n)),a=Math.max(...t.map((e=>e.qArea.qTop+e.qArea.qHeight)));return o?a:r};const[r_,o_]=tS({});function a_(e){const t="".concat(e.id),[n]=r_();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const i_=Gy(LS,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return l({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px")},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function l_(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:a}=U.useContext(Jx);return V.createElement(HR,{title:o?a.get(n):""},V.createElement(i_,{width:t,dense:r,component:"div",variant:"body1",py:"12px"},a.get(n)))}var s_={},c_={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(c_);var u_,d_=c_.exports,p_={},f_=r(uS);var h_=d_;Object.defineProperty(s_,"__esModule",{value:!0});var m_=s_.default=void 0,g_=h_((u_||(u_=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=f_}(p_)),p_)),v_=cm;m_=s_.default=(0,g_.default)((0,v_.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const b_=Gy(gS)((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}})),y_=Gy("div")((()=>({paddingLeft:"6px",flexGrow:1}))),x_=Gy("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),S_=Gy(m_)((()=>({fontSize:"14px"})));function w_(e){let{text:t,dismiss:n,dense:r,parentWidth:o=0}=e;const a="function"==typeof n,i=r?370:282,l=Math.max(o/2-i/2,0),s=Math.min(i,o)-42,c=r&&o<i;return V.createElement(b_,{left:l,style:{maxWidth:i}},V.createElement(y_,null,V.createElement(l_,{text:t,dense:r,width:s,tooltip:c})),V.createElement(x_,{dense:r},a&&V.createElement(SS,{"aria-label":"close",onClick:()=>n()},V.createElement(S_,null))))}const E_=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const C_=80;function k_(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>C_,{frequencyEnabled:a=!1}=(null==n?void 0:n.qListObject)||{},i=!["N",void 0].includes(r);return!(!o||!i&&!a)}const R_=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,"))")},L_=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=U.useState(),[a,i]=U.useState(n);return U.useEffect((()=>{if(!n)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=R_(r);return(await t.evaluateEx(o)).qNumber})(t,e);o(n),i(!1)})()}),[n&&t]),{frequencyMax:n?r:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:a}};const O_=["isLoadingData"],__=100,I_=Gy("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function T_(e){var t,n;let{model:r,app:o,constraints:i,layout:c,selections:u,selectionState:d,direction:p,checkboxes:f,height:h,width:m,frequencyMode:g,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:x=!1,keyboard:S={},showGray:w=!0,scrollState:E,keyScroll:C={state:{},reset:()=>{}},currentScrollIndex:k={set:()=>{}},renderedCallback:R,onCtrlF:L,showSearch:O,isModal:_,styles:I}=e;const{translator:T}=U.useContext(Jx),[P,M]=U.useState(!1),N=!(!c||!c.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:q=f,histogram:A}=null!=c?c:{},z=U.useRef(null),D=U.useRef({queue:[],validPages:!1,dataOffset:0}),j=U.useRef({pages:[]}),{frequencyMax:F,awaitingFrequencyMax:$}=L_(o,c),B=function(e){let{local:t,loaderRef:n,model:r,fetchStart:o,scrollTimeout:a,postProcessPages:i,listData:l}=e;const[s,c]=U.useState(!1),[u,d]=U.useState([]);let[p]=U.useState(0);const f=(e,s)=>{const u=t.current.dataOffset;t.current.queue.push({start:e+u,stop:s+u});const f=!!n.current&&n.current._listRef&&n.current._listRef.state.isScrolling;return t.current.queue.length>10&&t.current.queue.shift(),clearTimeout(t.current.timeout),c(!0),new Promise((e=>{t.current.timeout=setTimeout((()=>{const n=t.current.queue.slice(-1)[0],a=r.getListObjectData("/qListObjectDef",[{qTop:n.start>p?n.start-p:0,qHeight:p,qLeft:0,qWidth:1},{qTop:n.start,qHeight:p,qLeft:0,qWidth:1}]).then((n=>{const r=i?i(n):n;t.current.validPages=!0,l.current.pages=r,d(r),c(!1),e()}));o&&o(a)}),f?a:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(p=t),f}},pages:u,isLoading:s}}({local:D,loaderRef:z,model:r,fetchStart:b,scrollTimeout:0,postProcessPages:y,listData:j}),W=s(B,O_),{getStoreValue:H,setStoreValue:G}=a_(r),K=U.useCallback(W.loadMoreItems,[c]),[Z,X]=U.useState({show:!1,dismissed:!1}),[Q,J]=U.useState([]);null!=W&&W.pages&&d.update({setPages:J,pages:W.pages,isSingleSelect:N,layout:c});const Y=null==c?void 0:c.qListObject.qDimensionInfo.qCardinal;(null!=W&&W.pages.length&&!$||0===Y)&&(null==R||R());const ee=U.useCallback((e=>{if(null==Q||!Q.length||!D.current.validPages)return!1;D.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=Q.filter((e=>t(e)))[0];return n&&t(n)}),[c,Q]),{interactionEvents:te,select:ne}=bL({selectionState:d,selections:u,checkboxes:q,doc:document,loaderRef:z}),{layoutOptions:re={}}=c||{};let oe=!0;re.dataLayout&&(oe="singleColumn"===re.dataLayout||"row"===(null==re?void 0:re.layoutOrder));const ae="grid"===(null==re?void 0:re.dataLayout),ie=e=>{const t=l({},oe?{rowIndex:e}:{columnIndex:e}),n=ae?t:e;z.current._listRef.scrollToItem(n)},le=()=>{if(D.current.queue=[],D.current.validPages=!1,z.current){z.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===C.state.scrollPosition;if(c&&c.qSelectionInfo.qInSelections||e)return void(e&&C.reset());D.current.dataOffset=0,ie(0)}};v&&v.call(null,le),U.useEffect((()=>{E&&!P&&z.current&&(z.current._listRef.scrollToItem(E.initScrollPos),M(!0))}),[z.current]),U.useEffect((()=>{le()}),[c,D.current.dataOffset]);let se=__;const ce="grid"!==re.dataLayout,ue=null==c||null===(t=c.qListObject.qSize)||void 0===t?void 0:t.qcy,de=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?n_({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:Q,minimumBatchSize:se,count:ue,calculatePagesHeight:x,layoutOptions:re,model:r});let pe=k_({itemWidth:m,layout:c,frequencyMode:g});const fe=function(e){return e.some((e=>{let{qMatrix:t}=e;return t.some((e=>{var t;let[n]=e;return!(null===(t=n.qFrequency)||void 0===t||!t.match("%"))}))}))?"P":"-"}(Q),he=t_({layout:c,width:m,height:h,listCount:de,count:ue,freqIsAllowed:pe,checkboxes:q,styles:I});he.columnWidth&&(pe=k_({itemWidth:he.columnWidth,layout:c,frequencyMode:g}));const{listCount:me}=he;G("listCount",me);const ge=H("inputText"),ve=function(e){let{layout:t,searchInputText:n,listCount:r}=e;const{translator:o}=U.useContext(Jx),a=[];if(null!=n&&n.length){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(r),t=o.get(e,[r]);a.push(t)}const i=function(e){var t;let{layout:n,translatorDynamic:r}=e;const{qStateCounts:o={}}=(null==n||null===(t=n.qListObject)||void 0===t?void 0:t.qDimensionInfo)||{},a=o.qSelected+o.qSelectedExcluded+o.qLocked+o.qLockedExcluded;let i;switch(a){case 0:i="ScreenReader.ZeroSelected";break;case 1:i="ScreenReader.OneSelected";break;default:i="ScreenReader.ManySelected"}return r.get(i,[a])}({layout:t,translatorDynamic:o});a.push(i);const l=a.filter((e=>!(null==e||!e.length))).join(". ");return l}({layout:c,searchInputText:ge,listCount:me}),be=e=>{const{scrollIndex:t,offset:n,triggerRerender:r}=function(e){let t,{position:n,isRow:r,sizes:o,layout:a,offset:i}=e,l=!1,s=null!=i?i:0;switch(n){case"start":t=0;break;case"end":t=r?o.rowCount:o.columnCount;break;case"overflowStart":s=0,t=0,l=!0;break;case"overflowEnd":s=E_(a,o.listCount),t=a.qListObject.qDimensionInfo.qCardinal,l=!0}return{scrollIndex:t,offset:s,triggerRerender:l}}({position:e,isRow:oe,sizes:he,layout:c,offset:D.current.dataOffset});D.current.dataOffset=n,r&&d.triggerStateChanged(),ie(t)};U.useEffect((()=>{const e=C.state;e.up?ie(k.state.start-e.up):e.down?ie(k.state.stop+e.down):e.scrollPosition&&be(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&C.reset()}),[C.state.up,C.state.down,C.state.scrollPosition]);const{textAlign:ye}=(null==c?void 0:c.qListObject.qDimensionInfo)||{},[xe,Se]=U.useState({first:!1,last:!1}),{List:we,Grid:Ee}=function(e){let{layout:t,width:n,checkboxes:r,local:o,isVertical:i,pages:s,selectionState:c,interactionEvents:u,deducedFrequencyMode:d,histogram:p,isSingleSelect:f,select:h,selectAll:m,onCtrlF:g,textAlign:v,selections:b,keyboard:y,showGray:x,scrollState:S,direction:w,sizes:E,listCount:C,overflowDisclaimer:k,setScrollPosition:R,focusListItems:L,setCurrentScrollIndex:O,constraints:_,frequencyMax:I,freqIsAllowed:T,translator:P,showSearch:M,isModal:N,styles:q}=e;const{layoutOptions:A={}}=t||{},{columnWidth:z,listHeight:D,itemHeight:j,rowCount:F,columnCount:$}=E||{},B=("grid"===A.dataLayout?z:n)>OL,W={direction:"rtl"===w?"rtl":"ltr",useIsScrolling:!0,className:HO.styledScrollbars},H=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,U=D<=j,G=l(l({isLocked:H,column:!i,pages:s},H||c.selectDisabled()?{}:u),{},{checkboxes:r,layoutOptions:A,deducedFrequencyMode:d,freqIsAllowed:T,isSingleSelect:f,textAlign:v,sizes:E,actions:{select:h,confirm:()=>null==b?void 0:b.confirm.call(b),cancel:()=>null==b?void 0:b.cancel.call(b),setScrollPosition:R,selectAll:m,onCtrlF:g},frequencyMax:I,histogram:p,keyboard:y,showGray:x,showTick:B,dataOffset:o.current.dataOffset,focusListItems:L,direction:w,translator:P,showSearch:M,isModal:N,styles:q,fillHeight:U});return{List:e=>{let{onItemsRendered:r,ref:i}=e;return o.current.listRef=i,V.createElement(ZO,a({},W,{dataTestid:"fixed-size-list",scrollDisabled:null==_?void 0:_.active,height:D,width:n,itemCount:C,itemData:l(l({},G),{},{listCount:C}),itemSize:j,onItemsRendered:e=>{var n;O({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),KO({renderProps:e,layoutOptions:A,maxCount:E.maxCount,columnCount:$,rowCount:F,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(l({},e))},ref:i}),EO)},Grid:e=>{let{onItemsRendered:r,ref:i}=e;const{overflowStyling:s,scrollBarWidth:c}=E,{layoutOrder:u}=A||{},d=Math.min(D,F*j+c);return o.current.listRef=i,V.createElement(XO,a({},W,{dataTestid:"fixed-size-grid",scrollDisabled:null==_?void 0:_.active,height:d,width:n,columnCount:$,columnWidth:z,rowCount:F,rowHeight:j,style:l({},s),itemData:l(l({},G),{},{column:void 0,columnCount:$,rowCount:F}),onItemsRendered:e=>{var n;const a="row"===u;O({start:a?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:a?e.visibleRowStopIndex:e.visibleColumnStopIndex});const i=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:a}=e,{overscanRowStartIndex:i,overscanRowStopIndex:l,overscanColumnStartIndex:s,overscanColumnStopIndex:c,visibleStopIndex:u}=t;let d,p,f,h;return n&&n.setScrollPos(u),"column"===r?(d=s*o,p=i,f=c*o,h=l):(d=s,p=i*a,f=c,h=l*a),{visibleStartIndex:d+p,visibleStopIndex:f+h}}({renderProps:e,scrollState:S,layoutOrder:u,rowCount:F,columnCount:$});KO({renderProps:e,layoutOptions:A,maxCount:E.maxCount,columnCount:$,rowCount:F,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(i)},ref:i}),EO)}}}({direction:p,layout:c,height:h,width:m,checkboxes:q,deducedFrequencyMode:fe,histogram:A,keyboard:S,showGray:w,interactionEvents:te,select:ne,selectAll:()=>{d.clearItemStates(!1),r.selectListObjectAll("/qListObjectDef")},onCtrlF:L,textAlign:ye,isVertical:ce,pages:Q,selectionState:d,isSingleSelect:N,selections:u,scrollState:E,local:D,sizes:he,listCount:me,overflowDisclaimer:{state:Z,set:e=>X((t=>l(l({},t),{},{show:e})))},setScrollPosition:be,focusListItems:{first:xe.first,setFirst:e=>Se((t=>l(l({},t),{},{first:e}))),last:xe.last,setLast:e=>Se((t=>l(l({},t),{},{last:e})))},setCurrentScrollIndex:k.set,constraints:i,frequencyMax:F,freqIsAllowed:pe,translator:T,showSearch:O,isModal:_,styles:I}),{columnWidth:Ce,listHeight:ke,itemHeight:Re}=he||{};return ce||(se=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:m,columnWidth:Ce,listHeight:ke,itemHeight:Re})),V.createElement(I_,null,V.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},ve),!me&&Y>0&&V.createElement(l_,{width:m,text:"Listbox.NoMatchesForYourTerms"}),V.createElement(cL,{isItemLoaded:ee,itemCount:me||1,loadMoreItems:K.with({minimumBatchSize:se}),threshold:0,minimumBatchSize:se,ref:z,role:"grid"},ce?we:Ee),Z.show&&!Z.dismissed&&V.createElement(w_,{text:"Listbox.ItemsOverflow",dismiss:()=>X((e=>l(l({},e),{},{dismissed:!0}))),parentWidth:null==z||null===(n=z.current)||void 0===n||null===(n=n._listRef)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.width,dense:null==re?void 0:re.dense}))}const P_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]}),M_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),N_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),q_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});var A_=e=>{let{layout:t,model:n,translator:r,selectionState:o,isDirectQuery:a=!1,selections:i}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];const l="/qListObjectDef",s=()=>{i.isActive()||i.begin(l)};return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:P_,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectAll(l)}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:N_,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectPossible(l)}},!a&&{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:M_,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectAlternative(l)}},!a&&{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:q_,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectExcluded(l)}}].filter(Boolean)};const z_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M2,6.5 L3,6.5 C3.55228475,6.5 4,6.94771525 4,7.5 L4,8.5 C4,9.05228475 3.55228475,9.5 3,9.5 L2,9.5 C1.44771525,9.5 1,9.05228475 1,8.5 L1,7.5 C1,6.94771525 1.44771525,6.5 2,6.5 Z M7.5,6.5 L8.5,6.5 C9.05228475,6.5 9.5,6.94771525 9.5,7.5 L9.5,8.5 C9.5,9.05228475 9.05228475,9.5 8.5,9.5 L7.5,9.5 C6.94771525,9.5 6.5,9.05228475 6.5,8.5 L6.5,7.5 C6.5,6.94771525 6.94771525,6.5 7.5,6.5 Z M13,6.5 L14,6.5 C14.5522847,6.5 15,6.94771525 15,7.5 L15,8.5 C15,9.05228475 14.5522847,9.5 14,9.5 L13,9.5 C12.4477153,9.5 12,9.05228475 12,8.5 L12,7.5 C12,6.94771525 12.4477153,6.5 13,6.5 Z"}}]});function D_(e){const t=gy(),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 j_={className:"njs-cell-action"},F_=V.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const a=gy(),{hidden:i,disabled:l,style:s,hasSvgIconShape:c}=D_(r);if(i)return null;const u=Number.parseInt(a.spacing(.5),10),d=r.keyboardAction||r.action,p=d?e=>["Enter"].includes(e.key)&&d():null,f=d?e=>[" ","Spacebar"].includes(e.key)&&d():null,h="actions-toolbar-".concat(r.key);return V.createElement(SS,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:p,onKeyUp:f,disabled:l,style:s,className:[j_.className,h].join(" "),size:"large",disableRipple:!0,"aria-expanded":n,"aria-controls":"moreMenuList","data-testid":h},c&&nL(r.getSvgIconShape()),o&&V.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),$_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]});var B_=e=>nL($_(e));const W_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]});var H_=e=>nL(W_(e));const U_="njs-action-toolbar-more",V_={icon:"".concat("More","-icon")},G_=Gy(aR)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(V_.icon," *")]:{color:t.palette.text.primary}}}));function K_(e){let{item:t,autoFocus:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:a,hasSvgIconShape:i}=D_(t);return o?null:V.createElement(uR,{autoFocus:n,title:t.label,onClick:()=>{t.action(),r()},disabled:a,tabindex:"0"},i&&V.createElement($k,{className:V_.icon},nL(t.getSvgIconShape())),V.createElement(LS,{noWrap:!0},t.label))}const Z_=V.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:o,popoverProps:i={},popoverPaperStyle:s={},onCloseOrActionClick:c=(()=>{})}=e;const u=n.length>0,d=n.findIndex((e=>!e.disabled));return u&&V.createElement(G_,a({},i,{onClose:c,ref:t,open:r,anchorEl:o.current,getContentAnchorEl:null,container:o.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:U_},paper:{style:l({pointerEvents:"auto",maxWidth:"250px"},s)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),V.createElement(Kk,{id:"moreMenuList"},n.map(((e,t)=>V.createElement(K_,{key:t,item:e,autoFocus:t===d,onActionClick:c})))))})),X_=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},Q_=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 J_="ActionsToolbar",Y_={item:"".concat(J_,"-item"),itemSpacing:"".concat(J_,"-itemSpacing")},eI=Gy(aR)((e=>{let{theme:t}=e;return{["& .".concat(Y_.itemSpacing)]:{padding:t.spacing(0,.25)}}})),tI={className:"njs-action-toolbar-popover"},nI=V.forwardRef(((e,t)=>{let{className:n,ariaExpanded:r=!1,actions:o=[],addAnchor:a=!1,isRtl:i=!1}=e;return o.length>0?V.createElement(ok,{item:!0,container:!0,gap:0,flexDirection:i?"row-reverse":"row",wrap:"nowrap",className:n},o.map(((e,n)=>V.createElement(ok,{item:!0,key:e.key,className:"".concat(Y_.itemSpacing," ").concat(Y_.item)},V.createElement(F_,{ariaExpanded:r,key:e.key,item:e,ref:0===n?t:null,addAnchor:a}))))):null})),rI={pointerEvents:"none"},oI={vertical:"bottom",horizontal:"right"};function aI(e){var t,n;let{show:r=!0,actions:o=[],maxItems:a=3,selections:i={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:s,more:c={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:u={show:!1,anchorEl:null},focusHandler:d=null,actionsRefMock:p=null,isRtl:f,autoConfirm:h=!1,layout:m}=e;const g=function(e){let{api:t,layout:n,onConfirm:r=(()=>{}),onCancel:o=(()=>{}),onKeyDeactivate:a=(()=>{})}=e;const{translator:i}=U.useContext(Jx);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(n),action:()=>t.clear(),getSvgIconShape:W_},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(n),action:()=>{o(),t.cancel()},keyboardAction:()=>{a(),o(),t.cancel()},getSvgIconShape:$_},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(n),action:()=>{r(),t.confirm()},keyboardAction:()=>{a(),r(),t.confirm()},getSvgIconShape:yL}]}(l(l({},i),{},{layout:m})),{translator:v,keyboardNavigation:b}=U.useContext(Jx),[y,x]=U.useState(!1),S={vertical:12,horizontal:(null!==(t=null===(n=u.anchorEl)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)-7},w=U.useRef(),E=U.useRef(),C=gy(),k=U.useMemo((()=>({margin:C.spacing(.5,0)}))),R=e=>{const t=w.current||p;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},L=U.useMemo((()=>function(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r,selections:o,isRtl:a}=e;return e=>{const{target:i,nativeEvent:l}=e,{keyCode:s}=l;switch(s){case pO.ARROW_LEFT:case pO.ARROW_DOWN:case pO.ARROW_RIGHT:case pO.ARROW_UP:if(i.classList.contains("njs-cell-action")){const e=X_(i);let t=[pO.ARROW_LEFT,pO.ARROW_DOWN].includes(s);t=a?!t:t,Q_(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case pO.SPACE:e.preventDefault();break;case pO.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 pO.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:b,focusHandler:d,getEnabledButton:R,selections:i,isRtl:f})),[b,d,R,i,f]);if(U.useEffect((()=>()=>{x(!1)}),[u.show,r,i.show]),U.useEffect((()=>{if(!d)return;d.on("focus_toolbar_first",(()=>{const e=R(!1);null==e||e.focus()})),d.on("focus_toolbar_last",(()=>{const e=R(!0);null==e||e.focus()}))}),[]),h)return;let O=c.enabled,_=c.actions;const I=c.alignTo||E,T=o.filter((e=>!e.hidden));if(T.length>a){const e=T.splice(-(T.length-a)-1);O=!0,_=[...e,...c.actions]}if(!i.show&&0===T.length&&!O)return null;const P={key:"more",label:v.get("Menu.More"),getSvgIconShape:z_,hidden:!1,active:y,enabled:()=>O,action:()=>x(!y)},M=T.length>0,N=_.length>0,q=M&&i.show||N&&i.show,A=V.createElement(ok,{ref:w,onKeyDown:L,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:f?"row-reverse":"row"}},(null==s?void 0:s.length)&&V.createElement(nI,{className:"actions-toolbar-extra-actions",actions:s,isRtl:f}),M&&V.createElement(nI,{actions:T}),N&&V.createElement(nI,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:E,ariaExpanded:y,actions:[P],addAnchor:!0}),q&&V.createElement(ok,{item:!0,className:Y_.itemSpacing,style:k},V.createElement($C,{orientation:"vertical"})),i.show&&V.createElement(nI,{className:"actions-toolbar-default-actions",actions:g,isRtl:f}),y&&V.createElement(Z_,{show:y,actions:_,alignTo:I,popoverProps:c.popoverProps,popoverPaperStyle:c.popoverPaperStyle,onCloseOrActionClick:()=>{x(!1)}}));return u.show?V.createElement(eI,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:u.show,anchorEl:u.anchorEl,anchorOrigin:S,transformOrigin:oI,hideBackdrop:!0,style:rI,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:tI.className,style:{pointerEvents:"auto",padding:C.spacing(.5,.25)}}}},A):r&&A}var iI=e=>nL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(e));const lI="/qListObjectDef",sI="**",cI=e=>null==e?void 0:e.substring(0,64e3),uI=Gy(yR,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})((e=>{let{styles:t,dense:n,isRtl:r}=e,o={};return n&&(o={fontSize:12,"& input":{paddingTop:"5px",paddingBottom:"5px",color:t.search.color,textAlign:r?"right":"left"}}),l({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:t.search.backgroundColor,backdropFilter:t.background.backgroundImage?t.search.backdropFilter:void 0,paddingLeft:0,paddingRight:0,flexDirection:r?"row-reverse":"row","& fieldset":{borderColor:"".concat(t.search.borderColor),borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:"".concat(t.search.highlightBorderColor," !important")},"& .MuiInputBase-root":l({},t.search),"& *":{color:t.search.color},"& input":{color:t.search.color,textAlign:r?"right":"left"}},o)})),dI=Gy(SS)((()=>({border:0,padding:"8px",cursor:"pointer",lineHeight:"12px","&:hover":{backgroundColor:"transparent"},":focus-visible":{borderRadius:"4px",boxShadow:"inset 0 0 0 2px rgb(2, 117, 217)"}})));function pI(e){let{popoverOpen:t,selections:n,selectionState:r,model:o,keyboard:a,dense:i=!1,visible:l=!0,autoFocus:s=!0,beginSelectionOnFocus:c=!0,wildCardSearch:u=!1,searchEnabled:d,direction:p,hide:f,styles:h}=e;const{translator:m}=U.useContext(Jx),[g,v]=U.useState(""),[b,y]=U.useState(!1),x=U.useRef(),S=U.useRef(),w=m.get("Listbox.Clear.Search"),{getStoreValue:E,setStoreValue:C}=a_(o),k="rtl"===p,R=async()=>{try{await o.abortListObjectSearch(lI)}finally{v("")}};U.useEffect((()=>l?()=>R():()=>{}),[l]),U.useEffect((()=>(n.on("deactivated",R),()=>{n.removeListener&&n.removeListener("deactivated",R)})),[]),U.useEffect((()=>{if(b&&x.current){const e=g.length-1;x.current.setSelectionRange(e,e),y(!1)}}),[b,x.current]),U.useEffect((()=>{C("inputText",g)}),[g]);const L=async()=>{let e;const t=cI(g),a=await o.searchListObjectFor(lI,t);return r.selectDisabled()?a:(a&&t.length&&E("listCount")>0&&(e=o.acceptListObjectSearch(lI,!0),n.selectionsMade=!0,r.clearItemStates(!1),v("")),e)},O=()=>{var e;null===(e=x.current)||void 0===e||e.focus()},_=()=>{R(),O()};return l&&!1!==d?V.createElement(uI,{styles:h,dense:i,isRtl:k,startAdornment:V.createElement(yk,{position:"start",sx:{marginLeft:i?"8px":"".concat(CL,"px")}},V.createElement(iI,{size:i?"small":"normal"})),endAdornment:V.createElement(yk,{position:"end",sx:{marginLeft:0}},""!==g&&V.createElement(dI,{tabIndex:0,ref:S,title:w,"aria-label":w,onClick:_,onKeyDown:async e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.key){case"Enter":_();break;case"Tab":e.shiftKey?O():bO(t);break;default:return}e.preventDefault(),e.stopPropagation()}},V.createElement(B_,{size:i?"small":"normal"}))),className:"search",inputRef:x,size:"small",fullWidth:!0,placeholder:m.get("Listbox.Search"),value:g,onFocus:()=>{u&&(v(sI),y(!0)),c&&!r.selectDisabled()&&!n.isModal()&&n.begin("/qListObjectDef")},onChange:async e=>{const t=cI(e.target.value);return v(t),t.length?o.searchListObjectFor(lI,t):R()},onKeyDown:async e=>{const{currentTarget:r}=e,o=r.closest(".listbox-container");switch(e.key){case"Enter":L();break;case"Escape":if(bO(o),n.cancel(),t)return;break;case"Tab":e.shiftKey?yO(o)||a.focusSelection():S.current?S.current.focus():bO(o);break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;f&&(f(),bO(o));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:s,inputProps:{tabIndex:a.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":m.get("Listbox.Search.ScreenReaderInstructions")}}):null}function fI(e){if(!e.session)return[];const{selectionStore:t}=U.useContext(Jx),[n]=t.useAppSelectionsStore(),r=e?e.id:null;let o=n.get(r);return U.useEffect((()=>{e&&!o&&(o=function(e){let{app:t,selectionStore:n}=e;const r="".concat(t.id),{modalObjectStore:o,appModalStore:a}=n,i=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{model:t,objectSelections:n}=o.get(r)||{};t&&(await t.endSelections(e),o.clear(r),n.emit("deactivated"))},l={begin:async e=>{var n;let{model:a,paths:l,accept:s=!0,objectSelections:c}=e;if(c===(null===(n=o.get(r))||void 0===n?void 0:n.objectSelections))return;i(s),o.set(r,{model:a,objectSelections:c});const u=Array.isArray(l)?l:[l],d=async e=>{try{await a.beginSelections(u),o.set(r,{model:a,objectSelections:c})}catch(n){6003!==n.code||e?o.clear(r):(await t.abortModal(s),d(!0))}};await d()},end:i};a.set(r,l);const s={model:t,isInModal:()=>!!o.get(r),isModal(e){var t;return e?(null===(t=o.get(r))||void 0===t?void 0:t.objectSelections)===e:!!o.get(r)},forward:()=>l.end().then((()=>t.forward())),back:()=>l.end().then((()=>t.back())),clear:()=>l.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return l.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return s}({app:e,selectionStore:t}),n.set(r,o),n.dispatch(!0))}),[e]),[o]}function hI(e){return Object.keys(ee.prototype).forEach((t=>{e[t]=ee.prototype[t]})),ee.init(e),e}const mI=e=>{let t,{appSelections:n,appModal:r,model:o}=e,a=!1,i=!1;const l={id:o.id,setLayout(e){t=e},begin(e){const t=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",t),t.isPrevented()?Promise.resolve():(a=!0,this.emit("activated"),r.begin({model:o,paths:e,accept:!0,objectSelections:l}))},clear(){return i=!1,this.emit("cleared"),t.qListObject?o.clearSelections("/qListObjectDef"):o.resetMadeSelections()},confirm(){return i=!1,a=!1,this.emit("confirmed"),this.emit("deactivated"),r.end(!0)},cancel(){return i=!1,a=!1,this.emit("canceled"),this.emit("deactivated"),r.end(!1)},async select(e){const t=this.begin([e.params[0]]);if(!n.isModal())return!1;await t;const r=await o[e.method](...e.params);return i="resetMadeSelections"!==e.method,!!r||(o.resetMadeSelections(),!1)},canClear:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked&&!t.qListObject.qDimensionInfo.qIsOneAndOnlyOne:i,canConfirm:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:i,canCancel:()=>!(t&&t.qListObject&&t.qListObject.qDimensionInfo)||!t.qListObject.qDimensionInfo.qLocked,isActive:()=>a,isModal:()=>n.isModal(l),goModal:e=>r.begin({model:o,paths:e,accept:!1,objectSelections:l}),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return hI(l),l},gI=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 vI(e,t,n,r){const o=Array.isArray(n)?n:[n],[a]=fI(e),[i]=JR(t),{appModalStore:l}=U.useContext(Jx).selectionStore,s=l.get(e.id),[c,u]=U.useState();return U.useEffect((()=>{a&&t&&!c&&u(mI({appSelections:a,appModal:s,model:t}))}),[a,t]),U.useEffect((()=>{if(!c)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=gI({elements:o,objectSelections:c,options:r});return c.addListener("activated",e),c.addListener("deactivated",t),()=>{c.isActive()&&c.confirm(),c.removeListener("activated",e),c.removeListener("deactivated",t)}}),[c]),U.useEffect((()=>{c&&c.setLayout(i)}),[c,i]),[c]}function bI(){const e=l(l({itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{update(t){var n,r;let{setPages:o,pages:a,isSingleSelect:i,selectDisabled:l,layout:s}=t;this.setPages=o;const c=this.lastRowCount===s.qListObject.qSize.qcy,u=this.lastApprMaxGlyphCount===s.qListObject.qDimensionInfo.qApprMaxGlyphCount;c&&u||(this.lastRowCount=s.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=s.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==a&&void 0!==a&&(e.enginePages=null!=a?a:[],e.selectedInEngine=pL(a),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=i,e.selectDisabled=l||e.selectDisabled,e.isDimCalculated=null!==(n=null==s||null===(r=s.qListObject)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.qIsCalculated)&&void 0!==n&&n},allowedToSelect:()=>!e.selectDisabled()&&!(e.isDimCalculated&&e.selectableValuesUpdating),setSelectableValuesUpdating(){e.selectableValuesUpdating=!0},useClientItemState:t=>e.ignoreSelectionState||t in e.itemStates,isSelected:t=>e.useClientItemState(t)?!!e.itemStates[t]:e.selectedInEngine.includes(t),getState(t){const{qElemNumber:n,qState:r}=t;return e.useClientItemState(n)?e.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(t,n,r){const o=e.isSelected(t);o&&!n?e.itemStates[t]=!1:o||(null==r||r.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages(t){const n=t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[l(l({},n),{},{qState:r}),...t.slice(1)]}));return l(l({},t),{},{qMatrix:n})}));return n},updateItem(t,n,r){e.updateItemNoEvents(t,n,r),e.triggerStateChanged()},updateItems(t,n,r){t.forEach((t=>{e.updateItemNoEvents(t,n,r)})),e.triggerStateChanged()},clearItemStates(t){e.itemStates={},e.ignoreSelectionState=t}});return e}const yI=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 xI(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return yI(t,"qSelected",0)+yI(t,"qSelectedExcluded",0)+yI(t,"qLocked",0)+yI(t,"qLockedExcluded",0)>0}const SI={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},wI=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,EI=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,CI=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,kI=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,RI=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,LI=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:OI}=Math,{round:_I}=Math;class II{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r,o,a,i,l,s,c,u,d,p,f,h,m=0,g=0,v=0,b=1;if(this._invalid=!1,t[0]instanceof II)m=t[0]._r,g=t[0]._g,v=t[0]._b,b=t[0]._a,this._invalid=t[0]._invalid;else if(t.length<3)if("string"==typeof t[0])if(h=t[0],f=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))m=parseInt(f[1],10),g=parseInt(f[2],10),v=parseInt(f[3],10);else if(f=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(h))m=parseInt(f[1],10),g=parseInt(f[2],10),v=parseInt(f[3],10),b=parseFloat(f[4]);else if(f=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))b=parseInt(f[1],10)/255,m=parseInt(f[2],10),g=parseInt(f[3],10),v=parseInt(f[4],10);else if(f=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(h))m=parseInt(f[1],16),g=parseInt(f[2],16),v=parseInt(f[3],16),b=1;else if(f=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(h))m=parseInt(f[1]+f[1],16),g=parseInt(f[2]+f[2],16),v=parseInt(f[3]+f[3],16),b=1;else if(f=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),i=parseFloat(f[5]),r%=360,o/=100,i/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,i=i<0?0:i>1?1:i,s=i<=.5?2*i*o:(2-2*i)*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=i-.5*s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=_I(255*m),g=_I(255*g),v=_I(255*v),b=1}else if(f=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),i=parseFloat(f[5]),b=parseFloat(f[7]),r%=360,o/=100,i/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,i=i<0?0:i>1?1:i,s=i<=.5?2*i*o:(2-2*i)*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=i-.5*s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=_I(255*m),g=_I(255*g),v=_I(255*v)}else if(f=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),l=parseFloat(f[5]),r%=360,o/=100,l/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,l=l<0?0:l>1?1:l,s=l*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=l-s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=_I(255*m),g=_I(255*g),v=_I(255*v),b=1}else SI[h.toLowerCase()]?(a=h.toLowerCase(),m=SI[a].r,g=SI[a].g,v=SI[a].b,b="number"==typeof SI[a].a?SI[a].a:1):this._invalid=!0;else"number"==typeof t[0]&&t[0]>=0&&"argb"===t[1]?(b=(4278190080&t[0])>>>24,b/=255,m=(16711680&t[0])>>16,g=(65280&t[0])>>8,v=255&t[0]):"number"==typeof t[0]&&t[0]>=0?(m=(16711680&t[0])>>16,g=(65280&t[0])>>8,v=255&t[0]):this._invalid=!0;else t.length>=3?(m=t[0],g=t[1],v=t[2],b=arguments.length>=4?t[3]:1):this._invalid=!0;Number.isNaN(+m+g+v+b)&&(this._invalid=!0),this._r=OI(m),this._g=OI(g),this._b=OI(v),this._a=b,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=II.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=II.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=II.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=II.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=II.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=II.toHSLA(this,e)),this._spaces.hsla}toHSV(){const e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=II.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=II.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(e){const t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]);let a=parseFloat(n[5]);const i=parseFloat(n[7]);return a+=e,a=Math.max(0,Math.min(a,100)),"hsla(".concat(r,",").concat(o,",").concat(a,",").concat(i,")")}isEqual(e){return e instanceof II||(e=new II(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){const n=OI(this._r+(e._r-this._r)*t),r=OI(this._g+(e._g-this._g)*t),o=OI(this._b+(e._b-this._b)*t),a=OI(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,a].join(","),")")}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),n=this._g<126?1:1+this._g/512,r=this.shiftLuminance(20*(t*n<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new II(r)}static toRGB(e){if(e instanceof II)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=II.toNumber(e));const t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")}static toRGBA(e,t){if(e instanceof II)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=II.toNumber(e));const n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")}static toHex(e){let t,n,r;return e instanceof II?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=II.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))}static toHSL(e,t){let n,r,o,a=0;"string"==typeof e&&(e=new II(e));const i=e._r/255,l=e._g/255,s=e._b/255,c=Math.max(i,l,s),u=Math.min(i,l,s);if(r=t?.21*i+.72*l+.07*s:(c+u)/2,c===u)n=0,a=0;else{switch(o=c-u,n=r>.5?o/(2-c-u):o/(c+u),c){case i:a=(l-s)/o+(l<s?6:0);break;case l:a=(s-i)/o+2;break;case s:a=(i-l)/o+4}a/=6}return"hsl(".concat(360*a,",").concat(100*n,",").concat(100*r,")")}static toHSLA(e,t){let n,r,o,a=0;"string"==typeof e&&(e=new II(e));const i=e._r/255,l=e._g/255,s=e._b/255,c=e._a,u=Math.max(i,l,s),d=Math.min(i,l,s);if(r=t?.21*i+.72*l+.07*s:(u+d)/2,u===d)n=0,a=0;else{switch(o=u-d,n=r>.5?o/(2-u-d):o/(u+d),u){case i:a=(l-s)/o+(l<s?6:0);break;case l:a=(s-i)/o+2;break;case s:a=(i-l)/o+4}a/=6}return"hsla(".concat(360*a,",").concat(100*n,",").concat(100*r,",").concat(c,")")}static toHSVComponents(e){let t,n,r=0;"string"==typeof e&&(e=new II(e));const o=e._r/255,a=e._g/255,i=e._b/255,l=Math.max(o,a,i),s=Math.min(o,a,i),c=l;if(l===s)t=0,r=0;else{switch(n=l-s,t=0===n?0:n/c,l){case o:r=(a-i)/n+(a<i?6:0);break;case a:r=(i-o)/n+2;break;case i:r=(o-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}static toNumber(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length&&t[0]instanceof II)return(t[0]._r<<16)+(t[0]._g<<8)+t[0]._b;let r,o,a=0,i=0,l=0;return 1===t.length&&"string"==typeof t[0]&&(o=t[0],(r=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(o))?(a=parseInt(r[1],10),i=parseInt(r[2],10),l=parseInt(r[3],10)):(r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(o))?(a=parseInt(r[1],16),i=parseInt(r[2],16),l=parseInt(r[3],16)):(r=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(o))&&(a=parseInt(r[1]+r[1],16),i=parseInt(r[2]+r[2],16),l=parseInt(r[3]+r[3],16))),(a<<16)+(i<<8)+l}static blend(e,t,n){const r=(16711680&(e=II.toNumber(e)))>>16,o=(65280&e)>>8,a=255&e;return(r+(((16711680&(t=II.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(a+((255&t)-a)*n)}static getBlend(e,t,n){const r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,a=e._b+(t._b-e._b)*n,i=e._a+(t._a-e._a)*n;return new II(r,o,a,i)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(wI.test(e)||EI.test(e)||CI.test(e)||kI.test(e)||RI.test(e)||LI.test(e)||SI[e.toLowerCase()])}static getBestContrast(e,t,n){const r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n}static getContrast(e,t){if(!e||!t)return;const n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}static isDark(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new II(...t).isDark(...t)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}const TI=/,(?![^(]*\))/,PI=/\s(?![^(]*\))/,MI=/^[0-9]+[a-zA-Z%]+?$/,NI=["none","inset","initial","inherit"],qI=e=>{if(!e)return;const t=e.split(PI).filter((e=>!NI.includes(e.toLowerCase()))).at(-1),n=!t||(e=>"0"===e||MI.test(e))(t)||NI.includes(t.toLowerCase())?void 0:t;return n},AI=e=>e?e.split(TI).map((e=>e.trim())):[];function zI(e,t,n,r){return n&&r?n.getStyle("object.".concat(r),e,t):n?n.getStyle("",e,t):void 0}const DI=!0;function jI(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e,DI):void 0:zI(t,n,r,o)}const FI={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},$I={"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 BI(e,t){return t?function(e){var t;let n,r,o,a;return null!=e&&null!==(t=e.session)&&void 0!==t&&t.config?(n=e.session.config,r=new URL(n.url),a="wss:"===r.protocol,o=a?"https://":"http://",o+r.host):""}(e)+t:void 0}function WI(e,t){const n=null==e?void 0:e.bgImage;if(n){let r="";if("media"===n.mode||"media"===e.useImage){const e=null==n?void 0:n.mediaUrl,{qUrl:o}=(null==e?void 0:e.qStaticContentUrl)||{};r=o?decodeURIComponent(o):void 0,r=BI(t,r)}"expression"===n.mode&&(r=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const o=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=$I[e.bgImage.position]),n}(e),a=function(e){var t;let n=FI.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=FI[r]),n}(e);return r?{url:r,pos:o,size:a}:void 0}}function HI(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):jI(null==r?void 0:r.color,"","backgroundColor",t,n)}function UI(e,t,n){var r,o;const a=zI("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&NI.includes(e.toLowerCase()))return e.toLowerCase();const r=AI(e);if(1!==r.length)return e;let o=n;if(!o){const n=AI(t);if(1!==n.length)return e;o=qI(n[0])}if(!o)return e;const a=qI(r[0]);return a?e.replace(a,o):"".concat(e," ").concat(o)})((null==e||null===(r=e.shadow)||void 0===r?void 0:r.boxShadow)||a,a,jI(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function VI(e,t,n,r){var o;const a=(null==e||null===(o=e.title)||void 0===o?void 0:o[t])||{},i=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(a.fontStyle,t);return{fontFamily:a.fontFamily||n.getStyle("object.".concat(r),"title.".concat(t),"fontFamily"),fontSize:a.fontSize||n.getStyle("object.".concat(r),"title.".concat(t),"fontSize"),color:a.color&&"none"!==a.color.color?n.getColorPickerColor(a.color,!0):n.getStyle("object.".concat(r),t,"color"),fontWeight:i.includes("bold")?"bold":"normal",fontStyle:i.includes("italic")?"italic":"normal",textDecoration:i.includes("underline")?"underline":"initial"}}const GI="#FFF",KI="#000",ZI=1.5,XI=3,QI={selected:"#009845",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},JI=(e,t)=>{let n=!1;const r=new II(e),o=new II(t);if(!(o.isInvalid()||r.isInvalid()||o.getAlpha()<1||r.getAlpha()<1)){try{n=II.getContrast(r,o)}catch(e){n=void 0}return n}};function YI(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:KI,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:GI;const o=new II(r),a=new II(e),i=new II(t);if(a.isInvalid()||i.isInvalid()||a.getAlpha()<1||i.getAlpha()<1)return t;const l=JI(o,a),s=JI(i,a),c=l>s||l>XI;let u;return u=t&&s>ZI&&!c?t:c?r:n,u}const eT=["theme","selections"];function tT(e){var t,n,r,o,a;let{getColorPickerColor:i,theme:s,getListboxStyle:c,overrides:u,checkboxes:d,themeSelectionColorsEnabled:p}=e;const f=null===(t=u.theme)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.fontColor,h=i(f)||c("content","color")||(null===(n=s.palette)||void 0===n?void 0:n.text.primary),m=!d&&(null===(r=null===(o=u.theme)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.useContrastColor)||void 0===r||r),g=(null===(a=u.selections)||void 0===a?void 0:a.colors)||{},v=e=>{var t,n;const r="selected"===e?"main":e,o="".concat(e,"Contrast"),a=i(g[e])||(e=>p?c("","dataColors.".concat(e)):void 0)(e)||"possible"===e&&c("","backgroundColor")||(null===(t=s.palette)||void 0===t?void 0:t.selected[r])||QI[e];return{[e]:a,[o]:m?YI(a,h):h||(null===(n=s.palette)||void 0===n?void 0:n.selected["".concat(o,"Text}")])}};return l(l(l(l(l({},v("selected")),v("alternative")),v("excluded")),v("selectedExcluded")),v("possible"))}function nT(e){var t,n,r,o,a,i,l,s;let{app:c,themeApi:u,theme:d,components:p=[],checkboxes:f=!1,themeSelectionColorsEnabled:h=!1}=e;const m=function(){const e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const n=null==t?void 0:t.key;eT.includes(n)&&(e[n]=t)})),e}(p),g=(e,t)=>u.getStyle("object.listBox",e,t),v=e=>(null==e?void 0:e.index)>0||null!=e&&e.color?u.getColorPickerColor(e,!1):void 0,b=tT({getColorPickerColor:v,theme:d,getListboxStyle:g,overrides:m,checkboxes:f,themeSelectionColorsEnabled:h}),y=m.theme||{},x=v(null===(t=y.header)||void 0===t?void 0:t.fontColor)||g("title.main","color"),S=function(e){let t,{themeApi:n,themeOverrides:r}=e;const o=null==r?void 0:r.background;return o?(t=null!=o&&o.useExpression?HI({bgColor:o},n,"listBox"):n.getColorPickerColor(null==o?void 0:o.color,!1),t):t}({themeApi:u,themeOverrides:y}),w=null!==(n=y.background)&&void 0!==n&&n.image?WI({bgImage:y.background.image},c):void 0,E=S||g("","backgroundColor")||d.palette.background.default,C=function(e,t){const n=new II(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.toRGBA()}(E,g),k=function(e){return YI("#fff",e("content","color"))}(g),R=(null===(r=y.header)||void 0===r?void 0:r.fontStyle)||{},L=(null===(o=y.content)||void 0===o?void 0:o.fontStyle)||{},O=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:E,backgroundImage:null==w||!w.url||null!=w&&w.url.startsWith("url(")?void 0:"url('".concat(w.url,"')"),backgroundRepeat:"no-repeat",backgroundSize:null==w?void 0:w.size,backgroundPosition:null==w?void 0:w.pos},header:{color:x,fontSize:(null===(a=y.header)||void 0===a?void 0:a.fontSize)||g("title.main","fontSize"),fontFamily:(null===(i=y.header)||void 0===i?void 0:i.fontFamily)||g("title.main","fontFamily"),fontWeight:O(R.bold,"bold","normal")||g("title.main","fontWeight")||"bold",textDecoration:R.underline?"underline":"initial",fontStyle:O(R.italic,"italic","normal")||g("title.main","fontStyle")||"initial"},content:{backgroundColor:f?void 0:b.possible,color:b.possibleContrast||g("content","color"),fontSize:(null===(l=y.content)||void 0===l?void 0:l.fontSize)||g("content","fontSize"),fontFamily:(null===(s=y.content)||void 0===s?void 0:s.fontFamily)||g("content","fontFamily"),fontWeight:O(L.bold,"bold","normal")||g("content","fontWeight")||"normal",textDecoration:L.underline?"underline":"initial",fontStyle:O(L.italic,"italic","normal")||g("content","fontStyle")||"initial"},search:{color:k,borderColor:d.palette.divider,highlightBorderColor:d.palette.custom.focusBorder,backgroundColor:C,backdropFilter:"blur(8px)"},selections:b}}function rT(e){let{alignTo:t,anchorOrigin:n={vertical:"bottom",horizontal:"center"},transformOrigin:r={vertical:"top",horizontal:"center"},show:o,close:a,app:i,fieldName:l,stateName:s="$",autoFocus:c,components:u,checkboxes:d,selectDisabled:p=(()=>!1),flags:f}=e;const h=Boolean(null==l?void 0:l.qLibraryId),m=o&&Boolean(t.current),[g,v]=U.useState(0),b=gy(),y=U.useRef(),[x]=VR({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:h?void 0:[l]},qLibraryId:h?l.qLibraryId:void 0}},i,l,s),S=U.useCallback((()=>{x.lock("/qListObjectDef")}),[x]),w=U.useCallback((()=>{x.unlock("/qListObjectDef")}),[x]),{translator:E,themeApi:C,keyboardNavigation:k}=U.useContext(Jx),R=U.useRef(),L=U.useRef(),[O]=vI(i,x,L),[_]=JR(x),[I]=U.useState((()=>bI({selectDisabled:p}))),T=mO({containerRef:L,enabled:k}),{checkboxes:P=d}=_||{},M=nT({themeApi:C,theme:b,components:u,checkboxes:P,themeSelectionColorsEnabled:null==f?void 0:f.isEnabled("PS_22149_THEME_SELECTION_COLORS")});if(U.useEffect((()=>{O&&m&&(O.isModal(x)||O.goModal("/qListObjectDef"))}),[O,m]),!x||!_||!E)return null;const N=!0===_.qListObject.qDimensionInfo.qLocked,q=(e,t)=>{const n="escapeKeyDown"!==t;O.noModal(n),a()},A=A_({layout:_,model:x,translator:E,selectionState:I,selections:O}),z=xI(_);return V.createElement(aR,{className:"listbox-container",open:m,onClose:q,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?q():void 0},V.createElement(ok,{container:!0,direction:"column",gap:0,ref:L},V.createElement(ok,{item:!0,container:!0,style:{padding:b.spacing(1)}},V.createElement(ok,{item:!0},N?V.createElement(SS,{onClick:w,disabled:!N,size:"large"},V.createElement(oL,{title:E.get("Listbox.Unlock")})):V.createElement(SS,{onClick:S,disabled:!z,size:"large"},V.createElement(iL,{title:E.get("Listbox.Lock")}))),V.createElement(ok,{item:!0,xs:!0}),V.createElement(ok,{item:!0},V.createElement(aI,{layout:_,more:{enabled:!N,actions:A,alignTo:R,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:O,onConfirm:q,onCancel:()=>q(0,"escapeKeyDown")}}))),V.createElement(ok,{item:!0,xs:!0},V.createElement("div",{ref:R}),V.createElement(ok,{item:!0,ref:y},V.createElement(pI,{popoverOpen:m,styles:M,visible:!0,model:x,listCount:g,selections:O,selectionState:I,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:T.focusSelection},autoFocus:null==c||c})),V.createElement(T_,{model:x,app:i,layout:_,selections:O,selectionState:I,direction:"ltr",onSetListCount:e=>v(e),onCtrlF:()=>{const e=y.current.querySelector("input");null==e||e.focus()},styles:M,keyboard:T}))))}function oT(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:a=null,onClose:i=(()=>{})}=e;const{translator:l}=U.useContext(Jx),s=a||U.useRef(),c=gy(),[u,d]=U.useState(!1),p=e=>{e.currentTarget.contains(e.target)&&d(!u)},f=()=>{d(!1),i()},h=t.selections[r];void 0===h.qTotal&&(h.qTotal=0);const m=h.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},g=(m.qSelected+m.qLocked)/h.qTotal,v=m.qAlternative/h.qTotal,b=(m.qExcluded+m.qLockedExcluded+m.qSelectedExcluded)/h.qTotal,y=m.qSelected+m.qSelectedExcluded+m.qLocked+m.qLockedExcluded,x=0===y&&0===h.qTotal;let S="";h.qTotal===y&&h.qTotal>1?S=l.get("CurrentSelections.All"):y>1&&h.qTotal?S=l.get("CurrentSelections.Of",[y,h.qTotal]):h.qSelectedFieldSelectionInfo&&(S=h.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==t.states[r]&&(S="".concat(t.states[r],": ").concat(S));const w=[{color:c.palette.selected.main,ratio:g},{color:c.palette.selected.alternative,ratio:v},{color:c.palette.selected.excluded,ratio:b}];w.forEach(((e,t)=>{e.offset=t?w[t-1].offset+w[t-1].ratio:0}));let E=null,C=null,k=null,R=null;return a||(E=V.createElement(ok,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:h.qLocked?"0.3":""}},V.createElement(LS,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},h.qField),V.createElement(LS,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},S)),h.qLocked?C=V.createElement(ok,{item:!0},V.createElement(SS,{size:"large"},V.createElement(oL,null))):h.qOneAndOnlyOne||(C=V.createElement(ok,{item:!0},V.createElement(SS,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(h.qField,t.states[r])},size:"large"},V.createElement(rL,null)))),k=V.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===x&&w.map((e=>V.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:"".concat(100*e.ratio,"%"),left:"".concat(100*e.offset,"%")}})))),R=V.createElement(ok,{container:!0,gap:1,ref:s,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===o&&p||null},E,C,k,u&&V.createElement(rT,{alignTo:s,show:u,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}))),a?V.createElement(rT,{alignTo:s,show:!0,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}):R}var aT=e=>nL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(e));const iT={item:"".concat("MultiState","-item")},lT=Gy(ok)((e=>{let{theme:t}=e;return{["&.".concat(iT.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function sT(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[a,i]=U.useState(!!r),[l,s]=U.useState(-1),[c,u]=U.useState(r?r.current:null),d=r||U.useRef(),{translator:p}=U.useContext(Jx),f=p.get("Selection.ClearAllStates"),h=()=>{s(-1),o()};let m=null;r||(m=V.createElement(V.Fragment,null,V.createElement(ok,{item:!0,xs:!0,zeroMinWidth:!0},V.createElement(FE,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},V.createElement(LS,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.name))),V.createElement(ok,{item:!0},V.createElement("div",{style:{width:"12px"}})),V.createElement(ok,{item:!0},V.createElement(SS,{size:"large"},V.createElement(aT,null)))));const g=V.createElement(Ck,{dense:!0},V.createElement(Ak,{title:f,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},V.createElement(Hx,{variant:"contained",fullWidth:!0},f)),t.states.map(((e,r)=>V.createElement(Ak,{key:r,title:t.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),s(t)})(e,r)},V.createElement(WE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},V.createElement(oT,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),v=V.createElement(aR,{open:a,onClose:()=>{i(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},g),b=r?v:V.createElement(lT,{container:!0,gap:0,className:iT.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),d.current=e.currentTarget,i(!a))}},m,a&&v,l>-1&&V.createElement(rT,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}));return r&&l>-1?V.createElement(rT,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):b}const cT="More",uT={item:"".concat(cT,"-item"),badge:"".concat(cT,"-badge")},dT=Gy(ok)((e=>{let{theme:t}=e;return{["&.".concat(uT.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(uT.badge)]:{padding:t.spacing(0,1)}}}));function pT(e){let{items:t=[],api:n}=e;const r=gy(),[o,a]=U.useState(!1),[i,l]=U.useState(-1),[s,c]=U.useState(null),u=U.useRef(),d=()=>{l(-1)};let p=null;return i>-1&&(p=t[i].states.length>1?V.createElement(sT,{field:t[i],api:n,moreAlignTo:u,onClose:d}):V.createElement(oT,{field:t[i],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:d})),V.createElement(dT,{container:!0,gap:0,className:uT.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,a(!o))}},V.createElement(ok,{item:!0},V.createElement(WE,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},V.createElement(LS,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),V.createElement(ok,{item:!0},V.createElement(SS,{size:"large"},V.createElement(aT,null))),o&&V.createElement(aR,{open:o,onClose:()=>{a(!1)},anchorEl:s,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},V.createElement(Ck,{dense:!0},t.map(((e,t)=>V.createElement(Ak,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),l(t)})(e,t)},V.createElement(WE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?V.createElement(sT,{field:e,api:n}):V.createElement(oT,{field:e,api:n}))))))),p)}const fT=120,hT=72;function mT(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 gT(e){let{api:t,app:n}=e;const r=gy(),[o]=KR(n),[a]=JR(o),[i,l]=U.useState({items:[],more:[]}),{modalObjectStore:s}=U.useContext(Jx).selectionStore,[c,u]=eL(),[d,p]=U.useState(0);return U.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-hT,n=Math.floor(t/fT);p(n)}),[u]),U.useEffect((()=>{if(!(n&&o&&a&&d))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&mT(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>mT(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(a);l((t=>{const r=e;if((()=>{const{model:e}=s.get(n.id)||{};return"njsListbox"===(null==e?void 0:e.genericType)})()&&r.length+1===t.items.length){const e=t.items.filter((e=>!1===r.some((t=>e.name===t.name))))[0],{qField:n}=e.selections[0];e.selections=[{qField:n}];const o=t.items.indexOf(e);r.splice(o,0,e)}let o=[];return d<r.length&&(o=r.splice(d-r.length)),{items:r,more:o}}))}),[n,o,a,t.isInModal(),d]),V.createElement(ok,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},i.items.map((e=>V.createElement(ok,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(fT,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?V.createElement(sT,{field:e,api:t}):V.createElement(oT,{field:e,api:t})))),i.more.length>0&&V.createElement(ok,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(hT,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},V.createElement(pT,{items:i.more,api:t})))}var vT=e=>nL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(e));var bT=e=>nL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));const yT=(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 xT(e){let{api:t,app:n}=e;const{translator:r}=U.useContext(Jx),[o]=function(e){const[t]=KR(e),[n]=JR(t),[r]=YR(e),[o,a]=U.useState(null);return U.useEffect((()=>{r&&t&&n&&yT(t,n,r)}),[r,t,n]),U.useEffect((()=>{if(!n)return;let e=!1,t=!1,r=!1;[n,...n.alternateStates||[]].forEach((n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,r=r||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),a({canGoBack:e,canGoForward:t,canClear:r})}),[n]),[o,t,n]}(n);return V.createElement(ok,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},V.createElement(ok,{item:!0},V.createElement(SS,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},V.createElement(vT,null))),V.createElement(ok,{item:!0},V.createElement(SS,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},V.createElement(bT,null))),V.createElement(ok,{item:!0},V.createElement(SS,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},V.createElement(H_,null))))}const ST=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function wT(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function ET(){return ST.map(wT).join("")}function CT(e){let{app:t}=e;const n=gy(),[r]=fI(t);return r?V.createElement(ok,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},V.createElement(ok,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},V.createElement(xT,{api:r,app:t})),V.createElement(ok,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},V.createElement(gT,{api:r,app:t}))):null}let kT;kT="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let RT=null,LT=null;const OT=kT.clearTimeout,_T=kT.setTimeout,IT=kT.cancelAnimationFrame||kT.mozCancelAnimationFrame||kT.webkitCancelAnimationFrame,TT=kT.requestAnimationFrame||kT.mozRequestAnimationFrame||kT.webkitRequestAnimationFrame;function PT(e){let t,n,r,o,a,i,l;const s="undefined"!=typeof document&&document.attachEvent;if(!s){i=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},a=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},l=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;i(this),this.__resizeRAF__&&RT(this.__resizeRAF__),this.__resizeRAF__=LT((function(){a(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,s="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],s="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+s+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=s+"animation: 1ms "+n+"; "}return{addResizeListener:function(a,c){if(s)a.attachEvent("onresize",c);else{if(!a.__resizeTriggers__){const s=a.ownerDocument,c=kT.getComputedStyle(a);c&&"static"===c.position&&(a.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',a=n.head||n.getElementsByTagName("head")[0],i=n.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=r:i.appendChild(n.createTextNode(r)),a.appendChild(i)}}(s),a.__resizeLast__={},a.__resizeListeners__=[],(a.__resizeTriggers__=s.createElement("div")).className="resize-triggers";const u=s.createElement("div");u.className="expand-trigger",u.appendChild(s.createElement("div"));const d=s.createElement("div");d.className="contract-trigger",a.__resizeTriggers__.appendChild(u),a.__resizeTriggers__.appendChild(d),a.appendChild(a.__resizeTriggers__),i(a),a.addEventListener("scroll",l,!0),r&&(a.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&i(a)},a.__resizeTriggers__.addEventListener(r,a.__resizeTriggers__.__animationListener__))}a.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(s)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==IT||null==TT?(RT=OT,LT=function(e){return _T(e,20)}):(RT=function([e,t]){IT(e),OT(t)},LT=function(e){const t=TT((function(){OT(n),e()})),n=_T((function(){IT(t),e()}),20);return[t,n]});class MT extends U.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),a=parseFloat(r.paddingRight||"0"),i=parseFloat(r.paddingTop||"0"),l=parseFloat(r.paddingBottom||"0"),s=this._parentNode.getBoundingClientRect(),c=s.height-i-l,u=s.width-o-a,d=this._parentNode.offsetHeight-i-l,p=this._parentNode.offsetWidth-o-a;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===p&&this.state.scaledWidth===u)||(this.setState({height:d,width:p,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:p}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=PT(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:i,onResize:l,style:s={},tagName:c="div",...u}=this.props,{height:d,scaledHeight:p,scaledWidth:f,width:h}=this.state,m={overflow:"visible"},g={};let v=!1;return r||(0===d&&(v=!0),m.height=0,g.height=d,g.scaledHeight=p),o||(0===h&&(v=!0),m.width=0,g.width=h,g.scaledWidth=f),a&&(v=!1),U.createElement(c,{ref:this._setRef,style:{...m,...s},...u},!v&&e(g))}}function NT(e){let{keyboard:t,hovering:n,updateKeyScroll:r,currentScrollIndex:o,isModal:a,constraints:i,selections:l}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,o=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const i=e.currentTarget.closest(".listbox-container"),s=a();switch(n){case pO.TAB:if(document.activeElement===i||!s&&!i.contains(document.activeElement))return;if(r){bO(i)||vO(i)||xO(e,t)}else{if(!(yO(i)||vO(i)||bO(i)))break}o();break;case pO.ENTER:case pO.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),o();break;case pO.ESCAPE:xO(e,t),l.isActive()&&l.cancel()}},handleOnMouseEnter:()=>{n.current=!0},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current||(()=>{const e=(null==i?void 0:i.select)||(null==i?void 0:i.active),t=a();return e||t})())return;const{keyCode:t,ctrlKey:l=!1,shiftKey:s=!1}=e;switch(t){case pO.ARROW_UP:r({up:1});break;case pO.ARROW_DOWN:r({down:1});break;case pO.PAGE_UP:r({up:o.stop-o.start});break;case pO.PAGE_DOWN:r({down:o.stop-o.start});break;case pO.HOME:r({scrollPosition:l&&s?"overflowStart":"start"});break;case pO.END:r({scrollPosition:l&&s?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const qT=Gy("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function AT(e){let{text:t}=e;const{translator:n}=U.useContext(Jx);return V.createElement(qT,null,n.get(t))}const zT={fontSize:"12px"},DT=Gy(Nx)((e=>{let{theme:t,isLoading:n}=e;return{position:"absolute",top:0,left:0,height:48,zIndex:2,background:t.palette.custom.disabledBackground,opacity:1,color:t.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:n?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:t.palette.custom.disabledContrastText},"& i":{padding:"".concat(RL,"px")}}})),jT=Gy(ok,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((e=>{let{styles:t,isRtl:n}=e;return l(l({flexDirection:n?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},t.header),{},{"& *":{color:t.header.color}})})),FT=Gy(LS)((e=>{let{styles:t}=e;return l(l({},t.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})}));function $T(e){let{translator:t,toggleLock:n,keyboard:r,isLoading:o}=e;const a=t.get("SelectionToolbar.ClickToUnlock");return V.createElement(DT,{title:a,tabIndex:r.enabled?0:-1,onClick:n,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:o},o?V.createElement(yC,{size:16,variant:"indeterminate",color:"primary"}):V.createElement(oL,{disableRipple:!0,style:zT}),!o&&V.createElement(LS,{fontSize:"14px"},a))}var BT=e=>nL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"}}]}))(e));var WT=e=>nL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"}}]}))(e));var HT=e=>nL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"}}]}))(e));const UT="H",VT="C";var GT={createDimensionIconData:e=>{let{dimInfo:t,app:n,selections:r,isPopover:o,active:a,keyboard:i}=e;switch(t.qGrouping){case UT:return{icon:WT,tooltip:"Listbox.DrillDown",onClick:void 0};case VT:{const e=n&&a,l=()=>{o||r.confirm(),n.getDimension(t.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):console.log("engine api spec version doesn't have support for function stepCycle")})).catch((()=>null))};return{icon:e?HT:BT,tooltip:"Listbox.Cyclic",onClick:e?l:void 0,onKeyDown:e?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case pO.SPACE:case pO.ENTER:l();break;case pO.TAB:{if(!i.enabled)return;let n;n=e.shiftKey?i.focusSelection():vO(t)||bO(t),n||xO(e,i)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}}};const KT=Gy(Hx)((()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0})));function ZT(e){let{iconData:t,translator:n,iconStyle:r,disabled:o,keyboard:a}=e;if(!t)return;const{icon:i,tooltip:s,onClick:c,onKeyDown:u}=t,d=i,p=n.get(s);return c?V.createElement(KT,{variant:"outlined",onClick:c,tabIndex:a.innerTabStops?0:-1,title:p,size:"large",disableRipple:!0,disabled:o,onKeyDown:u,className:"listbox-cyclic-button","data-testid":"listbox-cyclic-button"},V.createElement(d,{style:r})):V.createElement(d,{title:p,size:"large",style:l(l({},r),{},{padding:"".concat(RL,"px")})})}const XT=500;let QT=0;function JT(e){var t,n,r;let{layout:o,translator:i,styles:s,isRtl:c,showLock:u,showSearchIcon:d,constraints:p,onShowSearch:f,classes:h,containerRect:m,isPopover:g,showToolbar:v,showDetachedToolbarOnly:b,containerRef:y,model:x,selectionState:S,isDirectQuery:w,selections:E,keyboard:C,autoConfirm:k,app:R}=e;const[L,O]=U.useState(b),[_,I]=U.useState(null==o||null===(t=o.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked),[T,P]=U.useState(!1);U.useEffect((()=>{var e;I(null==o||null===(e=o.qListObject)||void 0===e||null===(e=e.qDimensionInfo)||void 0===e?void 0:e.qLocked)}),[null==o||null===(n=o.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qLocked]);const M=U.useRef(null),N=GT.createDimensionIconData({dimInfo:null==o||null===(r=o.qListObject)||void 0===r?void 0:r.qDimensionInfo,app:R,selections:E,isPopover:g,active:!(null!=p&&p.active),keyboard:C}),q=u&&_,A=!u&&_,z=d||A||N,D=CL-(z?RL:0),j=c?CL-(z?RL:0):kL,F=(d?LL:0)+(A?LL:0)+(N?LL:0),$=function(e){let{isLocked:t,setLocked:n,settingLockedState:r,model:o,setSettingLockedState:a}=e;return()=>{const e=new Date;if(e-QT<XT)return Promise.resolve();if(r)return()=>{};a(!0),QT=e;const i=t?o.unlock:o.lock;return n(!t),i.call(o,"/qListObjectDef").catch((()=>{n(t)})).finally((()=>{setTimeout((()=>{a(!1)}),0)}))}}({isLocked:_,setLocked:I,settingLockedState:T,setSettingLockedState:P,model:x}),B=A_({layout:o,model:x,translator:i,selectionState:S,isDirectQuery:w,selections:E}),W=_||!u?void 0:[{key:"lock",type:void 0,label:i.get("SelectionToolbar.ClickToLock"),getSvgIconShape:aL,enabled:()=>!T&&!S.selectDisabled()&&xI(o),action:$}],H=null!=p&&p.active?V.createElement(iI,{title:i.get("Listbox.Search"),size:"large",style:l(l({},zT),{},{padding:"".concat(RL,"px")})}):V.createElement(SS,{onClick:f,tabIndex:-1,title:i.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},V.createElement(iI,{style:zT}));U.useEffect((()=>{if(!M.current||!m)return;const e=function(e){var t,n,r,o;let{containerRect:a,titleRef:i,iconsWidth:l,paddingLeft:s,paddingRight:c}=e;const u=s+c,d=a.width<(null!==(t=null==i||null===(n=i.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)+l+u+2+128,p=(null==i||null===(r=i.current)||void 0===r?void 0:r.scrollWidth)>(null==i||null===(o=i.current)||void 0===o?void 0:o.offsetWidth);return!(!d&&!p)}({containerRect:m,titleRef:M,iconsWidth:F,paddingLeft:D,paddingRight:j});O(b||e)}),[F,D,j,M.current,b,Object.entries(m||{}).sort().join(",")]);const G=function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:a,extraItems:i,selections:l,keyboard:s,autoConfirm:c}=e;return{autoConfirm:c,isDetached:t,show:n&&!t,popover:{show:n&&t,anchorEl:r.current},extraItems:i,more:{enabled:!o,actions:a,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:n,api:l,onConfirm:()=>{null==s||s.focus()},onCancel:()=>{null==s||s.focus()}}}}({isDetached:!g&&L,showToolbar:v,containerRef:y,isPopover:g,isLocked:_,extraItems:W,listboxSelectionToolbarItems:B,selections:E,keyboard:C,autoConfirm:k}),K=V.createElement(aI,a({isRtl:c,layout:o},G));if(b)return K;const Z=A?V.createElement(oL,{size:"large",style:l(l({},zT),{},{padding:"".concat(RL,"px")})}):void 0;return V.createElement(jT,{item:!0,container:!0,styles:s,isRtl:c,marginY:1,paddingLeft:"".concat(D,"px"),paddingRight:"".concat(j,"px"),className:"header-container"},q&&V.createElement($T,{isLoading:T,translator:i,toggleLock:$,keyboard:C}),z&&V.createElement(ok,{item:!0,container:!0,alignItems:"center",width:F,className:"header-action-container"},Z||d&&H,V.createElement(ZT,{iconData:N,iconStyle:zT,disabled:E.isActive()&&g,translator:i,keyboard:C})),V.createElement(ok,{item:!0,xs:!0,minWidth:0,justifyContent:c?"flex-end":"flex-start",className:h.listBoxHeader},V.createElement(FT,{variant:"h6",noWrap:!0,ref:M,title:o.title,styles:s},o.title)),V.createElement(ok,{item:!0,display:"flex"},K))}const YT="ListBoxInline",eP={listBoxHeader:"".concat(YT,"-listBoxHeader"),screenReaderOnly:"".concat(YT,"-screenReaderOnly"),listboxWrapper:"".concat(YT,"-listboxWrapper")},tP=Gy(ok,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((e=>{let{theme:t,containerPadding:n,isGridMode:r,styles:o}=e;return l(l({},o.background),{},{["& .".concat(eP.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(eP.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(eP.listboxWrapper)]:{padding:n},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:r?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}})}));const nP=V.memo((function(e){var t,n,r,o;let{options:a,layout:i}=e;const{app:s,direction:c,frequencyMode:u,checkboxes:d,search:p=!0,focusSearch:f=!1,rangeSelect:h=!0,model:m,selections:g,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:x,showGray:S=!0,scrollState:w,renderedCallback:E,toolbar:C=!0,isPopover:k=!1,showLock:R=!1,components:L,selectDisabled:O=(()=>!1),flags:_}=a,I=gy(),{translator:T,keyboardNavigation:P,themeApi:M,constraints:N}=U.useContext(Jx),{checkboxes:q=d}=i||{},A=null==_?void 0:_.isEnabled("PS_22149_THEME_SELECTION_COLORS"),z=nT({app:s,themeApi:M,theme:I,components:L,checkboxes:q,themeSelectionColorsEnabled:A}),D=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==s?void 0:s.layout}),j=U.useRef(),[F,$]=eL(),[B,W]=(()=>{const[e,t]=U.useState({}),n=U.useCallback((e=>{t({current:e})}),[t]);return[e,n]})(),[H,G]=U.useState(!1),[K,Z]=U.useState(!1),X=U.useRef(!1),[Q,J]=U.useState({down:0,up:0,scrollPosition:""}),Y=e=>J((t=>l(l({},t),e))),[ee,te]=U.useState({start:0,stop:0}),[ne]=fI(s),[re]=U.useState((()=>bI({selectDisabled:O}))),oe=mO({containerRef:j,enabled:P}),ae=U.useCallback((()=>(e=>{var t,n;let{app:r,appSelections:o}=e;return null!==(t=null===(n=r.isInModalSelection)||void 0===n?void 0:n.call(r))&&void 0!==t?t:o.isInModal()})({app:s,appSelections:ne})),[s,ne]),ie=null==i?void 0:i.qListObject.qDimensionInfo.qError,le=ie&&N.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:se,handleOnMouseEnter:ce,handleOnMouseLeave:ue,globalKeyDown:de}=U.useMemo((()=>NT({keyboard:oe,hovering:X,updateKeyScroll:Y,containerRef:j,currentScrollIndex:ee,app:s,appSelections:ne,constraints:N,isModal:ae,selections:g})),[oe,X,Y,j,ee,s,ne,N,ae]);U.useEffect((()=>(document.addEventListener("keydown",de),()=>{document.removeEventListener("keydown",de)})),[de]),U.useEffect((()=>{!0===p&&Z(!0);const e=()=>{G(!0)},t=()=>{G(!1),"toggle"===p&&Z(!1)};return k&&(g.isActive()||(g.on("activated",e),g.on("deactivated",t)),G(k)),C&&g&&(g.isModal()||(g.on("activated",e),g.on("deactivated",t)),G(k||g.isActive())),()=>{g&&g.removeListener&&(g.removeListener("activated",e),g.removeListener("deactivated",t))}}),[C,g,k]),U.useEffect((()=>{if(B&&B.current&&(p&&f||"toggle"===p&&K)){const e=B.current.querySelector("input");e&&e.focus()}}),[B&&B.current,K,p,f]);const{wildCardSearch:pe,searchEnabled:fe,autoConfirm:he=!1,layoutOptions:me={}}=null!=i?i:{},ge=null==i||null===(t=i.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked,ve=!1!==fe&&"toggle"===p&&!ge,be=(null==i||null===(n=i.title)||void 0===n?void 0:n.length)&&!1!==(null==i?void 0:i.showTitle),ye=C&&!be&&!k,xe=C&&be||k,Se="rtl"===c;if(!m||!i||!T)return null;const we=!0===p||"toggle"===p&&K&&!1!==fe,Ee=null!==(r=me.dense)&&void 0!==r&&r,Ce=()=>{Z(!K)},ke=()=>{if("toggle"===p)Ce();else{const e=B.current.querySelector("input");null==e||e.focus()}},Re=we&&"toggle"===p,Le="grid"===(null==me?void 0:me.dataLayout),Oe=function(e){let t,{isGridMode:n,dense:r,height:o,layoutOrder:a}=e;if(n){let e;e=e_({isGridMode:n,dense:r})>o?"0px":"2px",t="row"===a?"".concat(e," 4px"):"".concat(e," 6px ").concat(e," 4px")}else t=void 0;return t}({isGridMode:Le,dense:Ee,height:null===(o=j.current)||void 0===o?void 0:o.clientHeight,layoutOrder:me.layoutOrder});ie&&(null==E||E());const _e=xe?AL+_L:0,Ie=V.createElement(JT,{app:s,showSearchIcon:ve,onShowSearch:Ce,isPopover:k,showToolbar:H,isDirectQuery:D,autoConfirm:he,showDetachedToolbarOnly:ye,layout:i,translator:T,styles:z,isRtl:Se,showLock:R,constraints:N,classes:eP,containerRect:$,containerRef:j,model:m,selectionState:re,selections:g,keyboard:oe});return V.createElement(V.Fragment,null,ye&&Ie,V.createElement(tP,{className:"listbox-container",container:!0,tabIndex:oe.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Oe,styles:z,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:se,onMouseEnter:ce,onMouseLeave:ue,ref:e=>{j.current=e,F(e)},isGridMode:Le,"aria-label":oe.active?T.get("Listbox.ScreenReaderInstructions"):""},xe&&Ie,V.createElement(ok,{item:!0,container:!0,direction:"column",height:"100%",minHeight:_e,role:"region","aria-label":T.get("Listbox.ResultFilterLabel")},V.createElement(ok,{item:!0,ref:W},V.createElement(pI,{selections:g,selectionState:re,model:m,dense:Ee,keyboard:oe,visible:we,search:p,autoFocus:Re,beginSelectionOnFocus:!k,wildCardSearch:pe,searchEnabled:fe,direction:c,hide:ve&&Ce,styles:z})),V.createElement(ok,{item:!0,xs:!0,className:eP.listboxWrapper},ie?V.createElement(AT,{text:le}):V.createElement(MT,null,(e=>{let{height:t,width:n}=e;return V.createElement(T_,{model:m,app:s,constraints:N,layout:i,selections:g,selectionState:re,direction:c,frequencyMode:u,rangeSelect:h,checkboxes:q,height:t,width:n,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:x,keyboard:oe,showGray:S,scrollState:w,keyScroll:{state:Q,reset:()=>J({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:ee,set:te},renderedCallback:E,onCtrlF:ke,isModal:ae,styles:z})}))))))}));function rP(e){let{options:t={}}=e;const{model:n}=t,[r]=JR(n);return V.createElement(nP,{options:t,layout:r})}function oP(e){let{app:t,qId:n,options:r={}}=e;const[o,a]=U.useState(),[i]=UR(),{sessionModel:l}=r,s=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(r).filter((e=>s.includes(e)));if(c.length)throw new Error('Option "'.concat(c.join(", "),'" is not applicable for existing objects.'));return U.useEffect((()=>{Promise.resolve(l||async function(e){return i.get(e)||await t.getObject(e)}(n)).then((e=>{!function(e){i.get(e.id)||(i.set(e.id,e),e.once("closed",(()=>{i.clear(e.id)})))}(e),a(e)}))}),[]),o}const aP={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function iP(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 lP=["__DO_NOT_USE__"],sP=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1};return l(l(l({},s(e,lP)),n),t)};function cP(e){let{app:t,fieldIdentifier:n,qId:r,stateName:o,element:a,options:i,renderedCallback:s,flags:c}=e;const{isExistingObject:u,hasExternalSelectionsApi:d}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:r,options:i});u||Object.assign(i,{frequencyMode:iP(i.frequencyMode)});const[p,f]=U.useState(0);U.useEffect((()=>{if(p)throw new Error("Source or selection Api can not change after a listbox has been mounted");f(p+1)}),[u,d]);const h=u?oP({app:t,qId:r,options:i}):function(e){var t;let{app:n,fieldIdentifier:r,stateName:o,options:a={}}=e;const[i,l]=U.useState(""),[s,c]=U.useState(!0),[u,d]=U.useState(),[p,f]=U.useState(),h=null!==(t=a.title)&&void 0!==t?t:p;let{histogram:m=!1,frequencyMode:g="N"}=a;i&&i.failedToFetchFieldDef&&(m=!1,g="N"),U.useEffect((()=>{const e=m||"N"!==g;r.qLibraryId&&e?async function(){try{const e=await n.getDimension(r.qLibraryId),t=await e.getLayout();f(t.qDim.title),"N"===t.qDim.qGrouping?l(t.qDim.qFieldDefs?t.qDim.qFieldDefs[0]:""):l({multiFieldDim:!0}),c(!1)}catch(e){throw c(!1),l({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}():(c(!1),f(r))}),[]);const{dense:v,checkboxes:b,listLayout:y,properties:x={}}=a,S={dense:v};"horizontal"===y&&(S.dataLayout="grid",S.layoutOrder="column",S.maxVisibleColumns={auto:!0},S.maxVisibleRows={auto:!1,maxRows:1});const w=U.useRef();w.current||(w.current=ET());const E=He(!0,{},aP,{qInfo:{qId:w.current},qListObjectDef:{qStateName:o,qFrequencyMode:m&&"N"===g?"V":g},histogram:m,checkboxes:b,layoutOptions:S,title:h});let C;if(He(!0,E,x),r.qLibraryId?(E.qListObjectDef.qLibraryId=r.qLibraryId,C=r.qLibraryId):(E.qListObjectDef.qDef.qFieldDefs=[r],C=r),"P"!==g&&m)if(null!=i&&i.multiFieldDim)E.frequencyMax="fetch";else{const e=r.qLibraryId?i:C;E.frequencyMax={qValueExpression:R_(e)}}const[k]=VR(E,s?null:n,C,o);return U.useEffect((()=>{k&&d(k)}),[k]),u}({app:t,fieldIdentifier:n,stateName:o,options:i}),m=U.useRef(a),g=d?i.selectionsApi:vI(t,h,[m,".njs-action-toolbar-more",".njs-action-toolbar-popover"],i)[0],v=U.useMemo((()=>l(l({},i),{},{selections:g,model:h,app:t,renderedCallback:s,flags:c})),[i,g,h,t]);return g&&h?V.createElement(rP,{options:v}):null}const uP={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function dP(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:a={},flags:i}=e;const[l,s]=U.useState(!!a.show);return V.createElement(rT,{show:l,app:t,alignTo:{current:o},anchorOrigin:a.anchorOrigin,transformOrigin:a.transformOrigin,close:()=>{s(!1),a.onPopoverClose&&a.onPopoverClose()},fieldName:n,stateName:r,autoFocus:a.autoFocus,components:a.components,flags:i})}function pP(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function fP(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 hP=e=>({qDef:{qFieldDefs:[e]}}),mP=e=>({qDef:{qDef:e}});function gP(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?hP(e):l(l({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||ET(),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),pP(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 fP(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?mP(e):l(l({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||ET(),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),pP(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];fP(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 vP=e=>({qDef:{qFieldDefs:[e]}});function bP(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?vP(e):l(l({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||ET(),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 yP=e=>({qDef:{qFieldDefs:[e]}}),xP=e=>{let t;return t="string"==typeof e?He(!0,{},aP,{qListObjectDef:yP(e)}):e.qListObjectDef?He(!0,{},aP,e):He(!0,{},aP,{qListObjectDef:e}),t};function SP(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=xP(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||ET(),!r.title)if(o.qLibraryId){const e=await n.app.getDimension(o.qLibraryId),t=await e.getProperties();t.qDim.qLabelExpression?r.title={qStringExpression:{qExpr:t.qDim.qLabelExpression}}:r.title=t.qDim.title}else{var a,i;r.title=o.qDef.title||(null===(a=o.qDef.qFieldLabels)||void 0===a?void 0:a[0])||(null===(i=o.qDef.qFieldDefs)||void 0===i?void 0:i[0])}t.push({qProperty:r,qChildren:[]})},addMeasure(){}};return r}function wP(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 EP(e,t){let{sn:n,properties:r,fields:o,children:a}=e;if(!o.length)return;const i=n.qae.data.targets[0];if(!i)return;const{propertyPath:l}=i,s=l.split("/");let c=r;for(let e=0;e<s.length;e++){const t=s[e];c=t?c[t]:c}const u=function(e){return e.match("/qListObjectDef")?bP:e.match("/qChildListDef")?SP:gP}(l),d=u({dc:c,def:i,properties:r,children:a,halo:t});for(let e=0;e<o.length;++e){const t=o[e];"measure"===wP(t)?await d.addMeasure(t):await d.addDimension(t)}}var CP={getValue:(e,t,n)=>{if(null==e||null==t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},setValue:(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let a=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==a[t]&&null!==a[t]||(a[t]=Number.isNaN(+r[e+1])?{}:[]),a=a[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?a[o]=n:delete a[o]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object};var kP={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 RP=2**53-1;function LP(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function OP(e,t){const n=He(!0,{},t,e);return CP.getValue(n,"qOtherTotalSpec.qOtherCounted")||CP.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),CP.getValue(n,"qOtherTotalSpec.qOtherLimit")||CP.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function _P(e,t){return He(!0,{},t,e)}function IP(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var TP={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===CP.getValue(e,t)&&CP.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:LP,importCommonProperties:function(e,t,n){const r="masterobject"===CP.getValue(t,"properties.qInfo.qType")?"masterobject":CP.getValue(n,"qInfo.qType");CP.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:OP,createDefaultMeasure:_P,resolveValue:IP,getHypercubePath:function(e){const t=CP.getValue(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function(e){let{exportFormat:t,newHyperCubeDef:n}=e;const r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();let a=n.qInterColumnSortOrder.length;if(a!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());a!==o;)a<o?(kP.indexAdded(n.qInterColumnSortOrder,a),++a):(--a,kP.indexRemoved(n.qInterColumnSortOrder,a))},createNewProperties:function(e){let{exportFormat:t,initialProperties:n,hypercubePath:r}=e,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((e=>{"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=He(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?CP.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||LP(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=He(!0,{},n,o),null===o.components&&(o.components=[]),o},getMaxMinDimensionMeasure:function(e){let{exportFormat:t,dataDefinition:n={}}=e;const r=t.data[0],o=n.dimensions||{max:0},a=n.measures||{max:0},i=IP(a.max,r.dimensions.length,RP),l=IP(a.min,r.dimensions.length,0);return{maxDimensions:IP(o.max,i,RP),minDimensions:IP(o.min,l,0),maxMeasures:i,minMeasures:l}},shouldInitLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:a}=e;const i=t.data[0];return i.dimensions.length>n&&n>0||i.measures.length>o&&o>0||i.excludedDimensions.length>0&&i.dimensions.length+i.excludedDimensions.length>r||i.excludedMeasures.length>0&&i.measures.length+i.excludedMeasures.length>a||!o&&i.measures.length>0||!n&&i.dimensions.length>0},initLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:a,newHyperCubeDef:i}=e;const l=t.data[0];i.qLayoutExclude||(i.qLayoutExclude={}),i.qLayoutExclude.qHyperCubeDef||(i.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>a)&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,newHyperCubeDef:o,defaultDimension:a}=e;const i=t.data[0];let l;if(n>0)for(l=0;l<i.dimensions.length;++l)o.qDimensions.length<n?o.qDimensions.push(OP(i.dimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(OP(i.dimensions[l],a));else if(i.dimensions.length)for(l=0;l<i.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(OP(i.dimensions[l],a));if(i.excludedDimensions.length)for(l=0;l<i.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(OP(i.excludedDimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(OP(i.excludedDimensions[l],a))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:a}=e;const i=t.data[0];let l;if(n>0)for(l=0;l<i.measures.length;++l)o.qMeasures.length<n?o.qMeasures.push(_P(i.measures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(_P(i.measures[l],a));else if(i.measures.length)for(l=0;l<i.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(_P(i.measures[l],a));if(i.excludedMeasures.length)for(l=0;l<i.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(_P(i.excludedMeasures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(_P(i.excludedMeasures[l],a))},updateDimensionsOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.dimensions&&"function"==typeof n.dimensions.added){const e=CP.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=CP.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var PP={exportProperties:e=>function(e){let{propertyTree:t,hypercubePath:n}=e;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),o=t.qProperty,a=CP.getValue(o,n||""),i=a.qHyperCubeDef,l=r.data[0];if(i.qInterColumnSortOrder||(i.qInterColumnSortOrder=[]),l.dimensions.push(...i.qDimensions),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qDimensions&&l.excludedDimensions.push(...i.qLayoutExclude.qHyperCubeDef.qDimensions),l.measures.push(...i.qMeasures),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qMeasures&&l.excludedMeasures.push(...i.qLayoutExclude.qHyperCubeDef.qMeasures),l.interColumnSortOrder=i.qInterColumnSortOrder.concat(),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();kP.isOrderedSubset(e,l.interColumnSortOrder)&&(l.interColumnSortOrder=e)}return delete i.qLayoutExclude,Object.keys(o).forEach((e=>{r.properties[e]=o[e]})),n&&(r.properties.qHyperCubeDef=a.qHyperCubeDef,delete a.qHyperCubeDef),o.qLayoutExclude||(o.qLayoutExclude={}),o.qLayoutExclude.disabled&&(Object.keys(o.qLayoutExclude.disabled).forEach((e=>{r.properties.hasOwnProperty(e)||(r.properties[e]=o.qLayoutExclude.disabled[e])})),delete o.qLayoutExclude.disabled),o.qLayoutExclude.changed&&(TP.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!CP.isEmpty(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:a}=e;const i={qChildren:[]},l=TP.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:a}),s=CP.getValue(n,a||"").qHyperCubeDef,c=CP.getValue(l,a||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=TP.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=TP.getDefaultDimension(),defaultMeasure:m=TP.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,TP.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&TP.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),TP.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),TP.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),TP.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),TP.copyPropertyIfExist("qMaxStackedCells",s,c),TP.copyPropertyIfExist("qNoOfLeftDims",s,c),TP.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),TP.copyPropertyOrSetDefault("qMode",s,c,"S"),TP.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),TP.copyPropertyOrSetDefault("qSortbyYValue",s,c),TP.copyPropertyOrSetDefault("qIndentMode",s,c),TP.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),TP.importCommonProperties(l,t,n),TP.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),TP.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),i.qProperty=l,i}(e)};const MP=e=>CP.getValue(e,"data.targets.0.propertyPath"),NP=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return PP.exportProperties})(MP(e))},qP=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return PP.importProperties})(MP(e))},AP=async e=>{let{halo:t,model:n,cellRef:r,newType:o,properties:a,viewDataMode:i=!1}=e;const s=a?{qProperty:a}:await n.getFullPropertyTree(),c=r.current.getQae(),u=NP(c);if(!u)throw new Error("Source chart does not support conversion");const d=await(async e=>{let{halo:t,name:n,version:r}=e;const{types:o}=t;return await o.get({name:n,version:r}).supernova()})({halo:t,name:o}),p=d.qae,f=qP(p);if(!f)throw new Error("Target chart does not support conversion");return f({exportFormat:u({propertyTree:s,hypercubePath:TP.getHypercubePath(c),viewDataMode:i}),initialProperties:l({qInfo:{qType:o},visualization:o},CP.getValue(p,"properties.initial",{})),dataDefinition:CP.getValue(p,"data.targets.0.",{}),hypercubePath:TP.getHypercubePath(p),viewDataMode:i})},zP={hypercube:PP};var DP=e=>nL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(e));function jP(e){let{d:t}=e;const n=gy();let r="inherit",o=n.palette.success.main;t.missing?o=n.palette.warning.main:t.error&&(r="error",o=n.palette.error.main);const a={color:o},i=V.createElement(LS,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},V.createElement(fk,null,t.missing||t.error?V.createElement(DP,{style:a}):V.createElement(xL,{style:a})));return V.createElement(ok,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},V.createElement(ok,{item:!0},i),V.createElement(ok,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},V.createElement(LS,{noWrap:!0,component:"p"},V.createElement(LS,{component:"span",variant:"subtitle2",color:r},t.description),V.createElement(LS,{component:"span"}," "),V.createElement(LS,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function FP(e){let{data:t}=e;const n=gy();return V.createElement(ok,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>V.createElement(jP,{d:e,key:t})));return r.length>0&&V.createElement(ok,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},V.createElement(LS,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function $P(e){let{title:t="Error",message:n="",data:r=[]}=e;return V.createElement(ok,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},V.createElement(ok,{item:!0},V.createElement(DP,{style:{fontSize:"38px"}})),V.createElement(ok,{item:!0},V.createElement(LS,{variant:"h6",align:"center","data-tid":"error-title"},t)),V.createElement(ok,{item:!0},V.createElement(LS,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),V.createElement(FP,{data:r}))}const BP=["size"],WP="Progress",HP={root:"".concat(WP,"-root"),front:"".concat(WP,"-front"),back:"".concat(WP,"-back")},UP=Gy("div")((e=>{let{theme:t}=e;return{["&.".concat(HP.root)]:{position:"relative",display:"inline-block"},["& .".concat(HP.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(HP.back)]:{color:t.palette.divider}}})),VP={small:16,medium:32,large:64,xlarge:128};function GP(e){let{size:t="medium"}=e,n=s(e,BP);const r=VP[t];return V.createElement(UP,{className:HP.root},V.createElement(yC,a({variant:"determinate",value:100,className:HP.back,size:r,thickness:3},n)),V.createElement(yC,a({variant:"indeterminate",disableShrink:!0,className:HP.front,size:r,thickness:3},n)))}const KP=["cancel","translator"],ZP=["retry","translator"],XP={stripes:"".concat("LongRunningQuery","-stripes")},QP=Gy(ok)((()=>({["& .".concat(XP.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 JP(e){let{cancel:t,translator:n}=e,r=s(e,KP);return V.createElement(V.Fragment,null,V.createElement(QP,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},V.createElement(ok,{item:!0},V.createElement(GP,null)),V.createElement(ok,{item:!0},V.createElement(LS,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),V.createElement(ok,a({item:!0},r),V.createElement(Hx,{variant:"contained",onClick:t},n.get("Cancel"))))}function YP(e){let{retry:t,translator:n}=e,r=s(e,ZP);return V.createElement(V.Fragment,null,V.createElement(ok,{item:!0},V.createElement(DP,{style:{fontSize:"38px"}})),V.createElement(ok,{item:!0},V.createElement(LS,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),V.createElement(ok,{item:!0},V.createElement(Hx,a({variant:"contained",onClick:t},r),n.get("Retry"))))}function eM(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=U.useContext(Jx);return V.createElement(ok,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:XP.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&V.createElement(JP,{cancel:r.cancel,translator:o,className:XP.cancel}),n&&V.createElement(YP,{retry:r.retry,translator:o,className:XP.retry}))}function tM(){return V.createElement(ok,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},V.createElement(GP,{size:"large"}))}const nM="Header",rM={containerStyle:"".concat(nM,"-containerStyle"),containerTitleStyle:"".concat(nM,"-containerTitleStyle")},oM=Gy(ok)((e=>{let{theme:t}=e;return{["&.".concat(rM.containerStyle)]:{flexGrow:0},["&.".concat(rM.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),aM="njs-cell-title",iM="njs-cell-sub-title";function lM(e){let{layout:t,sn:n,anchorEl:r,hovering:o,focusHandler:a,titleStyles:i={}}=e;const l=t.showTitles&&!!t.title,s=t.showTitles&&!!t.subtitle,c=t.qSelectionInfo&&t.qSelectionInfo.qInSelections,[u,d]=U.useState([]),[p,f]=eL(),[h,m]=U.useState(!1);U.useEffect((()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions((e=>{d([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])}))}),[n]),U.useEffect((()=>{if(!f)return;const{width:e}=f;m(e<221)}),[f]);const g=l||s,v=[rM.containerStyle,...g?[rM.containerTitleStyle]:[]],b=(o||c)&&(h||!g),y=g&&!b&&!h,x=V.createElement(aI,{show:y,selections:{show:c,api:n.component.selections,onKeyDeactivate:a.refocusContent},actions:u,popover:{show:b,anchorEl:r},focusHandler:a,layout:t});return V.createElement(oM,{ref:p,item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},V.createElement(ok,{item:!0,zeroMinWidth:!0,xs:!0},V.createElement(ok,{container:!0,wrap:"nowrap",direction:"column"},l&&V.createElement(LS,{variant:"h6",noWrap:!0,className:aM,style:i.main},t.title),s&&V.createElement(LS,{variant:"body2",noWrap:!0,className:iM,style:i.subTitle},t.subtitle))),V.createElement(ok,{item:!0},x))}const sM={itemStyle:"".concat("Footer","-itemStyle")},cM=Gy(ok)((e=>{let{theme:t}=e;return{["& .".concat(sM.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),uM="njs-cell-footer";function dM(e){let{layout:t,titleStyles:n={}}=e;return t&&t.showTitles&&t.footnote?V.createElement(cM,{container:!0},V.createElement(ok,{item:!0,className:sM.itemStyle},V.createElement(LS,{noWrap:!0,variant:"body2",className:uM,style:n.footer},t.footnote))):null}class pM{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 fM="njs-viz";function hM(e){let{sn:t,snOptions:n,snPlugins:r,layout:o,appLayout:a,halo:i}=e;const{component:s}=t,{theme:c,language:u,constraints:d,interactions:p,keyboardNavigation:f}=U.useContext(Jx),[h]=U.useState((()=>new pM)),[m,g]=U.useState(!1),[v,b]=U.useState(0),[y,x,S]=eL(),[w,E]=U.useState(null),C=U.useCallback((e=>{e&&E(e)}),[]);return U.useEffect((()=>{if(w)return s.created({options:n}),s.mounted(w),g(!0),()=>{h.stop(),s.willUnmount()}}),[w,s]),U.useEffect((()=>{m&&w&&x&&(!s.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||h.schedule((()=>{const e=[];return d.passive||e.push("passive"),d.active||e.push("interact"),d.select||e.push("select"),d.edit||e.push("edit"),i.app&&i.app.session&&e.push("fetch"),Promise.resolve(s.render({layout:o,options:n,plugins:r,embed:i.public.nebbie,context:l({constraints:d,interactions:p,theme:i.public.theme,appLayout:a,keyboardNavigation:f},s.isHooked?{}:{logicalSize:t.logicalSize({layout:o}),localeInfo:(a||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===v&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),b(v+1))}))})))}),[x,n,r,w,S,o,a,c,u,d,p,m,f]),V.createElement("div",{ref:y,"data-render-count":v,style:{position:"relative",height:"100%"},className:fM},V.createElement("div",{ref:C,style:{position:"absolute",width:"100%",height:"100%"}}))}const mM=(e,t,n,r)=>{const o=U.useMemo((()=>{if(e&&t){const r=e.components?e.components.find((e=>"general"===e.key)):null,o={main:VI(r,"main",t,e.visualization),footer:VI(r,"footer",t,e.visualization),subTitle:VI(r,"subTitle",t,e.visualization)},a=HI(r,t,e.visualization),i=WI(r,n),l=function(e,t,n){const r=jI(null==e?void 0:e.borderColor,"","borderColor",t,n),o=(null==e?void 0:e.borderWidth)||zI("","borderWidth",t,n);return o&&r?"".concat(o," solid ").concat(r):void 0}(r,t,e.visualization),s=function(e,t,n){return(null==e?void 0:e.borderRadius)||zI("","borderRadius",t,n)}(r,t,e.visualization);return{titleStyles:o,bgColor:a,bgImage:i,border:l,borderRadius:s,boxShadow:UI(r,t,e.visualization)}}return{}}),[e,t,n,r]);return o},gM="njs-cell",vM=(e,t)=>{switch(t.type){case"LOADING":return l(l({},e),{},{loading:!0});case"LOADED":return l(l({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return l(l({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return l(l({},e),{},{longRunningQuery:!0});case"ERROR":return l(l({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function bM(e){let{delay:t=750}=e;const[n,r]=U.useState(!1);return U.useEffect((()=>{const e=setTimeout((()=>r(!0)),t);return()=>clearTimeout(e)}),[]),n?V.createElement(tM,null):null}const yM=e=>!e.qError||7005===e.qError.qErrorCode,xM=(e,t,n,r,o)=>[...Array(e).keys()].map((e=>{const a=!(!t||!t[e]),i=a&&t[e].qError&&7005===t[e].qError.qErrorCode,l=a&&!i&&t[e].qError,s=i&&t[e].qCalcCondMsg,c="".concat(l?r:i?s||o:a&&t[e].qFallbackTitle||""),u=n(e);return{description:u?"".concat(u).concat(c.length?":":""):null,label:c,missing:t&&!a&&!l&&e>=t.length||i,error:l}})),SM=e=>e&&(Array.isArray(e)?e:[e])||[],wM=(e,t,n,r)=>{const o=r.dimensions.min(),a=r.measures.min(),i=r.resolveLayout(t);return{reqDimErrors:xM(o,SM(i.qDimensionInfo||i.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:xM(a,SM(i.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},EM=async(e,t,n,r)=>{let{targets:o}=n;const{hasUnfulfilledErrors:a,aggMinD:i,aggMinM:l,hasLayoutErrors:s,layoutErrors:c}=((e,t,n)=>{let r=!1,o=0,a=0,i=!1,l=!1;const s=[];for(let c=0;c<t.length;++c){const u=t[c],d=u.dimensions.min(),p=u.measures.min(),f=u.resolveLayout(n),h=SM(f.qDimensionInfo||f.qItems).filter(yM),m=SM(f.qMeasureInfo).filter(yM);if(o+=d,a+=p,(h.length<d||m.length<p)&&(r=!0),f.qError){i=!0,l=7005===f.qError.qErrorCode;const t=l&&f.qCalcCondMsg?f.qCalcCondMsg:l?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");s.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:a,hasLayoutErrors:i,layoutErrors:s}})(e,o,t),u=[],d=[];let p=null;for(let n=0;n<o.length;++n){const i=o[n];if(!s&&a){const n=p||await r.getProperties();p=n;const o=wM(e,t,n,i);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const f=u.filter((e=>!(e.missing||e.error))).length,h=e.get("Visualization.Incomplete.Dimensions",[f,i]),m=d.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,l]),v=[{title:h,descriptions:[...u]},{title:g,descriptions:[...d]}],b=s?c:v;return[s||a,{title:s?c[0].title:e.get("Visualization.Incomplete"),data:b}]},CM=U.forwardRef(((e,t)=>{let{halo:n,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:i,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}=U.useContext(Jx),y=gy(),[x,S,w]=eL(),[E,C]=U.useReducer(vM,{loading:!1,loaded:!1,longRunningQuery:!1,error:(k=i)?{title:k.message}:null,sn:null,visualization:null});var k;const[R,L]=U.useState(r),[O,{validating:_,canCancel:I,canRetry:T},P]=JR(R),[M]=YR(d),[N,q,A]=eL(),[z,D]=U.useState(o),[j,F]=U.useState(a),$="njs-cell-".concat(c),[B]=vI(d,R,["#".concat($),".njs-action-toolbar-popover"]),[W,H]=U.useState(!1),G=U.useRef({enter:null,leave:null}),{titleStyles:K,bgColor:Z,bgImage:X,border:Q,borderRadius:J,boxShadow:Y}=mM(O,n.public.theme,n.app,h),ee=U.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});U.useEffect((()=>{hI(ee.current)}),[]),ee.current.blurCallback=e=>{n.root.toggleFocusOfCells(),e&&A&&A.focus()},ee.current.refocusContent=()=>{E.sn.component&&"function"==typeof E.sn.component.focus&&E.sn.component.focus()};U.useEffect((()=>{if(i)return void s();if(!M||!O)return;if(E.visualization===O.visualization&&E.sn)return void(async e=>{const[t,n]=await EM(m,O,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:O,model:R})})(E.sn);const e=p.getSupportedVersion(O.visualization,O.version);return(async(e,t)=>{C({type:"LOADING"}),await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:a,app:i,selections:l,nebbie:s,focusHandler:c,emitter:u,onMount:d}=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}),p=e.create({model:a,app:i,selections:l,nebbie:s,focusHandler:c,emitter:u});p&&(t({type:"LOADED",sn:p,visualization:r}),d())}catch(e){t(o?{type:"ERROR",error:{title:e.message}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(r,"' that supports current object version. Did you forget to register ").concat(r,"?")}}),d()}})({dispatch:C,types:p,visualization:e,version:t,model:R,app:d,selections:B,nebbie:f,focusHandler:ee.current,emitter:u,onMount:s})})(O.visualization,e),()=>{}}),[p,E.sn,R,B,O,M,g]),U.useEffect((()=>{if(!_)return;const e=setTimeout((()=>C({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[_]),U.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:D,setSnPlugins:F,setModel:L,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(O));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:M,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,q,S,O,y.name,M]);let te=null;return E.loading&&!E.longRunningQuery?te=V.createElement(bM,null):E.error?te=V.createElement($P,E.error):E.loaded&&(te=V.createElement(hM,{key:O.visualization,sn:E.sn,halo:n,snOptions:z,snPlugins:j,layout:O,appLayout:M})),V.createElement(gS,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:Z||"unset",backgroundImage:X&&X.url?"url(".concat(X.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:X&&X.size,backgroundPosition:X&&X.pos,border:Q,borderRadius:J,boxShadow:Y,boxSizing:"border-box"},elevation:0,square:!0,className:gM,ref:x,id:$,onMouseEnter:()=>{G.current.leave&&clearTimeout(G.current.leave),G.enter||(G.current.enter=setTimeout((()=>{H(!0),G.current.enter=null}),250))},onMouseLeave:()=>{G.current.enter&&clearTimeout(G.current.enter),G.current.leave||(G.current.leave=setTimeout((()=>{H(!1),G.current.leave=null}),750))}},V.createElement(ok,{container:!0,direction:"column",gap:0,style:l(l({position:"relative",width:"100%",height:"100%"},b?{}:{padding:y.spacing(1)}),E.longRunningQuery?{opacity:"0.3"}:{})},w&&O&&E.sn&&V.createElement(lM,{layout:O,sn:E.sn,anchorEl:w,hovering:W,focusHandler:ee.current,titleStyles:K}," "),V.createElement(ok,{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:N},te),w&&O&&E.sn&&V.createElement(dM,{layout:O,titleStyles:K})),E.longRunningQuery&&V.createElement(eM,{canCancel:I,canRetry:T,api:P}))}));function kM(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function RM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const r=[];return Object.keys(t).forEach((o=>{const a=t[o];"object"!=typeof n[o]||"object"!=typeof a||Array.isArray(a)?function(e,t){return kM(e)&&kM(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}(a,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...RM("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function LM(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 OM=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))},_M=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t),IM=He.bind(null,!0),TM={},{isArray:PM}=Array;function MM(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function NM(e){return void 0===e}function qM(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function AM(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const a=isNaN(r)?{}:[];e[r||t]=NM(e[r||t])?a:e[t],e=e[r||t]})),e}function zM(e,t){let n=!0;if(MM(e)&&MM(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{zM(e[r],t[r])||(n=!1)})),n);if(PM(e)&&PM(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!zM(e[n],t[n]))return!1;return!0}return e===t}TM.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const a=function(e){return e?IM({},{val:e}).val:e}(t[o]),i=e[o],l="".concat(n,"/").concat(o);zM(a,i)||qM(t,o)||(NM(i)?r.push({op:"add",path:l,value:a}):MM(a)&&MM(i)?r=r.concat(TM.generate(i,a,l)):PM(a)&&PM(i)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let a=-1;function i(e,t,n){if(e[n]&&NM(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(zM(t,o))return r;if(!NM(t[0])&&NM(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)a=i(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===a?(r.push({op:"remove",path:"".concat(n,"/").concat(e)}),o.splice(e,1)):r=r.concat(TM.generate(o[e],t[a],"".concat(n,"/").concat(e)));for(let e=0,l=t.length;e<l;e+=1)a=i(o,t[e].qInfo&&t[e].qInfo.qId),-1===a?(r.push({op:"add",path:"".concat(n,"/").concat(e),value:t[e]}),o.splice(e,0,t[e])):a!==e&&(r.push({op:"move",path:"".concat(n,"/").concat(e),from:"".concat(n,"/").concat(a)}),o.splice(e,0,o.splice(a,1)[0]));return r}(i,a,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:a}))})),Object.keys(e).forEach((o=>{NM(t[o])&&!qM(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},TM.apply=function(e,t){t.forEach((t=>{let n=AM(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const a=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(PM(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(PM(o)&&PM(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(MM(o)&&MM(t.value))i=o,Object.keys(i).forEach((e=>{Object.getOwnPropertyDescriptor(i,e).configurable&&!qM(i,e)&&delete i[e]})),IM(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=AM(e,t.from);PM(n)?n.splice(+r,0,o.splice(+a,1)[0]):(n[r]=o[a],delete o[a])}else"remove"===t.op&&(PM(n)?n.splice(+r,1):delete n[r]);var i}))},TM.clone=function(e){return IM({},e)},TM.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},TM.updateObject=function(e,t){Object.keys(e).length?TM.apply(e,TM.generate(e,t)):IM(e,t)};const DM=e=>t=>{const n=(r=l(l({},t),{},{action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0}),Object.keys(ee.prototype).forEach((e=>{r[e]=ee.prototype[e]})),ee.init(r),r);var r;return n};let jM,FM;function $M(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 BM(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null},contraintsWarning:!0}}function WM(e){UM(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 HM(e){if(e.__hooks.obsolete)return Promise.resolve();FM=-1,jM=e,jM.__hooks.initiated&&jM.__hooks.list.length;try{jM.fn.call(null)}catch(e){console.error(e)}jM.__hooks.initiated=!0;const t=jM.__hooks;return ZM(jM),FM=void 0,jM=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){UM(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){UM(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 UM(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 VM(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 GM(e,t,n,r){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n,r))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function KM(e){return e.__hooks.imperativeHandle}function ZM(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function XM(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,ZM(e))}function QM(e){if(void 0===jM)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=jM.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function JM(e){QM(++FM);return jM.context[e]}function YM(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function eN(e){return{__hooked:!0,fn:e,initiate:BM,run:HM,teardown:WM,runSnaps:VM,runMenu:GM,focus:iN,blur:lN,observeActions:XM,getImperativeHandle:KM,updateRectOnNextRun:YM}}function tN(e){const t=QM(++FM);if(!t.value){t.component=jM;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,HM(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function nN(e,t){const n=QM(++FM);$M(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===jM.__hooks.pendingEffects.indexOf(n)&&jM.__hooks.pendingEffects.push(n))}function rN(e,t){const n=QM(++FM);$M(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],jM.__hooks.pendingLayoutEffects.push(n))}function oN(e,t){const n=QM(++FM);return $M(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function aN(){return JM("element")}function iN(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 lN(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 sN={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},cN=Object.keys(sN),uN=e=>(Object.keys(ee.prototype).forEach((t=>{e[t]=ee.prototype[t]})),ee.init(e),e);function dN(e,t){const n=l({},sN);uN(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==cN.indexOf(t)?n[t]=e.component[t].bind(r):r[t]=e.component[t]}));const o=function(e){let{sn:t,component:n}=e;const r={},o=[],a=DM(n);return((t.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=a(e);r[e.key]=t,o.push(t)})),(t.definition.actions||[]).forEach((e=>{const t=a(e);r[e.key]=t})),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:r}),a=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(r,{model:t.model,app:t.app,global:a,selections:t.selections,actions:o.actions}),Object.assign(n,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[n,o]}function pN(e,t,n){"function"==typeof e.component&&(e.component=eN(e.component));const[r,o]=e.component&&e.component.__hooked?function(e,t,n){const r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const a={},i=["appLayout","constraints","interactions"],s={},c={};t.model&&t.model.session||(s.select=!0,s.edit=!0,c.select=!1,c.edit=!1);const u={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:s,interactions:c,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(u,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let r=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(r=!0)})),r&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,n)=>{this.context.plugins[n]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],n=!0)}i.forEach((e=>{const r=t.context;if(r&&Object.prototype.hasOwnProperty.call(r,e)){let t=JSON.stringify(r[e]);"constraints"===e&&(t=JSON.stringify(l(l({},r[e]),s))),"interactions"===e&&(t=JSON.stringify(l(l({},r[e]),c))),t!==a[e]&&(n=!0,a[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==a.themeName&&(n=!0,a.themeName=this.context.theme.name()),this.context.translator.language()!==a.language&&(n=!0,a.language=u.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n,r){return e.component.runMenu(this,t,n,r)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return i.forEach((e=>{a[e]=JSON.stringify(u.context[e])})),a.themeName=u.context.theme?u.context.theme.name():void 0,a.language=u.context.translator?u.context.translator.language():void 0,Object.assign(u,{selections:t.selections}),[u,null]}(e,t,n):dN(e,t),a=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];try{e.qae.properties.onChange.call({model:t.model},...r)}catch(e){}return t.model.__snInterceptor.setProperties.call(this,...r)},t.model.applyPatches=function(n,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const a=TM.clone(o),i=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));TM.apply(o,i);try{e.qae.properties.onChange.call({model:t.model},o)}catch(e){}const l=TM.generate(a,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,l,r)}))},t.model.__snInterceptor.teardown=()=>{t.model.__snInterceptor&&(t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor)},a.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){a.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const fN=()=>{};function hN(e,t){return void 0===e?()=>t:()=>e}function mN(e){const t=e||{};return{min:"function"==typeof t.min?t.min:hN(t.min,0),max:"function"==typeof t.max?t.max:hN(t.max,1e3),added:t.added||t.add||fN,description:t.description||fN,moved:t.moved||t.move||fN,removed:t.removed||t.remove||fN,replaced:t.replaced||t.replace||fN,isDefined:()=>!!e}}const gN=(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 vN(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=>gN(e,n,{}),dimensions:mN(e.dimensions),measures:mN(e.measures)}}function bN(){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(vN)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function yN(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:bN(n.qae),component:n.component||{},create:e=>pN(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}const xN=(e,t,n)=>{if(!e)return Promise.resolve();let r=TM.generate(t,n);return He(!0,t,n),r&&r.length?(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,r,!0):e.applyPatches(r,!0)):Promise.resolve()},SN=()=>{};function wN(){let e,{model:t,halo:n,initialError:r,onDestroy:o=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=SN,i=null,s=null,c=null,u=null;const d=new Promise((e=>{c=e})),p=new Promise((e=>{u=e})),f=e=>()=>{e&&e(),u()};let h={},m=[];const g=new ee,v={id:t.id,model:t,async destroy(){await o(),a(),a=SN},async convertTo(e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){const o=await t.getLayout();if(OM(o)&&!r){const r=await AP({halo:n,model:t,cellRef:i,newType:e});return await _M(t,r.qProperty),r}const a=await t.getEffectiveProperties(),l=await AP({halo:n,model:t,cellRef:i,newType:e,properties:a}),s=l.qProperty;return await xN(t,a,s),l}return await AP({halo:n,model:t,cellRef:i,newType:e})},async toggleDataView(r){let o;if(e||!1===r)e&&!0!==r&&(o=t,await n.app.destroySessionObject(e),e=void 0);else{let r=n.config.context.dataViewType;const a=await t.getEffectiveProperties();if(!n.types.getSupportedVersion(r)){if(!n.types.getSupportedVersion("table"))throw new Error("No data view type registered");r="table"}const l=await AP({halo:n,model:t,cellRef:i,newType:r,properties:a,viewDataMode:!0});o=await n.app.createSessionObject(l.qProperty),e=o.id}o&&i.current.setModel(o)},addListener(e,t){g.addListener(e,t)},removeListener(e,t){g.removeListener(e,t)},getImperativeHandle:async()=>(await p,i.current.getImperativeHandle()),takeSnapshot:async()=>(await p,i.current.takeSnapshot()),__DO_NOT_USE__:{mount(e){if(s)throw new Error("Already mounted");if(!(e instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return s=e,[a,i]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,emitter:l,initialError:s}=e;const{root:c}=t,u=V.createRef(),d=ET(),p=xp.createPortal(V.createElement(CM,{ref:u,halo:t,model:r,currentId:d,initialSnOptions:o,initialSnPlugins:a,initialError:s,onMount:i,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:n,element:e,model:t,initialSnOptions:h,initialSnPlugins:m,initialError:r,onMount:c,emitter:g}),d},async applyProperties(e){const n=RM("/",e,await t.getEffectiveProperties());if(n.length)return t.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;s?(async()=>{await d,i.current.setSnOptions(l(l(l({},h),e),{onInitialRender:f(t)}))})():h=l(l(l({},h),e),{onInitialRender:f(t)})})(e)},plugins(e){(async e=>{LM(e),s?(async()=>{await d,i.current.setSnPlugins(e)})():m=e})(e)},exportImage:()=>i.current.exportImage(),takeSnapshot:()=>i.current.takeSnapshot(),getModel:()=>t,convert:{async toType(e){const r=await t.getEffectiveProperties(),o=await AP({halo:n,model:t,cellRef:i,newType:e,properties:r}),a=o.qProperty;return await xN(t,r,a),o},async revert(){await t.clearSoftPatches()}}}};return v}async function EN(e,t,n,r){const o=wN({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 CN(e,t,n,r){let{type:o,version:a,fields:i,properties:l,extendProperties:s}=e,c={};const u=[],{modelStore:d}=r;try{const e=t.types.get({name:o,version:a});c=await e.initialProperties(l,s);const n=await e.supernova();i&&await EP({sn:n,properties:c,fields:i,children:u},t),l&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},c)}catch(e){c=n?null:{qInfo:{qType:o},visualization:o}}if(!n){const e=await t.app.createObject(c);return u.length>0&&await e.setFullPropertyTree({qProperty:c,qChildren:u}),d.set(e.id,e),e}return c}const kN={className:"njs-sheet"};function RN(e,t,n){return e.bounds?e.bounds:{y:e.row/n*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/n*100}}function LN(e){let{model:t,halo:n,initialSnOptions:r,initialSnPlugins:o,initialError:a,onMount:i}=e;const{root:l}=n,[s]=JR(t),{theme:c,modelStore:u}=U.useContext(Jx),[d,p]=U.useState([]),[f,h]=U.useState(void 0),[m,g]=U.useState(void 0),[v,b]=U.useState("");U.useEffect((()=>{if(s){const e=JSON.stringify(s.cells);if(e===v)return;b(e);const t=async()=>{d.forEach((e=>{l.removeCell(e.currentId)}));const e=s.cells,{columns:t,rows:r}=s,o=await Promise.all(e.map((async e=>{let o;const a=new Promise((e=>{o=e})),i=d.find((t=>t.id===e.name));if(i)return i.bounds=RN(e,t,r),delete i.mountedPromise,i;const l=await async function(e,t,n){let{id:r,options:o,plugins:a,element:i}=e;const{modelStore:l,rpcRequestModelStore:s}=n,c="".concat(r);let u=s.get(c);u||(u=t.app.getObject(r),s.set(c,u));const d=await u;return l.set(c,d),EN(d,{options:o,plugins:a,element:i},t)}({id:e.name},n,u);return{model:l.model,id:e.name,bounds:RN(e,t,r),cellRef:V.createRef(),currentId:ET(),mounted:o,mountedPromise:a}})));o.forEach((e=>l.addCell(e.currentId,e.cellRef))),p(o)};t()}}),[s]);const y=U.useMemo((()=>d?d.map((e=>function(e,t,n,r,o,a){const{x:i,y:l,width:s,height:c}=e.bounds;return V.createElement("div",{style:{left:"".concat(i,"%"),top:"".concat(l,"%"),width:"".concat(s,"%"),height:"".concat(c,"%"),position:"absolute"}},V.createElement(CM,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:a}))}(e,n,r,o,a,e.mounted))):[]),[d]);U.useEffect((()=>{const e=null!=s&&s.components?s.components.find((e=>"general"===e.key)):null;h(HI(e,n.public.theme)),g(WI(e,n.app))}),[s,n.public.theme,n.app,c]);const x=!s||Number.isNaN(s.height)?"100%":"".concat(Number(s.height),"%"),S=d.map((e=>e.mountedPromise)),w=S.filter((e=>!!e));return w.length&&Promise.all(S).then((()=>{i()})),V.createElement("div",{className:kN.className,style:{width:"100%",height:x,position:"relative",backgroundColor:f,backgroundImage:m&&m.url?"url(".concat(m.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:m&&m.size,backgroundPosition:m&&m.pos}},y)}const ON=()=>{};function _N(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=ON,a=null,i=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=ON},__DO_NOT_USE__:{mount(r){if(i)throw new Error("Already mounted");if(!(r instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return i=r,[o,a]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,initialError:l}=e;const{root:s}=t,c=V.createRef(),u=xp.createPortal(V.createElement(LN,{ref:c,halo:t,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:l,onMount:i}),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=RM("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{i?(async()=>{await c,a.current.setSnOptions(l(l({},u),e))})():u=l(l({},u),e)})(e)},plugins(e){(async e=>{LM(e),i?(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 IN(e,t,n){let{id:r,options:o,plugins:a,element:i}=e;const{modelStore:l,rpcRequestModelStore:s}=n,c="".concat(r);let u=s.get(c);u||(u=t.app.getObject(r),s.set(c,u));const d=await u;return l.set(c,d),"sheet"===d.genericType?async function(e,t,n,r){const o=_N({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}(d,{options:o,plugins:a,element:i},t):EN(d,{options:o,plugins:a,element:i},t)}function TN(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}var PN=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}};const MN=Object.freeze({loose:!0}),NN=Object.freeze({});var qN=e=>e?"object"!=typeof e?MN:e:NN,AN={exports:{}};var zN={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const DN="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error("SEMVER",...t)}:()=>{};var jN=DN;!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=zN,a=jN,i=(t=e.exports={}).re=[],l=t.safeRe=[],s=t.src=[],c=t.t={};let u=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[d,r]],f=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split("".concat(t,"*")).join("".concat(t,"{0,").concat(n,"}")).split("".concat(t,"+")).join("".concat(t,"{1,").concat(n,"}"));return e})(t),o=u++;a(e,o,t),c[e]=o,s[o]=t,i[o]=new RegExp(t,n?"g":void 0),l[o]=new RegExp(r,n?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(d,"*")),f("MAINVERSION","(".concat(s[c.NUMERICIDENTIFIER],")\\.")+"(".concat(s[c.NUMERICIDENTIFIER],")\\.")+"(".concat(s[c.NUMERICIDENTIFIER],")")),f("MAINVERSIONLOOSE","(".concat(s[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[c.NUMERICIDENTIFIERLOOSE],")")),f("PRERELEASEIDENTIFIER","(?:".concat(s[c.NUMERICIDENTIFIER],"|").concat(s[c.NONNUMERICIDENTIFIER],")")),f("PRERELEASEIDENTIFIERLOOSE","(?:".concat(s[c.NUMERICIDENTIFIERLOOSE],"|").concat(s[c.NONNUMERICIDENTIFIER],")")),f("PRERELEASE","(?:-(".concat(s[c.PRERELEASEIDENTIFIER],"(?:\\.").concat(s[c.PRERELEASEIDENTIFIER],")*))")),f("PRERELEASELOOSE","(?:-?(".concat(s[c.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(s[c.PRERELEASEIDENTIFIERLOOSE],")*))")),f("BUILDIDENTIFIER","".concat(d,"+")),f("BUILD","(?:\\+(".concat(s[c.BUILDIDENTIFIER],"(?:\\.").concat(s[c.BUILDIDENTIFIER],")*))")),f("FULLPLAIN","v?".concat(s[c.MAINVERSION]).concat(s[c.PRERELEASE],"?").concat(s[c.BUILD],"?")),f("FULL","^".concat(s[c.FULLPLAIN],"$")),f("LOOSEPLAIN","[v=\\s]*".concat(s[c.MAINVERSIONLOOSE]).concat(s[c.PRERELEASELOOSE],"?").concat(s[c.BUILD],"?")),f("LOOSE","^".concat(s[c.LOOSEPLAIN],"$")),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE","".concat(s[c.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),f("XRANGEIDENTIFIER","".concat(s[c.NUMERICIDENTIFIER],"|x|X|\\*")),f("XRANGEPLAIN","[v=\\s]*(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:".concat(s[c.PRERELEASE],")?").concat(s[c.BUILD],"?")+")?)?"),f("XRANGEPLAINLOOSE","[v=\\s]*(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(s[c.PRERELEASELOOSE],")?").concat(s[c.BUILD],"?")+")?)?"),f("XRANGE","^".concat(s[c.GTLT],"\\s*").concat(s[c.XRANGEPLAIN],"$")),f("XRANGELOOSE","^".concat(s[c.GTLT],"\\s*").concat(s[c.XRANGEPLAINLOOSE],"$")),f("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")),f("COERCE","".concat(s[c.COERCEPLAIN],"(?:$|[^\\d])")),f("COERCEFULL",s[c.COERCEPLAIN]+"(?:".concat(s[c.PRERELEASE],")?")+"(?:".concat(s[c.BUILD],")?")+"(?:$|[^\\d])"),f("COERCERTL",s[c.COERCE],!0),f("COERCERTLFULL",s[c.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM","(\\s*)".concat(s[c.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",f("TILDE","^".concat(s[c.LONETILDE]).concat(s[c.XRANGEPLAIN],"$")),f("TILDELOOSE","^".concat(s[c.LONETILDE]).concat(s[c.XRANGEPLAINLOOSE],"$")),f("LONECARET","(?:\\^)"),f("CARETTRIM","(\\s*)".concat(s[c.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",f("CARET","^".concat(s[c.LONECARET]).concat(s[c.XRANGEPLAIN],"$")),f("CARETLOOSE","^".concat(s[c.LONECARET]).concat(s[c.XRANGEPLAINLOOSE],"$")),f("COMPARATORLOOSE","^".concat(s[c.GTLT],"\\s*(").concat(s[c.LOOSEPLAIN],")$|^$")),f("COMPARATOR","^".concat(s[c.GTLT],"\\s*(").concat(s[c.FULLPLAIN],")$|^$")),f("COMPARATORTRIM","(\\s*)".concat(s[c.GTLT],"\\s*(").concat(s[c.LOOSEPLAIN],"|").concat(s[c.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE","^\\s*(".concat(s[c.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(s[c.XRANGEPLAIN],")")+"\\s*$"),f("HYPHENRANGELOOSE","^\\s*(".concat(s[c.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(s[c.XRANGEPLAINLOOSE],")")+"\\s*$"),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(AN,AN.exports);var FN=AN.exports;const $N=/^[0-9]+$/,BN=(e,t)=>{const n=$N.test(e),r=$N.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var WN={compareIdentifiers:BN,rcompareIdentifiers:(e,t)=>BN(t,e)};const HN=jN,{MAX_LENGTH:UN,MAX_SAFE_INTEGER:VN}=zN,{safeRe:GN,t:KN}=FN,ZN=qN,{compareIdentifiers:XN}=WN;var QN=class e{constructor(t,n){if(n=ZN(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof t,'".'));if(t.length>UN)throw new TypeError("version is longer than ".concat(UN," characters"));HN("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?GN[KN.LOOSE]:GN[KN.FULL]);if(!r)throw new TypeError("Invalid Version: ".concat(t));if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>VN||this.major<0)throw new TypeError("Invalid major version");if(this.minor>VN||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>VN||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<VN)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(t){if(HN("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),XN(this.major,t.major)||XN(this.minor,t.minor)||XN(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(HN("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return XN(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(HN("build compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return XN(e,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===XN(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error("invalid increment argument: ".concat(e))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}};const JN=QN;var YN=(e,t,n)=>new JN(e,n).compare(new JN(t,n));const eq=YN;var tq=(e,t,n)=>0===eq(e,t,n);const nq=YN;var rq=(e,t,n)=>0!==nq(e,t,n);const oq=YN;var aq=(e,t,n)=>oq(e,t,n)>0;const iq=YN;var lq=(e,t,n)=>iq(e,t,n)>=0;const sq=YN;var cq=(e,t,n)=>sq(e,t,n)<0;const uq=YN;var dq=(e,t,n)=>uq(e,t,n)<=0;const pq=tq,fq=rq,hq=aq,mq=lq,gq=cq,vq=dq;var bq,yq,xq,Sq,wq=(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 pq(e,n,r);case"!=":return fq(e,n,r);case">":return hq(e,n,r);case">=":return mq(e,n,r);case"<":return gq(e,n,r);case"<=":return vq(e,n,r);default:throw new TypeError("Invalid operator: ".concat(t))}};function Eq(){if(Sq)return xq;Sq=1;const e=/\s+/g;class t{constructor(n,a){if(a=r(a),n instanceof t)return n.loose===!!a.loose&&n.includePrerelease===!!a.includePrerelease?n:new t(n.raw,a);if(n instanceof o)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=a,this.loose=!!a.loose,this.includePrerelease=!!a.includePrerelease,this.raw=n.trim().replace(e," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&p)|(this.options.loose&&f))+":"+e,r=n.get(t);if(r)return r;const i=this.options.loose,m=i?l[s.HYPHENRANGELOOSE]:l[s.HYPHENRANGE];e=e.replace(m,L(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(l[s.COMPARATORTRIM],c),a("comparator trim",e),e=e.replace(l[s.TILDETRIM],u),a("tilde trim",e),e=e.replace(l[s.CARETTRIM],d),a("caret trim",e);let g=e.split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>R(e,this.options)));i&&(g=g.filter((e=>(a("loose invalid filter",e,this.options),!!e.match(l[s.COMPARATORLOOSE]))))),a("range list",g);const b=new Map,y=g.map((e=>new o(e,this.options)));for(const e of y){if(h(e))return[e];b.set(e.value,e)}b.size>1&&b.has("")&&b.delete("");const x=[...b.values()];return n.set(t,x),x}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>g(t,n)&&e.set.some((e=>g(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1}}xq=t;const n=new PN,r=qN,o=function(){if(yq)return bq;yq=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),i("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}parse(t){const n=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],a=t.match(n);if(!a)throw new TypeError("Invalid comparator: ".concat(t));this.operator=void 0!==a[1]?a[1]:"","="===this.operator&&(this.operator=""),a[2]?this.semver=new l(a[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(i("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new l(t,this.options)}catch(e){return!1}return a(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new s(e.value,r).test(this.value):""===e.operator?""===e.value||new s(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(a(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(a(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}bq=t;const n=qN,{safeRe:r,t:o}=FN,a=wq,i=jN,l=QN,s=Eq();return bq}(),a=jN,i=QN,{safeRe:l,t:s,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=FN,{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:f}=zN,h=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},v=(e,t)=>(a("comp",e,t),e=S(e,t),a("caret",e),e=y(e,t),a("tildes",e),e=E(e,t),a("xrange",e),e=k(e,t),a("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,y=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{const n=t.loose?l[s.TILDELOOSE]:l[s.TILDE];return e.replace(n,((t,n,r,o,i)=>{let l;return a("tilde",e,t,n,r,o,i),b(n)?l="":b(r)?l=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):b(o)?l=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):i?(a("replaceTilde pr",i),l=">=".concat(n,".").concat(r,".").concat(o,"-").concat(i," <").concat(n,".").concat(+r+1,".0-0")):l=">=".concat(n,".").concat(r,".").concat(o," <").concat(n,".").concat(+r+1,".0-0"),a("tilde return",l),l}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{a("caret",e,t);const n=t.loose?l[s.CARETLOOSE]:l[s.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,i,l)=>{let s;return a("caret",e,t,n,o,i,l),b(n)?s="":b(o)?s=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):b(i)?s="0"===n?">=".concat(n,".").concat(o,".0").concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".0").concat(r," <").concat(+n+1,".0.0-0"):l?(a("replaceCaret pr",l),s="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(i,"-").concat(l," <").concat(n,".").concat(o,".").concat(+i+1,"-0"):">=".concat(n,".").concat(o,".").concat(i,"-").concat(l," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(i,"-").concat(l," <").concat(+n+1,".0.0-0")):(a("no pr"),s="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(i).concat(r," <").concat(n,".").concat(o,".").concat(+i+1,"-0"):">=".concat(n,".").concat(o,".").concat(i).concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(i," <").concat(+n+1,".0.0-0")),a("caret return",s),s}))},E=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>C(e,t))).join(" ")),C=(e,t)=>{e=e.trim();const n=t.loose?l[s.XRANGELOOSE]:l[s.XRANGE];return e.replace(n,((n,r,o,i,l,s)=>{a("xRange",e,n,r,o,i,l,s);const c=b(o),u=c||b(i),d=u||b(l),p=d;return"="===r&&p&&(r=""),s=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(i=0),l=0,">"===r?(r=">=",u?(o=+o+1,i=0,l=0):(i=+i+1,l=0)):"<="===r&&(r="<",u?o=+o+1:i=+i+1),"<"===r&&(s="-0"),n="".concat(r+o,".").concat(i,".").concat(l).concat(s)):u?n=">=".concat(o,".0.0").concat(s," <").concat(+o+1,".0.0-0"):d&&(n=">=".concat(o,".").concat(i,".0").concat(s," <").concat(o,".").concat(+i+1,".0-0")),a("xRange return",n),n}))},k=(e,t)=>(a("replaceStars",e,t),e.trim().replace(l[s.STAR],"")),R=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),L=e=>(t,n,r,o,a,i,l,s,c,u,d,p)=>(n=b(r)?"":b(o)?">=".concat(r,".0.0").concat(e?"-0":""):b(a)?">=".concat(r,".").concat(o,".0").concat(e?"-0":""):i?">=".concat(n):">=".concat(n).concat(e?"-0":""),s=b(c)?"":b(u)?"<".concat(+c+1,".0.0-0"):b(d)?"<".concat(c,".").concat(+u+1,".0-0"):p?"<=".concat(c,".").concat(u,".").concat(d,"-").concat(p):e?"<".concat(c,".").concat(u,".").concat(+d+1,"-0"):"<=".concat(s),"".concat(n," ").concat(s).trim()),O=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(a(e[n].semver),e[n].semver!==o.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return xq}const Cq=Eq();var kq=(e,t,n)=>{try{t=new Cq(t,n)}catch(e){return!1}return t.test(e)},Rq=n(kq);const Lq={};function Oq(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:a}=o,i={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&a&&a.deps&&a.deps.properties)||Rq(e,a.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const a="".concat(e,"__").concat(t);if(!Lq[a]){const n="".concat(e).concat(t&&" v".concat(t)||"");if(r&&"function"!=typeof r)throw new Error("load of visualization '".concat(n,"' is not a fuction, wrap load promise in function"));const i=(r||o.load)({name:e,version:t}),l=Promise.resolve(i);Lq[a]=l.then((e=>{if(!e)throw new Error("load() of visualization '".concat(n,"' resolved to an invalid object"));return e})).catch((e=>{throw new Error("Failed to load visualization: '".concat(n,"'"))}))}return Lq[a]}(i.name,i.version,t,o.load).then((e=>(n=n||yN(e,t.public.galaxy),r=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.supernova().then((()=>{const n=l({qInfo:{qType:i.name},visualization:i.name,version:i.version,showTitles:!0},JSON.parse(r));return t?(He(!0,n,e),n):l(l({},n),e)}))}};return i}function _q(e,t){const n={};let r=null;return{get:e=>n[e],register:(o,a)=>{if(n[o])throw new Error("Supernova '".concat(e,"@").concat(o,"' already registered."));n[o]=Oq({name:e,version:o},t,a),r=null},getMatchingVersionFromProperties:e=>{r||(r=function(e){const t=e.filter((e=>"undefined"===e));return[...t,...e.filter((e=>"undefined"!==e)).map((e=>e.split(".").map((e=>parseInt(e,10))))).sort(((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2])).map((e=>e.join(".")))]}(Object.keys(n)));for(let t=r.length-1;t>=0;t--){if(n[r[t]].supportsPropertiesVersion(e))return r[t]}return null},versions:n}}function Iq(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=_q(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(Lq).forEach((t=>{t.split("__")[0]===e&&(Lq[t]=void 0)}))}(e)}}}const Tq={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()))},Pq={context:{},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0,IM_1869_HIDE_DIM_MEA_LINE:!0,IM_1579_HIDE_DIM_MEA:!0,CLIENT_IM_3365:!0},snapshot:Tq};Pq.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table"};const Mq=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(l({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},Nq=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 qq=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=X(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let a=l(l({},t.context),{},{translator:n.translator});const[i,s]=rS({app:e,context:a}),c=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=st();return{setTheme:async o=>{let a=e.filter((e=>e.id===o))[0],i="dark"===o?"dark":"light";if(!a&&t&&(a={load:t}),a&&a.load)try{const e=await Promise.race([a.load(o),ct(ut,{__timedOut:!0})]);e.__timedOut||(i="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(i))}catch(e){}else r.internalAPI.setTheme({type:i},o),n.setMuiThemeName(i)},externalAPI:r.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:i});a.themeApi=c.externalAPI;const u={galaxy:{translator:n.translator,flags:TN(t.flags),deviceType:dt(t.context.deviceType),anything:t.anything},theme:c.externalAPI,translator:n.translator,nebbie:null},d={app:e,root:i,config:t,public:u,context:a,types:null},p=Iq({halo:d});t.types.forEach((e=>p.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let f=c.setTheme(t.context.theme),h=null,m=null;const g={render:async e=>(await f,e.id?IN(e,d,s):async function(e,t,n){let{type:r,version:o,fields:a,properties:i,options:l,plugins:s,element:c,extendProperties:u}=e,d={};const p=[],{modelStore:f,subscribe:h}=n;let m;try{const e=t.types.get({name:r,version:o});d=await e.initialProperties(i,u);const n=await e.supernova();a&&await EP({sn:n,properties:d,fields:a,children:p},t),i&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},d)}catch(e){m=e,d={qInfo:{qType:r},visualization:r}}const g=await t.app.createSessionObject(d);p.length>0&&await g.setFullPropertyTree({qProperty:d,qChildren:p}),f.set(g.id,g);const v=h(g);return EN(g,{options:l,plugins:s,element:c},t,m,(async()=>{await t.app.destroySessionObject(g.id),v()}))}(e,d,s)),create:async e=>CN(e,d,!1,s),generateProperties:async e=>CN(e,d,!0,s),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==a[n]&&(t||(t={}),t[n]=e[n])})),t&&(a=l(l(l({},a),t),{},{translator:n.translator}),t.theme&&(f=c.setTheme(t.theme),await f),t.language&&d.public.translator.language(t.language),i.context(a))},selections:async()=>(h||(h={mount(t){m||(m=function(e){let{element:t,app:n}=e;return xp.createPortal(V.createElement(CT,{app:n}),t,ET())}({element:t,app:e}),i.add(m))},unmount(){m&&(i.remove(m),m=null)}}),h),field:async t=>{let n;const r="string"==typeof t?t:t.qLibraryId;if(t.qId)n=t.qId;else if(!r)throw new Error("Field identifier or object id must be provided");const o={fieldName:r,async mount(a){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!a)throw new Error("Element for ".concat(r||n," not provided"));if(this._instance)throw new Error("Field or object ".concat(r||n," already mounted"));const c=()=>o.emit("selectionActivated"),u=()=>o.emit("selectionDeactivated");return new Promise((r=>{this._instance=function(e){let{element:t,app:n,fieldIdentifier:r,qId:o,stateName:a="$",options:i={},renderedCallback:l,flags:s}=e;return xp.createPortal(V.createElement(cP,{app:n,element:t,fieldIdentifier:r,qId:o,stateName:a,options:i,renderedCallback:l,flags:s}),t,ET())}({element:a,app:e,fieldIdentifier:t,qId:n,options:sP(l({onSelectionActivated:c,onSelectionDeactivated:u},s)),stateName:s.stateName||"$",renderedCallback:r,flags:d.public.galaxy.flags}),i.add(this._instance)}))},unmount(){this._instance&&(i.remove(this._instance),this._instance=null)}};return hI(o),o},getRegisteredTypes:p.getList,__DO_NOT_USE__:{types:p,popover(t,n,r){g._popoverInstance&&(i.remove(g._popoverInstance),g._popoverInstance=null);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=l({},uP);return He(!0,t,e),t}(l({onPopoverClose:()=>g.emit("fieldPopoverClose")},r));g._popoverInstance=V.createElement(dP,{element:t,key:ET(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$",flags:d.public.galaxy.flags}),i.add(g._popoverInstance)}}};return d.public.nebbie=g,d.types=p,hI(g),g}return r.createConfiguration=n=>e(((e,t)=>({context:Mq(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:l({},t.snapshot||e.snapshot),types:Nq(e.types,t.types),themes:Nq(e.themes,t.themes),flags:Mq(e.flags,t.flags),anything:Mq(e.anything,t.anything)}))(t,n)),r.config=t,r}(Pq);function Aq(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const zq=globalThis.crypto||{getRandomValues:()=>123456};function Dq(e){return t=>{const n=He({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^zq.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=n._mock;let o=n;return r&&(delete n._mock,o=He({},n,r)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(n),getEffectiveProperties:()=>Promise.resolve(n),removeListener:()=>{},id:n.qInfo.qId,properties:n,session:e})}}const jq=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},Fq=function(e){let{defaultValue:t,async:n=!0,delay:r=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];const l=jq(e,{defaultValue:t,args:a});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},$q=["id","session"],Bq=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function Wq(e){return!Bq.includes(e)}function Hq(e){const t=jq(e.getLayout);return t.qInfo&&t.qInfo.qId}function Uq(e,t){return e.reduce(((e,n)=>l(l({},e),function(e,t){let n=Hq(e);const{delay:r}=t,{id:o,session:a}=e,i=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]:l(l({id:n,session:jq(a,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(i).reduce(((e,t)=>{let[n,o]=t;return l(l({},e),{},{[n]:Fq(o,{async:Wq(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function Vq(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!Hq(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function Gq(){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(Vq);const n=Uq(e,t);return async e=>Promise.resolve(n[e])}function Kq(){return()=>Promise.resolve({id:"app-layout"})}const Zq={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Aq,r=new Dq(n),o=new Gq(e,t),a=new Kq,i={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,destroySessionObject:async()=>{},getObject:o,getAppLayout:a};return Promise.resolve(i)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},Xq={generator:yN,hook:eN,theme:st,locale:K};e.EnigmaMocker=Zq,e.__DO_NOT_USE__=Xq,e.conversion=zP,e.embed=qq,e.onContextMenu=function(e){const t=QM(++FM);t.value||(t.value=1,jM.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=QM(++FM);t.value||(t.value=1,jM.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=tN({action(){n._config.action.call(null)}});return n.component||(n.component=jM,jM.__hooks.actions.list.push(n)),oN((()=>{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=JM("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return JM("appLayout")},e.useConstraints=function(){return JM("constraints")},e.useDeviceType=function(){return JM("deviceType")},e.useEffect=nN,e.useElement=aN,e.useEmbed=function(){return JM("nebbie")},e.useEmitter=function(){return JM("emitter")},e.useGlobal=function(){const e=JM("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=QM(++FM);if(n.imperative||(n.imperative=!0),$M(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],jM.__hooks.imperativeHandle=r}},e.useInteractionState=function(){return JM("interactions")},e.useKeyboard=function(){const e=JM("keyboardNavigation"),t=JM("focusHandler");if(!jM.__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&&(lN(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(jM);jM.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),iN(this))}.bind(jM);jM.__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(jM);jM.__hooks.accessibility.focusSelectionFunction=r}const n=jM.__hooks.accessibility.focusFunction,r=jM.__hooks.accessibility.exitFunction,o=jM.__hooks.accessibility.focusSelectionFunction,[a,i]=tN({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return jM.__hooks.accessibility.setter=i,jM.__hooks.accessibility.enabled=e,nN((()=>i({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),a},e.useLayout=function(){return JM("layout")},e.useMemo=oN,e.useModel=function(){const e=JM("model");return e&&e.session?e:void 0},e.useOptions=function(){return JM("options")},e.usePlugins=function(){return JM("plugins")},e.usePromise=function(e,t){const[n,r]=tN((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=QM(++FM);return o.component||(o.component=jM),rN((()=>{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=aN(),t=jM.__hooks.resizer,[n,r]=tN((()=>{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()),rN((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:a}=e.getBoundingClientRect(),i=t.current;i.width===o&&i.height===a&&i.left===n&&i.top===r||t.setters.forEach((e=>e({left:n,top:r,width:o,height:a})))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let r=new ResizeObserver(n);return r.observe(e),()=>{r.unobserve(e),r.disconnect(e),r=null,t.resize=void 0}}}),[e]),n},e.useRenderState=function(){QM(++FM);const e=jM.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return JM("selections")},e.useStaleLayout=function(){const e=JM("layout"),[t]=tN({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=tN,e.useTheme=function(){return JM("theme")},e.useTranslator=function(){return JM("translator")}}));
|
|
134
134
|
//# sourceMappingURL=stardust.js.map
|