@nebula.js/stardust 4.0.0-alpha.8 → 4.0.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/dist/stardust.js CHANGED
@@ -1,10 +1,10 @@
1
1
  /*
2
- * @nebula.js/stardust v4.0.0-alpha.8
2
+ * @nebula.js/stardust v4.0.0
3
3
  * Copyright (c) 2023 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).stardust={})}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){if(this instanceof e){var n=[null];n.push.apply(n,arguments);var r=Function.bind.apply(t,n);return new r}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var o={},a={get exports(){return o},set exports(e){o=e}};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){s(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,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(){return c=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},c.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,o=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,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}!function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},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 g?t:g,i=Object.create(a.prototype),l=new I(r||[]);return o(i,"_invoke",{value:k(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="executing",h="completed",m={};function g(){}function v(){}function y(){}var b={};c(b,i,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(P([])));S&&S!==n&&r.call(S,i)&&(b=S);var w=y.prototype=g.prototype=Object.create(b);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(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 k(e,t,n){var r=p;return function(o,a){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw a;return T()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var l=L(i,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var s=d(e,t,n);if("normal"===s.type){if(r=n.done?h:"suspendedYield",s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=h,n.method="throw",n.arg=s.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")),m;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;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,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function R(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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function P(e){if(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}}return{next:T}}function T(){return{value:t,done:!0}}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"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(w),e},e.awrap=function(e){return{__await:e}},E(C.prototype),c(C.prototype,l,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new C(u(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},E(w),c(w,s,"Generator"),c(w,i,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!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,m):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),m},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),O(n),m}},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;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(a);var d={},p={get exports(){return d},set exports(e){d=e}},f={},h=Symbol.for("react.element"),m=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),x=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),k=Symbol.iterator;var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,O={};function I(e,t,n){this.props=e,this.context=t,this.refs=O,this.updater=n||L}function P(){}function T(e,t,n){this.props=e,this.context=t,this.refs=O,this.updater=n||L}I.prototype.isReactComponent={},I.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")},I.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},P.prototype=I.prototype;var _=T.prototype=new P;_.constructor=T,R(_,I.prototype),_.isPureReactComponent=!0;var N=Array.isArray,M=Object.prototype.hasOwnProperty,q={current:null},A={key:!0,ref:!0,__self:!0,__source:!0};function D(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)M.call(t,r)&&!A.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:h,type:e,key:a,ref:i,props:o,_owner:q.current}}function z(e){return"object"==typeof e&&null!==e&&e.$$typeof===h}var j=/\/+/g;function F(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function $(e,t,n,r,o){var 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 h:case m:i=!0}}if(i)return o=o(i=e),e=""===r?"."+F(i,0):r,N(o)?(n="",null!=e&&(n=e.replace(j,"$&/")+"/"),$(o,t,n,"",(function(e){return e}))):null!=o&&(z(o)&&(o=function(e,t){return{$$typeof:h,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(j,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=""===r?".":r+":",N(e))for(var l=0;l<e.length;l++){var s=r+F(a=e[l],l);i+=$(a,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=k&&e[k]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(a=e.next()).done;)i+=$(a=a.value,t,n,s=r+F(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 B(e,t,n){if(null==e)return e;var r=[],o=0;return $(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function W(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 H={current:null},U={transition:null},V={ReactCurrentDispatcher:H,ReactCurrentBatchConfig:U,ReactCurrentOwner:q};f.Children={map:B,forEach:function(e,t,n){B(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return B(e,(function(){t++})),t},toArray:function(e){return B(e,(function(e){return e}))||[]},only:function(e){if(!z(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},f.Component=I,f.Fragment=g,f.Profiler=y,f.PureComponent=T,f.StrictMode=v,f.Suspense=w,f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,f.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=R({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=q.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)M.call(t,s)&&!A.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:h,type:e.type,key:o,ref:a,props:r,_owner:i}},f.createContext=function(e){return(e={$$typeof:x,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:b,_context:e},e.Consumer=e},f.createElement=D,f.createFactory=function(e){var t=D.bind(null,e);return t.type=e,t},f.createRef=function(){return{current:null}},f.forwardRef=function(e){return{$$typeof:S,render:e}},f.isValidElement=z,f.lazy=function(e){return{$$typeof:C,_payload:{_status:-1,_result:e},_init:W}},f.memo=function(e,t){return{$$typeof:E,type:e,compare:void 0===t?null:t}},f.startTransition=function(e){var t=U.transition;U.transition={};try{e()}finally{U.transition=t}},f.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},f.useCallback=function(e,t){return H.current.useCallback(e,t)},f.useContext=function(e){return H.current.useContext(e)},f.useDebugValue=function(){},f.useDeferredValue=function(e){return H.current.useDeferredValue(e)},f.useEffect=function(e,t){return H.current.useEffect(e,t)},f.useId=function(){return H.current.useId()},f.useImperativeHandle=function(e,t,n){return H.current.useImperativeHandle(e,t,n)},f.useInsertionEffect=function(e,t){return H.current.useInsertionEffect(e,t)},f.useLayoutEffect=function(e,t){return H.current.useLayoutEffect(e,t)},f.useMemo=function(e,t){return H.current.useMemo(e,t)},f.useReducer=function(e,t,n){return H.current.useReducer(e,t,n)},f.useRef=function(e){return H.current.useRef(e)},f.useState=function(e){return H.current.useState(e)},f.useSyncExternalStore=function(e,t,n){return H.current.useSyncExternalStore(e,t,n)},f.useTransition=function(){return H.current.useTransition()},f.version="18.2.0",function(e){e.exports=f}(p);var G=n(d),K=t({__proto__:null,default:G},[d]);const Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,((e,t)=>void 0!==n[t]?n[t]:e))};function X(){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?Z(a,o):a}};return o}const Q=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=X({initial:e,fallback:t});return{translator:n}};var Y={Cancel:{id:"Cancel",locale:{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},CurrentSelections_All:{id:"CurrentSelections.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},CurrentSelections_Of:{id:"CurrentSelections.Of",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},Listbox_Dismiss:{id:"Listbox.Dismiss",locale:{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},Listbox_DrillDown:{id:"Listbox.DrillDown",locale:{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"钻取维度","zh-TW":"向下探查維度"}},Listbox_ItemsOverflow:{id:"Listbox.ItemsOverflow",locale:{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},Listbox_Lock:{id:"Listbox.Lock",locale:{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},Listbox_NoMatchesForYourTerms:{id:"Listbox.NoMatchesForYourTerms",locale:{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},Listbox_ResultFilterLabel:{id:"Listbox.ResultFilterLabel",locale:{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},Listbox_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_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":"重試"}},Selection_Cancel:{id:"Selection.Cancel",locale:{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},Selection_Clear:{id:"Selection.Clear",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},Selection_ClearAll:{id:"Selection.ClearAll",locale:{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},Selection_ClearAllStates:{id:"Selection.ClearAllStates",locale:{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},Selection_Confirm:{id:"Selection.Confirm",locale:{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},Selection_Menu:{id:"Selection.Menu",locale:{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":'Меню "Выборка"',"sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},Selection_SelectAll:{id:"Selection.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},Selection_SelectAlternative:{id:"Selection.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},Selection_SelectExcluded:{id:"Selection.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},Selection_SelectPossible:{id:"Selection.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SelectionToolbar_ClickToUnlock:{id:"SelectionToolbar.ClickToUnlock",locale:{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},Visualization_Incomplete:{id:"Visualization.Incomplete",locale:{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},Visualization_Incomplete_Dimensions:{id:"Visualization.Incomplete.Dimensions",locale:{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},Visualization_Incomplete_Measures:{id:"Visualization.Incomplete.Measures",locale:{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},Visualization_Invalid_Dimension:{id:"Visualization.Invalid.Dimension",locale:{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},Visualization_Invalid_Measure:{id:"Visualization.Invalid.Measure",locale:{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},Visualization_LayoutError:{id:"Visualization.LayoutError",locale:{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},Visualization_UnfulfilledCalculationCondition:{id:"Visualization.UnfulfilledCalculationCondition",locale:{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}};function J(e){const t=Q({initial:e});return Object.keys(Y).forEach((e=>{t.translator.add(Y[e])})),{translator:t.translator}}var ee={};function te(){te.init.call(this)}ee.isObject=function(e){return"object"==typeof e&&null!==e},ee.isNumber=function(e){return"number"==typeof e},ee.isUndefined=function(e){return void 0===e},ee.isFunction=function(e){return"function"==typeof e};var ne=te;function re(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function oe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ae(){}te.EventEmitter=te,te.prototype._events=void 0,te.prototype._maxListeners=void 0,te.defaultMaxListeners=10,te.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},te.prototype.setMaxListeners=function(e){if(!ee.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},te.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],ee.isUndefined(n))return!1;if(ee.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(ee.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},te.prototype.addListener=function(e,t){var n;if(!ee.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,ee.isFunction(t.listener)?t.listener:t),this._events[e]?ee.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,ee.isObject(this._events[e])&&!this._events[e].warned)&&((n=ee.isUndefined(this._maxListeners)?te.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,ee.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),ee.isFunction(console.trace)&&console.trace()));return this},te.prototype.on=te.prototype.addListener,te.prototype.once=function(e,t){if(!ee.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},te.prototype.removeListener=function(e,t){var n,r,o,a;if(!ee.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||ee.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(ee.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},te.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],ee.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},te.prototype.listeners=function(e){return this._events&&this._events[e]?ee.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},te.listenerCount=function(e,t){return e._events&&e._events[t]?ee.isFunction(e._events[t])?1:e._events[t].length:0};var ie=.7,le=1/ie,se="\\s*([+-]?\\d+)\\s*",ce="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ue="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",de=/^#([0-9a-f]{3,8})$/,pe=new RegExp(`^rgb\\(${se},${se},${se}\\)$`),fe=new RegExp(`^rgb\\(${ue},${ue},${ue}\\)$`),he=new RegExp(`^rgba\\(${se},${se},${se},${ce}\\)$`),me=new RegExp(`^rgba\\(${ue},${ue},${ue},${ce}\\)$`),ge=new RegExp(`^hsl\\(${ce},${ue},${ue}\\)$`),ve=new RegExp(`^hsla\\(${ce},${ue},${ue},${ce}\\)$`),ye={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 be(){return this.rgb().formatHex()}function xe(){return this.rgb().formatRgb()}function Se(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=de.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?we(t):3===n?new Le(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ee(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ee(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=pe.exec(e))?new Le(t[1],t[2],t[3],1):(t=fe.exec(e))?new Le(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=he.exec(e))?Ee(t[1],t[2],t[3],t[4]):(t=me.exec(e))?Ee(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ge.exec(e))?_e(t[1],t[2]/100,t[3]/100,1):(t=ve.exec(e))?_e(t[1],t[2]/100,t[3]/100,t[4]):ye.hasOwnProperty(e)?we(ye[e]):"transparent"===e?new Le(NaN,NaN,NaN,0):null}function we(e){return new Le(e>>16&255,e>>8&255,255&e,1)}function Ee(e,t,n,r){return r<=0&&(e=t=n=NaN),new Le(e,t,n,r)}function Ce(e){return e instanceof ae||(e=Se(e)),e?new Le((e=e.rgb()).r,e.g,e.b,e.opacity):new Le}function ke(e,t,n,r){return 1===arguments.length?Ce(e):new Le(e,t,n,null==r?1:r)}function Le(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Re(){return`#${Te(this.r)}${Te(this.g)}${Te(this.b)}`}function Oe(){const e=Ie(this.opacity);return`${1===e?"rgb(":"rgba("}${Pe(this.r)}, ${Pe(this.g)}, ${Pe(this.b)}${1===e?")":`, ${e})`}`}function Ie(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Pe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Te(e){return((e=Pe(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 Me(e,t,n,r)}function Ne(e){if(e instanceof Me)return new Me(e.h,e.s,e.l,e.opacity);if(e instanceof ae||(e=Se(e)),!e)return new Me;if(e instanceof Me)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 Me(i,l,s,e.opacity)}function Me(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function qe(e){return(e=(e||0)%360)<0?e+360:e}function Ae(e){return Math.max(0,Math.min(1,e||0))}function De(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}re(ae,Se,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:be,formatHex:be,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ne(this).formatHsl()},formatRgb:xe,toString:xe}),re(Le,ke,oe(ae,{brighter(e){return e=null==e?le:Math.pow(le,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ie:Math.pow(ie,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Le(Pe(this.r),Pe(this.g),Pe(this.b),Ie(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:Re,formatHex:Re,formatHex8:function(){return`#${Te(this.r)}${Te(this.g)}${Te(this.b)}${Te(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Oe,toString:Oe})),re(Me,(function(e,t,n,r){return 1===arguments.length?Ne(e):new Me(e,t,n,null==r?1:r)}),oe(ae,{brighter(e){return e=null==e?le:Math.pow(le,e),new Me(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ie:Math.pow(ie,e),new Me(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 Le(De(e>=240?e-240:e+120,o,r),De(e,o,r),De(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Me(qe(this.h),Ae(this.s),Ae(this.l),Ie(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=Ie(this.opacity);return`${1===e?"hsl(":"hsla("}${qe(this.h)}, ${100*Ae(this.s)}%, ${100*Ae(this.l)}%${1===e?")":`, ${e})`}`}}));var ze=Object.prototype.hasOwnProperty,je=Object.prototype.toString,Fe=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,Be=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===je.call(e)},We=function(e){if(!e||"[object Object]"!==je.call(e))return!1;var t,n=ze.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&ze.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||ze.call(e,t)},He=function(e,t){Fe&&"__proto__"===t.name?Fe(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Ue=function(e,t){if("__proto__"===t){if(!ze.call(e,t))return;if($e)return $e(e,t).value}return e[t]},Ve=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=Ue(l,n),l!==(o=Ue(t,n))&&(u&&o&&(We(o)||(a=Be(o)))?(a?(a=!1,i=r&&Be(r)?r:[]):i=r&&We(r)?r:{},He(l,{name:n,newValue:e(u,i,o)})):void 0!==o&&He(l,{name:n,newValue:o}));return l},Ge={fontSize:"13px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},scales:[{name:"Sequential Gradient",translation:"properties.colorScheme.sequential",type:"gradient",propertyValue:"sg",scale:["#26a0a7","#c7ea8b"]},{name:"Sequential Classes",translation:"properties.colorScheme.sequentialC",propertyValue:"sc",type:"class",scale:["#26a0a7","#c7ea8b"]},{name:"Diverging gradient",translation:"properties.colorScheme.diverging",propertyValue:"dg",type:"gradient",scale:["#26a0a7","#c3ea8c","#ec983d"]},{name:"Diverging Classes",translation:"properties.colorScheme.divergingC",propertyValue:"dc",type:"class",scale:["#26a0a7","#c3ea8c","#ec983d"]}],palettes:{data:[{name:"12 Colors",translation:"properties.colorNumberOfColors.12",propertyValue:"12",type:"pyramid",scale:[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],ui:[{name:"Palette",colors:["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}},Ke={_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"},Ze={_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"},Xe={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};class Qe{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Se(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([Se(e),Se(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 ke(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 Ye(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Je(e,t,n){const r=[],o=new Qe(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 et(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=Ye(1/t*o,t,n);a=e.getColor(r);break}}r.push(Se(a).formatHex())}return r}function tt(e,t,n){const r=Je(e,n,!0),o=Je(et(r,t-1,t),n,!1),a=[null];for(let e=0;e<t;e++)a.push(et(o,e,t));return a}function nt(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 rt(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 ot(e,t,n,r){let o;if(""===e)o=nt(null,n);else{o=nt(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=rt(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function at(e,t){const n=e.split(".");return{getStyle:(e,r)=>ot(e,r,n.concat(),t)}}function it(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?it(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function lt(e){const t=Se(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)}function st(e,t){return+((Math.max(e,t)+.05)/(Math.min(e,t)+.05)).toFixed(5)}at.resolveRawTheme=e=>{const t=Ve(!0,{},e);return it(t,t._variables),t.scales&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#d2d2d2";e.forEach((e=>{if("class"===e.type){const n=tt(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}(t.scales,t.dataColors&&t.dataColors.nullColor),t};function ct(){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]=at(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=Se(...arguments);return n?n.toString():void 0}},a={setTheme(a,i){e=function(e,t){const n="dark"===e.type?Ze:Ke;let r=Xe;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=Ve(!0,{},Ge,n,r),a=Ve(!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,at.resolveRawTheme),r={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})})),t},dataPalettes(){const t=[];return e.palettes.data.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})})),t},uiPalettes(){const t=[];return e.palettes.ui.forEach((e=>{t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:e.colors})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e,n){return n=!!n,e.index<0||void 0===e.index?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index-n]?e.color:t.colors[e.index-n]:e.color)}}}(e);const l=o.getStyle("","","color"),s=lt(l);n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(lt);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const a=lt(o),i=r.map((e=>st(a,e))),l=e[i.indexOf(Math.max(...i))];t[o]=l,n++}return t[o]}}}([l,s<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>i}};return Object.keys(ne.prototype).forEach((e=>{o[e]=ne.prototype[e]})),ne.init(o),a.setTheme({},"light"),{externalAPI:o,internalAPI:a}}const ut=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)}));function dt(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=ct(),o=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),ut(5e3,{__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)};return{setTheme:o,externalAPI:r.externalAPI}}function pt(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 ft={},ht={},mt={get exports(){return ht},set exports(e){ht=e}},gt={},vt={},yt={get exports(){return vt},set exports(e){vt=e}},bt={};
7
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).stardust={})}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){if(this instanceof e){var n=[null];n.push.apply(n,arguments);var r=Function.bind.apply(t,n);return new r}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}!function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),l=new I(r||[]);return o(a,"_invoke",{value:k(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",f="executing",h="completed",m={};function g(){}function v(){}function b(){}var y={};c(y,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(T([])));S&&S!==n&&r.call(S,a)&&(y=S);var w=b.prototype=g.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,l)}))}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function k(e,t,n){var r=p;return function(o,i){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=R(a,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var s=d(e,t,n);if("normal"===s.type){if(r=n.done?h:"suspendedYield",s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=h,n.method="throw",n.arg=s.arg)}}}function R(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,R(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function L(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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function T(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}return{next:P}}function P(){return{value:t,done:!0}}return v.prototype=b,o(w,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=c(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(C.prototype),c(C.prototype,l,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),c(w,s,"Generator"),c(w,a,(function(){return this})),c(w,"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(O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},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),O(n),m}},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;O(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),m}},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 I=O.prototype=new L;I.constructor=O,C(I,R.prototype),I.isPureReactComponent=!0;var T=Array.isArray,P=Object.prototype.hasOwnProperty,_={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)P.call(t,r)&&!N.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:d,type:e,key:i,ref:a,props:o,_owner:_.current}}function q(e){return"object"==typeof e&&null!==e&&e.$$typeof===d}var z=/\/+/g;function A(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 i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case d:case p:a=!0}}if(a)return o=o(a=e),e=""===r?"."+A(a,0):r,T(o)?(n="",null!=e&&(n=e.replace(z,"$&/")+"/"),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||a&&a.key===o.key?"":(""+o.key).replace(z,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",T(e))for(var l=0;l<e.length;l++){var s=r+A(i=e[l],l);a+=D(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=w&&e[w]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(i=e.next()).done;)a+=D(i=i.value,t,n,s=r+A(i,l++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function j(e,t,n){if(null==e)return e;var r=[],o=0;return 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 B={current:null},$={transition:null},W={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:$,ReactCurrentOwner:_};u.Children={map:j,forEach:function(e,t,n){j(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return j(e,(function(){t++})),t},toArray:function(e){return j(e,(function(e){return e}))||[]},only:function(e){if(!q(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},u.Component=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.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=C({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=_.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)P.call(t,s)&&!N.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var c=0;c<s;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:d,type:e.type,key:o,ref:i,props:r,_owner:a}},u.createContext=function(e){return(e={$$typeof:v,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:g,_context:e},e.Consumer=e},u.createElement=M,u.createFactory=function(e){var t=M.bind(null,e);return t.type=e,t},u.createRef=function(){return{current:null}},u.forwardRef=function(e){return{$$typeof:b,render:e}},u.isValidElement=q,u.lazy=function(e){return{$$typeof:S,_payload:{_status:-1,_result:e},_init:F}},u.memo=function(e,t){return{$$typeof:x,type:e,compare:void 0===t?null:t}},u.startTransition=function(e){var t=$.transition;$.transition={};try{e()}finally{$.transition=t}},u.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},u.useCallback=function(e,t){return B.current.useCallback(e,t)},u.useContext=function(e){return B.current.useContext(e)},u.useDebugValue=function(){},u.useDeferredValue=function(e){return B.current.useDeferredValue(e)},u.useEffect=function(e,t){return B.current.useEffect(e,t)},u.useId=function(){return B.current.useId()},u.useImperativeHandle=function(e,t,n){return B.current.useImperativeHandle(e,t,n)},u.useInsertionEffect=function(e,t){return B.current.useInsertionEffect(e,t)},u.useLayoutEffect=function(e,t){return B.current.useLayoutEffect(e,t)},u.useMemo=function(e,t){return B.current.useMemo(e,t)},u.useReducer=function(e,t,n){return B.current.useReducer(e,t,n)},u.useRef=function(e){return B.current.useRef(e)},u.useState=function(e){return B.current.useState(e)},u.useSyncExternalStore=function(e,t,n){return B.current.useSyncExternalStore(e,t,n)},u.useTransition=function(){return B.current.useTransition()},u.version="18.2.0",c.exports=u;var U=c.exports,H=n(U),V=t({__proto__:null,default:H},[U]);const G=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,((e,t)=>void 0!==n[t]?n[t]:e))};function K(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={};let r=e;const o={language:e=>(e&&(r=e),r),add:e=>{const{id:t,locale:r}=e;Object.keys(r).forEach((e=>{n[e]||(n[e]={}),n[e][t]=r[e]}))},get(e,o){let i;return i=n[r]&&void 0!==n[r][e]?n[r][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?G(i,o):i}};return o}const Z=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=K({initial:e,fallback:t});return{translator:n}};var X={Cancel:{id:"Cancel",locale:{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},CurrentSelections_All:{id:"CurrentSelections.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},CurrentSelections_Of:{id:"CurrentSelections.Of",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},Listbox_Dismiss:{id:"Listbox.Dismiss",locale:{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},Listbox_DrillDown:{id:"Listbox.DrillDown",locale:{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"钻取维度","zh-TW":"向下探查維度"}},Listbox_ItemsOverflow:{id:"Listbox.ItemsOverflow",locale:{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},Listbox_Lock:{id:"Listbox.Lock",locale:{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},Listbox_NoMatchesForYourTerms:{id:"Listbox.NoMatchesForYourTerms",locale:{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},Listbox_ResultFilterLabel:{id:"Listbox.ResultFilterLabel",locale:{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},Listbox_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},Listbox_ScreenReader_SelectionMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},Listbox_ScreenReaderInstructions:{id:"Listbox.ScreenReaderInstructions",locale:{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L'attivazione degli elementi sottostanti causerà l'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},Listbox_Search:{id:"Listbox.Search",locale:{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},Listbox_Search_ScreenReaderInstructions:{id:"Listbox.Search.ScreenReaderInstructions",locale:{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},Listbox_Unlock:{id:"Listbox.Unlock",locale:{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},Menu_More:{id:"Menu.More",locale:{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},Navigate_Back:{id:"Navigate.Back",locale:{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},Navigate_Forward:{id:"Navigate.Forward",locale:{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},OK:{id:"OK",locale:{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},Object_Listbox_Alternative:{id:"Object.Listbox.Alternative",locale:{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},Object_Listbox_Excluded:{id:"Object.Listbox.Excluded",locale:{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},Object_Listbox_ExcludedLock:{id:"Object.Listbox.ExcludedLock",locale:{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},Object_Listbox_Locked:{id:"Object.Listbox.Locked",locale:{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},Object_Listbox_Optional:{id:"Object.Listbox.Optional",locale:{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},Object_Listbox_Selected:{id:"Object.Listbox.Selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбранные","sv-SE":"Urval","tr-TR":"Seçilen","zh-CN":"已选择","zh-TW":"已選取"}},Object_Listbox_SelectedExcluded:{id:"Object.Listbox.SelectedExcluded",locale:{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","zh-CN":"已排除选择","zh-TW":"已選取排除值"}},Object_Update_Active:{id:"Object.Update.Active",locale:{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},Object_Update_Cancelled:{id:"Object.Update.Cancelled",locale:{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},Retry:{id:"Retry",locale:{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},ScreenReader_ManySelected:{id:"ScreenReader.ManySelected",locale:{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},ScreenReader_OneSelected:{id:"ScreenReader.OneSelected",locale:{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},ScreenReader_ZeroSelected:{id:"ScreenReader.ZeroSelected",locale:{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},Selection_Cancel:{id:"Selection.Cancel",locale:{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},Selection_Clear:{id:"Selection.Clear",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},Selection_ClearAll:{id:"Selection.ClearAll",locale:{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},Selection_ClearAllStates:{id:"Selection.ClearAllStates",locale:{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},Selection_Confirm:{id:"Selection.Confirm",locale:{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},Selection_Menu:{id:"Selection.Menu",locale:{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":'Меню "Выборка"',"sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},Selection_SelectAll:{id:"Selection.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},Selection_SelectAlternative:{id:"Selection.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},Selection_SelectExcluded:{id:"Selection.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},Selection_SelectPossible:{id:"Selection.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SelectionToolbar_ClickToUnlock:{id:"SelectionToolbar.ClickToUnlock",locale:{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},Visualization_Incomplete:{id:"Visualization.Incomplete",locale:{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},Visualization_Incomplete_Dimensions:{id:"Visualization.Incomplete.Dimensions",locale:{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},Visualization_Incomplete_Measures:{id:"Visualization.Incomplete.Measures",locale:{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},Visualization_Invalid_Dimension:{id:"Visualization.Invalid.Dimension",locale:{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},Visualization_Invalid_Measure:{id:"Visualization.Invalid.Measure",locale:{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},Visualization_LayoutError:{id:"Visualization.LayoutError",locale:{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},Visualization_UnfulfilledCalculationCondition:{id:"Visualization.UnfulfilledCalculationCondition",locale:{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}};function Q(e){const t=Z({initial:e});return Object.keys(X).forEach((e=>{t.translator.add(X[e])})),{translator:t.translator}}var J={};function Y(){Y.init.call(this)}J.isObject=function(e){return"object"==typeof e&&null!==e},J.isNumber=function(e){return"number"==typeof e},J.isUndefined=function(e){return void 0===e},J.isFunction=function(e){return"function"==typeof e};var ee=Y;Y.EventEmitter=Y,Y.prototype._events=void 0,Y.prototype._maxListeners=void 0,Y.defaultMaxListeners=10,Y.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},Y.prototype.setMaxListeners=function(e){if(!J.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Y.prototype.emit=function(e){var t,n,r,o,i,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],J.isUndefined(n))return!1;if(J.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(J.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},Y.prototype.addListener=function(e,t){var n;if(!J.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,J.isFunction(t.listener)?t.listener:t),this._events[e]?J.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,J.isObject(this._events[e])&&!this._events[e].warned)&&((n=J.isUndefined(this._maxListeners)?Y.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,J.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),J.isFunction(console.trace)&&console.trace()));return this},Y.prototype.on=Y.prototype.addListener,Y.prototype.once=function(e,t){if(!J.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},Y.prototype.removeListener=function(e,t){var n,r,o,i;if(!J.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||J.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(J.isObject(n)){for(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},Y.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],J.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},Y.prototype.listeners=function(e){return this._events&&this._events[e]?J.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},Y.listenerCount=function(e,t){return e._events&&e._events[t]?J.isFunction(e._events[t])?1:e._events[t].length:0};var te=n(ee);function ne(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function re(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function oe(){}var ie=.7,ae=1/ie,le="\\s*([+-]?\\d+)\\s*",se="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ce="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ue=/^#([0-9a-f]{3,8})$/,de=new RegExp(`^rgb\\(${le},${le},${le}\\)$`),pe=new RegExp(`^rgb\\(${ce},${ce},${ce}\\)$`),fe=new RegExp(`^rgba\\(${le},${le},${le},${se}\\)$`),he=new RegExp(`^rgba\\(${ce},${ce},${ce},${se}\\)$`),me=new RegExp(`^hsl\\(${se},${ce},${ce}\\)$`),ge=new RegExp(`^hsla\\(${se},${ce},${ce},${se}\\)$`),ve={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 be(){return this.rgb().formatHex()}function ye(){return this.rgb().formatRgb()}function xe(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ue.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Se(t):3===n?new ke(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?we(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?we(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=de.exec(e))?new ke(t[1],t[2],t[3],1):(t=pe.exec(e))?new ke(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=fe.exec(e))?we(t[1],t[2],t[3],t[4]):(t=he.exec(e))?we(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=me.exec(e))?Pe(t[1],t[2]/100,t[3]/100,1):(t=ge.exec(e))?Pe(t[1],t[2]/100,t[3]/100,t[4]):ve.hasOwnProperty(e)?Se(ve[e]):"transparent"===e?new ke(NaN,NaN,NaN,0):null}function Se(e){return new ke(e>>16&255,e>>8&255,255&e,1)}function we(e,t,n,r){return r<=0&&(e=t=n=NaN),new ke(e,t,n,r)}function Ee(e){return e instanceof oe||(e=xe(e)),e?new ke((e=e.rgb()).r,e.g,e.b,e.opacity):new ke}function Ce(e,t,n,r){return 1===arguments.length?Ee(e):new ke(e,t,n,null==r?1:r)}function ke(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Re(){return`#${Te(this.r)}${Te(this.g)}${Te(this.b)}`}function Le(){const e=Oe(this.opacity);return`${1===e?"rgb(":"rgba("}${Ie(this.r)}, ${Ie(this.g)}, ${Ie(this.b)}${1===e?")":`, ${e})`}`}function Oe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ie(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Te(e){return((e=Ie(e))<16?"0":"")+e.toString(16)}function Pe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ne(e,t,n,r)}function _e(e){if(e instanceof Ne)return new Ne(e.h,e.s,e.l,e.opacity);if(e instanceof oe||(e=xe(e)),!e)return new Ne;if(e instanceof Ne)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Ne(a,l,s,e.opacity)}function Ne(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Me(e){return(e=(e||0)%360)<0?e+360:e}function qe(e){return Math.max(0,Math.min(1,e||0))}function ze(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ne(oe,xe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:be,formatHex:be,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return _e(this).formatHsl()},formatRgb:ye,toString:ye}),ne(ke,Ce,re(oe,{brighter(e){return e=null==e?ae:Math.pow(ae,e),new ke(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ie:Math.pow(ie,e),new ke(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ke(Ie(this.r),Ie(this.g),Ie(this.b),Oe(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:Re,formatHex:Re,formatHex8:function(){return`#${Te(this.r)}${Te(this.g)}${Te(this.b)}${Te(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Le,toString:Le})),ne(Ne,(function(e,t,n,r){return 1===arguments.length?_e(e):new Ne(e,t,n,null==r?1:r)}),re(oe,{brighter(e){return e=null==e?ae:Math.pow(ae,e),new Ne(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ie:Math.pow(ie,e),new Ne(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 ke(ze(e>=240?e-240:e+120,o,r),ze(e,o,r),ze(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Ne(Me(this.h),qe(this.s),qe(this.l),Oe(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=Oe(this.opacity);return`${1===e?"hsl(":"hsla("}${Me(this.h)}, ${100*qe(this.s)}%, ${100*qe(this.l)}%${1===e?")":`, ${e})`}`}}));var Ae=Object.prototype.hasOwnProperty,De=Object.prototype.toString,je=Object.defineProperty,Fe=Object.getOwnPropertyDescriptor,Be=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===De.call(e)},$e=function(e){if(!e||"[object Object]"!==De.call(e))return!1;var t,n=Ae.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Ae.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Ae.call(e,t)},We=function(e,t){je&&"__proto__"===t.name?je(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Ue=function(e,t){if("__proto__"===t){if(!Ae.call(e,t))return;if(Fe)return Fe(e,t).value}return e[t]},He=function e(){var t,n,r,o,i,a,l=arguments[0],s=1,c=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<c;++s)if(null!=(t=arguments[s]))for(n in t)r=Ue(l,n),l!==(o=Ue(t,n))&&(u&&o&&($e(o)||(i=Be(o)))?(i?(i=!1,a=r&&Be(r)?r:[]):a=r&&$e(r)?r:{},We(l,{name:n,newValue:e(u,a,o)})):void 0!==o&&We(l,{name:n,newValue:o}));return l},Ve=n(He),Ge={fontSize:"13px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},scales:[{name:"Sequential Gradient",translation:"properties.colorScheme.sequential",type:"gradient",propertyValue:"sg",scale:["#26a0a7","#c7ea8b"]},{name:"Sequential Classes",translation:"properties.colorScheme.sequentialC",propertyValue:"sc",type:"class",scale:["#26a0a7","#c7ea8b"]},{name:"Diverging gradient",translation:"properties.colorScheme.diverging",propertyValue:"dg",type:"gradient",scale:["#26a0a7","#c3ea8c","#ec983d"]},{name:"Diverging Classes",translation:"properties.colorScheme.divergingC",propertyValue:"dc",type:"class",scale:["#26a0a7","#c3ea8c","#ec983d"]}],palettes:{data:[{name:"12 Colors",translation:"properties.colorNumberOfColors.12",propertyValue:"12",type:"pyramid",scale:[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],ui:[{name:"Palette",colors:["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}},Ke={_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"},Ze={_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"},Xe={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};class Qe{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=xe(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([xe(e),xe(t)])}getColor(e,t){const n=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+n))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const r=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(r);o=o===r?o-1:o;const i=this.colorParts[t][o],a=i[0],l=i[1];if(e===this.min)return l;if(e===this.max)return a;const s=function(e,t,n){return Ce(Math.floor(e.r+(t.r-e.r)*n),Math.floor(e.g+(t.g-e.g)*n),Math.floor(e.b+(t.b-e.b)*n),Math.floor(e.opacity+(t.opacity-e.opacity)*n))}(a,l,r-o);return s}}function Je(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Ye(e,t,n){const r=[],o=new Qe(t);r.push(e[0]),n||r.push(e[0]);let i=1;for(;i<e.length-1;i++)r.push(e[i]),r.push(e[i]);r.push(e[i]),n||r.push(e[i]);for(let e=0;e<r.length;e+=2)o.addColorPart(r[e],r[e+1]);return o}function et(e,t,n){const r=[];for(let o=0;o<t+1;o++){let i;switch(t){case 0:i=e.getColor(.5);break;default:{const r=Je(1/t*o,t,n);i=e.getColor(r);break}}r.push(xe(i).formatHex())}return r}function tt(e,t,n){const r=Ye(e,n,!0),o=Ye(et(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(et(o,e,t));return i}function nt(e,t){const n=[];let r,o;if(e){let i=e.length;for(;i>=0;){for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat(e)),r.pop(),o--;e.pop(),i--}}else for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat()),r.pop(),o--;return n}function rt(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 ot(e,t,n,r){let o;if(""===e)o=nt(null,n);else{o=nt(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=rt(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function it(e,t){const n=e.split(".");return{getStyle:(e,r)=>ot(e,r,n.concat(),t)}}function at(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?at(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function lt(e){const t=xe(e).rgb(),{r:n,g:r,b:o}=t,[i,a,l]=[n,r,o].map((e=>e/255)),[s,c,u]=[i,a,l].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*s+.7152*c+.0722*u).toFixed(5)}function st(e,t){return+((Math.max(e,t)+.05)/(Math.min(e,t)+.05)).toFixed(5)}it.resolveRawTheme=e=>{const t=Ve(!0,{},e);return at(t,t._variables),t.scales&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#d2d2d2";e.forEach((e=>{if("class"===e.type){const n=tt(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}(t.scales,t.dataColors&&t.dataColors.nullColor),t};function ct(){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]=it(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=xe(...arguments);return n?n.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?Ze:Ke;let r=Xe;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=Ve(!0,{},Ge,n,r),i=Ve(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return i.palettes.data&&i.palettes.data.length||(i.palettes.data=o.palettes.data),i.palettes.ui&&i.palettes.ui.length||(i.palettes.ui=o.palettes.ui),i.scales&&i.scales.length||(i.scales=o.scales),t(i)}(i,it.resolveRawTheme),r={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})})),t},dataPalettes(){const t=[];return e.palettes.data.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})})),t},uiPalettes(){const t=[];return e.palettes.ui.forEach((e=>{t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:e.colors})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e,n){return n=!!n,e.index<0||void 0===e.index?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index-n]?e.color:t.colors[e.index-n]:e.color)}}}(e);const l=o.getStyle("","","color"),s=lt(l);n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(lt);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const i=lt(o),a=r.map((e=>st(i,e))),l=e[a.indexOf(Math.max(...a))];t[o]=l,n++}return t[o]}}}([l,s<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(te.prototype).forEach((e=>{o[e]=te.prototype[e]})),te.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const ut=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)}));function dt(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=ct(),o=async o=>{let i=e.filter((e=>e.id===o))[0],a="dark"===o?"dark":"light";if(!i&&t&&(i={load:t}),i&&i.load)try{const e=await Promise.race([i.load(o),ut(5e3,{__timedOut:!0})]);e.__timedOut||(a="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(a))}catch(e){}else r.internalAPI.setTheme({type:a},o),n.setMuiThemeName(a)};return{setTheme:o,externalAPI:r.externalAPI}}function pt(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 ft={},ht={exports:{}},mt={},gt={exports:{}},vt={};
8
8
  /**
9
9
  * @license React
10
10
  * scheduler.production.min.js
@@ -14,7 +14,7 @@
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
16
  */
17
- !function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>o(s,n))c<a&&0>o(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<a&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var s=[],c=[],u=1,d=null,p=3,f=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(s,o)}o=n(c)}}function x(e){if(m=!1,b(e),!h)if(null!==n(s))h=!0,_(S);else{var t=n(c);null!==t&&N(x,t.startTime-e)}}function S(t,o){h=!1,m&&(m=!1,v(k),k=-1),f=!0;var a=p;try{for(b(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!O());){var i=d.callback;if("function"==typeof i){d.callback=null,p=d.priorityLevel;var l=i(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),b(o)}else r(s);d=n(s)}if(null!==d)var u=!0;else{var g=n(c);null!==g&&N(x,g.startTime-o),u=!1}return u}finally{d=null,p=a,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,E=!1,C=null,k=-1,L=5,R=-1;function O(){return!(e.unstable_now()-R<L)}function I(){if(null!==C){var t=e.unstable_now();R=t;var n=!0;try{n=C(!0,t)}finally{n?w():(E=!1,C=null)}}else E=!1}if("function"==typeof y)w=function(){y(I)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,T=P.port2;P.port1.onmessage=I,w=function(){T.postMessage(null)}}else w=function(){g(I,0)};function _(e){C=e,E||(E=!0,w())}function N(t,n){k=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||f||(h=!0,_(S))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,a){var i=e.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?i+a:i:a=i,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:u++,callback:o,priorityLevel:r,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>i?(r.sortIndex=a,t(c,r),null===n(s)&&r===n(c)&&(m?(v(k),k=-1):m=!0,N(x,a-i))):(r.sortIndex=l,t(s,r),h||f||(h=!0,_(S))),r},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(bt),function(e){e.exports=bt}(yt);
17
+ !function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>o(s,n))c<i&&0>o(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],c=[],u=1,d=null,p=3,f=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(s,o)}o=n(c)}}function x(e){if(m=!1,y(e),!h)if(null!==n(s))h=!0,_(S);else{var t=n(c);null!==t&&N(x,t.startTime-e)}}function S(t,o){h=!1,m&&(m=!1,v(k),k=-1),f=!0;var i=p;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!O());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var l=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),y(o)}else r(s);d=n(s)}if(null!==d)var u=!0;else{var g=n(c);null!==g&&N(x,g.startTime-o),u=!1}return u}finally{d=null,p=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,E=!1,C=null,k=-1,R=5,L=-1;function O(){return!(e.unstable_now()-L<R)}function I(){if(null!==C){var t=e.unstable_now();L=t;var n=!0;try{n=C(!0,t)}finally{n?w():(E=!1,C=null)}}else E=!1}if("function"==typeof b)w=function(){b(I)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,P=T.port2;T.port1.onmessage=I,w=function(){P.postMessage(null)}}else w=function(){g(I,0)};function _(e){C=e,E||(E=!0,w())}function N(t,n){k=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||f||(h=!0,_(S))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:u++,callback:o,priorityLevel:r,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(r.sortIndex=i,t(c,r),null===n(s)&&r===n(c)&&(m?(v(k),k=-1):m=!0,N(x,i-a))):(r.sortIndex=l,t(s,r),h||f||(h=!0,_(S))),r},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(vt),gt.exports=vt;var bt=gt.exports,yt=U,xt=bt;
18
18
  /**
19
19
  * @license React
20
20
  * react-dom.production.min.js
@@ -23,15 +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
- */
27
- var xt=d,St=vt;function wt(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 Et=new Set,Ct={};function kt(e,t){Lt(e,t),Lt(e+"Capture",t)}function Lt(e,t){for(Ct[e]=t,e=0;e<t.length;e++)Et.add(t[e])}var Rt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ot=Object.prototype.hasOwnProperty,It=/^[: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]*$/,Pt={},Tt={};function _t(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 Nt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Nt[e]=new _t(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Nt[t]=new _t(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Nt[e]=new _t(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Nt[e]=new _t(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){Nt[e]=new _t(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Nt[e]=new _t(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){Nt[e]=new _t(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){Nt[e]=new _t(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){Nt[e]=new _t(e,5,!1,e.toLowerCase(),null,!1,!1)}));var Mt=/[\-:]([a-z])/g;function qt(e){return e[1].toUpperCase()}function At(e,t,n,r){var o=Nt.hasOwnProperty(t)?Nt[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!!Ot.call(Tt,e)||!Ot.call(Pt,e)&&(It.test(e)?Tt[e]=!0:(Pt[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(Mt,qt);Nt[t]=new _t(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(Mt,qt);Nt[t]=new _t(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(Mt,qt);Nt[t]=new _t(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){Nt[e]=new _t(e,1,!1,e.toLowerCase(),null,!1,!1)})),Nt.xlinkHref=new _t("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){Nt[e]=new _t(e,1,!1,e.toLowerCase(),null,!0,!0)}));var Dt=xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,zt=Symbol.for("react.element"),jt=Symbol.for("react.portal"),Ft=Symbol.for("react.fragment"),$t=Symbol.for("react.strict_mode"),Bt=Symbol.for("react.profiler"),Wt=Symbol.for("react.provider"),Ht=Symbol.for("react.context"),Ut=Symbol.for("react.forward_ref"),Vt=Symbol.for("react.suspense"),Gt=Symbol.for("react.suspense_list"),Kt=Symbol.for("react.memo"),Zt=Symbol.for("react.lazy"),Xt=Symbol.for("react.offscreen"),Qt=Symbol.iterator;function Yt(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Qt&&e[Qt]||e["@@iterator"])?e:null}var Jt,en=Object.assign;function tn(e){if(void 0===Jt)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Jt=t&&t[1]||""}return"\n"+Jt+e}var nn=!1;function rn(e,t){if(!e||nn)return"";nn=!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{nn=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?tn(e):""}function on(e){switch(e.tag){case 5:return tn(e.type);case 16:return tn("Lazy");case 13:return tn("Suspense");case 19:return tn("SuspenseList");case 0:case 2:case 15:return e=rn(e.type,!1);case 11:return e=rn(e.type.render,!1);case 1:return e=rn(e.type,!0);default:return""}}function an(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 Ft:return"Fragment";case jt:return"Portal";case Bt:return"Profiler";case $t:return"StrictMode";case Vt:return"Suspense";case Gt:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Ht:return(e.displayName||"Context")+".Consumer";case Wt:return(e._context.displayName||"Context")+".Provider";case Ut:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Kt:return null!==(t=e.displayName||null)?t:an(e.type)||"Memo";case Zt:t=e._payload,e=e._init;try{return an(e(t))}catch(e){}}return null}function ln(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 an(t);case 8:return t===$t?"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 sn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function cn(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function un(e){e._valueTracker||(e._valueTracker=function(e){var t=cn(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 dn(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=cn(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function pn(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 fn(e,t){var n=t.checked;return en({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function hn(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=sn(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 mn(e,t){null!=(t=t.checked)&&At(e,"checked",t,!1)}function gn(e,t){mn(e,t);var n=sn(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")?yn(e,t.type,n):t.hasOwnProperty("defaultValue")&&yn(e,t.type,sn(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function vn(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 yn(e,t,n){"number"===t&&pn(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bn=Array.isArray;function xn(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=""+sn(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 Sn(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(wt(91));return en({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function wn(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(wt(92));if(bn(n)){if(1<n.length)throw Error(wt(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:sn(n)}}function En(e,t){var n=sn(t.value),r=sn(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 Cn(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function kn(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 Ln(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?kn(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Rn,On,In=(On=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Rn=Rn||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Rn.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 On(e,t)}))}:On);function Pn(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 Tn={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},_n=["Webkit","ms","Moz","O"];function Nn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Tn.hasOwnProperty(e)&&Tn[e]?(""+t).trim():t+"px"}function Mn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Nn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Tn).forEach((function(e){_n.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tn[t]=Tn[e]}))}));var qn=en({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 An(e,t){if(t){if(qn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(wt(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(wt(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(wt(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(wt(62))}}function Dn(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 jn(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Fn=null,$n=null,Bn=null;function Wn(e){if(e=Di(e)){if("function"!=typeof Fn)throw Error(wt(280));var t=e.stateNode;t&&(t=ji(t),Fn(e.stateNode,e.type,t))}}function Hn(e){$n?Bn?Bn.push(e):Bn=[e]:$n=e}function Un(){if($n){var e=$n,t=Bn;if(Bn=$n=null,Wn(e),t)for(e=0;e<t.length;e++)Wn(t[e])}}function Vn(e,t){return e(t)}function Gn(){}var Kn=!1;function Zn(e,t,n){if(Kn)return e(t,n);Kn=!0;try{return Vn(e,t,n)}finally{Kn=!1,(null!==$n||null!==Bn)&&(Gn(),Un())}}function Xn(e,t){var n=e.stateNode;if(null===n)return null;var r=ji(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(wt(231,t,typeof n));return n}var Qn=!1;if(Rt)try{var Yn={};Object.defineProperty(Yn,"passive",{get:function(){Qn=!0}}),window.addEventListener("test",Yn,Yn),window.removeEventListener("test",Yn,Yn)}catch(On){Qn=!1}function Jn(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 er=!1,tr=null,nr=!1,rr=null,or={onError:function(e){er=!0,tr=e}};function ar(e,t,n,r,o,a,i,l,s){er=!1,tr=null,Jn.apply(or,arguments)}function ir(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 lr(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 sr(e){if(ir(e)!==e)throw Error(wt(188))}function cr(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=ir(e)))throw Error(wt(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 sr(o),e;if(a===r)return sr(o),t;a=a.sibling}throw Error(wt(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(wt(189))}}if(n.alternate!==r)throw Error(wt(190))}if(3!==n.tag)throw Error(wt(188));return n.stateNode.current===n?e:t}(e),null!==e?ur(e):null}function ur(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=ur(e);if(null!==t)return t;e=e.sibling}return null}var dr=St.unstable_scheduleCallback,pr=St.unstable_cancelCallback,fr=St.unstable_shouldYield,hr=St.unstable_requestPaint,mr=St.unstable_now,gr=St.unstable_getCurrentPriorityLevel,vr=St.unstable_ImmediatePriority,yr=St.unstable_UserBlockingPriority,br=St.unstable_NormalPriority,xr=St.unstable_LowPriority,Sr=St.unstable_IdlePriority,wr=null,Er=null;var Cr=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(kr(e)/Lr|0)|0},kr=Math.log,Lr=Math.LN2;var Rr=64,Or=4194304;function Ir(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 Pr(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=Ir(l):0!==(a&=i)&&(r=Ir(a))}else 0!==(i=n&~o)?r=Ir(i):0!==a&&(r=Ir(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-Cr(t)),r|=e[n],t&=~o;return r}function Tr(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 _r(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Nr(){var e=Rr;return 0==(4194240&(Rr<<=1))&&(Rr=64),e}function Mr(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function qr(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Cr(t)]=n}function Ar(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Cr(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Dr=0;function zr(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var jr,Fr,$r,Br,Wr,Hr=!1,Ur=[],Vr=null,Gr=null,Kr=null,Zr=new Map,Xr=new Map,Qr=[],Yr="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 Jr(e,t){switch(e){case"focusin":case"focusout":Vr=null;break;case"dragenter":case"dragleave":Gr=null;break;case"mouseover":case"mouseout":Kr=null;break;case"pointerover":case"pointerout":Zr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xr.delete(t.pointerId)}}function eo(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=Di(t))&&Fr(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function to(e){var t=Ai(e.target);if(null!==t){var n=ir(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=lr(n)))return e.blockedOn=t,void Wr(e.priority,(function(){$r(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 no(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=ho(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Di(n))&&Fr(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 ro(e,t,n){no(e)&&n.delete(t)}function oo(){Hr=!1,null!==Vr&&no(Vr)&&(Vr=null),null!==Gr&&no(Gr)&&(Gr=null),null!==Kr&&no(Kr)&&(Kr=null),Zr.forEach(ro),Xr.forEach(ro)}function ao(e,t){e.blockedOn===t&&(e.blockedOn=null,Hr||(Hr=!0,St.unstable_scheduleCallback(St.unstable_NormalPriority,oo)))}function io(e){function t(t){return ao(t,e)}if(0<Ur.length){ao(Ur[0],e);for(var n=1;n<Ur.length;n++){var r=Ur[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Vr&&ao(Vr,e),null!==Gr&&ao(Gr,e),null!==Kr&&ao(Kr,e),Zr.forEach(t),Xr.forEach(t),n=0;n<Qr.length;n++)(r=Qr[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Qr.length&&null===(n=Qr[0]).blockedOn;)to(n),null===n.blockedOn&&Qr.shift()}var lo=Dt.ReactCurrentBatchConfig,so=!0;function co(e,t,n,r){var o=Dr,a=lo.transition;lo.transition=null;try{Dr=1,po(e,t,n,r)}finally{Dr=o,lo.transition=a}}function uo(e,t,n,r){var o=Dr,a=lo.transition;lo.transition=null;try{Dr=4,po(e,t,n,r)}finally{Dr=o,lo.transition=a}}function po(e,t,n,r){if(so){var o=ho(e,t,n,r);if(null===o)si(e,t,r,fo,n),Jr(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Vr=eo(Vr,e,t,n,r,o),!0;case"dragenter":return Gr=eo(Gr,e,t,n,r,o),!0;case"mouseover":return Kr=eo(Kr,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Zr.set(a,eo(Zr.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Xr.set(a,eo(Xr.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Jr(e,r),4&t&&-1<Yr.indexOf(e)){for(;null!==o;){var a=Di(o);if(null!==a&&jr(a),null===(a=ho(e,t,n,r))&&si(e,t,r,fo,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else si(e,t,r,null,n)}}var fo=null;function ho(e,t,n,r){if(fo=null,null!==(e=Ai(e=jn(r))))if(null===(t=ir(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=lr(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 fo=e,null}function mo(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(gr()){case vr:return 1;case yr:return 4;case br:case xr:return 16;case Sr:return 536870912;default:return 16}default:return 16}}var go=null,vo=null,yo=null;function bo(){if(yo)return yo;var e,t,n=vo,r=n.length,o="value"in go?go.value:go.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 yo=o.slice(e,1<t?1-t:void 0)}function xo(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 So(){return!0}function wo(){return!1}function Eo(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)?So:wo,this.isPropagationStopped=wo,this}return en(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=So)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=So)},persist:function(){},isPersistent:So}),t}var Co,ko,Lo,Ro={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Oo=Eo(Ro),Io=en({},Ro,{view:0,detail:0}),Po=Eo(Io),To=en({},Io,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wo,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!==Lo&&(Lo&&"mousemove"===e.type?(Co=e.screenX-Lo.screenX,ko=e.screenY-Lo.screenY):ko=Co=0,Lo=e),Co)},movementY:function(e){return"movementY"in e?e.movementY:ko}}),_o=Eo(To),No=Eo(en({},To,{dataTransfer:0})),Mo=Eo(en({},Io,{relatedTarget:0})),qo=Eo(en({},Ro,{animationName:0,elapsedTime:0,pseudoElement:0})),Ao=en({},Ro,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Do=Eo(Ao),zo=Eo(en({},Ro,{data:0})),jo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fo={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"},$o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bo(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=$o[e])&&!!t[e]}function Wo(){return Bo}var Ho=en({},Io,{key:function(e){if(e.key){var t=jo[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=xo(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Fo[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wo,charCode:function(e){return"keypress"===e.type?xo(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?xo(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Uo=Eo(Ho),Vo=Eo(en({},To,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Go=Eo(en({},Io,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wo})),Ko=Eo(en({},Ro,{propertyName:0,elapsedTime:0,pseudoElement:0})),Zo=en({},To,{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}),Xo=Eo(Zo),Qo=[9,13,27,32],Yo=Rt&&"CompositionEvent"in window,Jo=null;Rt&&"documentMode"in document&&(Jo=document.documentMode);var ea=Rt&&"TextEvent"in window&&!Jo,ta=Rt&&(!Yo||Jo&&8<Jo&&11>=Jo),na=String.fromCharCode(32),ra=!1;function oa(e,t){switch(e){case"keyup":return-1!==Qo.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aa(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ia=!1;var la={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 sa(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!la[e.type]:"textarea"===t}function ca(e,t,n,r){Hn(r),0<(t=ui(t,"onChange")).length&&(n=new Oo("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ua=null,da=null;function pa(e){ni(e,0)}function fa(e){if(dn(zi(e)))return e}function ha(e,t){if("change"===e)return t}var ma=!1;if(Rt){var ga;if(Rt){var va="oninput"in document;if(!va){var ya=document.createElement("div");ya.setAttribute("oninput","return;"),va="function"==typeof ya.oninput}ga=va}else ga=!1;ma=ga&&(!document.documentMode||9<document.documentMode)}function ba(){ua&&(ua.detachEvent("onpropertychange",xa),da=ua=null)}function xa(e){if("value"===e.propertyName&&fa(da)){var t=[];ca(t,da,e,jn(e)),Zn(pa,t)}}function Sa(e,t,n){"focusin"===e?(ba(),da=n,(ua=t).attachEvent("onpropertychange",xa)):"focusout"===e&&ba()}function wa(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return fa(da)}function Ea(e,t){if("click"===e)return fa(t)}function Ca(e,t){if("input"===e||"change"===e)return fa(t)}var ka="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function La(e,t){if(ka(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(!Ot.call(t,o)||!ka(e[o],t[o]))return!1}return!0}function Ra(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Oa(e,t){var n,r=Ra(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=Ra(r)}}function Ia(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Ia(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Pa(){for(var e=window,t=pn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=pn((e=t.contentWindow).document)}return t}function Ta(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 _a(e){var t=Pa(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ia(n.ownerDocument.documentElement,n)){if(null!==r&&Ta(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=Oa(n,a);var i=Oa(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 Na=Rt&&"documentMode"in document&&11>=document.documentMode,Ma=null,qa=null,Aa=null,Da=!1;function za(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Da||null==Ma||Ma!==pn(r)||("selectionStart"in(r=Ma)&&Ta(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},Aa&&La(Aa,r)||(Aa=r,0<(r=ui(qa,"onSelect")).length&&(t=new Oo("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ma)))}function ja(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Fa={animationend:ja("Animation","AnimationEnd"),animationiteration:ja("Animation","AnimationIteration"),animationstart:ja("Animation","AnimationStart"),transitionend:ja("Transition","TransitionEnd")},$a={},Ba={};function Wa(e){if($a[e])return $a[e];if(!Fa[e])return e;var t,n=Fa[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ba)return $a[e]=n[t];return e}Rt&&(Ba=document.createElement("div").style,"AnimationEvent"in window||(delete Fa.animationend.animation,delete Fa.animationiteration.animation,delete Fa.animationstart.animation),"TransitionEvent"in window||delete Fa.transitionend.transition);var Ha=Wa("animationend"),Ua=Wa("animationiteration"),Va=Wa("animationstart"),Ga=Wa("transitionend"),Ka=new Map,Za="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 Xa(e,t){Ka.set(e,t),kt(t,[e])}for(var Qa=0;Qa<Za.length;Qa++){var Ya=Za[Qa];Xa(Ya.toLowerCase(),"on"+(Ya[0].toUpperCase()+Ya.slice(1)))}Xa(Ha,"onAnimationEnd"),Xa(Ua,"onAnimationIteration"),Xa(Va,"onAnimationStart"),Xa("dblclick","onDoubleClick"),Xa("focusin","onFocus"),Xa("focusout","onBlur"),Xa(Ga,"onTransitionEnd"),Lt("onMouseEnter",["mouseout","mouseover"]),Lt("onMouseLeave",["mouseout","mouseover"]),Lt("onPointerEnter",["pointerout","pointerover"]),Lt("onPointerLeave",["pointerout","pointerover"]),kt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),kt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),kt("onBeforeInput",["compositionend","keypress","textInput","paste"]),kt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),kt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),kt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ja="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(" "),ei=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ja));function ti(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,i,l,s){if(ar.apply(this,arguments),er){if(!er)throw Error(wt(198));var c=tr;er=!1,tr=null,nr||(nr=!0,rr=c)}}(r,t,void 0,e),e.currentTarget=null}function ni(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;ti(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;ti(o,l,c),a=s}}}if(nr)throw e=rr,nr=!1,rr=null,e}function ri(e,t){var n=t[Ni];void 0===n&&(n=t[Ni]=new Set);var r=e+"__bubble";n.has(r)||(li(t,e,2,!1),n.add(r))}function oi(e,t,n){var r=0;t&&(r|=4),li(n,e,r,t)}var ai="_reactListening"+Math.random().toString(36).slice(2);function ii(e){if(!e[ai]){e[ai]=!0,Et.forEach((function(t){"selectionchange"!==t&&(ei.has(t)||oi(t,!1,e),oi(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[ai]||(t[ai]=!0,oi("selectionchange",!1,t))}}function li(e,t,n,r){switch(mo(t)){case 1:var o=co;break;case 4:o=uo;break;default:o=po}n=o.bind(null,t,n,e),o=void 0,!Qn||"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 si(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=Ai(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}Zn((function(){var r=a,o=jn(n),i=[];e:{var l=Ka.get(e);if(void 0!==l){var s=Oo,c=e;switch(e){case"keypress":if(0===xo(n))break e;case"keydown":case"keyup":s=Uo;break;case"focusin":c="focus",s=Mo;break;case"focusout":c="blur",s=Mo;break;case"beforeblur":case"afterblur":s=Mo;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=_o;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=No;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Go;break;case Ha:case Ua:case Va:s=qo;break;case Ga:s=Ko;break;case"scroll":s=Po;break;case"wheel":s=Xo;break;case"copy":case"cut":case"paste":s=Do;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Vo}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=Xn(h,p))&&u.push(ci(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)||!Ai(c)&&!c[_i])&&(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)?Ai(c):null)&&(c!==(d=ir(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=_o,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Vo,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,Ai(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=di(f))h++;for(f=0,m=p;m;m=di(m))f++;for(;0<h-f;)u=di(u),h--;for(;0<f-h;)p=di(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=di(u),p=di(p)}u=null}else u=null;null!==s&&pi(i,l,s,u,!1),null!==c&&null!==d&&pi(i,d,c,u,!0)}if("select"===(s=(l=r?zi(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=ha;else if(sa(l))if(ma)g=Ca;else{g=wa;var v=Sa}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=Ea);switch(g&&(g=g(e,r))?ca(i,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&yn(l,"number",l.value)),v=r?zi(r):window,e){case"focusin":(sa(v)||"true"===v.contentEditable)&&(Ma=v,qa=r,Aa=null);break;case"focusout":Aa=qa=Ma=null;break;case"mousedown":Da=!0;break;case"contextmenu":case"mouseup":case"dragend":Da=!1,za(i,n,o);break;case"selectionchange":if(Na)break;case"keydown":case"keyup":za(i,n,o)}var y;if(Yo)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else ia?oa(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(ta&&"ko"!==n.locale&&(ia||"onCompositionStart"!==b?"onCompositionEnd"===b&&ia&&(y=bo()):(vo="value"in(go=o)?go.value:go.textContent,ia=!0)),0<(v=ui(r,b)).length&&(b=new zo(b,e,null,n,o),i.push({event:b,listeners:v}),y?b.data=y:null!==(y=aa(n))&&(b.data=y))),(y=ea?function(e,t){switch(e){case"compositionend":return aa(t);case"keypress":return 32!==t.which?null:(ra=!0,na);case"textInput":return(e=t.data)===na&&ra?null:e;default:return null}}(e,n):function(e,t){if(ia)return"compositionend"===e||!Yo&&oa(e,t)?(e=bo(),yo=vo=go=null,ia=!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 ta&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=ui(r,"onBeforeInput")).length&&(o=new zo("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=y))}ni(i,t)}))}function ci(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ui(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=Xn(e,n))&&r.unshift(ci(e,a,o)),null!=(a=Xn(e,t))&&r.push(ci(e,a,o))),e=e.return}return r}function di(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function pi(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=Xn(n,a))&&i.unshift(ci(n,s,l)):o||null!=(s=Xn(n,a))&&i.push(ci(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var fi=/\r\n?/g,hi=/\u0000|\uFFFD/g;function mi(e){return("string"==typeof e?e:""+e).replace(fi,"\n").replace(hi,"")}function gi(e,t,n){if(t=mi(t),mi(e)!==t&&n)throw Error(wt(425))}function vi(){}var yi=null,bi=null;function xi(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 Si="function"==typeof setTimeout?setTimeout:void 0,wi="function"==typeof clearTimeout?clearTimeout:void 0,Ei="function"==typeof Promise?Promise:void 0,Ci="function"==typeof queueMicrotask?queueMicrotask:void 0!==Ei?function(e){return Ei.resolve(null).then(e).catch(ki)}:Si;function ki(e){setTimeout((function(){throw e}))}function Li(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 io(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);io(t)}function Ri(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 Oi(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 Ii=Math.random().toString(36).slice(2),Pi="__reactFiber$"+Ii,Ti="__reactProps$"+Ii,_i="__reactContainer$"+Ii,Ni="__reactEvents$"+Ii,Mi="__reactListeners$"+Ii,qi="__reactHandles$"+Ii;function Ai(e){var t=e[Pi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[_i]||n[Pi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Oi(e);null!==e;){if(n=e[Pi])return n;e=Oi(e)}return t}n=(e=n).parentNode}return null}function Di(e){return!(e=e[Pi]||e[_i])||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(wt(33))}function ji(e){return e[Ti]||null}var Fi=[],$i=-1;function Bi(e){return{current:e}}function Wi(e){0>$i||(e.current=Fi[$i],Fi[$i]=null,$i--)}function Hi(e,t){$i++,Fi[$i]=e.current,e.current=t}var Ui={},Vi=Bi(Ui),Gi=Bi(!1),Ki=Ui;function Zi(e,t){var n=e.type.contextTypes;if(!n)return Ui;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 Xi(e){return null!=(e=e.childContextTypes)}function Qi(){Wi(Gi),Wi(Vi)}function Yi(e,t,n){if(Vi.current!==Ui)throw Error(wt(168));Hi(Vi,t),Hi(Gi,n)}function Ji(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(wt(108,ln(e)||"Unknown",o));return en({},n,r)}function el(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ui,Ki=Vi.current,Hi(Vi,e),Hi(Gi,Gi.current),!0}function tl(e,t,n){var r=e.stateNode;if(!r)throw Error(wt(169));n?(e=Ji(e,t,Ki),r.__reactInternalMemoizedMergedChildContext=e,Wi(Gi),Wi(Vi),Hi(Vi,e)):Wi(Gi),Hi(Gi,n)}var nl=null,rl=!1,ol=!1;function al(e){null===nl?nl=[e]:nl.push(e)}function il(){if(!ol&&null!==nl){ol=!0;var e=0,t=Dr;try{var n=nl;for(Dr=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}nl=null,rl=!1}catch(t){throw null!==nl&&(nl=nl.slice(e+1)),dr(vr,il),t}finally{Dr=t,ol=!1}}return null}var ll=[],sl=0,cl=null,ul=0,dl=[],pl=0,fl=null,hl=1,ml="";function gl(e,t){ll[sl++]=ul,ll[sl++]=cl,cl=e,ul=t}function vl(e,t,n){dl[pl++]=hl,dl[pl++]=ml,dl[pl++]=fl,fl=e;var r=hl;e=ml;var o=32-Cr(r)-1;r&=~(1<<o),n+=1;var a=32-Cr(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,hl=1<<32-Cr(t)+o|n<<o|r,ml=a+e}else hl=1<<a|n<<o|r,ml=e}function yl(e){null!==e.return&&(gl(e,1),vl(e,1,0))}function bl(e){for(;e===cl;)cl=ll[--sl],ll[sl]=null,ul=ll[--sl],ll[sl]=null;for(;e===fl;)fl=dl[--pl],dl[pl]=null,ml=dl[--pl],dl[pl]=null,hl=dl[--pl],dl[pl]=null}var xl=null,Sl=null,wl=!1,El=null;function Cl(e,t){var n=Kd(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 kl(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,xl=e,Sl=Ri(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,xl=e,Sl=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==fl?{id:hl,overflow:ml}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Kd(18,null,null,0)).stateNode=t,n.return=e,e.child=n,xl=e,Sl=null,!0);default:return!1}}function Ll(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function Rl(e){if(wl){var t=Sl;if(t){var n=t;if(!kl(e,t)){if(Ll(e))throw Error(wt(418));t=Ri(n.nextSibling);var r=xl;t&&kl(e,t)?Cl(r,n):(e.flags=-4097&e.flags|2,wl=!1,xl=e)}}else{if(Ll(e))throw Error(wt(418));e.flags=-4097&e.flags|2,wl=!1,xl=e}}}function Ol(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;xl=e}function Il(e){if(e!==xl)return!1;if(!wl)return Ol(e),wl=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!xi(e.type,e.memoizedProps)),t&&(t=Sl)){if(Ll(e))throw Pl(),Error(wt(418));for(;t;)Cl(e,t),t=Ri(t.nextSibling)}if(Ol(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(wt(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Sl=Ri(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Sl=null}}else Sl=xl?Ri(e.stateNode.nextSibling):null;return!0}function Pl(){for(var e=Sl;e;)e=Ri(e.nextSibling)}function Tl(){Sl=xl=null,wl=!1}function _l(e){null===El?El=[e]:El.push(e)}var Nl=Dt.ReactCurrentBatchConfig;function Ml(e,t){if(e&&e.defaultProps){for(var n in t=en({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var ql=Bi(null),Al=null,Dl=null,zl=null;function jl(){zl=Dl=Al=null}function Fl(e){var t=ql.current;Wi(ql),e._currentValue=t}function $l(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 Bl(e,t){Al=e,zl=Dl=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Dc=!0),e.firstContext=null)}function Wl(e){var t=e._currentValue;if(zl!==e)if(e={context:e,memoizedValue:t,next:null},null===Dl){if(null===Al)throw Error(wt(308));Dl=e,Al.dependencies={lanes:0,firstContext:e}}else Dl=Dl.next=e;return t}var Hl=null;function Ul(e){null===Hl?Hl=[e]:Hl.push(e)}function Vl(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ul(t)):(n.next=o.next,o.next=n),t.interleaved=n,Gl(e,r)}function Gl(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 Kl=!1;function Zl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xl(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 Ql(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Yl(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Uu)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Gl(e,n)}return null===(o=r.interleaved)?(t.next=t,Ul(r)):(t.next=o.next,o.next=t),r.interleaved=t,Gl(e,n)}function Jl(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,Ar(e,n)}}function es(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 ts(e,t,n,r){var o=e.updateQueue;Kl=!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=en({},d,p);break e;case 2:Kl=!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);Ju|=i,e.lanes=i,e.memoizedState=d}}function ns(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(wt(191,o));o.call(r)}}}var rs=(new xt.Component).refs;function os(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:en({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var as={isMounted:function(e){return!!(e=e._reactInternals)&&ir(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=vd(),o=yd(e),a=Ql(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Yl(e,a,o))&&(bd(t,e,o,r),Jl(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=vd(),o=yd(e),a=Ql(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Yl(e,a,o))&&(bd(t,e,o,r),Jl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=vd(),r=yd(e),o=Ql(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Yl(e,o,r))&&(bd(t,e,r,n),Jl(t,e,r))}};function is(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!La(n,r)||!La(o,a))}function ls(e,t,n){var r=!1,o=Ui,a=t.contextType;return"object"==typeof a&&null!==a?a=Wl(a):(o=Xi(t)?Ki:Vi.current,a=(r=null!=(r=t.contextTypes))?Zi(e,o):Ui),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=as,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function ss(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&&as.enqueueReplaceState(t,t.state,null)}function cs(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=rs,Zl(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Wl(a):(a=Xi(t)?Ki:Vi.current,o.context=Zi(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(os(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&&as.enqueueReplaceState(o,o.state,null),ts(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function us(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(wt(309));var r=n.stateNode}if(!r)throw Error(wt(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;t===rs&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(wt(284));if(!n._owner)throw Error(wt(290,e))}return e}function ds(e,t){throw e=Object.prototype.toString.call(t),Error(wt(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ps(e){return(0,e._init)(e._payload)}function fs(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=Xd(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=ep(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===Ft?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===Zt&&ps(a)===t.type)?((r=o(t,n.props)).ref=us(e,t,n),r.return=e,r):((r=Qd(n.type,n.key,n.props,null,e.mode,r)).ref=us(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=tp(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=Yd(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=ep(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case zt:return(n=Qd(t.type,t.key,t.props,null,e.mode,n)).ref=us(e,null,t),n.return=e,n;case jt:return(t=tp(t,e.mode,n)).return=e,t;case Zt:return d(e,(0,t._init)(t._payload),n)}if(bn(t)||Yt(t))return(t=Yd(t,e.mode,n,null)).return=e,t;ds(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 jt:return n.key===o?c(e,t,n,r):null;case Zt:return p(e,t,(o=n._init)(n._payload),r)}if(bn(n)||Yt(n))return null!==o?null:u(e,t,n,r,null);ds(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 jt:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Zt:return f(e,t,n,(0,r._init)(r._payload),o)}if(bn(r)||Yt(r))return u(t,e=e.get(n)||null,r,o,null);ds(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),wl&&gl(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 wl&&gl(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)})),wl&&gl(o,m),c}function m(o,i,l,s){var c=Yt(l);if("function"!=typeof c)throw Error(wt(150));if(null==(l=c.call(l)))throw Error(wt(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 y=p(o,h,v.value,s);if(null===y){null===h&&(h=g);break}e&&h&&null===y.alternate&&t(o,h),i=a(y,i,m),null===u?c=y:u.sibling=y,u=y,h=g}if(v.done)return n(o,h),wl&&gl(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 wl&&gl(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)})),wl&&gl(o,m),c}return function e(r,a,l,s){if("object"==typeof l&&null!==l&&l.type===Ft&&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)===Ft){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===Zt&&ps(c)===u.type){n(r,u.sibling),(a=o(u,l.props)).ref=us(r,u,l),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}l.type===Ft?((a=Yd(l.props.children,r.mode,s,l.key)).return=r,r=a):((s=Qd(l.type,l.key,l.props,null,r.mode,s)).ref=us(r,a,l),s.return=r,r=s)}return i(r);case jt: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=tp(l,r.mode,s)).return=r,r=a}return i(r);case Zt:return e(r,a,(u=l._init)(l._payload),s)}if(bn(l))return h(r,a,l,s);if(Yt(l))return m(r,a,l,s);ds(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=ep(l,r.mode,s)).return=r,r=a),i(r)):n(r,a)}}var hs=fs(!0),ms=fs(!1),gs={},vs=Bi(gs),ys=Bi(gs),bs=Bi(gs);function xs(e){if(e===gs)throw Error(wt(174));return e}function Ss(e,t){switch(Hi(bs,t),Hi(ys,e),Hi(vs,gs),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ln(null,"");break;default:t=Ln(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Wi(vs),Hi(vs,t)}function ws(){Wi(vs),Wi(ys),Wi(bs)}function Es(e){xs(bs.current);var t=xs(vs.current),n=Ln(t,e.type);t!==n&&(Hi(ys,e),Hi(vs,n))}function Cs(e){ys.current===e&&(Wi(vs),Wi(ys))}var ks=Bi(0);function Ls(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 Rs=[];function Os(){for(var e=0;e<Rs.length;e++)Rs[e]._workInProgressVersionPrimary=null;Rs.length=0}var Is=Dt.ReactCurrentDispatcher,Ps=Dt.ReactCurrentBatchConfig,Ts=0,_s=null,Ns=null,Ms=null,qs=!1,As=!1,Ds=0,zs=0;function js(){throw Error(wt(321))}function Fs(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ka(e[n],t[n]))return!1;return!0}function $s(e,t,n,r,o,a){if(Ts=a,_s=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Is.current=null===e||null===e.memoizedState?Cc:kc,e=n(r,o),As){a=0;do{if(As=!1,Ds=0,25<=a)throw Error(wt(301));a+=1,Ms=Ns=null,t.updateQueue=null,Is.current=Lc,e=n(r,o)}while(As)}if(Is.current=Ec,t=null!==Ns&&null!==Ns.next,Ts=0,Ms=Ns=_s=null,qs=!1,t)throw Error(wt(300));return e}function Bs(){var e=0!==Ds;return Ds=0,e}function Ws(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ms?_s.memoizedState=Ms=e:Ms=Ms.next=e,Ms}function Hs(){if(null===Ns){var e=_s.alternate;e=null!==e?e.memoizedState:null}else e=Ns.next;var t=null===Ms?_s.memoizedState:Ms.next;if(null!==t)Ms=t,Ns=e;else{if(null===e)throw Error(wt(310));e={memoizedState:(Ns=e).memoizedState,baseState:Ns.baseState,baseQueue:Ns.baseQueue,queue:Ns.queue,next:null},null===Ms?_s.memoizedState=Ms=e:Ms=Ms.next=e}return Ms}function Us(e,t){return"function"==typeof t?t(e):t}function Vs(e){var t=Hs(),n=t.queue;if(null===n)throw Error(wt(311));n.lastRenderedReducer=e;var r=Ns,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var i=o.next;o.next=a.next,a.next=i}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=i=null,s=null,c=a;do{var u=c.lane;if((Ts&u)===u)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(l=s=d,i=r):s=s.next=d,_s.lanes|=u,Ju|=u}c=c.next}while(null!==c&&c!==a);null===s?i=r:s.next=l,ka(r,t.memoizedState)||(Dc=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,_s.lanes|=a,Ju|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Gs(e){var t=Hs(),n=t.queue;if(null===n)throw Error(wt(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);ka(a,t.memoizedState)||(Dc=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ks(){}function Zs(e,t){var n=_s,r=Hs(),o=t(),a=!ka(r.memoizedState,o);if(a&&(r.memoizedState=o,Dc=!0),r=r.queue,lc(Ys.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==Ms&&1&Ms.memoizedState.tag){if(n.flags|=2048,nc(9,Qs.bind(null,n,r,o,t),void 0,null),null===Vu)throw Error(wt(349));0!=(30&Ts)||Xs(n,t,o)}return o}function Xs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=_s.updateQueue)?(t={lastEffect:null,stores:null},_s.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Qs(e,t,n,r){t.value=n,t.getSnapshot=r,Js(t)&&ec(e)}function Ys(e,t,n){return n((function(){Js(t)&&ec(e)}))}function Js(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ka(e,n)}catch(e){return!0}}function ec(e){var t=Gl(e,1);null!==t&&bd(t,e,1,-1)}function tc(e){var t=Ws();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Us,lastRenderedState:e},t.queue=e,e=e.dispatch=bc.bind(null,_s,e),[t.memoizedState,e]}function nc(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=_s.updateQueue)?(t={lastEffect:null,stores:null},_s.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function rc(){return Hs().memoizedState}function oc(e,t,n,r){var o=Ws();_s.flags|=e,o.memoizedState=nc(1|t,n,void 0,void 0===r?null:r)}function ac(e,t,n,r){var o=Hs();r=void 0===r?null:r;var a=void 0;if(null!==Ns){var i=Ns.memoizedState;if(a=i.destroy,null!==r&&Fs(r,i.deps))return void(o.memoizedState=nc(t,n,a,r))}_s.flags|=e,o.memoizedState=nc(1|t,n,a,r)}function ic(e,t){return oc(8390656,8,e,t)}function lc(e,t){return ac(2048,8,e,t)}function sc(e,t){return ac(4,2,e,t)}function cc(e,t){return ac(4,4,e,t)}function uc(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function dc(e,t,n){return n=null!=n?n.concat([e]):null,ac(4,4,uc.bind(null,t,e),n)}function pc(){}function fc(e,t){var n=Hs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Fs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function hc(e,t){var n=Hs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Fs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function mc(e,t,n){return 0==(21&Ts)?(e.baseState&&(e.baseState=!1,Dc=!0),e.memoizedState=n):(ka(n,t)||(n=Nr(),_s.lanes|=n,Ju|=n,e.baseState=!0),t)}function gc(e,t){var n=Dr;Dr=0!==n&&4>n?n:4,e(!0);var r=Ps.transition;Ps.transition={};try{e(!1),t()}finally{Dr=n,Ps.transition=r}}function vc(){return Hs().memoizedState}function yc(e,t,n){var r=yd(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xc(e))Sc(t,n);else if(null!==(n=Vl(e,t,n,r))){bd(n,e,r,vd()),wc(n,t,r)}}function bc(e,t,n){var r=yd(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xc(e))Sc(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,ka(l,i)){var s=t.interleaved;return null===s?(o.next=o,Ul(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Vl(e,t,o,r))&&(bd(n,e,r,o=vd()),wc(n,t,r))}}function xc(e){var t=e.alternate;return e===_s||null!==t&&t===_s}function Sc(e,t){As=qs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wc(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ar(e,n)}}var Ec={readContext:Wl,useCallback:js,useContext:js,useEffect:js,useImperativeHandle:js,useInsertionEffect:js,useLayoutEffect:js,useMemo:js,useReducer:js,useRef:js,useState:js,useDebugValue:js,useDeferredValue:js,useTransition:js,useMutableSource:js,useSyncExternalStore:js,useId:js,unstable_isNewReconciler:!1},Cc={readContext:Wl,useCallback:function(e,t){return Ws().memoizedState=[e,void 0===t?null:t],e},useContext:Wl,useEffect:ic,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,oc(4194308,4,uc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oc(4194308,4,e,t)},useInsertionEffect:function(e,t){return oc(4,2,e,t)},useMemo:function(e,t){var n=Ws();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ws();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=yc.bind(null,_s,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ws().memoizedState=e},useState:tc,useDebugValue:pc,useDeferredValue:function(e){return Ws().memoizedState=e},useTransition:function(){var e=tc(!1),t=e[0];return e=gc.bind(null,e[1]),Ws().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=_s,o=Ws();if(wl){if(void 0===n)throw Error(wt(407));n=n()}else{if(n=t(),null===Vu)throw Error(wt(349));0!=(30&Ts)||Xs(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,ic(Ys.bind(null,r,a,e),[e]),r.flags|=2048,nc(9,Qs.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Ws(),t=Vu.identifierPrefix;if(wl){var n=ml;t=":"+t+"R"+(n=(hl&~(1<<32-Cr(hl)-1)).toString(32)+n),0<(n=Ds++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=zs++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},kc={readContext:Wl,useCallback:fc,useContext:Wl,useEffect:lc,useImperativeHandle:dc,useInsertionEffect:sc,useLayoutEffect:cc,useMemo:hc,useReducer:Vs,useRef:rc,useState:function(){return Vs(Us)},useDebugValue:pc,useDeferredValue:function(e){return mc(Hs(),Ns.memoizedState,e)},useTransition:function(){return[Vs(Us)[0],Hs().memoizedState]},useMutableSource:Ks,useSyncExternalStore:Zs,useId:vc,unstable_isNewReconciler:!1},Lc={readContext:Wl,useCallback:fc,useContext:Wl,useEffect:lc,useImperativeHandle:dc,useInsertionEffect:sc,useLayoutEffect:cc,useMemo:hc,useReducer:Gs,useRef:rc,useState:function(){return Gs(Us)},useDebugValue:pc,useDeferredValue:function(e){var t=Hs();return null===Ns?t.memoizedState=e:mc(t,Ns.memoizedState,e)},useTransition:function(){return[Gs(Us)[0],Hs().memoizedState]},useMutableSource:Ks,useSyncExternalStore:Zs,useId:vc,unstable_isNewReconciler:!1};function Rc(e,t){try{var n="",r=t;do{n+=on(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 Oc(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Ic(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Pc="function"==typeof WeakMap?WeakMap:Map;function Tc(e,t,n){(n=Ql(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ld||(ld=!0,sd=r),Ic(0,t)},n}function _c(e,t,n){(n=Ql(-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(){Ic(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){Ic(0,t),"function"!=typeof r&&(null===cd?cd=new Set([this]):cd.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Nc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Pc;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=Bd.bind(null,e,t,n),t.then(e,e))}function Mc(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 qc(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=Ql(-1,1)).tag=2,Yl(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Ac=Dt.ReactCurrentOwner,Dc=!1;function zc(e,t,n,r){t.child=null===e?ms(t,null,n,r):hs(t,e.child,n,r)}function jc(e,t,n,r,o){n=n.render;var a=t.ref;return Bl(t,o),r=$s(e,t,n,r,a,o),n=Bs(),null===e||Dc?(wl&&n&&yl(t),t.flags|=1,zc(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,lu(e,t,o))}function Fc(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Zd(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Qd(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,$c(e,t,a,r,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:La)(i,r)&&e.ref===t.ref)return lu(e,t,o)}return t.flags|=1,(e=Xd(a,r)).ref=t.ref,e.return=t,t.child=e}function $c(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(La(a,r)&&e.ref===t.ref){if(Dc=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,lu(e,t,o);0!=(131072&e.flags)&&(Dc=!0)}}return Hc(e,t,n,r,o)}function Bc(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},Hi(Xu,Zu),Zu|=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,Hi(Xu,Zu),Zu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Hi(Xu,Zu),Zu|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Hi(Xu,Zu),Zu|=r;return zc(e,t,o,n),t.child}function Wc(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Hc(e,t,n,r,o){var a=Xi(n)?Ki:Vi.current;return a=Zi(t,a),Bl(t,o),n=$s(e,t,n,r,a,o),r=Bs(),null===e||Dc?(wl&&r&&yl(t),t.flags|=1,zc(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,lu(e,t,o))}function Uc(e,t,n,r,o){if(Xi(n)){var a=!0;el(t)}else a=!1;if(Bl(t,o),null===t.stateNode)iu(e,t),ls(t,n,r),cs(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=Wl(c):c=Zi(t,c=Xi(n)?Ki:Vi.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)&&ss(t,i,r,c),Kl=!1;var p=t.memoizedState;i.state=p,ts(t,r,i,o),s=t.memoizedState,l!==r||p!==s||Gi.current||Kl?("function"==typeof u&&(os(t,n,u,r),s=t.memoizedState),(l=Kl||is(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,Xl(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Ml(t.type,l),i.props=c,d=t.pendingProps,p=i.context,"object"==typeof(s=n.contextType)&&null!==s?s=Wl(s):s=Zi(t,s=Xi(n)?Ki:Vi.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)&&ss(t,i,r,s),Kl=!1,p=t.memoizedState,i.state=p,ts(t,r,i,o);var h=t.memoizedState;l!==d||p!==h||Gi.current||Kl?("function"==typeof f&&(os(t,n,f,r),h=t.memoizedState),(c=Kl||is(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 Vc(e,t,n,r,a,o)}function Vc(e,t,n,r,o,a){Wc(e,t);var i=0!=(128&t.flags);if(!r&&!i)return o&&tl(t,n,!1),lu(e,t,a);r=t.stateNode,Ac.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=hs(t,e.child,null,a),t.child=hs(t,null,l,a)):zc(e,t,l,a),t.memoizedState=r.state,o&&tl(t,n,!0),t.child}function Gc(e){var t=e.stateNode;t.pendingContext?Yi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Yi(0,t.context,!1),Ss(e,t.containerInfo)}function Kc(e,t,n,r,o){return Tl(),_l(o),t.flags|=256,zc(e,t,n,r),t.child}var Zc,Xc,Qc,Yc={dehydrated:null,treeContext:null,retryLane:0};function Jc(e){return{baseLanes:e,cachePool:null,transitions:null}}function eu(e,t,n){var r,o=t.pendingProps,a=ks.current,i=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Hi(ks,1&a),null===e)return Rl(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=Jd(l,o,0,null),e=Yd(e,o,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Jc(n),t.memoizedState=Yc,e):tu(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,nu(e,t,i,r=Oc(Error(wt(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Jd({mode:"visible",children:r.children},o,0,null),(a=Yd(a,o,i,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&hs(t,e.child,null,i),t.child.memoizedState=Jc(i),t.memoizedState=Yc,a);if(0==(1&t.mode))return nu(e,t,i,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,nu(e,t,i,r=Oc(a=Error(wt(419)),r,void 0))}if(l=0!=(i&e.childLanes),Dc||l){if(null!==(r=Vu)){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,Gl(e,o),bd(r,e,o,-1))}return _d(),nu(e,t,i,r=Oc(Error(wt(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Hd.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,Sl=Ri(o.nextSibling),xl=t,wl=!0,El=null,null!==e&&(dl[pl++]=hl,dl[pl++]=ml,dl[pl++]=fl,hl=e.id,ml=e.overflow,fl=t),t=tu(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=Xd(a,s)).subtreeFlags=14680064&a.subtreeFlags,null!==r?i=Xd(r,i):(i=Yd(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)?Jc(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Yc,o}return e=(i=e.child).sibling,o=Xd(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 tu(e,t){return(t=Jd({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function nu(e,t,n,r){return null!==r&&_l(r),hs(t,e.child,null,n),(e=tu(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function ru(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),$l(e.return,t,n)}function ou(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 au(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(zc(e,t,r.children,n),0!=(2&(r=ks.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ru(e,n,t);else if(19===e.tag)ru(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(Hi(ks,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Ls(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ou(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===Ls(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ou(t,!0,n,null,a);break;case"together":ou(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function iu(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function lu(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ju|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(wt(153));if(null!==t.child){for(n=Xd(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Xd(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function su(e,t){if(!wl)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 cu(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 uu(e,t,n){var r=t.pendingProps;switch(bl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return cu(t),null;case 1:case 17:return Xi(t.type)&&Qi(),cu(t),null;case 3:return r=t.stateNode,ws(),Wi(Gi),Wi(Vi),Os(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Il(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==El&&(Ed(El),El=null))),cu(t),null;case 5:Cs(t);var o=xs(bs.current);if(n=t.type,null!==e&&null!=t.stateNode)Xc(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(wt(166));return cu(t),null}if(e=xs(vs.current),Il(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Pi]=t,r[Ti]=a,e=0!=(1&t.mode),n){case"dialog":ri("cancel",r),ri("close",r);break;case"iframe":case"object":case"embed":ri("load",r);break;case"video":case"audio":for(o=0;o<Ja.length;o++)ri(Ja[o],r);break;case"source":ri("error",r);break;case"img":case"image":case"link":ri("error",r),ri("load",r);break;case"details":ri("toggle",r);break;case"input":hn(r,a),ri("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},ri("invalid",r);break;case"textarea":wn(r,a),ri("invalid",r)}for(var i in An(n,a),o=null,a)if(a.hasOwnProperty(i)){var l=a[i];"children"===i?"string"==typeof l?r.textContent!==l&&(!0!==a.suppressHydrationWarning&&gi(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&gi(r.textContent,l,e),o=["children",""+l]):Ct.hasOwnProperty(i)&&null!=l&&"onScroll"===i&&ri("scroll",r)}switch(n){case"input":un(r),vn(r,a,!0);break;case"textarea":un(r),Cn(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=vi)}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=kn(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[Pi]=t,e[Ti]=r,Zc(e,t),t.stateNode=e;e:{switch(i=Dn(n,r),n){case"dialog":ri("cancel",e),ri("close",e),o=r;break;case"iframe":case"object":case"embed":ri("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ja.length;o++)ri(Ja[o],e);o=r;break;case"source":ri("error",e),o=r;break;case"img":case"image":case"link":ri("error",e),ri("load",e),o=r;break;case"details":ri("toggle",e),o=r;break;case"input":hn(e,r),o=fn(e,r),ri("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=en({},r,{value:void 0}),ri("invalid",e);break;case"textarea":wn(e,r),o=Sn(e,r),ri("invalid",e)}for(a in An(n,o),l=o)if(l.hasOwnProperty(a)){var s=l[a];"style"===a?Mn(e,s):"dangerouslySetInnerHTML"===a?null!=(s=s?s.__html:void 0)&&In(e,s):"children"===a?"string"==typeof s?("textarea"!==n||""!==s)&&Pn(e,s):"number"==typeof s&&Pn(e,""+s):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(Ct.hasOwnProperty(a)?null!=s&&"onScroll"===a&&ri("scroll",e):null!=s&&At(e,a,s,i))}switch(n){case"input":un(e),vn(e,r,!1);break;case"textarea":un(e),Cn(e);break;case"option":null!=r.value&&e.setAttribute("value",""+sn(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?xn(e,!!r.multiple,a,!1):null!=r.defaultValue&&xn(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=vi)}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 cu(t),null;case 6:if(e&&null!=t.stateNode)Qc(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(wt(166));if(n=xs(bs.current),xs(vs.current),Il(t)){if(r=t.stateNode,n=t.memoizedProps,r[Pi]=t,(a=r.nodeValue!==n)&&null!==(e=xl))switch(e.tag){case 3:gi(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&gi(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Pi]=t,t.stateNode=r}return cu(t),null;case 13:if(Wi(ks),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(wl&&null!==Sl&&0!=(1&t.mode)&&0==(128&t.flags))Pl(),Tl(),t.flags|=98560,a=!1;else if(a=Il(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(wt(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(wt(317));a[Pi]=t}else Tl(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;cu(t),a=!1}else null!==El&&(Ed(El),El=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ks.current)?0===Qu&&(Qu=3):_d())),null!==t.updateQueue&&(t.flags|=4),cu(t),null);case 4:return ws(),null===e&&ii(t.stateNode.containerInfo),cu(t),null;case 10:return Fl(t.type._context),cu(t),null;case 19:if(Wi(ks),null===(a=t.memoizedState))return cu(t),null;if(r=0!=(128&t.flags),null===(i=a.rendering))if(r)su(a,!1);else{if(0!==Qu||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=Ls(e))){for(t.flags|=128,su(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 Hi(ks,1&ks.current|2),t.child}e=e.sibling}null!==a.tail&&mr()>ad&&(t.flags|=128,r=!0,su(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Ls(i))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),su(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!wl)return cu(t),null}else 2*mr()-a.renderingStartTime>ad&&1073741824!==n&&(t.flags|=128,r=!0,su(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=mr(),t.sibling=null,n=ks.current,Hi(ks,r?1&n|2:1&n),t):(cu(t),null);case 22:case 23:return Od(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Zu)&&(cu(t),6&t.subtreeFlags&&(t.flags|=8192)):cu(t),null;case 24:case 25:return null}throw Error(wt(156,t.tag))}function du(e,t){switch(bl(t),t.tag){case 1:return Xi(t.type)&&Qi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ws(),Wi(Gi),Wi(Vi),Os(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Cs(t),null;case 13:if(Wi(ks),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(wt(340));Tl()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Wi(ks),null;case 4:return ws(),null;case 10:return Fl(t.type._context),null;case 22:case 23:return Od(),null;default:return null}}Zc=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}},Xc=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,xs(vs.current);var a,i=null;switch(n){case"input":o=fn(e,o),r=fn(e,r),i=[];break;case"select":o=en({},o,{value:void 0}),r=en({},r,{value:void 0}),i=[];break;case"textarea":o=Sn(e,o),r=Sn(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=vi)}for(c in An(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&&(Ct.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&&(Ct.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&ri("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)}},Qc=function(e,t,n,r){n!==r&&(t.flags|=4)};var pu=!1,fu=!1,hu="function"==typeof WeakSet?WeakSet:Set,mu=null;function gu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){$d(e,t,n)}else n.current=null}function vu(e,t,n){try{n()}catch(n){$d(e,t,n)}}var yu=!1;function bu(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&&vu(t,n,a)}o=o.next}while(o!==r)}}function xu(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 Su(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 wu(e){var t=e.alternate;null!==t&&(e.alternate=null,wu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Pi],delete t[Ti],delete t[Ni],delete t[Mi],delete t[qi])),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 Eu(e){return 5===e.tag||3===e.tag||4===e.tag}function Cu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Eu(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 ku(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=vi));else if(4!==r&&null!==(e=e.child))for(ku(e,t,n),e=e.sibling;null!==e;)ku(e,t,n),e=e.sibling}function Lu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Lu(e,t,n),e=e.sibling;null!==e;)Lu(e,t,n),e=e.sibling}var Ru=null,Ou=!1;function Iu(e,t,n){for(n=n.child;null!==n;)Pu(e,t,n),n=n.sibling}function Pu(e,t,n){if(Er&&"function"==typeof Er.onCommitFiberUnmount)try{Er.onCommitFiberUnmount(wr,n)}catch(e){}switch(n.tag){case 5:fu||gu(n,t);case 6:var r=Ru,o=Ou;Ru=null,Iu(e,t,n),Ou=o,null!==(Ru=r)&&(Ou?(e=Ru,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Ru.removeChild(n.stateNode));break;case 18:null!==Ru&&(Ou?(e=Ru,n=n.stateNode,8===e.nodeType?Li(e.parentNode,n):1===e.nodeType&&Li(e,n),io(e)):Li(Ru,n.stateNode));break;case 4:r=Ru,o=Ou,Ru=n.stateNode.containerInfo,Ou=!0,Iu(e,t,n),Ru=r,Ou=o;break;case 0:case 11:case 14:case 15:if(!fu&&(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))&&vu(n,t,i),o=o.next}while(o!==r)}Iu(e,t,n);break;case 1:if(!fu&&(gu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){$d(n,t,e)}Iu(e,t,n);break;case 21:Iu(e,t,n);break;case 22:1&n.mode?(fu=(r=fu)||null!==n.memoizedState,Iu(e,t,n),fu=r):Iu(e,t,n);break;default:Iu(e,t,n)}}function Tu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new hu),t.forEach((function(t){var r=Ud.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function _u(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:Ru=l.stateNode,Ou=!1;break e;case 3:case 4:Ru=l.stateNode.containerInfo,Ou=!0;break e}l=l.return}if(null===Ru)throw Error(wt(160));Pu(a,i,o),Ru=null,Ou=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){$d(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Nu(t,e),t=t.sibling}function Nu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_u(t,e),Mu(e),4&r){try{bu(3,e,e.return),xu(3,e)}catch(t){$d(e,e.return,t)}try{bu(5,e,e.return)}catch(t){$d(e,e.return,t)}}break;case 1:_u(t,e),Mu(e),512&r&&null!==n&&gu(n,n.return);break;case 5:if(_u(t,e),Mu(e),512&r&&null!==n&&gu(n,n.return),32&e.flags){var o=e.stateNode;try{Pn(o,"")}catch(t){$d(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&&mn(o,a),Dn(l,i);var c=Dn(l,a);for(i=0;i<s.length;i+=2){var u=s[i],d=s[i+1];"style"===u?Mn(o,d):"dangerouslySetInnerHTML"===u?In(o,d):"children"===u?Pn(o,d):At(o,u,d,c)}switch(l){case"input":gn(o,a);break;case"textarea":En(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?xn(o,!!a.multiple,f,!1):p!==!!a.multiple&&(null!=a.defaultValue?xn(o,!!a.multiple,a.defaultValue,!0):xn(o,!!a.multiple,a.multiple?[]:"",!1))}o[Ti]=a}catch(t){$d(e,e.return,t)}}break;case 6:if(_u(t,e),Mu(e),4&r){if(null===e.stateNode)throw Error(wt(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){$d(e,e.return,t)}}break;case 3:if(_u(t,e),Mu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{io(t.containerInfo)}catch(t){$d(e,e.return,t)}break;case 4:default:_u(t,e),Mu(e);break;case 13:_u(t,e),Mu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(od=mr())),4&r&&Tu(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(fu=(c=fu)||u,_u(t,e),fu=c):_u(t,e),Mu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&0!=(1&e.mode))for(mu=e,u=e.child;null!==u;){for(d=mu=u;null!==mu;){switch(f=(p=mu).child,p.tag){case 0:case 11:case 14:case 15:bu(4,p,p.return);break;case 1:gu(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){$d(r,n,e)}}break;case 5:gu(p,p.return);break;case 22:if(null!==p.memoizedState){zu(d);continue}}null!==f?(f.return=p,mu=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=Nn("display",i))}catch(t){$d(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){$d(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:_u(t,e),Mu(e),4&r&&Tu(e);case 21:}}function Mu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(Eu(n)){var r=n;break e}n=n.return}throw Error(wt(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(Pn(o,""),r.flags&=-33),Lu(e,Cu(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ku(e,Cu(e),a);break;default:throw Error(wt(161))}}catch(t){$d(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function qu(e,t,n){mu=e,Au(e)}function Au(e,t,n){for(var r=0!=(1&e.mode);null!==mu;){var o=mu,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||pu;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||fu;l=pu;var c=fu;if(pu=i,(fu=s)&&!c)for(mu=o;null!==mu;)s=(i=mu).child,22===i.tag&&null!==i.memoizedState?ju(o):null!==s?(s.return=i,mu=s):ju(o);for(;null!==a;)mu=a,Au(a),a=a.sibling;mu=o,pu=l,fu=c}Du(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,mu=a):Du(e)}}function Du(e){for(;null!==mu;){var t=mu;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:fu||xu(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!fu)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ml(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&ns(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}ns(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&&io(d)}}}break;default:throw Error(wt(163))}fu||512&t.flags&&Su(t)}catch(e){$d(t,t.return,e)}}if(t===e){mu=null;break}if(null!==(n=t.sibling)){n.return=t.return,mu=n;break}mu=t.return}}function zu(e){for(;null!==mu;){var t=mu;if(t===e){mu=null;break}var n=t.sibling;if(null!==n){n.return=t.return,mu=n;break}mu=t.return}}function ju(e){for(;null!==mu;){var t=mu;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{xu(4,t)}catch(e){$d(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){$d(t,o,e)}}var a=t.return;try{Su(t)}catch(e){$d(t,a,e)}break;case 5:var i=t.return;try{Su(t)}catch(e){$d(t,i,e)}}}catch(e){$d(t,t.return,e)}if(t===e){mu=null;break}var l=t.sibling;if(null!==l){l.return=t.return,mu=l;break}mu=t.return}}var Fu,$u=Math.ceil,Bu=Dt.ReactCurrentDispatcher,Wu=Dt.ReactCurrentOwner,Hu=Dt.ReactCurrentBatchConfig,Uu=0,Vu=null,Gu=null,Ku=0,Zu=0,Xu=Bi(0),Qu=0,Yu=null,Ju=0,ed=0,td=0,nd=null,rd=null,od=0,ad=1/0,id=null,ld=!1,sd=null,cd=null,ud=!1,dd=null,pd=0,fd=0,hd=null,md=-1,gd=0;function vd(){return 0!=(6&Uu)?mr():-1!==md?md:md=mr()}function yd(e){return 0==(1&e.mode)?1:0!=(2&Uu)&&0!==Ku?Ku&-Ku:null!==Nl.transition?(0===gd&&(gd=Nr()),gd):0!==(e=Dr)?e:e=void 0===(e=window.event)?16:mo(e.type)}function bd(e,t,n,r){if(50<fd)throw fd=0,hd=null,Error(wt(185));qr(e,n,r),0!=(2&Uu)&&e===Vu||(e===Vu&&(0==(2&Uu)&&(ed|=n),4===Qu&&Cd(e,Ku)),xd(e,r),1===n&&0===Uu&&0==(1&t.mode)&&(ad=mr()+500,rl&&il()))}function xd(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-Cr(a),l=1<<i,s=o[i];-1===s?0!=(l&n)&&0==(l&r)||(o[i]=Tr(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=Pr(e,e===Vu?Ku:0);if(0===r)null!==n&&pr(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&pr(n),1===t)0===e.tag?function(e){rl=!0,al(e)}(kd.bind(null,e)):al(kd.bind(null,e)),Ci((function(){0==(6&Uu)&&il()})),n=null;else{switch(zr(r)){case 1:n=vr;break;case 4:n=yr;break;case 16:default:n=br;break;case 536870912:n=Sr}n=Vd(n,Sd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Sd(e,t){if(md=-1,gd=0,0!=(6&Uu))throw Error(wt(327));var n=e.callbackNode;if(jd()&&e.callbackNode!==n)return null;var r=Pr(e,e===Vu?Ku:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=Nd(e,r);else{t=r;var o=Uu;Uu|=2;var a=Td();for(Vu===e&&Ku===t||(id=null,ad=mr()+500,Id(e,t));;)try{qd();break}catch(t){Pd(e,t)}jl(),Bu.current=a,Uu=o,null!==Gu?t=0:(Vu=null,Ku=0,t=Qu)}if(0!==t){if(2===t&&(0!==(o=_r(e))&&(r=o,t=wd(e,o))),1===t)throw n=Yu,Id(e,0),Cd(e,r),xd(e,mr()),n;if(6===t)Cd(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(!ka(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=Nd(e,r))&&(0!==(a=_r(e))&&(r=a,t=wd(e,a))),1===t))throw n=Yu,Id(e,0),Cd(e,r),xd(e,mr()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(wt(345));case 2:case 5:zd(e,rd,id);break;case 3:if(Cd(e,r),(130023424&r)===r&&10<(t=od+500-mr())){if(0!==Pr(e,0))break;if(((o=e.suspendedLanes)&r)!==r){vd(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Si(zd.bind(null,e,rd,id),t);break}zd(e,rd,id);break;case 4:if(Cd(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-Cr(r);a=1<<i,(i=t[i])>o&&(o=i),r&=~a}if(r=o,10<(r=(120>(r=mr()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$u(r/1960))-r)){e.timeoutHandle=Si(zd.bind(null,e,rd,id),r);break}zd(e,rd,id);break;default:throw Error(wt(329))}}}return xd(e,mr()),e.callbackNode===n?Sd.bind(null,e):null}function wd(e,t){var n=nd;return e.current.memoizedState.isDehydrated&&(Id(e,t).flags|=256),2!==(e=Nd(e,t))&&(t=rd,rd=n,null!==t&&Ed(t)),e}function Ed(e){null===rd?rd=e:rd.push.apply(rd,e)}function Cd(e,t){for(t&=~td,t&=~ed,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Cr(t),r=1<<n;e[n]=-1,t&=~r}}function kd(e){if(0!=(6&Uu))throw Error(wt(327));jd();var t=Pr(e,0);if(0==(1&t))return xd(e,mr()),null;var n=Nd(e,t);if(0!==e.tag&&2===n){var r=_r(e);0!==r&&(t=r,n=wd(e,r))}if(1===n)throw n=Yu,Id(e,0),Cd(e,t),xd(e,mr()),n;if(6===n)throw Error(wt(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zd(e,rd,id),xd(e,mr()),null}function Ld(e,t){var n=Uu;Uu|=1;try{return e(t)}finally{0===(Uu=n)&&(ad=mr()+500,rl&&il())}}function Rd(e){null!==dd&&0===dd.tag&&0==(6&Uu)&&jd();var t=Uu;Uu|=1;var n=Hu.transition,r=Dr;try{if(Hu.transition=null,Dr=1,e)return e()}finally{Dr=r,Hu.transition=n,0==(6&(Uu=t))&&il()}}function Od(){Zu=Xu.current,Wi(Xu)}function Id(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,wi(n)),null!==Gu)for(n=Gu.return;null!==n;){var r=n;switch(bl(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Qi();break;case 3:ws(),Wi(Gi),Wi(Vi),Os();break;case 5:Cs(r);break;case 4:ws();break;case 13:case 19:Wi(ks);break;case 10:Fl(r.type._context);break;case 22:case 23:Od()}n=n.return}if(Vu=e,Gu=e=Xd(e.current,null),Ku=Zu=t,Qu=0,Yu=null,td=ed=Ju=0,rd=nd=null,null!==Hl){for(t=0;t<Hl.length;t++)if(null!==(r=(n=Hl[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}Hl=null}return e}function Pd(e,t){for(;;){var n=Gu;try{if(jl(),Is.current=Ec,qs){for(var r=_s.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}qs=!1}if(Ts=0,Ms=Ns=_s=null,As=!1,Ds=0,Wu.current=null,null===n||null===n.return){Qu=1,Yu=t,Gu=null;break}e:{var a=e,i=n.return,l=n,s=t;if(t=Ku,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=Mc(i);if(null!==f){f.flags&=-257,qc(f,i,l,0,t),1&f.mode&&Nc(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)){Nc(a,c,t),_d();break e}s=Error(wt(426))}else if(wl&&1&l.mode){var g=Mc(i);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),qc(g,i,l,0,t),_l(Rc(s,l));break e}}a=s=Rc(s,l),4!==Qu&&(Qu=2),null===nd?nd=[a]:nd.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,es(a,Tc(0,s,t));break e;case 1:l=s;var v=a.type,y=a.stateNode;if(0==(128&a.flags)&&("function"==typeof v.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===cd||!cd.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,es(a,_c(a,l,t));break e}}a=a.return}while(null!==a)}Dd(n)}catch(e){t=e,Gu===n&&null!==n&&(Gu=n=n.return);continue}break}}function Td(){var e=Bu.current;return Bu.current=Ec,null===e?Ec:e}function _d(){0!==Qu&&3!==Qu&&2!==Qu||(Qu=4),null===Vu||0==(268435455&Ju)&&0==(268435455&ed)||Cd(Vu,Ku)}function Nd(e,t){var n=Uu;Uu|=2;var r=Td();for(Vu===e&&Ku===t||(id=null,Id(e,t));;)try{Md();break}catch(t){Pd(e,t)}if(jl(),Uu=n,Bu.current=r,null!==Gu)throw Error(wt(261));return Vu=null,Ku=0,Qu}function Md(){for(;null!==Gu;)Ad(Gu)}function qd(){for(;null!==Gu&&!fr();)Ad(Gu)}function Ad(e){var t=Fu(e.alternate,e,Zu);e.memoizedProps=e.pendingProps,null===t?Dd(e):Gu=t,Wu.current=null}function Dd(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=uu(n,t,Zu)))return void(Gu=n)}else{if(null!==(n=du(n,t)))return n.flags&=32767,void(Gu=n);if(null===e)return Qu=6,void(Gu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Gu=t);Gu=t=e}while(null!==t);0===Qu&&(Qu=5)}function zd(e,t,n){var r=Dr,o=Hu.transition;try{Hu.transition=null,Dr=1,function(e,t,n,r){do{jd()}while(null!==dd);if(0!=(6&Uu))throw Error(wt(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(wt(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-Cr(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,a),e===Vu&&(Gu=Vu=null,Ku=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||ud||(ud=!0,Vd(br,(function(){return jd(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=Hu.transition,Hu.transition=null;var i=Dr;Dr=1;var l=Uu;Uu|=4,Wu.current=null,function(e,t){if(yi=so,Ta(e=Pa())){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(bi={focusedElem:e,selectionRange:n},so=!1,mu=t;null!==mu;)if(e=(t=mu).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,mu=e;else for(;null!==mu;){t=mu;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,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:Ml(t.type,m),g);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(wt(163))}}catch(e){$d(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,mu=e;break}mu=t.return}h=yu,yu=!1}(e,n),Nu(n,e),_a(bi),so=!!yi,bi=yi=null,e.current=n,qu(n),hr(),Uu=l,Dr=i,Hu.transition=a}else e.current=n;if(ud&&(ud=!1,dd=e,pd=o),a=e.pendingLanes,0===a&&(cd=null),function(e){if(Er&&"function"==typeof Er.onCommitFiberRoot)try{Er.onCommitFiberRoot(wr,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),xd(e,mr()),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(ld)throw ld=!1,e=sd,sd=null,e;0!=(1&pd)&&0!==e.tag&&jd(),a=e.pendingLanes,0!=(1&a)?e===hd?fd++:(fd=0,hd=e):fd=0,il()}(e,t,n,r)}finally{Hu.transition=o,Dr=r}return null}function jd(){if(null!==dd){var e=zr(pd),t=Hu.transition,n=Dr;try{if(Hu.transition=null,Dr=16>e?16:e,null===dd)var r=!1;else{if(e=dd,dd=null,pd=0,0!=(6&Uu))throw Error(wt(331));var o=Uu;for(Uu|=4,mu=e.current;null!==mu;){var a=mu,i=a.child;if(0!=(16&mu.flags)){var l=a.deletions;if(null!==l){for(var s=0;s<l.length;s++){var c=l[s];for(mu=c;null!==mu;){var u=mu;switch(u.tag){case 0:case 11:case 15:bu(8,u,a)}var d=u.child;if(null!==d)d.return=u,mu=d;else for(;null!==mu;){var p=(u=mu).sibling,f=u.return;if(wu(u),u===c){mu=null;break}if(null!==p){p.return=f,mu=p;break}mu=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)}}mu=a}}if(0!=(2064&a.subtreeFlags)&&null!==i)i.return=a,mu=i;else e:for(;null!==mu;){if(0!=(2048&(a=mu).flags))switch(a.tag){case 0:case 11:case 15:bu(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,mu=v;break e}mu=a.return}}var y=e.current;for(mu=y;null!==mu;){var b=(i=mu).child;if(0!=(2064&i.subtreeFlags)&&null!==b)b.return=i,mu=b;else e:for(i=y;null!==mu;){if(0!=(2048&(l=mu).flags))try{switch(l.tag){case 0:case 11:case 15:xu(9,l)}}catch(e){$d(l,l.return,e)}if(l===i){mu=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,mu=x;break e}mu=l.return}}if(Uu=o,il(),Er&&"function"==typeof Er.onPostCommitFiberRoot)try{Er.onPostCommitFiberRoot(wr,e)}catch(e){}r=!0}return r}finally{Dr=n,Hu.transition=t}}return!1}function Fd(e,t,n){e=Yl(e,t=Tc(0,t=Rc(n,t),1),1),t=vd(),null!==e&&(qr(e,1,t),xd(e,t))}function $d(e,t,n){if(3===e.tag)Fd(e,e,n);else for(;null!==t;){if(3===t.tag){Fd(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===cd||!cd.has(r))){t=Yl(t,e=_c(t,e=Rc(n,e),1),1),e=vd(),null!==t&&(qr(t,1,e),xd(t,e));break}}t=t.return}}function Bd(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=vd(),e.pingedLanes|=e.suspendedLanes&n,Vu===e&&(Ku&n)===n&&(4===Qu||3===Qu&&(130023424&Ku)===Ku&&500>mr()-od?Id(e,0):td|=n),xd(e,t)}function Wd(e,t){0===t&&(0==(1&e.mode)?t=1:(t=Or,0==(130023424&(Or<<=1))&&(Or=4194304)));var n=vd();null!==(e=Gl(e,t))&&(qr(e,t,n),xd(e,n))}function Hd(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Wd(e,n)}function Ud(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(wt(314))}null!==r&&r.delete(t),Wd(e,n)}function Vd(e,t){return dr(e,t)}function Gd(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 Kd(e,t,n,r){return new Gd(e,t,n,r)}function Zd(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Xd(e,t){var n=e.alternate;return null===n?((n=Kd(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 Qd(e,t,n,r,o,a){var i=2;if(r=e,"function"==typeof e)Zd(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case Ft:return Yd(n.children,o,a,t);case $t:i=8,o|=8;break;case Bt:return(e=Kd(12,n,t,2|o)).elementType=Bt,e.lanes=a,e;case Vt:return(e=Kd(13,n,t,o)).elementType=Vt,e.lanes=a,e;case Gt:return(e=Kd(19,n,t,o)).elementType=Gt,e.lanes=a,e;case Xt:return Jd(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Wt:i=10;break e;case Ht:i=9;break e;case Ut:i=11;break e;case Kt:i=14;break e;case Zt:i=16,r=null;break e}throw Error(wt(130,null==e?e:typeof e,""))}return(t=Kd(i,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Yd(e,t,n,r){return(e=Kd(7,e,r,t)).lanes=n,e}function Jd(e,t,n,r){return(e=Kd(22,e,r,t)).elementType=Xt,e.lanes=n,e.stateNode={isHidden:!1},e}function ep(e,t,n){return(e=Kd(6,e,null,t)).lanes=n,e}function tp(e,t,n){return(t=Kd(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function np(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=Mr(0),this.expirationTimes=Mr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mr(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function rp(e,t,n,r,o,a,i,l,s){return e=new np(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Kd(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zl(a),e}function op(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:jt,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function ap(e){if(!e)return Ui;e:{if(ir(e=e._reactInternals)!==e||1!==e.tag)throw Error(wt(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Xi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(wt(171))}if(1===e.tag){var n=e.type;if(Xi(n))return Ji(e,n,t)}return t}function ip(e,t,n,r,o,a,i,l,s){return(e=rp(n,r,!0,e,0,a,0,l,s)).context=ap(null),n=e.current,(a=Ql(r=vd(),o=yd(n))).callback=null!=t?t:null,Yl(n,a,o),e.current.lanes=o,qr(e,o,r),xd(e,r),e}function lp(e,t,n,r){var o=t.current,a=vd(),i=yd(o);return n=ap(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ql(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Yl(o,t,i))&&(bd(e,o,i,a),Jl(e,o,i)),i}function sp(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function cp(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function up(e,t){cp(e,t),(e=e.alternate)&&cp(e,t)}Fu=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Gi.current)Dc=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return Dc=!1,function(e,t,n){switch(t.tag){case 3:Gc(t),Tl();break;case 5:Es(t);break;case 1:Xi(t.type)&&el(t);break;case 4:Ss(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Hi(ql,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Hi(ks,1&ks.current),t.flags|=128,null):0!=(n&t.child.childLanes)?eu(e,t,n):(Hi(ks,1&ks.current),null!==(e=lu(e,t,n))?e.sibling:null);Hi(ks,1&ks.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return au(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Hi(ks,ks.current),r)break;return null;case 22:case 23:return t.lanes=0,Bc(e,t,n)}return lu(e,t,n)}(e,t,n);Dc=0!=(131072&e.flags)}else Dc=!1,wl&&0!=(1048576&t.flags)&&vl(t,ul,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;iu(e,t),e=t.pendingProps;var o=Zi(t,Vi.current);Bl(t,n),o=$s(null,t,r,e,o,n);var a=Bs();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Xi(r)?(a=!0,el(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Zl(t),o.updater=as,t.stateNode=o,o._reactInternals=t,cs(t,r,e,n),t=Vc(null,t,r,!0,a,n)):(t.tag=0,wl&&a&&yl(t),zc(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(iu(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Zd(e)?1:0;if(null!=e){if((e=e.$$typeof)===Ut)return 11;if(e===Kt)return 14}return 2}(r),e=Ml(r,e),o){case 0:t=Hc(null,t,r,e,n);break e;case 1:t=Uc(null,t,r,e,n);break e;case 11:t=jc(null,t,r,e,n);break e;case 14:t=Fc(null,t,r,Ml(r.type,e),n);break e}throw Error(wt(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Hc(e,t,r,o=t.elementType===r?o:Ml(r,o),n);case 1:return r=t.type,o=t.pendingProps,Uc(e,t,r,o=t.elementType===r?o:Ml(r,o),n);case 3:e:{if(Gc(t),null===e)throw Error(wt(387));r=t.pendingProps,o=(a=t.memoizedState).element,Xl(e,t),ts(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=Kc(e,t,r,n,o=Rc(Error(wt(423)),t));break e}if(r!==o){t=Kc(e,t,r,n,o=Rc(Error(wt(424)),t));break e}for(Sl=Ri(t.stateNode.containerInfo.firstChild),xl=t,wl=!0,El=null,n=ms(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Tl(),r===o){t=lu(e,t,n);break e}zc(e,t,r,n)}t=t.child}return t;case 5:return Es(t),null===e&&Rl(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children,xi(r,o)?i=null:null!==a&&xi(r,a)&&(t.flags|=32),Wc(e,t),zc(e,t,i,n),t.child;case 6:return null===e&&Rl(t),null;case 13:return eu(e,t,n);case 4:return Ss(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=hs(t,null,r,n):zc(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,jc(e,t,r,o=t.elementType===r?o:Ml(r,o),n);case 7:return zc(e,t,t.pendingProps,n),t.child;case 8:case 12:return zc(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,Hi(ql,r._currentValue),r._currentValue=i,null!==a)if(ka(a.value,i)){if(a.children===o.children&&!Gi.current){t=lu(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=Ql(-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),$l(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(wt(341));i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),$l(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}zc(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Bl(t,n),r=r(o=Wl(o)),t.flags|=1,zc(e,t,r,n),t.child;case 14:return o=Ml(r=t.type,t.pendingProps),Fc(e,t,r,o=Ml(r.type,o),n);case 15:return $c(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ml(r,o),iu(e,t),t.tag=1,Xi(r)?(e=!0,el(t)):e=!1,Bl(t,n),ls(t,r,o),cs(t,r,o,n),Vc(null,t,r,!0,e,n);case 19:return au(e,t,n);case 22:return Bc(e,t,n)}throw Error(wt(156,t.tag))};var dp="function"==typeof reportError?reportError:function(e){console.error(e)};function pp(e){this._internalRoot=e}function fp(e){this._internalRoot=e}function hp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function mp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function gp(){}function vp(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=sp(i);l.call(e)}}lp(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=sp(i);a.call(e)}}var i=ip(t,r,e,0,null,!1,0,"",gp);return e._reactRootContainer=i,e[_i]=i.current,ii(8===e.nodeType?e.parentNode:e),Rd(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=sp(s);l.call(e)}}var s=rp(e,0,!1,null,0,!1,0,"",gp);return e._reactRootContainer=s,e[_i]=s.current,ii(8===e.nodeType?e.parentNode:e),Rd((function(){lp(t,s,n,r)})),s}(n,t,e,o,r);return sp(i)}fp.prototype.render=pp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(wt(409));lp(e,t,null,null)},fp.prototype.unmount=pp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Rd((function(){lp(null,e,null,null)})),t[_i]=null}},fp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Br();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Qr.length&&0!==t&&t<Qr[n].priority;n++);Qr.splice(n,0,e),0===n&&to(e)}},jr=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ir(t.pendingLanes);0!==n&&(Ar(t,1|n),xd(t,mr()),0==(6&Uu)&&(ad=mr()+500,il()))}break;case 13:Rd((function(){var t=Gl(e,1);if(null!==t){var n=vd();bd(t,e,1,n)}})),up(e,1)}},Fr=function(e){if(13===e.tag){var t=Gl(e,134217728);if(null!==t)bd(t,e,134217728,vd());up(e,134217728)}},$r=function(e){if(13===e.tag){var t=yd(e),n=Gl(e,t);if(null!==n)bd(n,e,t,vd());up(e,t)}},Br=function(){return Dr},Wr=function(e,t){var n=Dr;try{return Dr=e,t()}finally{Dr=n}},Fn=function(e,t,n){switch(t){case"input":if(gn(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=ji(r);if(!o)throw Error(wt(90));dn(r),gn(r,o)}}}break;case"textarea":En(e,n);break;case"select":null!=(t=n.value)&&xn(e,!!n.multiple,t,!1)}},Vn=Ld,Gn=Rd;var yp={usingClientEntryPoint:!1,Events:[Di,zi,ji,Hn,Un,Ld]},bp={findFiberByHostInstance:Ai,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},xp={bundleType:bp.bundleType,version:bp.version,rendererPackageName:bp.rendererPackageName,rendererConfig:bp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Dt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=cr(e))?null:e.stateNode},findFiberByHostInstance:bp.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Sp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sp.isDisabled&&Sp.supportsFiber)try{wr=Sp.inject(xp),Er=Sp}catch(On){}}gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yp,gt.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!hp(t))throw Error(wt(200));return op(e,t,null,n)},gt.createRoot=function(e,t){if(!hp(e))throw Error(wt(299));var n=!1,r="",o=dp;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=rp(e,1,!1,null,0,n,0,r,o),e[_i]=t.current,ii(8===e.nodeType?e.parentNode:e),new pp(t)},gt.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(wt(188));throw e=Object.keys(e).join(","),Error(wt(268,e))}return e=null===(e=cr(t))?null:e.stateNode},gt.flushSync=function(e){return Rd(e)},gt.hydrate=function(e,t,n){if(!mp(t))throw Error(wt(200));return vp(null,e,t,!0,n)},gt.hydrateRoot=function(e,t,n){if(!hp(e))throw Error(wt(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",i=dp;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(i=n.onRecoverableError)),t=ip(t,null,e,1,null!=n?n:null,o,0,a,i),e[_i]=t.current,ii(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 fp(t)},gt.render=function(e,t,n){if(!mp(t))throw Error(wt(200));return vp(null,e,t,!1,n)},gt.unmountComponentAtNode=function(e){if(!mp(e))throw Error(wt(40));return!!e._reactRootContainer&&(Rd((function(){vp(null,null,e,!1,(function(){e._reactRootContainer=null,e[_i]=null}))})),!0)},gt.unstable_batchedUpdates=Ld,gt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!mp(n))throw Error(wt(200));if(null==e||void 0===e._reactInternals)throw Error(wt(38));return vp(e,t,n,!1,r)},gt.version="18.2.0-next-9e3b772b8-20220608",function(e){!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)}}(),e.exports=gt}(mt);var wp=n(ht),Ep=ht;function Cp(){return Cp=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},Cp.apply(this,arguments)}function kp(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function Lp(e){if(!kp(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Lp(e[n])})),t}function Rp(e,t,n={clone:!0}){const r=n.clone?Cp({},e):e;return kp(e)&&kp(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(kp(t[o])&&o in e&&kp(e[o])?r[o]=Rp(e[o],t[o],n):n.clone?r[o]=kp(t[o])?Lp(t[o]):t[o]:r[o]=t[o])})),r}function Op(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."}ft.createRoot=Ep.createRoot,ft.hydrateRoot=Ep.hydrateRoot;var Ip,Pp={},Tp={get exports(){return Pp},set exports(e){Pp=e}},_p={},Np=Symbol.for("react.element"),Mp=Symbol.for("react.portal"),qp=Symbol.for("react.fragment"),Ap=Symbol.for("react.strict_mode"),Dp=Symbol.for("react.profiler"),zp=Symbol.for("react.provider"),jp=Symbol.for("react.context"),Fp=Symbol.for("react.server_context"),$p=Symbol.for("react.forward_ref"),Bp=Symbol.for("react.suspense"),Wp=Symbol.for("react.suspense_list"),Hp=Symbol.for("react.memo"),Up=Symbol.for("react.lazy"),Vp=Symbol.for("react.offscreen");function Gp(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Np:switch(e=e.type){case qp:case Dp:case Ap:case Bp:case Wp:return e;default:switch(e=e&&e.$$typeof){case Fp:case jp:case $p:case Up:case Hp:case zp:return e;default:return t}}case Mp:return t}}}function Kp(e){if("string"!=typeof e)throw new Error(Op(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Zp(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Xp(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Qp(e,t){return d.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}function Yp(e){return e&&e.ownerDocument||document}function Jp(e){return Yp(e).defaultView||window}function ef(e,t){"function"==typeof e?e(t):e&&(e.current=t)}Ip=Symbol.for("react.module.reference"),_p.ContextConsumer=jp,_p.ContextProvider=zp,_p.Element=Np,_p.ForwardRef=$p,_p.Fragment=qp,_p.Lazy=Up,_p.Memo=Hp,_p.Portal=Mp,_p.Profiler=Dp,_p.StrictMode=Ap,_p.Suspense=Bp,_p.SuspenseList=Wp,_p.isAsyncMode=function(){return!1},_p.isConcurrentMode=function(){return!1},_p.isContextConsumer=function(e){return Gp(e)===jp},_p.isContextProvider=function(e){return Gp(e)===zp},_p.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Np},_p.isForwardRef=function(e){return Gp(e)===$p},_p.isFragment=function(e){return Gp(e)===qp},_p.isLazy=function(e){return Gp(e)===Up},_p.isMemo=function(e){return Gp(e)===Hp},_p.isPortal=function(e){return Gp(e)===Mp},_p.isProfiler=function(e){return Gp(e)===Dp},_p.isStrictMode=function(e){return Gp(e)===Ap},_p.isSuspense=function(e){return Gp(e)===Bp},_p.isSuspenseList=function(e){return Gp(e)===Wp},_p.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===qp||e===Dp||e===Ap||e===Bp||e===Wp||e===Vp||"object"==typeof e&&null!==e&&(e.$$typeof===Up||e.$$typeof===Hp||e.$$typeof===zp||e.$$typeof===jp||e.$$typeof===$p||e.$$typeof===Ip||void 0!==e.getModuleId)},_p.typeOf=Gp,function(e){e.exports=_p}(Tp);var tf="undefined"!=typeof window?d.useLayoutEffect:d.useEffect;let nf=0;const rf=K.useId;function of(e){if(void 0!==rf){const t=rf();return null!=e?e:t}return function(e){const[t,n]=d.useState(e),r=e||t;return d.useEffect((()=>{null==t&&(nf+=1,n(`mui-${nf}`))}),[t]),r}(e)}function af({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=d.useRef(void 0!==e),[a,i]=d.useState(t);return[o?e:a,d.useCallback((e=>{o||i(e)}),[])]}function lf(e){const t=d.useRef(e);return tf((()=>{t.current=e})),d.useCallback(((...e)=>(0,t.current)(...e)),[])}function sf(...e){return d.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{ef(e,t)}))}),e)}let cf,uf=!0,df=!1;const pf={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 ff(e){e.metaKey||e.altKey||e.ctrlKey||(uf=!0)}function hf(){uf=!1}function mf(){"hidden"===this.visibilityState&&df&&(uf=!0)}function gf(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return uf||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!pf[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function vf(){const e=d.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ff,!0),t.addEventListener("mousedown",hf,!0),t.addEventListener("pointerdown",hf,!0),t.addEventListener("touchstart",hf,!0),t.addEventListener("visibilitychange",mf,!0))}),[]),t=d.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!gf(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(df=!0,window.clearTimeout(cf),cf=window.setTimeout((()=>{df=!1}),100),t.current=!1,!0)},ref:e}}function yf(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var bf=e=>{const t=d.useRef({});return d.useEffect((()=>{t.current=e})),t.current};function xf(e,t){const n=Cp({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Cp({},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]=Cp({},a),Object.keys(o).forEach((e=>{n[r][e]=xf(o[e],a[e])}))):n[r]=a:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Sf(e,t,n){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>(r&&(e.push(t(r)),n&&n[r]&&e.push(n[r])),e)),[]).join(" ")})),r}const wf=e=>e;var Ef=(()=>{let e=wf;return{configure(t){e=t},generate:t=>e(t),reset(){e=wf}}})();const Cf={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function kf(e,t,n="Mui"){const r=Cf[t];return r?`${n}-${r}`:`${Ef.generate(e)}-${t}`}function Lf(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=kf(e,t,n)})),r}function Rf(){return Rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rf.apply(this,arguments)}function Of(e,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 If(){return If=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},If.apply(this,arguments)}function Pf(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Tf=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,_f=Pf((function(e){return Tf.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var Nf=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}(),Mf="-ms-",qf="-moz-",Af="-webkit-",Df="comm",zf="rule",jf="decl",Ff="@keyframes",$f=Math.abs,Bf=String.fromCharCode,Wf=Object.assign;function Hf(e,t){return 45^Zf(e,0)?(((t<<2^Zf(e,0))<<2^Zf(e,1))<<2^Zf(e,2))<<2^Zf(e,3):0}function Uf(e){return e.trim()}function Vf(e,t){return(e=t.exec(e))?e[0]:e}function Gf(e,t,n){return e.replace(t,n)}function Kf(e,t){return e.indexOf(t)}function Zf(e,t){return 0|e.charCodeAt(t)}function Xf(e,t,n){return e.slice(t,n)}function Qf(e){return e.length}function Yf(e){return e.length}function Jf(e,t){return t.push(e),e}function eh(e,t){return e.map(t).join("")}var th=1,nh=1,rh=0,oh=0,ah=0,ih="";function lh(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:th,column:nh,length:i,return:""}}function sh(e,t){return Wf(lh("",null,null,"",null,null,0),e,{length:-e.length},t)}function ch(){return ah=oh>0?Zf(ih,--oh):0,nh--,10===ah&&(nh=1,th--),ah}function uh(){return ah=oh<rh?Zf(ih,oh++):0,nh++,10===ah&&(nh=1,th++),ah}function dh(){return Zf(ih,oh)}function ph(){return oh}function fh(e,t){return Xf(ih,e,t)}function hh(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 mh(e){return th=nh=1,rh=Qf(ih=e),oh=0,[]}function gh(e){return ih="",e}function vh(e){return Uf(fh(oh-1,xh(91===e?e+2:40===e?e+1:e)))}function yh(e){for(;(ah=dh())&&ah<33;)uh();return hh(e)>2||hh(ah)>3?"":" "}function bh(e,t){for(;--t&&uh()&&!(ah<48||ah>102||ah>57&&ah<65||ah>70&&ah<97););return fh(e,ph()+(t<6&&32==dh()&&32==uh()))}function xh(e){for(;uh();)switch(ah){case e:return oh;case 34:case 39:34!==e&&39!==e&&xh(ah);break;case 40:41===e&&xh(e);break;case 92:uh()}return oh}function Sh(e,t){for(;uh()&&e+ah!==57&&(e+ah!==84||47!==dh()););return"/*"+fh(t,oh-1)+"*"+Bf(47===e?e:uh())}function wh(e){for(;!hh(dh());)uh();return fh(e,oh)}function Eh(e){return gh(Ch("",null,null,null,[""],e=mh(e),0,[0],e))}function Ch(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,y=0,b="",x=o,S=a,w=r,E=b;g;)switch(h=y,y=uh()){case 40:if(108!=h&&58==Zf(E,d-1)){-1!=Kf(E+=Gf(vh(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=vh(y);break;case 9:case 10:case 13:case 32:E+=yh(h);break;case 92:E+=bh(ph()-1,7);continue;case 47:switch(dh()){case 42:case 47:Jf(Lh(Sh(uh(),ph()),t,n),s);break;default:E+="/"}break;case 123*m:l[c++]=Qf(E)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:f>0&&Qf(E)-d&&Jf(f>32?Rh(E+";",r,n,d-1):Rh(Gf(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(Jf(w=kh(E,t,n,c,u,o,l,b,x=[],S=[],d),a),123===y)if(0===u)Ch(E,t,w,w,x,a,d,l,S);else switch(99===p&&110===Zf(E,3)?100:p){case 100:case 109:case 115:Ch(e,w,w,r&&Jf(kh(e,w,w,0,0,o,l,b,o,x=[],d),S),o,S,d,l,r?x:S);break;default:Ch(E,w,w,w,[""],S,0,l,S)}}c=u=f=0,m=v=1,b=E="",d=i;break;case 58:d=1+Qf(E),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==ch())continue;switch(E+=Bf(y),y*m){case 38:v=u>0?1:(E+="\f",-1);break;case 44:l[c++]=(Qf(E)-1)*v,v=1;break;case 64:45===dh()&&(E+=vh(uh())),p=dh(),u=d=Qf(b=E+=wh(ph())),y++;break;case 45:45===h&&2==Qf(E)&&(m=0)}}return a}function kh(e,t,n,r,o,a,i,l,s,c,u){for(var d=o-1,p=0===o?a:[""],f=Yf(p),h=0,m=0,g=0;h<r;++h)for(var v=0,y=Xf(e,d+1,d=$f(m=i[h])),b=e;v<f;++v)(b=Uf(m>0?p[v]+" "+y:Gf(y,/&\f/g,p[v])))&&(s[g++]=b);return lh(e,t,n,0===o?zf:l,s,c,u)}function Lh(e,t,n){return lh(e,t,n,Df,Bf(ah),Xf(e,2,-2),0)}function Rh(e,t,n,r){return lh(e,t,n,jf,Xf(e,0,r),Xf(e,r+1,-1),r)}function Oh(e,t){for(var n="",r=Yf(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ih(e,t,n,r){switch(e.type){case"@import":case jf:return e.return=e.return||e.value;case Df:return"";case Ff:return e.return=e.value+"{"+Oh(e.children,r)+"}";case zf:e.value=e.props.join(",")}return Qf(n=Oh(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ph(e){var t=Yf(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 Th(e){return function(t){t.root||(t=t.return)&&e(t)}}var _h=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}},Nh=function(e,t,n){for(var r=0,o=0;r=o,o=dh(),38===r&&12===o&&(t[n]=1),!hh(o);)uh();return fh(e,oh)},Mh=function(e,t){return gh(function(e,t){var n=-1,r=44;do{switch(hh(r)){case 0:38===r&&12===dh()&&(t[n]=1),e[n]+=Nh(oh-1,t,n);break;case 2:e[n]+=vh(r);break;case 4:if(44===r){e[++n]=58===dh()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Bf(r)}}while(r=uh());return e}(mh(e),t))},qh=new WeakMap,Ah=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)||qh.get(n))&&!r){qh.set(e,!0);for(var o=[],a=Mh(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]}}},Dh=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function zh(e,t){switch(Hf(e,t)){case 5103:return Af+"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 Af+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Af+e+qf+e+Mf+e+e;case 6828:case 4268:return Af+e+Mf+e+e;case 6165:return Af+e+Mf+"flex-"+e+e;case 5187:return Af+e+Gf(e,/(\w+).+(:[^]+)/,Af+"box-$1$2"+Mf+"flex-$1$2")+e;case 5443:return Af+e+Mf+"flex-item-"+Gf(e,/flex-|-self/,"")+e;case 4675:return Af+e+Mf+"flex-line-pack"+Gf(e,/align-content|flex-|-self/,"")+e;case 5548:return Af+e+Mf+Gf(e,"shrink","negative")+e;case 5292:return Af+e+Mf+Gf(e,"basis","preferred-size")+e;case 6060:return Af+"box-"+Gf(e,"-grow","")+Af+e+Mf+Gf(e,"grow","positive")+e;case 4554:return Af+Gf(e,/([^-])(transform)/g,"$1"+Af+"$2")+e;case 6187:return Gf(Gf(Gf(e,/(zoom-|grab)/,Af+"$1"),/(image-set)/,Af+"$1"),e,"")+e;case 5495:case 3959:return Gf(e,/(image-set\([^]*)/,Af+"$1$`$1");case 4968:return Gf(Gf(e,/(.+:)(flex-)?(.*)/,Af+"box-pack:$3"+Mf+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Af+e+e;case 4095:case 3583:case 4068:case 2532:return Gf(e,/(.+)-inline(.+)/,Af+"$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(Qf(e)-1-t>6)switch(Zf(e,t+1)){case 109:if(45!==Zf(e,t+4))break;case 102:return Gf(e,/(.+:)(.+)-([^]+)/,"$1"+Af+"$2-$3$1"+qf+(108==Zf(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Kf(e,"stretch")?zh(Gf(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Zf(e,t+1))break;case 6444:switch(Zf(e,Qf(e)-3-(~Kf(e,"!important")&&10))){case 107:return Gf(e,":",":"+Af)+e;case 101:return Gf(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Af+(45===Zf(e,14)?"inline-":"")+"box$3$1"+Af+"$2$3$1"+Mf+"$2box$3")+e}break;case 5936:switch(Zf(e,t+11)){case 114:return Af+e+Mf+Gf(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Af+e+Mf+Gf(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Af+e+Mf+Gf(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Af+e+Mf+e+e}return e}var jh="undefined"!=typeof document,Fh=jh?void 0:_h((function(){return Pf((function(){var e={};return function(t){return e[t]}}))})),$h=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case jf:e.return=zh(e.value,e.length);break;case Ff:return Oh([sh(e,{value:Gf(e.value,"@","@"+Af)})],r);case zf:if(e.length)return eh(e.props,(function(t){switch(Vf(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Oh([sh(e,{props:[Gf(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Oh([sh(e,{props:[Gf(t,/:(plac\w+)/,":"+Af+"input-$1")]}),sh(e,{props:[Gf(t,/:(plac\w+)/,":-moz-$1")]}),sh(e,{props:[Gf(t,/:(plac\w+)/,Mf+"input-$1")]})],r)}return""}))}}],Bh=function(e){var t=e.key;if(jh&&"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||$h,i={},l=[];jh&&(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=[Ah,Dh];if(jh){var c,u=[Ih,Th((function(e){c.insert(e)}))],d=Ph(s.concat(a,u));o=function(e,t,n,r){c=n,function(e){Oh(Eh(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(g.inserted[t.name]=!0)}}else{var p=[Ih],f=Ph(s.concat(a,p)),h=Fh(a)(t),m=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return Oh(Eh(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 Nf({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},Wh=Pp,Hh={};Hh[Wh.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Hh[Wh.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var Uh="undefined"!=typeof document,Vh=function(e,t,n){!function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===Uh&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)}(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);Uh||void 0===i||(o+=i),a=a.next}while(void 0!==a);if(!Uh&&0!==o.length)return o}};var Gh={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Kh=/[A-Z]|^ms/g,Zh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xh=function(e){return 45===e.charCodeAt(1)},Qh=function(e){return null!=e&&"boolean"!=typeof e},Yh=Pf((function(e){return Xh(e)?e:e.replace(Kh,"-$&").toLowerCase()})),Jh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Zh,(function(e,t,n){return tm={name:t,styles:n,next:tm},t}))}return 1===Gh[e]||Xh(e)||"number"!=typeof t||0===t?t:t+"px"};function em(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 tm={name:n.name,styles:n.styles,next:tm},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)tm={name:r.name,styles:r.styles,next:tm},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+=em(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+=Yh(a)+":"+Jh(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=em(e,t,i);switch(a){case"animation":case"animationName":r+=Yh(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var s=0;s<i.length;s++)Qh(i[s])&&(r+=Yh(a)+":"+Jh(a,i[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=tm,a=n(e);return tm=o,em(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var tm,nm=/label:\s*([^\s;\n{]+)\s*(;|$)/g,rm=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="";tm=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=em(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=em(n,t,e[i]),r&&(o+=a[i]);nm.lastIndex=0;for(var l,s="";null!==(l=nm.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:tm}},om="undefined"!=typeof document,am=function(e){return e()},im=!!K.useInsertionEffect&&K.useInsertionEffect,lm=om&&im||am,sm=im||d.useLayoutEffect,cm="undefined"!=typeof document,um=d.createContext("undefined"!=typeof HTMLElement?Bh({key:"css"}):null),dm=um.Provider,pm=function(e){return d.forwardRef((function(t,n){var r=d.useContext(um);return e(t,r,n)}))};cm||(pm=function(e){return function(t){var n=d.useContext(um);return null===n?(n=Bh({key:"css"}),d.createElement(um.Provider,{value:n},e(t,n))):e(t,n)}});var fm=d.createContext({}),hm=pm((function(e,t){var n=e.styles,r=rm([n],void 0,d.useContext(fm));if(!cm){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:d.createElement("style",((o={})["data-emotion"]=t.key+"-global "+a,o.dangerouslySetInnerHTML={__html:c},o.nonce=t.sheet.nonce,o))}var u=d.useRef();return sm((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]),sm((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Vh(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 mm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return rm(t)}var gm=function(){var e=mm.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_"}}},vm="undefined"!=typeof document;function ym(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var bm=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===vm&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};var xm={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Sm=/[A-Z]|^ms/g,wm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Em=function(e){return 45===e.charCodeAt(1)},Cm=function(e){return null!=e&&"boolean"!=typeof e},km=Pf((function(e){return Em(e)?e:e.replace(Sm,"-$&").toLowerCase()})),Lm=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(wm,(function(e,t,n){return Om={name:t,styles:n,next:Om},t}))}return 1===xm[e]||Em(e)||"number"!=typeof t||0===t?t:t+"px"};function Rm(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 Om={name:n.name,styles:n.styles,next:Om},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Om={name:r.name,styles:r.styles,next:Om},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+=Rm(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]+"}":Cm(i)&&(r+=km(a)+":"+Lm(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=Rm(e,t,i);switch(a){case"animation":case"animationName":r+=km(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var s=0;s<i.length;s++)Cm(i[s])&&(r+=km(a)+":"+Lm(a,i[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Om,a=n(e);return Om=o,Rm(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var Om,Im=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Pm=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="";Om=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=Rm(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=Rm(n,t,e[i]),r&&(o+=a[i]);Im.lastIndex=0;for(var l,s="";null!==(l=Im.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:Om}},Tm=_f,_m=function(e){return"theme"!==e},Nm=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Tm:_m},Mm=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},qm="undefined"!=typeof document,Am=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;bm(t,n,r);var o=lm((function(){return function(e,t,n){bm(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);vm||void 0===i||(o+=i),a=a.next}while(void 0!==a);if(!vm&&0!==o.length)return o}}(t,n,r)}));if(!qm&&void 0!==o){for(var a,i=n.name,l=n.next;void 0!==l;)i+=" "+l.name,l=l.next;return d.createElement("style",((a={})["data-emotion"]=t.key+" "+i,a.dangerouslySetInnerHTML={__html:o},a.nonce=t.sheet.nonce,a))}return null},Dm=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=Mm(t,n,a),s=l||Nm(i),c=!s("as");return function(){var u=arguments,p=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)p.push.apply(p,u);else{p.push(u[0][0]);for(var f=u.length,h=1;h<f;h++)p.push(u[h],u[0][h])}var m=pm((function(e,t,n){var r=c&&e.as||i,a="",u=[],f=e;if(null==e.theme){for(var h in f={},e)f[h]=e[h];f.theme=d.useContext(fm)}"string"==typeof e.className?a=ym(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var m=Pm(p.concat(u),t.registered,f);a+=t.key+"-"+m.name,void 0!==o&&(a+=" "+o);var g=c&&void 0===l?Nm(r):s,v={};for(var y in e)c&&"as"===y||g(y)&&(v[y]=e[y]);return v.className=a,v.ref=n,d.createElement(d.Fragment,null,d.createElement(Am,{cache:t,serialized:m,isStringTag:"string"==typeof r}),d.createElement(r,v))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=p,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,If({},n,r,{shouldForwardProp:Mm(m,r,!0)})).apply(void 0,p)},m}}.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){Dm[e]=Dm(e)}));var zm=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}(),jm=function(e,t,n){for(var r=0,o=0;r=o,o=dh(),38===r&&12===o&&(t[n]=1),!hh(o);)uh();return fh(e,oh)},Fm=function(e,t){return gh(function(e,t){var n=-1,r=44;do{switch(hh(r)){case 0:38===r&&12===dh()&&(t[n]=1),e[n]+=jm(oh-1,t,n);break;case 2:e[n]+=vh(r);break;case 4:if(44===r){e[++n]=58===dh()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Bf(r)}}while(r=uh());return e}(mh(e),t))},$m=new WeakMap,Bm=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)||$m.get(n))&&!r){$m.set(e,!0);for(var o=[],a=Fm(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]}}},Wm=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Hm(e,t){switch(Hf(e,t)){case 5103:return Af+"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 Af+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Af+e+qf+e+Mf+e+e;case 6828:case 4268:return Af+e+Mf+e+e;case 6165:return Af+e+Mf+"flex-"+e+e;case 5187:return Af+e+Gf(e,/(\w+).+(:[^]+)/,Af+"box-$1$2"+Mf+"flex-$1$2")+e;case 5443:return Af+e+Mf+"flex-item-"+Gf(e,/flex-|-self/,"")+e;case 4675:return Af+e+Mf+"flex-line-pack"+Gf(e,/align-content|flex-|-self/,"")+e;case 5548:return Af+e+Mf+Gf(e,"shrink","negative")+e;case 5292:return Af+e+Mf+Gf(e,"basis","preferred-size")+e;case 6060:return Af+"box-"+Gf(e,"-grow","")+Af+e+Mf+Gf(e,"grow","positive")+e;case 4554:return Af+Gf(e,/([^-])(transform)/g,"$1"+Af+"$2")+e;case 6187:return Gf(Gf(Gf(e,/(zoom-|grab)/,Af+"$1"),/(image-set)/,Af+"$1"),e,"")+e;case 5495:case 3959:return Gf(e,/(image-set\([^]*)/,Af+"$1$`$1");case 4968:return Gf(Gf(e,/(.+:)(flex-)?(.*)/,Af+"box-pack:$3"+Mf+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Af+e+e;case 4095:case 3583:case 4068:case 2532:return Gf(e,/(.+)-inline(.+)/,Af+"$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(Qf(e)-1-t>6)switch(Zf(e,t+1)){case 109:if(45!==Zf(e,t+4))break;case 102:return Gf(e,/(.+:)(.+)-([^]+)/,"$1"+Af+"$2-$3$1"+qf+(108==Zf(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Kf(e,"stretch")?Hm(Gf(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Zf(e,t+1))break;case 6444:switch(Zf(e,Qf(e)-3-(~Kf(e,"!important")&&10))){case 107:return Gf(e,":",":"+Af)+e;case 101:return Gf(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Af+(45===Zf(e,14)?"inline-":"")+"box$3$1"+Af+"$2$3$1"+Mf+"$2box$3")+e}break;case 5936:switch(Zf(e,t+11)){case 114:return Af+e+Mf+Gf(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Af+e+Mf+Gf(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Af+e+Mf+Gf(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Af+e+Mf+e+e}return e}var Um="undefined"!=typeof document,Vm=Um?void 0:_h((function(){return Pf((function(){var e={};return function(t){return e[t]}}))})),Gm=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case jf:e.return=Hm(e.value,e.length);break;case Ff:return Oh([sh(e,{value:Gf(e.value,"@","@"+Af)})],r);case zf:if(e.length)return eh(e.props,(function(t){switch(Vf(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Oh([sh(e,{props:[Gf(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Oh([sh(e,{props:[Gf(t,/:(plac\w+)/,":"+Af+"input-$1")]}),sh(e,{props:[Gf(t,/:(plac\w+)/,":-moz-$1")]}),sh(e,{props:[Gf(t,/:(plac\w+)/,Mf+"input-$1")]})],r)}return""}))}}],Km={},Zm={get exports(){return Km},set exports(e){Km=e}},Xm={},Qm=d,Ym=Symbol.for("react.element"),Jm=Symbol.for("react.fragment"),eg=Object.prototype.hasOwnProperty,tg=Qm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ng={key:!0,ref:!0,__self:!0,__source:!0};function rg(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)eg.call(t,r)&&!ng.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:Ym,type:e,key:a,ref:i,props:o,_owner:tg.current}}let og;function ag(e){const{injectFirst:t,children:n}=e;return t&&og?Km.jsx(dm,{value:og,children:n}):n}function ig(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 Km.jsx(hm,{styles:r})}
26
+ */function St(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 wt=new Set,Et={};function Ct(e,t){kt(e,t),kt(e+"Capture",t)}function kt(e,t){for(Et[e]=t,e=0;e<t.length;e++)wt.add(t[e])}var Rt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Lt=Object.prototype.hasOwnProperty,Ot=/^[: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]*$/,It={},Tt={};function Pt(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var _t={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){_t[e]=new Pt(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];_t[t]=new Pt(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){_t[e]=new Pt(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){_t[e]=new Pt(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){_t[e]=new Pt(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){_t[e]=new Pt(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){_t[e]=new Pt(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){_t[e]=new Pt(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){_t[e]=new Pt(e,5,!1,e.toLowerCase(),null,!1,!1)}));var Nt=/[\-:]([a-z])/g;function Mt(e){return e[1].toUpperCase()}function qt(e,t,n,r){var o=_t.hasOwnProperty(t)?_t[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!Lt.call(Tt,e)||!Lt.call(It,e)&&(Ot.test(e)?Tt[e]=!0:(It[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(Nt,Mt);_t[t]=new Pt(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(Nt,Mt);_t[t]=new Pt(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(Nt,Mt);_t[t]=new Pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){_t[e]=new Pt(e,1,!1,e.toLowerCase(),null,!1,!1)})),_t.xlinkHref=new Pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){_t[e]=new Pt(e,1,!1,e.toLowerCase(),null,!0,!0)}));var zt=yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,At=Symbol.for("react.element"),Dt=Symbol.for("react.portal"),jt=Symbol.for("react.fragment"),Ft=Symbol.for("react.strict_mode"),Bt=Symbol.for("react.profiler"),$t=Symbol.for("react.provider"),Wt=Symbol.for("react.context"),Ut=Symbol.for("react.forward_ref"),Ht=Symbol.for("react.suspense"),Vt=Symbol.for("react.suspense_list"),Gt=Symbol.for("react.memo"),Kt=Symbol.for("react.lazy"),Zt=Symbol.for("react.offscreen"),Xt=Symbol.iterator;function Qt(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Xt&&e[Xt]||e["@@iterator"])?e:null}var Jt,Yt=Object.assign;function en(e){if(void 0===Jt)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Jt=t&&t[1]||""}return"\n"+Jt+e}var tn=!1;function nn(e,t){if(!e||tn)return"";tn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{tn=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?en(e):""}function rn(e){switch(e.tag){case 5:return en(e.type);case 16:return en("Lazy");case 13:return en("Suspense");case 19:return en("SuspenseList");case 0:case 2:case 15:return e=nn(e.type,!1);case 11:return e=nn(e.type.render,!1);case 1:return e=nn(e.type,!0);default:return""}}function on(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 jt:return"Fragment";case Dt:return"Portal";case Bt:return"Profiler";case Ft:return"StrictMode";case Ht:return"Suspense";case Vt:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Wt:return(e.displayName||"Context")+".Consumer";case $t:return(e._context.displayName||"Context")+".Provider";case Ut:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Gt:return null!==(t=e.displayName||null)?t:on(e.type)||"Memo";case Kt:t=e._payload,e=e._init;try{return on(e(t))}catch(e){}}return null}function an(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 on(t);case 8:return t===Ft?"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 ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function sn(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function cn(e){e._valueTracker||(e._valueTracker=function(e){var t=sn(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function un(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=sn(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function dn(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 pn(e,t){var n=t.checked;return Yt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function fn(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ln(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 hn(e,t){null!=(t=t.checked)&&qt(e,"checked",t,!1)}function mn(e,t){hn(e,t);var n=ln(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")?vn(e,t.type,n):t.hasOwnProperty("defaultValue")&&vn(e,t.type,ln(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function gn(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 vn(e,t,n){"number"===t&&dn(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bn=Array.isArray;function yn(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=""+ln(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 xn(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(St(91));return Yt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Sn(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(St(92));if(bn(n)){if(1<n.length)throw Error(St(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ln(n)}}function wn(e,t){var n=ln(t.value),r=ln(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 En(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Cn(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 kn(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Cn(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Rn,Ln,On=(Ln=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Rn=Rn||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Rn.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 Ln(e,t)}))}:Ln);function In(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 Tn={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},Pn=["Webkit","ms","Moz","O"];function _n(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Tn.hasOwnProperty(e)&&Tn[e]?(""+t).trim():t+"px"}function Nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=_n(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Tn).forEach((function(e){Pn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tn[t]=Tn[e]}))}));var Mn=Yt({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 qn(e,t){if(t){if(Mn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(St(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(St(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(St(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(St(62))}}function zn(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 Dn(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var jn=null,Fn=null,Bn=null;function $n(e){if(e=za(e)){if("function"!=typeof jn)throw Error(St(280));var t=e.stateNode;t&&(t=Da(t),jn(e.stateNode,e.type,t))}}function Wn(e){Fn?Bn?Bn.push(e):Bn=[e]:Fn=e}function Un(){if(Fn){var e=Fn,t=Bn;if(Bn=Fn=null,$n(e),t)for(e=0;e<t.length;e++)$n(t[e])}}function Hn(e,t){return e(t)}function Vn(){}var Gn=!1;function Kn(e,t,n){if(Gn)return e(t,n);Gn=!0;try{return Hn(e,t,n)}finally{Gn=!1,(null!==Fn||null!==Bn)&&(Vn(),Un())}}function Zn(e,t){var n=e.stateNode;if(null===n)return null;var r=Da(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(St(231,t,typeof n));return n}var Xn=!1;if(Rt)try{var Qn={};Object.defineProperty(Qn,"passive",{get:function(){Xn=!0}}),window.addEventListener("test",Qn,Qn),window.removeEventListener("test",Qn,Qn)}catch(Ln){Xn=!1}function Jn(e,t,n,r,o,i,a,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Yn=!1,er=null,tr=!1,nr=null,rr={onError:function(e){Yn=!0,er=e}};function or(e,t,n,r,o,i,a,l,s){Yn=!1,er=null,Jn.apply(rr,arguments)}function ir(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 lr(e){if(ir(e)!==e)throw Error(St(188))}function sr(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=ir(e)))throw Error(St(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return lr(o),e;if(i===r)return lr(o),t;i=i.sibling}throw Error(St(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(St(189))}}if(n.alternate!==r)throw Error(St(190))}if(3!==n.tag)throw Error(St(188));return n.stateNode.current===n?e:t}(e),null!==e?cr(e):null}function cr(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=cr(e);if(null!==t)return t;e=e.sibling}return null}var ur=xt.unstable_scheduleCallback,dr=xt.unstable_cancelCallback,pr=xt.unstable_shouldYield,fr=xt.unstable_requestPaint,hr=xt.unstable_now,mr=xt.unstable_getCurrentPriorityLevel,gr=xt.unstable_ImmediatePriority,vr=xt.unstable_UserBlockingPriority,br=xt.unstable_NormalPriority,yr=xt.unstable_LowPriority,xr=xt.unstable_IdlePriority,Sr=null,wr=null;var Er=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Cr(e)/kr|0)|0},Cr=Math.log,kr=Math.LN2;var Rr=64,Lr=4194304;function Or(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 Ir(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=Or(l):0!==(i&=a)&&(r=Or(i))}else 0!==(a=n&~o)?r=Or(a):0!==i&&(r=Or(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Er(t)),r|=e[n],t&=~o;return r}function Tr(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 Pr(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function _r(){var e=Rr;return 0==(4194240&(Rr<<=1))&&(Rr=64),e}function Nr(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-Er(t)]=n}function qr(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Er(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var zr=0;function Ar(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Dr,jr,Fr,Br,$r,Wr=!1,Ur=[],Hr=null,Vr=null,Gr=null,Kr=new Map,Zr=new Map,Xr=[],Qr="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 Jr(e,t){switch(e){case"focusin":case"focusout":Hr=null;break;case"dragenter":case"dragleave":Vr=null;break;case"mouseover":case"mouseout":Gr=null;break;case"pointerover":case"pointerout":Kr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zr.delete(t.pointerId)}}function Yr(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=za(t))&&jr(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function eo(e){var t=qa(e.target);if(null!==t){var n=ir(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=ar(n)))return e.blockedOn=t,void $r(e.priority,(function(){Fr(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 to(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=fo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=za(n))&&jr(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 no(e,t,n){to(e)&&n.delete(t)}function ro(){Wr=!1,null!==Hr&&to(Hr)&&(Hr=null),null!==Vr&&to(Vr)&&(Vr=null),null!==Gr&&to(Gr)&&(Gr=null),Kr.forEach(no),Zr.forEach(no)}function oo(e,t){e.blockedOn===t&&(e.blockedOn=null,Wr||(Wr=!0,xt.unstable_scheduleCallback(xt.unstable_NormalPriority,ro)))}function io(e){function t(t){return oo(t,e)}if(0<Ur.length){oo(Ur[0],e);for(var n=1;n<Ur.length;n++){var r=Ur[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Hr&&oo(Hr,e),null!==Vr&&oo(Vr,e),null!==Gr&&oo(Gr,e),Kr.forEach(t),Zr.forEach(t),n=0;n<Xr.length;n++)(r=Xr[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Xr.length&&null===(n=Xr[0]).blockedOn;)eo(n),null===n.blockedOn&&Xr.shift()}var ao=zt.ReactCurrentBatchConfig,lo=!0;function so(e,t,n,r){var o=zr,i=ao.transition;ao.transition=null;try{zr=1,uo(e,t,n,r)}finally{zr=o,ao.transition=i}}function co(e,t,n,r){var o=zr,i=ao.transition;ao.transition=null;try{zr=4,uo(e,t,n,r)}finally{zr=o,ao.transition=i}}function uo(e,t,n,r){if(lo){var o=fo(e,t,n,r);if(null===o)la(e,t,r,po,n),Jr(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Hr=Yr(Hr,e,t,n,r,o),!0;case"dragenter":return Vr=Yr(Vr,e,t,n,r,o),!0;case"mouseover":return Gr=Yr(Gr,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Kr.set(i,Yr(Kr.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Zr.set(i,Yr(Zr.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Jr(e,r),4&t&&-1<Qr.indexOf(e)){for(;null!==o;){var i=za(o);if(null!==i&&Dr(i),null===(i=fo(e,t,n,r))&&la(e,t,r,po,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else la(e,t,r,null,n)}}var po=null;function fo(e,t,n,r){if(po=null,null!==(e=qa(e=Dn(r))))if(null===(t=ir(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 po=e,null}function ho(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(mr()){case gr:return 1;case vr:return 4;case br:case yr:return 16;case xr:return 536870912;default:return 16}default:return 16}}var mo=null,go=null,vo=null;function bo(){if(vo)return vo;var e,t,n=go,r=n.length,o="value"in mo?mo.value:mo.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return vo=o.slice(e,1<t?1-t:void 0)}function yo(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 xo(){return!0}function So(){return!1}function wo(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?xo:So,this.isPropagationStopped=So,this}return Yt(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=xo)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=xo)},persist:function(){},isPersistent:xo}),t}var Eo,Co,ko,Ro={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Lo=wo(Ro),Oo=Yt({},Ro,{view:0,detail:0}),Io=wo(Oo),To=Yt({},Oo,{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!==ko&&(ko&&"mousemove"===e.type?(Eo=e.screenX-ko.screenX,Co=e.screenY-ko.screenY):Co=Eo=0,ko=e),Eo)},movementY:function(e){return"movementY"in e?e.movementY:Co}}),Po=wo(To),_o=wo(Yt({},To,{dataTransfer:0})),No=wo(Yt({},Oo,{relatedTarget:0})),Mo=wo(Yt({},Ro,{animationName:0,elapsedTime:0,pseudoElement:0})),qo=Yt({},Ro,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zo=wo(qo),Ao=wo(Yt({},Ro,{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"},jo={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"},Fo={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bo(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Fo[e])&&!!t[e]}function $o(){return Bo}var Wo=Yt({},Oo,{key:function(e){if(e.key){var t=Do[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=yo(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?jo[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?yo(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?yo(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Uo=wo(Wo),Ho=wo(Yt({},To,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Vo=wo(Yt({},Oo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$o})),Go=wo(Yt({},Ro,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ko=Yt({},To,{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}),Zo=wo(Ko),Xo=[9,13,27,32],Qo=Rt&&"CompositionEvent"in window,Jo=null;Rt&&"documentMode"in document&&(Jo=document.documentMode);var Yo=Rt&&"TextEvent"in window&&!Jo,ei=Rt&&(!Qo||Jo&&8<Jo&&11>=Jo),ti=String.fromCharCode(32),ni=!1;function ri(e,t){switch(e){case"keyup":return-1!==Xo.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oi(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ii=!1;var ai={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 li(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ai[e.type]:"textarea"===t}function si(e,t,n,r){Wn(r),0<(t=ca(t,"onChange")).length&&(n=new Lo("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ci=null,ui=null;function di(e){ta(e,0)}function pi(e){if(un(Aa(e)))return e}function fi(e,t){if("change"===e)return t}var hi=!1;if(Rt){var mi;if(Rt){var gi="oninput"in document;if(!gi){var vi=document.createElement("div");vi.setAttribute("oninput","return;"),gi="function"==typeof vi.oninput}mi=gi}else mi=!1;hi=mi&&(!document.documentMode||9<document.documentMode)}function bi(){ci&&(ci.detachEvent("onpropertychange",yi),ui=ci=null)}function yi(e){if("value"===e.propertyName&&pi(ui)){var t=[];si(t,ui,e,Dn(e)),Kn(di,t)}}function xi(e,t,n){"focusin"===e?(bi(),ui=n,(ci=t).attachEvent("onpropertychange",yi)):"focusout"===e&&bi()}function Si(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return pi(ui)}function wi(e,t){if("click"===e)return pi(t)}function Ei(e,t){if("input"===e||"change"===e)return pi(t)}var Ci="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ki(e,t){if(Ci(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(!Lt.call(t,o)||!Ci(e[o],t[o]))return!1}return!0}function Ri(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Li(e,t){var n,r=Ri(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=Ri(r)}}function Oi(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Oi(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Ii(){for(var e=window,t=dn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=dn((e=t.contentWindow).document)}return t}function Ti(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 Pi(e){var t=Ii(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Oi(n.ownerDocument.documentElement,n)){if(null!==r&&Ti(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Li(n,i);var a=Li(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var _i=Rt&&"documentMode"in document&&11>=document.documentMode,Ni=null,Mi=null,qi=null,zi=!1;function Ai(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;zi||null==Ni||Ni!==dn(r)||("selectionStart"in(r=Ni)&&Ti(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},qi&&ki(qi,r)||(qi=r,0<(r=ca(Mi,"onSelect")).length&&(t=new Lo("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ni)))}function Di(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ji={animationend:Di("Animation","AnimationEnd"),animationiteration:Di("Animation","AnimationIteration"),animationstart:Di("Animation","AnimationStart"),transitionend:Di("Transition","TransitionEnd")},Fi={},Bi={};function $i(e){if(Fi[e])return Fi[e];if(!ji[e])return e;var t,n=ji[e];for(t in n)if(n.hasOwnProperty(t)&&t in Bi)return Fi[e]=n[t];return e}Rt&&(Bi=document.createElement("div").style,"AnimationEvent"in window||(delete ji.animationend.animation,delete ji.animationiteration.animation,delete ji.animationstart.animation),"TransitionEvent"in window||delete ji.transitionend.transition);var Wi=$i("animationend"),Ui=$i("animationiteration"),Hi=$i("animationstart"),Vi=$i("transitionend"),Gi=new Map,Ki="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 Zi(e,t){Gi.set(e,t),Ct(t,[e])}for(var Xi=0;Xi<Ki.length;Xi++){var Qi=Ki[Xi];Zi(Qi.toLowerCase(),"on"+(Qi[0].toUpperCase()+Qi.slice(1)))}Zi(Wi,"onAnimationEnd"),Zi(Ui,"onAnimationIteration"),Zi(Hi,"onAnimationStart"),Zi("dblclick","onDoubleClick"),Zi("focusin","onFocus"),Zi("focusout","onBlur"),Zi(Vi,"onTransitionEnd"),kt("onMouseEnter",["mouseout","mouseover"]),kt("onMouseLeave",["mouseout","mouseover"]),kt("onPointerEnter",["pointerout","pointerover"]),kt("onPointerLeave",["pointerout","pointerover"]),Ct("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ct("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ct("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ct("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ct("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ct("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ji="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(" "),Yi=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ji));function ea(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,s){if(or.apply(this,arguments),Yn){if(!Yn)throw Error(St(198));var c=er;Yn=!1,er=null,tr||(tr=!0,nr=c)}}(r,t,void 0,e),e.currentTarget=null}function ta(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;ea(o,l,c),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,c=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;ea(o,l,c),i=s}}}if(tr)throw e=nr,tr=!1,nr=null,e}function na(e,t){var n=t[_a];void 0===n&&(n=t[_a]=new Set);var r=e+"__bubble";n.has(r)||(aa(t,e,2,!1),n.add(r))}function ra(e,t,n){var r=0;t&&(r|=4),aa(n,e,r,t)}var oa="_reactListening"+Math.random().toString(36).slice(2);function ia(e){if(!e[oa]){e[oa]=!0,wt.forEach((function(t){"selectionchange"!==t&&(Yi.has(t)||ra(t,!1,e),ra(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[oa]||(t[oa]=!0,ra("selectionchange",!1,t))}}function aa(e,t,n,r){switch(ho(t)){case 1:var o=so;break;case 4:o=co;break;default:o=uo}n=o.bind(null,t,n,e),o=void 0,!Xn||"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 la(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=qa(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Kn((function(){var r=i,o=Dn(n),a=[];e:{var l=Gi.get(e);if(void 0!==l){var s=Lo,c=e;switch(e){case"keypress":if(0===yo(n))break e;case"keydown":case"keyup":s=Uo;break;case"focusin":c="focus",s=No;break;case"focusout":c="blur",s=No;break;case"beforeblur":case"afterblur":s=No;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=Po;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=_o;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Vo;break;case Wi:case Ui:case Hi:s=Mo;break;case Vi:s=Go;break;case"scroll":s=Io;break;case"wheel":s=Zo;break;case"copy":case"cut":case"paste":s=zo;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=Zn(h,p))&&u.push(sa(h,m,f)))),d)break;h=h.return}0<u.length&&(l=new s(l,c,null,n,o),a.push({event:l,listeners:u}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===An||!(c=n.relatedTarget||n.fromElement)||!qa(c)&&!c[Pa])&&(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)?qa(c):null)&&(c!==(d=ir(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=Po,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Ho,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==s?l:Aa(s),f=null==c?l:Aa(c),(l=new u(m,h+"leave",s,n,o)).target=d,l.relatedTarget=f,m=null,qa(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=ua(f))h++;for(f=0,m=p;m;m=ua(m))f++;for(;0<h-f;)u=ua(u),h--;for(;0<f-h;)p=ua(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=ua(u),p=ua(p)}u=null}else u=null;null!==s&&da(a,l,s,u,!1),null!==c&&null!==d&&da(a,d,c,u,!0)}if("select"===(s=(l=r?Aa(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=fi;else if(li(l))if(hi)g=Ei;else{g=Si;var v=xi}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=wi);switch(g&&(g=g(e,r))?si(a,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&vn(l,"number",l.value)),v=r?Aa(r):window,e){case"focusin":(li(v)||"true"===v.contentEditable)&&(Ni=v,Mi=r,qi=null);break;case"focusout":qi=Mi=Ni=null;break;case"mousedown":zi=!0;break;case"contextmenu":case"mouseup":case"dragend":zi=!1,Ai(a,n,o);break;case"selectionchange":if(_i)break;case"keydown":case"keyup":Ai(a,n,o)}var b;if(Qo)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 ii?ri(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(ei&&"ko"!==n.locale&&(ii||"onCompositionStart"!==y?"onCompositionEnd"===y&&ii&&(b=bo()):(go="value"in(mo=o)?mo.value:mo.textContent,ii=!0)),0<(v=ca(r,y)).length&&(y=new Ao(y,e,null,n,o),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=oi(n))&&(y.data=b))),(b=Yo?function(e,t){switch(e){case"compositionend":return oi(t);case"keypress":return 32!==t.which?null:(ni=!0,ti);case"textInput":return(e=t.data)===ti&&ni?null:e;default:return null}}(e,n):function(e,t){if(ii)return"compositionend"===e||!Qo&&ri(e,t)?(e=bo(),vo=go=mo=null,ii=!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 ei&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=ca(r,"onBeforeInput")).length&&(o=new Ao("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}ta(a,t)}))}function sa(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ca(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Zn(e,n))&&r.unshift(sa(e,i,o)),null!=(i=Zn(e,t))&&r.push(sa(e,i,o))),e=e.return}return r}function ua(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function da(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,o?null!=(s=Zn(n,i))&&a.unshift(sa(n,s,l)):o||null!=(s=Zn(n,i))&&a.push(sa(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var pa=/\r\n?/g,fa=/\u0000|\uFFFD/g;function ha(e){return("string"==typeof e?e:""+e).replace(pa,"\n").replace(fa,"")}function ma(e,t,n){if(t=ha(t),ha(e)!==t&&n)throw Error(St(425))}function ga(){}var va=null,ba=null;function ya(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 xa="function"==typeof setTimeout?setTimeout:void 0,Sa="function"==typeof clearTimeout?clearTimeout:void 0,wa="function"==typeof Promise?Promise:void 0,Ea="function"==typeof queueMicrotask?queueMicrotask:void 0!==wa?function(e){return wa.resolve(null).then(e).catch(Ca)}:xa;function Ca(e){setTimeout((function(){throw e}))}function ka(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 io(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);io(t)}function Ra(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 La(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 Oa=Math.random().toString(36).slice(2),Ia="__reactFiber$"+Oa,Ta="__reactProps$"+Oa,Pa="__reactContainer$"+Oa,_a="__reactEvents$"+Oa,Na="__reactListeners$"+Oa,Ma="__reactHandles$"+Oa;function qa(e){var t=e[Ia];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Pa]||n[Ia]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=La(e);null!==e;){if(n=e[Ia])return n;e=La(e)}return t}n=(e=n).parentNode}return null}function za(e){return!(e=e[Ia]||e[Pa])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Aa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(St(33))}function Da(e){return e[Ta]||null}var ja=[],Fa=-1;function Ba(e){return{current:e}}function $a(e){0>Fa||(e.current=ja[Fa],ja[Fa]=null,Fa--)}function Wa(e,t){Fa++,ja[Fa]=e.current,e.current=t}var Ua={},Ha=Ba(Ua),Va=Ba(!1),Ga=Ua;function Ka(e,t){var n=e.type.contextTypes;if(!n)return Ua;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Za(e){return null!=(e=e.childContextTypes)}function Xa(){$a(Va),$a(Ha)}function Qa(e,t,n){if(Ha.current!==Ua)throw Error(St(168));Wa(Ha,t),Wa(Va,n)}function Ja(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(St(108,an(e)||"Unknown",o));return Yt({},n,r)}function Ya(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ua,Ga=Ha.current,Wa(Ha,e),Wa(Va,Va.current),!0}function el(e,t,n){var r=e.stateNode;if(!r)throw Error(St(169));n?(e=Ja(e,t,Ga),r.__reactInternalMemoizedMergedChildContext=e,$a(Va),$a(Ha),Wa(Ha,e)):$a(Va),Wa(Va,n)}var tl=null,nl=!1,rl=!1;function ol(e){null===tl?tl=[e]:tl.push(e)}function il(){if(!rl&&null!==tl){rl=!0;var e=0,t=zr;try{var n=tl;for(zr=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}tl=null,nl=!1}catch(t){throw null!==tl&&(tl=tl.slice(e+1)),ur(gr,il),t}finally{zr=t,rl=!1}}return null}var al=[],ll=0,sl=null,cl=0,ul=[],dl=0,pl=null,fl=1,hl="";function ml(e,t){al[ll++]=cl,al[ll++]=sl,sl=e,cl=t}function gl(e,t,n){ul[dl++]=fl,ul[dl++]=hl,ul[dl++]=pl,pl=e;var r=fl;e=hl;var o=32-Er(r)-1;r&=~(1<<o),n+=1;var i=32-Er(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,fl=1<<32-Er(t)+o|n<<o|r,hl=i+e}else fl=1<<i|n<<o|r,hl=e}function vl(e){null!==e.return&&(ml(e,1),gl(e,1,0))}function bl(e){for(;e===sl;)sl=al[--ll],al[ll]=null,cl=al[--ll],al[ll]=null;for(;e===pl;)pl=ul[--dl],ul[dl]=null,hl=ul[--dl],ul[dl]=null,fl=ul[--dl],ul[dl]=null}var yl=null,xl=null,Sl=!1,wl=null;function El(e,t){var n=Gd(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 Cl(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,yl=e,xl=Ra(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,yl=e,xl=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==pl?{id:fl,overflow:hl}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Gd(18,null,null,0)).stateNode=t,n.return=e,e.child=n,yl=e,xl=null,!0);default:return!1}}function kl(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function Rl(e){if(Sl){var t=xl;if(t){var n=t;if(!Cl(e,t)){if(kl(e))throw Error(St(418));t=Ra(n.nextSibling);var r=yl;t&&Cl(e,t)?El(r,n):(e.flags=-4097&e.flags|2,Sl=!1,yl=e)}}else{if(kl(e))throw Error(St(418));e.flags=-4097&e.flags|2,Sl=!1,yl=e}}}function Ll(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;yl=e}function Ol(e){if(e!==yl)return!1;if(!Sl)return Ll(e),Sl=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ya(e.type,e.memoizedProps)),t&&(t=xl)){if(kl(e))throw Il(),Error(St(418));for(;t;)El(e,t),t=Ra(t.nextSibling)}if(Ll(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(St(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){xl=Ra(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}xl=null}}else xl=yl?Ra(e.stateNode.nextSibling):null;return!0}function Il(){for(var e=xl;e;)e=Ra(e.nextSibling)}function Tl(){xl=yl=null,Sl=!1}function Pl(e){null===wl?wl=[e]:wl.push(e)}var _l=zt.ReactCurrentBatchConfig;function Nl(e,t){if(e&&e.defaultProps){for(var n in t=Yt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ml=Ba(null),ql=null,zl=null,Al=null;function Dl(){Al=zl=ql=null}function jl(e){var t=Ml.current;$a(Ml),e._currentValue=t}function Fl(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 Bl(e,t){ql=e,Al=zl=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(zc=!0),e.firstContext=null)}function $l(e){var t=e._currentValue;if(Al!==e)if(e={context:e,memoizedValue:t,next:null},null===zl){if(null===ql)throw Error(St(308));zl=e,ql.dependencies={lanes:0,firstContext:e}}else zl=zl.next=e;return t}var Wl=null;function Ul(e){null===Wl?Wl=[e]:Wl.push(e)}function Hl(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ul(t)):(n.next=o.next,o.next=n),t.interleaved=n,Vl(e,r)}function Vl(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 Gl=!1;function Kl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zl(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 Xl(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ql(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Uu)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Vl(e,n)}return null===(o=r.interleaved)?(t.next=t,Ul(r)):(t.next=o.next,o.next=t),r.interleaved=t,Vl(e,n)}function Jl(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,qr(e,n)}}function Yl(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function es(e,t,n,r){var o=e.updateQueue;Gl=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===a?i=c:a.next=c,a=s;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(a=0,u=c=s=null,l=i;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=Yt({},d,p);break e;case 2:Gl=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=f,s=d):u=u.next=f,a|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ju|=a,e.lanes=a,e.memoizedState=d}}function ts(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(St(191,o));o.call(r)}}}var ns=(new yt.Component).refs;function rs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Yt({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&ir(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=gd(),o=vd(e),i=Xl(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Ql(e,i,o))&&(bd(t,e,o,r),Jl(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=gd(),o=vd(e),i=Xl(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Ql(e,i,o))&&(bd(t,e,o,r),Jl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=gd(),r=vd(e),o=Xl(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ql(e,o,r))&&(bd(t,e,r,n),Jl(t,e,r))}};function is(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!ki(n,r)||!ki(o,i))}function as(e,t,n){var r=!1,o=Ua,i=t.contextType;return"object"==typeof i&&null!==i?i=$l(i):(o=Za(t)?Ga:Ha.current,i=(r=null!=(r=t.contextTypes))?Ka(e,o):Ua),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ls(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&&os.enqueueReplaceState(t,t.state,null)}function ss(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=ns,Kl(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=$l(i):(i=Za(t)?Ga:Ha.current,o.context=Ka(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rs(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),es(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function cs(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(St(309));var r=n.stateNode}if(!r)throw Error(St(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===ns&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(St(284));if(!n._owner)throw Error(St(290,e))}return e}function us(e,t){throw e=Object.prototype.toString.call(t),Error(St(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ds(e){return(0,e._init)(e._payload)}function ps(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=Zd(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Yd(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===jt?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===Kt&&ds(i)===t.type)?((r=o(t,n.props)).ref=cs(e,t,n),r.return=e,r):((r=Xd(n.type,n.key,n.props,null,e.mode,r)).ref=cs(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=ep(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function u(e,t,n,r,i){return null===t||7!==t.tag?((t=Qd(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Yd(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case At:return(n=Xd(t.type,t.key,t.props,null,e.mode,n)).ref=cs(e,null,t),n.return=e,n;case Dt:return(t=ep(t,e.mode,n)).return=e,t;case Kt:return d(e,(0,t._init)(t._payload),n)}if(bn(t)||Qt(t))return(t=Qd(t,e.mode,n,null)).return=e,t;us(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 Dt:return n.key===o?c(e,t,n,r):null;case Kt:return p(e,t,(o=n._init)(n._payload),r)}if(bn(n)||Qt(n))return null!==o?null:u(e,t,n,r,null);us(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 Dt:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Kt:return f(e,t,n,(0,r._init)(r._payload),o)}if(bn(r)||Qt(r))return u(t,e=e.get(n)||null,r,o,null);us(t,r)}return null}function h(o,a,l,s){for(var c=null,u=null,h=a,m=a=0,g=null;null!==h&&m<l.length;m++){h.index>m?(g=h,h=null):g=h.sibling;var v=p(o,h,l[m],s);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&t(o,h),a=i(v,a,m),null===u?c=v:u.sibling=v,u=v,h=g}if(m===l.length)return n(o,h),Sl&&ml(o,m),c;if(null===h){for(;m<l.length;m++)null!==(h=d(o,l[m],s))&&(a=i(h,a,m),null===u?c=h:u.sibling=h,u=h);return Sl&&ml(o,m),c}for(h=r(o,h);m<l.length;m++)null!==(g=f(h,o,m,l[m],s))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&h.forEach((function(e){return t(o,e)})),Sl&&ml(o,m),c}function m(o,a,l,s){var c=Qt(l);if("function"!=typeof c)throw Error(St(150));if(null==(l=c.call(l)))throw Error(St(151));for(var u=c=null,h=a,m=a=0,g=null,v=l.next();null!==h&&!v.done;m++,v=l.next()){h.index>m?(g=h,h=null):g=h.sibling;var b=p(o,h,v.value,s);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(o,h),a=i(b,a,m),null===u?c=b:u.sibling=b,u=b,h=g}if(v.done)return n(o,h),Sl&&ml(o,m),c;if(null===h){for(;!v.done;m++,v=l.next())null!==(v=d(o,v.value,s))&&(a=i(v,a,m),null===u?c=v:u.sibling=v,u=v);return Sl&&ml(o,m),c}for(h=r(o,h);!v.done;m++,v=l.next())null!==(v=f(h,o,m,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),a=i(v,a,m),null===u?c=v:u.sibling=v,u=v);return e&&h.forEach((function(e){return t(o,e)})),Sl&&ml(o,m),c}return function e(r,i,l,s){if("object"==typeof l&&null!==l&&l.type===jt&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case At:e:{for(var c=l.key,u=i;null!==u;){if(u.key===c){if((c=l.type)===jt){if(7===u.tag){n(r,u.sibling),(i=o(u,l.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===Kt&&ds(c)===u.type){n(r,u.sibling),(i=o(u,l.props)).ref=cs(r,u,l),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}l.type===jt?((i=Qd(l.props.children,r.mode,s,l.key)).return=r,r=i):((s=Xd(l.type,l.key,l.props,null,r.mode,s)).ref=cs(r,i,l),s.return=r,r=s)}return a(r);case Dt:e:{for(u=l.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===l.containerInfo&&i.stateNode.implementation===l.implementation){n(r,i.sibling),(i=o(i,l.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=ep(l,r.mode,s)).return=r,r=i}return a(r);case Kt:return e(r,i,(u=l._init)(l._payload),s)}if(bn(l))return h(r,i,l,s);if(Qt(l))return m(r,i,l,s);us(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,l)).return=r,r=i):(n(r,i),(i=Yd(l,r.mode,s)).return=r,r=i),a(r)):n(r,i)}}var fs=ps(!0),hs=ps(!1),ms={},gs=Ba(ms),vs=Ba(ms),bs=Ba(ms);function ys(e){if(e===ms)throw Error(St(174));return e}function xs(e,t){switch(Wa(bs,t),Wa(vs,e),Wa(gs,ms),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:kn(null,"");break;default:t=kn(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}$a(gs),Wa(gs,t)}function Ss(){$a(gs),$a(vs),$a(bs)}function ws(e){ys(bs.current);var t=ys(gs.current),n=kn(t,e.type);t!==n&&(Wa(vs,e),Wa(gs,n))}function Es(e){vs.current===e&&($a(gs),$a(vs))}var Cs=Ba(0);function ks(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 Rs=[];function Ls(){for(var e=0;e<Rs.length;e++)Rs[e]._workInProgressVersionPrimary=null;Rs.length=0}var Os=zt.ReactCurrentDispatcher,Is=zt.ReactCurrentBatchConfig,Ts=0,Ps=null,_s=null,Ns=null,Ms=!1,qs=!1,zs=0,As=0;function Ds(){throw Error(St(321))}function js(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ci(e[n],t[n]))return!1;return!0}function Fs(e,t,n,r,o,i){if(Ts=i,Ps=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Os.current=null===e||null===e.memoizedState?Ec:Cc,e=n(r,o),qs){i=0;do{if(qs=!1,zs=0,25<=i)throw Error(St(301));i+=1,Ns=_s=null,t.updateQueue=null,Os.current=kc,e=n(r,o)}while(qs)}if(Os.current=wc,t=null!==_s&&null!==_s.next,Ts=0,Ns=_s=Ps=null,Ms=!1,t)throw Error(St(300));return e}function Bs(){var e=0!==zs;return zs=0,e}function $s(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ns?Ps.memoizedState=Ns=e:Ns=Ns.next=e,Ns}function Ws(){if(null===_s){var e=Ps.alternate;e=null!==e?e.memoizedState:null}else e=_s.next;var t=null===Ns?Ps.memoizedState:Ns.next;if(null!==t)Ns=t,_s=e;else{if(null===e)throw Error(St(310));e={memoizedState:(_s=e).memoizedState,baseState:_s.baseState,baseQueue:_s.baseQueue,queue:_s.queue,next:null},null===Ns?Ps.memoizedState=Ns=e:Ns=Ns.next=e}return Ns}function Us(e,t){return"function"==typeof t?t(e):t}function Hs(e){var t=Ws(),n=t.queue;if(null===n)throw Error(St(311));n.lastRenderedReducer=e;var r=_s,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=a=null,s=null,c=i;do{var u=c.lane;if((Ts&u)===u)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(l=s=d,a=r):s=s.next=d,Ps.lanes|=u,Ju|=u}c=c.next}while(null!==c&&c!==i);null===s?a=r:s.next=l,Ci(r,t.memoizedState)||(zc=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,Ps.lanes|=i,Ju|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Vs(e){var t=Ws(),n=t.queue;if(null===n)throw Error(St(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);Ci(i,t.memoizedState)||(zc=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Gs(){}function Ks(e,t){var n=Ps,r=Ws(),o=t(),i=!Ci(r.memoizedState,o);if(i&&(r.memoizedState=o,zc=!0),r=r.queue,ac(Qs.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==Ns&&1&Ns.memoizedState.tag){if(n.flags|=2048,tc(9,Xs.bind(null,n,r,o,t),void 0,null),null===Hu)throw Error(St(349));0!=(30&Ts)||Zs(n,t,o)}return o}function Zs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Ps.updateQueue)?(t={lastEffect:null,stores:null},Ps.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Xs(e,t,n,r){t.value=n,t.getSnapshot=r,Js(t)&&Ys(e)}function Qs(e,t,n){return n((function(){Js(t)&&Ys(e)}))}function Js(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ci(e,n)}catch(e){return!0}}function Ys(e){var t=Vl(e,1);null!==t&&bd(t,e,1,-1)}function ec(e){var t=$s();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Us,lastRenderedState:e},t.queue=e,e=e.dispatch=bc.bind(null,Ps,e),[t.memoizedState,e]}function tc(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ps.updateQueue)?(t={lastEffect:null,stores:null},Ps.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function nc(){return Ws().memoizedState}function rc(e,t,n,r){var o=$s();Ps.flags|=e,o.memoizedState=tc(1|t,n,void 0,void 0===r?null:r)}function oc(e,t,n,r){var o=Ws();r=void 0===r?null:r;var i=void 0;if(null!==_s){var a=_s.memoizedState;if(i=a.destroy,null!==r&&js(r,a.deps))return void(o.memoizedState=tc(t,n,i,r))}Ps.flags|=e,o.memoizedState=tc(1|t,n,i,r)}function ic(e,t){return rc(8390656,8,e,t)}function ac(e,t){return oc(2048,8,e,t)}function lc(e,t){return oc(4,2,e,t)}function sc(e,t){return oc(4,4,e,t)}function cc(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 uc(e,t,n){return n=null!=n?n.concat([e]):null,oc(4,4,cc.bind(null,t,e),n)}function dc(){}function pc(e,t){var n=Ws();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&js(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function fc(e,t){var n=Ws();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&js(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function hc(e,t,n){return 0==(21&Ts)?(e.baseState&&(e.baseState=!1,zc=!0),e.memoizedState=n):(Ci(n,t)||(n=_r(),Ps.lanes|=n,Ju|=n,e.baseState=!0),t)}function mc(e,t){var n=zr;zr=0!==n&&4>n?n:4,e(!0);var r=Is.transition;Is.transition={};try{e(!1),t()}finally{zr=n,Is.transition=r}}function gc(){return Ws().memoizedState}function vc(e,t,n){var r=vd(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},yc(e))xc(t,n);else if(null!==(n=Hl(e,t,n,r))){bd(n,e,r,gd()),Sc(n,t,r)}}function bc(e,t,n){var r=vd(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(yc(e))xc(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,Ci(l,a)){var s=t.interleaved;return null===s?(o.next=o,Ul(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Hl(e,t,o,r))&&(bd(n,e,r,o=gd()),Sc(n,t,r))}}function yc(e){var t=e.alternate;return e===Ps||null!==t&&t===Ps}function xc(e,t){qs=Ms=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Sc(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,qr(e,n)}}var wc={readContext:$l,useCallback:Ds,useContext:Ds,useEffect:Ds,useImperativeHandle:Ds,useInsertionEffect:Ds,useLayoutEffect:Ds,useMemo:Ds,useReducer:Ds,useRef:Ds,useState:Ds,useDebugValue:Ds,useDeferredValue:Ds,useTransition:Ds,useMutableSource:Ds,useSyncExternalStore:Ds,useId:Ds,unstable_isNewReconciler:!1},Ec={readContext:$l,useCallback:function(e,t){return $s().memoizedState=[e,void 0===t?null:t],e},useContext:$l,useEffect:ic,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,rc(4194308,4,cc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rc(4194308,4,e,t)},useInsertionEffect:function(e,t){return rc(4,2,e,t)},useMemo:function(e,t){var n=$s();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$s();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=vc.bind(null,Ps,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},$s().memoizedState=e},useState:ec,useDebugValue:dc,useDeferredValue:function(e){return $s().memoizedState=e},useTransition:function(){var e=ec(!1),t=e[0];return e=mc.bind(null,e[1]),$s().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ps,o=$s();if(Sl){if(void 0===n)throw Error(St(407));n=n()}else{if(n=t(),null===Hu)throw Error(St(349));0!=(30&Ts)||Zs(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,ic(Qs.bind(null,r,i,e),[e]),r.flags|=2048,tc(9,Xs.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=$s(),t=Hu.identifierPrefix;if(Sl){var n=hl;t=":"+t+"R"+(n=(fl&~(1<<32-Er(fl)-1)).toString(32)+n),0<(n=zs++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=As++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Cc={readContext:$l,useCallback:pc,useContext:$l,useEffect:ac,useImperativeHandle:uc,useInsertionEffect:lc,useLayoutEffect:sc,useMemo:fc,useReducer:Hs,useRef:nc,useState:function(){return Hs(Us)},useDebugValue:dc,useDeferredValue:function(e){return hc(Ws(),_s.memoizedState,e)},useTransition:function(){return[Hs(Us)[0],Ws().memoizedState]},useMutableSource:Gs,useSyncExternalStore:Ks,useId:gc,unstable_isNewReconciler:!1},kc={readContext:$l,useCallback:pc,useContext:$l,useEffect:ac,useImperativeHandle:uc,useInsertionEffect:lc,useLayoutEffect:sc,useMemo:fc,useReducer:Vs,useRef:nc,useState:function(){return Vs(Us)},useDebugValue:dc,useDeferredValue:function(e){var t=Ws();return null===_s?t.memoizedState=e:hc(t,_s.memoizedState,e)},useTransition:function(){return[Vs(Us)[0],Ws().memoizedState]},useMutableSource:Gs,useSyncExternalStore:Ks,useId:gc,unstable_isNewReconciler:!1};function Rc(e,t){try{var n="",r=t;do{n+=rn(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 Lc(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Oc(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Ic="function"==typeof WeakMap?WeakMap:Map;function Tc(e,t,n){(n=Xl(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ad||(ad=!0,ld=r),Oc(0,t)},n}function Pc(e,t,n){(n=Xl(-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(){Oc(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){Oc(0,t),"function"!=typeof r&&(null===sd?sd=new Set([this]):sd.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function _c(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Ic;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=Bd.bind(null,e,t,n),t.then(e,e))}function Nc(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 Mc(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=Xl(-1,1)).tag=2,Ql(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var qc=zt.ReactCurrentOwner,zc=!1;function Ac(e,t,n,r){t.child=null===e?hs(t,null,n,r):fs(t,e.child,n,r)}function Dc(e,t,n,r,o){n=n.render;var i=t.ref;return Bl(t,o),r=Fs(e,t,n,r,i,o),n=Bs(),null===e||zc?(Sl&&n&&vl(t),t.flags|=1,Ac(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,au(e,t,o))}function jc(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Kd(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Xd(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Fc(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:ki)(a,r)&&e.ref===t.ref)return au(e,t,o)}return t.flags|=1,(e=Zd(i,r)).ref=t.ref,e.return=t,t.child=e}function Fc(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(ki(i,r)&&e.ref===t.ref){if(zc=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,au(e,t,o);0!=(131072&e.flags)&&(zc=!0)}}return Wc(e,t,n,r,o)}function Bc(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Wa(Zu,Ku),Ku|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Wa(Zu,Ku),Ku|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Wa(Zu,Ku),Ku|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Wa(Zu,Ku),Ku|=r;return Ac(e,t,o,n),t.child}function $c(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Wc(e,t,n,r,o){var i=Za(n)?Ga:Ha.current;return i=Ka(t,i),Bl(t,o),n=Fs(e,t,n,r,i,o),r=Bs(),null===e||zc?(Sl&&r&&vl(t),t.flags|=1,Ac(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,au(e,t,o))}function Uc(e,t,n,r,o){if(Za(n)){var i=!0;Ya(t)}else i=!1;if(Bl(t,o),null===t.stateNode)iu(e,t),as(t,n,r),ss(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=$l(c):c=Ka(t,c=Za(n)?Ga:Ha.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==c)&&ls(t,a,r,c),Gl=!1;var p=t.memoizedState;a.state=p,es(t,r,a,o),s=t.memoizedState,l!==r||p!==s||Va.current||Gl?("function"==typeof u&&(rs(t,n,u,r),s=t.memoizedState),(l=Gl||is(t,n,l,r,p,s,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=c,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Zl(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Nl(t.type,l),a.props=c,d=t.pendingProps,p=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=$l(s):s=Ka(t,s=Za(n)?Ga:Ha.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||p!==s)&&ls(t,a,r,s),Gl=!1,p=t.memoizedState,a.state=p,es(t,r,a,o);var h=t.memoizedState;l!==d||p!==h||Va.current||Gl?("function"==typeof f&&(rs(t,n,f,r),h=t.memoizedState),(c=Gl||is(t,n,c,r,p,h,s)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=c):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Hc(e,t,n,r,i,o)}function Hc(e,t,n,r,o,i){$c(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&el(t,n,!1),au(e,t,i);r=t.stateNode,qc.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=fs(t,e.child,null,i),t.child=fs(t,null,l,i)):Ac(e,t,l,i),t.memoizedState=r.state,o&&el(t,n,!0),t.child}function Vc(e){var t=e.stateNode;t.pendingContext?Qa(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Qa(0,t.context,!1),xs(e,t.containerInfo)}function Gc(e,t,n,r,o){return Tl(),Pl(o),t.flags|=256,Ac(e,t,n,r),t.child}var Kc,Zc,Xc,Qc={dehydrated:null,treeContext:null,retryLane:0};function Jc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Yc(e,t,n){var r,o=t.pendingProps,i=Cs.current,a=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Wa(Cs,1&i),null===e)return Rl(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=Jd(l,o,0,null),e=Qd(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Jc(n),t.memoizedState=Qc,e):eu(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,tu(e,t,a,r=Lc(Error(St(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Jd({mode:"visible",children:r.children},o,0,null),(i=Qd(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&fs(t,e.child,null,a),t.child.memoizedState=Jc(a),t.memoizedState=Qc,i);if(0==(1&t.mode))return tu(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,tu(e,t,a,r=Lc(i=Error(St(419)),r,void 0))}if(l=0!=(a&e.childLanes),zc||l){if(null!==(r=Hu)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|a))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Vl(e,o),bd(r,e,o,-1))}return Pd(),tu(e,t,a,r=Lc(Error(St(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Wd.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,xl=Ra(o.nextSibling),yl=t,Sl=!0,wl=null,null!==e&&(ul[dl++]=fl,ul[dl++]=hl,ul[dl++]=pl,fl=e.id,hl=e.overflow,pl=t),t=eu(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,i,n);if(a){a=o.fallback,l=t.mode,r=(i=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=Zd(i,s)).subtreeFlags=14680064&i.subtreeFlags,null!==r?a=Zd(r,a):(a=Qd(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?Jc(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Qc,o}return e=(a=e.child).sibling,o=Zd(a,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function eu(e,t){return(t=Jd({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function tu(e,t,n,r){return null!==r&&Pl(r),fs(t,e.child,null,n),(e=eu(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function nu(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Fl(e.return,t,n)}function ru(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function ou(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ac(e,t,r.children,n),0!=(2&(r=Cs.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&&nu(e,n,t);else if(19===e.tag)nu(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(Wa(Cs,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===ks(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ru(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ks(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ru(t,!0,n,null,i);break;case"together":ru(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function iu(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),Ju|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(St(153));if(null!==t.child){for(n=Zd(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Zd(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function lu(e,t){if(!Sl)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 su(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 cu(e,t,n){var r=t.pendingProps;switch(bl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return su(t),null;case 1:case 17:return Za(t.type)&&Xa(),su(t),null;case 3:return r=t.stateNode,Ss(),$a(Va),$a(Ha),Ls(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ol(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==wl&&(wd(wl),wl=null))),su(t),null;case 5:Es(t);var o=ys(bs.current);if(n=t.type,null!==e&&null!=t.stateNode)Zc(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(St(166));return su(t),null}if(e=ys(gs.current),Ol(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ia]=t,r[Ta]=i,e=0!=(1&t.mode),n){case"dialog":na("cancel",r),na("close",r);break;case"iframe":case"object":case"embed":na("load",r);break;case"video":case"audio":for(o=0;o<Ji.length;o++)na(Ji[o],r);break;case"source":na("error",r);break;case"img":case"image":case"link":na("error",r),na("load",r);break;case"details":na("toggle",r);break;case"input":fn(r,i),na("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},na("invalid",r);break;case"textarea":Sn(r,i),na("invalid",r)}for(var a in qn(n,i),o=null,i)if(i.hasOwnProperty(a)){var l=i[a];"children"===a?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&ma(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&ma(r.textContent,l,e),o=["children",""+l]):Et.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&na("scroll",r)}switch(n){case"input":cn(r),gn(r,i,!0);break;case"textarea":cn(r),En(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=ga)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=Cn(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Ia]=t,e[Ta]=r,Kc(e,t),t.stateNode=e;e:{switch(a=zn(n,r),n){case"dialog":na("cancel",e),na("close",e),o=r;break;case"iframe":case"object":case"embed":na("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ji.length;o++)na(Ji[o],e);o=r;break;case"source":na("error",e),o=r;break;case"img":case"image":case"link":na("error",e),na("load",e),o=r;break;case"details":na("toggle",e),o=r;break;case"input":fn(e,r),o=pn(e,r),na("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Yt({},r,{value:void 0}),na("invalid",e);break;case"textarea":Sn(e,r),o=xn(e,r),na("invalid",e)}for(i in qn(n,o),l=o)if(l.hasOwnProperty(i)){var s=l[i];"style"===i?Nn(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&On(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&In(e,s):"number"==typeof s&&In(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(Et.hasOwnProperty(i)?null!=s&&"onScroll"===i&&na("scroll",e):null!=s&&qt(e,i,s,a))}switch(n){case"input":cn(e),gn(e,r,!1);break;case"textarea":cn(e),En(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ln(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?yn(e,!!r.multiple,i,!1):null!=r.defaultValue&&yn(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=ga)}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 su(t),null;case 6:if(e&&null!=t.stateNode)Xc(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(St(166));if(n=ys(bs.current),ys(gs.current),Ol(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ia]=t,(i=r.nodeValue!==n)&&null!==(e=yl))switch(e.tag){case 3:ma(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&ma(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Ia]=t,t.stateNode=r}return su(t),null;case 13:if($a(Cs),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Sl&&null!==xl&&0!=(1&t.mode)&&0==(128&t.flags))Il(),Tl(),t.flags|=98560,i=!1;else if(i=Ol(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(St(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(St(317));i[Ia]=t}else Tl(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;su(t),i=!1}else null!==wl&&(wd(wl),wl=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&Cs.current)?0===Xu&&(Xu=3):Pd())),null!==t.updateQueue&&(t.flags|=4),su(t),null);case 4:return Ss(),null===e&&ia(t.stateNode.containerInfo),su(t),null;case 10:return jl(t.type._context),su(t),null;case 19:if($a(Cs),null===(i=t.memoizedState))return su(t),null;if(r=0!=(128&t.flags),null===(a=i.rendering))if(r)lu(i,!1);else{if(0!==Xu||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=ks(e))){for(t.flags|=128,lu(i,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(a=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Wa(Cs,1&Cs.current|2),t.child}e=e.sibling}null!==i.tail&&hr()>od&&(t.flags|=128,r=!0,lu(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ks(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),lu(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!Sl)return su(t),null}else 2*hr()-i.renderingStartTime>od&&1073741824!==n&&(t.flags|=128,r=!0,lu(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=hr(),t.sibling=null,n=Cs.current,Wa(Cs,r?1&n|2:1&n),t):(su(t),null);case 22:case 23:return Ld(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Ku)&&(su(t),6&t.subtreeFlags&&(t.flags|=8192)):su(t),null;case 24:case 25:return null}throw Error(St(156,t.tag))}function uu(e,t){switch(bl(t),t.tag){case 1:return Za(t.type)&&Xa(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ss(),$a(Va),$a(Ha),Ls(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Es(t),null;case 13:if($a(Cs),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(St(340));Tl()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return $a(Cs),null;case 4:return Ss(),null;case 10:return jl(t.type._context),null;case 22:case 23:return Ld(),null;default:return null}}Kc=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}},Zc=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ys(gs.current);var i,a=null;switch(n){case"input":o=pn(e,o),r=pn(e,r),a=[];break;case"select":o=Yt({},o,{value:void 0}),r=Yt({},r,{value:void 0}),a=[];break;case"textarea":o=xn(e,o),r=xn(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=ga)}for(c in qn(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(Et.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var s=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==l&&(null!=s||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(a=a||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(Et.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&na("scroll",e),a||l===s||(a=[])):(a=a||[]).push(c,s))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Xc=function(e,t,n,r){n!==r&&(t.flags|=4)};var du=!1,pu=!1,fu="function"==typeof WeakSet?WeakSet:Set,hu=null;function mu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Fd(e,t,n)}else n.current=null}function gu(e,t,n){try{n()}catch(n){Fd(e,t,n)}}var vu=!1;function bu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&gu(t,n,i)}o=o.next}while(o!==r)}}function yu(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 xu(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 Su(e){var t=e.alternate;null!==t&&(e.alternate=null,Su(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Ia],delete t[Ta],delete t[_a],delete t[Na],delete t[Ma])),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 wu(e){return 5===e.tag||3===e.tag||4===e.tag}function Eu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||wu(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 Cu(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=ga));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}function ku(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(ku(e,t,n),e=e.sibling;null!==e;)ku(e,t,n),e=e.sibling}var Ru=null,Lu=!1;function Ou(e,t,n){for(n=n.child;null!==n;)Iu(e,t,n),n=n.sibling}function Iu(e,t,n){if(wr&&"function"==typeof wr.onCommitFiberUnmount)try{wr.onCommitFiberUnmount(Sr,n)}catch(e){}switch(n.tag){case 5:pu||mu(n,t);case 6:var r=Ru,o=Lu;Ru=null,Ou(e,t,n),Lu=o,null!==(Ru=r)&&(Lu?(e=Ru,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Ru.removeChild(n.stateNode));break;case 18:null!==Ru&&(Lu?(e=Ru,n=n.stateNode,8===e.nodeType?ka(e.parentNode,n):1===e.nodeType&&ka(e,n),io(e)):ka(Ru,n.stateNode));break;case 4:r=Ru,o=Lu,Ru=n.stateNode.containerInfo,Lu=!0,Ou(e,t,n),Ru=r,Lu=o;break;case 0:case 11:case 14:case 15:if(!pu&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&gu(n,t,a),o=o.next}while(o!==r)}Ou(e,t,n);break;case 1:if(!pu&&(mu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Fd(n,t,e)}Ou(e,t,n);break;case 21:Ou(e,t,n);break;case 22:1&n.mode?(pu=(r=pu)||null!==n.memoizedState,Ou(e,t,n),pu=r):Ou(e,t,n);break;default:Ou(e,t,n)}}function Tu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fu),t.forEach((function(t){var r=Ud.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Pu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:Ru=l.stateNode,Lu=!1;break e;case 3:case 4:Ru=l.stateNode.containerInfo,Lu=!0;break e}l=l.return}if(null===Ru)throw Error(St(160));Iu(i,a,o),Ru=null,Lu=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){Fd(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)_u(t,e),t=t.sibling}function _u(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Pu(t,e),Nu(e),4&r){try{bu(3,e,e.return),yu(3,e)}catch(t){Fd(e,e.return,t)}try{bu(5,e,e.return)}catch(t){Fd(e,e.return,t)}}break;case 1:Pu(t,e),Nu(e),512&r&&null!==n&&mu(n,n.return);break;case 5:if(Pu(t,e),Nu(e),512&r&&null!==n&&mu(n,n.return),32&e.flags){var o=e.stateNode;try{In(o,"")}catch(t){Fd(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,a=null!==n?n.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===i.type&&null!=i.name&&hn(o,i),zn(l,a);var c=zn(l,i);for(a=0;a<s.length;a+=2){var u=s[a],d=s[a+1];"style"===u?Nn(o,d):"dangerouslySetInnerHTML"===u?On(o,d):"children"===u?In(o,d):qt(o,u,d,c)}switch(l){case"input":mn(o,i);break;case"textarea":wn(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;null!=f?yn(o,!!i.multiple,f,!1):p!==!!i.multiple&&(null!=i.defaultValue?yn(o,!!i.multiple,i.defaultValue,!0):yn(o,!!i.multiple,i.multiple?[]:"",!1))}o[Ta]=i}catch(t){Fd(e,e.return,t)}}break;case 6:if(Pu(t,e),Nu(e),4&r){if(null===e.stateNode)throw Error(St(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){Fd(e,e.return,t)}}break;case 3:if(Pu(t,e),Nu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{io(t.containerInfo)}catch(t){Fd(e,e.return,t)}break;case 4:default:Pu(t,e),Nu(e);break;case 13:Pu(t,e),Nu(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(rd=hr())),4&r&&Tu(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(pu=(c=pu)||u,Pu(t,e),pu=c):Pu(t,e),Nu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&0!=(1&e.mode))for(hu=e,u=e.child;null!==u;){for(d=hu=u;null!==hu;){switch(f=(p=hu).child,p.tag){case 0:case 11:case 14:case 15:bu(4,p,p.return);break;case 1:mu(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){Fd(r,n,e)}}break;case 5:mu(p,p.return);break;case 22:if(null!==p.memoizedState){Au(d);continue}}null!==f?(f.return=p,hu=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(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=d.stateNode,a=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=_n("display",a))}catch(t){Fd(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){Fd(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:Pu(t,e),Nu(e),4&r&&Tu(e);case 21:}}function Nu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(wu(n)){var r=n;break e}n=n.return}throw Error(St(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(In(o,""),r.flags&=-33),ku(e,Eu(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;Cu(e,Eu(e),i);break;default:throw Error(St(161))}}catch(t){Fd(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Mu(e,t,n){hu=e,qu(e)}function qu(e,t,n){for(var r=0!=(1&e.mode);null!==hu;){var o=hu,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||du;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||pu;l=du;var c=pu;if(du=a,(pu=s)&&!c)for(hu=o;null!==hu;)s=(a=hu).child,22===a.tag&&null!==a.memoizedState?Du(o):null!==s?(s.return=a,hu=s):Du(o);for(;null!==i;)hu=i,qu(i),i=i.sibling;hu=o,du=l,pu=c}zu(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,hu=i):zu(e)}}function zu(e){for(;null!==hu;){var t=hu;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:pu||yu(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!pu)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Nl(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&ts(t,i,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}ts(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&io(d)}}}break;default:throw Error(St(163))}pu||512&t.flags&&xu(t)}catch(e){Fd(t,t.return,e)}}if(t===e){hu=null;break}if(null!==(n=t.sibling)){n.return=t.return,hu=n;break}hu=t.return}}function Au(e){for(;null!==hu;){var t=hu;if(t===e){hu=null;break}var n=t.sibling;if(null!==n){n.return=t.return,hu=n;break}hu=t.return}}function Du(e){for(;null!==hu;){var t=hu;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{yu(4,t)}catch(e){Fd(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Fd(t,o,e)}}var i=t.return;try{xu(t)}catch(e){Fd(t,i,e)}break;case 5:var a=t.return;try{xu(t)}catch(e){Fd(t,a,e)}}}catch(e){Fd(t,t.return,e)}if(t===e){hu=null;break}var l=t.sibling;if(null!==l){l.return=t.return,hu=l;break}hu=t.return}}var ju,Fu=Math.ceil,Bu=zt.ReactCurrentDispatcher,$u=zt.ReactCurrentOwner,Wu=zt.ReactCurrentBatchConfig,Uu=0,Hu=null,Vu=null,Gu=0,Ku=0,Zu=Ba(0),Xu=0,Qu=null,Ju=0,Yu=0,ed=0,td=null,nd=null,rd=0,od=1/0,id=null,ad=!1,ld=null,sd=null,cd=!1,ud=null,dd=0,pd=0,fd=null,hd=-1,md=0;function gd(){return 0!=(6&Uu)?hr():-1!==hd?hd:hd=hr()}function vd(e){return 0==(1&e.mode)?1:0!=(2&Uu)&&0!==Gu?Gu&-Gu:null!==_l.transition?(0===md&&(md=_r()),md):0!==(e=zr)?e:e=void 0===(e=window.event)?16:ho(e.type)}function bd(e,t,n,r){if(50<pd)throw pd=0,fd=null,Error(St(185));Mr(e,n,r),0!=(2&Uu)&&e===Hu||(e===Hu&&(0==(2&Uu)&&(Yu|=n),4===Xu&&Ed(e,Gu)),yd(e,r),1===n&&0===Uu&&0==(1&t.mode)&&(od=hr()+500,nl&&il()))}function yd(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Er(i),l=1<<a,s=o[a];-1===s?0!=(l&n)&&0==(l&r)||(o[a]=Tr(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=Ir(e,e===Hu?Gu:0);if(0===r)null!==n&&dr(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&dr(n),1===t)0===e.tag?function(e){nl=!0,ol(e)}(Cd.bind(null,e)):ol(Cd.bind(null,e)),Ea((function(){0==(6&Uu)&&il()})),n=null;else{switch(Ar(r)){case 1:n=gr;break;case 4:n=vr;break;case 16:default:n=br;break;case 536870912:n=xr}n=Hd(n,xd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function xd(e,t){if(hd=-1,md=0,0!=(6&Uu))throw Error(St(327));var n=e.callbackNode;if(Dd()&&e.callbackNode!==n)return null;var r=Ir(e,e===Hu?Gu:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=_d(e,r);else{t=r;var o=Uu;Uu|=2;var i=Td();for(Hu===e&&Gu===t||(id=null,od=hr()+500,Od(e,t));;)try{Md();break}catch(t){Id(e,t)}Dl(),Bu.current=i,Uu=o,null!==Vu?t=0:(Hu=null,Gu=0,t=Xu)}if(0!==t){if(2===t&&(0!==(o=Pr(e))&&(r=o,t=Sd(e,o))),1===t)throw n=Qu,Od(e,0),Ed(e,r),yd(e,hr()),n;if(6===t)Ed(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Ci(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=_d(e,r))&&(0!==(i=Pr(e))&&(r=i,t=Sd(e,i))),1===t))throw n=Qu,Od(e,0),Ed(e,r),yd(e,hr()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(St(345));case 2:case 5:Ad(e,nd,id);break;case 3:if(Ed(e,r),(130023424&r)===r&&10<(t=rd+500-hr())){if(0!==Ir(e,0))break;if(((o=e.suspendedLanes)&r)!==r){gd(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=xa(Ad.bind(null,e,nd,id),t);break}Ad(e,nd,id);break;case 4:if(Ed(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Er(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=hr()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Fu(r/1960))-r)){e.timeoutHandle=xa(Ad.bind(null,e,nd,id),r);break}Ad(e,nd,id);break;default:throw Error(St(329))}}}return yd(e,hr()),e.callbackNode===n?xd.bind(null,e):null}function Sd(e,t){var n=td;return e.current.memoizedState.isDehydrated&&(Od(e,t).flags|=256),2!==(e=_d(e,t))&&(t=nd,nd=n,null!==t&&wd(t)),e}function wd(e){null===nd?nd=e:nd.push.apply(nd,e)}function Ed(e,t){for(t&=~ed,t&=~Yu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Er(t),r=1<<n;e[n]=-1,t&=~r}}function Cd(e){if(0!=(6&Uu))throw Error(St(327));Dd();var t=Ir(e,0);if(0==(1&t))return yd(e,hr()),null;var n=_d(e,t);if(0!==e.tag&&2===n){var r=Pr(e);0!==r&&(t=r,n=Sd(e,r))}if(1===n)throw n=Qu,Od(e,0),Ed(e,t),yd(e,hr()),n;if(6===n)throw Error(St(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ad(e,nd,id),yd(e,hr()),null}function kd(e,t){var n=Uu;Uu|=1;try{return e(t)}finally{0===(Uu=n)&&(od=hr()+500,nl&&il())}}function Rd(e){null!==ud&&0===ud.tag&&0==(6&Uu)&&Dd();var t=Uu;Uu|=1;var n=Wu.transition,r=zr;try{if(Wu.transition=null,zr=1,e)return e()}finally{zr=r,Wu.transition=n,0==(6&(Uu=t))&&il()}}function Ld(){Ku=Zu.current,$a(Zu)}function Od(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Sa(n)),null!==Vu)for(n=Vu.return;null!==n;){var r=n;switch(bl(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Xa();break;case 3:Ss(),$a(Va),$a(Ha),Ls();break;case 5:Es(r);break;case 4:Ss();break;case 13:case 19:$a(Cs);break;case 10:jl(r.type._context);break;case 22:case 23:Ld()}n=n.return}if(Hu=e,Vu=e=Zd(e.current,null),Gu=Ku=t,Xu=0,Qu=null,ed=Yu=Ju=0,nd=td=null,null!==Wl){for(t=0;t<Wl.length;t++)if(null!==(r=(n=Wl[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Wl=null}return e}function Id(e,t){for(;;){var n=Vu;try{if(Dl(),Os.current=wc,Ms){for(var r=Ps.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Ms=!1}if(Ts=0,Ns=_s=Ps=null,qs=!1,zs=0,$u.current=null,null===n||null===n.return){Xu=1,Qu=t,Vu=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=Gu,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=Nc(a);if(null!==f){f.flags&=-257,Mc(f,a,l,0,t),1&f.mode&&_c(i,c,t),s=c;var h=(t=f).updateQueue;if(null===h){var m=new Set;m.add(s),t.updateQueue=m}else h.add(s);break e}if(0==(1&t)){_c(i,c,t),Pd();break e}s=Error(St(426))}else if(Sl&&1&l.mode){var g=Nc(a);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),Mc(g,a,l,0,t),Pl(Rc(s,l));break e}}i=s=Rc(s,l),4!==Xu&&(Xu=2),null===td?td=[i]:td.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Yl(i,Tc(0,s,t));break e;case 1:l=s;var v=i.type,b=i.stateNode;if(0==(128&i.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===sd||!sd.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Yl(i,Pc(i,l,t));break e}}i=i.return}while(null!==i)}zd(n)}catch(e){t=e,Vu===n&&null!==n&&(Vu=n=n.return);continue}break}}function Td(){var e=Bu.current;return Bu.current=wc,null===e?wc:e}function Pd(){0!==Xu&&3!==Xu&&2!==Xu||(Xu=4),null===Hu||0==(268435455&Ju)&&0==(268435455&Yu)||Ed(Hu,Gu)}function _d(e,t){var n=Uu;Uu|=2;var r=Td();for(Hu===e&&Gu===t||(id=null,Od(e,t));;)try{Nd();break}catch(t){Id(e,t)}if(Dl(),Uu=n,Bu.current=r,null!==Vu)throw Error(St(261));return Hu=null,Gu=0,Xu}function Nd(){for(;null!==Vu;)qd(Vu)}function Md(){for(;null!==Vu&&!pr();)qd(Vu)}function qd(e){var t=ju(e.alternate,e,Ku);e.memoizedProps=e.pendingProps,null===t?zd(e):Vu=t,$u.current=null}function zd(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=cu(n,t,Ku)))return void(Vu=n)}else{if(null!==(n=uu(n,t)))return n.flags&=32767,void(Vu=n);if(null===e)return Xu=6,void(Vu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Vu=t);Vu=t=e}while(null!==t);0===Xu&&(Xu=5)}function Ad(e,t,n){var r=zr,o=Wu.transition;try{Wu.transition=null,zr=1,function(e,t,n,r){do{Dd()}while(null!==ud);if(0!=(6&Uu))throw Error(St(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(St(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Er(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===Hu&&(Vu=Hu=null,Gu=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||cd||(cd=!0,Hd(br,(function(){return Dd(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=Wu.transition,Wu.transition=null;var a=zr;zr=1;var l=Uu;Uu|=4,$u.current=null,function(e,t){if(va=lo,Ti(e=Ii())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var a=0,l=-1,s=-1,c=0,u=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==i||0!==r&&3!==d.nodeType||(s=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++c===o&&(l=a),p===i&&++u===r&&(s=a),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ba={focusedElem:e,selectionRange:n},lo=!1,hu=t;null!==hu;)if(e=(t=hu).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,hu=e;else for(;null!==hu;){t=hu;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:Nl(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(St(163))}}catch(e){Fd(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,hu=e;break}hu=t.return}h=vu,vu=!1}(e,n),_u(n,e),Pi(ba),lo=!!va,ba=va=null,e.current=n,Mu(n),fr(),Uu=l,zr=a,Wu.transition=i}else e.current=n;if(cd&&(cd=!1,ud=e,dd=o),i=e.pendingLanes,0===i&&(sd=null),function(e){if(wr&&"function"==typeof wr.onCommitFiberRoot)try{wr.onCommitFiberRoot(Sr,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),yd(e,hr()),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=ld,ld=null,e;0!=(1&dd)&&0!==e.tag&&Dd(),i=e.pendingLanes,0!=(1&i)?e===fd?pd++:(pd=0,fd=e):pd=0,il()}(e,t,n,r)}finally{Wu.transition=o,zr=r}return null}function Dd(){if(null!==ud){var e=Ar(dd),t=Wu.transition,n=zr;try{if(Wu.transition=null,zr=16>e?16:e,null===ud)var r=!1;else{if(e=ud,ud=null,dd=0,0!=(6&Uu))throw Error(St(331));var o=Uu;for(Uu|=4,hu=e.current;null!==hu;){var i=hu,a=i.child;if(0!=(16&hu.flags)){var l=i.deletions;if(null!==l){for(var s=0;s<l.length;s++){var c=l[s];for(hu=c;null!==hu;){var u=hu;switch(u.tag){case 0:case 11:case 15:bu(8,u,i)}var d=u.child;if(null!==d)d.return=u,hu=d;else for(;null!==hu;){var p=(u=hu).sibling,f=u.return;if(Su(u),u===c){hu=null;break}if(null!==p){p.return=f,hu=p;break}hu=f}}}var h=i.alternate;if(null!==h){var m=h.child;if(null!==m){h.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}hu=i}}if(0!=(2064&i.subtreeFlags)&&null!==a)a.return=i,hu=a;else e:for(;null!==hu;){if(0!=(2048&(i=hu).flags))switch(i.tag){case 0:case 11:case 15:bu(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,hu=v;break e}hu=i.return}}var b=e.current;for(hu=b;null!==hu;){var y=(a=hu).child;if(0!=(2064&a.subtreeFlags)&&null!==y)y.return=a,hu=y;else e:for(a=b;null!==hu;){if(0!=(2048&(l=hu).flags))try{switch(l.tag){case 0:case 11:case 15:yu(9,l)}}catch(e){Fd(l,l.return,e)}if(l===a){hu=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,hu=x;break e}hu=l.return}}if(Uu=o,il(),wr&&"function"==typeof wr.onPostCommitFiberRoot)try{wr.onPostCommitFiberRoot(Sr,e)}catch(e){}r=!0}return r}finally{zr=n,Wu.transition=t}}return!1}function jd(e,t,n){e=Ql(e,t=Tc(0,t=Rc(n,t),1),1),t=gd(),null!==e&&(Mr(e,1,t),yd(e,t))}function Fd(e,t,n){if(3===e.tag)jd(e,e,n);else for(;null!==t;){if(3===t.tag){jd(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===sd||!sd.has(r))){t=Ql(t,e=Pc(t,e=Rc(n,e),1),1),e=gd(),null!==t&&(Mr(t,1,e),yd(t,e));break}}t=t.return}}function Bd(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=gd(),e.pingedLanes|=e.suspendedLanes&n,Hu===e&&(Gu&n)===n&&(4===Xu||3===Xu&&(130023424&Gu)===Gu&&500>hr()-rd?Od(e,0):ed|=n),yd(e,t)}function $d(e,t){0===t&&(0==(1&e.mode)?t=1:(t=Lr,0==(130023424&(Lr<<=1))&&(Lr=4194304)));var n=gd();null!==(e=Vl(e,t))&&(Mr(e,t,n),yd(e,n))}function Wd(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),$d(e,n)}function Ud(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(St(314))}null!==r&&r.delete(t),$d(e,n)}function Hd(e,t){return ur(e,t)}function Vd(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 Gd(e,t,n,r){return new Vd(e,t,n,r)}function Kd(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Zd(e,t){var n=e.alternate;return null===n?((n=Gd(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 Xd(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Kd(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case jt:return Qd(n.children,o,i,t);case Ft:a=8,o|=8;break;case Bt:return(e=Gd(12,n,t,2|o)).elementType=Bt,e.lanes=i,e;case Ht:return(e=Gd(13,n,t,o)).elementType=Ht,e.lanes=i,e;case Vt:return(e=Gd(19,n,t,o)).elementType=Vt,e.lanes=i,e;case Zt:return Jd(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case $t:a=10;break e;case Wt:a=9;break e;case Ut:a=11;break e;case Gt:a=14;break e;case Kt:a=16,r=null;break e}throw Error(St(130,null==e?e:typeof e,""))}return(t=Gd(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Qd(e,t,n,r){return(e=Gd(7,e,r,t)).lanes=n,e}function Jd(e,t,n,r){return(e=Gd(22,e,r,t)).elementType=Zt,e.lanes=n,e.stateNode={isHidden:!1},e}function Yd(e,t,n){return(e=Gd(6,e,null,t)).lanes=n,e}function ep(e,t,n){return(t=Gd(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tp(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=Nr(0),this.expirationTimes=Nr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nr(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function np(e,t,n,r,o,i,a,l,s){return e=new tp(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Gd(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Kl(i),e}function rp(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}}function op(e){if(!e)return Ua;e:{if(ir(e=e._reactInternals)!==e||1!==e.tag)throw Error(St(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Za(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(St(171))}if(1===e.tag){var n=e.type;if(Za(n))return Ja(e,n,t)}return t}function ip(e,t,n,r,o,i,a,l,s){return(e=np(n,r,!0,e,0,i,0,l,s)).context=op(null),n=e.current,(i=Xl(r=gd(),o=vd(n))).callback=null!=t?t:null,Ql(n,i,o),e.current.lanes=o,Mr(e,o,r),yd(e,r),e}function ap(e,t,n,r){var o=t.current,i=gd(),a=vd(o);return n=op(n),null===t.context?t.context=n:t.pendingContext=n,(t=Xl(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ql(o,t,a))&&(bd(e,o,a,i),Jl(e,o,a)),a}function lp(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function sp(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function cp(e,t){sp(e,t),(e=e.alternate)&&sp(e,t)}ju=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Va.current)zc=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return zc=!1,function(e,t,n){switch(t.tag){case 3:Vc(t),Tl();break;case 5:ws(t);break;case 1:Za(t.type)&&Ya(t);break;case 4:xs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Wa(Ml,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Wa(Cs,1&Cs.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Yc(e,t,n):(Wa(Cs,1&Cs.current),null!==(e=au(e,t,n))?e.sibling:null);Wa(Cs,1&Cs.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return ou(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Wa(Cs,Cs.current),r)break;return null;case 22:case 23:return t.lanes=0,Bc(e,t,n)}return au(e,t,n)}(e,t,n);zc=0!=(131072&e.flags)}else zc=!1,Sl&&0!=(1048576&t.flags)&&gl(t,cl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;iu(e,t),e=t.pendingProps;var o=Ka(t,Ha.current);Bl(t,n),o=Fs(null,t,r,e,o,n);var i=Bs();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Za(r)?(i=!0,Ya(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Kl(t),o.updater=os,t.stateNode=o,o._reactInternals=t,ss(t,r,e,n),t=Hc(null,t,r,!0,i,n)):(t.tag=0,Sl&&i&&vl(t),Ac(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(iu(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Kd(e)?1:0;if(null!=e){if((e=e.$$typeof)===Ut)return 11;if(e===Gt)return 14}return 2}(r),e=Nl(r,e),o){case 0:t=Wc(null,t,r,e,n);break e;case 1:t=Uc(null,t,r,e,n);break e;case 11:t=Dc(null,t,r,e,n);break e;case 14:t=jc(null,t,r,Nl(r.type,e),n);break e}throw Error(St(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Wc(e,t,r,o=t.elementType===r?o:Nl(r,o),n);case 1:return r=t.type,o=t.pendingProps,Uc(e,t,r,o=t.elementType===r?o:Nl(r,o),n);case 3:e:{if(Vc(t),null===e)throw Error(St(387));r=t.pendingProps,o=(i=t.memoizedState).element,Zl(e,t),es(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Gc(e,t,r,n,o=Rc(Error(St(423)),t));break e}if(r!==o){t=Gc(e,t,r,n,o=Rc(Error(St(424)),t));break e}for(xl=Ra(t.stateNode.containerInfo.firstChild),yl=t,Sl=!0,wl=null,n=hs(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Tl(),r===o){t=au(e,t,n);break e}Ac(e,t,r,n)}t=t.child}return t;case 5:return ws(t),null===e&&Rl(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,ya(r,o)?a=null:null!==i&&ya(r,i)&&(t.flags|=32),$c(e,t),Ac(e,t,a,n),t.child;case 6:return null===e&&Rl(t),null;case 13:return Yc(e,t,n);case 4:return xs(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=fs(t,null,r,n):Ac(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Dc(e,t,r,o=t.elementType===r?o:Nl(r,o),n);case 7:return Ac(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ac(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Wa(Ml,r._currentValue),r._currentValue=a,null!==i)if(Ci(i.value,a)){if(i.children===o.children&&!Va.current){t=au(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){a=i.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===i.tag){(s=Xl(-1,n&-n)).tag=2;var c=i.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?s.next=s:(s.next=u.next,u.next=s),c.pending=s}}i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),Fl(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(St(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Fl(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}Ac(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Bl(t,n),r=r(o=$l(o)),t.flags|=1,Ac(e,t,r,n),t.child;case 14:return o=Nl(r=t.type,t.pendingProps),jc(e,t,r,o=Nl(r.type,o),n);case 15:return Fc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Nl(r,o),iu(e,t),t.tag=1,Za(r)?(e=!0,Ya(t)):e=!1,Bl(t,n),as(t,r,o),ss(t,r,o,n),Hc(null,t,r,!0,e,n);case 19:return ou(e,t,n);case 22:return Bc(e,t,n)}throw Error(St(156,t.tag))};var up="function"==typeof reportError?reportError:function(e){console.error(e)};function dp(e){this._internalRoot=e}function pp(e){this._internalRoot=e}function fp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function hp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function mp(){}function gp(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=lp(a);l.call(e)}}ap(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=lp(a);i.call(e)}}var a=ip(t,r,e,0,null,!1,0,"",mp);return e._reactRootContainer=a,e[Pa]=a.current,ia(8===e.nodeType?e.parentNode:e),Rd(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=lp(s);l.call(e)}}var s=np(e,0,!1,null,0,!1,0,"",mp);return e._reactRootContainer=s,e[Pa]=s.current,ia(8===e.nodeType?e.parentNode:e),Rd((function(){ap(t,s,n,r)})),s}(n,t,e,o,r);return lp(a)}pp.prototype.render=dp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(St(409));ap(e,t,null,null)},pp.prototype.unmount=dp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Rd((function(){ap(null,e,null,null)})),t[Pa]=null}},pp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Br();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Xr.length&&0!==t&&t<Xr[n].priority;n++);Xr.splice(n,0,e),0===n&&eo(e)}},Dr=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Or(t.pendingLanes);0!==n&&(qr(t,1|n),yd(t,hr()),0==(6&Uu)&&(od=hr()+500,il()))}break;case 13:Rd((function(){var t=Vl(e,1);if(null!==t){var n=gd();bd(t,e,1,n)}})),cp(e,1)}},jr=function(e){if(13===e.tag){var t=Vl(e,134217728);if(null!==t)bd(t,e,134217728,gd());cp(e,134217728)}},Fr=function(e){if(13===e.tag){var t=vd(e),n=Vl(e,t);if(null!==n)bd(n,e,t,gd());cp(e,t)}},Br=function(){return zr},$r=function(e,t){var n=zr;try{return zr=e,t()}finally{zr=n}},jn=function(e,t,n){switch(t){case"input":if(mn(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=Da(r);if(!o)throw Error(St(90));un(r),mn(r,o)}}}break;case"textarea":wn(e,n);break;case"select":null!=(t=n.value)&&yn(e,!!n.multiple,t,!1)}},Hn=kd,Vn=Rd;var vp={usingClientEntryPoint:!1,Events:[za,Aa,Da,Wn,Un,kd]},bp={findFiberByHostInstance:qa,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},yp={bundleType:bp.bundleType,version:bp.version,rendererPackageName:bp.rendererPackageName,rendererConfig:bp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:zt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=sr(e))?null:e.stateNode},findFiberByHostInstance:bp.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var xp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xp.isDisabled&&xp.supportsFiber)try{Sr=xp.inject(yp),wr=xp}catch(Ln){}}mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vp,mt.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!fp(t))throw Error(St(200));return rp(e,t,null,n)},mt.createRoot=function(e,t){if(!fp(e))throw Error(St(299));var n=!1,r="",o=up;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=np(e,1,!1,null,0,n,0,r,o),e[Pa]=t.current,ia(8===e.nodeType?e.parentNode:e),new dp(t)},mt.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(St(188));throw e=Object.keys(e).join(","),Error(St(268,e))}return e=null===(e=sr(t))?null:e.stateNode},mt.flushSync=function(e){return Rd(e)},mt.hydrate=function(e,t,n){if(!hp(t))throw Error(St(200));return gp(null,e,t,!0,n)},mt.hydrateRoot=function(e,t,n){if(!fp(e))throw Error(St(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=up;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=ip(t,null,e,1,null!=n?n:null,o,0,i,a),e[Pa]=t.current,ia(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 pp(t)},mt.render=function(e,t,n){if(!hp(t))throw Error(St(200));return gp(null,e,t,!1,n)},mt.unmountComponentAtNode=function(e){if(!hp(e))throw Error(St(40));return!!e._reactRootContainer&&(Rd((function(){gp(null,null,e,!1,(function(){e._reactRootContainer=null,e[Pa]=null}))})),!0)},mt.unstable_batchedUpdates=kd,mt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!hp(n))throw Error(St(200));if(null==e||void 0===e._reactInternals)throw Error(St(38));return gp(e,t,n,!1,r)},mt.version="18.2.0-next-9e3b772b8-20220608",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),ht.exports=mt;var Sp=ht.exports,wp=n(Sp),Ep=Sp;function Cp(){return Cp=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},Cp.apply(this,arguments)}function kp(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function Rp(e){if(!kp(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Rp(e[n])})),t}function Lp(e,t,n={clone:!0}){const r=n.clone?Cp({},e):e;return kp(e)&&kp(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(kp(t[o])&&o in e&&kp(e[o])?r[o]=Lp(e[o],t[o],n):n.clone?r[o]=kp(t[o])?Rp(t[o]):t[o]:r[o]=t[o])})),r}function Op(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."}ft.createRoot=Ep.createRoot,ft.hydrateRoot=Ep.hydrateRoot;var Ip,Tp={exports:{}},Pp={},_p=Symbol.for("react.element"),Np=Symbol.for("react.portal"),Mp=Symbol.for("react.fragment"),qp=Symbol.for("react.strict_mode"),zp=Symbol.for("react.profiler"),Ap=Symbol.for("react.provider"),Dp=Symbol.for("react.context"),jp=Symbol.for("react.server_context"),Fp=Symbol.for("react.forward_ref"),Bp=Symbol.for("react.suspense"),$p=Symbol.for("react.suspense_list"),Wp=Symbol.for("react.memo"),Up=Symbol.for("react.lazy"),Hp=Symbol.for("react.offscreen");function Vp(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case _p:switch(e=e.type){case Mp:case zp:case qp:case Bp:case $p:return e;default:switch(e=e&&e.$$typeof){case jp:case Dp:case Fp:case Up:case Wp:case Ap:return e;default:return t}}case Np:return t}}}Ip=Symbol.for("react.module.reference"),Pp.ContextConsumer=Dp,Pp.ContextProvider=Ap,Pp.Element=_p,Pp.ForwardRef=Fp,Pp.Fragment=Mp,Pp.Lazy=Up,Pp.Memo=Wp,Pp.Portal=Np,Pp.Profiler=zp,Pp.StrictMode=qp,Pp.Suspense=Bp,Pp.SuspenseList=$p,Pp.isAsyncMode=function(){return!1},Pp.isConcurrentMode=function(){return!1},Pp.isContextConsumer=function(e){return Vp(e)===Dp},Pp.isContextProvider=function(e){return Vp(e)===Ap},Pp.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===_p},Pp.isForwardRef=function(e){return Vp(e)===Fp},Pp.isFragment=function(e){return Vp(e)===Mp},Pp.isLazy=function(e){return Vp(e)===Up},Pp.isMemo=function(e){return Vp(e)===Wp},Pp.isPortal=function(e){return Vp(e)===Np},Pp.isProfiler=function(e){return Vp(e)===zp},Pp.isStrictMode=function(e){return Vp(e)===qp},Pp.isSuspense=function(e){return Vp(e)===Bp},Pp.isSuspenseList=function(e){return Vp(e)===$p},Pp.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Mp||e===zp||e===qp||e===Bp||e===$p||e===Hp||"object"==typeof e&&null!==e&&(e.$$typeof===Up||e.$$typeof===Wp||e.$$typeof===Ap||e.$$typeof===Dp||e.$$typeof===Fp||e.$$typeof===Ip||void 0!==e.getModuleId)},Pp.typeOf=Vp,Tp.exports=Pp;var Gp=Tp.exports;function Kp(e){if("string"!=typeof e)throw new Error(Op(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Zp(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Xp(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Qp(e,t){return U.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}function Jp(e){return e&&e.ownerDocument||document}function Yp(e){return Jp(e).defaultView||window}function ef(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var tf="undefined"!=typeof window?U.useLayoutEffect:U.useEffect;let nf=0;const rf=V.useId;function of(e){if(void 0!==rf){const t=rf();return null!=e?e:t}return function(e){const[t,n]=U.useState(e),r=e||t;return U.useEffect((()=>{null==t&&(nf+=1,n(`mui-${nf}`))}),[t]),r}(e)}function af({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=U.useRef(void 0!==e),[i,a]=U.useState(t);return[o?e:i,U.useCallback((e=>{o||a(e)}),[])]}function lf(e){const t=U.useRef(e);return tf((()=>{t.current=e})),U.useCallback(((...e)=>(0,t.current)(...e)),[])}function sf(...e){return U.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{ef(e,t)}))}),e)}let cf,uf=!0,df=!1;const pf={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 ff(e){e.metaKey||e.altKey||e.ctrlKey||(uf=!0)}function hf(){uf=!1}function mf(){"hidden"===this.visibilityState&&df&&(uf=!0)}function gf(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return uf||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!pf[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function vf(){const e=U.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ff,!0),t.addEventListener("mousedown",hf,!0),t.addEventListener("pointerdown",hf,!0),t.addEventListener("touchstart",hf,!0),t.addEventListener("visibilitychange",mf,!0))}),[]),t=U.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!gf(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(df=!0,window.clearTimeout(cf),cf=window.setTimeout((()=>{df=!1}),100),t.current=!1,!0)},ref:e}}function bf(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var yf=e=>{const t=U.useRef({});return U.useEffect((()=>{t.current=e})),t.current};function xf(e,t){const n=Cp({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Cp({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Cp({},i),Object.keys(o).forEach((e=>{n[r][e]=xf(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Sf(e,t,n){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 wf=e=>e;var Ef=(()=>{let e=wf;return{configure(t){e=t},generate:t=>e(t),reset(){e=wf}}})();const Cf={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function kf(e,t,n="Mui"){const r=Cf[t];return r?`${n}-${r}`:`${Ef.generate(e)}-${t}`}function Rf(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=kf(e,t,n)})),r}var Lf="$$material";function Of(){return Of=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},Of.apply(this,arguments)}function If(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Tf(){return Tf=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},Tf.apply(this,arguments)}function Pf(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var _f=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Nf=Pf((function(e){return _f.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var Mf=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}(),qf="-ms-",zf="-moz-",Af="-webkit-",Df="comm",jf="rule",Ff="decl",Bf="@keyframes",$f=Math.abs,Wf=String.fromCharCode,Uf=Object.assign;function Hf(e){return e.trim()}function Vf(e,t,n){return e.replace(t,n)}function Gf(e,t){return e.indexOf(t)}function Kf(e,t){return 0|e.charCodeAt(t)}function Zf(e,t,n){return e.slice(t,n)}function Xf(e){return e.length}function Qf(e){return e.length}function Jf(e,t){return t.push(e),e}var Yf=1,eh=1,th=0,nh=0,rh=0,oh="";function ih(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Yf,column:eh,length:a,return:""}}function ah(e,t){return Uf(ih("",null,null,"",null,null,0),e,{length:-e.length},t)}function lh(){return rh=nh<th?Kf(oh,nh++):0,eh++,10===rh&&(eh=1,Yf++),rh}function sh(){return Kf(oh,nh)}function ch(){return nh}function uh(e,t){return Zf(oh,e,t)}function dh(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 ph(e){return Yf=eh=1,th=Xf(oh=e),nh=0,[]}function fh(e){return oh="",e}function hh(e){return Hf(uh(nh-1,vh(91===e?e+2:40===e?e+1:e)))}function mh(e){for(;(rh=sh())&&rh<33;)lh();return dh(e)>2||dh(rh)>3?"":" "}function gh(e,t){for(;--t&&lh()&&!(rh<48||rh>102||rh>57&&rh<65||rh>70&&rh<97););return uh(e,ch()+(t<6&&32==sh()&&32==lh()))}function vh(e){for(;lh();)switch(rh){case e:return nh;case 34:case 39:34!==e&&39!==e&&vh(rh);break;case 40:41===e&&vh(e);break;case 92:lh()}return nh}function bh(e,t){for(;lh()&&e+rh!==57&&(e+rh!==84||47!==sh()););return"/*"+uh(t,nh-1)+"*"+Wf(47===e?e:lh())}function yh(e){for(;!dh(sh());)lh();return uh(e,nh)}function xh(e){return fh(Sh("",null,null,null,[""],e=ph(e),0,[0],e))}function Sh(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,S=i,w=r,E=y;g;)switch(h=b,b=lh()){case 40:if(108!=h&&58==Kf(E,d-1)){-1!=Gf(E+=Vf(hh(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=hh(b);break;case 9:case 10:case 13:case 32:E+=mh(h);break;case 92:E+=gh(ch()-1,7);continue;case 47:switch(sh()){case 42:case 47:Jf(Eh(bh(lh(),ch()),t,n),s);break;default:E+="/"}break;case 123*m:l[c++]=Xf(E)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(E=Vf(E,/\f/g,"")),f>0&&Xf(E)-d&&Jf(f>32?Ch(E+";",r,n,d-1):Ch(Vf(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(Jf(w=wh(E,t,n,c,u,o,l,y,x=[],S=[],d),i),123===b)if(0===u)Sh(E,t,w,w,x,i,d,l,S);else switch(99===p&&110===Kf(E,3)?100:p){case 100:case 108:case 109:case 115:Sh(e,w,w,r&&Jf(wh(e,w,w,0,0,o,l,y,o,x=[],d),S),o,S,d,l,r?x:S);break;default:Sh(E,w,w,w,[""],S,0,l,S)}}c=u=f=0,m=v=1,y=E="",d=a;break;case 58:d=1+Xf(E),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==(rh=nh>0?Kf(oh,--nh):0,eh--,10===rh&&(eh=1,Yf--),rh))continue;switch(E+=Wf(b),b*m){case 38:v=u>0?1:(E+="\f",-1);break;case 44:l[c++]=(Xf(E)-1)*v,v=1;break;case 64:45===sh()&&(E+=hh(lh())),p=sh(),u=d=Xf(y=E+=yh(ch())),b++;break;case 45:45===h&&2==Xf(E)&&(m=0)}}return i}function wh(e,t,n,r,o,i,a,l,s,c,u){for(var d=o-1,p=0===o?i:[""],f=Qf(p),h=0,m=0,g=0;h<r;++h)for(var v=0,b=Zf(e,d+1,d=$f(m=a[h])),y=e;v<f;++v)(y=Hf(m>0?p[v]+" "+b:Vf(b,/&\f/g,p[v])))&&(s[g++]=y);return ih(e,t,n,0===o?jf:l,s,c,u)}function Eh(e,t,n){return ih(e,t,n,Df,Wf(rh),Zf(e,2,-2),0)}function Ch(e,t,n,r){return ih(e,t,n,Ff,Zf(e,0,r),Zf(e,r+1,-1),r)}function kh(e,t){for(var n="",r=Qf(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Rh(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ff:return e.return=e.return||e.value;case Df:return"";case Bf:return e.return=e.value+"{"+kh(e.children,r)+"}";case jf:e.value=e.props.join(",")}return Xf(n=kh(e.children,r))?e.return=e.value+"{"+n+"}":""}function Lh(e){var t=Qf(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}var Oh=function(e,t,n){for(var r=0,o=0;r=o,o=sh(),38===r&&12===o&&(t[n]=1),!dh(o);)lh();return uh(e,nh)},Ih=function(e,t){return fh(function(e,t){var n=-1,r=44;do{switch(dh(r)){case 0:38===r&&12===sh()&&(t[n]=1),e[n]+=Oh(nh-1,t,n);break;case 2:e[n]+=hh(r);break;case 4:if(44===r){e[++n]=58===sh()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Wf(r)}}while(r=lh());return e}(ph(e),t))},Th=new WeakMap,Ph=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)||Th.get(n))&&!r){Th.set(e,!0);for(var o=[],i=Ih(t,o),a=n.props,l=0,s=0;l<i.length;l++)for(var c=0;c<a.length;c++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[c]):a[c]+" "+i[l]}}},_h=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Nh(e,t){switch(function(e,t){return 45^Kf(e,0)?(((t<<2^Kf(e,0))<<2^Kf(e,1))<<2^Kf(e,2))<<2^Kf(e,3):0}(e,t)){case 5103:return Af+"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 Af+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Af+e+zf+e+qf+e+e;case 6828:case 4268:return Af+e+qf+e+e;case 6165:return Af+e+qf+"flex-"+e+e;case 5187:return Af+e+Vf(e,/(\w+).+(:[^]+)/,Af+"box-$1$2"+qf+"flex-$1$2")+e;case 5443:return Af+e+qf+"flex-item-"+Vf(e,/flex-|-self/,"")+e;case 4675:return Af+e+qf+"flex-line-pack"+Vf(e,/align-content|flex-|-self/,"")+e;case 5548:return Af+e+qf+Vf(e,"shrink","negative")+e;case 5292:return Af+e+qf+Vf(e,"basis","preferred-size")+e;case 6060:return Af+"box-"+Vf(e,"-grow","")+Af+e+qf+Vf(e,"grow","positive")+e;case 4554:return Af+Vf(e,/([^-])(transform)/g,"$1"+Af+"$2")+e;case 6187:return Vf(Vf(Vf(e,/(zoom-|grab)/,Af+"$1"),/(image-set)/,Af+"$1"),e,"")+e;case 5495:case 3959:return Vf(e,/(image-set\([^]*)/,Af+"$1$`$1");case 4968:return Vf(Vf(e,/(.+:)(flex-)?(.*)/,Af+"box-pack:$3"+qf+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Af+e+e;case 4095:case 3583:case 4068:case 2532:return Vf(e,/(.+)-inline(.+)/,Af+"$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(Xf(e)-1-t>6)switch(Kf(e,t+1)){case 109:if(45!==Kf(e,t+4))break;case 102:return Vf(e,/(.+:)(.+)-([^]+)/,"$1"+Af+"$2-$3$1"+zf+(108==Kf(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Gf(e,"stretch")?Nh(Vf(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Kf(e,t+1))break;case 6444:switch(Kf(e,Xf(e)-3-(~Gf(e,"!important")&&10))){case 107:return Vf(e,":",":"+Af)+e;case 101:return Vf(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Af+(45===Kf(e,14)?"inline-":"")+"box$3$1"+Af+"$2$3$1"+qf+"$2box$3")+e}break;case 5936:switch(Kf(e,t+11)){case 114:return Af+e+qf+Vf(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Af+e+qf+Vf(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Af+e+qf+Vf(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Af+e+qf+e+e}return e}var Mh="undefined"!=typeof document,qh=Mh?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 Pf((function(){var e={};return function(t){return e[t]}}))})),zh=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ff:e.return=Nh(e.value,e.length);break;case Bf:return kh([ah(e,{value:Vf(e.value,"@","@"+Af)})],r);case jf: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 kh([ah(e,{props:[Vf(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return kh([ah(e,{props:[Vf(t,/:(plac\w+)/,":"+Af+"input-$1")]}),ah(e,{props:[Vf(t,/:(plac\w+)/,":-moz-$1")]}),ah(e,{props:[Vf(t,/:(plac\w+)/,qf+"input-$1")]})],r)}return""}))}}],Ah=function(e){var t=e.key;if(Mh&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||zh,a={},l=[];Mh&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)})));var s,c=[Ph,_h];if(Mh){var u,d=[Rh,(s=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],p=Lh(c.concat(i,d));o=function(e,t,n,r){u=n,function(e){kh(xh(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(v.inserted[t.name]=!0)}}else{var f=[Rh],h=Lh(c.concat(i,f)),m=qh(i)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=function(e){return kh(xh(e),h)}(e?e+"{"+t.styles+"}":t.styles)),m[n]};o=function(e,t,n,r){var o=t.name,i=g(e,t);return void 0===v.compat?(r&&(v.inserted[o]=!0),i):r?void(v.inserted[o]=i):i}}var v={key:t,sheet:new Mf({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return v.sheet.hydrate(l),v},Dh=Gp,jh={};jh[Dh.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},jh[Dh.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var Fh="undefined"!=typeof document,Bh=function(e,t,n){!function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===Fh&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)}(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",i=t;do{var a=e.insert(t===i?"."+r:"",i,e.sheet,!0);Fh||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!Fh&&0!==o.length)return o}};var $h={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Wh=/[A-Z]|^ms/g,Uh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Hh=function(e){return 45===e.charCodeAt(1)},Vh=function(e){return null!=e&&"boolean"!=typeof e},Gh=Pf((function(e){return Hh(e)?e:e.replace(Wh,"-$&").toLowerCase()})),Kh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Uh,(function(e,t,n){return Xh={name:t,styles:n,next:Xh},t}))}return 1===$h[e]||Hh(e)||"number"!=typeof t||0===t?t:t+"px"};function Zh(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 Xh={name:n.name,styles:n.styles,next:Xh},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Xh={name:r.name,styles:r.styles,next:Xh},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+=Zh(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Vh(a)&&(r+=Gh(i)+":"+Kh(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Zh(e,t,a);switch(i){case"animation":case"animationName":r+=Gh(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var s=0;s<a.length;s++)Vh(a[s])&&(r+=Gh(i)+":"+Kh(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Xh,i=n(e);return Xh=o,Zh(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Xh,Qh=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Jh=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="";Xh=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Zh(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Zh(n,t,e[a]),r&&(o+=i[a]);Qh.lastIndex=0;for(var l,s="";null!==(l=Qh.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:Xh}},Yh="undefined"!=typeof document,em=function(e){return e()},tm=!!V.useInsertionEffect&&V.useInsertionEffect,nm=Yh&&tm||em,rm=tm||U.useLayoutEffect,om="undefined"!=typeof document,im=U.createContext("undefined"!=typeof HTMLElement?Ah({key:"css"}):null),am=im.Provider,lm=function(e){return U.forwardRef((function(t,n){var r=U.useContext(im);return e(t,r,n)}))};om||(lm=function(e){return function(t){var n=U.useContext(im);return null===n?(n=Ah({key:"css"}),U.createElement(im.Provider,{value:n},e(t,n))):e(t,n)}});var sm=U.createContext({}),cm=lm((function(e,t){var n=e.styles,r=Jh([n],void 0,U.useContext(sm));if(!om){for(var o,i=r.name,a=r.styles,l=r.next;void 0!==l;)i+=" "+l.name,a+=l.styles,l=l.next;var s=!0===t.compat,c=t.insert("",{name:i,styles:a},t.sheet,s);return s?null:U.createElement("style",((o={})["data-emotion"]=t.key+"-global "+i,o.dangerouslySetInnerHTML={__html:c},o.nonce=t.sheet.nonce,o))}var u=U.useRef();return rm((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),u.current=[n,o],function(){n.flush()}}),[t]),rm((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Bh(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 um(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Jh(t)}var dm=function(){var e=um.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_"}}},pm="undefined"!=typeof document;function fm(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var hm=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===pm&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};var mm={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},gm=/[A-Z]|^ms/g,vm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bm=function(e){return 45===e.charCodeAt(1)},ym=function(e){return null!=e&&"boolean"!=typeof e},xm=Pf((function(e){return bm(e)?e:e.replace(gm,"-$&").toLowerCase()})),Sm=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(vm,(function(e,t,n){return Em={name:t,styles:n,next:Em},t}))}return 1===mm[e]||bm(e)||"number"!=typeof t||0===t?t:t+"px"};function wm(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 Em={name:n.name,styles:n.styles,next:Em},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Em={name:r.name,styles:r.styles,next:Em},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+=wm(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":ym(a)&&(r+=xm(i)+":"+Sm(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=wm(e,t,a);switch(i){case"animation":case"animationName":r+=xm(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var s=0;s<a.length;s++)ym(a[s])&&(r+=xm(i)+":"+Sm(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Em,i=n(e);return Em=o,wm(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Em,Cm=/label:\s*([^\s;\n{]+)\s*(;|$)/g,km=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="";Em=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=wm(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=wm(n,t,e[a]),r&&(o+=i[a]);Cm.lastIndex=0;for(var l,s="";null!==(l=Cm.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:Em}},Rm=Nf,Lm=function(e){return"theme"!==e},Om=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Rm:Lm},Im=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},Tm="undefined"!=typeof document,Pm=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;hm(t,n,r);var o=nm((function(){return function(e,t,n){hm(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",i=t;do{var a=e.insert(t===i?"."+r:"",i,e.sheet,!0);pm||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!pm&&0!==o.length)return o}}(t,n,r)}));if(!Tm&&void 0!==o){for(var i,a=n.name,l=n.next;void 0!==l;)a+=" "+l.name,l=l.next;return U.createElement("style",((i={})["data-emotion"]=t.key+" "+a,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},_m=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var l=Im(t,n,i),s=l||Om(a),c=!s("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)d.push(u[f],u[0][f])}var h=lm((function(e,t,n){var r=c&&e.as||a,i="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=U.useContext(sm)}"string"==typeof e.className?i=fm(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var h=km(d.concat(u),t.registered,p);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===l?Om(r):s,g={};for(var v in e)c&&"as"===v||m(v)&&(g[v]=e[v]);return g.className=i,g.ref=n,U.createElement(U.Fragment,null,U.createElement(Pm,{cache:t,serialized:h,isStringTag:"string"==typeof r}),U.createElement(r,g))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=a,h.__emotion_styles=d,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,Tf({},n,r,{shouldForwardProp:Im(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){_m[e]=_m(e)}));var Nm=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}(),Mm="-ms-",qm="-moz-",zm="-webkit-",Am="comm",Dm="rule",jm="decl",Fm="@keyframes",Bm=Math.abs,$m=String.fromCharCode,Wm=Object.assign;function Um(e){return e.trim()}function Hm(e,t,n){return e.replace(t,n)}function Vm(e,t){return e.indexOf(t)}function Gm(e,t){return 0|e.charCodeAt(t)}function Km(e,t,n){return e.slice(t,n)}function Zm(e){return e.length}function Xm(e){return e.length}function Qm(e,t){return t.push(e),e}var Jm=1,Ym=1,eg=0,tg=0,ng=0,rg="";function og(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Jm,column:Ym,length:a,return:""}}function ig(e,t){return Wm(og("",null,null,"",null,null,0),e,{length:-e.length},t)}function ag(){return ng=tg>0?Gm(rg,--tg):0,Ym--,10===ng&&(Ym=1,Jm--),ng}function lg(){return ng=tg<eg?Gm(rg,tg++):0,Ym++,10===ng&&(Ym=1,Jm++),ng}function sg(){return Gm(rg,tg)}function cg(){return tg}function ug(e,t){return Km(rg,e,t)}function dg(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 pg(e){return Jm=Ym=1,eg=Zm(rg=e),tg=0,[]}function fg(e){return rg="",e}function hg(e){return Um(ug(tg-1,vg(91===e?e+2:40===e?e+1:e)))}function mg(e){for(;(ng=sg())&&ng<33;)lg();return dg(e)>2||dg(ng)>3?"":" "}function gg(e,t){for(;--t&&lg()&&!(ng<48||ng>102||ng>57&&ng<65||ng>70&&ng<97););return ug(e,cg()+(t<6&&32==sg()&&32==lg()))}function vg(e){for(;lg();)switch(ng){case e:return tg;case 34:case 39:34!==e&&39!==e&&vg(ng);break;case 40:41===e&&vg(e);break;case 92:lg()}return tg}function bg(e,t){for(;lg()&&e+ng!==57&&(e+ng!==84||47!==sg()););return"/*"+ug(t,tg-1)+"*"+$m(47===e?e:lg())}function yg(e){for(;!dg(sg());)lg();return ug(e,tg)}function xg(e){return fg(Sg("",null,null,null,[""],e=pg(e),0,[0],e))}function Sg(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,S=i,w=r,E=y;g;)switch(h=b,b=lg()){case 40:if(108!=h&&58==Gm(E,d-1)){-1!=Vm(E+=Hm(hg(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=hg(b);break;case 9:case 10:case 13:case 32:E+=mg(h);break;case 92:E+=gg(cg()-1,7);continue;case 47:switch(sg()){case 42:case 47:Qm(Eg(bg(lg(),cg()),t,n),s);break;default:E+="/"}break;case 123*m:l[c++]=Zm(E)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(E=Hm(E,/\f/g,"")),f>0&&Zm(E)-d&&Qm(f>32?Cg(E+";",r,n,d-1):Cg(Hm(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(Qm(w=wg(E,t,n,c,u,o,l,y,x=[],S=[],d),i),123===b)if(0===u)Sg(E,t,w,w,x,i,d,l,S);else switch(99===p&&110===Gm(E,3)?100:p){case 100:case 109:case 115:Sg(e,w,w,r&&Qm(wg(e,w,w,0,0,o,l,y,o,x=[],d),S),o,S,d,l,r?x:S);break;default:Sg(E,w,w,w,[""],S,0,l,S)}}c=u=f=0,m=v=1,y=E="",d=a;break;case 58:d=1+Zm(E),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==ag())continue;switch(E+=$m(b),b*m){case 38:v=u>0?1:(E+="\f",-1);break;case 44:l[c++]=(Zm(E)-1)*v,v=1;break;case 64:45===sg()&&(E+=hg(lg())),p=sg(),u=d=Zm(y=E+=yg(cg())),b++;break;case 45:45===h&&2==Zm(E)&&(m=0)}}return i}function wg(e,t,n,r,o,i,a,l,s,c,u){for(var d=o-1,p=0===o?i:[""],f=Xm(p),h=0,m=0,g=0;h<r;++h)for(var v=0,b=Km(e,d+1,d=Bm(m=a[h])),y=e;v<f;++v)(y=Um(m>0?p[v]+" "+b:Hm(b,/&\f/g,p[v])))&&(s[g++]=y);return og(e,t,n,0===o?Dm:l,s,c,u)}function Eg(e,t,n){return og(e,t,n,Am,$m(ng),Km(e,2,-2),0)}function Cg(e,t,n,r){return og(e,t,n,jm,Km(e,0,r),Km(e,r+1,-1),r)}function kg(e,t){for(var n="",r=Xm(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Rg(e,t,n,r){switch(e.type){case"@import":case jm:return e.return=e.return||e.value;case Am:return"";case Fm:return e.return=e.value+"{"+kg(e.children,r)+"}";case Dm:e.value=e.props.join(",")}return Zm(n=kg(e.children,r))?e.return=e.value+"{"+n+"}":""}function Lg(e){var t=Xm(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}var Og=function(e,t,n){for(var r=0,o=0;r=o,o=sg(),38===r&&12===o&&(t[n]=1),!dg(o);)lg();return ug(e,tg)},Ig=function(e,t){return fg(function(e,t){var n=-1,r=44;do{switch(dg(r)){case 0:38===r&&12===sg()&&(t[n]=1),e[n]+=Og(tg-1,t,n);break;case 2:e[n]+=hg(r);break;case 4:if(44===r){e[++n]=58===sg()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=$m(r)}}while(r=lg());return e}(pg(e),t))},Tg=new WeakMap,Pg=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)||Tg.get(n))&&!r){Tg.set(e,!0);for(var o=[],i=Ig(t,o),a=n.props,l=0,s=0;l<i.length;l++)for(var c=0;c<a.length;c++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[c]):a[c]+" "+i[l]}}},_g=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ng(e,t){switch(function(e,t){return 45^Gm(e,0)?(((t<<2^Gm(e,0))<<2^Gm(e,1))<<2^Gm(e,2))<<2^Gm(e,3):0}(e,t)){case 5103:return zm+"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 zm+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return zm+e+qm+e+Mm+e+e;case 6828:case 4268:return zm+e+Mm+e+e;case 6165:return zm+e+Mm+"flex-"+e+e;case 5187:return zm+e+Hm(e,/(\w+).+(:[^]+)/,zm+"box-$1$2"+Mm+"flex-$1$2")+e;case 5443:return zm+e+Mm+"flex-item-"+Hm(e,/flex-|-self/,"")+e;case 4675:return zm+e+Mm+"flex-line-pack"+Hm(e,/align-content|flex-|-self/,"")+e;case 5548:return zm+e+Mm+Hm(e,"shrink","negative")+e;case 5292:return zm+e+Mm+Hm(e,"basis","preferred-size")+e;case 6060:return zm+"box-"+Hm(e,"-grow","")+zm+e+Mm+Hm(e,"grow","positive")+e;case 4554:return zm+Hm(e,/([^-])(transform)/g,"$1"+zm+"$2")+e;case 6187:return Hm(Hm(Hm(e,/(zoom-|grab)/,zm+"$1"),/(image-set)/,zm+"$1"),e,"")+e;case 5495:case 3959:return Hm(e,/(image-set\([^]*)/,zm+"$1$`$1");case 4968:return Hm(Hm(e,/(.+:)(flex-)?(.*)/,zm+"box-pack:$3"+Mm+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+zm+e+e;case 4095:case 3583:case 4068:case 2532:return Hm(e,/(.+)-inline(.+)/,zm+"$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(Zm(e)-1-t>6)switch(Gm(e,t+1)){case 109:if(45!==Gm(e,t+4))break;case 102:return Hm(e,/(.+:)(.+)-([^]+)/,"$1"+zm+"$2-$3$1"+qm+(108==Gm(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Vm(e,"stretch")?Ng(Hm(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Gm(e,t+1))break;case 6444:switch(Gm(e,Zm(e)-3-(~Vm(e,"!important")&&10))){case 107:return Hm(e,":",":"+zm)+e;case 101:return Hm(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+zm+(45===Gm(e,14)?"inline-":"")+"box$3$1"+zm+"$2$3$1"+Mm+"$2box$3")+e}break;case 5936:switch(Gm(e,t+11)){case 114:return zm+e+Mm+Hm(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return zm+e+Mm+Hm(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return zm+e+Mm+Hm(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return zm+e+Mm+e+e}return e}var Mg="undefined"!=typeof document,qg=Mg?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]}}))})),zg=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case jm:e.return=Ng(e.value,e.length);break;case Fm:return kg([ig(e,{value:Hm(e.value,"@","@"+zm)})],r);case Dm: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 kg([ig(e,{props:[Hm(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return kg([ig(e,{props:[Hm(t,/:(plac\w+)/,":"+zm+"input-$1")]}),ig(e,{props:[Hm(t,/:(plac\w+)/,":-moz-$1")]}),ig(e,{props:[Hm(t,/:(plac\w+)/,Mm+"input-$1")]})],r)}return""}))}}],Ag={exports:{}},Dg={},jg=U,Fg=Symbol.for("react.element"),Bg=Symbol.for("react.fragment"),$g=Object.prototype.hasOwnProperty,Wg=jg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ug={key:!0,ref:!0,__self:!0,__source:!0};function Hg(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)$g.call(t,r)&&!Ug.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:Fg,type:e,key:i,ref:a,props:o,_owner:Wg.current}}Dg.Fragment=Bg,Dg.jsx=Hg,Dg.jsxs=Hg,Ag.exports=Dg;var Vg=Ag.exports;let Gg;function Kg(e){const{injectFirst:t,children:n}=e;return t&&Gg?Vg.jsx(am,{value:Gg,children:n}):n}function Zg(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 Vg.jsx(cm,{styles:r})}
28
27
  /**
29
- * @mui/styled-engine v5.11.11
28
+ * @mui/styled-engine v5.12.3
30
29
  *
31
30
  * @license MIT
32
31
  * This source code is licensed under the MIT license found in the
33
32
  * LICENSE file in the root directory of this source tree.
34
- */function lg(e,t){return Dm(e,t)}Xm.Fragment=Jm,Xm.jsx=rg,Xm.jsxs=rg,function(e){e.exports=Xm}(Zm),"object"==typeof document&&(og=function(e){var t=e.key;if(Um&&"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||Gm,i={},l=[];Um&&(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=[Bm,Wm];if(Um){var c,u=[Ih,Th((function(e){c.insert(e)}))],d=Ph(s.concat(a,u));o=function(e,t,n,r){c=n,function(e){Oh(Eh(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(g.inserted[t.name]=!0)}}else{var p=[Ih],f=Ph(s.concat(a,p)),h=Vm(a)(t),m=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return Oh(Eh(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 zm({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}));function sg(){return sg=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},sg.apply(this,arguments)}function cg(e,t){return t?Rp(e,t,{clone:!1}):e}const ug={xs:0,sm:600,md:900,lg:1200,xl:1536},dg={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ug[e]}px)`};function pg(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||dg;return t.reduce(((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r)),{})}if("object"==typeof t){const e=r.breakpoints||dg;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||ug).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function fg({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let 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 hg(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 mg(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:hg(e,n)||r,t&&(o=t(o,r,e)),o}function gg(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=hg(e.theme,r)||{};return pg(e,a,(e=>{let r=mg(i,o,e);return e===r&&"string"==typeof e&&(r=mg(i,o,`${t}${"default"===e?"":Kp(e)}`,e)),!1===n?r:{[n]:r}}))};return a.propTypes={},a.filterProps=[t],a}function vg(...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]?cg(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}const yg={m:"margin",p:"padding"},bg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},xg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Sg=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!xg[e])return[e];e=xg[e]}const[t,n]=e.split(""),r=yg[t],o=bg[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),wg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Eg=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Cg(e,t,n,r){var o;const a=null!=(o=hg(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 kg(e){return Cg(e,"spacing",8)}function Lg(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 Rg(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Lg(t,n),e)),{})}(Sg(n),r);return pg(e,e[n],o)}function Og(e,t){const n=kg(e.theme);return Object.keys(e).map((r=>Rg(e,t,r,n))).reduce(cg,{})}function Ig(e){return Og(e,wg)}function Pg(e){return Og(e,Eg)}function Tg(e){return"number"!=typeof e?e:`${e}px solid`}Ig.propTypes={},Ig.filterProps=wg,Pg.propTypes={},Pg.filterProps=Eg;const _g=gg({prop:"border",themeKey:"borders",transform:Tg}),Ng=gg({prop:"borderTop",themeKey:"borders",transform:Tg}),Mg=gg({prop:"borderRight",themeKey:"borders",transform:Tg}),qg=gg({prop:"borderBottom",themeKey:"borders",transform:Tg}),Ag=gg({prop:"borderLeft",themeKey:"borders",transform:Tg}),Dg=gg({prop:"borderColor",themeKey:"palette"}),zg=gg({prop:"borderTopColor",themeKey:"palette"}),jg=gg({prop:"borderRightColor",themeKey:"palette"}),Fg=gg({prop:"borderBottomColor",themeKey:"palette"}),$g=gg({prop:"borderLeftColor",themeKey:"palette"}),Bg=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Cg(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Lg(t,e)});return pg(e,e.borderRadius,n)}return null};Bg.propTypes={},Bg.filterProps=["borderRadius"],vg(_g,Ng,Mg,qg,Ag,Dg,zg,jg,Fg,$g,Bg);const Wg=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Cg(e.theme,"spacing",8),n=e=>({gap:Lg(t,e)});return pg(e,e.gap,n)}return null};Wg.propTypes={},Wg.filterProps=["gap"];const Hg=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Cg(e.theme,"spacing",8),n=e=>({columnGap:Lg(t,e)});return pg(e,e.columnGap,n)}return null};Hg.propTypes={},Hg.filterProps=["columnGap"];const Ug=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Cg(e.theme,"spacing",8),n=e=>({rowGap:Lg(t,e)});return pg(e,e.rowGap,n)}return null};Ug.propTypes={},Ug.filterProps=["rowGap"];function Vg(e,t){return"grey"===t?t:e}vg(Wg,Hg,Ug,gg({prop:"gridColumn"}),gg({prop:"gridRow"}),gg({prop:"gridAutoFlow"}),gg({prop:"gridAutoColumns"}),gg({prop:"gridAutoRows"}),gg({prop:"gridTemplateColumns"}),gg({prop:"gridTemplateRows"}),gg({prop:"gridTemplateAreas"}),gg({prop:"gridArea"}));function Gg(e){return e<=1&&0!==e?100*e+"%":e}vg(gg({prop:"color",themeKey:"palette",transform:Vg}),gg({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vg}),gg({prop:"backgroundColor",themeKey:"palette",transform:Vg}));const Kg=gg({prop:"width",transform:Gg}),Zg=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||ug[t]||Gg(t)}};return pg(e,e.maxWidth,t)}return null};Zg.filterProps=["maxWidth"];const Xg=gg({prop:"minWidth",transform:Gg}),Qg=gg({prop:"height",transform:Gg}),Yg=gg({prop:"maxHeight",transform:Gg}),Jg=gg({prop:"minHeight",transform:Gg});gg({prop:"size",cssProperty:"width",transform:Gg}),gg({prop:"size",cssProperty:"height",transform:Gg});vg(Kg,Zg,Xg,Qg,Yg,Jg,gg({prop:"boxSizing"}));var ev={border:{themeKey:"borders",transform:Tg},borderTop:{themeKey:"borders",transform:Tg},borderRight:{themeKey:"borders",transform:Tg},borderBottom:{themeKey:"borders",transform:Tg},borderLeft:{themeKey:"borders",transform:Tg},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Bg},color:{themeKey:"palette",transform:Vg},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vg},backgroundColor:{themeKey:"palette",transform:Vg},p:{style:Pg},pt:{style:Pg},pr:{style:Pg},pb:{style:Pg},pl:{style:Pg},px:{style:Pg},py:{style:Pg},padding:{style:Pg},paddingTop:{style:Pg},paddingRight:{style:Pg},paddingBottom:{style:Pg},paddingLeft:{style:Pg},paddingX:{style:Pg},paddingY:{style:Pg},paddingInline:{style:Pg},paddingInlineStart:{style:Pg},paddingInlineEnd:{style:Pg},paddingBlock:{style:Pg},paddingBlockStart:{style:Pg},paddingBlockEnd:{style:Pg},m:{style:Ig},mt:{style:Ig},mr:{style:Ig},mb:{style:Ig},ml:{style:Ig},mx:{style:Ig},my:{style:Ig},margin:{style:Ig},marginTop:{style:Ig},marginRight:{style:Ig},marginBottom:{style:Ig},marginLeft:{style:Ig},marginX:{style:Ig},marginY:{style:Ig},marginInline:{style:Ig},marginInlineStart:{style:Ig},marginInlineEnd:{style:Ig},marginBlock:{style:Ig},marginBlockStart:{style:Ig},marginBlockEnd:{style:Ig},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Wg},rowGap:{style:Ug},columnGap:{style:Hg},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Gg},maxWidth:{style:Zg},minWidth:{transform:Gg},height:{transform:Gg},maxHeight:{transform:Gg},minHeight:{transform:Gg},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const tv=function(){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;const u=hg(n,l)||{};if(c)return c(o);return pg(o,t,(t=>{let n=mg(u,s,t);return t===n&&"string"==typeof t&&(n=mg(u,s,`${e}${"default"===t?"":Kp(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:ev;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=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(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=cg(s,e(n,o,a,i));else{const e=pg({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=cg(s,e):s[n]=t({sx:o,theme:a})}else s=cg(s,e(n,o,a,i))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();tv.filterProps=["sx"];var nv=tv;function rv(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}const ov=["sx"];function av(e){const{sx:t}=e,n=rv(e,ov),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:ev;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let a;return a=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return kp(n)?sg({},r,n):r}:sg({},r,t),sg({},o,{sx:a})}function iv(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=iv(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function lv(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=iv(e))&&(r&&(r+=" "),r+=t);return r}const sv=["values","unit","step"];function cv(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=rv(e,sv),a=(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)=>sg({},e,{[t.key]:t.val})),{})})(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 sg({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)}var uv={borderRadius:4};function dv(e=8){if(e.mui)return e;const t=kg({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}const pv=["breakpoints","palette","spacing","shape"];function fv(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=rv(e,pv),l=cv(n),s=dv(o);let c=Rp({breakpoints:l,direction:"ltr",components:{},palette:sg({mode:"light"},r),spacing:s,shape:sg({},uv,a)},i);return c=t.reduce(((e,t)=>Rp(e,t)),c),c.unstable_sxConfig=sg({},ev,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return nv({sx:e,theme:this})},c}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)}var mv=d.createContext(null);function gv(){return d.useContext(mv)}var vv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function yv(e){const{children:t,theme:n}=e,r=gv(),o=d.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[vv]=null!==r),e}),[n,r]);return Km.jsx(mv.Provider,{value:o,children:t})}function bv(e=null){const t=gv();return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const xv=fv();function Sv(e=xv){return bv(e)}const wv=["className","component"];const Ev=["variant"];function Cv(e){return 0===e.length}function kv(e){const{variant:t}=e,n=rv(e,Ev);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?Cv(r)?e[t]:Kp(e[t]):`${Cv(r)?t:Kp(t)}${Kp(e[t].toString())}`})),r}const Lv=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],Rv=["theme"],Ov=["theme"];function Iv(e){return 0===Object.keys(e).length}function Pv(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Tv=fv();function _v({props:e,name:t,defaultTheme:n}){const r=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?xf(t.components[n].defaultProps,r):r}({theme:Sv(n),name:t,props:e});return r}function Nv(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function Mv(e){if(e.type)return e;if("#"===e.charAt(0))return Mv(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Op(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(Op(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function qv(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 Av(e){let t="hsl"===(e=Mv(e)).type||"hsla"===e.type?Mv(function(e){e=Mv(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])),qv({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Dv(e,t){return e=Mv(e),t=Nv(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,qv(e)}const zv={};function jv(e){const t=Sv();return Km.jsx(fm.Provider,{value:"object"==typeof t?t:zv,children:e.children})}function Fv(e){const{children:t,theme:n}=e;return Km.jsx(yv,{theme:n,children:Km.jsx(jv,{children:t})})}const $v=["defaultProps","mixins","overrides","palette","props","styleOverrides"],Bv=["type","mode"];var Wv={black:"#000",white:"#fff"};var Hv={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var Uv={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var Vv={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var Gv={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var Kv={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var Zv={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Xv={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const Qv=["mode","contrastThreshold","tonalOffset"],Yv={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:Wv.white,default:Wv.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}},Jv={text:{primary:Wv.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:Wv.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 ey(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=function(e,t){if(e=Mv(e),t=Nv(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 qv(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Mv(e),t=Nv(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 qv(e)}(e.main,a)))}function ty(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Of(e,Qv),a=e.primary||function(e="light"){return"dark"===e?{main:Kv[200],light:Kv[50],dark:Kv[400]}:{main:Kv[700],light:Kv[400],dark:Kv[800]}}(t),i=e.secondary||function(e="light"){return"dark"===e?{main:Uv[200],light:Uv[50],dark:Uv[400]}:{main:Uv[500],light:Uv[300],dark:Uv[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Vv[500],light:Vv[300],dark:Vv[700]}:{main:Vv[700],light:Vv[400],dark:Vv[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Zv[400],light:Zv[300],dark:Zv[700]}:{main:Zv[700],light:Zv[500],dark:Zv[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Xv[400],light:Xv[300],dark:Xv[700]}:{main:Xv[800],light:Xv[500],dark:Xv[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Gv[400],light:Gv[300],dark:Gv[700]}:{main:"#ed6c02",light:Gv[500],dark:Gv[900]}}(t);function d(e){const t=function(e,t){const n=Av(e),r=Av(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Jv.text.primary)>=n?Jv.text.primary:Yv.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=Rf({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Op(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Op(12,t?` (${t})`:"",JSON.stringify(e.main)));return ey(e,"light",o,r),ey(e,"dark",a,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Jv,light:Yv};return Rp(Rf({common:Rf({},Wv),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:Hv,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const ny=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const ry={textTransform:"uppercase"},oy='"Roboto", "Helvetica", "Arial", sans-serif';function ay(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=oy,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=Of(n,ny),f=o/14,h=d||(e=>e/c*f+"rem"),m=(e,t,n,o,a)=>{return Rf({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===oy?{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,ry),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,ry)};return Rp(Rf({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function iy(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var ly=["none",iy(0,2,1,-1,0,1,1,0,0,1,3,0),iy(0,3,1,-2,0,2,2,0,0,1,5,0),iy(0,3,3,-2,0,3,4,0,0,1,8,0),iy(0,2,4,-1,0,4,5,0,0,1,10,0),iy(0,3,5,-1,0,5,8,0,0,1,14,0),iy(0,3,5,-1,0,6,10,0,0,1,18,0),iy(0,4,5,-2,0,7,10,1,0,2,16,1),iy(0,5,5,-3,0,8,10,1,0,3,14,2),iy(0,5,6,-3,0,9,12,1,0,3,16,2),iy(0,6,6,-3,0,10,14,1,0,4,18,3),iy(0,6,7,-4,0,11,15,1,0,4,20,3),iy(0,7,8,-4,0,12,17,2,0,5,22,4),iy(0,7,8,-4,0,13,19,2,0,5,24,4),iy(0,7,9,-4,0,14,21,2,0,5,26,4),iy(0,8,9,-5,0,15,22,2,0,6,28,5),iy(0,8,10,-5,0,16,24,2,0,6,30,5),iy(0,8,11,-5,0,17,26,2,0,6,32,5),iy(0,9,11,-5,0,18,28,2,0,7,34,6),iy(0,9,12,-6,0,19,29,2,0,7,36,6),iy(0,10,13,-6,0,20,31,3,0,8,38,7),iy(0,10,13,-6,0,21,33,3,0,8,40,7),iy(0,10,14,-6,0,22,35,3,0,8,42,7),iy(0,11,14,-7,0,23,36,3,0,9,44,8),iy(0,11,15,-7,0,24,38,3,0,9,46,8)];const sy=["duration","easing","delay"],cy={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},uy={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function dy(e){return`${Math.round(e)}ms`}function py(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function fy(e){const t=Rf({},cy,e.easing),n=Rf({},uy,e.duration);return Rf({getAutoHeightDuration:py,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:i=0}=r;return Of(r,sy),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:dy(o)} ${a} ${"string"==typeof i?i:dy(i)}`)).join(",")}},e,{easing:t,duration:n})}var hy={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const my=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function gy(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=Of(e,my);if(e.vars)throw new Error(Op(18));const l=ty(r),s=fv(e);let c=Rp(s,{mixins:(u=s.breakpoints,d=n,Rf({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:ly.slice(),typography:ay(l,a),transitions:fy(o),zIndex:Rf({},hy)});var u,d;return c=Rp(c,i),c=t.reduce(((e,t)=>Rp(e,t)),c),c.unstable_sxConfig=Rf({},ev,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return nv({sx:e,theme:this})},c}var vy=gy();function yy(){return Sv(vy)}function by({props:e,name:t}){return _v({props:e,name:t,defaultTheme:vy})}const xy=e=>Pv(e)&&"classes"!==e,Sy=function(e={}){const{defaultTheme:t=Tv,rootShouldForwardProp:n=Pv,slotShouldForwardProp:r=Pv}=e,o=e=>{const n=Iv(e.theme)?t:e.theme;return nv(sg({},e,{theme:n}))};return o.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:i,slot:l,skipVariantsResolver:s,skipSx:c,overridesResolver:u}=a,d=rv(a,Lv),p=void 0!==s?s:l&&"Root"!==l||!1,f=c||!1;let h=Pv;"Root"===l?h=n:l?h=r:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const m=lg(e,sg({shouldForwardProp:h,label:undefined},d)),g=(e,...n)=>{const r=n?n.map((e=>"function"==typeof e&&e.__emotion_real!==e?n=>{let{theme:r}=n,o=rv(n,Rv);return e(sg({theme:Iv(r)?t:r},o))}:e)):[];let a=e;i&&u&&r.push((e=>{const n=Iv(e.theme)?t:e.theme,r=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(i,n);if(r){const t={};return Object.entries(r).forEach((([r,o])=>{t[r]="function"==typeof o?o(sg({},e,{theme:n})):o})),u(e,t)}return null})),i&&!p&&r.push((e=>{const n=Iv(e.theme)?t:e.theme;return((e,t,n,r)=>{var o,a;const{ownerState:i={}}=e,l=[],s=null==n||null==(o=n.components)||null==(a=o[r])?void 0:a.variants;return s&&s.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{i[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&l.push(t[kv(n.props)])})),l})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=kv(e.props);r[t]=e.style})),r})(i,n),n,i)})),f||r.push(o);const l=r.length-n.length;if(Array.isArray(e)&&l>0){const t=new Array(l).fill("");a=[...e,...t],a.raw=[...e.raw,...t]}else"function"==typeof e&&e.__emotion_real!==e&&(a=n=>{let{theme:r}=n,o=rv(n,Ov);return e(sg({theme:Iv(r)?t:r},o))});return m(a,...r)};return m.withConfig&&(g.withConfig=m.withConfig),g}}({defaultTheme:vy,rootShouldForwardProp:xy});var wy=Sy;var Ey=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Cy(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Cy(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ky(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Cy(e))&&(r&&(r+=" "),r+=t);return r}function Ly(){return Ly=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},Ly.apply(this,arguments)}function Ry(e){return"string"==typeof e}function Oy(e,t,n){return void 0===e||Ry(e)?t:Ly({},t,{ownerState:Ly({},t.ownerState,n)})}function Iy(e,t){return"function"==typeof e?e(t):e}function Py(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 Ty(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ty(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function _y(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ty(e))&&(r&&(r+=" "),r+=t);return r}function Ny(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function My(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=_y(null==o?void 0:o.className,null==r?void 0:r.className,a,null==n?void 0:n.className),t=Ly({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),i=Ly({},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=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}(Ly({},o,r)),l=Ny(r),s=Ny(o),c=t(i),u=_y(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=Ly({},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=Ly({},c,n,s,l);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}const qy=["elementType","externalSlotProps","ownerState"];function Ay(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,a=Py(e,qy),i=Iy(r,o),{props:l,internalRef:s}=My(Ly({},a,{externalSlotProps:i}));return Oy(n,Ly({},l,{ref:sf(s,null==i?void 0:i.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}const Dy=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function zy(e){const t=[],n=[];return Array.from(e.querySelectorAll(Dy)).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 jy(){return!0}function Fy(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=zy,isEnabled:i=jy,open:l}=e,s=d.useRef(!1),c=d.useRef(null),u=d.useRef(null),p=d.useRef(null),f=d.useRef(null),h=d.useRef(!1),m=d.useRef(null),g=sf(t.ref,m),v=d.useRef(null);d.useEffect((()=>{l&&m.current&&(h.current=!n)}),[n,l]),d.useEffect((()=>{if(!l||!m.current)return;const e=Yp(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{o||(p.current&&p.current.focus&&(s.current=!0,p.current.focus()),p.current=null)}}),[l]),d.useEffect((()=>{if(!l||!m.current)return;const e=Yp(m.current),t=t=>{const{current:n}=m;if(null!==n)if(e.hasFocus()&&!r&&i()&&!s.current){if(!n.contains(e.activeElement)){if(t&&f.current!==t.target||e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(r=a(m.current)),r.length>0){var o,l;const e=Boolean((null==(o=v.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=v.current)?void 0:l.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else n.focus()}}else s.current=!1},n=t=>{v.current=t,!r&&i()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,u.current&&u.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[n,r,o,i,l,a]);const y=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return Km.jsxs(d.Fragment,{children:[Km.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),d.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Km.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}var $y="top",By="bottom",Wy="right",Hy="left",Uy="auto",Vy=[$y,By,Wy,Hy],Gy="start",Ky="end",Zy="viewport",Xy="popper",Qy=Vy.reduce((function(e,t){return e.concat([t+"-"+Gy,t+"-"+Ky])}),[]),Yy=[].concat(Vy,[Uy]).reduce((function(e,t){return e.concat([t,t+"-"+Gy,t+"-"+Ky])}),[]),Jy=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function eb(e){return e?(e.nodeName||"").toLowerCase():null}function tb(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function nb(e){return e instanceof tb(e).Element||e instanceof Element}function rb(e){return e instanceof tb(e).HTMLElement||e instanceof HTMLElement}function ob(e){return"undefined"!=typeof ShadowRoot&&(e instanceof tb(e).ShadowRoot||e instanceof ShadowRoot)}var ab={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];rb(o)&&eb(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}),{});rb(r)&&eb(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function ib(e){return e.split("-")[0]}var lb=Math.max,sb=Math.min,cb=Math.round;function ub(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function db(){return!/^((?!chrome|android).)*safari/i.test(ub())}function pb(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&rb(e)&&(o=e.offsetWidth>0&&cb(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&cb(r.height)/e.offsetHeight||1);var i=(nb(e)?tb(e):window).visualViewport,l=!db()&&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 fb(e){var t=pb(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 hb(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ob(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function mb(e){return tb(e).getComputedStyle(e)}function gb(e){return["table","td","th"].indexOf(eb(e))>=0}function vb(e){return((nb(e)?e.ownerDocument:e.document)||window.document).documentElement}function yb(e){return"html"===eb(e)?e:e.assignedSlot||e.parentNode||(ob(e)?e.host:null)||vb(e)}function bb(e){return rb(e)&&"fixed"!==mb(e).position?e.offsetParent:null}function xb(e){for(var t=tb(e),n=bb(e);n&&gb(n)&&"static"===mb(n).position;)n=bb(n);return n&&("html"===eb(n)||"body"===eb(n)&&"static"===mb(n).position)?t:n||function(e){var t=/firefox/i.test(ub());if(/Trident/i.test(ub())&&rb(e)&&"fixed"===mb(e).position)return null;var n=yb(e);for(ob(n)&&(n=n.host);rb(n)&&["html","body"].indexOf(eb(n))<0;){var r=mb(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 Sb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function wb(e,t,n){return lb(e,sb(t,n))}function Eb(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Cb(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var kb={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=ib(n.placement),s=Sb(l),c=[Hy,Wy].indexOf(l)>=0?"height":"width";if(a&&i){var u=function(e,t){return Eb("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Cb(e,Vy))}(o.padding,n),d=fb(a),p="y"===s?$y:Hy,f="y"===s?By:Wy,h=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],m=i[s]-n.rects.reference[s],g=xb(a),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=u[p],x=v-d[c]-u[f],S=v/2-d[c]/2+y,w=wb(b,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)))&&hb(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Lb(e){return e.split("-")[1]}var Rb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ob(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"),y=i.hasOwnProperty("y"),b=Hy,x=$y,S=window;if(c){var w=xb(n),E="clientHeight",C="clientWidth";if(w===tb(n)&&"static"!==mb(w=vb(n)).position&&"absolute"===l&&(E="scrollHeight",C="scrollWidth"),o===$y||(o===Hy||o===Wy)&&a===Ky)x=By,m-=(d&&w===S&&S.visualViewport?S.visualViewport.height:w[E])-r.height,m*=s?1:-1;if(o===Hy||(o===$y||o===By)&&a===Ky)b=Wy,f-=(d&&w===S&&S.visualViewport?S.visualViewport.width:w[C])-r.width,f*=s?1:-1}var k,L=Object.assign({position:l},c&&Rb),R=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:cb(t*r)/r||0,y:cb(n*r)/r||0}}({x:f,y:m}):{x:f,y:m};return f=R.x,m=R.y,s?Object.assign({},L,((k={})[x]=y?"0":"",k[b]=v?"0":"",k.transform=(S.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",k)):Object.assign({},L,((t={})[x]=y?m+"px":"",t[b]=v?f+"px":"",t.transform="",t))}var Ib={passive:!0};var Pb={left:"right",right:"left",bottom:"top",top:"bottom"};function Tb(e){return e.replace(/left|right|bottom|top/g,(function(e){return Pb[e]}))}var _b={start:"end",end:"start"};function Nb(e){return e.replace(/start|end/g,(function(e){return _b[e]}))}function Mb(e){var t=tb(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function qb(e){return pb(vb(e)).left+Mb(e).scrollLeft}function Ab(e){var t=mb(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Db(e){return["html","body","#document"].indexOf(eb(e))>=0?e.ownerDocument.body:rb(e)&&Ab(e)?e:Db(yb(e))}function zb(e,t){var n;void 0===t&&(t=[]);var r=Db(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=tb(r),i=o?[a].concat(a.visualViewport||[],Ab(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(zb(yb(i)))}function jb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Fb(e,t,n){return t===Zy?jb(function(e,t){var n=tb(e),r=vb(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=db();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+qb(e),y:s}}(e,n)):nb(t)?function(e,t){var n=pb(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):jb(function(e){var t,n=vb(e),r=Mb(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=lb(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=lb(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+qb(e),s=-r.scrollTop;return"rtl"===mb(o||n).direction&&(l+=lb(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(vb(e)))}function $b(e,t,n,r){var o="clippingParents"===t?function(e){var t=zb(yb(e)),n=["absolute","fixed"].indexOf(mb(e).position)>=0&&rb(e)?xb(e):e;return nb(n)?t.filter((function(e){return nb(e)&&hb(e,n)&&"body"!==eb(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=Fb(e,n,r);return t.top=lb(o.top,t.top),t.right=sb(o.right,t.right),t.bottom=sb(o.bottom,t.bottom),t.left=lb(o.left,t.left),t}),Fb(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 Bb(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?ib(o):null,i=o?Lb(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case $y:t={x:l,y:n.y-r.height};break;case By:t={x:l,y:n.y+n.height};break;case Wy:t={x:n.x+n.width,y:s};break;case Hy:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?Sb(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case Gy:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Ky:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Wb(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?"clippingParents":l,c=n.rootBoundary,u=void 0===c?Zy:c,d=n.elementContext,p=void 0===d?Xy:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=Eb("number"!=typeof g?g:Cb(g,Vy)),y=p===Xy?"reference":Xy,b=e.rects.popper,x=e.elements[h?y:p],S=$b(nb(x)?x:x.contextElement||vb(e.elements.popper),s,u,i),w=pb(e.elements.reference),E=Bb({reference:w,element:b,strategy:"absolute",placement:o}),C=jb(Object.assign({},b,E)),k=p===Xy?C:w,L={top:S.top-k.top+v.top,bottom:k.bottom-S.bottom+v.bottom,left:S.left-k.left+v.left,right:k.right-S.right+v.right},R=e.modifiersData.offset;if(p===Xy&&R){var O=R[o];Object.keys(L).forEach((function(e){var t=[Wy,By].indexOf(e)>=0?1:-1,n=[$y,By].indexOf(e)>=0?"y":"x";L[e]+=O[n]*t}))}return L}function Hb(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?Yy:s,u=Lb(r),d=u?l?Qy:Qy.filter((function(e){return Lb(e)===u})):Vy,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]=Wb(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[ib(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var Ub={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=ib(g),y=s||(v===g||!h?[Tb(g)]:function(e){if(ib(e)===Uy)return[];var t=Tb(e);return[Nb(e),t,Nb(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(ib(n)===Uy?Hb(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=b[0],k=0;k<b.length;k++){var L=b[k],R=ib(L),O=Lb(L)===Gy,I=[$y,By].indexOf(R)>=0,P=I?"width":"height",T=Wb(t,{placement:L,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),_=I?O?Wy:Hy:O?By:$y;x[P]>S[P]&&(_=Tb(_));var N=Tb(_),M=[];if(a&&M.push(T[R]<=0),l&&M.push(T[_]<=0,T[N]<=0),M.every((function(e){return e}))){C=L,E=!1;break}w.set(L,M)}if(E)for(var q=function(e){var t=b.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 Vb(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 Gb(e){return[$y,Wy,By,Hy].some((function(t){return e[t]>=0}))}var Kb={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=Yy.reduce((function(e,n){return e[n]=function(e,t,n){var r=ib(e),o=[Hy,$y].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,[Hy,Wy].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 Zb={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=Wb(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=ib(t.placement),y=Lb(t.placement),b=!y,x=Sb(v),S="x"===x?"y":"x",w=t.modifiersData.popperOffsets,E=t.rects.reference,C=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,L="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(w){if(a){var I,P="y"===x?$y:Hy,T="y"===x?By:Wy,_="y"===x?"height":"width",N=w[x],M=N+g[P],q=N-g[T],A=f?-C[_]/2:0,D=y===Gy?E[_]:C[_],z=y===Gy?-C[_]:-E[_],j=t.elements.arrow,F=f&&j?fb(j):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=$[P],W=$[T],H=wb(0,E[_],F[_]),U=b?E[_]/2-A-H-B-L.mainAxis:D-H-B-L.mainAxis,V=b?-E[_]/2+A+H+W+L.mainAxis:z+H+W+L.mainAxis,G=t.elements.arrow&&xb(t.elements.arrow),K=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,Z=null!=(I=null==R?void 0:R[x])?I:0,X=N+V-Z,Q=wb(f?sb(M,N+U-Z-K):M,N,f?lb(q,X):q);w[x]=Q,O[x]=Q-N}if(l){var Y,J="x"===x?$y:Hy,ee="x"===x?By:Wy,te=w[S],ne="y"===S?"height":"width",re=te+g[J],oe=te-g[ee],ae=-1!==[$y,Hy].indexOf(v),ie=null!=(Y=null==R?void 0:R[S])?Y:0,le=ae?re:te-E[ne]-C[ne]-ie+L.altAxis,se=ae?te+E[ne]+C[ne]-ie-L.altAxis:oe,ce=f&&ae?function(e,t,n){var r=wb(e,t,n);return r>n?n:r}(le,te,se):wb(f?le:re,te,f?se:oe);w[S]=ce,O[S]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function Xb(e,t,n){void 0===n&&(n=!1);var r=rb(t),o=rb(t)&&function(e){var t=e.getBoundingClientRect(),n=cb(t.width)/e.offsetWidth||1,r=cb(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=vb(t),i=pb(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==eb(t)||Ab(a))&&(l=function(e){return e!==tb(e)&&rb(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Mb(e);var t}(t)),rb(t)?((s=pb(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=qb(a))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function Qb(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 Yb={placement:"bottom",modifiers:[],strategy:"absolute"};function Jb(){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 ex(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Yb:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Yb,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:nb(e)?zb(e):e.contextElement?zb(e.contextElement):[],popper:zb(t)};var i,c,p=function(e){var t=Qb(e);return Jy.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(Jb(t,n)){l.rects={reference:Xb(t,xb(n),"fixed"===l.options.strategy),popper:fb(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],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(!Jb(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 tx=ex({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=tb(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,Ib)})),l&&s.addEventListener("resize",n.update,Ib),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Ib)})),l&&s.removeEventListener("resize",n.update,Ib)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Bb({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:ib(t.placement),variation:Lb(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,Ob(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,Ob(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:{}},ab,Kb,Ub,Zb,kb,{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=Wb(t,{elementContext:"reference"}),l=Wb(t,{altBoundary:!0}),s=Vb(i,r),c=Vb(l,o,a),u=Gb(s),d=Gb(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});var nx=d.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,i]=d.useState(null),l=sf(d.isValidElement(n)?n.ref:null,t);if(tf((()=>{o||i(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),tf((()=>{if(a&&!o)return ef(t,a),()=>{ef(t,null)}}),[t,a,o]),o){if(d.isValidElement(n)){const e={ref:l};return d.cloneElement(n,e)}return Km.jsx(d.Fragment,{children:n})}return Km.jsx(d.Fragment,{children:a?ht.createPortal(n,a):a})}));function rx(e){return kf("MuiPopper",e)}Lf("MuiPopper",["root"]);const ox=["anchorEl","children","component","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","slotProps","slots","TransitionProps"],ax=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function ix(e){return"function"==typeof e?e():e}const lx={},sx=d.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,component:a,direction:i,disablePortal:l,modifiers:s,open:c,ownerState:u,placement:p,popperOptions:f,popperRef:h,slotProps:m={},slots:g={},TransitionProps:v}=e,y=Py(e,ox),b=d.useRef(null),x=sf(b,t),S=d.useRef(null),w=sf(S,h),E=d.useRef(w);tf((()=>{E.current=w}),[w]),d.useImperativeHandle(h,(()=>S.current),[]);const C=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}}(p,i),[k,L]=d.useState(C),[R,O]=d.useState(ix(r));d.useEffect((()=>{S.current&&S.current.forceUpdate()})),d.useEffect((()=>{r&&O(ix(r))}),[r]),tf((()=>{if(!R||!c)return;let e=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{L(e.placement)}}];null!=s&&(e=e.concat(s)),f&&null!=f.modifiers&&(e=e.concat(f.modifiers));const t=tx(R,b.current,Ly({placement:C},f,{modifiers:e}));return E.current(t),()=>{t.destroy(),E.current(null)}}),[R,l,s,c,f,C]);const I={placement:k};null!==v&&(I.TransitionProps=v);const P=Sf({root:["root"]},rx,{}),T=null!=(n=null!=a?a:g.root)?n:"div",_=Ay({elementType:T,externalSlotProps:m.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:x},ownerState:Ly({},e,u),className:P.root});return Km.jsx(T,Ly({},_,{children:"function"==typeof o?o(I):o}))})),cx=d.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:p=lx,popperRef:f,style:h,transition:m=!1,slotProps:g={},slots:v={}}=e,y=Py(e,ax),[b,x]=d.useState(!0);if(!l&&!c&&(!m||b))return null;let S;if(o)S=o;else if(n){const e=ix(n);S=e&&void 0!==e.nodeType?Yp(e).body:Yp(null).body}const w=c||!l||m&&!b?void 0:"none",E=m?{in:c,onEnter:()=>{x(!1)},onExited:()=>{x(!0)}}:void 0;return Km.jsx(nx,{disablePortal:i,container:S,children:Km.jsx(sx,Ly({anchorEl:n,direction:a,disablePortal:i,modifiers:s,ref:t,open:m?!b:c,placement:u,popperOptions:p,popperRef:f,slotProps:g,slots:v},y,{style:Ly({position:"fixed",top:0,left:0,display:w},h),TransitionProps:E,children:r}))})}));var ux=cx;function dx(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function px(e){return parseInt(Jp(e).getComputedStyle(e).paddingRight,10)||0}function fx(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&&dx(e,o)}))}function hx(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function mx(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Yp(e);return t.body===e?Jp(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=yf(Yp(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${px(r)+e}px`;const t=Yp(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${px(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Yp(r).body;else{const t=r.parentElement,n=Jp(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}function gx(e){return kf("MuiModal",e)}Lf("MuiModal",["root","hidden","backdrop"]);const vx=["children","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"];const yx=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&&dx(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);fx(t,e.mount,e.modalRef,r,!0);const o=hx(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=hx(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=mx(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=hx(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&&dx(e.modalRef,t),fx(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&&dx(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},bx=d.forwardRef((function(e,t){var n,r;const{children:o,closeAfterTransition:a=!1,component:i,container:l,disableAutoFocus:s=!1,disableEnforceFocus:c=!1,disableEscapeKeyDown:u=!1,disablePortal:p=!1,disableRestoreFocus:f=!1,disableScrollLock:h=!1,hideBackdrop:m=!1,keepMounted:g=!1,manager:v=yx,onBackdropClick:y,onClose:b,onKeyDown:x,open:S,onTransitionEnter:w,onTransitionExited:E,slotProps:C={},slots:k={}}=e,L=Py(e,vx),[R,O]=d.useState(!S),I=d.useRef({}),P=d.useRef(null),T=d.useRef(null),_=sf(T,t),N=function(e){return!!e&&e.props.hasOwnProperty("in")}(o),M=null==(n=e["aria-hidden"])||n,q=()=>(I.current.modalRef=T.current,I.current.mountNode=P.current,I.current),A=()=>{v.mount(q(),{disableScrollLock:h}),T.current&&(T.current.scrollTop=0)},D=lf((()=>{const e=function(e){return"function"==typeof e?e():e}(l)||Yp(P.current).body;v.add(q(),e),T.current&&A()})),z=d.useCallback((()=>v.isTopModal(q())),[v]),j=lf((e=>{P.current=e,e&&T.current&&(S&&z()?A():dx(T.current,M))})),F=d.useCallback((()=>{v.remove(q(),M)}),[v,M]);d.useEffect((()=>()=>{F()}),[F]),d.useEffect((()=>{S?D():N&&a||F()}),[S,F,N,a,D]);const $=Ly({},e,{closeAfterTransition:a,disableAutoFocus:s,disableEnforceFocus:c,disableEscapeKeyDown:u,disablePortal:p,disableRestoreFocus:f,disableScrollLock:h,exited:R,hideBackdrop:m,keepMounted:g}),B=(e=>{const{open:t,exited:n}=e;return Sf({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},gx,void 0)})($),W=()=>{O(!1),w&&w()},H=()=>{O(!0),E&&E(),a&&F()},U={};void 0===o.props.tabIndex&&(U.tabIndex="-1"),N&&(U.onEnter=Zp(W,o.props.onEnter),U.onExited=Zp(H,o.props.onExited));const V=null!=(r=null!=i?i:k.root)?r:"div",G=Ay({elementType:V,externalSlotProps:C.root,externalForwardedProps:L,additionalProps:{ref:_,role:"presentation",onKeyDown:e=>{x&&x(e),"Escape"===e.key&&z()&&(u||(e.stopPropagation(),b&&b(e,"escapeKeyDown")))}},className:B.root,ownerState:$}),K=k.backdrop,Z=Ay({elementType:K,externalSlotProps:C.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(y&&y(e),b&&b(e,"backdropClick"))},open:S},className:B.backdrop,ownerState:$});return g||S||N&&!R?Km.jsx(nx,{ref:j,container:l,disablePortal:p,children:Km.jsxs(V,Ly({},G,{children:[!m&&K?Km.jsx(K,Ly({},Z)):null,Km.jsx(Fy,{disableEnforceFocus:c,disableAutoFocus:s,disableRestoreFocus:f,isEnabled:z,open:S,children:d.cloneElement(o,U)})]}))}):null}));var xx=bx;const Sx=["onChange","maxRows","minRows","style","value"];function wx(e){return parseInt(e,10)||0}const Ex={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Cx(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const kx=d.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:i}=e,l=Py(e,Sx),{current:s}=d.useRef(null!=i),c=d.useRef(null),u=sf(t,c),p=d.useRef(null),f=d.useRef(0),[h,m]=d.useState({outerHeightStyle:0}),g=d.useCallback((()=>{const t=c.current,n=Jp(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};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=wx(n.paddingBottom)+wx(n.paddingTop),s=wx(n.borderBottomWidth)+wx(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),overflow:Math.abs(f-u)<=1}}),[r,o,e.placeholder]),v=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return f.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(f.current+=1,{overflow:r,outerHeightStyle:n}):e},y=d.useCallback((()=>{const e=g();Cx(e)||m((t=>v(t,e)))}),[g]);d.useEffect((()=>{const e=Xp((()=>{f.current=0,c.current&&(()=>{const e=g();Cx(e)||ht.flushSync((()=>{m((t=>v(t,e)))}))})()}));let t;const n=c.current,r=Jp(n);return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),t.observe(n)),()=>{e.clear(),r.removeEventListener("resize",e),t&&t.disconnect()}})),tf((()=>{y()})),d.useEffect((()=>{f.current=0}),[i]);return Km.jsxs(d.Fragment,{children:[Km.jsx("textarea",Ly({value:i,onChange:e=>{f.current=0,s||y(),n&&n(e)},ref:u,rows:o,style:Ly({height:h.outerHeightStyle,overflow:h.overflow?"hidden":void 0},a)},l)),Km.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:Ly({},Ex,a,{padding:0})})]})}));var Lx=kx;function Rx(){return Rx=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},Rx.apply(this,arguments)}function Ox(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 Ix(e,t){return Ix=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ix(e,t)}function Px(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ix(e,t)}var Tx=!1,_x=G.createContext(null),Nx="unmounted",Mx="exited",qx="entering",Ax="entered",Dx="exiting",zx=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=Mx,r.appearStatus=qx):o=Ax:o=t.unmountOnExit||t.mountOnEnter?Nx:Mx,r.state={status:o},r.nextCallback=null,r}Px(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Nx?{status:Mx}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==qx&&n!==Ax&&(t=qx):n!==qx&&n!==Ax||(t=Dx)}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===qx){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:wp.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Mx&&this.setState({status:Nx})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[wp.findDOMNode(this),r],a=o[0],i=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Tx?this.safeSetState({status:Ax},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:qx},(function(){t.props.onEntering(a,i),t.onTransitionEnd(s,(function(){t.safeSetState({status:Ax},(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:wp.findDOMNode(this);t&&!Tx?(this.props.onExit(r),this.safeSetState({status:Dx},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Mx},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Mx},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:wp.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===Nx)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=Ox(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return G.createElement(_x.Provider,{value:null},"function"==typeof n?n(e,r):G.cloneElement(G.Children.only(n),r))},t}(G.Component);function jx(){}zx.contextType=_x,zx.propTypes={},zx.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:jx,onEntering:jx,onEntered:jx,onExit:jx,onExiting:jx,onExited:jx},zx.UNMOUNTED=Nx,zx.EXITED=Mx,zx.ENTERING=qx,zx.ENTERED=Ax,zx.EXITING=Dx;var Fx=zx;function $x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bx(e,t){var n=Object.create(null);return e&&d.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&d.isValidElement(e)?t(e):e}(e)})),n}function Wx(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Hx(e,t,n){var r=Bx(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(d.isValidElement(i)){var l=a in t,s=a in r,c=t[a],u=d.isValidElement(c)&&!c.props.in;!s||l&&!u?s||!l||u?s&&l&&d.isValidElement(c)&&(o[a]=d.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:Wx(i,"exit",e),enter:Wx(i,"enter",e)})):o[a]=d.cloneElement(i,{in:!1}):o[a]=d.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:Wx(i,"exit",e),enter:Wx(i,"enter",e)})}})),o}var Ux=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Vx=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind($x(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Px(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,Bx(n.children,(function(e){return d.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Wx(e,"appear",n),enter:Wx(e,"enter",n),exit:Wx(e,"exit",n)})}))):Hx(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=Bx(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Rx({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Ox(e,["component","childFactory"]),o=this.state.contextValue,a=Ux(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?G.createElement(_x.Provider,{value:o},a):G.createElement(_x.Provider,{value:o},G.createElement(t,r,a))},t}(G.Component);Vx.propTypes={},Vx.defaultProps={component:"div",childFactory:function(e){return e}};var Gx=Vx;var Kx=Lf("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Zx=["center","classes","className"];let Xx,Qx,Yx,Jx,eS=e=>e;const tS=gm(Xx||(Xx=eS`
33
+ */function Xg(e,t){return _m(e,t)}"object"==typeof document&&(Gg=function(e){var t=e.key;if(Mg&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||zg,a={},l=[];Mg&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)})));var s,c=[Pg,_g];if(Mg){var u,d=[Rg,(s=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],p=Lg(c.concat(i,d));o=function(e,t,n,r){u=n,function(e){kg(xg(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(v.inserted[t.name]=!0)}}else{var f=[Rg],h=Lg(c.concat(i,f)),m=qg(i)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=function(e){return kg(xg(e),h)}(e?e+"{"+t.styles+"}":t.styles)),m[n]};o=function(e,t,n,r){var o=t.name,i=g(e,t);return void 0===v.compat?(r&&(v.inserted[o]=!0),i):r?void(v.inserted[o]=i):i}}var v={key:t,sheet:new Nm({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return v.sheet.hydrate(l),v}({key:"css",prepend:!0}));function Qg(){return Qg=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},Qg.apply(this,arguments)}function Jg(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}const Yg=["values","unit","step"];function ev(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Jg(e,Yg),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Qg({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Qg({keys:a,values:i,up:l,down:s,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var tv={borderRadius:4};function nv(e,t){return t?Lp(e,t,{clone:!1}):e}const rv={xs:0,sm:600,md:900,lg:1200,xl:1536},ov={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${rv[e]}px)`};function iv(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||ov;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||ov;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||rv).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function av({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t)),{})}function lv(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 sv(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:lv(e,n)||r,t&&(o=t(o,r,e)),o}function cv(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=lv(e.theme,r)||{};return iv(e,i,(e=>{let r=sv(a,o,e);return e===r&&"string"==typeof e&&(r=sv(a,o,`${t}${"default"===e?"":Kp(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const uv={m:"margin",p:"padding"},dv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},pv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},fv=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!pv[e])return[e];e=pv[e]}const[t,n]=e.split(""),r=uv[t],o=dv[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),hv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],mv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function gv(e,t,n,r){var o;const i=null!=(o=lv(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function vv(e){return gv(e,"spacing",8)}function bv(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 yv(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=bv(t,n),e)),{})}(fv(n),r);return iv(e,e[n],o)}function xv(e,t){const n=vv(e.theme);return Object.keys(e).map((r=>yv(e,t,r,n))).reduce(nv,{})}function Sv(e){return xv(e,hv)}function wv(e){return xv(e,mv)}function Ev(e=8){if(e.mui)return e;const t=vv({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 Cv(...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]?nv(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function kv(e){return"number"!=typeof e?e:`${e}px solid`}Sv.propTypes={},Sv.filterProps=hv,wv.propTypes={},wv.filterProps=mv;const Rv=cv({prop:"border",themeKey:"borders",transform:kv}),Lv=cv({prop:"borderTop",themeKey:"borders",transform:kv}),Ov=cv({prop:"borderRight",themeKey:"borders",transform:kv}),Iv=cv({prop:"borderBottom",themeKey:"borders",transform:kv}),Tv=cv({prop:"borderLeft",themeKey:"borders",transform:kv}),Pv=cv({prop:"borderColor",themeKey:"palette"}),_v=cv({prop:"borderTopColor",themeKey:"palette"}),Nv=cv({prop:"borderRightColor",themeKey:"palette"}),Mv=cv({prop:"borderBottomColor",themeKey:"palette"}),qv=cv({prop:"borderLeftColor",themeKey:"palette"}),zv=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=gv(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:bv(t,e)});return iv(e,e.borderRadius,n)}return null};zv.propTypes={},zv.filterProps=["borderRadius"],Cv(Rv,Lv,Ov,Iv,Tv,Pv,_v,Nv,Mv,qv,zv);const Av=e=>{if(void 0!==e.gap&&null!==e.gap){const t=gv(e.theme,"spacing",8),n=e=>({gap:bv(t,e)});return iv(e,e.gap,n)}return null};Av.propTypes={},Av.filterProps=["gap"];const Dv=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=gv(e.theme,"spacing",8),n=e=>({columnGap:bv(t,e)});return iv(e,e.columnGap,n)}return null};Dv.propTypes={},Dv.filterProps=["columnGap"];const jv=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=gv(e.theme,"spacing",8),n=e=>({rowGap:bv(t,e)});return iv(e,e.rowGap,n)}return null};jv.propTypes={},jv.filterProps=["rowGap"];function Fv(e,t){return"grey"===t?t:e}Cv(Av,Dv,jv,cv({prop:"gridColumn"}),cv({prop:"gridRow"}),cv({prop:"gridAutoFlow"}),cv({prop:"gridAutoColumns"}),cv({prop:"gridAutoRows"}),cv({prop:"gridTemplateColumns"}),cv({prop:"gridTemplateRows"}),cv({prop:"gridTemplateAreas"}),cv({prop:"gridArea"}));function Bv(e){return e<=1&&0!==e?100*e+"%":e}Cv(cv({prop:"color",themeKey:"palette",transform:Fv}),cv({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fv}),cv({prop:"backgroundColor",themeKey:"palette",transform:Fv}));const $v=cv({prop:"width",transform:Bv}),Wv=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||rv[t]||Bv(t)}};return iv(e,e.maxWidth,t)}return null};Wv.filterProps=["maxWidth"];const Uv=cv({prop:"minWidth",transform:Bv}),Hv=cv({prop:"height",transform:Bv}),Vv=cv({prop:"maxHeight",transform:Bv}),Gv=cv({prop:"minHeight",transform:Bv});cv({prop:"size",cssProperty:"width",transform:Bv}),cv({prop:"size",cssProperty:"height",transform:Bv});Cv($v,Wv,Uv,Hv,Vv,Gv,cv({prop:"boxSizing"}));var Kv={border:{themeKey:"borders",transform:kv},borderTop:{themeKey:"borders",transform:kv},borderRight:{themeKey:"borders",transform:kv},borderBottom:{themeKey:"borders",transform:kv},borderLeft:{themeKey:"borders",transform:kv},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:zv},color:{themeKey:"palette",transform:Fv},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fv},backgroundColor:{themeKey:"palette",transform:Fv},p:{style:wv},pt:{style:wv},pr:{style:wv},pb:{style:wv},pl:{style:wv},px:{style:wv},py:{style:wv},padding:{style:wv},paddingTop:{style:wv},paddingRight:{style:wv},paddingBottom:{style:wv},paddingLeft:{style:wv},paddingX:{style:wv},paddingY:{style:wv},paddingInline:{style:wv},paddingInlineStart:{style:wv},paddingInlineEnd:{style:wv},paddingBlock:{style:wv},paddingBlockStart:{style:wv},paddingBlockEnd:{style:wv},m:{style:Sv},mt:{style:Sv},mr:{style:Sv},mb:{style:Sv},ml:{style:Sv},mx:{style:Sv},my:{style:Sv},margin:{style:Sv},marginTop:{style:Sv},marginRight:{style:Sv},marginBottom:{style:Sv},marginLeft:{style:Sv},marginX:{style:Sv},marginY:{style:Sv},marginInline:{style:Sv},marginInlineStart:{style:Sv},marginInlineEnd:{style:Sv},marginBlock:{style:Sv},marginBlockStart:{style:Sv},marginBlockEnd:{style:Sv},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:Av},rowGap:{style:jv},columnGap:{style:Dv},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bv},maxWidth:{style:Wv},minWidth:{transform:Bv},height:{transform:Bv},maxHeight:{transform:Bv},minHeight:{transform:Bv},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Zv=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:c}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const u=lv(n,l)||{};if(c)return c(o);return iv(o,t,(t=>{let n=sv(u,s,t);return t===n&&"string"==typeof t&&(n=sv(u,s,`${e}${"default"===t?"":Kp(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:Kv;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],c=i,"function"==typeof l?l(c):l);var l,c;if(null!=o)if("object"==typeof o)if(a[n])s=nv(s,e(n,o,i,a));else{const e=iv({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=nv(s,e):s[n]=t({sx:o,theme:i})}else s=nv(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();Zv.filterProps=["sx"];var Xv=Zv;const Qv=["breakpoints","palette","spacing","shape"];function Jv(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Jg(e,Qv),l=ev(n),s=Ev(o);let c=Lp({breakpoints:l,direction:"ltr",components:{},palette:Qg({mode:"light"},r),spacing:s,shape:Qg({},tv,i)},a);return c=t.reduce(((e,t)=>Lp(e,t)),c),c.unstable_sxConfig=Qg({},Kv,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Xv({sx:e,theme:this})},c}function Yv(e=null){const t=U.useContext(sm);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const eb=Jv();function tb(e=eb){return Yv(e)}function nb({styles:e,themeId:t,defaultTheme:n={}}){const r=tb(n),o="function"==typeof e?e(t&&r[t]||r):e;return Vg.jsx(Zg,{styles:o})}const rb=["sx"];function ob(e){const{sx:t}=e,n=Jg(e,rb),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Kv;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return kp(n)?Qg({},r,n):r}:Qg({},r,t),Qg({},o,{sx:i})}function ib(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ib(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ab(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ib(e))&&(r&&(r+=" "),r+=t);return r}const lb=["className","component"];const sb=["variant"];function cb(e){return 0===e.length}function ub(e){const{variant:t}=e,n=Jg(e,sb);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?cb(r)?e[t]:Kp(e[t]):`${cb(r)?t:Kp(t)}${Kp(e[t].toString())}`})),r}const db=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function pb(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const fb=Jv();function hb({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function mb({props:e,name:t,defaultTheme:n,themeId:r}){let o=tb(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?xf(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function gb(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function vb(e){if(e.type)return e;if("#"===e.charAt(0))return vb(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Op(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(Op(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function bb(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 yb(e){let t="hsl"===(e=vb(e)).type||"hsla"===e.type?vb(function(e){e=vb(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),bb({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function xb(e,t){return e=vb(e),t=gb(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,bb(e)}function Sb(){return Sb=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},Sb.apply(this,arguments)}var wb=U.createContext(null);function Eb(){return U.useContext(wb)}var Cb="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function kb(e){const{children:t,theme:n}=e,r=Eb(),o=U.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Sb({},e,t)}(r,n);return null!=e&&(e[Cb]=null!==r),e}),[n,r]);return Vg.jsx(wb.Provider,{value:o,children:t})}const Rb={};function Lb(e,t,n,r=!1){return U.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Qg({},t,{[e]:i}):i;return r?()=>a:a}return Qg({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Ob(e){const{children:t,theme:n,themeId:r}=e,o=Yv(Rb),i=Eb()||Rb,a=Lb(r,o,n),l=Lb(r,i,n,!0);return Vg.jsx(kb,{theme:l,children:Vg.jsx(sm.Provider,{value:a,children:t})})}const Ib=["defaultProps","mixins","overrides","palette","props","styleOverrides"],Tb=["type","mode"];var Pb={black:"#000",white:"#fff"};var _b={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var Nb={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var Mb={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var qb={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var zb={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var Ab={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Db={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const jb=["mode","contrastThreshold","tonalOffset"],Fb={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:Pb.white,default:Pb.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}},Bb={text:{primary:Pb.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:Pb.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 $b(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=vb(e),t=gb(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 bb(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=vb(e),t=gb(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 bb(e)}(e.main,i)))}function Wb(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=If(e,jb),i=e.primary||function(e="light"){return"dark"===e?{main:zb[200],light:zb[50],dark:zb[400]}:{main:zb[700],light:zb[400],dark:zb[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Nb[200],light:Nb[50],dark:Nb[400]}:{main:Nb[500],light:Nb[300],dark:Nb[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Mb[500],light:Mb[300],dark:Mb[700]}:{main:Mb[700],light:Mb[400],dark:Mb[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Ab[400],light:Ab[300],dark:Ab[700]}:{main:Ab[700],light:Ab[500],dark:Ab[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Db[400],light:Db[300],dark:Db[700]}:{main:Db[800],light:Db[500],dark:Db[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:qb[400],light:qb[300],dark:qb[700]}:{main:"#ed6c02",light:qb[500],dark:qb[900]}}(t);function d(e){const t=function(e,t){const n=yb(e),r=yb(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Bb.text.primary)>=n?Bb.text.primary:Fb.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Of({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Op(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Op(12,t?` (${t})`:"",JSON.stringify(e.main)));return $b(e,"light",o,r),$b(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Bb,light:Fb};return Lp(Of({common:Of({},Pb),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:c,name:"success"}),grey:_b,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Ub=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Hb={textTransform:"uppercase"},Vb='"Roboto", "Helvetica", "Arial", sans-serif';function Gb(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Vb,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=If(n,Ub),f=o/14,h=d||(e=>e/c*f+"rem"),m=(e,t,n,o,i)=>{return Of({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Vb?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,Hb),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Hb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Lp(Of({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Kb(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var Zb=["none",Kb(0,2,1,-1,0,1,1,0,0,1,3,0),Kb(0,3,1,-2,0,2,2,0,0,1,5,0),Kb(0,3,3,-2,0,3,4,0,0,1,8,0),Kb(0,2,4,-1,0,4,5,0,0,1,10,0),Kb(0,3,5,-1,0,5,8,0,0,1,14,0),Kb(0,3,5,-1,0,6,10,0,0,1,18,0),Kb(0,4,5,-2,0,7,10,1,0,2,16,1),Kb(0,5,5,-3,0,8,10,1,0,3,14,2),Kb(0,5,6,-3,0,9,12,1,0,3,16,2),Kb(0,6,6,-3,0,10,14,1,0,4,18,3),Kb(0,6,7,-4,0,11,15,1,0,4,20,3),Kb(0,7,8,-4,0,12,17,2,0,5,22,4),Kb(0,7,8,-4,0,13,19,2,0,5,24,4),Kb(0,7,9,-4,0,14,21,2,0,5,26,4),Kb(0,8,9,-5,0,15,22,2,0,6,28,5),Kb(0,8,10,-5,0,16,24,2,0,6,30,5),Kb(0,8,11,-5,0,17,26,2,0,6,32,5),Kb(0,9,11,-5,0,18,28,2,0,7,34,6),Kb(0,9,12,-6,0,19,29,2,0,7,36,6),Kb(0,10,13,-6,0,20,31,3,0,8,38,7),Kb(0,10,13,-6,0,21,33,3,0,8,40,7),Kb(0,10,14,-6,0,22,35,3,0,8,42,7),Kb(0,11,14,-7,0,23,36,3,0,9,44,8),Kb(0,11,15,-7,0,24,38,3,0,9,46,8)];const Xb=["duration","easing","delay"],Qb={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)"},Jb={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Yb(e){return`${Math.round(e)}ms`}function ey(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ty(e){const t=Of({},Qb,e.easing),n=Of({},Jb,e.duration);return Of({getAutoHeightDuration:ey,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return If(r,Xb),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Yb(o)} ${i} ${"string"==typeof a?a:Yb(a)}`)).join(",")}},e,{easing:t,duration:n})}var ny={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const ry=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function oy(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=If(e,ry);if(e.vars)throw new Error(Op(18));const l=Wb(r),s=Jv(e);let c=Lp(s,{mixins:(u=s.breakpoints,d=n,Of({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Zb.slice(),typography:Gb(l,i),transitions:ty(o),zIndex:Of({},ny)});var u,d;return c=Lp(c,a),c=t.reduce(((e,t)=>Lp(e,t)),c),c.unstable_sxConfig=Of({},Kv,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Xv({sx:e,theme:this})},c}var iy=oy();function ay(){const e=tb(iy);return e[Lf]||e}function ly({props:e,name:t}){return mb({props:e,name:t,defaultTheme:iy,themeId:Lf})}const sy=e=>pb(e)&&"classes"!==e,cy=function(e={}){const{themeId:t,defaultTheme:n=fb,rootShouldForwardProp:r=pb,slotShouldForwardProp:o=pb}=e,i=e=>Xv(Qg({},e,{theme:hb(Qg({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d}=a,p=Jg(a,db),f=void 0!==c?c:s&&"Root"!==s||!1,h=u||!1;let m=pb;"Root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=Xg(e,Qg({shouldForwardProp:m,label:undefined},p)),v=(r,...o)=>{const a=o?o.map((e=>"function"==typeof e&&e.__emotion_real!==e?r=>e(Qg({},r,{theme:hb(Qg({},r,{defaultTheme:n,themeId:t}))})):e)):[];let s=r;l&&d&&a.push((e=>{const r=hb(Qg({},e,{defaultTheme:n,themeId:t})),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(l,r);if(o){const t={};return Object.entries(o).forEach((([n,o])=>{t[n]="function"==typeof o?o(Qg({},e,{theme:r})):o})),d(e,t)}return null})),l&&!f&&a.push((e=>{const r=hb(Qg({},e,{defaultTheme:n,themeId:t}));return((e,t,n,r)=>{var o,i;const{ownerState:a={}}=e,l=[],s=null==n||null==(o=n.components)||null==(i=o[r])?void 0:i.variants;return s&&s.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{a[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&l.push(t[ub(n.props)])})),l})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=ub(e.props);r[t]=e.style})),r})(l,r),r,l)})),h||a.push(i);const c=a.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");s=[...r,...e],s.raw=[...r.raw,...e]}else"function"==typeof r&&r.__emotion_real!==r&&(s=e=>r(Qg({},e,{theme:hb(Qg({},e,{defaultTheme:n,themeId:t}))})));const u=g(s,...a);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:Lf,defaultTheme:iy,rootShouldForwardProp:sy});var uy=cy;const dy=["theme"];function py(e){let{theme:t}=e,n=If(e,dy);const r=t[Lf];return Vg.jsx(Ob,Of({},n,{themeId:r?Lf:void 0,theme:r||t}))}var fy=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function hy(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=hy(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function my(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=hy(e))&&(r&&(r+=" "),r+=t);return r}function gy(){return gy=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},gy.apply(this,arguments)}function vy(e){return"string"==typeof e}function by(e,t,n){return void 0===e||vy(e)?t:gy({},t,{ownerState:gy({},t.ownerState,n)})}const yy={disableDefaultClasses:!1},xy=U.createContext(yy);function Sy(e){const{disableDefaultClasses:t}=U.useContext(xy);return n=>t?"":e(n)}function wy(e,t){return"function"==typeof e?e(t):e}function Ey(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Cy(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Cy(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ky(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Cy(e))&&(r&&(r+=" "),r+=t);return r}function Ry(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function Ly(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=ky(null==o?void 0:o.className,null==r?void 0:r.className,i,null==n?void 0:n.className),t=gy({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=gy({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}(gy({},o,r)),l=Ry(r),s=Ry(o),c=t(a),u=ky(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=gy({},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=gy({},c,n,s,l);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}const Oy=["elementType","externalSlotProps","ownerState"];function Iy(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=Ey(e,Oy),a=wy(r,o),{props:l,internalRef:s}=Ly(gy({},i,{externalSlotProps:a}));return by(n,gy({},l,{ref:sf(s,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}const Ty=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Py(e){const t=[],n=[];return Array.from(e.querySelectorAll(Ty)).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 _y(){return!0}function Ny(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Py,isEnabled:a=_y,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=sf(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=Jp(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=Jp(h.current),t=t=>{const{current:n}=h;if(null!==n)if(e.hasFocus()&&!r&&a()&&!s.current){if(!n.contains(e.activeElement)){if(t&&p.current!==t.target||e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(r=i(h.current)),r.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else n.focus()}}else s.current=!1},n=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,u.current&&u.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Vg.jsxs(U.Fragment,{children:[Vg.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)}}),Vg.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})}var My="top",qy="bottom",zy="right",Ay="left",Dy="auto",jy=[My,qy,zy,Ay],Fy="start",By="end",$y="viewport",Wy="popper",Uy=jy.reduce((function(e,t){return e.concat([t+"-"+Fy,t+"-"+By])}),[]),Hy=[].concat(jy,[Dy]).reduce((function(e,t){return e.concat([t,t+"-"+Fy,t+"-"+By])}),[]),Vy=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Gy(e){return e?(e.nodeName||"").toLowerCase():null}function Ky(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zy(e){return e instanceof Ky(e).Element||e instanceof Element}function Xy(e){return e instanceof Ky(e).HTMLElement||e instanceof HTMLElement}function Qy(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ky(e).ShadowRoot||e instanceof ShadowRoot)}var Jy={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];Xy(o)&&Gy(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Xy(r)&&Gy(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Yy(e){return e.split("-")[0]}var ex=Math.max,tx=Math.min,nx=Math.round;function rx(){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 ox(){return!/^((?!chrome|android).)*safari/i.test(rx())}function ix(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Xy(e)&&(o=e.offsetWidth>0&&nx(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&nx(r.height)/e.offsetHeight||1);var a=(Zy(e)?Ky(e):window).visualViewport,l=!ox()&&n,s=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function ax(e){var t=ix(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 lx(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Qy(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function sx(e){return Ky(e).getComputedStyle(e)}function cx(e){return["table","td","th"].indexOf(Gy(e))>=0}function ux(e){return((Zy(e)?e.ownerDocument:e.document)||window.document).documentElement}function dx(e){return"html"===Gy(e)?e:e.assignedSlot||e.parentNode||(Qy(e)?e.host:null)||ux(e)}function px(e){return Xy(e)&&"fixed"!==sx(e).position?e.offsetParent:null}function fx(e){for(var t=Ky(e),n=px(e);n&&cx(n)&&"static"===sx(n).position;)n=px(n);return n&&("html"===Gy(n)||"body"===Gy(n)&&"static"===sx(n).position)?t:n||function(e){var t=/firefox/i.test(rx());if(/Trident/i.test(rx())&&Xy(e)&&"fixed"===sx(e).position)return null;var n=dx(e);for(Qy(n)&&(n=n.host);Xy(n)&&["html","body"].indexOf(Gy(n))<0;){var r=sx(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 hx(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mx(e,t,n){return ex(e,tx(t,n))}function gx(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function vx(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var bx={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Yy(n.placement),s=hx(l),c=[Ay,zy].indexOf(l)>=0?"height":"width";if(i&&a){var u=function(e,t){return gx("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:vx(e,jy))}(o.padding,n),d=ax(i),p="y"===s?My:Ay,f="y"===s?qy:zy,h=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],m=a[s]-n.rects.reference[s],g=fx(i),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,y=u[p],x=v-d[c]-u[f],S=v/2-d[c]/2+b,w=mx(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)))&&lx(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function yx(e){return e.split("-")[1]}var xx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Sx(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,h=a.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=Ay,x=My,S=window;if(c){var w=fx(n),E="clientHeight",C="clientWidth";if(w===Ky(n)&&"static"!==sx(w=ux(n)).position&&"absolute"===l&&(E="scrollHeight",C="scrollWidth"),o===My||(o===Ay||o===zy)&&i===By)x=qy,m-=(d&&w===S&&S.visualViewport?S.visualViewport.height:w[E])-r.height,m*=s?1:-1;if(o===Ay||(o===My||o===qy)&&i===By)y=zy,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&&xx),L=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:nx(n*o)/o||0,y:nx(r*o)/o||0}}({x:f,y:m},Ky(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 wx={passive:!0};var Ex={left:"right",right:"left",bottom:"top",top:"bottom"};function Cx(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ex[e]}))}var kx={start:"end",end:"start"};function Rx(e){return e.replace(/start|end/g,(function(e){return kx[e]}))}function Lx(e){var t=Ky(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ox(e){return ix(ux(e)).left+Lx(e).scrollLeft}function Ix(e){var t=sx(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Tx(e){return["html","body","#document"].indexOf(Gy(e))>=0?e.ownerDocument.body:Xy(e)&&Ix(e)?e:Tx(dx(e))}function Px(e,t){var n;void 0===t&&(t=[]);var r=Tx(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Ky(r),a=o?[i].concat(i.visualViewport||[],Ix(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Px(dx(a)))}function _x(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Nx(e,t,n){return t===$y?_x(function(e,t){var n=Ky(e),r=ux(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var c=ox();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+Ox(e),y:s}}(e,n)):Zy(t)?function(e,t){var n=ix(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):_x(function(e){var t,n=ux(e),r=Lx(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=ex(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ex(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Ox(e),s=-r.scrollTop;return"rtl"===sx(o||n).direction&&(l+=ex(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(ux(e)))}function Mx(e,t,n,r){var o="clippingParents"===t?function(e){var t=Px(dx(e)),n=["absolute","fixed"].indexOf(sx(e).position)>=0&&Xy(e)?fx(e):e;return Zy(n)?t.filter((function(e){return Zy(e)&&lx(e,n)&&"body"!==Gy(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce((function(t,n){var o=Nx(e,n,r);return t.top=ex(o.top,t.top),t.right=tx(o.right,t.right),t.bottom=tx(o.bottom,t.bottom),t.left=ex(o.left,t.left),t}),Nx(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function qx(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Yy(o):null,a=o?yx(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case My:t={x:l,y:n.y-r.height};break;case qy:t={x:l,y:n.y+n.height};break;case zy:t={x:n.x+n.width,y:s};break;case Ay:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=i?hx(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Fy:t[c]=t[c]-(n[u]/2-r[u]/2);break;case By:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function zx(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,s=void 0===l?"clippingParents":l,c=n.rootBoundary,u=void 0===c?$y:c,d=n.elementContext,p=void 0===d?Wy:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=gx("number"!=typeof g?g:vx(g,jy)),b=p===Wy?"reference":Wy,y=e.rects.popper,x=e.elements[h?b:p],S=Mx(Zy(x)?x:x.contextElement||ux(e.elements.popper),s,u,a),w=ix(e.elements.reference),E=qx({reference:w,element:y,strategy:"absolute",placement:o}),C=_x(Object.assign({},y,E)),k=p===Wy?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===Wy&&L){var O=L[o];Object.keys(R).forEach((function(e){var t=[zy,qy].indexOf(e)>=0?1:-1,n=[My,qy].indexOf(e)>=0?"y":"x";R[e]+=O[n]*t}))}return R}function Ax(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?Hy:s,u=yx(r),d=u?l?Uy:Uy.filter((function(e){return yx(e)===u})):jy,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]=zx(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Yy(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var Dx={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=Yy(g),b=s||(v===g||!h?[Cx(g)]:function(e){if(Yy(e)===Dy)return[];var t=Cx(e);return[Rx(e),t,Rx(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(Yy(n)===Dy?Ax(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=Yy(R),O=yx(R)===Fy,I=[My,qy].indexOf(L)>=0,T=I?"width":"height",P=zx(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),_=I?O?zy:Ay:O?qy:My;x[T]>S[T]&&(_=Cx(_));var N=Cx(_),M=[];if(i&&M.push(P[L]<=0),l&&M.push(P[_]<=0,P[N]<=0),M.every((function(e){return e}))){C=R,E=!1;break}w.set(R,M)}if(E)for(var q=function(e){var t=y.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},z=h?3:1;z>0;z--){if("break"===q(z))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function jx(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 Fx(e){return[My,zy,qy,Ay].some((function(t){return e[t]>=0}))}var Bx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=Hy.reduce((function(e,n){return e[n]=function(e,t,n){var r=Yy(e),o=[Ay,My].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Ay,zy].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var $x={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=zx(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=Yy(t.placement),b=yx(t.placement),y=!b,x=hx(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(i){var I,T="y"===x?My:Ay,P="y"===x?qy:zy,_="y"===x?"height":"width",N=w[x],M=N+g[T],q=N-g[P],z=f?-C[_]/2:0,A=b===Fy?E[_]:C[_],D=b===Fy?-C[_]:-E[_],j=t.elements.arrow,F=f&&j?ax(j):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=B[T],W=B[P],U=mx(0,E[_],F[_]),H=y?E[_]/2-z-U-$-R.mainAxis:A-U-$-R.mainAxis,V=y?-E[_]/2+z+U+W+R.mainAxis:D+U+W+R.mainAxis,G=t.elements.arrow&&fx(t.elements.arrow),K=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,Z=null!=(I=null==L?void 0:L[x])?I:0,X=N+V-Z,Q=mx(f?tx(M,N+H-Z-K):M,N,f?ex(q,X):q);w[x]=Q,O[x]=Q-N}if(l){var J,Y="x"===x?My:Ay,ee="x"===x?qy:zy,te=w[S],ne="y"===S?"height":"width",re=te+g[Y],oe=te-g[ee],ie=-1!==[My,Ay].indexOf(v),ae=null!=(J=null==L?void 0:L[S])?J:0,le=ie?re:te-E[ne]-C[ne]-ae+R.altAxis,se=ie?te+E[ne]+C[ne]-ae-R.altAxis:oe,ce=f&&ie?function(e,t,n){var r=mx(e,t,n);return r>n?n:r}(le,te,se):mx(f?le:re,te,f?se:oe);w[S]=ce,O[S]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function Wx(e,t,n){void 0===n&&(n=!1);var r=Xy(t),o=Xy(t)&&function(e){var t=e.getBoundingClientRect(),n=nx(t.width)/e.offsetWidth||1,r=nx(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=ux(t),a=ix(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==Gy(t)||Ix(i))&&(l=function(e){return e!==Ky(e)&&Xy(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Lx(e);var t}(t)),Xy(t)?((s=ix(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=Ox(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function Ux(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 Hx={placement:"bottom",modifiers:[],strategy:"absolute"};function Vx(){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 Gx(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Hx:o;return function(e,t,n){void 0===n&&(n=i);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Hx,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},i,l.options,o),l.scrollParents={reference:Zy(e)?Px(e):e.contextElement?Px(e.contextElement):[],popper:Px(t)};var a,c,p=function(e){var t=Ux(e);return Vy.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,l.options.modifiers),c=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return l.orderedModifiers=p.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:l,name:t,instance:u,options:r}),a=function(){};s.push(i||a)}})),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(Vx(t,n)){l.rects={reference:Wx(t,fx(n),"fixed"===l.options.strategy),popper:ax(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,d=o.name;"function"==typeof i&&(l=i({state:l,options:s,name:d,instance:u})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(l)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),c=!0}};if(!Vx(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 Kx=Gx({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,s=Ky(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,wx)})),l&&s.addEventListener("resize",n.update,wx),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,wx)})),l&&s.removeEventListener("resize",n.update,wx)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=qx({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,s=void 0===l||l,c={placement:Yy(t.placement),variation:yx(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,Sx(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Sx(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:{}},Jy,Bx,Dx,$x,bx,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=zx(t,{elementContext:"reference"}),l=zx(t,{altBoundary:!0}),s=jx(a,r),c=jx(l,o,i),u=Fx(s),d=Fx(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});var Zx=U.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=U.useState(null),l=sf(U.isValidElement(n)?n.ref:null,t);if(tf((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),tf((()=>{if(i&&!o)return ef(t,i),()=>{ef(t,null)}}),[t,i,o]),o){if(U.isValidElement(n)){const e={ref:l};return U.cloneElement(n,e)}return Vg.jsx(U.Fragment,{children:n})}return Vg.jsx(U.Fragment,{children:i?Sp.createPortal(n,i):i})}));function Xx(e){return kf("MuiPopper",e)}Rf("MuiPopper",["root"]);const Qx=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Jx=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Yx(e){return"function"==typeof e?e():e}const eS={},tS=U.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:l,open:s,placement:c,popperOptions:u,popperRef:d,slotProps:p={},slots:f={},TransitionProps:h}=e,m=Ey(e,Qx),g=U.useRef(null),v=sf(g,t),b=U.useRef(null),y=sf(b,d),x=U.useRef(y);tf((()=>{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,i),[w,E]=U.useState(S),[C,k]=U.useState(Yx(r));U.useEffect((()=>{b.current&&b.current.forceUpdate()})),U.useEffect((()=>{r&&k(Yx(r))}),[r]),tf((()=>{if(!C||!s)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{E(e.placement)}}];null!=l&&(e=e.concat(l)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=Kx(C,g.current,gy({placement:S},u,{modifiers:e}));return x.current(t),()=>{t.destroy(),x.current(null)}}),[C,a,l,s,u,S]);const R={placement:w};null!==h&&(R.TransitionProps=h);const L=Sf({root:["root"]},Sy(Xx)),O=null!=(n=f.root)?n:"div",I=Iy({elementType:O,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:L.root});return Vg.jsx(O,gy({},I,{children:"function"==typeof o?o(R):o}))})),nS=U.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:s,open:c,placement:u="bottom",popperOptions:d=eS,popperRef:p,style:f,transition:h=!1,slotProps:m={},slots:g={}}=e,v=Ey(e,Jx),[b,y]=U.useState(!0);if(!l&&!c&&(!h||b))return null;let x;if(o)x=o;else if(n){const e=Yx(n);x=e&&void 0!==e.nodeType?Jp(e).body:Jp(null).body}const S=c||!l||h&&!b?void 0:"none",w=h?{in:c,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return Vg.jsx(Zx,{disablePortal:a,container:x,children:Vg.jsx(tS,gy({anchorEl:n,direction:i,disablePortal:a,modifiers:s,ref:t,open:h?!b:c,placement:u,popperOptions:d,popperRef:p,slotProps:m,slots:g},v,{style:gy({position:"fixed",top:0,left:0,display:S},f),TransitionProps:w,children:r}))})}));var rS=nS;function oS(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function iS(e){return parseInt(Yp(e).getComputedStyle(e).paddingRight,10)||0}function aS(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&oS(e,o)}))}function lS(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function sS(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Jp(e);return t.body===e?Yp(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=bf(Jp(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${iS(r)+e}px`;const t=Jp(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${iS(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Jp(r).body;else{const t=r.parentElement,n=Yp(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}function cS(e){return kf("MuiModal",e)}Rf("MuiModal",["root","hidden","backdrop"]);const uS=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"];const dS=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);aS(t,e.mount,e.modalRef,r,!0);const o=lS(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=lS(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=sS(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=lS(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),aS(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}},pS=U.forwardRef((function(e,t){var n,r;const{children:o,closeAfterTransition:i=!1,container:a,disableAutoFocus:l=!1,disableEnforceFocus:s=!1,disableEscapeKeyDown:c=!1,disablePortal:u=!1,disableRestoreFocus:d=!1,disableScrollLock:p=!1,hideBackdrop:f=!1,keepMounted:h=!1,manager:m=dS,onBackdropClick:g,onClose:v,onKeyDown:b,open:y,onTransitionEnter:x,onTransitionExited:S,slotProps:w={},slots:E={}}=e,C=Ey(e,uS),k=m,[R,L]=U.useState(!y),O=U.useRef({}),I=U.useRef(null),T=U.useRef(null),P=sf(T,t),_=function(e){return!!e&&e.props.hasOwnProperty("in")}(o),N=null==(n=e["aria-hidden"])||n,M=()=>(O.current.modalRef=T.current,O.current.mountNode=I.current,O.current),q=()=>{k.mount(M(),{disableScrollLock:p}),T.current&&(T.current.scrollTop=0)},z=lf((()=>{const e=function(e){return"function"==typeof e?e():e}(a)||Jp(I.current).body;k.add(M(),e),T.current&&q()})),A=U.useCallback((()=>k.isTopModal(M())),[k]),D=lf((e=>{I.current=e,e&&T.current&&(y&&A()?q():oS(T.current,N))})),j=U.useCallback((()=>{k.remove(M(),N)}),[k,N]);U.useEffect((()=>()=>{j()}),[j]),U.useEffect((()=>{y?z():_&&i||j()}),[y,j,_,i,z]);const F=gy({},e,{closeAfterTransition:i,disableAutoFocus:l,disableEnforceFocus:s,disableEscapeKeyDown:c,disablePortal:u,disableRestoreFocus:d,disableScrollLock:p,exited:R,hideBackdrop:f,keepMounted:h}),B=(e=>{const{open:t,exited:n}=e;return Sf({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Sy(cS))})(F),$=()=>{L(!1),x&&x()},W=()=>{L(!0),S&&S(),i&&j()},H={};void 0===o.props.tabIndex&&(H.tabIndex="-1"),_&&(H.onEnter=Zp($,o.props.onEnter),H.onExited=Zp(W,o.props.onExited));const V=null!=(r=E.root)?r:"div",G=Iy({elementType:V,externalSlotProps:w.root,externalForwardedProps:C,additionalProps:{ref:P,role:"presentation",onKeyDown:e=>{b&&b(e),"Escape"===e.key&&A()&&(c||(e.stopPropagation(),v&&v(e,"escapeKeyDown")))}},className:B.root,ownerState:F}),K=E.backdrop,Z=Iy({elementType:K,externalSlotProps:w.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(g&&g(e),v&&v(e,"backdropClick"))},open:y},className:B.backdrop,ownerState:F});return h||y||_&&!R?Vg.jsx(Zx,{ref:D,container:a,disablePortal:u,children:Vg.jsxs(V,gy({},G,{children:[!f&&K?Vg.jsx(K,gy({},Z)):null,Vg.jsx(Ny,{disableEnforceFocus:s,disableAutoFocus:l,disableRestoreFocus:d,isEnabled:A,open:y,children:U.cloneElement(o,H)})]}))}):null}));var fS=pS;const hS=["onChange","maxRows","minRows","style","value"];function mS(e){return parseInt(e,10)||0}const gS={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function vS(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const bS=U.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=Ey(e,hS),{current:s}=U.useRef(null!=a),c=U.useRef(null),u=sf(t,c),d=U.useRef(null),p=U.useRef(0),[f,h]=U.useState({outerHeightStyle:0}),m=U.useCallback((()=>{const t=c.current,n=Yp(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=mS(n.paddingBottom)+mS(n.paddingTop),s=mS(n.borderBottomWidth)+mS(n.borderTopWidth),u=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-u)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},v=U.useCallback((()=>{const e=m();vS(e)||h((t=>g(t,e)))}),[m]);U.useEffect((()=>{const e=Xp((()=>{p.current=0,c.current&&(()=>{const e=m();vS(e)||Sp.flushSync((()=>{h((t=>g(t,e)))}))})()}));let t;const n=c.current,r=Yp(n);return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),t.observe(n)),()=>{e.clear(),r.removeEventListener("resize",e),t&&t.disconnect()}})),tf((()=>{v()})),U.useEffect((()=>{p.current=0}),[a]);return Vg.jsxs(U.Fragment,{children:[Vg.jsx("textarea",gy({value:a,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:u,rows:o,style:gy({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Vg.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:gy({},gS,i,{padding:0})})]})}));var yS=bS;function xS(){return xS=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},xS.apply(this,arguments)}function SS(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function wS(e,t){return wS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wS(e,t)}function ES(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wS(e,t)}var CS=!1,kS=H.createContext(null),RS="unmounted",LS="exited",OS="entering",IS="entered",TS="exiting",PS=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=LS,r.appearStatus=OS):o=IS:o=t.unmountOnExit||t.mountOnEnter?RS:LS,r.state={status:o},r.nextCallback=null,r}ES(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===RS?{status:LS}: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!==OS&&n!==IS&&(t=OS):n!==OS&&n!==IS||(t=TS)}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===OS){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:wp.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===LS&&this.setState({status:RS})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[wp.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||CS?this.safeSetState({status:IS},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:OS},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:IS},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:wp.findDOMNode(this);t&&!CS?(this.props.onExit(r),this.safeSetState({status:TS},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:LS},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:LS},(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:wp.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===RS)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=SS(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return H.createElement(kS.Provider,{value:null},"function"==typeof n?n(e,r):H.cloneElement(H.Children.only(n),r))},t}(H.Component);function _S(){}PS.contextType=kS,PS.propTypes={},PS.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_S,onEntering:_S,onEntered:_S,onExit:_S,onExiting:_S,onExited:_S},PS.UNMOUNTED=RS,PS.EXITED=LS,PS.ENTERING=OS,PS.ENTERED=IS,PS.EXITING=TS;var NS=PS;function MS(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qS(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 zS(e,t,n){return null!=n[t]?n[t]:e.props[t]}function AS(e,t,n){var r=qS(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var c=o[s][r];l[o[s][r]]=n(c)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(U.isValidElement(a)){var l=i in t,s=i in r,c=t[i],u=U.isValidElement(c)&&!c.props.in;!s||l&&!u?s||!l||u?s&&l&&U.isValidElement(c)&&(o[i]=U.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:zS(a,"exit",e),enter:zS(a,"enter",e)})):o[i]=U.cloneElement(a,{in:!1}):o[i]=U.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:zS(a,"exit",e),enter:zS(a,"enter",e)})}})),o}var DS=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},jS=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(MS(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}ES(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,qS(n.children,(function(e){return U.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:zS(e,"appear",n),enter:zS(e,"enter",n),exit:zS(e,"exit",n)})}))):AS(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=qS(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=xS({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=SS(e,["component","childFactory"]),o=this.state.contextValue,i=DS(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?H.createElement(kS.Provider,{value:o},i):H.createElement(kS.Provider,{value:o},H.createElement(t,r,i))},t}(H.Component);jS.propTypes={},jS.defaultProps={component:"div",childFactory:function(e){return e}};var FS=jS;var BS=Rf("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const $S=["center","classes","className"];let WS,US,HS,VS,GS=e=>e;const KS=dm(WS||(WS=GS`
35
34
  0% {
36
35
  transform: scale(0);
37
36
  opacity: 0.1;
@@ -41,7 +40,7 @@ var xt=d,St=vt;function wt(e){for(var t="https://reactjs.org/docs/error-decoder.
41
40
  transform: scale(1);
42
41
  opacity: 0.3;
43
42
  }
44
- `)),nS=gm(Qx||(Qx=eS`
43
+ `)),ZS=dm(US||(US=GS`
45
44
  0% {
46
45
  opacity: 1;
47
46
  }
@@ -49,7 +48,7 @@ var xt=d,St=vt;function wt(e){for(var t="https://reactjs.org/docs/error-decoder.
49
48
  100% {
50
49
  opacity: 0;
51
50
  }
52
- `)),rS=gm(Yx||(Yx=eS`
51
+ `)),XS=dm(HS||(HS=GS`
53
52
  0% {
54
53
  transform: scale(1);
55
54
  }
@@ -61,7 +60,7 @@ var xt=d,St=vt;function wt(e){for(var t="https://reactjs.org/docs/error-decoder.
61
60
  100% {
62
61
  transform: scale(1);
63
62
  }
64
- `)),oS=wy("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),aS=wy((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:l,onExited:s,timeout:c}=e,[u,p]=d.useState(!1),f=ky(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:i,height:i,top:-i/2+a,left:-i/2+o},m=ky(n.child,u&&n.childLeaving,r&&n.childPulsate);return l||u||p(!0),d.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,c);return()=>{clearTimeout(e)}}}),[s,l,c]),Km.jsx("span",{className:f,style:h,children:Km.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Jx||(Jx=eS`
63
+ `)),QS=uy("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),JS=uy((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:c}=e,[u,d]=U.useState(!1),p=my(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=my(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]),Vg.jsx("span",{className:p,style:f,children:Vg.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(VS||(VS=GS`
65
64
  opacity: 0;
66
65
  position: absolute;
67
66
 
@@ -104,7 +103,7 @@ var xt=d,St=vt;function wt(e){for(var t="https://reactjs.org/docs/error-decoder.
104
103
  animation-iteration-count: infinite;
105
104
  animation-delay: 200ms;
106
105
  }
107
- `),Kx.rippleVisible,tS,550,(({theme:e})=>e.transitions.easing.easeInOut),Kx.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Kx.child,Kx.childLeaving,nS,550,(({theme:e})=>e.transitions.easing.easeInOut),Kx.childPulsate,rS,(({theme:e})=>e.transitions.easing.easeInOut)),iS=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,i=Of(n,Zx),[l,s]=d.useState([]),c=d.useRef(0),u=d.useRef(null);d.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const p=d.useRef(!1),f=d.useRef(null),h=d.useRef(null),m=d.useRef(null);d.useEffect((()=>()=>{clearTimeout(f.current)}),[]);const g=d.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;s((e=>[...e,Km.jsx(aS,{classes:{ripple:ky(o.ripple,Kx.ripple),rippleVisible:ky(o.rippleVisible,Kx.rippleVisible),ripplePulsate:ky(o.ripplePulsate,Kx.ripplePulsate),child:ky(o.child,Kx.child),childLeaving:ky(o.childLeaving,Kx.childLeaving),childPulsate:ky(o.childPulsate,Kx.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},c.current)])),c.current+=1,u.current=i}),[o]),v=d.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)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const l=i?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;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)d=Math.sqrt((2*s.width**2+s.height**2)/3),d%2==0&&(d+=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;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},f.current=setTimeout((()=>{h.current&&(h.current(),h.current=null)}),80)):g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[r,g]),y=d.useCallback((()=>{v({},{pulsate:!0})}),[v]),b=d.useCallback(((e,t)=>{if(clearTimeout(f.current),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void(f.current=setTimeout((()=>{b(e,t)})));h.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[]);return d.useImperativeHandle(t,(()=>({pulsate:y,start:v,stop:b})),[y,v,b]),Km.jsx(oS,Rf({className:ky(Kx.root,o.root,a),ref:m},i,{children:Km.jsx(Gx,{component:null,exit:!0,children:l})}))}));var lS=iS;function sS(e){return kf("MuiButtonBase",e)}var cS=Lf("MuiButtonBase",["root","disabled","focusVisible"]);const uS=["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"],dS=wy("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${cS.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),pS=d.forwardRef((function(e,t){const n=by({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:p=!1,LinkComponent:f="a",onBlur:h,onClick:m,onContextMenu:g,onDragLeave:v,onFocus:y,onFocusVisible:b,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:E,onMouseUp:C,onTouchEnd:k,onTouchMove:L,onTouchStart:R,tabIndex:O=0,TouchRippleProps:I,touchRippleRef:P,type:T}=n,_=Of(n,uS),N=d.useRef(null),M=d.useRef(null),q=sf(M,P),{isFocusVisibleRef:A,onFocus:D,onBlur:z,ref:j}=vf(),[F,$]=d.useState(!1);s&&F&&$(!1),d.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),N.current.focus()}})),[]);const[B,W]=d.useState(!1);d.useEffect((()=>{W(!0)}),[]);const H=B&&!c&&!s;function U(e,t,n=u){return lf((r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!0}))}d.useEffect((()=>{F&&p&&!c&&B&&M.current.pulsate()}),[c,p,F,B]);const V=U("start",w),G=U("stop",g),K=U("stop",v),Z=U("stop",C),X=U("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),Q=U("start",R),Y=U("stop",k),J=U("stop",L),ee=U("stop",(e=>{z(e),!1===A.current&&$(!1),h&&h(e)}),!1),te=lf((e=>{N.current||(N.current=e.currentTarget),D(e),!0===A.current&&($(!0),b&&b(e)),y&&y(e)})),ne=()=>{const e=N.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=d.useRef(!1),oe=lf((e=>{p&&!re.current&&F&&M.current&&" "===e.key&&(re.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ae=lf((e=>{p&&" "===e.key&&M.current&&F&&!e.defaultPrevented&&(re.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(_.href||_.to)&&(ie=f);const le={};"button"===ie?(le.type=void 0===T?"button":T,le.disabled=s):(_.href||_.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=sf(t,j,N),ce=Rf({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:p,tabIndex:O,focusVisible:F}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Sf({root:["root",t&&"disabled",n&&"focusVisible"]},sS,o);return n&&r&&(a.root+=` ${r}`),a})(ce);return Km.jsxs(dS,Rf({as:ie,className:ky(ue.root,i),ownerState:ce,onBlur:ee,onClick:m,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:V,onMouseLeave:X,onMouseUp:Z,onDragLeave:K,onTouchEnd:Y,onTouchMove:J,onTouchStart:Q,ref:se,tabIndex:s?-1:O,type:T},le,_,{children:[a,H?Km.jsx(lS,Rf({ref:q,center:o},I)):null]}))}));var fS=pS;function hS(e){return kf("MuiButton",e)}var mS=Lf("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var gS=d.createContext({});const vS=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],yS=e=>Rf({},"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}}),bS=wy(fS,{shouldForwardProp:e=>xy(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Kp(n.color)}`],t[`size${Kp(n.size)}`],t[`${n.variant}Size${Kp(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;return Rf({},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":Rf({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Dv(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})`:Dv(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})`:Dv(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:(e.vars||e).palette.grey.A100,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":Rf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${mS.focusVisible}`]:Rf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${mS.disabled}`]:Rf({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 ${Dv(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).palette.grey[300],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"},[`&.${mS.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${mS.disabled}`]:{boxShadow:"none"}})),xS=wy("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Kp(n.size)}`]]}})((({ownerState:e})=>Rf({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},yS(e)))),SS=wy("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Kp(n.size)}`]]}})((({ownerState:e})=>Rf({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},yS(e)))),wS=d.forwardRef((function(e,t){const n=d.useContext(gS),r=by({props:xf(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:i="button",className:l,disabled:s=!1,disableElevation:c=!1,disableFocusRipple:u=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:y="text"}=r,b=Of(r,vS),x=Rf({},r,{color:a,component:i,disabled:s,disableElevation:c,disableFocusRipple:u,fullWidth:h,size:m,type:v,variant:y}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e;return Rf({},i,Sf({root:["root",a,`${a}${Kp(t)}`,`size${Kp(o)}`,`${a}Size${Kp(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Kp(o)}`],endIcon:["endIcon",`iconSize${Kp(o)}`]},hS,i))})(x),w=g&&Km.jsx(xS,{className:S.startIcon,ownerState:x,children:g}),E=p&&Km.jsx(SS,{className:S.endIcon,ownerState:x,children:p});return Km.jsxs(bS,Rf({ownerState:x,className:ky(n.className,S.root,l),component:i,disabled:s,focusRipple:!u,focusVisibleClassName:ky(S.focusVisible,f),ref:t,type:v},b,{classes:S,children:[w,o,E]}))}));var ES=wS,CS={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 kS="#009845",LS="#3F8AB3",RS="#ffffff",OS="#404040",IS="#333333",PS="#1A1A1A",TS={mode:"light",palette:{primary:{main:OS,contrastText:RS},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:OS,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:RS,default:RS,lightest:RS,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:LS,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:kS,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:RS,alternativeContrastText:OS,excludedContrastText:OS},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)"}}},_S={mode:"dark",palette:{primary:{main:IS,contrastText:RS},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:RS,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:RS,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:OS,lighter:IS,darker:"#262626",darkest:PS},custom:{focusBorder:LS,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:kS,alternative:IS,excluded:PS,mainContrastText:RS,alternativeContrastText:RS,excludedContrastText:RS},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)"}}},NS={},MS=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(mS.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(mS.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(mS.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(mS.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function qS(e){let t=TS,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=_S));const r=JSON.stringify(t);if(NS[r])return NS[r];const o={palette:l(l({type:t.mode},CS.palette),t.palette),typography:l({},CS.typography),shadows:CS.shadows,props:l({},CS.props),shape:l({},CS.shape)};return NS[r]=gy(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:a={},styleOverrides:i={}}=e,l=Rf({},Of(e,$v),{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=dv(e.spacing);const s=cv(e.breakpoints||{}),c=l.spacing;l.mixins=Rf({gutters:(e={})=>Rf({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:Rf({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=Of(o,Bv),f=d||u||"light";return l.palette=Rf({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:MS(o)}))),NS[r].name=n,NS[r]}Ef.configure((e=>"njs-".concat("757e","-").concat(e.replace("Mui",""))));var AS=G.createContext({language:null,theme:null,translator:null,constraints:{},themeApi:null}),DS=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const n=e,r=[],o={get:e=>n[e],set:(e,r)=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));return n[e]=r,t({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));n[e]=null},dispatch:e=>{r.forEach((t=>t(e?{}:n)))}},a=()=>{const[,e]=d.useState(n);return d.useEffect((()=>(r.push(e),()=>{const t=r.indexOf(e);r.splice(t,1)})),[e]),[o]};return[a,o]};const[zS,jS]=DS({}),[FS,$S]=DS({}),[BS,WS]=DS({}),[HS,US]=DS({});function VS(e){if(!e.session)return[];const[t]=zS(),n=e?e.id:null;let r=t.get(n);return d.useEffect((()=>{e&&!r&&(r=function(e){let{app:t}=e;const n="".concat(t.id),r=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=US.get(n);t&&(await t.endSelections(e),US.clear(n),WS.get(t.id).emit("deactivated"))},o={begin:async function(e,o){let a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===US.get(n))return;r(a),US.set(n,e);const i=Array.isArray(o)?o:[o],l=async r=>{try{await e.beginSelections(i),US.set(n,e)}catch(e){6003!==e.code||r?US.clear(n):(await t.abortModal(a),l(!0))}};await l()},end:r};$S.set(n,o);const a={model:t,isInModal:()=>!!US.get(n),isModal:e=>e?US.get(n)===e:!!US.get(n),forward:()=>o.end().then((()=>t.forward())),back:()=>o.end().then((()=>t.back())),clear:()=>o.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return o.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return a}({app:e}),t.set(n,r),t.dispatch(!0))}),[e]),[r]}const GS=d.forwardRef(((e,t)=>{let{initialContext:n,app:r,renderCallback:o}=e;const[a]=VS(r),[i,l]=d.useState(n),[s,c]=d.useState(),{theme:u}=d.useMemo((()=>({theme:qS(s)})),[s]),[p,f]=d.useState([]);return d.useEffect((()=>{o&&o()}),[]),d.useImperativeHandle(t,(()=>({setComps(e){f([...e])},setMuiThemeName:c,setContext:e=>l((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)),getAppSelections:()=>a})),[]),G.createElement(ag,{injectFirst:!0},G.createElement(Fv,{theme:u},G.createElement(AS.Provider,{value:i},p)))}));function KS(e){let t,{app:n,context:r}=e;const o=new Promise((e=>{t=e})),a=G.createRef(),i=document.createElement("div");i.style.display="none",i.setAttribute("data-nebulajs-version","4.0.0-alpha.8"),i.setAttribute("data-app-id",n.id),document.body.appendChild(i);ft.createRoot(i).render(G.createElement(GS,{ref:a,app:n,initialContext:r,renderCallback:t}));const l={},s=[];return[{toggleFocusOfCells(e){Object.keys(l).forEach((t=>{l[t].current.toggleFocus(t===e)}))},cells:l,addCell(e,t){l[e]=t},removeCell(e){delete l[e]},add(e){(async()=>{await o,s.push(e),a.current.setComps(s)})()},remove(e){(async()=>{await o;const t=s.indexOf(e);-1!==t&&s.splice(t,1),a.current.setComps(s)})()},setMuiThemeName(e){(async()=>{await o,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,a.current.setContext(e)})()},getAppSelections:async()=>(await o,a.current.getAppSelections())},a,o]}function ZS(e){return kf("MuiSvgIcon",e)}Lf("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const XS=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],QS=wy("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Kp(n.color)}`],t[`fontSize${Kp(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,a,i,l,s,c,u,d,p,f,h,m,g,v,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(a=o.duration)?void 0:a.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(l=i.pxToRem)?void 0:l.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(c=s.pxToRem)?void 0:c.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(p=null==(f=(e.vars||e).palette)||null==(h=f[t.color])?void 0:h.main)?p:{action:null==(m=(e.vars||e).palette)||null==(g=m.action)?void 0:g.active,disabled:null==(v=(e.vars||e).palette)||null==(y=v.action)?void 0:y.disabled,inherit:void 0}[t.color]}})),YS=d.forwardRef((function(e,t){const n=by({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=Of(n,XS),f=Rf({},n,{color:a,component:i,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d}),h={};c||(h.viewBox=d);const m=(e=>{const{color:t,fontSize:n,classes:r}=e;return Sf({root:["root","inherit"!==t&&`color${Kp(t)}`,`fontSize${Kp(n)}`]},ZS,r)})(f);return Km.jsxs(QS,Rf({as:i,className:ky(m.root,o),focusable:"false",color:s,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},h,p,{ownerState:f,children:[r,u?Km.jsx("title",{children:u}):null]}))}));YS.muiName="SvgIcon";var JS=YS;function ew(e,t){function n(n,r){return Km.jsx(JS,Rf({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=JS.muiName,d.memo(d.forwardRef(n))}const tw={configure:e=>{Ef.configure(e)}};var nw=Object.freeze({__proto__:null,capitalize:Kp,createChainedFunction:Zp,createSvgIcon:ew,debounce:Xp,deprecatedPropType:function(e,t){return()=>null},isMuiElement:Qp,ownerDocument:Yp,ownerWindow:Jp,requirePropFactory:function(e,t){return()=>null},setRef:ef,unstable_ClassNameGenerator:tw,unstable_useEnhancedEffect:tf,unstable_useId:of,unsupportedProp:function(e,t,n,r,o){return null},useControlled:af,useEventCallback:lf,useForkRef:sf,useIsFocusVisible:vf});const rw=e=>e.scrollTop;function ow(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 aw(e){return kf("MuiPaper",e)}Lf("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 iw=["className","component","elevation","square","variant"],lw=wy("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 Rf({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&&Rf({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Dv("#fff",Ey(t.elevation))}, ${Dv("#fff",Ey(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),sw=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:i=!1,variant:l="elevation"}=n,s=Of(n,iw),c=Rf({},n,{component:o,elevation:a,square:i,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Sf({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},aw,o)})(c);return Km.jsx(lw,Rf({as:o,ownerState:c,className:ky(u.root,r),ref:t},s))}));var cw=sw;function uw(e){return kf("MuiIconButton",e)}var dw=Lf("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const pw=["edge","children","className","color","disabled","disableFocusRipple","size"],fw=wy(fS,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Kp(n.color)}`],n.edge&&t[`edge${Kp(n.edge)}`],t[`size${Kp(n.size)}`]]}})((({theme:e,ownerState:t})=>Rf({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})`:Dv(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 Rf({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Rf({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":Rf({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Dv(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)},{[`&.${dw.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),hw=d.forwardRef((function(e,t){const n=by({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=Of(n,pw),d=Rf({},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 Sf({root:["root",n&&"disabled","default"!==r&&`color${Kp(r)}`,o&&`edge${Kp(o)}`,`size${Kp(a)}`]},uw,t)})(d);return Km.jsx(fw,Rf({className:ky(p.root,a),centerRipple:!0,focusRipple:!s,disabled:l,ref:t,ownerState:d},u,{children:o}))}));var mw=hw;function gw(e){return kf("MuiTypography",e)}Lf("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const vw=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],yw=wy("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${Kp(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Rf({margin:0},t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),bw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xw={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Sw=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiTypography"}),r=(e=>xw[e]||e)(n.color),o=av(Rf({},n,{color:r})),{align:a="inherit",className:i,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=bw}=o,f=Of(o,vw),h=Rf({},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]||bw[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e;return Sf({root:["root",a,"inherit"!==e.align&&`align${Kp(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},gw,i)})(h);return Km.jsx(yw,Rf({as:m,ref:t,ownerState:h,className:ky(g.root,i)},f))}));var ww=Sw;const Ew=["components","componentsProps","slots","slotProps"],Cw=wy(ux,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kw=d.forwardRef((function(e,t){var n;const r=bv(),o=by({props:e,name:"MuiPopper"}),{components:a,componentsProps:i,slots:l,slotProps:s}=o,c=Of(o,Ew),u=null!=(n=null==l?void 0:l.root)?n:null==a?void 0:a.Root;return Km.jsx(Cw,Rf({direction:null==r?void 0:r.direction,slots:{root:u},slotProps:null!=s?s:i},c,{ref:t}))}));var Lw=kw;function Rw({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var Ow=d.createContext(void 0);function Iw(){return d.useContext(Ow)}function Pw(e){return Km.jsx(ig,Rf({},e,{defaultTheme:vy}))}function Tw(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function _w(e){return kf("MuiInputBase",e)}var Nw=Lf("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Mw=["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"],qw=(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${Kp(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Aw=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Dw=wy("div",{name:"MuiInputBase",slot:"Root",overridesResolver:qw})((({theme:e,ownerState:t})=>Rf({},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",[`&.${Nw.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Rf({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),zw=wy("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Aw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Rf({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 Rf({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] + .${Nw.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},[`&.${Nw.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"})})),jw=Km.jsx(Pw,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Fw=d.forwardRef((function(e,t){var n;const r=by({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:l,components:s={},componentsProps:c={},defaultValue:u,disabled:p,disableInjectingGlobalStyles:f,endAdornment:h,fullWidth:m=!1,id:g,inputComponent:v="input",inputProps:y={},inputRef:b,maxRows:x,minRows:S,multiline:w=!1,name:E,onBlur:C,onChange:k,onClick:L,onFocus:R,onKeyDown:O,onKeyUp:I,placeholder:P,readOnly:T,renderSuffix:_,rows:N,slotProps:M={},slots:q={},startAdornment:A,type:D="text",value:z}=r,j=Of(r,Mw),F=null!=y.value?y.value:z,{current:$}=d.useRef(null!=F),B=d.useRef(),W=d.useCallback((e=>{}),[]),H=sf(B,b,y.ref,W),[U,V]=d.useState(!1),G=Iw(),K=Rw({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:U,d.useEffect((()=>{!G&&p&&U&&(V(!1),C&&C())}),[G,p,U,C]);const Z=G&&G.onFilled,X=G&&G.onEmpty,Q=d.useCallback((e=>{!function(e,t=!1){return e&&(Tw(e.value)&&""!==e.value||t&&Tw(e.defaultValue)&&""!==e.defaultValue)}(e)?X&&X():Z&&Z()}),[Z,X]);tf((()=>{$&&Q({value:F})}),[F,Q,$]);d.useEffect((()=>{Q(B.current)}),[]);let Y=v,J=y;w&&"input"===Y&&(J=Rf(N?{type:void 0,minRows:N,maxRows:N}:{type:void 0,maxRows:x,minRows:S},J),Y=Lx);d.useEffect((()=>{G&&G.setAdornedStart(Boolean(A))}),[G,A]);const ee=Rf({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:h,error:K.error,focused:K.focused,formControl:G,fullWidth:m,hiddenLabel:K.hiddenLabel,multiline:w,size:K.size,startAdornment:A,type:D}),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 Sf({root:["root",`color${Kp(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl","small"===p&&"sizeSmall",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"]},_w,t)})(ee),ne=q.root||s.Root||Dw,re=M.root||c.root||{},oe=q.input||s.Input||zw;return J=Rf({},J,null!=(n=M.input)?n:c.input),Km.jsxs(d.Fragment,{children:[!f&&jw,Km.jsxs(ne,Rf({},re,!Ry(ne)&&{ownerState:Rf({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),L&&L(e)}},j,{className:ky(te.root,re.className,l,T&&"MuiInputBase-readOnly"),children:[A,Km.jsx(Ow.Provider,{value:null,children:Km.jsx(oe,Rf({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:u,disabled:K.disabled,id:g,onAnimationStart:e=>{Q("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:E,placeholder:P,readOnly:T,required:K.required,rows:N,value:F,onKeyDown:O,onKeyUp:I,type:D},J,!Ry(oe)&&{as:Y,ownerState:Rf({},ee,J.ownerState)},{ref:H,className:ky(te.input,J.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),y.onBlur&&y.onBlur(e),G&&G.onBlur?G.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||B.current;if(null==t)throw new Error(Op(1));Q({value:t.value})}y.onChange&&y.onChange(e,...t),k&&k(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(R&&R(e),y.onFocus&&y.onFocus(e),G&&G.onFocus?G.onFocus(e):V(!0))}}))}),h,_?_(Rf({},K,{startAdornment:A})):null]}))]})}));var $w=Fw;function Bw(e){return kf("MuiOutlinedInput",e)}var Ww=Rf({},Nw,Lf("MuiOutlinedInput",["root","notchedOutline","input"]));const Hw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Uw={entering:{opacity:1},entered:{opacity:1}},Vw=d.forwardRef((function(e,t){const n=yy(),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:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:v=r,TransitionComponent:y=Fx}=e,b=Of(e,Hw),x=d.useRef(null),S=sf(x,i.ref,t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},E=w(p),C=w(((e,t)=>{rw(e);const r=ow({style:g,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),k=w(u),L=w(m),R=w((e=>{const t=ow({style:g,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),O=w(h);return Km.jsx(y,Rf({appear:a,in:s,nodeRef:x,onEnter:C,onEntered:k,onEntering:E,onExit:R,onExited:O,onExiting:L,addEndListener:e=>{o&&o(x.current,e)},timeout:v},b,{children:(e,t)=>d.cloneElement(i,Rf({style:Rf({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Uw[e],g,i.props.style),ref:S},t))}))}));var Gw=Vw;function Kw(e){return kf("MuiBackdrop",e)}Lf("MuiBackdrop",["root","invisible"]);const Zw=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Xw=wy("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Rf({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"}))),Qw=d.forwardRef((function(e,t){var n,r,o;const a=by({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=Gw,transitionDuration:g}=a,v=Of(a,Zw),y=Rf({},a,{component:s,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return Sf({root:["root",n&&"invisible"]},Kw,t)})(y),x=null!=(n=f.root)?n:u.root;return Km.jsx(m,Rf({in:p,timeout:g},v,{children:Km.jsx(Xw,Rf({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:ky(b.root,l,null==x?void 0:x.className),ownerState:Rf({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:i}))}))}));var Yw=Qw;function Jw(e){return kf("MuiBadge",e)}var eE=Lf("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);const tE=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],nE=wy("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),rE=wy("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Kp(n.anchorOrigin.vertical)}${Kp(n.anchorOrigin.horizontal)}${Kp(n.overlap)}`],"default"!==n.color&&t[`color${Kp(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>Rf({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},"dot"===t.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${eE.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${eE.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${eE.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${eE.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${eE.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${eE.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${eE.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${eE.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),oE=d.forwardRef((function(e,t){var n,r,o,a,i,l;const s=by({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:y=99,badgeContent:b,slots:x,slotProps:S,showZero:w=!1,variant:E="standard"}=s,C=Of(s,tE),{badgeContent:k,invisible:L,max:R,displayValue:O}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=bf({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:y,invisible:v,badgeContent:b,showZero:w}),I=bf({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:b}),P=L||null==k&&"dot"!==E,{color:T=g,overlap:_=m,anchorOrigin:N=c,variant:M=E}=P?I:s,q="dot"!==M?O:void 0,A=Rf({},s,{badgeContent:k,invisible:P,max:R,displayValue:q,showZero:w,anchorOrigin:N,color:T,overlap:_,variant:M}),D=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return Sf({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${Kp(n.vertical)}${Kp(n.horizontal)}`,`anchorOrigin${Kp(n.vertical)}${Kp(n.horizontal)}${Kp(o)}`,`overlap${Kp(o)}`,"default"!==t&&`color${Kp(t)}`]},Jw,i)})(A),z=null!=(n=null!=(r=null==x?void 0:x.root)?r:p.Root)?n:nE,j=null!=(o=null!=(a=null==x?void 0:x.badge)?a:p.Badge)?o:rE,F=null!=(i=null==S?void 0:S.root)?i:f.root,$=null!=(l=null==S?void 0:S.badge)?l:f.badge,B=Ay({elementType:z,externalSlotProps:F,externalForwardedProps:C,additionalProps:{ref:t,as:d},ownerState:A,className:ky(null==F?void 0:F.className,D.root,u)}),W=Ay({elementType:j,externalSlotProps:$,ownerState:A,className:ky(D.badge,null==$?void 0:$.className)});return Km.jsxs(z,Rf({},B,{children:[h,Km.jsx(j,Rf({},W,{children:q}))]}))}));var aE=oE;const iE=function(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r}=e,o=lg("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(nv),a=d.forwardRef((function(e,a){const i=Sv(t),l=av(e),{className:s,component:c="div"}=l,u=rv(l,wv);return Km.jsx(o,sg({as:c,ref:a,className:lv(s,r?r(n):n),theme:i},u))}));return a}({defaultTheme:gy(),defaultClassName:"MuiBox-root",generateClassName:Ef.generate});var lE=iE;function sE(e){return kf("PrivateSwitchBase",e)}Lf("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const cE=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],uE=wy(fS)((({ownerState:e})=>Rf({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),dE=wy("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),pE=d.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:y,required:b=!1,tabIndex:x,type:S,value:w}=e,E=Of(e,cE),[C,k]=af({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),L=Iw();let R=l;L&&void 0===R&&(R=L.disabled);const O="checkbox"===S||"radio"===S,I=Rf({},e,{checked:C,disabled:R,disableFocusRipple:s,edge:c}),P=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return Sf({root:["root",n&&"checked",r&&"disabled",o&&`edge${Kp(o)}`],input:["input"]},sE,t)})(I);return Km.jsxs(uE,Rf({component:"span",className:ky(P.root,a),centerRipple:!0,focusRipple:!s,disabled:R,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),L&&L.onFocus&&L.onFocus(e)},onBlur:e=>{m&&m(e),L&&L.onBlur&&L.onBlur(e)},ownerState:I,ref:t},E,{children:[Km.jsx(dE,Rf({autoFocus:n,checked:r,defaultChecked:i,className:P.input,disabled:R,id:O?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),g&&g(e,t)},readOnly:y,ref:f,required:b,ownerState:I,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),C?o:u]}))}));var fE=pE,hE=ew(Km.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"),mE=ew(Km.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"),gE=ew(Km.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 vE(e){return kf("MuiCheckbox",e)}var yE=Lf("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]);const bE=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],xE=wy(fE,{shouldForwardProp:e=>xy(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${Kp(n.color)}`]]}})((({theme:e,ownerState:t})=>Rf({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Dv("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}}))),SE=Km.jsx(mE,{}),wE=Km.jsx(hE,{}),EE=Km.jsx(gE,{}),CE=d.forwardRef((function(e,t){var n,r;const o=by({props:e,name:"MuiCheckbox"}),{checkedIcon:a=SE,color:i="primary",icon:l=wE,indeterminate:s=!1,indeterminateIcon:c=EE,inputProps:u,size:p="medium",className:f}=o,h=Of(o,bE),m=s?c:l,g=s?c:a,v=Rf({},o,{color:i,indeterminate:s,size:p}),y=(e=>{const{classes:t,indeterminate:n,color:r}=e;return Rf({},t,Sf({root:["root",n&&"indeterminate",`color${Kp(r)}`]},vE,t))})(v);return Km.jsx(xE,Rf({type:"checkbox",inputProps:Rf({"data-indeterminate":s},u),icon:d.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:p}),checkedIcon:d.cloneElement(g,{fontSize:null!=(r=g.props.fontSize)?r:p}),ownerState:v,ref:t,className:ky(y.root,f)},h,{classes:y}))}));var kE=CE;function LE(e){return kf("MuiCircularProgress",e)}Lf("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const RE=["className","color","disableShrink","size","style","thickness","value","variant"];let OE,IE,PE,TE,_E=e=>e;const NE=44,ME=gm(OE||(OE=_E`
106
+ `),BS.rippleVisible,KS,550,(({theme:e})=>e.transitions.easing.easeInOut),BS.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),BS.child,BS.childLeaving,ZS,550,(({theme:e})=>e.transitions.easing.easeInOut),BS.childPulsate,XS,(({theme:e})=>e.transitions.easing.easeInOut)),YS=U.forwardRef((function(e,t){const n=ly({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=If(n,$S),[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=U.useRef(null),f=U.useRef(null),h=U.useRef(null);U.useEffect((()=>()=>{clearTimeout(p.current)}),[]);const m=U.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Vg.jsx(JS,{classes:{ripple:my(o.ripple,BS.ripple),rippleVisible:my(o.rippleVisible,BS.rippleVisible),ripplePulsate:my(o.ripplePulsate,BS.ripplePulsate),child:my(o.child,BS.child),childLeaving:my(o.childLeaving,BS.childLeaving),childPulsate:my(o.childPulsate,BS.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=U.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),u=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),u=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m]),v=U.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=U.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[]);return U.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Vg.jsx(QS,Of({className:my(BS.root,o.root,i),ref:h},a,{children:Vg.jsx(FS,{component:null,exit:!0,children:l})}))}));var ew=YS;function tw(e){return kf("MuiButtonBase",e)}var nw=Rf("MuiButtonBase",["root","disabled","focusVisible"]);const rw=["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"],ow=uy("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"},[`&.${nw.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),iw=U.forwardRef((function(e,t){const n=ly({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:E,onTouchEnd:C,onTouchMove:k,onTouchStart:R,tabIndex:L=0,TouchRippleProps:O,touchRippleRef:I,type:T}=n,P=If(n,rw),_=U.useRef(null),N=U.useRef(null),M=sf(N,I),{isFocusVisibleRef:q,onFocus:z,onBlur:A,ref:D}=vf(),[j,F]=U.useState(!1);s&&j&&F(!1),U.useImperativeHandle(r,(()=>({focusVisible:()=>{F(!0),_.current.focus()}})),[]);const[B,$]=U.useState(!1);U.useEffect((()=>{$(!0)}),[]);const W=B&&!c&&!s;function H(e,t,n=u){return lf((r=>{t&&t(r);return!n&&N.current&&N.current[e](r),!0}))}U.useEffect((()=>{j&&d&&!c&&B&&N.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=>{A(e),!1===q.current&&F(!1),f&&f(e)}),!1),te=lf((e=>{_.current||(_.current=e.currentTarget),z(e),!0===q.current&&(F(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=_.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=U.useRef(!1),oe=lf((e=>{d&&!re.current&&j&&N.current&&" "===e.key&&(re.current=!0,N.current.stop(e,(()=>{N.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=lf((e=>{d&&" "===e.key&&N.current&&j&&!e.defaultPrevented&&(re.current=!1,N.current.stop(e,(()=>{N.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(P.href||P.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===T?"button":T,le.disabled=s):(P.href||P.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=sf(t,D,_),ce=Of({},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,i=Sf({root:["root",t&&"disabled",n&&"focusVisible"]},tw,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return Vg.jsxs(ow,Of({as:ae,className:my(ue.root,a),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:Z,onDragLeave:K,onTouchEnd:J,onTouchMove:Y,onTouchStart:Q,ref:se,tabIndex:s?-1:L,type:T},le,P,{children:[i,W?Vg.jsx(ew,Of({ref:M,center:o},O)):null]}))}));var aw=iw;function lw(e){return kf("MuiButton",e)}var sw=Rf("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var cw=U.createContext({});const uw=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],dw=e=>Of({},"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}}),pw=uy(aw,{shouldForwardProp:e=>sy(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Kp(n.color)}`],t[`size${Kp(n.size)}`],t[`${n.variant}Size${Kp(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Of({},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":Of({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:xb(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})`:xb(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})`:xb(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Of({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${sw.focusVisible}`]:Of({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${sw.disabled}`]:Of({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 ${xb(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"},[`&.${sw.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${sw.disabled}`]:{boxShadow:"none"}})),fw=uy("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Kp(n.size)}`]]}})((({ownerState:e})=>Of({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},dw(e)))),hw=uy("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Kp(n.size)}`]]}})((({ownerState:e})=>Of({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},dw(e)))),mw=U.forwardRef((function(e,t){const n=U.useContext(cw),r=ly({props:xf(n,e),name:"MuiButton"}),{children:o,color:i="primary",component:a="button",className:l,disabled:s=!1,disableElevation:c=!1,disableFocusRipple:u=!1,endIcon:d,focusVisibleClassName:p,fullWidth:f=!1,size:h="medium",startIcon:m,type:g,variant:v="text"}=r,b=If(r,uw),y=Of({},r,{color:i,component:a,disabled:s,disableElevation:c,disableFocusRipple:u,fullWidth:f,size:h,type:g,variant:v}),x=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Of({},a,Sf({root:["root",i,`${i}${Kp(t)}`,`size${Kp(o)}`,`${i}Size${Kp(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Kp(o)}`],endIcon:["endIcon",`iconSize${Kp(o)}`]},lw,a))})(y),S=m&&Vg.jsx(fw,{className:x.startIcon,ownerState:y,children:m}),w=d&&Vg.jsx(hw,{className:x.endIcon,ownerState:y,children:d});return Vg.jsxs(pw,Of({ownerState:y,className:my(n.className,x.root,l),component:a,disabled:s,focusRipple:!u,focusVisibleClassName:my(x.focusVisible,p),ref:t,type:g},b,{classes:x,children:[S,o,w]}))}));var gw=mw,vw={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 bw="#009845",yw="#3F8AB3",xw="#ffffff",Sw="#404040",ww="#333333",Ew="#1A1A1A",Cw={mode:"light",palette:{primary:{main:Sw,contrastText:xw},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Sw,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:xw,default:xw,lightest:xw,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:yw,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:bw,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:xw,alternativeContrastText:Sw,excludedContrastText:Sw},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)"}}},kw={mode:"dark",palette:{primary:{main:ww,contrastText:xw},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:xw,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:xw,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:Sw,lighter:ww,darker:"#262626",darkest:Ew},custom:{focusBorder:yw,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:bw,alternative:ww,excluded:Ew,mainContrastText:xw,alternativeContrastText:xw,excludedContrastText:xw},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)"}}},Rw={},Lw=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(sw.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(sw.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(sw.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(sw.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function Ow(e){let t=Cw,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=kw));const r=JSON.stringify(t);if(Rw[r])return Rw[r];const o={palette:i(i({type:t.mode},vw.palette),t.palette),typography:i({},vw.typography),shadows:vw.shadows,props:i({},vw.props),shape:i({},vw.shape)};return Rw[r]=oy(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={}}=e,l=Of({},If(e,Ib),{components:{}});Object.keys(t).forEach((e=>{const n=l.components[e]||{};n.defaultProps=t[e],l.components[e]=n})),Object.keys(i).forEach((e=>{const t=l.components[e]||{};t.defaultProps=i[e],l.components[e]=t})),Object.keys(a).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=a[e],l.components[e]=t})),Object.keys(r).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=r[e],l.components[e]=t})),l.spacing=Ev(e.spacing);const s=ev(e.breakpoints||{}),c=l.spacing;l.mixins=Of({gutters:(e={})=>Of({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:Of({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=If(o,Tb),f=d||u||"light";return l.palette=Of({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},p),l}(i(i({},o),{},{overrides:Lw(o)}))),Rw[r].name=n,Rw[r]}Ef.configure((e=>"njs-".concat("4950","-").concat(e.replace("Mui",""))));var Iw=H.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null}),Tw=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const n=e,r=[],o={get:e=>n[e],set:(e,r)=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));return n[e]=r,t({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));n[e]=null},dispatch:e=>{r.forEach((t=>t(e?{}:n)))}},i=()=>{const[,e]=U.useState(n);return U.useEffect((()=>(r.push(e),()=>{const t=r.indexOf(e);r.splice(t,1)})),[e]),[o]};return[i,o]};const[Pw,_w]=Tw({}),[Nw,Mw]=Tw({}),[qw,zw]=Tw({}),[Aw,Dw]=Tw({});function jw(e){if(!e.session)return[];const[t]=Pw(),n=e?e.id:null;let r=t.get(n);return U.useEffect((()=>{e&&!r&&(r=function(e){let{app:t}=e;const n="".concat(t.id),r=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=Dw.get(n);t&&(await t.endSelections(e),Dw.clear(n),zw.get(t.id).emit("deactivated"))},o={begin:async function(e,o){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===Dw.get(n))return;r(i),Dw.set(n,e);const a=Array.isArray(o)?o:[o],l=async r=>{try{await e.beginSelections(a),Dw.set(n,e)}catch(e){6003!==e.code||r?Dw.clear(n):(await t.abortModal(i),l(!0))}};await l()},end:r};Mw.set(n,o);const i={model:t,isInModal:()=>!!Dw.get(n),isModal:e=>e?Dw.get(n)===e:!!Dw.get(n),forward:()=>o.end().then((()=>t.forward())),back:()=>o.end().then((()=>t.back())),clear:()=>o.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return o.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return i}({app:e}),t.set(n,r),t.dispatch(!0))}),[e]),[r]}const Fw={active:!0,select:!0,passive:!0,edit:!1};function Bw(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(Fw).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=Fw[e],n[e]=!Fw[e])})),e.constraints=n,e.interactions=t}const $w=U.forwardRef(((e,t)=>{let{initialContext:n,app:r,renderCallback:o}=e;const[i]=jw(r),[a,l]=U.useState(n),[s,c]=U.useState(),{theme:u}=U.useMemo((()=>({theme:Ow(s)})),[s]),[d,p]=U.useState([]);return U.useEffect((()=>{o&&o()}),[]),U.useImperativeHandle(t,(()=>({setComps(e){p([...e])},setMuiThemeName:c,setContext:e=>l((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)),getAppSelections:()=>i})),[]),H.createElement(Kg,{injectFirst:!0},H.createElement(py,{theme:u},H.createElement(Iw.Provider,{value:a},d)))}));function Ww(e){let t,{app:n,context:r}=e;const o=new Promise((e=>{t=e})),i=H.createRef(),a=document.createElement("div");a.style.display="none",a.setAttribute("data-nebulajs-version","4.0.0"),a.setAttribute("data-app-id",n.id),document.body.appendChild(a),r&&Bw(r);ft.createRoot(a).render(H.createElement($w,{ref:i,app:n,initialContext:r,renderCallback:t}));const l={},s=[];return[{toggleFocusOfCells(e){Object.keys(l).forEach((t=>{l[t].current.toggleFocus(t===e)}))},cells:l,addCell(e,t){l[e]=t},removeCell(e){delete l[e]},add(e){(async()=>{await o,s.push(e),i.current.setComps(s)})()},remove(e){(async()=>{await o;const t=s.indexOf(e);-1!==t&&s.splice(t,1),i.current.setComps(s)})()},setMuiThemeName(e){(async()=>{await o,i.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,e&&Bw(e),i.current.setContext(e)})()},getAppSelections:async()=>(await o,i.current.getAppSelections())},i,o]}function Uw(e){return kf("MuiSvgIcon",e)}Rf("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Hw=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Vw=uy("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Kp(n.color)}`],t[`fontSize${Kp(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,c,u,d,p,f,h,m,g,v,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(i=o.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(l=a.pxToRem)?void 0:l.call(a,20))||"1.25rem",medium:(null==(s=e.typography)||null==(c=s.pxToRem)?void 0:c.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(p=null==(f=(e.vars||e).palette)||null==(h=f[t.color])?void 0:h.main)?p:{action:null==(m=(e.vars||e).palette)||null==(g=m.action)?void 0:g.active,disabled:null==(v=(e.vars||e).palette)||null==(b=v.action)?void 0:b.disabled,inherit:void 0}[t.color]}})),Gw=U.forwardRef((function(e,t){const n=ly({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=If(n,Hw),f=Of({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d}),h={};c||(h.viewBox=d);const m=(e=>{const{color:t,fontSize:n,classes:r}=e;return Sf({root:["root","inherit"!==t&&`color${Kp(t)}`,`fontSize${Kp(n)}`]},Uw,r)})(f);return Vg.jsxs(Vw,Of({as:a,className:my(m.root,o),focusable:"false",color:s,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},h,p,{ownerState:f,children:[r,u?Vg.jsx("title",{children:u}):null]}))}));Gw.muiName="SvgIcon";var Kw=Gw;function Zw(e,t){function n(n,r){return Vg.jsx(Kw,Of({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Kw.muiName,U.memo(U.forwardRef(n))}const Xw={configure:e=>{Ef.configure(e)}};var Qw=Object.freeze({__proto__:null,capitalize:Kp,createChainedFunction:Zp,createSvgIcon:Zw,debounce:Xp,deprecatedPropType:function(e,t){return()=>null},isMuiElement:Qp,ownerDocument:Jp,ownerWindow:Yp,requirePropFactory:function(e,t){return()=>null},setRef:ef,unstable_ClassNameGenerator:Xw,unstable_useEnhancedEffect:tf,unstable_useId:of,unsupportedProp:function(e,t,n,r,o){return null},useControlled:af,useEventCallback:lf,useForkRef:sf,useIsFocusVisible:vf});const Jw=e=>e.scrollTop;function Yw(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function eE(e){return kf("MuiPaper",e)}Rf("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 tE=["className","component","elevation","square","variant"],nE=uy("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 Of({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&&Of({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${xb("#fff",fy(t.elevation))}, ${xb("#fff",fy(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),rE=U.forwardRef((function(e,t){const n=ly({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=If(n,tE),c=Of({},n,{component:o,elevation:i,square:a,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Sf({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},eE,o)})(c);return Vg.jsx(nE,Of({as:o,ownerState:c,className:my(u.root,r),ref:t},s))}));var oE=rE;function iE(e){return kf("MuiIconButton",e)}var aE=Rf("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const lE=["edge","children","className","color","disabled","disableFocusRipple","size"],sE=uy(aw,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Kp(n.color)}`],n.edge&&t[`edge${Kp(n.edge)}`],t[`size${Kp(n.size)}`]]}})((({theme:e,ownerState:t})=>Of({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})`:xb(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 Of({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Of({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":Of({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xb(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)},{[`&.${aE.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),cE=U.forwardRef((function(e,t){const n=ly({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:l=!1,disableFocusRipple:s=!1,size:c="medium"}=n,u=If(n,lE),d=Of({},n,{edge:r,color:a,disabled:l,disableFocusRipple:s,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return Sf({root:["root",n&&"disabled","default"!==r&&`color${Kp(r)}`,o&&`edge${Kp(o)}`,`size${Kp(i)}`]},iE,t)})(d);return Vg.jsx(sE,Of({className:my(p.root,i),centerRipple:!0,focusRipple:!s,disabled:l,ref:t,ownerState:d},u,{children:o}))}));var uE=cE;function dE(e){return kf("MuiTypography",e)}Rf("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const pE=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],fE=uy("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${Kp(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Of({margin:0},t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),hE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},mE={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},gE=U.forwardRef((function(e,t){const n=ly({props:e,name:"MuiTypography"}),r=(e=>mE[e]||e)(n.color),o=ob(Of({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=hE}=o,f=If(o,pE),h=Of({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=l||(u?"p":p[d]||hE[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Sf({root:["root",i,"inherit"!==e.align&&`align${Kp(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},dE,a)})(h);return Vg.jsx(fE,Of({as:m,ref:t,ownerState:h,className:my(g.root,a)},f))}));var vE=gE;const bE=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],yE=uy(rS,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xE=U.forwardRef((function(e,t){var n;const r=Yv(),o=ly({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:s,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v,slots:b,slotProps:y}=o,x=If(o,bE),S=null!=(n=null==b?void 0:b.root)?n:null==l?void 0:l.Root,w=Of({anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v},x);return Vg.jsx(yE,Of({as:a,direction:null==r?void 0:r.direction,slots:{root:S},slotProps:null!=y?y:s},w,{ref:t}))}));var SE=xE;function wE({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var EE=U.createContext(void 0);function CE(){return U.useContext(EE)}function kE(e){return Vg.jsx(nb,Of({},e,{defaultTheme:iy,themeId:Lf}))}function RE(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function LE(e){return kf("MuiInputBase",e)}var OE=Rf("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const IE=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],TE=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Kp(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},PE=(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=uy("div",{name:"MuiInputBase",slot:"Root",overridesResolver:TE})((({theme:e,ownerState:t})=>Of({},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",[`&.${OE.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Of({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),NE=uy("input",{name:"MuiInputBase",slot:"Input",overridesResolver:PE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Of({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Of({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] + .${OE.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${OE.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),ME=Vg.jsx(kE,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),qE=U.forwardRef((function(e,t){var n;const r=ly({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:w,onBlur:E,onChange:C,onClick:k,onFocus:R,onKeyDown:L,onKeyUp:O,placeholder:I,readOnly:T,renderSuffix:P,rows:_,slotProps:N={},slots:M={},startAdornment:q,type:z="text",value:A}=r,D=If(r,IE),j=null!=v.value?v.value:A,{current:F}=U.useRef(null!=j),B=U.useRef(),$=U.useCallback((e=>{}),[]),W=sf(B,b,v.ref,$),[H,V]=U.useState(!1),G=CE(),K=wE({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&&(RE(e.value)&&""!==e.value||t&&RE(e.defaultValue)&&""!==e.defaultValue)}(e)?X&&X():Z&&Z()}),[Z,X]);tf((()=>{F&&Q({value:j})}),[j,Q,F]);U.useEffect((()=>{Q(B.current)}),[]);let J=g,Y=v;S&&"input"===J&&(Y=Of(_?{type:void 0,minRows:_,maxRows:_}:{type:void 0,maxRows:y,minRows:x},Y),J=yS);U.useEffect((()=>{G&&G.setAdornedStart(Boolean(q))}),[G,q]);const ee=Of({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:S,size:K.size,startAdornment:q,type:z}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return Sf({root:["root",`color${Kp(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl","small"===p&&"sizeSmall",u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},LE,t)})(ee),ne=M.root||s.Root||_E,re=N.root||c.root||{},oe=M.input||s.Input||NE;return Y=Of({},Y,null!=(n=N.input)?n:c.input),Vg.jsxs(U.Fragment,{children:[!p&&ME,Vg.jsxs(ne,Of({},re,!vy(ne)&&{ownerState:Of({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),k&&!K.disabled&&k(e)}},D,{className:my(te.root,re.className,l,T&&"MuiInputBase-readOnly"),children:[q,Vg.jsx(EE.Provider,{value:null,children:Vg.jsx(oe,Of({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{Q("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:w,placeholder:I,readOnly:T,required:K.required,rows:_,value:j,onKeyDown:L,onKeyUp:O,type:z},Y,!vy(oe)&&{as:J,ownerState:Of({},ee,Y.ownerState)},{ref:W,className:my(te.input,Y.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!F){const t=e.target||B.current;if(null==t)throw new Error(Op(1));Q({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(R&&R(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):V(!0))}}))}),f,P?P(Of({},K,{startAdornment:q})):null]}))]})}));var zE=qE;function AE(e){return kf("MuiOutlinedInput",e)}var DE=Of({},OE,Rf("MuiOutlinedInput",["root","notchedOutline","input"]));const jE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],FE={entering:{opacity:1},entered:{opacity:1}},BE=U.forwardRef((function(e,t){const n=ay(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=NS}=e,b=If(e,jE),y=U.useRef(null),x=sf(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},w=S(d),E=S(((e,t)=>{Jw(e);const r=Yw({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=Yw({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 Vg.jsx(v,Of({appear:i,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(a,Of({style:Of({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},FE[e],m,a.props.style),ref:x},t))}))}));var $E=BE;function WE(e){return kf("MuiBackdrop",e)}Rf("MuiBackdrop",["root","invisible"]);const UE=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],HE=uy("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Of({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"}))),VE=U.forwardRef((function(e,t){var n,r,o;const i=ly({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=$E,transitionDuration:g}=i,v=If(i,UE),b=Of({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Sf({root:["root",n&&"invisible"]},WE,t)})(b),x=null!=(n=f.root)?n:u.root;return Vg.jsx(m,Of({in:p,timeout:g},v,{children:Vg.jsx(HE,Of({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:my(y.root,l,null==x?void 0:x.className),ownerState:Of({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var GE=VE;function KE(e){return kf("MuiBadge",e)}var ZE=Rf("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);const XE=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],QE=uy("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),JE=uy("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Kp(n.anchorOrigin.vertical)}${Kp(n.anchorOrigin.horizontal)}${Kp(n.overlap)}`],"default"!==n.color&&t[`color${Kp(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>Of({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},"dot"===t.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ZE.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ZE.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ZE.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ZE.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ZE.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ZE.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ZE.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ZE.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),YE=U.forwardRef((function(e,t){var n,r,o,i,a,l;const s=ly({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=If(s,XE),{badgeContent:k,invisible:R,max:L,displayValue:O}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=yf({badgeContent:t,max:r});let a=n;!1!==n||0!==t||o||(a=!0);const{badgeContent:l,max:s=r}=a?i:e;return{badgeContent:l,invisible:a,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:b,invisible:v,badgeContent:y,showZero:w}),I=yf({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:y}),T=R||null==k&&"dot"!==E,{color:P=g,overlap:_=m,anchorOrigin:N=c,variant:M=E}=T?I:s,q="dot"!==M?O:void 0,z=Of({},s,{badgeContent:k,invisible:T,max:L,displayValue:q,showZero:w,anchorOrigin:N,color:P,overlap:_,variant:M}),A=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e;return Sf({root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Kp(n.vertical)}${Kp(n.horizontal)}`,`anchorOrigin${Kp(n.vertical)}${Kp(n.horizontal)}${Kp(o)}`,`overlap${Kp(o)}`,"default"!==t&&`color${Kp(t)}`]},KE,a)})(z),D=null!=(n=null!=(r=null==x?void 0:x.root)?r:p.Root)?n:QE,j=null!=(o=null!=(i=null==x?void 0:x.badge)?i:p.Badge)?o:JE,F=null!=(a=null==S?void 0:S.root)?a:f.root,B=null!=(l=null==S?void 0:S.badge)?l:f.badge,$=Iy({elementType:D,externalSlotProps:F,externalForwardedProps:C,additionalProps:{ref:t,as:d},ownerState:z,className:my(null==F?void 0:F.className,A.root,u)}),W=Iy({elementType:j,externalSlotProps:B,ownerState:z,className:my(A.badge,null==B?void 0:B.className)});return Vg.jsxs(D,Of({},$,{children:[h,Vg.jsx(j,Of({},W,{children:q}))]}))}));var eC=YE;const tC=oy(),nC=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Xg("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Xv),a=U.forwardRef((function(e,a){const l=tb(n),s=ob(e),{className:c,component:u="div"}=s,d=Jg(s,lb);return Vg.jsx(i,Qg({as:u,ref:a,className:ab(c,o?o(r):r),theme:t&&l[t]||l},d))}));return a}({themeId:Lf,defaultTheme:tC,defaultClassName:"MuiBox-root",generateClassName:Ef.generate});var rC=nC;function oC(e){return kf("PrivateSwitchBase",e)}Rf("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const iC=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],aC=uy(aw)((({ownerState:e})=>Of({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),lC=uy("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),sC=U.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:i,defaultChecked:a,disabled:l,disableFocusRipple:s=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:v,readOnly:b,required:y=!1,tabIndex:x,type:S,value:w}=e,E=If(e,iC),[C,k]=af({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),R=CE();let L=l;R&&void 0===L&&(L=R.disabled);const O="checkbox"===S||"radio"===S,I=Of({},e,{checked:C,disabled:L,disableFocusRipple:s,edge:c}),T=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return Sf({root:["root",n&&"checked",r&&"disabled",o&&`edge${Kp(o)}`],input:["input"]},oC,t)})(I);return Vg.jsxs(aC,Of({component:"span",className:my(T.root,i),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:I,ref:t},E,{children:[Vg.jsx(lC,Of({autoFocus:n,checked:r,defaultChecked:a,className:T.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:I,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),C?o:u]}))}));var cC=sC,uC=Zw(Vg.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"),dC=Zw(Vg.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"),pC=Zw(Vg.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 fC(e){return kf("MuiCheckbox",e)}var hC=Rf("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]);const mC=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],gC=uy(cC,{shouldForwardProp:e=>sy(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${Kp(n.color)}`]]}})((({theme:e,ownerState:t})=>Of({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xb("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${hC.checked}, &.${hC.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${hC.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),vC=Vg.jsx(dC,{}),bC=Vg.jsx(uC,{}),yC=Vg.jsx(pC,{}),xC=U.forwardRef((function(e,t){var n,r;const o=ly({props:e,name:"MuiCheckbox"}),{checkedIcon:i=vC,color:a="primary",icon:l=bC,indeterminate:s=!1,indeterminateIcon:c=yC,inputProps:u,size:d="medium",className:p}=o,f=If(o,mC),h=s?c:l,m=s?c:i,g=Of({},o,{color:a,indeterminate:s,size:d}),v=(e=>{const{classes:t,indeterminate:n,color:r}=e;return Of({},t,Sf({root:["root",n&&"indeterminate",`color${Kp(r)}`]},fC,t))})(g);return Vg.jsx(gC,Of({type:"checkbox",inputProps:Of({"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:my(v.root,p)},f,{classes:v}))}));var SC=xC;function wC(e){return kf("MuiCircularProgress",e)}Rf("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const EC=["className","color","disableShrink","size","style","thickness","value","variant"];let CC,kC,RC,LC,OC=e=>e;const IC=44,TC=dm(CC||(CC=OC`
108
107
  0% {
109
108
  transform: rotate(0deg);
110
109
  }
@@ -112,7 +111,7 @@ var xt=d,St=vt;function wt(e){for(var t="https://reactjs.org/docs/error-decoder.
112
111
  100% {
113
112
  transform: rotate(360deg);
114
113
  }
115
- `)),qE=gm(IE||(IE=_E`
114
+ `)),PC=dm(kC||(kC=OC`
116
115
  0% {
117
116
  stroke-dasharray: 1px, 200px;
118
117
  stroke-dashoffset: 0;
@@ -127,9 +126,9 @@ var xt=d,St=vt;function wt(e){for(var t="https://reactjs.org/docs/error-decoder.
127
126
  stroke-dasharray: 100px, 200px;
128
127
  stroke-dashoffset: -125px;
129
128
  }
130
- `)),AE=wy("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Kp(n.color)}`]]}})((({ownerState:e,theme:t})=>Rf({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&&mm(PE||(PE=_E`
129
+ `)),_C=uy("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Kp(n.color)}`]]}})((({ownerState:e,theme:t})=>Of({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&&um(RC||(RC=OC`
131
130
  animation: ${0} 1.4s linear infinite;
132
- `),ME))),DE=wy("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),zE=wy("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Kp(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>Rf({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&&mm(TE||(TE=_E`
131
+ `),TC))),NC=uy("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),MC=uy("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Kp(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>Of({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&&um(LC||(LC=OC`
133
132
  animation: ${0} 1.4s ease-in-out infinite;
134
- `),qE))),jE=d.forwardRef((function(e,t){const n=by({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=Of(n,RE),p=Rf({},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 Sf({root:["root",n,`color${Kp(r)}`],svg:["svg"],circle:["circle",`circle${Kp(n)}`,o&&"circleDisableShrink"]},LE,t)})(p),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((NE-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 Km.jsx(AE,Rf({className:ky(f.root,r),style:Rf({width:i,height:i},m,l),ownerState:p,ref:t,role:"progressbar"},g,d,{children:Km.jsx(DE,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:Km.jsx(zE,{className:f.circle,style:h,ownerState:p,cx:NE,cy:NE,r:(NE-s)/2,fill:"none",strokeWidth:s})})}))}));var FE=jE;const $E=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],BE=wy("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})=>Rf({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),WE=wy(Yw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),HE=d.forwardRef((function(e,t){var n,r,o,a,i,l;const s=by({name:"MuiModal",props:e}),{BackdropComponent:c=WE,BackdropProps:u,classes:p,className:f,closeAfterTransition:h=!1,children:m,component:g,components:v={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:k=!1,keepMounted:L=!1,slotProps:R,slots:O,theme:I}=s,P=Of(s,$E),[T,_]=d.useState(!0),N={closeAfterTransition:h,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:k,keepMounted:L},M=Rf({},s,N,{exited:T}),q=null!=(n=null!=(r=null==O?void 0:O.root)?r:v.Root)?n:BE,A=null!=(o=null!=(a=null==O?void 0:O.backdrop)?a:v.Backdrop)?o:c,D=null!=(i=null==R?void 0:R.root)?i:y.root,z=null!=(l=null==R?void 0:R.backdrop)?l:y.backdrop;return Km.jsx(xx,Rf({slots:{root:q,backdrop:A},slotProps:{root:()=>Rf({},Iy(D,M),!Ry(q)&&{as:g,theme:I},{className:ky(f,null==D?void 0:D.className,null==p?void 0:p.root,!M.open&&M.exited&&(null==p?void 0:p.hidden))}),backdrop:()=>Rf({},u,Iy(z,M),{className:ky(null==z?void 0:z.className,null==p?void 0:p.backdrop)})},onTransitionEnter:()=>_(!1),onTransitionExited:()=>_(!0),ref:t},P,N,{children:m}))}));var UE=HE;function VE(e){return kf("MuiDivider",e)}var GE=Lf("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const KE=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],ZE=wy("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})=>Rf({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)`:Dv(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"})),(({theme:e,ownerState:t})=>Rf({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})),(({theme:e,ownerState:t})=>Rf({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,transform:"translateX(0%)"}})),(({ownerState:e})=>Rf({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),XE=wy("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Rf({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)`}))),QE=d.forwardRef((function(e,t){const n=by({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=Of(n,KE),h=Rf({},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 Sf({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"]},VE,r)})(h);return Km.jsx(ZE,Rf({as:i,className:ky(m.root,a),role:u,ref:t,ownerState:h},f,{children:o?Km.jsx(XE,{className:m.wrapper,ownerState:h,children:o}):null}))}));var YE=QE;function JE(e){return kf("MuiFormControlLabel",e)}var eC=Lf("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]);const tC=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","slotProps","value"],nC=wy("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${eC.label}`]:t.label},t.root,t[`labelPlacement${Kp(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>Rf({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${eC.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},{[`& .${eC.label}`]:{[`&.${eC.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),rC=d.forwardRef((function(e,t){var n;const r=by({props:e,name:"MuiFormControlLabel"}),{className:o,componentsProps:a={},control:i,disabled:l,disableTypography:s,label:c,labelPlacement:u="end",slotProps:p={}}=r,f=Of(r,tC),h=Iw();let m=l;void 0===m&&void 0!==i.props.disabled&&(m=i.props.disabled),void 0===m&&h&&(m=h.disabled);const g={disabled:m};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===i.props[e]&&void 0!==r[e]&&(g[e]=r[e])}));const v=Rw({props:r,muiFormControl:h,states:["error"]}),y=Rf({},r,{disabled:m,labelPlacement:u,error:v.error}),b=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o}=e;return Sf({root:["root",n&&"disabled",`labelPlacement${Kp(r)}`,o&&"error"],label:["label",n&&"disabled"]},JE,t)})(y),x=null!=(n=p.typography)?n:a.typography;let S=c;return null==S||S.type===ww||s||(S=Km.jsx(ww,Rf({component:"span"},x,{className:ky(b.label,null==x?void 0:x.className),children:S}))),Km.jsxs(nC,Rf({className:ky(b.root,o),ownerState:y,ref:t},f,{children:[d.cloneElement(i,g),S]}))}));var oC=rC;var aC=d.createContext();function iC(e){return kf("MuiGrid",e)}const lC=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],sC=Lf("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}`)),...lC.map((e=>`grid-xs-${e}`)),...lC.map((e=>`grid-sm-${e}`)),...lC.map((e=>`grid-md-${e}`)),...lC.map((e=>`grid-lg-${e}`)),...lC.map((e=>`grid-xl-${e}`))]),cC=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function uC(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function dC({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 pC=wy("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})=>Rf({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 pg({theme:e},fg({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${sC.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=fg({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=dC({breakpoints:e.breakpoints.values,values:t})),o=pg({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${uC(a)}`,[`& > .${sC.item}`]:{paddingTop:uC(a)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${sC.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=fg({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=dC({breakpoints:e.breakpoints.values,values:t})),o=pg({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${uC(a)})`,marginLeft:`-${uC(a)}`,[`& > .${sC.item}`]:{paddingLeft:uC(a)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${sC.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=fg({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} + ${uC(n)})`;c={flexBasis:e,maxWidth:e}}}a=Rf({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 fC=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 Sf({root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...u]},iC,t)},hC=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiGrid"}),{breakpoints:r}=yy(),o=av(n),{className:a,columns:i,columnSpacing:l,component:s="div",container:c=!1,direction:u="row",item:p=!1,rowSpacing:f,spacing:h=0,wrap:m="wrap",zeroMinWidth:g=!1}=o,v=Of(o,cC),y=f||h,b=l||h,x=d.useContext(aC),S=c?i||12:x,w={},E=Rf({},v);r.keys.forEach((e=>{null!=v[e]&&(w[e]=v[e],delete E[e])}));const C=Rf({},o,{columns:S,container:c,direction:u,item:p,rowSpacing:y,columnSpacing:b,wrap:m,zeroMinWidth:g,spacing:h},w,{breakpoints:r.keys}),k=fC(C);return Km.jsx(aC.Provider,{value:S,children:Km.jsx(pC,Rf({ownerState:C,className:ky(k.root,a),as:s,ref:t},E))})}));var mC=hC;const gC=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function vC(e){return`scale(${e}, ${e**2})`}const yC={entering:{opacity:1,transform:vC(1)},entered:{opacity:1,transform:"none"}},bC="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),xC=d.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:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=Fx}=e,v=Of(e,gC),y=d.useRef(),b=d.useRef(),x=yy(),S=d.useRef(null),w=sf(S,o.ref,t),E=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},C=E(c),k=E(((e,t)=>{rw(e);const{duration:n,delay:r,easing:o}=ow({style:h,timeout:m,easing:a},{mode:"enter"});let i;"auto"===m?(i=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=n,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:r}),x.transitions.create("transform",{duration:bC?i:.666*i,delay:r,easing:o})].join(","),l&&l(e,t)})),L=E(s),R=E(f),O=E((e=>{const{duration:t,delay:n,easing:r}=ow({style:h,timeout:m,easing:a},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:bC?o:.666*o,delay:bC?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=vC(.75),u&&u(e)})),I=E(p);return d.useEffect((()=>()=>{clearTimeout(y.current)}),[]),Km.jsx(g,Rf({appear:r,in:i,nodeRef:S,onEnter:k,onEntered:L,onEntering:C,onExit:O,onExited:I,onExiting:R,addEndListener:e=>{"auto"===m&&(y.current=setTimeout(e,b.current||0)),n&&n(S.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>d.cloneElement(o,Rf({style:Rf({opacity:0,transform:vC(.75),visibility:"exited"!==e||i?void 0:"hidden"},yC[e],h,o.props.style),ref:w},t))}))}));xC.muiSupportAuto=!0;var SC=xC;function wC(e){return kf("MuiIcon",e)}Lf("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const EC=["baseClassName","className","color","component","fontSize"],CC=wy("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Kp(n.color)}`],t[`fontSize${Kp(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]}))),kC=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:a="inherit",component:i="span",fontSize:l="medium"}=n,s=Of(n,EC),c=Rf({},n,{baseClassName:r,color:a,component:i,fontSize:l}),u=(e=>{const{color:t,fontSize:n,classes:r}=e;return Sf({root:["root","inherit"!==t&&`color${Kp(t)}`,`fontSize${Kp(n)}`]},wC,r)})(c);return Km.jsx(CC,Rf({as:i,className:ky(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t},s))}));kC.muiName="Icon";var LC=kC;function RC(e){return kf("MuiInputAdornment",e)}var OC,IC=Lf("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);const PC=["children","className","component","disablePointerEvents","disableTypography","position","variant"],TC=wy("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Kp(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>Rf({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${IC.positionStart}&:not(.${IC.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),_C=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:i=!1,disableTypography:l=!1,position:s,variant:c}=n,u=Of(n,PC),p=Iw()||{};let f=c;c&&p.variant,p&&!f&&(f=p.variant);const h=Rf({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:i,position:s,variant:f}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e;return Sf({root:["root",n&&"disablePointerEvents",o&&`position${Kp(o)}`,i,r&&"hiddenLabel",a&&`size${Kp(a)}`]},RC,t)})(h);return Km.jsx(Ow.Provider,{value:null,children:Km.jsx(TC,Rf({as:a,ownerState:h,className:ky(m.root,o),ref:t},u,{children:"string"!=typeof r||l?Km.jsxs(d.Fragment,{children:["start"===s?OC||(OC=Km.jsx("span",{className:"notranslate",children:"​"})):null,r]}):Km.jsx(ww,{color:"text.secondary",children:r})}))})}));var NC=_C;var MC=d.createContext({});function qC(e){return kf("MuiList",e)}Lf("MuiList",["root","padding","dense","subheader"]);const AC=["children","className","component","dense","disablePadding","subheader"],DC=wy("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})=>Rf({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),zC=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:s}=n,c=Of(n,AC),u=d.useMemo((()=>({dense:i})),[i]),p=Rf({},n,{component:a,dense:i,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Sf({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},qC,t)})(p);return Km.jsx(MC.Provider,{value:u,children:Km.jsxs(DC,Rf({as:a,className:ky(f.root,o),ref:t,ownerState:p},c,{children:[s,r]}))})}));var jC=zC;function FC(e){return kf("MuiListItem",e)}var $C=Lf("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var BC=Lf("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function WC(e){return kf("MuiListItemSecondaryAction",e)}Lf("MuiListItemSecondaryAction",["root","disableGutters"]);const HC=["className"],UC=wy("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>Rf({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),VC=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Of(n,HC),a=Rf({},n,{disableGutters:d.useContext(MC).disableGutters}),i=(e=>{const{disableGutters:t,classes:n}=e;return Sf({root:["root",t&&"disableGutters"]},WC,n)})(a);return Km.jsx(UC,Rf({className:ky(i.root,r),ownerState:a,ref:t},o))}));VC.muiName="ListItemSecondaryAction";var GC=VC;const KC=["className"],ZC=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],XC=wy("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})=>Rf({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Rf({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${BC.root}`]:{paddingRight:48}},{[`&.${$C.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$C.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dv(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${$C.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Dv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${$C.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"}},[`&.${$C.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dv(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})`:Dv(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),QC=wy("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),YC=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:a=!1,children:i,className:l,component:s,components:c={},componentsProps:u={},ContainerComponent:p="li",ContainerProps:{className:f}={},dense:h=!1,disabled:m=!1,disableGutters:g=!1,disablePadding:v=!1,divider:y=!1,focusVisibleClassName:b,secondaryAction:x,selected:S=!1,slotProps:w={},slots:E={}}=n,C=Of(n.ContainerProps,KC),k=Of(n,ZC),L=d.useContext(MC),R=d.useMemo((()=>({dense:h||L.dense||!1,alignItems:r,disableGutters:g})),[r,L.dense,h,g]),O=d.useRef(null);tf((()=>{o&&O.current&&O.current.focus()}),[o]);const I=d.Children.toArray(i),P=I.length&&Qp(I[I.length-1],["ListItemSecondaryAction"]),T=Rf({},n,{alignItems:r,autoFocus:o,button:a,dense:R.dense,disabled:m,disableGutters:g,disablePadding:v,divider:y,hasSecondaryAction:P,selected:S}),_=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:l,divider:s,hasSecondaryAction:c,selected:u}=e;return Sf({root:["root",o&&"dense",!i&&"gutters",!l&&"padding",s&&"divider",a&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},FC,r)})(T),N=sf(O,t),M=E.root||c.Root||XC,q=w.root||u.root||{},A=Rf({className:ky(_.root,q.className,l),disabled:m},k);let D=s||"li";return a&&(A.component=s||"div",A.focusVisibleClassName=ky($C.focusVisible,b),D=fS),P?(D=A.component||s?D:"div","li"===p&&("li"===D?D="div":"li"===A.component&&(A.component="div")),Km.jsx(MC.Provider,{value:R,children:Km.jsxs(QC,Rf({as:p,className:ky(_.container,f),ref:N,ownerState:T},C,{children:[Km.jsx(M,Rf({},q,!Ry(M)&&{as:D,ownerState:Rf({},T,q.ownerState)},A,{children:I})),I.pop()]}))})):Km.jsx(MC.Provider,{value:R,children:Km.jsxs(M,Rf({},q,{as:D,ref:N},!Ry(M)&&{ownerState:Rf({},T,q.ownerState)},A,{children:[I,x&&Km.jsx(GC,{children:x})]}))})}));var JC=YC;function ek(e){return kf("MuiListItemIcon",e)}var tk=Lf("MuiListItemIcon",["root","alignItemsFlexStart"]);const nk=["className"],rk=wy("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})=>Rf({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),ok=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Of(n,nk),a=Rf({},n,{alignItems:d.useContext(MC).alignItems}),i=(e=>{const{alignItems:t,classes:n}=e;return Sf({root:["root","flex-start"===t&&"alignItemsFlexStart"]},ek,n)})(a);return Km.jsx(rk,Rf({className:ky(i.root,r),ownerState:a,ref:t},o))}));var ak=ok;var ik=Lf("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const lk=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function sk(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ck(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function uk(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 dk(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")&&uk(l,a)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const pk=d.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,p=Of(e,lk),f=d.useRef(null),h=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});tf((()=>{r&&f.current.focus()}),[r]),d.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${yf(Yp(e))}px`;f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const m=sf(f,t);let g=-1;d.Children.forEach(a,((e,t)=>{d.isValidElement(e)&&(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1)))}));const v=d.Children.map(a,((e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),d.cloneElement(e,t)}return e}));return Km.jsx(jC,Rf({role:"menu",ref:m,className:i,onKeyDown:e=>{const t=f.current,n=e.key,r=Yp(t).activeElement;if("ArrowDown"===n)e.preventDefault(),dk(t,r,s,l,sk);else if("ArrowUp"===n)e.preventDefault(),dk(t,r,s,l,ck);else if("Home"===n)e.preventDefault(),dk(t,null,s,l,sk);else if("End"===n)e.preventDefault(),dk(t,null,s,l,ck);else if(1===n.length){const o=h.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&&uk(r,o);o.previousKeyMatched&&(s||dk(t,r,!1,l,sk,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},p,{children:v}))}));var fk=pk;function hk(e){return kf("MuiPopover",e)}Lf("MuiPopover",["root","paper"]);const mk=["onEntering"],gk=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function vk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function yk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function bk(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function xk(e){return"function"==typeof e?e():e}const Sk=wy(UE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wk=wy(cw,{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}),Ek=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:i,anchorReference:l="anchorEl",children:s,className:c,container:u,elevation:p=8,marginThreshold:f=16,open:h,PaperProps:m={},transformOrigin:g={vertical:"top",horizontal:"left"},TransitionComponent:v=SC,transitionDuration:y="auto",TransitionProps:{onEntering:b}={}}=n,x=Of(n.TransitionProps,mk),S=Of(n,gk),w=d.useRef(),E=sf(w,m.ref),C=Rf({},n,{anchorOrigin:a,anchorReference:l,elevation:p,marginThreshold:f,PaperProps:m,transformOrigin:g,TransitionComponent:v,transitionDuration:y,TransitionProps:x}),k=(e=>{const{classes:t}=e;return Sf({root:["root"],paper:["paper"]},hk,t)})(C),L=d.useCallback((()=>{if("anchorPosition"===l)return i;const e=xk(o),t=(e&&1===e.nodeType?e:Yp(w.current).body).getBoundingClientRect();return{top:t.top+vk(t,a.vertical),left:t.left+yk(t,a.horizontal)}}),[o,a.horizontal,a.vertical,i,l]),R=d.useCallback((e=>({vertical:vk(e,g.vertical),horizontal:yk(e,g.horizontal)})),[g.horizontal,g.vertical]),O=d.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=R(t);if("none"===l)return{top:null,left:null,transformOrigin:bk(n)};const r=L();let a=r.top-n.vertical,i=r.left-n.horizontal;const s=a+t.height,c=i+t.width,u=Jp(xk(o)),d=u.innerHeight-f,p=u.innerWidth-f;if(a<f){const e=a-f;a-=e,n.vertical+=e}else if(s>d){const e=s-d;a-=e,n.vertical+=e}if(i<f){const e=i-f;i-=e,n.horizontal+=e}else if(c>p){const e=c-p;i-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(i)}px`,transformOrigin:bk(n)}}),[o,l,L,R,f]),[I,P]=d.useState(h),T=d.useCallback((()=>{const e=w.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,P(!0)}),[O]);d.useEffect((()=>{h&&T()})),d.useImperativeHandle(r,(()=>h?{updatePosition:()=>{T()}}:null),[h,T]),d.useEffect((()=>{if(!h)return;const e=Xp((()=>{T()})),t=Jp(o);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[o,h,T]);let _=y;"auto"!==y||v.muiSupportAuto||(_=void 0);const N=u||(o?Yp(xk(o)).body:void 0);return Km.jsx(Sk,Rf({BackdropProps:{invisible:!0},className:ky(k.root,c),container:N,open:h,ref:t,ownerState:C},S,{children:Km.jsx(v,Rf({appear:!0,in:h,onEntering:(e,t)=>{b&&b(e,t),T()},onExited:()=>{P(!1)},timeout:_},x,{children:Km.jsx(wk,Rf({elevation:p},m,{ref:E,className:ky(k.paper,m.className)},I?void 0:{style:Rf({},m.style,{opacity:0})},{ownerState:C,children:s}))}))}))}));var Ck=Ek;function kk(e){return kf("MuiMenuItem",e)}var Lk=Lf("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Rk=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Ok=wy(fS,{shouldForwardProp:e=>xy(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})=>Rf({},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"}},[`&.${Lk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dv(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Lk.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Dv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Lk.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dv(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})`:Dv(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Lk.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Lk.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${GE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${GE.inset}`]:{marginLeft:52},[`& .${ik.root}`]:{marginTop:0,marginBottom:0},[`& .${ik.inset}`]:{paddingLeft:36},[`& .${tk.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Rf({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${tk.root} svg`]:{fontSize:"1.25rem"}})))),Ik=d.forwardRef((function(e,t){const n=by({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:p}=n,f=Of(n,Rk),h=d.useContext(MC),m=d.useMemo((()=>({dense:a||h.dense||!1,disableGutters:l})),[h.dense,a,l]),g=d.useRef(null);tf((()=>{r&&g.current&&g.current.focus()}),[r]);const v=Rf({},n,{dense:m.dense,divider:i,disableGutters:l}),y=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e;return Rf({},i,Sf({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},kk,i))})(n),b=sf(g,t);let x;return n.disabled||(x=void 0!==u?u:-1),Km.jsx(MC.Provider,{value:m,children:Km.jsx(Ok,Rf({ref:b,role:c,tabIndex:x,component:o,focusVisibleClassName:ky(y.focusVisible,s),className:ky(y.root,p)},f,{ownerState:v,classes:y}))})}));var Pk,Tk=Ik;const _k=["children","classes","className","label","notched"],Nk=wy("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Mk=wy("legend")((({ownerState:e,theme:t})=>Rf({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&&Rf({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 qk=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Ak=wy(Dw,{shouldForwardProp:e=>xy(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:qw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Rf({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ww.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ww.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ww.focused} .${Ww.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ww.error} .${Ww.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ww.disabled} .${Ww.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Rf({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Dk=wy((function(e){const{className:t,label:n,notched:r}=e,o=Of(e,_k),a=null!=n&&""!==n,i=Rf({},e,{notched:r,withLabel:a});return Km.jsx(Nk,Rf({"aria-hidden":!0,className:t,ownerState:i},o,{children:Km.jsx(Mk,{ownerState:i,children:a?Km.jsx("span",{children:n}):Pk||(Pk=Km.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}})),zk=wy(zw,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Aw})((({theme:e,ownerState:t})=>Rf({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}))),jk=d.forwardRef((function(e,t){var n,r,o,a,i;const l=by({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:c=!1,inputComponent:u="input",label:p,multiline:f=!1,notched:h,slots:m={},type:g="text"}=l,v=Of(l,qk),y=(e=>{const{classes:t}=e;return Rf({},t,Sf({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Bw,t))})(l),b=Iw(),x=Rw({props:l,muiFormControl:b,states:["required"]}),S=Rf({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:c,hiddenLabel:x.hiddenLabel,multiline:f,size:x.size,type:g}),w=null!=(n=null!=(r=m.root)?r:s.Root)?n:Ak,E=null!=(o=null!=(a=m.input)?a:s.Input)?o:zk;return Km.jsx($w,Rf({slots:{root:w,input:E},renderSuffix:e=>Km.jsx(Dk,{ownerState:S,className:y.notchedOutline,label:null!=p&&""!==p&&x.required?i||(i=Km.jsxs(d.Fragment,{children:[p," ","*"]})):p,notched:void 0!==h?h:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:u,multiline:f,ref:t,type:g},v,{classes:Rf({},y,{notchedOutline:null})}))}));jk.muiName="Input";var Fk=jk,$k=ew(Km.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),Bk=ew(Km.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 Wk=wy("span")({position:"relative",display:"flex"}),Hk=wy($k)({transform:"scale(1)"}),Uk=wy(Bk)((({theme:e,ownerState:t})=>Rf({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 Vk(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=Rf({},e,{checked:t});return Km.jsxs(Wk,{className:n.root,ownerState:o,children:[Km.jsx(Hk,{fontSize:r,className:n.background,ownerState:o}),Km.jsx(Uk,{fontSize:r,className:n.dot,ownerState:o})]})}var Gk=d.createContext(void 0);function Kk(e){return kf("MuiRadio",e)}var Zk=Lf("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]);const Xk=["checked","checkedIcon","color","icon","name","onChange","size","className"],Qk=wy(fE,{shouldForwardProp:e=>xy(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Kp(n.color)}`]]}})((({theme:e,ownerState:t})=>Rf({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})`:Dv("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Zk.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${Zk.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const Yk=Km.jsx(Vk,{checked:!0}),Jk=Km.jsx(Vk,{}),eL=d.forwardRef((function(e,t){var n,r;const o=by({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:i=Yk,color:l="primary",icon:s=Jk,name:c,onChange:u,size:p="medium",className:f}=o,h=Of(o,Xk),m=Rf({},o,{color:l,size:p}),g=(e=>{const{classes:t,color:n}=e;return Rf({},t,Sf({root:["root",`color${Kp(n)}`]},Kk,t))})(m),v=d.useContext(Gk);let y=a;const b=Zp(u,v&&v.onChange);let x=c;return v&&(void 0===y&&(y=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(v.value,o.value)),void 0===x&&(x=v.name)),Km.jsx(Qk,Rf({type:"radio",icon:d.cloneElement(s,{fontSize:null!=(n=Jk.props.fontSize)?n:p}),checkedIcon:d.cloneElement(i,{fontSize:null!=(r=Yk.props.fontSize)?r:p}),ownerState:m,classes:g,name:x,checked:y,onChange:b,ref:t,className:ky(g.root,f)},h))}));var tL=eL;function nL(e){return kf("MuiTooltip",e)}var rL=Lf("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const oL=["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 aL=wy(Lw,{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})=>Rf({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${rL.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${rL.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${rL.arrow}`]:Rf({},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"] .${rL.arrow}`]:Rf({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),iL=wy("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${Kp(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return Rf({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Dv(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},{[`.${rL.popper}[data-popper-placement*="left"] &`]:Rf({transformOrigin:"right center"},t.isRtl?Rf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Rf({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${rL.popper}[data-popper-placement*="right"] &`]:Rf({transformOrigin:"left center"},t.isRtl?Rf({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Rf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${rL.popper}[data-popper-placement*="top"] &`]:Rf({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${rL.popper}[data-popper-placement*="bottom"] &`]:Rf({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),lL=wy("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:Dv(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let sL=!1,cL=null,uL={x:0,y:0};function dL(e,t){return n=>{t&&t(n),e(n)}}const pL=d.forwardRef((function(e,t){var n,r,o,a,i,l,s,c,u,p,f,h,m,g,v,y,b,x,S;const w=by({props:e,name:"MuiTooltip"}),{arrow:E=!1,children:C,components:k={},componentsProps:L={},describeChild:R=!1,disableFocusListener:O=!1,disableHoverListener:I=!1,disableInteractive:P=!1,disableTouchListener:T=!1,enterDelay:_=100,enterNextDelay:N=0,enterTouchDelay:M=700,followCursor:q=!1,id:A,leaveDelay:D=0,leaveTouchDelay:z=1500,onClose:j,onOpen:F,open:$,placement:B="bottom",PopperComponent:W,PopperProps:H={},slotProps:U={},slots:V={},title:G,TransitionComponent:K=SC,TransitionProps:Z}=w,X=Of(w,oL),Q=yy(),Y="rtl"===Q.direction,[J,ee]=d.useState(),[te,ne]=d.useState(null),re=d.useRef(!1),oe=P||q,ae=d.useRef(),ie=d.useRef(),le=d.useRef(),se=d.useRef(),[ce,ue]=af({controlled:$,default:!1,name:"Tooltip",state:"open"});let de=ce;const pe=of(A),fe=d.useRef(),he=d.useCallback((()=>{void 0!==fe.current&&(document.body.style.WebkitUserSelect=fe.current,fe.current=void 0),clearTimeout(se.current)}),[]);d.useEffect((()=>()=>{clearTimeout(ae.current),clearTimeout(ie.current),clearTimeout(le.current),he()}),[he]);const me=e=>{clearTimeout(cL),sL=!0,ue(!0),F&&!de&&F(e)},ge=lf((e=>{clearTimeout(cL),cL=setTimeout((()=>{sL=!1}),800+D),ue(!1),j&&de&&j(e),clearTimeout(ae.current),ae.current=setTimeout((()=>{re.current=!1}),Q.transitions.duration.shortest)})),ve=e=>{re.current&&"touchstart"!==e.type||(J&&J.removeAttribute("title"),clearTimeout(ie.current),clearTimeout(le.current),_||sL&&N?ie.current=setTimeout((()=>{me(e)}),sL?N:_):me(e))},ye=e=>{clearTimeout(ie.current),clearTimeout(le.current),le.current=setTimeout((()=>{ge(e)}),D)},{isFocusVisibleRef:be,onBlur:xe,onFocus:Se,ref:we}=vf(),[,Ee]=d.useState(!1),Ce=e=>{xe(e),!1===be.current&&(Ee(!1),ye(e))},ke=e=>{J||ee(e.currentTarget),Se(e),!0===be.current&&(Ee(!0),ve(e))},Le=e=>{re.current=!0;const t=C.props;t.onTouchStart&&t.onTouchStart(e)},Re=ve,Oe=ye,Ie=e=>{Le(e),clearTimeout(le.current),clearTimeout(ae.current),he(),fe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",se.current=setTimeout((()=>{document.body.style.WebkitUserSelect=fe.current,ve(e)}),M)},Pe=e=>{C.props.onTouchEnd&&C.props.onTouchEnd(e),he(),clearTimeout(le.current),le.current=setTimeout((()=>{ge(e)}),z)};d.useEffect((()=>{if(de)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ge(e)}}),[ge,de]);const Te=sf(C.ref,we,ee,t);G||0===G||(de=!1);const _e=d.useRef(),Ne={},Me="string"==typeof G;R?(Ne.title=de||!Me||I?null:G,Ne["aria-describedby"]=de?pe:null):(Ne["aria-label"]=Me?G:null,Ne["aria-labelledby"]=de&&!Me?pe:null);const qe=Rf({},Ne,X,C.props,{className:ky(X.className,C.props.className),onTouchStart:Le,ref:Te},q?{onMouseMove:e=>{const t=C.props;t.onMouseMove&&t.onMouseMove(e),uL={x:e.clientX,y:e.clientY},_e.current&&_e.current.update()}}:{}),Ae={};T||(qe.onTouchStart=Ie,qe.onTouchEnd=Pe),I||(qe.onMouseOver=dL(Re,qe.onMouseOver),qe.onMouseLeave=dL(Oe,qe.onMouseLeave),oe||(Ae.onMouseOver=Re,Ae.onMouseLeave=Oe)),O||(qe.onFocus=dL(ke,qe.onFocus),qe.onBlur=dL(Ce,qe.onBlur),oe||(Ae.onFocus=ke,Ae.onBlur=Ce));const De=d.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(te),options:{element:te,padding:4}}];return null!=(e=H.popperOptions)&&e.modifiers&&(t=t.concat(H.popperOptions.modifiers)),Rf({},H.popperOptions,{modifiers:t})}),[te,H]),ze=Rf({},w,{isRtl:Y,arrow:E,disableInteractive:oe,placement:B,PopperComponentProp:W,touch:re.current}),je=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e;return Sf({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Kp(a.split("-")[0])}`],arrow:["arrow"]},nL,t)})(ze),Fe=null!=(n=null!=(r=V.popper)?r:k.Popper)?n:aL,$e=null!=(o=null!=(a=null!=(i=V.transition)?i:k.Transition)?a:K)?o:SC,Be=null!=(l=null!=(s=V.tooltip)?s:k.Tooltip)?l:iL,We=null!=(c=null!=(u=V.arrow)?u:k.Arrow)?c:lL,He=Oy(Fe,Rf({},H,null!=(p=U.popper)?p:L.popper,{className:ky(je.popper,null==H?void 0:H.className,null==(f=null!=(h=U.popper)?h:L.popper)?void 0:f.className)}),ze),Ue=Oy($e,Rf({},Z,null!=(m=U.transition)?m:L.transition),ze),Ve=Oy(Be,Rf({},null!=(g=U.tooltip)?g:L.tooltip,{className:ky(je.tooltip,null==(v=null!=(y=U.tooltip)?y:L.tooltip)?void 0:v.className)}),ze),Ge=Oy(We,Rf({},null!=(b=U.arrow)?b:L.arrow,{className:ky(je.arrow,null==(x=null!=(S=U.arrow)?S:L.arrow)?void 0:x.className)}),ze);return Km.jsxs(d.Fragment,{children:[d.cloneElement(C,qe),Km.jsx(Fe,Rf({as:null!=W?W:Lw,placement:B,anchorEl:q?{getBoundingClientRect:()=>({top:uL.y,left:uL.x,right:uL.x,bottom:uL.y,width:0,height:0})}:J,popperRef:_e,open:!!J&&de,id:pe,transition:!0},Ae,He,{popperOptions:De,children:({TransitionProps:e})=>Km.jsx($e,Rf({timeout:Q.transitions.duration.shorter},e,Ue,{children:Km.jsxs(Be,Rf({},Ve,{children:[G,E?Km.jsx(We,Rf({},Ge,{ref:ne})):null]}))}))}))]})}));var fL=pL;const[hL,mL]=DS({}),[gL,vL]=DS({}),[yL,bL]=DS({}),[xL,SL]=DS({}),[wL,EL]=DS({}),[,CL]=DS({}),kL=e=>{let{type:t,value:n}=e;const r=CL.get(n.id);CL.set(n.id,{});const o=()=>{vL.clear(n.id),EL.set(n.id,{}),EL.dispatch(!0)},a=()=>{n.removeListener("changed",o),mL.clear(n.id),vL.clear(n.id),bL.clear(n.id),SL.clear(n.id),EL.clear(n.id),CL.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{a()})));return a},[LL,RL]=DS({},kL);function OL(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=LL(),[o]=yL(),[a,i]=d.useState();let l;n&&(l=o.get(n));for(var s=arguments.length,c=new Array(s>2?s-2:0),u=2;u<s;u++)c[u-2]=arguments[u];return d.useEffect((()=>{if(!t)return;(async()=>{if(!l){const r=t.createSessionObject(e);l=r,o.set(n,l)}const a=await l;r.set(n,a),i(a)})()}),[t,...c]),[a]}const IL={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function PL(e){return OL(IL,e)}const TL=(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 _L(e,t){const n=e?"".concat(e.id):null,[r]=hL(),[o,a]=d.useReducer(TL,n?r.get(n):null),[i]=wL(),[l]=gL();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{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 d.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 NL(e){return _L(e,"getLayout")}function ML(e){return _L(e,"getAppLayout")}function qL(){const[e,t]=d.useState(),[n,r]=d.useState(),o=d.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 d.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 AL(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function DL(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:o=[]}=e;const a=l({fontSize:AL(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n);return G.createElement("i",{style:a},G.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 G.createElement(n,c({key:t},r))}))))}var zL=e=>DL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"}}]}))(e));var jL=e=>DL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));var FL=e=>DL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]}))(e));var $L=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},BL=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),WL=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},HL=function(e){function t(){var e,n,r;$L(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=WL(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},WL(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),BL(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,r=n.isItemLoaded,o=n.itemCount,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}(d.PureComponent);const UL=["S","XS"],VL=e=>e.reduce(((e,t)=>e.concat(t)));function GL(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 VL(t)}async function KL(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 ZL="RowColumn",XL={row:"".concat(ZL,"-row"),rowBorderBottom:"".concat(ZL,"-rowBorderBottom"),column:"".concat(ZL,"-column"),fieldRoot:"".concat(ZL,"-fieldRoot"),cell:"".concat(ZL,"-cell"),labelText:"".concat(ZL,"-labelText"),labelDense:"".concat(ZL,"-labelDense"),highlighted:"".concat(ZL,"-highlighted"),checkboxLabel:"".concat(ZL,"-checkboxLabel"),icon:"".concat(ZL,"-icon"),S:"".concat(ZL,"-S"),XS:"".concat(ZL,"-XS"),A:"".concat(ZL,"-A"),X:"".concat(ZL,"-X"),frequencyCount:"".concat(ZL,"-frequencyCount"),barContainer:"".concat(ZL,"-barContainer"),bar:"".concat(ZL,"-bar"),barSelected:"".concat(ZL,"-barSelected"),barWithCheckbox:"".concat(ZL,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(ZL,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(ZL,"-excludedTextWithCheckbox")},QL=".".concat(XL.fieldRoot),YL=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function JL(e){var t,n;let{selectionState:r,selections:o,checkboxes:a=!1,doc:i=document,loaderRef:l}=e;const s=d.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});d.useEffect((()=>{var e,t;if(null===(e=l.current)||void 0===e||null===(t=e._listRef)||void 0===t||!t._outerRef)return;const n=e=>e.preventDefault(),r=e=>e.preventDefault(),o=e=>e.preventDefault(),a=l.current._listRef._outerRef;return a.addEventListener("gesturestart",n),a.addEventListener("gesturechange",r),a.addEventListener("gestureend",o),()=>{a.removeEventListener("gesturestart",n),a.removeEventListener("gesturechange",r),a.removeEventListener("gestureend",o)}}),[null===(t=l.current)||void 0===t||null===(n=t._listRef)||void 0===n?void 0:n._outerRef]);const c=()=>(r.setSelectableValuesUpdating(),KL({selections:o,elemNumbers:s.current.elemNumbers,isSingleSelect:r.isSingleSelect,toggle:s.current.toggle})),u=(e,t)=>{const n=function(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}));return t}));return VL(t)}(r.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r})),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([e,t],n)},p=e=>{const{startElemNumber:t}=s.current;if(t===e)return;const n=u(s.current.startElemNumber,e);r.updateItems(n,!0,s.current.elemNumbers)},f=d.useCallback((e=>{if(r.selectDisabled())return;const t=+e.target.getAttribute("data-n"),n=!r.isSingleSelect&&YL(e.nativeEvent);s.current.elemNumbers=[t],s.current.toggle=n,n||r.clearItemStates(!0),r.updateItem(t),s.current.active=!1,c()}),[]),h=d.useCallback((e=>{if(0!==e.button||r.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),n=!r.isSingleSelect&&YL(e);s.current.isRange=!1,s.current.startElemNumber=t,s.current.elemNumbers=[t],s.current.toggle=n,s.current.active=!0,n||r.clearItemStates(!0),r.updateItem(t),r.isSingleSelect&&(s.current.active=!1,c()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),m=d.useCallback((e=>{if(0===e.button&&s.current.active){if(s.current.active=!1,s.current.isRange){const t=+e.currentTarget.getAttribute("data-n");p(t)}c()}}),[]),g=d.useCallback((e=>{0===e.button&&s.current.active&&(s.current.active=!1,c())}),[]),v=d.useCallback((e=>{if(!s.current.active)return;s.current.isRange||(s.current.isRange=!0,r.isSelected(s.current.startElemNumber)||(r.updateItem(s.current.startElemNumber,!0),s.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");p(t)}),[]),y=d.useCallback((e=>{var t,n,o,a;if(s.current.active||s.current.isRange||r.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void c();const i=Number(null===(t=e.touches[0].target)||void 0===t||null===(n=t.closest(QL))||void 0===n?void 0:n.getAttribute("data-n")),l=Number(null===(o=e.touches[1].target)||void 0===o||null===(a=o.closest(QL))||void 0===a?void 0:a.getAttribute("data-n"));if(Number.isNaN(i)||Number.isNaN(i))return void c();s.current.active=!0;u(i,l).length<7&&(s.current.touchRangeSmall=!0),s.current.elemNumbers=[],s.current.touchElemNumbers=[i,l]}),[]),b=d.useCallback((()=>{if(2!==s.current.touchElemNumbers.length)return;if(s.current.touchRangeSmall)return s.current.touchRangeSmall=!1,s.current.touchElemNumbers=[],void(s.current.active=!1);const[e,t]=s.current.touchElemNumbers;s.current.startElemNumber=e,p(t),s.current.touchElemNumbers=[],s.current.active=!1,s.current.toggle=!0,c()}),[]);d.useEffect((()=>(i.addEventListener("mouseup",g),()=>{i.removeEventListener("mouseup",g)})),[g]),d.useEffect((()=>{const e=()=>{r.clearItemStates(!1)},t=()=>{r.clearItemStates(!0),r.triggerStateChanged()};return o.on("clearItemStates",e),o.on("deactivated",e),o.on("cleared",t),()=>{o.removeListener("clearItemStates",e),o.removeListener("deactivated",e),o.removeListener("cleared",t)}}),[o]);const x={};return a?Object.assign(x,{onChange:f}):Object.assign(x,{onMouseUp:m,onMouseDown:h,onMouseEnter:v,onTouchStart:y,onTouchEnd:b}),{interactionEvents:x,select:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const a=!r.isSingleSelect&&YL(null==n?void 0:n.nativeEvent);a||r.clearItemStates(!0);const i=[];return r.updateItems(e,t,i),r.setSelectableValuesUpdating(),KL({selections:o,elemNumbers:t?i:e,isSingleSelect:r.isSingleSelect,toggle:a})}}}const eR=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 tR=e=>DL(eR(e));const nR=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===nR.ARROW_UP||e===nR.ARROW_DOWN||e===nR.ARROW_LEFT||e===nR.ARROW_RIGHT});function rR(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function oR(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))}const aR=e=>+e.getAttribute("data-n"),iR=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},lR=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};function sR(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 nR.TAB:if(s)r?lR(l)||iR(l):iR(l)||lR(l);else{if(!r)break;t.blur(!0)}a();break;case nR.ENTER:case nR.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),a();break;case nR.ESCAPE:(e=>{const{currentTarget:n,target:r}=e,a=r.classList.contains("listbox-container"),i=oR(n.closest(".listbox-container")),l=1===(null==i?void 0:i.querySelectorAll(".listbox-container").length);if(a||l)t.blur(!0);else{rR(o.current),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",0),null==e||e.focus()}})(e)}},handleOnMouseEnter:()=>{(()=>{const e=(null==l?void 0:l.select)||(null==l?void 0:l.active),t=i();return e||t})()||(n.current=!0)},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current)return;const{keyCode:t,ctrlKey:o=!1,shiftKey:i=!1}=e;switch(t){case nR.ARROW_UP:r({up:1});break;case nR.ARROW_DOWN:r({down:1});break;case nR.PAGE_UP:r({up:a.stop-a.start});break;case nR.PAGE_DOWN:r({down:a.stop-a.start});break;case nR.HOME:r({scrollPosition:o&&i?"overflowStart":"start"});break;case nR.END:r({scrollPosition:o&&i?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const cR=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,uR=e=>e?"A"===e.qState:null,dR=e=>{let{cell:t,checkboxes:n}=e;return(uR(t)||cR(t))&&n},pR=e=>e.filter((e=>!!e)).join(" ").trim(),fR=e=>e||"-",hR=e=>{let{theme:t}=e;return{background:t.palette.selected.main,color:t.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0}}},mR={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gR=wy("div",{shouldForwardProp:e=>!["flexBasisProp","isGridMode","isGridCol","dense","frequencyWidth"].includes(e)})((e=>{var t,n,r,o,a,i,s,c,u,d;let{theme:p,flexBasisProp:f,isGridMode:h,isGridCol:m,dense:g,frequencyWidth:v}=e;return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(p.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(p.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(XL.row)]:{flexWrap:"nowrap",color:null!==(t=null===(n=p.listBox)||void 0===n||null===(r=n.content)||void 0===r?void 0:r.color)&&void 0!==t?t:p.palette.text.primary},["& .".concat(XL.rowBorderBottom)]:{borderBottom:m?"none":"1px solid ".concat(p.palette.divider),borderLeft:m?"1px solid ".concat(p.palette.divider):"none"},["& .".concat(XL.column)]:{flexWrap:"nowrap",borderRight:"1px solid ".concat(p.palette.divider),color:null!==(o=null===(a=p.listBox)||void 0===a||null===(i=a.content)||void 0===i?void 0:i.color)&&void 0!==o?o:p.palette.text.primary},["& .".concat(XL.cell)]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"".concat(9,"px"),paddingRight:0},["& .".concat(XL.labelText)]:l(l({flexBasis:f,lineHeight:"16px",userSelect:"none",paddingRight:"1px"},mR),{},{whiteSpace:"pre",fontSize:null===(s=p.listBox)||void 0===s||null===(c=s.content)||void 0===c?void 0:c.fontSize,fontFamily:null===(u=p.listBox)||void 0===u||null===(d=u.content)||void 0===d?void 0:d.fontFamily}),["& .".concat(XL.labelDense)]:{fontSize:12},["& .".concat(XL.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(XL.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":l(l({},mR),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(XL.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24},["& .".concat(XL.S)]:l(l({},hR({theme:p})),{},{border:h?"none":void 0}),["& .".concat(XL.XS)]:l(l({},hR({theme:p})),{},{background:p.palette.selected.excluded,color:p.palette.selected.excludedContrastText,border:h?"none":void 0}),["& .".concat(XL.A)]:{background:p.palette.selected.alternative,color:p.palette.selected.alternativeContrastText,border:h?"none":void 0},["& .".concat(XL.X)]:{background:p.palette.selected.excluded,color:p.palette.selected.excludedContrastText,border:h?"none":void 0},["& .".concat(XL.frequencyCount)]:l(l({justifyContent:"flex-end"},mR),{},{flex:"0 1 ".concat(v,"px"),textAlign:"right",paddingLeft:"2px"}),["&.".concat(XL.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(XL.bar)]:{height:g?"16px":"20px",position:"absolute",zIndex:"-1",alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",transition:"width 0.2s",backgroundColor:"#FAFAFA",height:"100%"}},["& .".concat(XL.barSelected)]:{zIndex:"0","& .bar-filled":{opacity:"30%",background:p.palette.background.lighter}},["& .".concat(XL.barWithCheckbox)]:{left:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(XL.barSelectedWithCheckbox)]:{"& .bar-filled":{background:"#BFE5D0",borderColor:"#BFE5D0"}},["& .".concat(XL.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));var vR=G.memo(gR);const yR="ListBoxCheckbox",bR={cbIcon:"".concat(yR,"-cbIcon"),cbIconChecked:"".concat(yR,"-cbIconChecked"),cbIconExcluded:"".concat(yR,"-cbIconExcluded"),cbIconAlternative:"".concat(yR,"-cbIconAlternative"),checkbox:"".concat(yR,"-checkbox"),dense:"".concat(yR,"-dense")},xR=wy(kE)((e=>{let{theme:t}=e;return{["& .".concat(bR.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(bR.cbIconChecked)]:{borderRadius:3,backgroundColor:t.palette.selected.main,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(bR.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.excluded},["& .".concat(bR.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.alternative},["&.".concat(bR.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(bR.dense)]:{padding:"4px 8px"}}})),SR=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return G.createElement("span",{className:e.cbIcon},n&&G.createElement("span",{className:t&&n?e.cbIconExcluded:""}))};function wR(e){let{onChange:t,checked:n,label:r,dense:o,excluded:a,showGray:i=!0,dataN:l}=e;return G.createElement(xR,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[bR.checkbox,o&&bR.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":l},name:r,icon:SR(bR,i,a),checkedIcon:G.createElement("span",{className:bR.cbIconChecked})})}const ER="ListBoxRadioButton",CR={denseRadioButton:"".concat(ER,"-denseRadioButton"),radioButton:"".concat(ER,"-radioButton")},kR=wy(tL)((e=>{let{theme:t,checked:n}=e;return{["&.".concat(CR.radioButton)]:{right:"5px",color:n?t.palette.selected.main:t.palette.main}}}));function LR(e){let{onChange:t,checked:n,label:r,dense:o,dataN:a}=e;return G.createElement(kR,{checked:n,onChange:t,value:r,name:r,className:CR.radioButton,inputProps:{"data-n":a},style:{backgroundColor:"transparent"},disableRipple:!0,size:o?"small":"medium",sx:o&&{padding:"0px 0px 0px 12px"}})}function RR(e){let{label:t,color:n,dense:r,showGray:o=!0,checkboxes:a,cell:i,valueTextAlign:l}=e;return G.createElement(ww,{component:"span",variant:"body2",className:pR([XL.labelText,r&&XL.labelDense,o&&dR({cell:i,checkboxes:a})&&XL.excludedTextWithCheckbox]),color:n,align:l,dir:"auto"},G.createElement("span",{style:{whiteSpace:"pre"}},t))}function OR(e){let{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}=e;return"string"==typeof t?G.createElement(RR,{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}):t}function IR(e){let{onChange:t,label:n,color:r,qElemNumber:o,isSelected:a,dense:i,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}=e;const f=G.createElement(wR,{onChange:t,label:n,checked:a,dense:i,excluded:cR(l),isGridCol:s,showGray:c,dataN:o}),h=G.createElement(LR,{onChange:t,label:n,checked:a,dense:i,dataN:o});return G.createElement(oC,{color:r,control:u?h:f,className:XL.checkboxLabel,label:G.createElement(OR,{label:n,color:r,dense:i,showGray:c,checkboxes:d,cell:l,valueTextAlign:p}),key:o})}function PR(e){let{labels:t,dense:n,showGray:r,checkboxes:o}=e;const a=t.map(((e,t)=>{let[n,r]=e;return G.createElement("span",{id:t,className:r?XL.highlighted:""},n)}));return G.createElement(RR,{label:a,dense:n,showGray:r,checkboxes:o})}function TR(e){let{onChange:t,labels:n,checkboxes:r,dense:o,showGray:a,color:i,qElemNumber:l,isSelected:s,cell:c,isGridCol:u,isSingleSelect:d,valueTextAlign:p}=e;const f=G.createElement(PR,{labels:n,dense:o,showGray:a,checkboxes:r});return r?G.createElement(IR,{onChange:t,label:f,color:i,qElemNumber:l,isSelected:s,dense:o,cell:c,isGridCol:u,showGray:a,isSingleSelect:d,checkboxes:r,valueTextAlign:p}):f}var _R=G.memo((function(e){let{onChange:t,label:n,color:r,qElemNumber:o,isSelected:a,dense:i,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}=e;return d?G.createElement(IR,{onChange:t,label:n,color:r,qElemNumber:o,isSelected:a,dense:i,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}):G.createElement(RR,{label:n,color:r,dense:i,showGray:!0,checkboxes:d,cell:l,valueTextAlign:p})}));function NR(e){let{qFrequency:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:a}=e;if(!(t&&n&&"-"!==fR(t)))return;const i=(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,"%")})({qFrequency:t,checkboxes:r,frequencyMax:a});return G.createElement(lE,{className:pR([XL.bar,r&&XL.barWithCheckbox,o&&(r?XL.barSelectedWithCheckbox:XL.barSelected)])},G.createElement(lE,{className:"bar-filled",width:i}))}function MR(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;const a=fR(null==t?void 0:t.qFrequency);return G.createElement(mC,{item:!0,style:{display:"flex",alignItems:"center"},className:XL.frequencyCount,"aria-label":a},G.createElement(ww,{noWrap:!0,color:"inherit",variant:"body2",className:pR([r&&XL.labelDense,XL.labelText,o&&dR({cell:t,checkboxes:n})&&XL.excludedTextWithCheckbox])},a))}function qR(e){let{dataLayout:t,layoutOrder:n,itemPadding:r}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const AR=wy(mC,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o}=e;return{["&.".concat(XL.fieldRoot)]:l(l({},qR({dataLayout:t,layoutOrder:n,itemPadding:r})),{},{paddingRight:o?"8px":void 0})}}));const DR={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 zR(e){var t;let{layout:n}=e;const{translator:r}=d.useContext(AS),{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"}const l=r.get(i,[a]);return G.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},l)}function jR(e){var t,n,r;let{index:o,rowIndex:a,columnIndex:i,style:s,data:c}=e;const{onChange:u,onClick:p,onMouseDown:f,onMouseUp:h,onMouseEnter:m,onTouchStart:g,onTouchEnd:v,pages:y,isLocked:b,column:x=!1,checkboxes:S=!1,textAlign:w,direction:E,layoutOptions:C={},freqIsAllowed:k,isSingleSelect:L,actions:R,frequencyMax:O="",histogram:I=!1,keyboard:P,showGray:T=!0,showTick:_=!0,columnCount:N=1,rowCount:M=1,dataOffset:q,focusListItems:A,listCount:D,itemPadding:z,frequencyWidth:j,translator:F,showSearch:$,isModal:B}=c,{dense:W=!1,dataLayout:H="singleColumn",layoutOrder:U}=C;let V,K;const Z={max:null,currentIndex:null};if("number"==typeof a&&"number"==typeof i){"row"===U?(V=a*N+i,Z.max=M,Z.currentIndex=a):(V=i*M+a,Z.max=N,Z.currentIndex=i);const e=0;K=l(l({},s),{},{left:e+(0===i?s.left:Number(s.left)+i*e),top:0===a?s.top:Number(s.top)+a*e})}else V=o,Z.max=D,Z.currentIndex=o,K=l({},s);V+=q;const X=d.useRef(null);d.useEffect((()=>{null!==X.current&&(0===Z.currentIndex&&A.first&&(X.current.focus(),A.setFirst(!1)),Z.currentIndex===Z.max-1&&A.last&&(X.current.focus(),A.setLast(!1)))}),[X.current]);const Q=d.useCallback(function(e){let{select:t,selectAll:n,onCtrlF:r,confirm:o,cancel:a,setScrollPosition:i,focusListItems:l,keyboard:s,isModal:c}=e;const u=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e&&e.parentElement[t?"nextElementSibling":"previousElementSibling"];return n&&n.querySelector("[role]")};let d=!1;const p=e=>{d=e};return e=>{let f;const{currentTarget:h,nativeEvent:m}=e,{keyCode:g,shiftKey:v=!1,ctrlKey:y=!1,metaKey:b=!1}=m;switch(g){case nR.TAB:{const e=h.closest(".listbox-container"),t=c();if(h.classList.add("last-focused"),v){iR(e)||(t?s.focusSelection():s.blur(!0));break}t?s.focusSelection():(h.blur(),s.blur());break}case nR.SHIFT:p(!0);break;case nR.SPACE:t([aR(h)],!1,e);break;case nR.ARROW_DOWN:case nR.ARROW_RIGHT:f=u(h,!0),v&&f&&(d&&(t([aR(h)],!0),p(!1)),t([aR(f)],!0));break;case nR.ARROW_UP:case nR.ARROW_LEFT:f=u(h,!1),v&&f&&(d&&(t([aR(h)],!0),p(!1)),t([aR(f)],!0));break;case nR.ENTER:o();break;case nR.ESCAPE:if(!c())return;a();break;case nR.HOME:if(l.setFirst(!0),y){null==i||i("overflowStart");break}null==i||i("start");break;case nR.END:if(l.setLast(!0),y){null==i||i("overflowEnd");break}null==i||i("end");break;case nR.A:if(y||b){n();break}return;case nR.F:if(y||b){r();break}return;default:return}f&&f.focus(),e.preventDefault(),e.stopPropagation()}}(l(l({},R),{},{focusListItems:A,keyboard:P,isModal:B})),[R,null==P?void 0:P.innerTabStops]),Y=d.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:y,cellIndex:V})),[y,V]),J="S"===(null==Y?void 0:Y.qState)||"XS"===(null==Y?void 0:Y.qState)||"L"===(null==Y?void 0:Y.qState)||"XL"===(null==Y?void 0:Y.qState),ee=d.useMemo((()=>(e=>{let{column:t,histogram:n,checkboxes:r,cell:o,showGray:a}=e;const i=[t?XL.column:XL.row];return n||i.push(XL.rowBorderBottom),o?(r||("XS"===o.qState?i.push(a?XL.XS:XL.S):"S"===o.qState||"L"===o.qState?i.push(XL.S):a&&uR(o)?i.push(XL.A):a&&cR(o)&&i.push(XL.X)),i):[]})({column:x,histogram:I,checkboxes:S,cell:Y,showGray:T})),[null==Y?void 0:Y.qState,I,W,S]),te=d.useCallback((e=>{e.preventDefault()}),[S]);if(!Y)return null;const ne=!["NaN",void 0].includes(null==Y?void 0:Y.qNum);let re;re=!w||w.auto?ne?"rtl"===E?"left":"right":{rtl:"right",ltr:"left"}[E]:(null==w?void 0:w.align)||"left";const oe="grid"===H&&"column"===U,ae=null!==(t=null==Y?void 0:Y.qText)&&void 0!==t?t:"";let ie;if(null!==(n=Y.qHighlightRanges)&&void 0!==n&&null!==(r=n.qRanges)&&void 0!==r&&r.length){const e=Y.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];ie=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}(ae,e)}const le={alignItems:"center",display:"flex",fontSize:"8px"},se={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"rtl"===E?8:S?0:void 0,paddingRight:S?0:"rtl"===E?8:0,justifyContent:re},ce=0===o,ue=S?"auto":"max-content",de=J&&b,pe=!S&&J&&!b,fe=!S&&_,he=S||!_,me=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:a,maxIndex:i,showSearch:l}=e;const s=DR[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:F,label:ae,qState:Y.qState,currentIndex:Z.currentIndex,maxIndex:Z.max,showSearch:$});return G.createElement(vR,{className:XL.barContainer,flexBasisProp:ue,style:K,isGridCol:oe,isGridMode:"grid"===H,dense:W,frequencyWidth:j,"data-testid":"listbox.item"},G.createElement(AR,{role:"row","aria-label":me,"aria-selected":J,"aria-setsize":Z.max,"aria-rowindex":Z.currentIndex,ref:X,container:!0,dataLayout:H,cellPaddingRight:he,layoutOrder:U,itemPadding:z,gap:0,className:pR(["value",...ee]),classes:{root:XL.fieldRoot},onClick:p,onMouseDown:f,onMouseUp:h,onMouseEnter:m,onKeyDown:Q,onTouchStart:g,onTouchEnd:v,onContextMenu:te,tabIndex:ce&&P.innerTabStops?0:-1,"data-n":null==Y?void 0:Y.qElemNumber},(null==Y?void 0:Y.qFrequency)&&G.createElement(NR,{qFrequency:null==Y?void 0:Y.qFrequency,histogram:I,checkboxes:S,isSelected:J,frequencyMax:O}),G.createElement(mC,{item:!0,style:se,className:pR([XL.cell,XL.selectedCell]),title:"".concat(ae)},ie?G.createElement(TR,{onChange:u,labels:ie,checkboxes:S,dense:W,showGray:T,color:"inherit",qElemNumber:Y.qElemNumber,isSelected:J,cell:Y,isGridCol:oe,isSingleSelect:L,valueTextAlign:re}):G.createElement(_R,{onChange:u,label:ae,color:"inherit",qElemNumber:Y.qElemNumber,isSelected:J,dense:W,cell:Y,isGridCol:oe,showGray:T,isSingleSelect:L,checkboxes:S,valueTextAlign:re})),k&&G.createElement(MR,{cell:Y,checkboxes:S,dense:W,showGray:T}),fe&&G.createElement(mC,{item:!0,className:XL.icon},de&&G.createElement(jL,{style:le,size:"small"}),pe&&G.createElement(tR,{style:le,size:"small"}))))}var FR=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function $R(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||FR(r)&&FR(o)))return!1;var r,o;return!0}function BR(e,t){var n;void 0===t&&(t=$R);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 WR="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function HR(e){cancelAnimationFrame(e.id)}function UR(e,t){var n=WR();var r={id:requestAnimationFrame((function o(){WR()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var VR=-1;function GR(e){if(void 0===e&&(e=!1),-1===VR||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),VR=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return VR}var KR=null;function ZR(e){if(void 0===e&&(e=!1),null===KR||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?KR="positive-descending":(t.scrollLeft=1,KR=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),KR}return KR}var XR=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function QR(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,p=e.getRowOffset,f=e.getRowStartIndexForOffset,h=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,$x(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:$x(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=BR((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=BR((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,d=r._getItemStyleCache(g&&l,g&&s,g&&c),f=e+":"+t;if(d.hasOwnProperty(f))o=d[f];else{var h=n(r.props,t,r._instanceProps),m="rtl"===s;d[f]=o={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:p(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=BR((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(ZR()){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&&HR(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=UR(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Px(t,e),t.getDerivedStateFromProps=function(e,t){return YR(e,t),v(e),null};var y=t.prototype;return y.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)},y.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=GR();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 y=i(this.props,this._instanceProps),b=l(this.props,this._instanceProps)>f?v:0,x=y>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,b):g})},y.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()},y.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(ZR()){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()},y.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&HR(this._resetIsScrollingTimeoutId)},y.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,p=e.itemData,f=e.itemKey,h=void 0===f?XR:f,m=e.outerElementType,g=e.outerTagName,v=e.rowCount,y=e.style,b=e.useIsScrolling,x=e.width,S=this.state.isScrolling,w=this._getHorizontalRangeToRender(),E=w[0],C=w[1],k=this._getVerticalRangeToRender(),L=k[0],R=k[1],O=[];if(r>0&&v)for(var I=L;I<=R;I++)for(var P=E;P<=C;P++)O.push(d.createElement(t,{columnIndex:P,data:p,isScrolling:b?S:void 0,key:h({columnIndex:P,data:p,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,P)}));var T=i(this.props,this._instanceProps),_=l(this.props,this._instanceProps);return d.createElement(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Rx({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},d.createElement(c||u||"div",{children:O,ref:s,style:{height:T,pointerEvents:S?"none":void 0,width:_}}))},y._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,y=m.scrollTop,b=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,y,g,x,b)}},y._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]},y._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=f(this.props,c,this._instanceProps),p=h(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,p+g)),d,p]},t}(d.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var YR=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},JR=function(e,t){return e};function eO(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,$x(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:$x(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=BR((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=BR((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=BR((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(ZR()){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<o?"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&&HR(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=UR(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Px(t,e),t.getDerivedStateFromProps=function(e,t){return tO(e,t),u(e),null};var p=t.prototype;return p.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)},p.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?GR():0:s.scrollHeight>s.clientHeight?GR():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,l))},p.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()},p.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(ZR()){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()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&HR(this._resetIsScrollingTimeoutId)},p.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,p=e.itemKey,f=void 0===p?JR:p,h=e.layout,m=e.outerElementType,g=e.outerTagName,v=e.style,y=e.useIsScrolling,b=e.width,x=this.state.isScrolling,S="horizontal"===o||"horizontal"===h,w=S?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],k=E[1],L=[];if(c>0)for(var R=C;R<=k;R++)L.push(d.createElement(t,{data:u,key:f(R,u),index:R,isScrolling:y?x:void 0,style:this._getItemStyle(R)}));var O=r(this.props,this._instanceProps);return d.createElement(m||g||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:Rx({position:"relative",height:a,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},d.createElement(l||s||"div",{children:L,ref:i,style:{height:S?"100%":O,pointerEvents:x?"none":void 0,width:S?O:"100%"}}))},p._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)}},p._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}(d.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var tO=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},nO=QR({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}}),rO=eO({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 oO="#BBB",aO="#f1f1f1",iO={styledScrollbars:"".concat("ListBox","-styledScrollbars")};function lO(e){let{renderProps:t,layoutOptions:n,maxCount:r,columnCount:o,rowCount:a,overflowDisclaimer:i,qCardinal:l,dataOffset:s}=e;const c="column"===(null==n?void 0:n.layoutOrder)&&"singleColumn"!==n.dataLayout,u=((e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex)(t,c),d=c?r.column:r.row,p=(c?o:a)>=d,f=((e,t,n,r)=>e===t*n+r+n)(l,u,c?a:o,s),h=!!s&&((e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex)(t,c),m=p&&!f&&u>=d-1||h||i.state.show;i.set(m)}const{StyledFixedSizeList:sO,StyledFixedSizeGrid:cO}=function(){const e=e=>({scrollbarColor:"".concat(oO," ").concat(aO),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:aO},"&::-webkit-scrollbar-thumb":{backgroundColor:oO,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:Dm(rO,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(iO.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:Dm(nO,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(iO.styledScrollbars)]:e(n)}}))}}();function uO(e){let{layout:t,width:n,height:r,listCount:o,count:a,textWidth:i,freqIsAllowed:l,checkboxes:s}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:p,dense:f,dataLayout:h}=c,m=l?40:0,g=s?20:0;let v=56+m+g;!s&&v>=80&&(v+=20);let y,b,x,S,w=i+18+m+g;!s&&w>=80&&(w+=20),w=Math.min(150,Math.max(w,v));const E="grid"===h;let C=f?20:E?32:29;E&&(C+=4);const k=null!=r?r:8*C;if(u){let e=n;"row"===u?(y={overflowX:"hidden"},e+=8,({rowCount:S,columnWidth:x,columnCount:b}=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-10;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);const u=l/s;return{rowCount:Math.ceil(n/s),columnWidth:u,columnCount:s}}({maxVisibleColumns:p,listCount:o,containerWidth:e,columnAutoWidth:w,itemMinWidth:v}))):(y={overflowY:"hidden"},({rowCount:S,columnWidth:x,columnCount:b}=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);const d=Math.ceil(o/t);return{columnWidth:Math.max(i,l/d,s),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:C,listCount:o,listHeight:k,columnAutoWidth:w,containerWidth:e,itemMinWidth:v})))}b=("singleColumn"===h?1:b)||1,S=("singleColumn"===h?a:S)||o;const L=c.dense?838e3:577e3;S=Math.min(S,L);const R=Math.floor(3355e4/x);b=Math.min(b,R)||1;const O=S*b;return{columnCount:b,columnWidth:x,rowCount:S,overflowStyling:y,itemHeight:C,listHeight:k,scrollBarWidth:10,count:a,listCount:Math.min(o,O),maxCount:{row:L,column:R},itemPadding:4,frequencyWidth:40}}const dO=(e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map((e=>n.measureText(e).width)));return n.measureText(e).width};function pO(e){if(!e)return"";const t=e.qListObject.qDimensionInfo.qApprMaxGlyphCount;let n="";for(let e=0;e<t;e++)n+="M";return n}function fO(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;const a=null!=t&&t.length&&o?(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})({pages:t,minimumBatchSize:n,count:r}):r;return a||0}const[hO,mO]=DS({});function gO(e){const t="".concat(e.id),[n]=hO();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const vO=wy(ww,{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 yO(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:a}=d.useContext(AS);return G.createElement(fL,{title:o?a.get(n):""},G.createElement(vO,{width:t,dense:r,component:"div",variant:"body1",py:"12px"},a.get(n)))}var bO={},xO={},SO={get exports(){return xO},set exports(e){xO=e}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(SO);var wO,EO={},CO=r(nw);var kO=xO;Object.defineProperty(bO,"__esModule",{value:!0});var LO=bO.default=void 0,RO=kO((wO||(wO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=CO}(EO)),EO)),OO=Km,IO=(0,RO.default)((0,OO.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");LO=bO.default=IO;const PO=wy(cw)((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}})),TO=wy("div")((()=>({paddingLeft:"6px",flexGrow:1}))),_O=wy("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),NO=wy(LO)((()=>({fontSize:"14px"})));function MO(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 G.createElement(PO,{left:l,style:{maxWidth:i}},G.createElement(TO,null,G.createElement(yO,{text:t,dense:r,width:s,tooltip:c})),G.createElement(_O,{dense:r},a&&G.createElement(mw,{"aria-label":"close",onClick:()=>n()},G.createElement(NO,null))))}function qO(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>80,{frequencyEnabled:a=!1}=(null==n?void 0:n.qListObject)||{},i=!["none",void 0].includes(r);return!(!o||!i&&!a)}const AO=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,"))")},DO=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=d.useState(),[a,i]=d.useState(n);return d.useEffect((()=>{if(!n)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=AO(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}},zO=["isLoadingData"],jO=wy("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function FO(e){var t,n,r,o;let{model:a,app:i,constraints:s,layout:p,selections:f,selectionState:h,direction:m,checkboxes:g,height:v,width:y,frequencyMode:b,update:x,fetchStart:S,postProcessPages:w,calculatePagesHeight:E=!1,keyboard:C={},showGray:k=!0,scrollState:L,selectDisabled:R=(()=>!1),keyScroll:O={state:{},reset:()=>{}},currentScrollIndex:I={set:()=>{}},renderedCallback:P,onCtrlF:T,showSearch:_,isModal:N}=e;const{translator:M}=d.useContext(AS),[q,A]=d.useState(!1),D=!(!p||!p.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:z=g,histogram:j}=null!=p?p:{},F=d.useRef(null),$=d.useRef({queue:[],validPages:!1,dataOffset:0}),B=d.useRef({pages:[]}),{frequencyMax:W,awaitingFrequencyMax:H}=DO(i,p),U=function(e){let{local:t,loaderRef:n,model:r,fetchStart:o,scrollTimeout:a,postProcessPages:i,listData:l}=e;const[s,c]=d.useState(!1),[u,p]=d.useState([]);let[f]=d.useState(0);const h=(e,s)=>{const u=t.current.dataOffset;t.current.queue.push({start:e+u,stop:s+u});const d=!!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>f?n.start-f:0,qHeight:f,qLeft:0,qWidth:1},{qTop:n.start,qHeight:f,qLeft:0,qWidth:1}]).then((n=>{const r=i?i(n):n;t.current.validPages=!0,l.current.pages=r,p(r),c(!1),e()}));o&&o(a)}),d?a:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(f=t),h}},pages:u,isLoading:s}}({local:$,loaderRef:F,model:a,fetchStart:S,scrollTimeout:0,postProcessPages:w,listData:B}),V=u(U,zO),{setStoreValue:K}=gO(a),Z=d.useCallback(V.loadMoreItems,[p]),[X,Q]=d.useState({show:!1,dismissed:!1}),[Y,J]=d.useState([]);null!=V&&V.pages&&(h.update({setPages:J,pages:V.pages,isSingleSelect:D,selectDisabled:R,layout:p}),V.pages.length&&!H&&(null==P||P()));const ee=d.useCallback((e=>{if(null==Y||!Y.length||!$.current.validPages)return!1;$.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=Y.filter((e=>t(e)))[0];return n&&t(n)}),[p,Y]),{interactionEvents:te,select:ne}=JL({selectionState:h,selections:f,checkboxes:z,doc:document,loaderRef:F}),{layoutOptions:re={}}=p||{};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;F.current._listRef.scrollToItem(n)},le=()=>{if($.current.queue=[],$.current.validPages=!1,F.current){F.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===O.state.scrollPosition;if(p&&p.qSelectionInfo.qInSelections||e)return void(e&&O.reset());$.current.dataOffset=0,ie(0)}};x&&x.call(null,le),d.useEffect((()=>{L&&!q&&F.current&&(F.current._listRef.scrollToItem(L.initScrollPos),A(!0))}),[F.current]),d.useEffect((()=>{le()}),[p,$.current.dataOffset]);const se=(e=>{const t=d.useMemo((()=>"text"in e?e:{}),[e]);return d.useMemo((()=>dO(t.text,t.font||"14px Source Sans Pro")),[t.text,t.font])})({text:pO(p),font:"14px Source sans pro"});let ce=100;const ue="grid"!==re.dataLayout,de=null==p||null===(t=p.qListObject.qSize)||void 0===t?void 0:t.qcy,pe=fO({pages:Y,minimumBatchSize:ce,count:de,calculatePagesHeight:E,layoutOptions:re,model:a});let fe=qO({itemWidth:y,layout:p,frequencyMode:b});const he=uO({layout:p,width:y,height:v,listCount:pe,count:de,textWidth:se,freqIsAllowed:fe,checkboxes:z});he.columnWidth&&(fe=qO({itemWidth:he.columnWidth,layout:p,frequencyMode:b}));const{listCount:me}=he;K("listCount",me);const ge=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,t)=>e.qListObject.qDimensionInfo.qCardinal-t)(a,o.listCount),t=a.qListObject.qDimensionInfo.qCardinal,l=!0}return{scrollIndex:t,offset:s,triggerRerender:l}}({position:e,isRow:oe,sizes:he,layout:p,offset:$.current.dataOffset});$.current.dataOffset=n,r&&h.triggerStateChanged(),ie(t)};d.useEffect((()=>{const e=O.state;e.up?ie(I.state.start-e.up):e.down?ie(I.state.stop+e.down):e.scrollPosition&&ge(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&O.reset()}),[O.state.up,O.state.down,O.state.scrollPosition]);const{textAlign:ve}=(null==p?void 0:p.qListObject.qDimensionInfo)||{},[ye,be]=d.useState({first:!1,last:!1}),{List:xe,Grid:Se}=function(e){let{layout:t,width:n,checkboxes:r,local:o,isVertical:a,pages:i,selectDisabled:s,interactionEvents:u,frequencyMode:d,histogram:p,isSingleSelect:f,select:h,selectAll:m,onCtrlF:g,textAlign:v,selections:y,keyboard:b,showGray:x,scrollState:S,direction:w,sizes:E,listCount:C,overflowDisclaimer:k,setScrollPosition:L,focusListItems:R,setCurrentScrollIndex:O,constraints:I,frequencyMax:P,freqIsAllowed:T,translator:_,showSearch:N,isModal:M}=e;const{layoutOptions:q={}}=t||{},{columnWidth:A,itemPadding:D,listHeight:z,itemHeight:j,rowCount:F,columnCount:$,frequencyWidth:B}=E||{},W=("grid"===q.dataLayout?A:n)>80,H={direction:"rtl"===w?"rtl":"ltr",useIsScrolling:!0,className:iO.styledScrollbars},U=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,V=l(l({isLocked:U,column:!a,pages:i},U||s()?{}:u),{},{checkboxes:r,layoutOptions:q,frequencyMode:d,freqIsAllowed:T,isSingleSelect:f,textAlign:v,itemPadding:D,frequencyWidth:B,actions:{select:h,confirm:()=>null==y?void 0:y.confirm.call(y),cancel:()=>null==y?void 0:y.cancel.call(y),setScrollPosition:L,selectAll:m,onCtrlF:g},frequencyMax:P,histogram:p,keyboard:b,showGray:x,showTick:W,dataOffset:o.current.dataOffset,focusListItems:R,direction:w,translator:_,showSearch:N,isModal:M});return{List:e=>{let{onItemsRendered:r,ref:a}=e;return o.current.listRef=a,G.createElement(sO,c({},H,{dataTestid:"fixed-size-list",scrollDisabled:null==I?void 0:I.active,height:z,width:n,itemCount:C,itemData:l(l({},V),{},{listCount:C}),itemSize:j,onItemsRendered:e=>{var n,a;O({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),lO({renderProps:e,layoutOptions:q,maxCount:E.maxCount,columnCount:$,rowCount:F,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(a=n.qDimensionInfo)||void 0===a?void 0:a.qCardinal,dataOffset:o.current.dataOffset}),r(l({},e))},ref:a}),jR)},Grid:e=>{let{onItemsRendered:r,ref:a}=e;const{overflowStyling:i,scrollBarWidth:s}=E,{layoutOrder:u}=q||{},d=Math.min(z,F*j+s);return o.current.listRef=a,G.createElement(cO,c({},H,{dataTestid:"fixed-size-grid",scrollDisabled:null==I?void 0:I.active,height:d,width:n,columnCount:$,columnWidth:A,rowCount:F,rowHeight:j,style:l({},i),itemData:l(l({},V),{},{column:void 0,columnCount:$,rowCount:F}),onItemsRendered:e=>{var n,a;const i="row"===u;O({start:i?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:i?e.visibleRowStopIndex:e.visibleColumnStopIndex});const l=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:$});lO({renderProps:e,layoutOptions:q,maxCount:E.maxCount,columnCount:$,rowCount:F,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(a=n.qDimensionInfo)||void 0===a?void 0:a.qCardinal,dataOffset:o.current.dataOffset}),r(l)},ref:a}),jR)}}}({direction:m,layout:p,height:v,width:y,checkboxes:z,frequencyMode:b,histogram:j,keyboard:C,showGray:k,interactionEvents:te,select:ne,selectAll:()=>{h.clearItemStates(!1),a.selectListObjectAll("/qListObjectDef")},onCtrlF:T,textAlign:ve,isVertical:ue,pages:Y,selectDisabled:R,isSingleSelect:D,selections:f,scrollState:L,local:$,sizes:he,listCount:me,overflowDisclaimer:{state:X,set:e=>Q((t=>l(l({},t),{},{show:e})))},setScrollPosition:ge,focusListItems:{first:ye.first,setFirst:e=>be((t=>l(l({},t),{},{first:e}))),last:ye.last,setLast:e=>be((t=>l(l({},t),{},{last:e})))},setCurrentScrollIndex:I.set,constraints:s,frequencyMax:W,freqIsAllowed:fe,translator:M,showSearch:_,isModal:N}),{columnWidth:we,listHeight:Ee,itemHeight:Ce}=he||{};return ue||(ce=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:y,columnWidth:we,listHeight:Ee,itemHeight:Ce})),G.createElement(jO,null,G.createElement(zR,{className:"screenReaderOnly",layout:p}),!me&&G.createElement(yO,{width:y,text:"Listbox.NoMatchesForYourTerms"}),G.createElement(HL,{isItemLoaded:ee,itemCount:me||1,loadMoreItems:Z.with({minimumBatchSize:ce}),threshold:0,minimumBatchSize:ce,ref:F,role:"grid"},ue?xe:Se),X.show&&!X.dismissed&&G.createElement(MO,{text:"Listbox.ItemsOverflow",dismiss:()=>Q((e=>l(l({},e),{},{dismissed:!0}))),parentWidth:null==F||null===(n=F.current)||void 0===n||null===(r=n._listRef)||void 0===r||null===(o=r.props)||void 0===o?void 0:o.width,dense:null==re?void 0:re.dense}))}const $O=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"}}]}),BO=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"}}]}),WO=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"}}]}),HO=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 UO=e=>{let{layout:t,model:n,translator:r,selectionState:o}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:$O,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:WO,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectPossible("/qListObjectDef")}},{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:BO,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAlternative("/qListObjectDef")}},{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:HO,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectExcluded("/qListObjectDef")}}]};const VO=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 GO(e){const t=yy(),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 KO={className:"njs-cell-action"},ZO=G.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const a=yy(),{hidden:i,disabled:l,style:s,hasSvgIconShape:c}=GO(r);if(i)return null;const u=Number.parseInt(a.spacing(.5),10),d=r.keyboardAction?e=>["Enter"," ","Spacebar"].includes(e.key)&&r.keyboardAction():null,p="actions-toolbar-".concat(r.key);return G.createElement(mw,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:d,disabled:l,style:s,className:[KO.className,p].join(" "),size:"large",disableRipple:!0,"aria-expanded":n,"aria-controls":"moreMenuList","data-testid":p},c&&DL(r.getSvgIconShape()),o&&G.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),XO=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"}}]}),QO=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 YO=e=>DL(QO(e));const JO="njs-action-toolbar-more",eI={icon:"".concat("More","-icon")},tI=wy(Ck)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(eI.icon)]:{color:t.palette.text.primary}}}));function nI(e){let{item:t,onActionClick:n=(()=>{})}=e;const{hidden:r,disabled:o,hasSvgIconShape:a}=GO(t);return r?null:G.createElement(Tk,{title:t.label,onClick:()=>{t.action(),n()},disabled:o,tabindex:"0"},a&&G.createElement(ak,{className:eI.icon},DL(t.getSvgIconShape())),G.createElement(ww,{noWrap:!0},t.label))}const rI=G.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:o,popoverProps:a={},popoverPaperStyle:i={},onCloseOrActionClick:s=(()=>{})}=e;return n.length>0&&G.createElement(tI,c({},a,{onClose:s,ref:t,open:r,anchorEl:o.current,getContentAnchorEl:null,container:o.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:JO}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:l({pointerEvents:"auto",maxWidth:"250px"},i)}}),G.createElement(fk,{id:"moreMenuList"},n.map(((e,t)=>G.createElement(nI,{key:t,item:e,onActionClick:s})))))}));function oI(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r}=e;return e=>{const{target:o,nativeEvent:a}=e,{keyCode:i}=a;switch(i){case nR.ARROW_LEFT:case nR.ARROW_DOWN:case nR.ARROW_RIGHT:case nR.ARROW_UP:if(o.classList.contains("njs-cell-action")){const e=(e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)})(o);(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()})([nR.ARROW_LEFT,nR.ARROW_DOWN].includes(i)?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case nR.SPACE:e.preventDefault();break;case nR.TAB:if(t&&null!=n&&n.refocusContent){(e.shiftKey&&r(!1)===e.target||!e.shiftKey&&r(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),n.refocusContent())}}}}const aI="ActionsToolbar",iI={item:"".concat(aI,"-item"),itemSpacing:"".concat(aI,"-itemSpacing"),firstItemSpacing:"".concat(aI,"-firstItemSpacing"),lastItemSpacing:"".concat(aI,"-lastItemSpacing")},lI=wy(Ck)((e=>{let{theme:t}=e;return{["& .".concat(iI.itemSpacing)]:{padding:t.spacing(0,.5)},["& .".concat(iI.firstItemSpacing)]:{padding:t.spacing(0,.5,0,0)},["& .".concat(iI.lastItemSpacing)]:{padding:t.spacing(0,0,0,.5)}}})),sI="njs-action-toolbar-popover",cI=G.forwardRef(((e,t)=>{let{className:n,ariaExpanded:r=!1,actions:o=[],first:a=!1,last:i=!1,addAnchor:l=!1,isRtl:s=!1}=e;return o.length>0?G.createElement(mC,{item:!0,container:!0,gap:0,flexDirection:s?"row-reverse":"row",wrap:"nowrap",className:n},o.map(((e,n)=>{let s=[];const c=a&&0===n,u=i&&o.length-1===n;return c&&!u&&(s=[iI.firstItemSpacing,iI.item]),u&&!c&&(s=[...s,iI.lastItemSpacing,iI.item]),c||u||0!==s.length||(s=[iI.itemSpacing,iI.item]),G.createElement(mC,{item:!0,key:e.key,className:s.join(" ").trim()},G.createElement(ZO,{ariaExpanded:r,key:e.key,item:e,ref:0===n?t:null,addAnchor:l}))}))):null})),uI={pointerEvents:"none"},dI={vertical:"bottom",horizontal:"right"};function pI(e){var t,n;let{show:r=!0,actions:o=[],maxItems:a=3,selections:i={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:l={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:s={show:!1,anchorEl:null},focusHandler:c=null,actionsRefMock:u=null,direction:p="ltr"}=e;const f=function(e){let{api:t,onConfirm:n=(()=>{}),onCancel:r=(()=>{}),onKeyDeactivate:o=(()=>{})}=e;const{translator:a}=d.useContext(AS);return[{key:"clear",type:"icon-button",label:a.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:QO},{key:"cancel",type:"icon-button",label:a.get("Selection.Cancel"),enabled:()=>t.canCancel(),action:()=>{r(),t.cancel()},keyboardAction:e=>{o(e),r(),t.cancel()},getSvgIconShape:XO},{key:"confirm",type:"icon-button",label:a.get("Selection.Confirm"),enabled:()=>t.canConfirm(),action:()=>{n(),t.confirm()},keyboardAction:e=>{o(e),n(),t.confirm()},getSvgIconShape:eR}]}(i),{translator:h,keyboardNavigation:m}=d.useContext(AS),[g,v]=d.useState(!1),y={vertical:7,horizontal:(null!==(t=null===(n=s.anchorEl)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)-7},b=d.useRef(),x=d.useRef(),S=yy(),w=d.useMemo((()=>({margin:S.spacing(.5,0)}))),E=e=>{const t=b.current||u;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},C=d.useMemo((()=>oI({keyboardNavigation:m,focusHandler:c,getEnabledButton:E})),[m,c,E]);d.useEffect((()=>()=>{v(!1)}),[s.show,r,i.show]),d.useEffect((()=>{if(!c)return;c.on("focus_toolbar_first",(()=>{const e=E(!1);e&&e.focus()})),c.on("focus_toolbar_last",(()=>{const e=E(!0);e&&e.focus()}))}),[]);let k=l.enabled,L=l.actions;const R=l.alignTo||x,O=o.filter((e=>!e.hidden));if(O.length>a){const e=O.splice(-(O.length-a)-1);k=!0,L=[...e,...l.actions]}if(!i.show&&0===O.length)return null;const I={key:"more",label:h.get("Menu.More"),getSvgIconShape:VO,hidden:!1,active:g,enabled:()=>k,action:()=>v(!g)},P=O.length>0,T=L.length>0,_=P&&i.show||T&&i.show,N="rtl"===p,M=G.createElement(mC,{ref:b,onKeyDown:C,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:N?"row-reverse":"row"}},P&&G.createElement(cI,{actions:O,first:!0,last:!T&&!i.show}),T&&G.createElement(cI,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:x,ariaExpanded:g,actions:[I],first:!P,last:!i.show,addAnchor:!0}),_&&G.createElement(mC,{item:!0,className:iI.itemSpacing,style:w},G.createElement(YE,{orientation:"vertical"})),i.show&&G.createElement(cI,{className:"actions-toolbar-default-actions",actions:f,first:!P&&!T,last:!0,isRtl:N}),g&&G.createElement(rI,{show:g,actions:L,alignTo:R,popoverProps:l.popoverProps,popoverPaperStyle:l.popoverPaperStyle,onCloseOrActionClick:()=>{v(!1)}}));return s.show?G.createElement(lI,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:s.show,anchorEl:s.anchorEl,anchorOrigin:y,transformOrigin:dI,hideBackdrop:!0,style:uI,PaperProps:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:sI,style:{pointerEvents:"auto",padding:S.spacing(.8)}}},M):r&&M}var fI=e=>DL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(e));const hI="/qListObjectDef",mI=wy(NC)((e=>{var t,n;let{theme:r}=e;return{color:null===(t=r.listBox)||void 0===t||null===(n=t.content)||void 0===n?void 0:n.color}})),gI=wy(Fk)((e=>{var t,n;let{theme:r}=e;return{color:null===(t=r.listBox)||void 0===t||null===(n=t.content)||void 0===n?void 0:n.color,display:"flex"}}));function vI(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:p}=e;const{translator:f}=d.useContext(AS),[h,m]=d.useState(""),[g,v]=d.useState(!1),y=d.useRef(),b=yy(),{getStoreValue:x}=gO(r),S="rtl"===u,w=S?"right":"left",E=async()=>{if(t.isModal())try{await r.abortListObjectSearch(hI)}finally{m("")}};d.useEffect((()=>{i||E()}),[i]),d.useEffect((()=>(t.on("deactivated",E),()=>{t.removeListener&&t.removeListener("deactivated",E)})),[]),d.useEffect((()=>{if(g&&y.current){const e=h.length-1;y.current.setSelectionRange(e,e),v(!1)}}),[g,y.current]);const C=async()=>{let e;return await r.searchListObjectFor(hI,h)&&h.length&&x("listCount")>0&&(e=r.acceptListObjectSearch(hI,!0),t.selectionsMade=!0,n.clearItemStates(!1),m("")),e};function k(e){const t=(null==e?void 0:e.querySelector(".last-focused"))||(null==e?void 0:e.querySelector('[role="row"]:first-child'));t.setAttribute("tabIndex",0),null==t||t.focus()}return i&&!1!==c?G.createElement(gI,{startAdornment:G.createElement(mI,{position:"start"},G.createElement(fI,{size:a?"small":"normal"})),className:"search",sx:[{border:"none",fontSize:14,borderRadius:0,backgroundColor:"transparent","& fieldset":{border:"1px solid ".concat(b.palette.divider),borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"},paddingLeft:"".concat(9,"px")},a&&{fontSize:12,paddingLeft:b.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}},{flexDirection:S?"row-reverse":"row"}],inputRef:y,size:"small",fullWidth:!0,placeholder:f.get("Listbox.Search"),value:h,onFocus:()=>{s&&(m("**"),v(!0)),t.isModal()||t.begin(["/qListObjectDef"])},onChange:async e=>(m(e.target.value),e.target.value.length?r.searchListObjectFor(hI,e.target.value):E()),onKeyDown:async e=>{const{currentTarget:n}=e,r=n.closest(".listbox-container");switch(e.key){case"Enter":C();break;case"Escape":k(r),t.isActive()&&t.cancel();break;case"Tab":e.shiftKey?o.focusSelection():(k(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;p&&p();break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:l,inputProps:{tabIndex:o.innerTabStops?0:-1,style:{textAlign:"".concat(w)},"data-testid":"search-input-field"}}):null}function yI(e){return Object.keys(ne.prototype).forEach((t=>{e[t]=ne.prototype[t]})),ne.init(e),e}const bI=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(o,e,!0))},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(o),goModal:e=>r.begin(o,e,!1),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return yI(l),l},xI=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]=VS(e),[i]=NL(t),l=t?t.id:null,[s]=FS(),[c]=BS(),u=s.get(e.id);let p=c.get(l);return d.useEffect((()=>{a&&t&&!p&&(p=bI({appSelections:a,appModal:u,model:t}),c.set(l,p),c.dispatch(!0))}),[a,t]),d.useEffect((()=>{if(!p)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=xI({elements:o,objectSelections:p,options:r});return p.addListener("activated",e),p.addListener("deactivated",t),()=>{p.isActive()&&p.confirm(),p.removeListener("activated",e),p.removeListener("deactivated",t)}}),[p]),d.useEffect((()=>{p&&p.setLayout(i)}),[p,i]),[p]}function wI(){const e={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,update(t){var n,r,o;let{setPages:a,pages:i,isSingleSelect:l,selectDisabled:s,layout:c}=t;this.setPages=a;const u=this.lastRowCount===c.qListObject.qSize.qcy,d=this.lastApprMaxGlyphCount===c.qListObject.qDimensionInfo.qApprMaxGlyphCount;u&&d||(this.lastRowCount=c.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=c.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==i&&void 0!==i&&(e.enginePages=null!=i?i:[],e.selectedInEngine=GL(i),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=l,e.selectDisabled=s,e.isDimCalculated=null!==(n=null==c||null===(r=c.qListObject)||void 0===r||null===(o=r.qDimensionInfo)||void 0===o?void 0:o.qIsCalculated)&&void 0!==n&&n},allowedToSelect:()=>!e.selectDisabled()&&!(e.isDimCalculated&&e.selectableValuesUpdating),setSelectableValuesUpdating(){e.selectableValuesUpdating=!0},useClientItemState:t=>e.ignoreSelectionState||t in e.itemStates,isSelected:t=>e.useClientItemState(t)?!!e.itemStates[t]:e.selectedInEngine.includes(t),getState(t){const{qElemNumber:n,qState:r}=t;return e.useClientItemState(n)?e.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(t,n,r){const o=e.isSelected(t);o&&!n?e.itemStates[t]=!1:o||(null==r||r.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages(t){const n=t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[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 EI=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 CI(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}=e;const u=Boolean(null==l?void 0:l.qLibraryId),p=o&&Boolean(t.current),[f,h]=d.useState(0),m=yy(),g=d.useRef(),[v]=OL({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:s,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:u?void 0:[l]},qLibraryId:u?l.qLibraryId:void 0}},i,l,s),y=d.useCallback((()=>{v.lock("/qListObjectDef")}),[v]),b=d.useCallback((()=>{v.unlock("/qListObjectDef")}),[v]),{translator:x}=d.useContext(AS),S=d.useRef(),w=d.useRef(),[E]=SI(i,v,w),[C]=NL(v),[k]=d.useState((()=>wI()));if(d.useEffect((()=>{E&&p&&(E.isModal(v)||E.goModal("/qListObjectDef"))}),[E,p]),!v||!C||!x)return null;const L=!0===C.qListObject.qDimensionInfo.qLocked,R=(e,t)=>{const n="escapeKeyDown"!==t;E.noModal(n),a()},O=UO({layout:C,model:v,translator:x,selectionState:k}),I=function(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return EI(t,"qSelected",0)+EI(t,"qSelectedExcluded",0)+EI(t,"qLocked",0)+EI(t,"qLockedExcluded",0)>0}(C);return G.createElement(Ck,{open:p,onClose:R,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,PaperProps:{style:{minWidth:"250px"}}},G.createElement(mC,{container:!0,direction:"column",gap:0,ref:w},G.createElement(mC,{item:!0,container:!0,style:{padding:m.spacing(1)}},G.createElement(mC,{item:!0},L?G.createElement(mw,{onClick:b,disabled:!L,size:"large"},G.createElement(jL,{title:x.get("Listbox.Unlock")})):G.createElement(mw,{onClick:y,disabled:!I,size:"large"},G.createElement(FL,{title:x.get("Listbox.Lock")}))),G.createElement(mC,{item:!0,xs:!0}),G.createElement(mC,{item:!0},G.createElement(pI,{more:{enabled:!L,actions:O,alignTo:S,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:E,onConfirm:R,onCancel:()=>R(0,"escapeKeyDown")}}))),G.createElement(mC,{item:!0,xs:!0},G.createElement("div",{ref:S}),G.createElement(mC,{item:!0,ref:g},G.createElement(vI,{visible:!0,model:v,listCount:f,selections:E,selectionState:k,keyboard:{enabled:!1},autoFocus:null==c||c})),G.createElement(FO,{model:v,app:i,layout:C,selections:E,selectionState:k,direction:"ltr",onSetListCount:e=>h(e),onCtrlF:()=>{const e=g.current.querySelector("input");null==e||e.focus()}}))))}function kI(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:a=null,onClose:i=(()=>{})}=e;const{translator:l}=d.useContext(AS),s=a||d.useRef(),c=yy(),[u,p]=d.useState(!1),f=e=>{e.currentTarget.contains(e.target)&&p(!u)},h=()=>{p(!1),i()},m=t.selections[r];void 0===m.qTotal&&(m.qTotal=0);const g=m.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},v=(g.qSelected+g.qLocked)/m.qTotal,y=g.qAlternative/m.qTotal,b=(g.qExcluded+g.qLockedExcluded+g.qSelectedExcluded)/m.qTotal,x=g.qSelected+g.qSelectedExcluded+g.qLocked+g.qLockedExcluded,S=0===x&&0===m.qTotal;let w="";m.qTotal===x&&m.qTotal>1?w=l.get("CurrentSelections.All"):x>1&&m.qTotal?w=l.get("CurrentSelections.Of",[x,m.qTotal]):m.qSelectedFieldSelectionInfo&&(w=m.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==t.states[r]&&(w="".concat(t.states[r],": ").concat(w));const E=[{color:c.palette.selected.main,ratio:v},{color:c.palette.selected.alternative,ratio:y},{color:c.palette.selected.excluded,ratio:b}];E.forEach(((e,t)=>{e.offset=t?E[t-1].offset+E[t-1].ratio:0}));let C=null,k=null,L=null,R=null;return a||(C=G.createElement(mC,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:m.qLocked?"0.3":""}},G.createElement(ww,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},m.qField),G.createElement(ww,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},w)),m.qLocked?k=G.createElement(mC,{item:!0},G.createElement(mw,{size:"large"},G.createElement(jL,null))):m.qOneAndOnlyOne||(k=G.createElement(mC,{item:!0},G.createElement(mw,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(m.qField,t.states[r])},size:"large"},G.createElement(zL,null)))),L=G.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===S&&E.map((e=>G.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=G.createElement(mC,{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&&f||null},C,k,L,u&&G.createElement(CI,{alignTo:s,show:u,close:h,app:n.model,fieldName:m.qField,stateName:t.states[r]}))),a?G.createElement(CI,{alignTo:s,show:!0,close:h,app:n.model,fieldName:m.qField,stateName:t.states[r]}):R}var LI=e=>DL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(e));const RI={item:"".concat("MultiState","-item")},OI=wy(mC)((e=>{let{theme:t}=e;return{["&.".concat(RI.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function II(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[a,i]=d.useState(!!r),[l,s]=d.useState(-1),[c,u]=d.useState(r?r.current:null),p=r||d.useRef(),{translator:f}=d.useContext(AS),h=f.get("Selection.ClearAllStates"),m=()=>{s(-1),o()};let g=null;r||(g=G.createElement(G.Fragment,null,G.createElement(mC,{item:!0,xs:!0,zeroMinWidth:!0},G.createElement(aE,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},G.createElement(ww,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.name))),G.createElement(mC,{item:!0},G.createElement("div",{style:{width:"12px"}})),G.createElement(mC,{item:!0},G.createElement(mw,{size:"large"},G.createElement(LI,null)))));const v=G.createElement(jC,{dense:!0},G.createElement(JC,{title:h,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},G.createElement(ES,{variant:"contained",fullWidth:!0},h)),t.states.map(((e,r)=>G.createElement(JC,{key:r,title:t.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),s(t)})(e,r)},G.createElement(lE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},G.createElement(kI,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),y=G.createElement(Ck,{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"}}},v),b=r?y:G.createElement(OI,{container:!0,gap:0,className:RI.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),p.current=e.currentTarget,i(!a))}},g,a&&y,l>-1&&G.createElement(CI,{alignTo:p,show:l>-1,close:m,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}));return r&&l>-1?G.createElement(CI,{alignTo:p,show:l>-1,close:m,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):b}const PI="More",TI={item:"".concat(PI,"-item"),badge:"".concat(PI,"-badge")},_I=wy(mC)((e=>{let{theme:t}=e;return{["&.".concat(TI.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(TI.badge)]:{padding:t.spacing(0,1)}}}));function NI(e){let{items:t=[],api:n}=e;const r=yy(),[o,a]=d.useState(!1),[i,l]=d.useState(-1),[s,c]=d.useState(null),u=d.useRef(),p=()=>{l(-1)};let f=null;return i>-1&&(f=t[i].states.length>1?G.createElement(II,{field:t[i],api:n,moreAlignTo:u,onClose:p}):G.createElement(kI,{field:t[i],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:p})),G.createElement(_I,{container:!0,gap:0,className:TI.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,a(!o))}},G.createElement(mC,{item:!0},G.createElement(lE,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},G.createElement(ww,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),G.createElement(mC,{item:!0},G.createElement(mw,{size:"large"},G.createElement(LI,null))),o&&G.createElement(Ck,{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"}}},G.createElement(jC,{dense:!0},t.map(((e,t)=>G.createElement(JC,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),l(t)})(e,t)},G.createElement(lE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?G.createElement(II,{field:e,api:n}):G.createElement(kI,{field:e,api:n}))))))),f)}function MI(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 qI(e){let{api:t,app:n}=e;const r=yy(),[o]=PL(n),[a]=NL(o),[i,l]=d.useState({items:[],more:[]}),[s]=HS(),[c,u]=qL(),[p,f]=d.useState(0);return d.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-72,n=Math.floor(t/120);f(n)}),[u]),d.useEffect((()=>{if(!(n&&o&&a&&p))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&MI(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>MI(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 e=s.get(n.id);return e&&"njsListbox"===e.genericType})()&&r.length+1===t.items.length){const e=t.items.filter((e=>!1===r.some((t=>e.name===t.name))))[0],{qField:n}=e.selections[0];e.selections=[{qField:n}];const o=t.items.indexOf(e);r.splice(o,0,e)}let o=[];return p<r.length&&(o=r.splice(p-r.length)),{items:r,more:o}}))}),[n,o,a,t.isInModal(),p]),G.createElement(mC,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},i.items.map((e=>G.createElement(mC,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(120,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?G.createElement(II,{field:e,api:t}):G.createElement(kI,{field:e,api:t})))),i.more.length>0&&G.createElement(mC,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(72,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},G.createElement(NI,{items:i.more,api:t})))}var AI=e=>DL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(e));var DI=e=>DL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));function zI(e){const[t]=PL(e),[n]=NL(t),[r]=ML(e),[o,a]=d.useState(null);return d.useEffect((()=>{r&&t&&n&&((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)})(t,n,r)}),[r,t,n]),d.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]}function jI(e){let{api:t,app:n}=e;const{translator:r}=d.useContext(AS),[o]=zI(n);return G.createElement(mC,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},G.createElement(mC,{item:!0},G.createElement(mw,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},G.createElement(AI,null))),G.createElement(mC,{item:!0},G.createElement(mw,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},G.createElement(DI,null))),G.createElement(mC,{item:!0},G.createElement(mw,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},G.createElement(YO,null))))}const FI=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function $I(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function BI(){return FI.map($I).join("")}function WI(e){let{app:t}=e;const n=yy(),[r]=VS(t);return r?G.createElement(mC,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},G.createElement(mC,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},G.createElement(jI,{api:r,app:t})),G.createElement(mC,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},G.createElement(qI,{api:r,app:t}))):null}function HI(e){let{element:t,app:n}=e;return wp.createPortal(G.createElement(WI,{app:n}),t,BI())}var UI=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},VI=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}}(),GI=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KI=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},ZI=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},XI=void 0;XI="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;var QI=null,YI=null,JI=XI.clearTimeout,eP=XI.setTimeout,tP=XI.cancelAnimationFrame||XI.mozCancelAnimationFrame||XI.webkitCancelAnimationFrame,nP=XI.requestAnimationFrame||XI.mozRequestAnimationFrame||XI.webkitRequestAnimationFrame;function rP(e){var t=void 0,n=void 0,r=void 0,o=void 0,a=void 0,i=void 0,l=void 0,s="undefined"!=typeof document&&document.attachEvent;if(!s){i=function(e){var 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)){var t=this;i(this),this.__resizeRAF__&&QI(this.__resizeRAF__),this.__resizeRAF__=YI((function(){a(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}};var c=!1,u="";r="animationstart";var d="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(c=!0),!1===c)for(var h=0;h<d.length;h++)if(void 0!==f.style[d[h]+"AnimationName"]){u="-"+d[h].toLowerCase()+"-",r=p[h],c=!0;break}t="@"+u+"keyframes "+(n="resizeanim")+" { from { opacity: 0; } to { opacity: 0; } } ",o=u+"animation: 1ms "+n+"; "}return{addResizeListener:function(a,c){if(s)a.attachEvent("onresize",c);else{if(!a.__resizeTriggers__){var u=a.ownerDocument,d=XI.getComputedStyle(a);d&&"static"===d.position&&(a.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){var 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)}}(u),a.__resizeLast__={},a.__resizeListeners__=[],(a.__resizeTriggers__=u.createElement("div")).className="resize-triggers";var p=u.createElement("div");p.className="expand-trigger",p.appendChild(u.createElement("div"));var f=u.createElement("div");f.className="contract-trigger",a.__resizeTriggers__.appendChild(p),a.__resizeTriggers__.appendChild(f),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==tP||null==nP?(QI=JI,YI=function(e){return eP(e,20)}):(QI=function(e){var t=ZI(e,2),n=t[0],r=t[1];tP(n),JI(r)},YI=function(e){var t=nP((function(){JI(n),e()})),n=eP((function(){tP(t),e()}),20);return[t,n]});var oP=function(e){function t(){var e,n,r;UI(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=KI(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={height:r.props.defaultHeight||0,width:r.props.defaultWidth||0},r._onResize=function(){var e=r.props,t=e.disableHeight,n=e.disableWidth,o=e.onResize;if(r._parentNode){var a=r._parentNode.offsetHeight||0,i=r._parentNode.offsetWidth||0,l=window.getComputedStyle(r._parentNode)||{},s=parseInt(l.paddingLeft,10)||0,c=parseInt(l.paddingRight,10)||0,u=parseInt(l.paddingTop,10)||0,d=parseInt(l.paddingBottom,10)||0,p=a-u-d,f=i-s-c;(!t&&r.state.height!==p||!n&&r.state.width!==f)&&(r.setState({height:a-u-d,width:i-s-c}),o({height:a,width:i}))}},r._setRef=function(e){r._autoSizer=e},KI(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),VI(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=rP(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.disableHeight,o=e.disableWidth,a=e.style,i=this.state,l=i.height,s=i.width,c={overflow:"visible"},u={},p=!1;return r||(0===l&&(p=!0),c.height=0,u.height=l),o||(0===s&&(p=!0),c.width=0,u.width=s),d.createElement("div",{className:n,ref:this._setRef,style:GI({},c,a)},!p&&t(u))}}]),t}(d.PureComponent);oP.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};var aP=e=>DL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"}}]}))(e));const iP=wy("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function lP(e){let{text:t}=e;const{translator:n}=d.useContext(AS);return G.createElement(iP,null,n.get(t))}const sP="ListBoxInline",cP={listBoxHeader:"".concat(sP,"-listBoxHeader"),screenReaderOnly:"".concat(sP,"-screenReaderOnly"),listboxWrapper:"".concat(sP,"-listboxWrapper")},uP=wy(mC,{shouldForwardProp:e=>!["containerPadding","hasIcon"].includes(e)})((e=>{var t,n;let{theme:r,containerPadding:o,hasIcon:a}=e;return{backgroundColor:null!==(t=null===(n=r.listBox)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:r.palette.background.default,["& .".concat(cP.listBoxHeader)]:{alignSelf:"center",display:"flex",width:"calc(100% - ".concat(a?28:0,"px)")},["& .".concat(cP.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(cP.listboxWrapper)]:{padding:o},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(r.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}}})),dP=wy(ww)((e=>{var t,n,r,o,a,i,l,s,c,u,d,p;let{theme:f}=e;return{color:null===(t=f.listBox)||void 0===t||null===(n=t.title)||void 0===n||null===(r=n.main)||void 0===r?void 0:r.color,fontSize:null===(o=f.listBox)||void 0===o||null===(a=o.title)||void 0===a||null===(i=a.main)||void 0===i?void 0:i.fontSize,fontFamily:null===(l=f.listBox)||void 0===l||null===(s=l.title)||void 0===s||null===(c=s.main)||void 0===c?void 0:c.fontFamily,fontWeight:(null===(u=f.listBox)||void 0===u||null===(d=u.title)||void 0===d||null===(p=d.main)||void 0===p?void 0:p.fontWeight)||"bold"}}));const pP=G.memo((function(e){var t;let{options:n,layout:r}=e;const{app:o,direction:a,frequencyMode:i,checkboxes:s,search:u=!0,focusSearch:p=!1,rangeSelect:f=!0,model:h,selections:m,update:g,fetchStart:v,selectDisabled:y=(()=>!1),postProcessPages:b,calculatePagesHeight:x,showGray:S=!0,scrollState:w,renderedCallback:E,toolbar:C=!0,isPopover:k=!1}=n,L=yy(),R=d.useCallback((()=>{h.unlock("/qListObjectDef")}),[h]),{translator:O,keyboardNavigation:I,themeApi:P,constraints:T}=d.useContext(AS);L.listBox=(e=>{const t=(t,n)=>e.getStyle("object.listBox",t,n);return{backgroundColor:t("","backgroundColor"),title:{main:{color:t("title.main","color"),fontSize:t("title.main","fontSize"),fontFamily:t("title.main","fontFamily"),fontWeight:t("title.main","fontWeight")}},content:{color:t("content","color"),fontSize:t("content","fontSize"),fontFamily:t("content","fontFamily")}}})(P);const _=d.useRef(),[N,M]=(()=>{const[e,t]=d.useState({}),n=d.useCallback((e=>{t({current:e})}),[t]);return[e,n]})(),[q,A]=d.useState(!1),[D,z]=d.useState(!1),j=d.useRef(!1),[F,$]=d.useState({down:0,up:0,scrollPosition:""}),B=e=>$((t=>l(l({},t),e))),[W,H]=d.useState({start:0,stop:0}),[U]=VS(o),V=d.useRef(null),[K]=d.useState((()=>wI())),Z=function(e){let{containerRef:t,enabled:n}=e;const[r,o]=d.useState(!1),a={enabled:n,active:r,innerTabStops:!n||r,blur(e){var r;if(!n)return;o(!1);const a=oR(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)})),rR(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, .ActionsToolbar-item button"),l=r||a||i;null==l||l.setAttribute("tabIndex",0),null==l||l.focus()},focusSelection(){const e=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm");null==e||e.setAttribute("tabIndex",0),null==e||e.focus()}};return a}({containerRef:_,enabled:I}),X=d.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:o,appSelections:U})),[o,U]),Q=null==r?void 0:r.qListObject.qDimensionInfo.qError,Y=Q&&T.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:J,handleOnMouseEnter:ee,handleOnMouseLeave:te,globalKeyDown:ne}=d.useMemo((()=>sR({keyboard:Z,hovering:j,updateKeyScroll:B,containerRef:_,currentScrollIndex:W,app:o,appSelections:U,constraints:T,isModal:X})),[Z,j,B,_,W,o,U,T,X]),re=C&&(""===(null==r?void 0:r.title)||!1===(null==r?void 0:r.showTitle))&&!k,oe=C&&""!==(null==r?void 0:r.title)&&!1!==(null==r?void 0:r.showTitle)||k;if(d.useEffect((()=>(document.addEventListener("keydown",ne),()=>{document.removeEventListener("keydown",ne)})),[ne]),d.useEffect((()=>{const e=()=>{A(!0)},t=()=>{A(!1),"toggle"===u&&z(!1)};return k&&(m.isActive()||(m.begin("/qListObjectDef"),m.on("activated",e),m.on("deactivated",t)),A(k)),m&&(m.isModal()||(m.on("activated",e),m.on("deactivated",t)),A(m.isActive())),()=>{m&&m.removeListener&&(m.removeListener("activated",e),m.removeListener("deactivated",t))}}),[m,k]),d.useEffect((()=>{if(N&&N.current&&(u&&p||"toggle"===u&&D)){const e=N.current.querySelector("input");e&&e.focus()}}),[N&&N.current,D,u,p]),!h||!r||!O)return null;const ae=!0===r.qListObject.qDimensionInfo.qLocked,ie="rtl"===a,le="H"===r.qListObject.qDimensionInfo.qGrouping,se=UO({layout:r,model:h,translator:O,selectionState:K}),{wildCardSearch:ce,searchEnabled:ue,layoutOptions:de={}}=r,pe=(!0===u||"toggle"===u&&D)&&!y()&&!1!==ue,fe=null!==(t=de.dense)&&void 0!==t&&t,he=oe?49+(pe?fe?27:40:0)+(fe?39:49):0,me=()=>{z(!D)},ge=()=>{if("toggle"===u)me();else{const e=N.current.querySelector("input");null==e||e.focus()}},ve=e=>function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:a,selections:i}=e;return{show:n&&!t,popover:{show:n&&t,anchorEl:r.current},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:i,onConfirm:()=>{},onCancel:()=>{}}}}({isDetached:!k&&e,showToolbar:q,containerRef:_,isLocked:ae,listboxSelectionToolbarItems:se,selections:m}),ye=pe&&"toggle"===u,be=!1!==ue&&"toggle"===u,xe=ae||be,Se=xe||le,we=(xe?28:0)+(le?19:0),Ee=9-(xe?7:0),Ce=ie?9-(Se?7:0):0,{isDetached:ke,reasonDetached:Le}=function(e){var t,n,r,o,a,i;let{containerRef:l,titleRef:s,iconsWidth:c}=e;const u=(null!==(t=null==l||null===(n=l.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)<(null!==(r=null==s||null===(o=s.current)||void 0===o?void 0:o.clientWidth)&&void 0!==r?r:0)+c+16+128,d=!!(u|(null==s||null===(a=s.current)||void 0===a?void 0:a.scrollWidth)>(null==s||null===(i=s.current)||void 0===i?void 0:i.offsetWidth));return{isDetached:d,reasonDetached:d?u?"noSpace":"truncated":""}}({containerRef:_,titleRef:V,iconsWidth:we});let Re;"grid"===(null==de?void 0:de.dataLayout)&&(Re="row"===de.layoutOrder?"2px 4px":"2px 6px 2px 4px");const Oe=null!=T&&T.active?G.createElement(fI,{title:O.get("Listbox.Search"),size:"large",style:{fontSize:"12px",padding:"7px"}}):G.createElement(mw,{onClick:me,tabIndex:-1,title:O.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},G.createElement(fI,{style:{fontSize:"12px"}})),Ie=y()?G.createElement(jL,{size:"large",style:{fontSize:"12px",padding:"7px"}}):G.createElement(mw,{title:O.get("SelectionToolbar.ClickToUnlock"),tabIndex:-1,onClick:R,size:"large"},G.createElement(jL,{disableRipple:!0,style:{fontSize:"12px"}}));return G.createElement(G.Fragment,null,re&&G.createElement(pI,c({direction:a},ve(!0))),G.createElement(uP,{className:"listbox-container",container:!0,tabIndex:Z.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Re,style:{height:"100%",minHeight:"".concat(he,"px"),flexFlow:"column nowrap"},onKeyDown:J,onMouseEnter:ee,onMouseLeave:te,ref:_,hasIcon:Se},oe&&G.createElement(mC,{item:!0,container:!0,style:{padding:L.spacing(1),paddingLeft:"".concat(Ee,"px"),paddingRight:"".concat(Ce,"px")},sx:{flexDirection:ie?"row-reverse":"row"},wrap:"nowrap"},G.createElement(mC,{item:!0,container:!0,height:32,sx:{flexDirection:ie?"row-reverse":"row"},wrap:"nowrap"},Se&&G.createElement(mC,{item:!0,sx:{display:"flex",alignItems:"center",width:we}},ae?Ie:be&&Oe,le&&G.createElement(aP,{tabIndex:-1,title:O.get("Listbox.DrillDown"),size:"large",style:{fontSize:"12px"}})),G.createElement(mC,{item:!0,sx:{justifyContent:ie?"flex-end":"flex-start"},className:cP.listBoxHeader},G.createElement(dP,{variant:"h6",sx:{width:k&&"noSpace"===Le?"60px":void 0},noWrap:!0,ref:V,title:r.title},r.title))),G.createElement(mC,{item:!0,xs:!0}),G.createElement(mC,{item:!0},G.createElement(pI,c({direction:a},ve(ke))))),G.createElement(mC,{item:!0,container:!0,direction:"column",style:{height:"100%",minHeight:"50px"},role:"region","aria-label":O.get("Listbox.ResultFilterLabel")},G.createElement(mC,{item:!0,ref:M},G.createElement("div",{className:cP.screenReaderOnly},O.get("Listbox.Search.ScreenReaderInstructions")),G.createElement(vI,{selections:m,selectionState:K,model:h,dense:fe,keyboard:Z,visible:pe,search:u,autoFocus:ye,wildCardSearch:ce,searchEnabled:ue,direction:a,hide:be&&me})),G.createElement(mC,{item:!0,xs:!0,className:cP.listboxWrapper},G.createElement("div",{className:cP.screenReaderOnly},O.get("Listbox.ScreenReaderInstructions")),Q?G.createElement(lP,{text:Y}):G.createElement(oP,null,(e=>{let{height:t,width:n}=e;return G.createElement(FO,{model:h,app:o,constraints:T,layout:r,selections:m,selectionState:K,direction:a,frequencyMode:i,rangeSelect:f,checkboxes:s,height:t,width:n,update:g,fetchStart:v,postProcessPages:b,calculatePagesHeight:x,selectDisabled:y,keyboard:Z,showGray:S,scrollState:w,keyScroll:{state:F,reset:()=>$({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:W,set:H},renderedCallback:E,onCtrlF:ge,isModal:X})}))))))}));function fP(e){let{options:t={}}=e;const{model:n}=t,[r]=NL(n);return G.createElement(pP,{options:t,layout:r})}const hP=["__DO_NOT_USE__"],mP=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n=u(e,hP),r={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1},o=l(l(l({},n),r),t);return o};function gP(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}),[p,f]=d.useState(0);d.useEffect((()=>{if(p)throw new Error("Source or selection Api can not change after a listbox has been mounted");f(p+1)}),[c,u]);const h=c?function(e){let{app:t,qId:n,options:r={}}=e;const[o,a]=d.useState(),[i]=LL(),{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 d.useEffect((()=>{l?a(l):async function(){const e=i.get(n);if(e)a(e);else{const e=await t.getObject(n);i.set(e.id,e),e.once("closed",(()=>{i.clear(e.id)})),a(e)}}()}),[]),o}({app:t,qId:r,options:i}):function(e){var t;let{app:n,fieldIdentifier:r,stateName:o,options:a={}}=e;const[i,l]=d.useState(""),[s,c]=d.useState(!0),[u,p]=d.useState(),[f,h]=d.useState(),m=null!==(t=a.title)&&void 0!==t?t:f;d.useEffect((()=>{const e=a.histogram||"N"!==a.frequencyMode;r.qLibraryId&&e?async function(){try{const e=await n.getDimension(r.qLibraryId),t=await e.getLayout();h(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),h(r))}),[]);const{dense:g,checkboxes:v,listLayout:y,properties:b={}}=a;let{frequencyMode:x,histogram:S=!1}=a;switch(i&&i.failedToFetchFieldDef&&(S=!1,x="N"),!0){case["none","N","NX_FREQUENCY_NONE"].includes(x):x="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(x):x="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(x):x="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(x):x="R";break;default:x="N"}const w={dense:g};"horizontal"===y&&(w.dataLayout="grid",w.layoutOrder="column",w.maxVisibleColumns={auto:!0},w.maxVisibleRows={auto:!1,maxRows:1});const E=d.useRef();E.current||(E.current=BI());const C={qInfo:{qType:"njsListbox",qId:E.current},qListObjectDef:{qStateName:o,qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:S&&"N"===x?"V":x,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:S,checkboxes:v,layoutOptions:w,title:m};let k;if(Ve(!0,C,b),r.qLibraryId?(C.qListObjectDef.qLibraryId=r.qLibraryId,k=r.qLibraryId):(C.qListObjectDef.qDef.qFieldDefs=[r],k=r),"P"!==x&&S)if(null!=i&&i.multiFieldDim)C.frequencyMax="fetch";else{const e=r.qLibraryId?i:k;C.frequencyMax={qValueExpression:AO(e)}}const[L]=OL(C,s?null:n,k,o);return d.useEffect((()=>{L&&p(L)}),[L]),u}({app:t,fieldIdentifier:n,stateName:o,options:i}),m=d.useRef(a),g=u?i.selectionsApi:SI(t,h,[m,".njs-action-toolbar-more",".njs-action-toolbar-popover"],i)[0],v=d.useMemo((()=>l(l({},i),{},{selections:g,model:h,app:t,renderedCallback:s})),[i,g,h,t]);return g&&h?G.createElement(fP,{options:v}):null}function vP(e){let{element:t,app:n,fieldIdentifier:r,qId:o,stateName:a="$",options:i={},renderedCallback:l}=e;return wp.createPortal(G.createElement(gP,{app:n,element:t,fieldIdentifier:r,qId:o,stateName:a,options:i,renderedCallback:l}),t,BI())}const yP={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},bP=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=l({},yP);return Ve(!0,t,e),t};function xP(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:a={}}=e;const[i,l]=d.useState(!!a.show);return G.createElement(CI,{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})}function SP(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function wP(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}function EP(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?(e=>({qDef:{qFieldDefs:[e]}}))(e):l(l({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||BI(),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),SP(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 wP(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?(e=>({qDef:{qDef:e}}))(e):l(l({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||BI(),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),SP(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];wP(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}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?(e=>({qDef:{qFieldDefs:[e]}}))(e):l(l({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||BI(),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}var kP=(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},LP=(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]},RP=e=>0===Object.keys(e).length&&e.constructor===Object;var OP={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 IP=2**53-1;function PP(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function TP(e,t){const n=Ve(!0,{},t,e);return kP(n,"qOtherTotalSpec.qOtherCounted")||LP(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),kP(n,"qOtherTotalSpec.qOtherLimit")||LP(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function _P(e,t){return Ve(!0,{},t,e)}function NP(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var MP={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===kP(e,t)&&LP(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:PP,importCommonProperties:function(e,t,n){const r="masterobject"===kP(t,"properties.qInfo.qType")?"masterobject":kP(n,"qInfo.qType");LP(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:TP,createDefaultMeasure:_P,resolveValue:NP,getHypercubePath:function(e){const t=kP(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?(OP.indexAdded(n.qInterColumnSortOrder,a),++a):(--a,OP.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=Ve(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?LP(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||PP(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=Ve(!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=NP(a.max,r.dimensions.length,IP),l=NP(a.min,r.dimensions.length,0);return{maxDimensions:NP(o.max,i,IP),minDimensions:NP(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(TP(i.dimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(TP(i.dimensions[l],a));else if(i.dimensions.length)for(l=0;l<i.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(TP(i.dimensions[l],a));if(i.excludedDimensions.length)for(l=0;l<i.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(TP(i.excludedDimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(TP(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=kP(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=kP(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var qP={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=kP(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();OP.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&&(MP.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!RP(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=MP.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:a}),s=kP(n,a||"").qHyperCubeDef,c=kP(l,a||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=MP.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=MP.getDefaultDimension(),defaultMeasure:m=MP.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,MP.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&MP.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),MP.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),MP.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),MP.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),MP.copyPropertyIfExist("qMaxStackedCells",s,c),MP.copyPropertyIfExist("qNoOfLeftDims",s,c),MP.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),MP.copyPropertyOrSetDefault("qMode",s,c,"S"),MP.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),MP.copyPropertyOrSetDefault("qSortbyYValue",s,c),MP.copyPropertyOrSetDefault("qIndentMode",s,c),MP.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),MP.importCommonProperties(l,t,n),MP.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),MP.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),i.qProperty=l,i}(e)};const AP=e=>kP(e,"data.targets.0.propertyPath"),DP=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return qP.exportProperties})(AP(e))},zP=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return qP.importProperties})(AP(e))},jP=async e=>{let{halo:t,model:n,cellRef:r,newType:o}=e;const a=await n.getFullPropertyTree(),i=r.current.getQae(),s=DP(i),c=await(async e=>{let{halo:t,name:n,version:r}=e;const{types:o}=t;return await o.get({name:n,version:r}).supernova()})({halo:t,name:o}),u=c.qae;return zP(u)({exportFormat:s({propertyTree:a,hypercubePath:MP.getHypercubePath(i)}),initialProperties:l({qInfo:{qType:o},visualization:o},kP(u,"properties.initial",{})),dataDefinition:kP(u,"data.targets.0.",{}),hypercubePath:MP.getHypercubePath(u)})},FP={hypercube:qP};var $P=e=>DL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(e));function BP(e){let{d:t}=e;const n=yy();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=G.createElement(ww,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},G.createElement(LC,null,t.missing||t.error?G.createElement($P,{style:a}):G.createElement(tR,{style:a})));return G.createElement(mC,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},G.createElement(mC,{item:!0},i),G.createElement(mC,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},G.createElement(ww,{noWrap:!0,component:"p"},G.createElement(ww,{component:"span",variant:"subtitle2",color:r},t.description),G.createElement(ww,{component:"span"}," "),G.createElement(ww,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function WP(e){let{data:t}=e;const n=yy();return G.createElement(mC,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>G.createElement(BP,{d:e,key:t})));return r.length>0&&G.createElement(mC,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},G.createElement(ww,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function HP(e){let{title:t="Error",message:n="",data:r=[]}=e;return G.createElement(mC,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},G.createElement(mC,{item:!0},G.createElement($P,{style:{fontSize:"38px"}})),G.createElement(mC,{item:!0},G.createElement(ww,{variant:"h6",align:"center","data-tid":"error-title"},t)),G.createElement(mC,{item:!0},G.createElement(ww,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),G.createElement(WP,{data:r}))}const UP=["size"],VP="Progress",GP={root:"".concat(VP,"-root"),front:"".concat(VP,"-front"),back:"".concat(VP,"-back")},KP=wy("div")((e=>{let{theme:t}=e;return{["&.".concat(GP.root)]:{position:"relative",display:"inline-block"},["& .".concat(GP.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(GP.back)]:{color:t.palette.divider}}})),ZP={small:16,medium:32,large:64,xlarge:128};function XP(e){let{size:t="medium"}=e,n=u(e,UP);const r=ZP[t];return G.createElement(KP,{className:GP.root},G.createElement(FE,c({variant:"determinate",value:100,className:GP.back,size:r,thickness:3},n)),G.createElement(FE,c({variant:"indeterminate",disableShrink:!0,className:GP.front,size:r,thickness:3},n)))}const QP=["cancel","translator"],YP=["retry","translator"],JP={stripes:"".concat("LongRunningQuery","-stripes")},eT=wy(mC)((()=>({["& .".concat(JP.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 tT(e){let{cancel:t,translator:n}=e,r=u(e,QP);return G.createElement(G.Fragment,null,G.createElement(eT,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},G.createElement(mC,{item:!0},G.createElement(XP,null)),G.createElement(mC,{item:!0},G.createElement(ww,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),G.createElement(mC,c({item:!0},r),G.createElement(ES,{variant:"contained",onClick:t},n.get("Cancel"))))}function nT(e){let{retry:t,translator:n}=e,r=u(e,YP);return G.createElement(G.Fragment,null,G.createElement(mC,{item:!0},G.createElement($P,{style:{fontSize:"38px"}})),G.createElement(mC,{item:!0},G.createElement(ww,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),G.createElement(mC,{item:!0},G.createElement(ES,c({variant:"contained",onClick:t},r),n.get("Retry"))))}function rT(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=d.useContext(AS);return G.createElement(mC,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:JP.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&G.createElement(tT,{cancel:r.cancel,translator:o,className:JP.cancel}),n&&G.createElement(nT,{retry:r.retry,translator:o,className:JP.retry}))}function oT(){return G.createElement(mC,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},G.createElement(XP,{size:"large"}))}const aT="Header",iT={containerStyle:"".concat(aT,"-containerStyle"),containerTitleStyle:"".concat(aT,"-containerTitleStyle")},lT=wy(mC)((e=>{let{theme:t}=e;return{["&.".concat(iT.containerStyle)]:{flexGrow:0},["&.".concat(iT.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),sT="njs-cell-title",cT="njs-cell-sub-title";function uT(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,p]=d.useState([]),[f,h]=qL(),[m,g]=d.useState(!1);d.useEffect((()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions((e=>{p([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])}))}),[n]),d.useEffect((()=>{if(!h)return;const{width:e}=h;g(e<221)}),[h]);const v=l||s,y=[iT.containerStyle,...v?[iT.containerTitleStyle]:[]],b=(o||c)&&(m||!v),x=v&&!b&&!m,S=G.createElement(pI,{show:x,selections:{show:c,api:n.component.selections,onKeyDeactivate:a.refocusContent},actions:u,popover:{show:b,anchorEl:r},focusHandler:a});return G.createElement(lT,{ref:f,item:!0,container:!0,wrap:"nowrap",className:y.join(" ")},G.createElement(mC,{item:!0,zeroMinWidth:!0,xs:!0},G.createElement(mC,{container:!0,wrap:"nowrap",direction:"column"},l&&G.createElement(ww,{variant:"h6",noWrap:!0,className:sT,style:i.main},t.title),s&&G.createElement(ww,{variant:"body2",noWrap:!0,className:cT,style:i.subTitle},t.subtitle))),G.createElement(mC,{item:!0},S))}const dT={itemStyle:"".concat("Footer","-itemStyle")},pT=wy(mC)((e=>{let{theme:t}=e;return{["& .".concat(dT.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),fT="njs-cell-footer";function hT(e){let{layout:t,titleStyles:n={}}=e;return t&&t.showTitles&&t.footnote?G.createElement(pT,{container:!0},G.createElement(mC,{item:!0,className:dT.itemStyle},G.createElement(ww,{noWrap:!0,variant:"body2",className:fT,style:n.footer},t.footnote))):null}class mT{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 gT="njs-viz";function vT(e){let{sn:t,snOptions:n,snPlugins:r,layout:o,appLayout:a,halo:i}=e;const{component:s}=t,{theme:c,language:u,constraints:p,keyboardNavigation:f}=d.useContext(AS),[h]=d.useState((()=>new mT)),[m,g]=d.useState(!1),[v,y]=d.useState(0),[b,x,S]=qL(),[w,E]=d.useState(null),C=d.useCallback((e=>{e&&E(e)}),[]);return d.useEffect((()=>{if(w)return s.created({options:n}),s.mounted(w),g(!0),()=>{h.stop(),s.willUnmount()}}),[w,s]),d.useEffect((()=>{m&&w&&x&&(!s.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||h.schedule((()=>{const e=[];return p.passive||e.push("passive"),p.active||e.push("interact"),p.select||e.push("select"),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: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),y(v+1))}))})))}),[x,n,r,w,S,o,a,c,u,p,m,f]),G.createElement("div",{ref:b,"data-render-count":v,style:{position:"relative",height:"100%"},className:gT},G.createElement("div",{ref:C,style:{position:"absolute",width:"100%",height:"100%"}}))}const yT={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},bT={"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 xT(e,t){return t?function(e){var t;let n,r,o,a;if(null!=e&&null!==(t=e.session)&&void 0!==t&&t.config)return 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 ST(e,t){const n=null==e?void 0:e.bgImage;if(n){let a="";var r,o;if("media"===n.mode||"media"===e.useImage)a=null!=n&&null!==(r=n.mediaUrl)&&void 0!==r&&null!==(o=r.qStaticContentUrl)&&void 0!==o&&o.qUrl?decodeURIComponent(n.mediaUrl.qStaticContentUrl.qUrl):void 0,a=xT(t,a);"expression"===n.mode&&(a=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const i=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=bT[e.bgImage.position]),n}(e),l=function(e){var t;let n=yT.originalSize;return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.sizing&&(n=yT[e.bgImage.sizing]),n}(e);return a?{url:a,pos:i,size:l}:void 0}}function wT(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t?r.useExpression?t.validateColor(r.colorExpression):r.color&&"none"!==r.color.color?t.getColorPickerColor(r.color,!0):void 0:t&&n?t.getStyle("object.".concat(n),"","backgroundColor"):t?t.getStyle("","","backgroundColor"):void 0}function ET(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"),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 CT="njs-cell",kT=(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 LT(e){let{delay:t=750}=e;const[n,r]=d.useState(!1);return d.useEffect((()=>{const e=setTimeout((()=>r(!0)),t);return()=>clearTimeout(e)}),[]),n?G.createElement(oT,null):null}const RT=e=>!e.qError||7005===e.qError.qErrorCode,OT=(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}})),IT=e=>e&&(Array.isArray(e)?e:[e])||[],PT=(e,t,n,r)=>{const o=r.dimensions.min(),a=r.measures.min(),i=r.resolveLayout(t);return{reqDimErrors:OT(o,IT(i.qDimensionInfo||i.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:OT(a,IT(i.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},TT=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=IT(f.qDimensionInfo||f.qItems).filter(RT),m=IT(f.qMeasureInfo).filter(RT);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=PT(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]}],y=s?c:v;return[s||a,{title:s?c[0].title:e.get("Visualization.Incomplete"),data:y}]},_T=d.forwardRef(((e,t)=>{let{halo:n,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:i,onMount:s,currentId:c,emitter:u}=e;const{app:p,types:f}=n,{nebbie:h}=n.public,{disableCellPadding:m=!1}=n.context||{},{theme:g,translator:v,language:y,keyboardNavigation:b}=d.useContext(AS),x=yy(),[S,w,E]=qL(),[C,k]=d.useReducer(kT,{loading:!1,loaded:!1,longRunningQuery:!1,error:(L=i)?{title:L.message}:null,sn:null,visualization:null});var L;const[R,{validating:O,canCancel:I,canRetry:P},T]=NL(r),[_]=ML(p),[N,M,q]=qL(),[A,D]=d.useState(o),[z,j]=d.useState(a),F="njs-cell-".concat(c),[$]=SI(p,r,["#".concat(F),".njs-action-toolbar-popover"]),[B,W]=d.useState(!1),H=d.useRef({enter:null,leave:null}),[U,V]=d.useState(void 0),[K,Z]=d.useState(void 0),[X,Q]=d.useState(void 0),Y=d.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});d.useEffect((()=>{yI(Y.current)}),[]),d.useEffect((()=>{if(R&&n.public.theme){const e=R.components?R.components.find((e=>"general"===e.key)):null;Q({main:ET(e,"main",n.public.theme,R.visualization),footer:ET(e,"footer",n.public.theme,R.visualization),subTitle:ET(e,"subTitle",n.public.theme,R.visualization)}),V(wT(e,n.public.theme,R.visualization)),Z(ST(e,n.app))}}),[R,n.public.theme,n.app,g]),Y.current.blurCallback=e=>{n.root.toggleFocusOfCells(),e&&q&&q.focus()},Y.current.refocusContent=()=>{C.sn.component&&"function"==typeof C.sn.component.focus&&C.sn.component.focus()};d.useEffect((()=>{if(i||!_||!R)return;if(C.visualization===R.visualization&&C.sn)return void(async e=>{const[t,n]=await TT(v,R,e.generator.qae.data,r);k(t?{type:"ERROR",error:n}:{type:"RENDER"}),(e=>{let{sn:t,layout:n,model:r}=e;const o=t&&t.component&&t.component.selections;if(o&&o.id&&r.id&&o.id===r.id){if(n&&n.qSelectionInfo&&n.qSelectionInfo.qInSelections&&!o.isModal()){const{targets:e}=t.generator.qae.data,n=e[0].propertyPath;o.goModal(n)}n.qSelectionInfo&&n.qSelectionInfo.qInSelections||o.isModal()&&o.noModal()}})({sn:C.sn,layout:R,model:r})})(C.sn);const e=f.getSupportedVersion(R.visualization,R.version);return(async(e,t)=>{k({type:"LOADING"});const n=await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:a,app:i,selections:l,nebbie:s,focusHandler:c,emitter:u}=e;try{const e=await(async e=>{let{types:t,name:n,version:r}=e;return await t.get({name:n,version:r}).supernova()})({types:n,name:r,version:o});return e.create({model:a,app:i,selections:l,nebbie:s,focusHandler:c,emitter:u})}catch(e){t(o?{type:"ERROR",error:{title:e.message}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(r,"' that supports current object version. Did you forget to register ").concat(r,"?")}})}})({dispatch:k,types:f,visualization:e,version:t,model:r,app:p,selections:$,nebbie:h,focusHandler:Y.current,emitter:u});n&&(k({type:"LOADED",sn:n,visualization:e}),s())})(R.visualization,e),()=>{}}),[f,C.sn,r,$,R,_,y]),d.useEffect((()=>{if(!O)return;const e=setTimeout((()=>k({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[O]),d.useImperativeHandle(t,(()=>({getQae:()=>C.sn.generator.qae,toggleFocus(e){"function"==typeof C.sn.component.focus&&(e?C.sn.component.focus():C.sn.component.blur())},setSnOptions:D,setSnPlugins:j,async takeSnapshot(){const{width:e,height:t}=w;let n=JSON.parse(JSON.stringify(R));return"function"==typeof C.sn.component.setSnapshotData&&(n=await C.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:v.language(),theme:x.name,appLayout:_,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof n.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return n.config.snapshot.capture(e)}})),[C.sn,M,w,R,x.name,_]);let J=null;return C.loading&&!C.longRunningQuery?J=G.createElement(LT,null):C.error?J=G.createElement(HP,C.error):C.loaded&&(J=G.createElement(vT,{key:R.visualization,sn:C.sn,halo:n,snOptions:A,snPlugins:z,layout:R,appLayout:_})),G.createElement(cw,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:U||"unset",backgroundImage:K&&K.url?"url(".concat(K.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:K&&K.size,backgroundPosition:K&&K.pos},elevation:0,square:!0,className:CT,ref:S,id:F,onMouseEnter:()=>{H.current.leave&&clearTimeout(H.current.leave),H.enter||(H.current.enter=setTimeout((()=>{W(!0),H.current.enter=null}),250))},onMouseLeave:()=>{H.current.enter&&clearTimeout(H.current.enter),H.current.leave||(H.current.leave=setTimeout((()=>{W(!1),H.current.leave=null}),750))}},G.createElement(mC,{container:!0,direction:"column",gap:0,style:l(l({position:"relative",width:"100%",height:"100%"},m?{}:{padding:x.spacing(1)}),C.longRunningQuery?{opacity:"0.3"}:{})},E&&R&&C.sn&&G.createElement(uT,{layout:R,sn:C.sn,anchorEl:E,hovering:B,focusHandler:Y.current,titleStyles:X}," "),G.createElement(mC,{tabIndex:b?0:-1,onKeyDown:b?e=>{["Enter"," ","Spacebar"].includes(e.key)&&n.root.toggleFocusOfCells(c)}:null,item:!0,xs:!0,style:{height:"100%"},ref:N},J),G.createElement(hT,{layout:R,titleStyles:X})),C.longRunningQuery&&G.createElement(rT,{canCancel:I,canRetry:P,api:T}))}));function NT(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,emitter:l,initialError:s}=e;const{root:c}=t,u=G.createRef(),d=BI(),p=wp.createPortal(G.createElement(_T,{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]}function MT(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function qT(e,t){return MT(e)&&MT(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}function AT(){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)?qT(a,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...AT("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function DT(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 zT=()=>{};function jT(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=zT,a=null,i=null,s=null;const c=new Promise((e=>{s=e}));let u={},d=[];const p=new ne,f=async e=>{i?(async()=>{await c,a.current.setSnOptions(l(l({},u),e))})():u=l(l({},u),e)},h=async e=>{DT(e),i?(async()=>{await c,a.current.setSnPlugins(e)})():d=e},m={id:e.id,model:e,async destroy(){await r(),o(),o=zT},async convertTo(n){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await jP({halo:t,model:e,cellRef:a,newType:n});return r&&(e.__snInterceptor?await e.__snInterceptor.setProperties.call(e,o.qProperty):await e.setProperties(o.qProperty)),o},on(e,t){p.on(e,t)},off(e,t){p.off(e,t)},__DO_NOT_USE__:{mount(r){if(i)throw new Error("Already mounted");return i=r,[o,a]=NT({halo:t,element:r,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:n,onMount:s,emitter:p}),c},async applyProperties(t){const n=AT("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){f(e)},plugins(e){h(e)},exportImage:()=>a.current.exportImage(),takeSnapshot:()=>a.current.takeSnapshot(),getModel:()=>e}};return m}async function FT(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const a=jT({model:e,halo:n,initialError:r,onDestroy:o});return t.options&&a.__DO_NOT_USE__.options(t.options),t.plugins&&a.__DO_NOT_USE__.plugins(t.plugins),t.element&&await a.__DO_NOT_USE__.mount(t.element),a}async function $T(e,t){let n,{type:r,version:o,fields:a,properties:i,options:l,plugins:s,element:c,extendProperties:u}=e,d={};try{const e=t.types.get({name:r,version:o});d=await e.initialProperties(i,u);const n=await e.supernova();a&&function(e){let{sn:t,properties:n,fields:r}=e;if(!r.length)return;const o=t.qae.data.targets[0];if(!o)return;const{propertyPath:a}=o,i=a.split("/");let l=n;for(let e=0;e<i.length;e++){const t=i[e];l=t?l[t]:l}const s=(a.match("/qListObjectDef")?CP:EP)({dc:l,def:o,properties:n});r.forEach((e=>{const t=function(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"}(e);"measure"===t?s.addMeasure(e):s.addDimension(e)}))}({sn:n,properties:d,fields:a}),i&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},d)}catch(e){n=e,d={qInfo:{qType:r},visualization:r}}const p=await t.app.createSessionObject(d);RL.set(p.id,p);const f=(e=>{const t=kL({type:"SET",value:e});return()=>{t(),RL.clear(e.id)}})(p);return FT(p,{options:l,plugins:s,element:c},t,n,(async()=>{await t.app.destroySessionObject(p.id),f()}))}const BT="njs-sheet";function WT(e){let{model:t,halo:n,initialSnOptions:r,initialSnPlugins:o,initialError:a,onMount:i}=e;const{root:l}=n,[s]=NL(t),{theme:c}=d.useContext(AS),[u,p]=d.useState([]),[f,h]=d.useState(void 0),[m,g]=d.useState(void 0),[v,y]=d.useState("");d.useEffect((()=>{if(s){const e=JSON.stringify(s.cells);if(e===v)return;y(e);const t=async()=>{u.forEach((e=>{l.removeCell(e.currentId)}));const e=s.cells,t=await Promise.all(e.map((async e=>{let t;const r=new Promise((e=>{t=e})),o=u.find((t=>t.id===e.name));if(o)return o.bounds=e.bounds,delete o.mountedPromise,o;const a=await async function(e,t){let{id:n,options:r,plugins:o,element:a}=e;const i="".concat(n);let l=SL.get(i);l||(l=t.app.getObject(n),SL.set(i,l));const s=await l;return RL.set(i,s),FT(s,{options:r,plugins:o,element:a},t)}({id:e.name},n);return{model:a.model,id:e.name,bounds:e.bounds,cellRef:G.createRef(),currentId:BI(),mounted:t,mountedPromise:r}})));t.forEach((e=>l.addCell(e.currentId,e.cellRef))),p(t)};t()}}),[s]);const b=d.useMemo((()=>u?u.map((e=>function(e,t,n,r,o,a){const{x:i,y:l,width:s,height:c}=e.bounds;return G.createElement("div",{style:{left:"".concat(i,"%"),top:"".concat(l,"%"),width:"".concat(s,"%"),height:"".concat(c,"%"),position:"absolute"}},G.createElement(_T,{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))):[]),[u]);d.useEffect((()=>{const e=null!=s&&s.components?s.components.find((e=>"general"===e.key)):null;h(wT(e,n.public.theme)),g(ST(e,n.app))}),[s,n.public.theme,n.app,c]);const x=!s||Number.isNaN(s.height)?"100%":"".concat(Number(s.height),"%"),S=u.map((e=>e.mountedPromise)),w=S.filter((e=>!!e));return w.length&&Promise.all(S).then((()=>{i()})),G.createElement("div",{className:BT,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}},b)}function HT(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,initialError:l}=e;const{root:s}=t,c=G.createRef(),u=wp.createPortal(G.createElement(WT,{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]}const UT=()=>{};function VT(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=UT,a=null,i=null,s=null;const c=new Promise((e=>{s=e}));let u={},d=[];const p=async e=>{i?(async()=>{await c,a.current.setSnOptions(l(l({},u),e))})():u=l(l({},u),e)},f=async e=>{DT(e),i?(async()=>{await c,a.current.setSnPlugins(e)})():d=e},h={id:e.id,model:e,async destroy(){await r(),o(),o=UT},__DO_NOT_USE__:{mount(r){if(i)throw new Error("Already mounted");return i=r,[o,a]=HT({halo:t,element:r,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:n,onMount:s}),c},async applyProperties(t){const n=AT("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){p(e)},plugins(e){f(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return h}async function GT(e,t){let{id:n,options:r,plugins:o,element:a}=e;const i="".concat(n);let l=SL.get(i);l||(l=t.app.getObject(n),SL.set(i,l));const s=await l;return RL.set(i,s),"sheet"===s.genericType?async function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const a=VT({model:e,halo:n,initialError:r,onDestroy:o});return t.options&&a.__DO_NOT_USE__.options(t.options),t.plugins&&a.__DO_NOT_USE__.plugins(t.plugins),t.element&&await a.__DO_NOT_USE__.mount(t.element),a}(s,{options:r,plugins:o,element:a},t):FT(s,{options:r,plugins:o,element:a},t)}function KT(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const ZT=Ve.bind(null,!0),XT={},{isArray:QT}=Array;function YT(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function JT(e){return void 0===e}function e_(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function t_(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]=JT(e[r||t])?a:e[t],e=e[r||t]})),e}function n_(e,t){let n=!0;if(YT(e)&&YT(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{n_(e[r],t[r])||(n=!1)})),n);if(QT(e)&&QT(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!n_(e[n],t[n]))return!1;return!0}return e===t}XT.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const a=function(e){return e?ZT({},{val:e}).val:e}(t[o]),i=e[o],l="".concat(n,"/").concat(o);n_(a,i)||e_(t,o)||(JT(i)?r.push({op:"add",path:l,value:a}):YT(a)&&YT(i)?r=r.concat(XT.generate(i,a,l)):QT(a)&&QT(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]&&JT(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(n_(t,o))return r;if(!JT(t[0])&&JT(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(XT.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=>{JT(t[o])&&!e_(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},XT.apply=function(e,t){t.forEach((t=>{let n=t_(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(QT(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(QT(o)&&QT(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(YT(o)&&YT(t.value))i=o,Object.keys(i).forEach((e=>{Object.getOwnPropertyDescriptor(i,e).configurable&&!e_(i,e)&&delete i[e]})),ZT(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=t_(e,t.from);QT(n)?n.splice(+r,0,o.splice(+a,1)[0]):(n[r]=o[a],delete o[a])}else"remove"===t.op&&(QT(n)?n.splice(+r,1):delete n[r]);var i}))},XT.clone=function(e){return ZT({},e)},XT.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},XT.updateObject=function(e,t){Object.keys(e).length?XT.apply(e,XT.generate(e,t)):ZT(e,t)};const r_=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(ne.prototype).forEach((e=>{r[e]=ne.prototype[e]})),ne.init(r),r);var r;return n};let o_,a_;function i_(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 l_(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null}}}function s_(e){u_(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 c_(e){if(e.__hooks.obsolete)return Promise.resolve();a_=-1,o_=e,o_.__hooks.initiated&&o_.__hooks.list.length;try{o_.fn.call(null)}catch(e){console.error(e)}o_.__hooks.initiated=!0;const t=o_.__hooks;return h_(o_),a_=void 0,o_=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){u_(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){u_(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 u_(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 d_(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 p_(e,t,n){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function f_(e){return e.__hooks.imperativeHandle}function h_(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function m_(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,h_(e))}function g_(e){if(void 0===o_)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=o_.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function v_(e){g_(++a_);return o_.context[e]}function y_(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function b_(e){return{__hooked:!0,fn:e,initiate:l_,run:c_,teardown:s_,runSnaps:d_,runMenu:p_,focus:k_,blur:L_,observeActions:m_,getImperativeHandle:f_,updateRectOnNextRun:y_}}function x_(e){const t=g_(++a_);if(!t.value){t.component=o_;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,c_(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function S_(e,t){const n=g_(++a_);i_(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===o_.__hooks.pendingEffects.indexOf(n)&&o_.__hooks.pendingEffects.push(n))}function w_(e,t){const n=g_(++a_);i_(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],o_.__hooks.pendingLayoutEffects.push(n))}function E_(e,t){const n=g_(++a_);return i_(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function C_(){return v_("element")}function k_(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 L_(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 R_={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},O_=Object.keys(R_);function I_(e,t){const n=l({},R_);var r;r=n,Object.keys(ne.prototype).forEach((e=>{r[e]=ne.prototype[e]})),ne.init(r);const o={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==O_.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]}));const a=function(e){let{sn:t,component:n}=e;const r={},o=[],a=r_(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:o}),i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:i,selections:t.selections,actions:a.actions}),Object.assign(n,{actions:a.actions,model:t.model,app:t.app,selections:t.selections}),[n,a]}function P_(e,t,n){"function"==typeof e.component&&(e.component=b_(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"],s={};t.model&&t.model.session||(s.select=!0);const c={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,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(c,{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))),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=c.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n){return e.component.runMenu(this,t,n)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return i.forEach((e=>{a[e]=JSON.stringify(c.context[e])})),a.themeName=c.context.theme?c.context.theme.name():void 0,a.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):I_(e,t),a=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.qae.properties.onChange.call({model:t.model},...r),t.model.__snInterceptor.setProperties.call(this,...r)},t.model.applyPatches=function(n,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const a=XT.clone(o),i=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));XT.apply(o,i),e.qae.properties.onChange.call({model:t.model},o);const l=XT.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.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 T_=()=>{};function __(e,t){return void 0===e?()=>t:()=>e}function N_(e){const t=e||{};return{min:"function"==typeof t.min?t.min:__(t.min,0),max:"function"==typeof t.max?t.max:__(t.max,1e3),added:t.added||t.add||T_,description:t.description||T_,moved:t.moved||t.move||T_,removed:t.removed||t.remove||T_,replaced:t.replaced||t.replace||T_,isDefined:()=>!!e}}function M_(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=>((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})(e,n,{}),dimensions:N_(e.dimensions),measures:N_(e.measures)}}function q_(){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);const r={properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(M_)},exportProperties:t.exportProperties,importProperties:t.importProperties};return r}function A_(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:q_(n.qae),component:n.component||{},create:e=>P_(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}var D_={},z_={get exports(){return D_},set exports(e){D_=e}};!function(e,t){var n;t=e.exports=d,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=Number.MAX_SAFE_INTEGER||9007199254740991,o=t.re=[],a=t.src=[],i=t.tokens={},l=0;function s(e){i[e]=l++}s("NUMERICIDENTIFIER"),a[i.NUMERICIDENTIFIER]="0|[1-9]\\d*",s("NUMERICIDENTIFIERLOOSE"),a[i.NUMERICIDENTIFIERLOOSE]="[0-9]+",s("NONNUMERICIDENTIFIER"),a[i.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",s("MAINVERSION"),a[i.MAINVERSION]="("+a[i.NUMERICIDENTIFIER]+")\\.("+a[i.NUMERICIDENTIFIER]+")\\.("+a[i.NUMERICIDENTIFIER]+")",s("MAINVERSIONLOOSE"),a[i.MAINVERSIONLOOSE]="("+a[i.NUMERICIDENTIFIERLOOSE]+")\\.("+a[i.NUMERICIDENTIFIERLOOSE]+")\\.("+a[i.NUMERICIDENTIFIERLOOSE]+")",s("PRERELEASEIDENTIFIER"),a[i.PRERELEASEIDENTIFIER]="(?:"+a[i.NUMERICIDENTIFIER]+"|"+a[i.NONNUMERICIDENTIFIER]+")",s("PRERELEASEIDENTIFIERLOOSE"),a[i.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[i.NUMERICIDENTIFIERLOOSE]+"|"+a[i.NONNUMERICIDENTIFIER]+")",s("PRERELEASE"),a[i.PRERELEASE]="(?:-("+a[i.PRERELEASEIDENTIFIER]+"(?:\\."+a[i.PRERELEASEIDENTIFIER]+")*))",s("PRERELEASELOOSE"),a[i.PRERELEASELOOSE]="(?:-?("+a[i.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[i.PRERELEASEIDENTIFIERLOOSE]+")*))",s("BUILDIDENTIFIER"),a[i.BUILDIDENTIFIER]="[0-9A-Za-z-]+",s("BUILD"),a[i.BUILD]="(?:\\+("+a[i.BUILDIDENTIFIER]+"(?:\\."+a[i.BUILDIDENTIFIER]+")*))",s("FULL"),s("FULLPLAIN"),a[i.FULLPLAIN]="v?"+a[i.MAINVERSION]+a[i.PRERELEASE]+"?"+a[i.BUILD]+"?",a[i.FULL]="^"+a[i.FULLPLAIN]+"$",s("LOOSEPLAIN"),a[i.LOOSEPLAIN]="[v=\\s]*"+a[i.MAINVERSIONLOOSE]+a[i.PRERELEASELOOSE]+"?"+a[i.BUILD]+"?",s("LOOSE"),a[i.LOOSE]="^"+a[i.LOOSEPLAIN]+"$",s("GTLT"),a[i.GTLT]="((?:<|>)?=?)",s("XRANGEIDENTIFIERLOOSE"),a[i.XRANGEIDENTIFIERLOOSE]=a[i.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",s("XRANGEIDENTIFIER"),a[i.XRANGEIDENTIFIER]=a[i.NUMERICIDENTIFIER]+"|x|X|\\*",s("XRANGEPLAIN"),a[i.XRANGEPLAIN]="[v=\\s]*("+a[i.XRANGEIDENTIFIER]+")(?:\\.("+a[i.XRANGEIDENTIFIER]+")(?:\\.("+a[i.XRANGEIDENTIFIER]+")(?:"+a[i.PRERELEASE]+")?"+a[i.BUILD]+"?)?)?",s("XRANGEPLAINLOOSE"),a[i.XRANGEPLAINLOOSE]="[v=\\s]*("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:"+a[i.PRERELEASELOOSE]+")?"+a[i.BUILD]+"?)?)?",s("XRANGE"),a[i.XRANGE]="^"+a[i.GTLT]+"\\s*"+a[i.XRANGEPLAIN]+"$",s("XRANGELOOSE"),a[i.XRANGELOOSE]="^"+a[i.GTLT]+"\\s*"+a[i.XRANGEPLAINLOOSE]+"$",s("COERCE"),a[i.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",s("COERCERTL"),o[i.COERCERTL]=new RegExp(a[i.COERCE],"g"),s("LONETILDE"),a[i.LONETILDE]="(?:~>?)",s("TILDETRIM"),a[i.TILDETRIM]="(\\s*)"+a[i.LONETILDE]+"\\s+",o[i.TILDETRIM]=new RegExp(a[i.TILDETRIM],"g");s("TILDE"),a[i.TILDE]="^"+a[i.LONETILDE]+a[i.XRANGEPLAIN]+"$",s("TILDELOOSE"),a[i.TILDELOOSE]="^"+a[i.LONETILDE]+a[i.XRANGEPLAINLOOSE]+"$",s("LONECARET"),a[i.LONECARET]="(?:\\^)",s("CARETTRIM"),a[i.CARETTRIM]="(\\s*)"+a[i.LONECARET]+"\\s+",o[i.CARETTRIM]=new RegExp(a[i.CARETTRIM],"g");s("CARET"),a[i.CARET]="^"+a[i.LONECARET]+a[i.XRANGEPLAIN]+"$",s("CARETLOOSE"),a[i.CARETLOOSE]="^"+a[i.LONECARET]+a[i.XRANGEPLAINLOOSE]+"$",s("COMPARATORLOOSE"),a[i.COMPARATORLOOSE]="^"+a[i.GTLT]+"\\s*("+a[i.LOOSEPLAIN]+")$|^$",s("COMPARATOR"),a[i.COMPARATOR]="^"+a[i.GTLT]+"\\s*("+a[i.FULLPLAIN]+")$|^$",s("COMPARATORTRIM"),a[i.COMPARATORTRIM]="(\\s*)"+a[i.GTLT]+"\\s*("+a[i.LOOSEPLAIN]+"|"+a[i.XRANGEPLAIN]+")",o[i.COMPARATORTRIM]=new RegExp(a[i.COMPARATORTRIM],"g");s("HYPHENRANGE"),a[i.HYPHENRANGE]="^\\s*("+a[i.XRANGEPLAIN]+")\\s+-\\s+("+a[i.XRANGEPLAIN]+")\\s*$",s("HYPHENRANGELOOSE"),a[i.HYPHENRANGELOOSE]="^\\s*("+a[i.XRANGEPLAINLOOSE]+")\\s+-\\s+("+a[i.XRANGEPLAINLOOSE]+")\\s*$",s("STAR"),a[i.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c<l;c++)n(c,a[c]),o[c]||(o[c]=new RegExp(a[c]));function u(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?o[i.LOOSE]:o[i.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?o[i.LOOSE]:o[i.FULL]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<r)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}t.parse=u,t.valid=function(e,t){var n=u(e,t);return n?n.version:null},t.clean=function(e,t){var n=u(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=d,d.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},d.prototype.toString=function(){return this.version},d.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof d||(e=new d(e,this.options)),this.compareMain(e)||this.comparePre(e)},d.prototype.compareMain=function(e){return e instanceof d||(e=new d(e,this.options)),f(this.major,e.major)||f(this.minor,e.minor)||f(this.patch,e.patch)},d.prototype.comparePre=function(e){if(e instanceof d||(e=new d(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return f(r,o)}while(++t)},d.prototype.compareBuild=function(e){e instanceof d||(e=new d(e,this.options));var t=0;do{var r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return f(r,o)}while(++t)},d.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(v(e,t))return null;var n=u(e),r=u(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var a="prerelease"}for(var i in n)if(("major"===i||"minor"===i||"patch"===i)&&n[i]!==r[i])return o+i;return a},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function h(e,t,n){return new d(e,n).compare(new d(t,n))}function m(e,t,n){return h(e,t,n)>0}function g(e,t,n){return h(e,t,n)<0}function v(e,t,n){return 0===h(e,t,n)}function y(e,t,n){return 0!==h(e,t,n)}function b(e,t,n){return h(e,t,n)>=0}function x(e,t,n){return h(e,t,n)<=0}function S(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 v(e,n,r);case"!=":return y(e,n,r);case">":return m(e,n,r);case">=":return b(e,n,r);case"<":return g(e,n,r);case"<=":return x(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===E?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),o=new d(t,n);return r.compare(o)||r.compareBuild(o)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=m,t.lt=g,t.eq=v,t.neq=y,t.gte=b,t.lte=x,t.cmp=S,t.Comparator=w;var E={};function C(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof C)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new C(e.raw,t);if(e instanceof w)return new C(e.value,t);if(!(this instanceof C))return new C(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function k(e,t){for(var n=!0,r=e.slice(),o=r.pop();n&&r.length;)n=r.every((function(e){return o.intersects(e,t)})),o=r.pop();return n}function L(e){return!e||"x"===e.toLowerCase()||"*"===e}function R(e,t,n,r,o,a,i,l,s,c,u,d,p){return((t=L(n)?"":L(r)?">="+n+".0.0":L(o)?">="+n+"."+r+".0":">="+t)+" "+(l=L(s)?"":L(c)?"<"+(+s+1)+".0.0":L(u)?"<"+s+"."+(+c+1)+".0":d?"<="+s+"."+c+"."+u+"-"+d:"<="+l)).trim()}function O(e,t,r){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(o=0;o<e.length;o++)if(n(e[o].semver),e[o].semver!==E&&e[o].semver.prerelease.length>0){var a=e[o].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0}function I(e,t,n){try{t=new C(t,n)}catch(e){return!1}return t.test(e)}function P(e,t,n,r){var o,a,i,l,s;switch(e=new d(e,r),t=new C(t,r),n){case">":o=m,a=x,i=g,l=">",s=">=";break;case"<":o=g,a=b,i=m,l="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(I(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],p=null,f=null;if(u.forEach((function(e){e.semver===E&&(e=new w(">=0.0.0")),p=p||e,f=f||e,o(e.semver,p.semver,r)?p=e:i(e.semver,f.semver,r)&&(f=e)})),p.operator===l||p.operator===s)return!1;if((!f.operator||f.operator===l)&&a(e,f.semver))return!1;if(f.operator===s&&i(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?o[i.COMPARATORLOOSE]:o[i.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=E},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===E||e===E)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return S(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new C(e.value,t),I(this.value,n,t));if(""===e.operator)return""===e.value||(n=new C(this.value,t),I(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),l=S(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=S(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||a&&i||l||s},t.Range=C,C.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},C.prototype.toString=function(){return this.range},C.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[i.HYPHENRANGELOOSE]:o[i.HYPHENRANGE];e=e.replace(r,R),n("hyphen replace",e),e=e.replace(o[i.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,o[i.COMPARATORTRIM]),e=(e=(e=e.replace(o[i.TILDETRIM],"$1~")).replace(o[i.CARETTRIM],"$1^")).split(/\s+/).join(" ");var a=t?o[i.COMPARATORLOOSE]:o[i.COMPARATOR],l=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?o[i.CARETLOOSE]:o[i.CARET];return e.replace(r,(function(t,r,o,a,i){var l;return n("caret",e,t,r,o,a,i),L(r)?l="":L(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":L(a)?l="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":i?(n("replaceCaret pr",i),l="0"===r?"0"===o?">="+r+"."+o+"."+a+"-"+i+" <"+r+"."+o+"."+(+a+1):">="+r+"."+o+"."+a+"-"+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+a+"-"+i+" <"+(+r+1)+".0.0"):(n("no pr"),l="0"===r?"0"===o?">="+r+"."+o+"."+a+" <"+r+"."+o+"."+(+a+1):">="+r+"."+o+"."+a+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+a+" <"+(+r+1)+".0.0"),n("caret return",l),l}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?o[i.TILDELOOSE]:o[i.TILDE];return e.replace(r,(function(t,r,o,a,i){var l;return n("tilde",e,t,r,o,a,i),L(r)?l="":L(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":L(a)?l=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":i?(n("replaceTilde pr",i),l=">="+r+"."+o+"."+a+"-"+i+" <"+r+"."+(+o+1)+".0"):l=">="+r+"."+o+"."+a+" <"+r+"."+(+o+1)+".0",n("tilde return",l),l}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?o[i.XRANGELOOSE]:o[i.XRANGE];return e.replace(r,(function(r,o,a,i,l,s){n("xRange",e,r,o,a,i,l,s);var c=L(a),u=c||L(i),d=u||L(l),p=d;return"="===o&&p&&(o=""),s=t.includePrerelease?"-0":"",c?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&p?(u&&(i=0),l=0,">"===o?(o=">=",u?(a=+a+1,i=0,l=0):(i=+i+1,l=0)):"<="===o&&(o="<",u?a=+a+1:i=+i+1),r=o+a+"."+i+"."+l+s):u?r=">="+a+".0.0"+s+" <"+(+a+1)+".0.0"+s:d&&(r=">="+a+"."+i+".0"+s+" <"+a+"."+(+i+1)+".0"+s),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[i.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(l=l.filter((function(e){return!!e.match(a)}))),l=l.map((function(e){return new w(e,this.options)}),this)},C.prototype.intersects=function(e,t){if(!(e instanceof C))throw new TypeError("a Range is required");return this.set.some((function(n){return k(n,t)&&e.set.some((function(e){return k(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new C(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},C.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1},t.satisfies=I,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var a=new C(t,n)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(r&&-1!==o.compare(e)||(o=new d(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,o=null;try{var a=new C(t,n)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(r&&1!==o.compare(e)||(o=new d(r=e,n)))})),r},t.minVersion=function(e,t){e=new C(e,t);var n=new d("0.0.0");if(e.test(n))return n;if(n=new d("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r){e.set[r].forEach((function(e){var t=new d(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!m(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new C(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return P(e,t,"<",n)},t.gtr=function(e,t,n){return P(e,t,">",n)},t.outside=P,t.prerelease=function(e,t){var n=u(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new C(e,n),t=new C(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=o[i.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),o[i.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;o[i.COERCERTL].lastIndex=-1}else n=e.match(o[i.COERCE]);if(null===n)return null;return u(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(z_,D_);const j_={};async function F_(e,t,n,r){let{config:o}=n;const a="".concat(e,"__").concat(t);if(!j_[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);j_[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 j_[a]}function $_(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]=function(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)||D_.satisfies(e,a.deps.properties),supernova:()=>F_(i.name,i.version,t,o.load).then((e=>(n=n||A_(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?(Ve(!0,n,e),n):l(l({},n),e)}))}};return i}({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 B_(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=$_(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>r[e]?r[e].getMatchingVersionFromProperties(t):null,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(j_).forEach((t=>{t.split("__")[0]===e&&(j_[t]=void 0)}))}(e)}}}const W_={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()))},H_={context:{},load:()=>{},types:[],themes:[],anything:{},snapshot:W_};H_.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},keyboardNavigation:!1,disableCellPadding:!1};const U_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(l({},e),t)},V_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[...e,...t].filter(((e,t,n)=>n.indexOf(e)===t))},G_=(e,t)=>({context:U_(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:l({},t.snapshot||e.snapshot),types:V_(e.types,t.types),themes:V_(e.themes,t.themes),flags:U_(e.flags,t.flags),anything:U_(e.anything,t.anything)});var K_=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=J(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]=KS({app:e,context:a}),s=dt({themes:t.themes,loadTheme:t.loadTheme,root:i});a.themeApi=s.externalAPI;const c={galaxy:{translator:n.translator,flags:KT(t.flags),deviceType:pt(t.context.deviceType),anything:t.anything},theme:s.externalAPI,translator:n.translator,nebbie:null},u={app:e,root:i,config:t,public:c,context:a,types:null},d=B_({halo:u});t.types.forEach((e=>d.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let p=s.setTheme(t.context.theme),f=null,h=null;const m={render:async e=>(await p,e.id?GT(e,u):$T(e,u)),context:async e=>{let t;["theme","language","constraints","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}),u.context=a,t.theme&&(p=s.setTheme(t.theme),await p),t.language&&u.public.translator.language(t.language),i.context(a))},selections:async()=>(f||(f={mount(t){h||(h=HI({element:t,app:e}),i.add(h))},unmount(){h&&(i.remove(h),h=null)}}),f),field:async t=>{let n;const r="string"==typeof t?t:t.qLibraryId;if(t.qId)n=t.qId;else if(!r)throw new Error("Field identifier or object id must be provided");const o={fieldName:r,async mount(a){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!a)throw new Error("Element for ".concat(r||n," not provided"));if(this._instance)throw new Error("Field or object ".concat(r||n," already mounted"));const c=()=>o.emit("selectionActivated"),u=()=>o.emit("selectionDeactivated");return new Promise((r=>{this._instance=vP({element:a,app:e,fieldIdentifier:t,qId:n,options:mP(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 yI(o),o},getRegisteredTypes:d.getList,__DO_NOT_USE__:{types:d,popover(t,n,r){m._popoverInstance&&(i.remove(m._popoverInstance),m._popoverInstance=null);const o=bP(l({onPopoverClose:()=>m.emit("fieldPopoverClose")},r));m._popoverInstance=G.createElement(xP,{element:t,key:BI(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),i.add(m._popoverInstance)}}};return u.public.nebbie=m,u.types=d,yI(m),m}return r.createConfiguration=n=>e(G_(t,n)),r.config=t,r}(H_);function Z_(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const X_=globalThis.crypto||{getRandomValues:()=>123456};function Q_(){return e=>{const t=Ve({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^X_.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const n=t._mock;let r=t;return n&&(delete t._mock,r=Ve({},t,n)),Promise.resolve(l({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(r),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId},t))}}const Y_=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},J_=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=Y_(e,{defaultValue:t,args:a});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},eN=["id","session"],tN=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function nN(e){return!tN.includes(e)}function rN(e){const t=Y_(e.getLayout);return t.qInfo&&t.qInfo.qId}function oN(e,t){return e.reduce(((e,n)=>l(l({},e),function(e,t){let n=rN(e);const{delay:r}=t,{id:o,session:a}=e,i=u(e,eN);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:Y_(a,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(i).reduce(((e,t)=>{let[n,o]=t;return l(l({},e),{},{[n]:J_(o,{async:nN(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function aN(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!rN(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function iN(){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(aN);const n=oN(e,t);return async e=>Promise.resolve(n[e])}function lN(){return()=>Promise.resolve({id:"app-layout"})}const sN={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Z_,r=new Q_,o=new iN(e,t),a=new lN,i={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,getObject:o,getAppLayout:a};return Promise.resolve(i)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},cN={generator:A_,hook:b_,theme:ct,locale:Q};e.EnigmaMocker=sN,e.__DO_NOT_USE__=cN,e.conversion=FP,e.embed=K_,e.onContextMenu=function(e){const t=g_(++a_);t.value||(t.value=1,o_.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=g_(++a_);t.value||(t.value=1,o_.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=x_({action(){n._config.action.call(null)}});return n.component||(n.component=o_,o_.__hooks.actions.list.push(n)),E_((()=>{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=v_("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return v_("appLayout")},e.useConstraints=function(){return v_("constraints")},e.useDeviceType=function(){return v_("deviceType")},e.useEffect=S_,e.useElement=C_,e.useEmbed=function(){return v_("nebbie")},e.useEmitter=function(){return v_("emitter")},e.useGlobal=function(){const e=v_("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=g_(++a_);if(n.imperative||(n.imperative=!0),i_(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],o_.__hooks.imperativeHandle=r}},e.useKeyboard=function(){const e=v_("keyboardNavigation"),t=v_("focusHandler");if(!o_.__hooks.accessibility.exitFunction){const e=function(e){const n=this.__hooks.accessibility;n.enabled&&n.active&&(L_(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(o_);o_.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),k_(this))}.bind(o_);o_.__hooks.accessibility.focusFunction=n;const r=function(e){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(o_);o_.__hooks.accessibility.focusSelectionFunction=r}const n=o_.__hooks.accessibility.focusFunction,r=o_.__hooks.accessibility.exitFunction,o=o_.__hooks.accessibility.focusSelectionFunction,[a,i]=x_({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return o_.__hooks.accessibility.setter=i,o_.__hooks.accessibility.enabled=e,S_((()=>i({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),a},e.useLayout=function(){return v_("layout")},e.useMemo=E_,e.useModel=function(){const e=v_("model");return e&&e.session?e:void 0},e.useOptions=function(){return v_("options")},e.usePlugins=function(){return v_("plugins")},e.usePromise=function(e,t){const[n,r]=x_((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=g_(++a_);return o.component||(o.component=o_),w_((()=>{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=C_(),t=o_.__hooks.resizer,[n,r]=x_((()=>{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()),w_((()=>{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(){g_(++a_);const e=o_.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return v_("selections")},e.useStaleLayout=function(){const e=v_("layout"),[t]=x_({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=x_,e.useTheme=function(){return v_("theme")},e.useTranslator=function(){return v_("translator")}}));
133
+ `),PC))),qC=U.forwardRef((function(e,t){const n=ly({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,size:a=40,style:l,thickness:s=3.6,value:c=0,variant:u="indeterminate"}=n,d=If(n,EC),p=Of({},n,{color:o,disableShrink:i,size:a,thickness:s,value:c,variant:u}),f=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return Sf({root:["root",n,`color${Kp(r)}`],svg:["svg"],circle:["circle",`circle${Kp(n)}`,o&&"circleDisableShrink"]},wC,t)})(p),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((IC-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 Vg.jsx(_C,Of({className:my(f.root,r),style:Of({width:a,height:a},m,l),ownerState:p,ref:t,role:"progressbar"},g,d,{children:Vg.jsx(NC,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:Vg.jsx(MC,{className:f.circle,style:h,ownerState:p,cx:IC,cy:IC,r:(IC-s)/2,fill:"none",strokeWidth:s})})}))}));var zC=qC;const AC=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],DC=uy("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})=>Of({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),jC=uy(GE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),FC=U.forwardRef((function(e,t){var n,r,o,i,a,l;const s=ly({name:"MuiModal",props:e}),{BackdropComponent:c=jC,BackdropProps:u,classes:d,className:p,closeAfterTransition:f=!1,children:h,container:m,component:g,components:v={},componentsProps:b={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:k=!1,keepMounted:R=!1,onBackdropClick:L,onClose:O,open:I,slotProps:T,slots:P,theme:_}=s,N=If(s,AC),[M,q]=U.useState(!0),z={container:m,closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:k,keepMounted:R,onBackdropClick:L,onClose:O,open:I},A=Of({},s,z,{exited:M}),D=null!=(n=null!=(r=null==P?void 0:P.root)?r:v.Root)?n:DC,j=null!=(o=null!=(i=null==P?void 0:P.backdrop)?i:v.Backdrop)?o:c,F=null!=(a=null==T?void 0:T.root)?a:b.root,B=null!=(l=null==T?void 0:T.backdrop)?l:b.backdrop;return Vg.jsx(fS,Of({slots:{root:D,backdrop:j},slotProps:{root:()=>Of({},wy(F,A),!vy(D)&&{as:g,theme:_},{className:my(p,null==F?void 0:F.className,null==d?void 0:d.root,!A.open&&A.exited&&(null==d?void 0:d.hidden))}),backdrop:()=>Of({},u,wy(B,A),{className:my(null==B?void 0:B.className,null==d?void 0:d.backdrop)})},onTransitionEnter:()=>q(!1),onTransitionExited:()=>q(!0),ref:t},N,z,{children:h}))}));var BC=FC;function $C(e){return kf("MuiDivider",e)}var WC=Rf("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const UC=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],HC=uy("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})=>Of({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)`:xb(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})=>Of({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Of({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Of({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Of({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),VC=uy("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Of({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)`}))),GC=U.forwardRef((function(e,t){const n=ly({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=If(n,UC),h=Of({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Sf({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},$C,r)})(h);return Vg.jsx(HC,Of({as:a,className:my(m.root,i),role:u,ref:t,ownerState:h},f,{children:o?Vg.jsx(VC,{className:m.wrapper,ownerState:h,children:o}):null}))}));var KC=GC;function ZC(e){return kf("MuiFormControlLabel",e)}var XC=Rf("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);const QC=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],JC=uy("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${XC.label}`]:t.label},t.root,t[`labelPlacement${Kp(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>Of({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${XC.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},{[`& .${XC.label}`]:{[`&.${XC.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),YC=uy("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${XC.error}`]:{color:(e.vars||e).palette.error.main}}))),ek=U.forwardRef((function(e,t){var n,r;const o=ly({props:e,name:"MuiFormControlLabel"}),{className:i,componentsProps:a={},control:l,disabled:s,disableTypography:c,label:u,labelPlacement:d="end",required:p,slotProps:f={}}=o,h=If(o,QC),m=CE(),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=wE({props:o,muiFormControl:m,states:["error"]}),x=Of({},o,{disabled:g,labelPlacement:d,required:v,error:y.error}),S=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e;return Sf({root:["root",n&&"disabled",`labelPlacement${Kp(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},ZC,t)})(x),w=null!=(r=f.typography)?r:a.typography;let E=u;return null==E||E.type===vE||c||(E=Vg.jsx(vE,Of({component:"span"},w,{className:my(S.label,null==w?void 0:w.className),children:E}))),Vg.jsxs(JC,Of({className:my(S.root,i),ownerState:x,ref:t},h,{children:[U.cloneElement(l,b),E,v&&Vg.jsxs(YC,{ownerState:x,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}))}));var tk=ek;var nk=U.createContext();function rk(e){return kf("MuiGrid",e)}const ok=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],ik=Rf("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}`)),...ok.map((e=>`grid-xs-${e}`)),...ok.map((e=>`grid-sm-${e}`)),...ok.map((e=>`grid-md-${e}`)),...ok.map((e=>`grid-lg-${e}`)),...ok.map((e=>`grid-xl-${e}`))]),ak=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function lk(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function sk({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 ck=uy("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:l,zeroMinWidth:s,breakpoints:c}=n;let u=[];r&&(u=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&r.push(n[`spacing-${t}-${String(o)}`])})),r}(a,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,i&&t.item,s&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==l&&t[`wrap-xs-${String(l)}`],...d]}})((({ownerState:e})=>Of({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 iv({theme:e},av({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${ik.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=av({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=sk({breakpoints:e.breakpoints.values,values:t})),o=iv({theme:e},t,((t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{marginTop:`-${lk(i)}`,[`& > .${ik.item}`]:{paddingTop:lk(i)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${ik.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=av({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=sk({breakpoints:e.breakpoints.values,values:t})),o=iv({theme:e},t,((t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{width:`calc(100% + ${lk(i)})`,marginLeft:`-${lk(i)}`,[`& > .${ik.item}`]:{paddingLeft:lk(i)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${ik.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=av({values:t.columns,breakpoints:e.breakpoints.values}),l="object"==typeof a?a[o]:a;if(null==l)return r;const s=Math.round(n/l*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${s} + ${lk(n)})`;c={flexBasis:e,maxWidth:e}}}i=Of({flexBasis:s,flexGrow:0,maxWidth:s},c)}return 0===e.breakpoints.values[o]?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r}),{})}));const uk=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:l,breakpoints:s}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(i,s));const u=[];s.forEach((t=>{const n=e[t];n&&u.push(`grid-${t}-${String(n)}`)}));return Sf({root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...u]},rk,t)},dk=U.forwardRef((function(e,t){const n=ly({props:e,name:"MuiGrid"}),{breakpoints:r}=ay(),o=ob(n),{className:i,columns:a,columnSpacing:l,component:s="div",container:c=!1,direction:u="row",item:d=!1,rowSpacing:p,spacing:f=0,wrap:h="wrap",zeroMinWidth:m=!1}=o,g=If(o,ak),v=p||f,b=l||f,y=U.useContext(nk),x=c?a||12:y,S={},w=Of({},g);r.keys.forEach((e=>{null!=g[e]&&(S[e]=g[e],delete w[e])}));const E=Of({},o,{columns:x,container:c,direction:u,item:d,rowSpacing:v,columnSpacing:b,wrap:h,zeroMinWidth:m,spacing:f},S,{breakpoints:r.keys}),C=uk(E);return Vg.jsx(nk.Provider,{value:x,children:Vg.jsx(ck,Of({ownerState:E,className:my(C.root,i),as:s,ref:t},w))})}));var pk=dk;const fk=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function hk(e){return`scale(${e}, ${e**2})`}const mk={entering:{opacity:1,transform:hk(1)},entered:{opacity:1,transform:"none"}},gk="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),vk=U.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=NS}=e,g=If(e,fk),v=U.useRef(),b=U.useRef(),y=ay(),x=U.useRef(null),S=sf(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)=>{Jw(e);const{duration:n,delay:r,easing:o}=Yw({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:gk?a:.666*a,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}=Yw({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:gk?o:.666*o,delay:gk?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=hk(.75),u&&u(e)})),O=w(d);return U.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Vg.jsx(m,Of({appear:r,in:a,nodeRef:x,onEnter:C,onEntered:k,onEntering:E,onExit:L,onExited:O,onExiting:R,addEndListener:e=>{"auto"===h&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>U.cloneElement(o,Of({style:Of({opacity:0,transform:hk(.75),visibility:"exited"!==e||a?void 0:"hidden"},mk[e],f,o.props.style),ref:S},t))}))}));vk.muiSupportAuto=!0;var bk=vk;function yk(e){return kf("MuiIcon",e)}Rf("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const xk=["baseClassName","className","color","component","fontSize"],Sk=uy("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Kp(n.color)}`],t[`fontSize${Kp(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]}))),wk=U.forwardRef((function(e,t){const n=ly({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:i="inherit",component:a="span",fontSize:l="medium"}=n,s=If(n,xk),c=Of({},n,{baseClassName:r,color:i,component:a,fontSize:l}),u=(e=>{const{color:t,fontSize:n,classes:r}=e;return Sf({root:["root","inherit"!==t&&`color${Kp(t)}`,`fontSize${Kp(n)}`]},yk,r)})(c);return Vg.jsx(Sk,Of({as:a,className:my(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t},s))}));wk.muiName="Icon";var Ek=wk;function Ck(e){return kf("MuiInputAdornment",e)}var kk,Rk=Rf("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);const Lk=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Ok=uy("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Kp(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>Of({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${Rk.positionStart}&:not(.${Rk.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),Ik=U.forwardRef((function(e,t){const n=ly({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:s,variant:c}=n,u=If(n,Lk),d=CE()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f=Of({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:s,variant:p}),h=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return Sf({root:["root",n&&"disablePointerEvents",o&&`position${Kp(o)}`,a,r&&"hiddenLabel",i&&`size${Kp(i)}`]},Ck,t)})(f);return Vg.jsx(EE.Provider,{value:null,children:Vg.jsx(Ok,Of({as:i,ownerState:f,className:my(h.root,o),ref:t},u,{children:"string"!=typeof r||l?Vg.jsxs(U.Fragment,{children:["start"===s?kk||(kk=Vg.jsx("span",{className:"notranslate",children:"​"})):null,r]}):Vg.jsx(vE,{color:"text.secondary",children:r})}))})}));var Tk=Ik;var Pk=U.createContext({});function _k(e){return kf("MuiList",e)}Rf("MuiList",["root","padding","dense","subheader"]);const Nk=["children","className","component","dense","disablePadding","subheader"],Mk=uy("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})=>Of({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),qk=U.forwardRef((function(e,t){const n=ly({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,c=If(n,Nk),u=U.useMemo((()=>({dense:a})),[a]),d=Of({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Sf({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},_k,t)})(d);return Vg.jsx(Pk.Provider,{value:u,children:Vg.jsxs(Mk,Of({as:i,className:my(p.root,o),ref:t,ownerState:d},c,{children:[s,r]}))})}));var zk=qk;function Ak(e){return kf("MuiListItem",e)}var Dk=Rf("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var jk=Rf("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Fk(e){return kf("MuiListItemSecondaryAction",e)}Rf("MuiListItemSecondaryAction",["root","disableGutters"]);const Bk=["className"],$k=uy("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>Of({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),Wk=U.forwardRef((function(e,t){const n=ly({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=If(n,Bk),i=Of({},n,{disableGutters:U.useContext(Pk).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return Sf({root:["root",t&&"disableGutters"]},Fk,n)})(i);return Vg.jsx($k,Of({className:my(a.root,r),ownerState:i,ref:t},o))}));Wk.muiName="ListItemSecondaryAction";var Uk=Wk;const Hk=["className"],Vk=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Gk=uy("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})=>Of({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Of({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${jk.root}`]:{paddingRight:48}},{[`&.${Dk.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Dk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xb(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Dk.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xb(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Dk.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"}},[`&.${Dk.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xb(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})`:xb(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),Kk=uy("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Zk=U.forwardRef((function(e,t){const n=ly({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,className:l,component:s,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:v=!1,focusVisibleClassName:b,secondaryAction:y,selected:x=!1,slotProps:S={},slots:w={}}=n,E=If(n.ContainerProps,Hk),C=If(n,Vk),k=U.useContext(Pk),R=U.useMemo((()=>({dense:f||k.dense||!1,alignItems:r,disableGutters:m})),[r,k.dense,f,m]),L=U.useRef(null);tf((()=>{o&&L.current&&L.current.focus()}),[o]);const O=U.Children.toArray(a),I=O.length&&Qp(O[O.length-1],["ListItemSecondaryAction"]),T=Of({},n,{alignItems:r,autoFocus:o,button:i,dense:R.dense,disabled:h,disableGutters:m,disablePadding:g,divider:v,hasSecondaryAction:I,selected:x}),P=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:l,divider:s,hasSecondaryAction:c,selected:u}=e;return Sf({root:["root",o&&"dense",!a&&"gutters",!l&&"padding",s&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},Ak,r)})(T),_=sf(L,t),N=w.root||c.Root||Gk,M=S.root||u.root||{},q=Of({className:my(P.root,M.className,l),disabled:h},C);let z=s||"li";return i&&(q.component=s||"div",q.focusVisibleClassName=my(Dk.focusVisible,b),z=aw),I?(z=q.component||s?z:"div","li"===d&&("li"===z?z="div":"li"===q.component&&(q.component="div")),Vg.jsx(Pk.Provider,{value:R,children:Vg.jsxs(Kk,Of({as:d,className:my(P.container,p),ref:_,ownerState:T},E,{children:[Vg.jsx(N,Of({},M,!vy(N)&&{as:z,ownerState:Of({},T,M.ownerState)},q,{children:O})),O.pop()]}))})):Vg.jsx(Pk.Provider,{value:R,children:Vg.jsxs(N,Of({},M,{as:z,ref:_},!vy(N)&&{ownerState:Of({},T,M.ownerState)},q,{children:[O,y&&Vg.jsx(Uk,{children:y})]}))})}));var Xk=Zk;function Qk(e){return kf("MuiListItemIcon",e)}var Jk=Rf("MuiListItemIcon",["root","alignItemsFlexStart"]);const Yk=["className"],eR=uy("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})=>Of({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),tR=U.forwardRef((function(e,t){const n=ly({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=If(n,Yk),i=Of({},n,{alignItems:U.useContext(Pk).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Sf({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Qk,n)})(i);return Vg.jsx(eR,Of({className:my(a.root,r),ownerState:i,ref:t},o))}));var nR=tR;var rR=Rf("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const oR=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function iR(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function aR(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function lR(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 sR(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&lR(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const cR=U.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=If(e,oR),p=U.useRef(null),f=U.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});tf((()=>{r&&p.current.focus()}),[r]),U.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${bf(Jp(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=sf(p,t);let m=-1;U.Children.forEach(i,((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>=i.length&&(m=-1)))}));const g=U.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),U.cloneElement(e,t)}return e}));return Vg.jsx(zk,Of({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Jp(t).activeElement;if("ArrowDown"===n)e.preventDefault(),sR(t,r,s,l,iR);else if("ArrowUp"===n)e.preventDefault(),sR(t,r,s,l,aR);else if("Home"===n)e.preventDefault(),sR(t,null,s,l,iR);else if("End"===n)e.preventDefault(),sR(t,null,s,l,aR);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&lR(r,o);o.previousKeyMatched&&(s||sR(t,r,!1,l,iR,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:g}))}));var uR=cR;function dR(e){return kf("MuiPopover",e)}Rf("MuiPopover",["root","paper"]);const pR=["onEntering"],fR=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function hR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function mR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function gR(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function vR(e){return"function"==typeof e?e():e}const bR=uy(BC,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yR=uy(oE,{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}),xR=U.forwardRef((function(e,t){const n=ly({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:s,className:c,container:u,elevation:d=8,marginThreshold:p=16,open:f,PaperProps:h={},transformOrigin:m={vertical:"top",horizontal:"left"},TransitionComponent:g=bk,transitionDuration:v="auto",TransitionProps:{onEntering:b}={}}=n,y=If(n.TransitionProps,pR),x=If(n,fR),S=U.useRef(),w=sf(S,h.ref),E=Of({},n,{anchorOrigin:i,anchorReference:l,elevation:d,marginThreshold:p,PaperProps:h,transformOrigin:m,TransitionComponent:g,transitionDuration:v,TransitionProps:y}),C=(e=>{const{classes:t}=e;return Sf({root:["root"],paper:["paper"]},dR,t)})(E),k=U.useCallback((()=>{if("anchorPosition"===l)return a;const e=vR(o),t=(e&&1===e.nodeType?e:Jp(S.current).body).getBoundingClientRect();return{top:t.top+hR(t,i.vertical),left:t.left+mR(t,i.horizontal)}}),[o,i.horizontal,i.vertical,a,l]),R=U.useCallback((e=>({vertical:hR(e,m.vertical),horizontal:mR(e,m.horizontal)})),[m.horizontal,m.vertical]),L=U.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=R(t);if("none"===l)return{top:null,left:null,transformOrigin:gR(n)};const r=k();let i=r.top-n.vertical,a=r.left-n.horizontal;const s=i+t.height,c=a+t.width,u=Yp(vR(o)),d=u.innerHeight-p,f=u.innerWidth-p;if(i<p){const e=i-p;i-=e,n.vertical+=e}else if(s>d){const e=s-d;i-=e,n.vertical+=e}if(a<p){const e=a-p;a-=e,n.horizontal+=e}else if(c>f){const e=c-f;a-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(a)}px`,transformOrigin:gR(n)}}),[o,l,k,R,p]),[O,I]=U.useState(f),T=U.useCallback((()=>{const e=S.current;if(!e)return;const t=L(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,I(!0)}),[L]);U.useEffect((()=>{f&&T()})),U.useImperativeHandle(r,(()=>f?{updatePosition:()=>{T()}}:null),[f,T]),U.useEffect((()=>{if(!f)return;const e=Xp((()=>{T()})),t=Yp(o);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[o,f,T]);let P=v;"auto"!==v||g.muiSupportAuto||(P=void 0);const _=u||(o?Jp(vR(o)).body:void 0);return Vg.jsx(bR,Of({BackdropProps:{invisible:!0},className:my(C.root,c),container:_,open:f,ref:t,ownerState:E},x,{children:Vg.jsx(g,Of({appear:!0,in:f,onEntering:(e,t)=>{b&&b(e,t),T()},onExited:()=>{I(!1)},timeout:P},y,{children:Vg.jsx(yR,Of({elevation:d},h,{ref:w,className:my(C.paper,h.className)},O?void 0:{style:Of({},h.style,{opacity:0})},{ownerState:E,children:s}))}))}))}));var SR=xR;function wR(e){return kf("MuiMenuItem",e)}var ER=Rf("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const CR=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],kR=uy(aw,{shouldForwardProp:e=>sy(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})=>Of({},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"}},[`&.${ER.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xb(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ER.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xb(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ER.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xb(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})`:xb(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ER.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ER.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${WC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${WC.inset}`]:{marginLeft:52},[`& .${rR.root}`]:{marginTop:0,marginBottom:0},[`& .${rR.inset}`]:{paddingLeft:36},[`& .${Jk.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Of({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Jk.root} svg`]:{fontSize:"1.25rem"}})))),RR=U.forwardRef((function(e,t){const n=ly({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:c="menuitem",tabIndex:u,className:d}=n,p=If(n,CR),f=U.useContext(Pk),h=U.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=U.useRef(null);tf((()=>{r&&m.current&&m.current.focus()}),[r]);const g=Of({},n,{dense:h.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Of({},a,Sf({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},wR,a))})(n),b=sf(m,t);let y;return n.disabled||(y=void 0!==u?u:-1),Vg.jsx(Pk.Provider,{value:h,children:Vg.jsx(kR,Of({ref:b,role:c,tabIndex:y,component:o,focusVisibleClassName:my(v.focusVisible,s),className:my(v.root,d)},p,{ownerState:g,classes:v}))})}));var LR,OR=RR;const IR=["children","classes","className","label","notched"],TR=uy("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),PR=uy("legend")((({ownerState:e,theme:t})=>Of({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&&Of({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 _R=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],NR=uy(_E,{shouldForwardProp:e=>sy(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:TE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Of({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${DE.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${DE.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${DE.focused} .${DE.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${DE.error} .${DE.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${DE.disabled} .${DE.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Of({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),MR=uy((function(e){const{className:t,label:n,notched:r}=e,o=If(e,IR),i=null!=n&&""!==n,a=Of({},e,{notched:r,withLabel:i});return Vg.jsx(TR,Of({"aria-hidden":!0,className:t,ownerState:a},o,{children:Vg.jsx(PR,{ownerState:a,children:i?Vg.jsx("span",{children:n}):LR||(LR=Vg.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}})),qR=uy(NE,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:PE})((({theme:e,ownerState:t})=>Of({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}))),zR=U.forwardRef((function(e,t){var n,r,o,i,a;const l=ly({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=If(l,_R),v=(e=>{const{classes:t}=e;return Of({},t,Sf({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},AE,t))})(l),b=CE(),y=wE({props:l,muiFormControl:b,states:["required"]}),x=Of({},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:NR,w=null!=(o=null!=(i=h.input)?i:s.Input)?o:qR;return Vg.jsx(zE,Of({slots:{root:S,input:w},renderSuffix:e=>Vg.jsx(MR,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Vg.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:Of({},v,{notchedOutline:null})}))}));zR.muiName="Input";var AR=zR,DR=Zw(Vg.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"),jR=Zw(Vg.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 FR=uy("span")({position:"relative",display:"flex"}),BR=uy(DR)({transform:"scale(1)"}),$R=uy(jR)((({theme:e,ownerState:t})=>Of({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 WR(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=Of({},e,{checked:t});return Vg.jsxs(FR,{className:n.root,ownerState:o,children:[Vg.jsx(BR,{fontSize:r,className:n.background,ownerState:o}),Vg.jsx($R,{fontSize:r,className:n.dot,ownerState:o})]})}var UR=U.createContext(void 0);function HR(e){return kf("MuiRadio",e)}var VR=Rf("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]);const GR=["checked","checkedIcon","color","icon","name","onChange","size","className"],KR=uy(cC,{shouldForwardProp:e=>sy(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Kp(n.color)}`]]}})((({theme:e,ownerState:t})=>Of({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})`:xb("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${VR.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${VR.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const ZR=Vg.jsx(WR,{checked:!0}),XR=Vg.jsx(WR,{}),QR=U.forwardRef((function(e,t){var n,r;const o=ly({props:e,name:"MuiRadio"}),{checked:i,checkedIcon:a=ZR,color:l="primary",icon:s=XR,name:c,onChange:u,size:d="medium",className:p}=o,f=If(o,GR),h=Of({},o,{color:l,size:d}),m=(e=>{const{classes:t,color:n}=e;return Of({},t,Sf({root:["root",`color${Kp(n)}`]},HR,t))})(h),g=U.useContext(UR);let v=i;const b=Zp(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)),Vg.jsx(KR,Of({type:"radio",icon:U.cloneElement(s,{fontSize:null!=(n=XR.props.fontSize)?n:d}),checkedIcon:U.cloneElement(a,{fontSize:null!=(r=ZR.props.fontSize)?r:d}),ownerState:h,classes:m,name:y,checked:v,onChange:b,ref:t,className:my(m.root,p)},f))}));var JR=QR;function YR(e){return kf("MuiTooltip",e)}var eL=Rf("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const tL=["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 nL=uy(SE,{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})=>Of({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${eL.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${eL.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${eL.arrow}`]:Of({},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"] .${eL.arrow}`]:Of({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),rL=uy("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${Kp(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return Of({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:xb(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},{[`.${eL.popper}[data-popper-placement*="left"] &`]:Of({transformOrigin:"right center"},t.isRtl?Of({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Of({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${eL.popper}[data-popper-placement*="right"] &`]:Of({transformOrigin:"left center"},t.isRtl?Of({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Of({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${eL.popper}[data-popper-placement*="top"] &`]:Of({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${eL.popper}[data-popper-placement*="bottom"] &`]:Of({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),oL=uy("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:xb(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let iL=!1,aL=null,lL={x:0,y:0};function sL(e,t){return n=>{t&&t(n),e(n)}}const cL=U.forwardRef((function(e,t){var n,r,o,i,a,l,s,c,u,d,p,f,h,m,g,v,b,y,x;const S=ly({props:e,name:"MuiTooltip"}),{arrow:w=!1,children:E,components:C={},componentsProps:k={},describeChild:R=!1,disableFocusListener:L=!1,disableHoverListener:O=!1,disableInteractive:I=!1,disableTouchListener:T=!1,enterDelay:P=100,enterNextDelay:_=0,enterTouchDelay:N=700,followCursor:M=!1,id:q,leaveDelay:z=0,leaveTouchDelay:A=1500,onClose:D,onOpen:j,open:F,placement:B="bottom",PopperComponent:$,PopperProps:W={},slotProps:H={},slots:V={},title:G,TransitionComponent:K=bk,TransitionProps:Z}=S,X=If(S,tL),Q=ay(),J="rtl"===Q.direction,[Y,ee]=U.useState(),[te,ne]=U.useState(null),re=U.useRef(!1),oe=I||M,ie=U.useRef(),ae=U.useRef(),le=U.useRef(),se=U.useRef(),[ce,ue]=af({controlled:F,default:!1,name:"Tooltip",state:"open"});let de=ce;const pe=of(q),fe=U.useRef(),he=U.useCallback((()=>{void 0!==fe.current&&(document.body.style.WebkitUserSelect=fe.current,fe.current=void 0),clearTimeout(se.current)}),[]);U.useEffect((()=>()=>{clearTimeout(ie.current),clearTimeout(ae.current),clearTimeout(le.current),he()}),[he]);const me=e=>{clearTimeout(aL),iL=!0,ue(!0),j&&!de&&j(e)},ge=lf((e=>{clearTimeout(aL),aL=setTimeout((()=>{iL=!1}),800+z),ue(!1),D&&de&&D(e),clearTimeout(ie.current),ie.current=setTimeout((()=>{re.current=!1}),Q.transitions.duration.shortest)})),ve=e=>{re.current&&"touchstart"!==e.type||(Y&&Y.removeAttribute("title"),clearTimeout(ae.current),clearTimeout(le.current),P||iL&&_?ae.current=setTimeout((()=>{me(e)}),iL?_:P):me(e))},be=e=>{clearTimeout(ae.current),clearTimeout(le.current),le.current=setTimeout((()=>{ge(e)}),z)},{isFocusVisibleRef:ye,onBlur:xe,onFocus:Se,ref:we}=vf(),[,Ee]=U.useState(!1),Ce=e=>{xe(e),!1===ye.current&&(Ee(!1),be(e))},ke=e=>{Y||ee(e.currentTarget),Se(e),!0===ye.current&&(Ee(!0),ve(e))},Re=e=>{re.current=!0;const t=E.props;t.onTouchStart&&t.onTouchStart(e)},Le=ve,Oe=be,Ie=e=>{Re(e),clearTimeout(le.current),clearTimeout(ie.current),he(),fe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",se.current=setTimeout((()=>{document.body.style.WebkitUserSelect=fe.current,ve(e)}),N)},Te=e=>{E.props.onTouchEnd&&E.props.onTouchEnd(e),he(),clearTimeout(le.current),le.current=setTimeout((()=>{ge(e)}),A)};U.useEffect((()=>{if(de)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ge(e)}}),[ge,de]);const Pe=sf(E.ref,we,ee,t);G||0===G||(de=!1);const _e=U.useRef(),Ne={},Me="string"==typeof G;R?(Ne.title=de||!Me||O?null:G,Ne["aria-describedby"]=de?pe:null):(Ne["aria-label"]=Me?G:null,Ne["aria-labelledby"]=de&&!Me?pe:null);const qe=Of({},Ne,X,E.props,{className:my(X.className,E.props.className),onTouchStart:Re,ref:Pe},M?{onMouseMove:e=>{const t=E.props;t.onMouseMove&&t.onMouseMove(e),lL={x:e.clientX,y:e.clientY},_e.current&&_e.current.update()}}:{}),ze={};T||(qe.onTouchStart=Ie,qe.onTouchEnd=Te),O||(qe.onMouseOver=sL(Le,qe.onMouseOver),qe.onMouseLeave=sL(Oe,qe.onMouseLeave),oe||(ze.onMouseOver=Le,ze.onMouseLeave=Oe)),L||(qe.onFocus=sL(ke,qe.onFocus),qe.onBlur=sL(Ce,qe.onBlur),oe||(ze.onFocus=ke,ze.onBlur=Ce));const Ae=U.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(te),options:{element:te,padding:4}}];return null!=(e=W.popperOptions)&&e.modifiers&&(t=t.concat(W.popperOptions.modifiers)),Of({},W.popperOptions,{modifiers:t})}),[te,W]),De=Of({},S,{isRtl:J,arrow:w,disableInteractive:oe,placement:B,PopperComponentProp:$,touch:re.current}),je=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return Sf({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Kp(i.split("-")[0])}`],arrow:["arrow"]},YR,t)})(De),Fe=null!=(n=null!=(r=V.popper)?r:C.Popper)?n:nL,Be=null!=(o=null!=(i=null!=(a=V.transition)?a:C.Transition)?i:K)?o:bk,$e=null!=(l=null!=(s=V.tooltip)?s:C.Tooltip)?l:rL,We=null!=(c=null!=(u=V.arrow)?u:C.Arrow)?c:oL,Ue=by(Fe,Of({},W,null!=(d=H.popper)?d:k.popper,{className:my(je.popper,null==W?void 0:W.className,null==(p=null!=(f=H.popper)?f:k.popper)?void 0:p.className)}),De),He=by(Be,Of({},Z,null!=(h=H.transition)?h:k.transition),De),Ve=by($e,Of({},null!=(m=H.tooltip)?m:k.tooltip,{className:my(je.tooltip,null==(g=null!=(v=H.tooltip)?v:k.tooltip)?void 0:g.className)}),De),Ge=by(We,Of({},null!=(b=H.arrow)?b:k.arrow,{className:my(je.arrow,null==(y=null!=(x=H.arrow)?x:k.arrow)?void 0:y.className)}),De);return Vg.jsxs(U.Fragment,{children:[U.cloneElement(E,qe),Vg.jsx(Fe,Of({as:null!=$?$:SE,placement:B,anchorEl:M?{getBoundingClientRect:()=>({top:lL.y,left:lL.x,right:lL.x,bottom:lL.y,width:0,height:0})}:Y,popperRef:_e,open:!!Y&&de,id:pe,transition:!0},ze,Ue,{popperOptions:Ae,children:({TransitionProps:e})=>Vg.jsx(Be,Of({timeout:Q.transitions.duration.shorter},e,He,{children:Vg.jsxs($e,Of({},Ve,{children:[G,w?Vg.jsx(We,Of({},Ge,{ref:ne})):null]}))}))}))]})}));var uL=cL;const[dL,pL]=Tw({}),[fL,hL]=Tw({}),[mL,gL]=Tw({}),[vL,bL]=Tw({}),[yL,xL]=Tw({}),[,SL]=Tw({}),wL=e=>{let{type:t,value:n}=e;const r=SL.get(n.id);SL.set(n.id,{});const o=()=>{hL.clear(n.id),xL.set(n.id,{}),xL.dispatch(!0)},i=()=>{n.removeListener("changed",o),pL.clear(n.id),hL.clear(n.id),gL.clear(n.id),bL.clear(n.id),xL.clear(n.id),SL.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{i()})));return i},[EL,CL]=Tw({},wL);function kL(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=EL(),[o]=mL(),[i,a]=U.useState();let l;n&&(l=o.get(n));for(var s=arguments.length,c=new Array(s>2?s-2:0),u=2;u<s;u++)c[u-2]=arguments[u];return U.useEffect((()=>{if(!t)return;(async()=>{if(!l){const r=t.createSessionObject(e);l=r,o.set(n,l)}const i=await l;r.set(n,i),a(i)})()}),[t,...c]),[i]}const RL={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function LL(e){return kL(RL,e)}const OL=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let a;switch(t.type){case"INVALID":a=i(i({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":a={result:i({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":a=i(i({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let l=n.get(r);return l||(l={}),l[o]=a,n.set(r,l),a};function IL(e,t){const n=e?"".concat(e.id):null,[r]=dL(),[o,i]=U.useReducer(OL,n?r.get(n):null),[a]=yL(),[l]=fL();let s;n&&(s=l.get(n),s||(s={},l.set(n,s)));const c=async o=>{let a=s[t];if(!a||a&&a.rpcRetry){a={rpc:e[t](),rpcRetry:!1},s[t]=a,i({type:"INVALID",method:t,key:n,model:e,rpcResultStore:r,canCancel:!0})}try{const o=await a.rpc;i({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(a.rpcRetry||(a.rpcRetry=!0),c(!0))}},u={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(s[t].rpc.requestId),i({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{s[t].rpcRetry=!0,c()}};return U.useEffect((()=>{e&&c()}),[e,a.get(e&&e.id),n,t]),[o&&o.result,{validating:o&&o.validating,canCancel:o&&o.canCancel,canRetry:o&&o.canRetry},u]}function TL(e){return IL(e,"getLayout")}function PL(e){return IL(e,"getAppLayout")}function _L(){const[e,t]=U.useState(),[n,r]=U.useState(),o=U.useCallback((e=>{e&&t(e)}),[]),i=()=>{const{left:t,top:n,width:o,height:i}=e.getBoundingClientRect();r({left:t,top:n,width:o,height:i})};return U.useLayoutEffect((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(i);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}}}),[e]),[o,n,e]}function NL(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function ML(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:o=[]}=e;const a=i({fontSize:NL(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n);return H.createElement("i",{style:a},H.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 H.createElement(n,l({key:t},r))}))))}var qL=e=>ML((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"}}]}))(e));var zL=e=>ML((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));var AL=e=>ML((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]}))(e));var DL=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},jL=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}}(),FL=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},BL=function(e){function t(){var e,n,r;DL(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=FL(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r._lastRenderedStartIndex=-1,r._lastRenderedStopIndex=-1,r._memoizedUnloadedRanges=[],r._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;r._lastRenderedStartIndex=t,r._lastRenderedStopIndex=n,r._ensureRowsLoaded(t,n)},r._setRef=function(e){r._listRef=e},FL(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),jL(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,r=n.isItemLoaded,o=n.itemCount,i=n.minimumBatchSize,a=void 0===i?10:i,l=n.threshold,s=void 0===l?15:l,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.startIndex,i=e.stopIndex,a=[],l=null,s=null,c=o;c<=i;c++)t(c)?null!==s&&(a.push(l,s),l=s=null):(s=c,null===l&&(l=c));if(null!==s){for(var u=Math.min(Math.max(s,l+r-1),n-1),d=s+1;d<=u&&!t(d);d++)s=d;a.push(l,s)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var p=a[0]-1;if(t(p))break;a[0]=p}return a}({isItemLoaded:r,itemCount:o,minimumBatchSize:a,startIndex:Math.max(0,e-s),stopIndex:Math.min(o-1,t+s)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some((function(e,t){return c[t]!==e})))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,r=function(r){var o=e[r],i=e[r+1],a=n(o,i);null!=a&&a.then((function(){if(function(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,o=e.stopIndex;return!(r>n||o<t)}({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:i})){if(null==t._listRef)return;"function"==typeof t._listRef.resetAfterIndex?t._listRef.resetAfterIndex(o,!0):("function"==typeof t._listRef._getItemStyleCache&&t._listRef._getItemStyleCache(-1),t._listRef.forceUpdate())}}))},o=0;o<e.length;o+=2)r(o)}}]),t}(U.PureComponent);const $L=["S","XS"],WL=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,!!$L.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return WL(t)}async function HL(e){let{selections:t,elemNumbers:n,toggle:r,isSingleSelect:o}=e;if(0===n.length)return!1;let i=!1;if(!n.some((e=>Number.isNaN(e)))){const e=n;try{i=!1!==await t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,r]})}catch(e){i=!1}i||(o?t.cancel():t.clear())}return i}const VL="RowColumn",GL={row:"".concat(VL,"-row"),rowBorderBottom:"".concat(VL,"-rowBorderBottom"),column:"".concat(VL,"-column"),fieldRoot:"".concat(VL,"-fieldRoot"),cell:"".concat(VL,"-cell"),labelText:"".concat(VL,"-labelText"),labelDense:"".concat(VL,"-labelDense"),highlighted:"".concat(VL,"-highlighted"),checkboxLabel:"".concat(VL,"-checkboxLabel"),icon:"".concat(VL,"-icon"),S:"".concat(VL,"-S"),XS:"".concat(VL,"-XS"),A:"".concat(VL,"-A"),X:"".concat(VL,"-X"),frequencyCount:"".concat(VL,"-frequencyCount"),barContainer:"".concat(VL,"-barContainer"),bar:"".concat(VL,"-bar"),barSelected:"".concat(VL,"-barSelected"),barWithCheckbox:"".concat(VL,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(VL,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(VL,"-excludedTextWithCheckbox")},KL=".".concat(GL.fieldRoot),ZL=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function XL(e){var t,n;let{selectionState:r,selections:o,checkboxes:i=!1,doc:a=document,loaderRef:l}=e;const s=U.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});U.useEffect((()=>{var e,t;if(null===(e=l.current)||void 0===e||null===(t=e._listRef)||void 0===t||!t._outerRef)return;const n=e=>e.preventDefault(),r=e=>e.preventDefault(),o=e=>e.preventDefault(),i=l.current._listRef._outerRef;return i.addEventListener("gesturestart",n),i.addEventListener("gesturechange",r),i.addEventListener("gestureend",o),()=>{i.removeEventListener("gesturestart",n),i.removeEventListener("gesturechange",r),i.removeEventListener("gestureend",o)}}),[null===(t=l.current)||void 0===t||null===(n=t._listRef)||void 0===n?void 0:n._outerRef]);const c=()=>(r.setSelectableValuesUpdating(),HL({selections:o,elemNumbers:s.current.elemNumbers,isSingleSelect:r.isSingleSelect,toggle:s.current.toggle})),u=(e,t)=>{const n=function(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}));return t}));return WL(t)}(r.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r})),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([e,t],n)},d=e=>{const{startElemNumber:t}=s.current;if(t===e)return;const n=u(s.current.startElemNumber,e);r.updateItems(n,!0,s.current.elemNumbers)},p=U.useCallback((e=>{if(r.selectDisabled())return;const t=+e.target.getAttribute("data-n"),n=!r.isSingleSelect&&ZL(e.nativeEvent);s.current.elemNumbers=[t],s.current.toggle=n,n||r.clearItemStates(!0),r.updateItem(t),s.current.active=!1,c()}),[]),f=U.useCallback((e=>{if(0!==e.button||r.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),n=!r.isSingleSelect&&ZL(e);s.current.isRange=!1,s.current.startElemNumber=t,s.current.elemNumbers=[t],s.current.toggle=n,s.current.active=!0,n||r.clearItemStates(!0),r.updateItem(t),r.isSingleSelect&&(s.current.active=!1,c()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),h=U.useCallback((e=>{if(0===e.button&&s.current.active){if(s.current.active=!1,s.current.isRange){const t=+e.currentTarget.getAttribute("data-n");d(t)}c()}}),[]),m=U.useCallback((e=>{0===e.button&&s.current.active&&(s.current.active=!1,c())}),[]),g=U.useCallback((e=>{if(!s.current.active)return;s.current.isRange||(s.current.isRange=!0,r.isSelected(s.current.startElemNumber)||(r.updateItem(s.current.startElemNumber,!0),s.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");d(t)}),[]),v=U.useCallback((e=>{var t,n,o,i;if(s.current.active||s.current.isRange||r.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void c();const a=Number(null===(t=e.touches[0].target)||void 0===t||null===(n=t.closest(KL))||void 0===n?void 0:n.getAttribute("data-n")),l=Number(null===(o=e.touches[1].target)||void 0===o||null===(i=o.closest(KL))||void 0===i?void 0:i.getAttribute("data-n"));if(Number.isNaN(a)||Number.isNaN(a))return void c();s.current.active=!0;u(a,l).length<7&&(s.current.touchRangeSmall=!0),s.current.elemNumbers=[],s.current.touchElemNumbers=[a,l]}),[]),b=U.useCallback((()=>{if(2!==s.current.touchElemNumbers.length)return;if(s.current.touchRangeSmall)return s.current.touchRangeSmall=!1,s.current.touchElemNumbers=[],void(s.current.active=!1);const[e,t]=s.current.touchElemNumbers;s.current.startElemNumber=e,d(t),s.current.touchElemNumbers=[],s.current.active=!1,s.current.toggle=!0,c()}),[]);U.useEffect((()=>(a.addEventListener("mouseup",m),()=>{a.removeEventListener("mouseup",m)})),[m]),U.useEffect((()=>{const e=()=>{r.clearItemStates(!1)},t=()=>{r.clearItemStates(!0),r.triggerStateChanged()};return o.on("clearItemStates",e),o.on("deactivated",e),o.on("cleared",t),()=>{o.removeListener("clearItemStates",e),o.removeListener("deactivated",e),o.removeListener("cleared",t)}}),[o]);const y={};return i?Object.assign(y,{onChange:p}):Object.assign(y,{onMouseUp:h,onMouseDown:f,onMouseEnter:g,onTouchStart:v,onTouchEnd:b}),{interactionEvents:y,select:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const i=!r.isSingleSelect&&ZL(null==n?void 0:n.nativeEvent);i||r.clearItemStates(!0);const a=[];return r.updateItems(e,t,a),r.setSelectableValuesUpdating(),HL({selections:o,elemNumbers:t?a:e,isSingleSelect:r.isSingleSelect,toggle:i})}}}const QL=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var JL=e=>ML(QL(e));const YL=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,eO=e=>e?"A"===e.qState:null,tO=e=>{let{cell:t,checkboxes:n}=e;return(eO(t)||YL(t))&&n},nO=e=>e.filter((e=>!!e)).join(" ").trim(),rO=e=>e||"-",oO=e=>{let{theme:t}=e;return{background:t.palette.selected.main,color:t.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0}}},iO={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},aO=uy("div",{shouldForwardProp:e=>!["flexBasisProp","isGridMode","isGridCol","dense","frequencyWidth","direction"].includes(e)})((e=>{var t,n,r,o,a,l,s,c,u,d;let{theme:p,flexBasisProp:f,isGridMode:h,isGridCol:m,dense:g,frequencyWidth:v,direction:b}=e;return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(p.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(p.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(GL.row)]:{flexWrap:"nowrap",color:null!==(t=null===(n=p.listBox)||void 0===n||null===(r=n.content)||void 0===r?void 0:r.color)&&void 0!==t?t:p.palette.text.primary},["& .".concat(GL.rowBorderBottom)]:{borderBottom:m?"none":"1px solid ".concat(p.palette.divider),borderLeft:m?"1px solid ".concat(p.palette.divider):"none"},["& .".concat(GL.column)]:{flexWrap:"nowrap",borderRight:"1px solid ".concat(p.palette.divider),color:null!==(o=null===(a=p.listBox)||void 0===a||null===(l=a.content)||void 0===l?void 0:l.color)&&void 0!==o?o:p.palette.text.primary},["& .".concat(GL.cell)]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"".concat(9,"px"),paddingRight:0},["& .".concat(GL.labelText)]:i(i({flexBasis:f,lineHeight:"16px",userSelect:"none",paddingRight:"1px"},iO),{},{fontSize:null===(s=p.listBox)||void 0===s||null===(c=s.content)||void 0===c?void 0:c.fontSize,fontFamily:null===(u=p.listBox)||void 0===u||null===(d=u.content)||void 0===d?void 0:d.fontFamily}),["& .".concat(GL.labelDense)]:{fontSize:12},["& .".concat(GL.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(GL.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":i(i({},iO),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(GL.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24},["& .".concat(GL.S)]:i(i({},oO({theme:p})),{},{border:h?"none":void 0}),["& .".concat(GL.XS)]:i(i({},oO({theme:p})),{},{background:p.palette.selected.excluded,color:p.palette.selected.excludedContrastText,border:h?"none":void 0}),["& .".concat(GL.A)]:{background:p.palette.selected.alternative,color:p.palette.selected.alternativeContrastText,border:h?"none":void 0},["& .".concat(GL.X)]:{background:p.palette.selected.excluded,color:p.palette.selected.excludedContrastText,border:h?"none":void 0},["& .".concat(GL.frequencyCount)]:i(i({justifyContent:"flex-end"},iO),{},{flex:"0 1 ".concat(v,"px"),textAlign:"rtl"===b?"left":"right",paddingLeft:"2px"}),["&.".concat(GL.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(GL.bar)]:{height:g?"16px":"20px",position:"absolute",zIndex:"-1",alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",transition:"width 0.2s",backgroundColor:"#FAFAFA",height:"100%"}},["& .".concat(GL.barSelected)]:{zIndex:"0","& .bar-filled":{opacity:"30%",background:p.palette.background.lighter}},["& .".concat(GL.barWithCheckbox)]:{left:"rtl"===b?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(GL.barSelectedWithCheckbox)]:{"& .bar-filled":{background:"#BFE5D0",borderColor:"#BFE5D0"}},["& .".concat(GL.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));var lO=H.memo(aO);const sO="ListBoxCheckbox",cO={cbIcon:"".concat(sO,"-cbIcon"),cbIconChecked:"".concat(sO,"-cbIconChecked"),cbIconExcluded:"".concat(sO,"-cbIconExcluded"),cbIconAlternative:"".concat(sO,"-cbIconAlternative"),checkbox:"".concat(sO,"-checkbox"),dense:"".concat(sO,"-dense")},uO=uy(SC)((e=>{let{theme:t}=e;return{["& .".concat(cO.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(cO.cbIconChecked)]:{borderRadius:3,backgroundColor:t.palette.selected.main,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(cO.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.excluded},["& .".concat(cO.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.alternative},["&.".concat(cO.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(cO.dense)]:{padding:"4px 8px"}}})),dO=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return H.createElement("span",{className:e.cbIcon},n&&H.createElement("span",{className:t&&n?e.cbIconExcluded:""}))};function pO(e){let{onChange:t,checked:n,label:r,dense:o,excluded:i,showGray:a=!0,dataN:l}=e;return H.createElement(uO,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[cO.checkbox,o&&cO.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":l},name:r,icon:dO(cO,a,i),checkedIcon:H.createElement("span",{className:cO.cbIconChecked})})}const fO="ListBoxRadioButton",hO={denseRadioButton:"".concat(fO,"-denseRadioButton"),radioButton:"".concat(fO,"-radioButton")},mO=uy(JR)((e=>{let{theme:t,checked:n}=e;return{["&.".concat(hO.radioButton)]:{right:"5px",color:n?t.palette.selected.main:t.palette.main}}}));function gO(e){let{onChange:t,checked:n,label:r,dense:o,dataN:i}=e;return H.createElement(mO,{checked:n,onChange:t,value:r,name:r,className:hO.radioButton,inputProps:{"data-n":i},style:{backgroundColor:"transparent"},disableRipple:!0,size:o?"small":"medium",sx:o&&{padding:"0px 0px 0px 12px"}})}function vO(e){let{label:t,color:n,dense:r,showGray:o=!0,checkboxes:i,cell:a,valueTextAlign:l}=e;return H.createElement(vE,{component:"span",variant:"body2",className:nO([GL.labelText,r&&GL.labelDense,o&&tO({cell:a,checkboxes:i})&&GL.excludedTextWithCheckbox]),color:n,align:l,dir:"auto"},H.createElement("span",null,t))}function bO(e){let{label:t,color:n,dense:r,showGray:o,checkboxes:i,cell:a,valueTextAlign:l}=e;return"string"==typeof t?H.createElement(vO,{label:t,color:n,dense:r,showGray:o,checkboxes:i,cell:a,valueTextAlign:l}):t}function yO(e){let{onChange:t,label:n,color:r,qElemNumber:o,isSelected:i,dense:a,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}=e;const f=H.createElement(pO,{onChange:t,label:n,checked:i,dense:a,excluded:YL(l),isGridCol:s,showGray:c,dataN:o}),h=H.createElement(gO,{onChange:t,label:n,checked:i,dense:a,dataN:o});return H.createElement(tk,{color:r,control:u?h:f,className:GL.checkboxLabel,label:H.createElement(bO,{label:n,color:r,dense:a,showGray:c,checkboxes:d,cell:l,valueTextAlign:p}),key:o})}function xO(e){let{labels:t,dense:n,showGray:r,checkboxes:o}=e;const i=t.map(((e,t)=>{let[n,r]=e;return H.createElement("span",{id:t,className:r?GL.highlighted:""},n)}));return H.createElement(vO,{label:i,dense:n,showGray:r,checkboxes:o})}function SO(e){let{onChange:t,labels:n,checkboxes:r,dense:o,showGray:i,color:a,qElemNumber:l,isSelected:s,cell:c,isGridCol:u,isSingleSelect:d,valueTextAlign:p}=e;const f=H.createElement(xO,{labels:n,dense:o,showGray:i,checkboxes:r});return r?H.createElement(yO,{onChange:t,label:f,color:a,qElemNumber:l,isSelected:s,dense:o,cell:c,isGridCol:u,showGray:i,isSingleSelect:d,checkboxes:r,valueTextAlign:p}):f}var wO=H.memo((function(e){let{onChange:t,label:n,color:r,qElemNumber:o,isSelected:i,dense:a,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}=e;return d?H.createElement(yO,{onChange:t,label:n,color:r,qElemNumber:o,isSelected:i,dense:a,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}):H.createElement(vO,{label:n,color:r,dense:a,showGray:!0,checkboxes:d,cell:l,valueTextAlign:p})}));function EO(e){let{qFrequency:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:i}=e;if(!(t&&n&&"-"!==rO(t)))return;const a=(e=>{let{qFrequency:t,frequencyMax:n}=e;const r=String(t),o="%"===r.substring(r.length-1),i=parseFloat(o?r:t);return"".concat(o?i:i/n*100,"%")})({qFrequency:t,checkboxes:r,frequencyMax:i});return H.createElement(rC,{className:nO([GL.bar,r&&GL.barWithCheckbox,o&&(r?GL.barSelectedWithCheckbox:GL.barSelected)])},H.createElement(rC,{className:"bar-filled",width:a}))}function CO(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;const i=rO(null==t?void 0:t.qFrequency);return H.createElement(pk,{item:!0,style:{display:"flex",alignItems:"center"},className:GL.frequencyCount,"aria-label":i},H.createElement(vE,{noWrap:!0,color:"inherit",variant:"body2",className:nO([r&&GL.labelDense,GL.labelText,o&&tO({cell:t,checkboxes:n})&&GL.excludedTextWithCheckbox])},i))}function kO(e){let{dataLayout:t,layoutOrder:n,itemPadding:r}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const RO=uy(pk,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:a}=e;const l="padding".concat("rtl"===a?"Left":"Right");return{["&.".concat(GL.fieldRoot)]:i(i({},kO({dataLayout:t,layoutOrder:n,itemPadding:r})),{},{[l]:o?"8px":void 0})}}));const LO={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 OO(e){var t;let{layout:n}=e;const{translator:r}=U.useContext(Iw),{qStateCounts:o={}}=(null==n||null===(t=n.qListObject)||void 0===t?void 0:t.qDimensionInfo)||{},i=o.qSelected+o.qSelectedExcluded+o.qLocked+o.qLockedExcluded;let a;switch(i){case 0:a="ScreenReader.ZeroSelected";break;case 1:a="ScreenReader.OneSelected";break;default:a="ScreenReader.ManySelected"}const l=r.get(a,[i]);return H.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},l)}const IO=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===IO.ARROW_UP||e===IO.ARROW_DOWN||e===IO.ARROW_LEFT||e===IO.ARROW_RIGHT}),TO=e=>+e.getAttribute("data-n"),PO=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},_O=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},NO=e=>{let{rowIndex:t,columnIndex:n,rowCount:r,columnCount:o,layoutOrder:i,keyCode:a,numCells:l}=e;const s=e=>{let t;return"row"===i?(t=l%o,e<t?r:r-1):(t=l%r,e<o-1?r:t)};let c=t,u=n;if(a===IO.ARROW_DOWN)if(t>=s(n)-1){if(n===o-1)return-1;c=0,u=n+1}else c=t+1;else if(0===t){if(0===n)return-1;c=s(n-1)-1,u=n-1}else c=t-1;if("row"===i)return c*o+u;const d=l%r;return 0===d||c<d?c*o+u:(c-d)*(o-1)+u+d*o};function MO(e){var t,n,r;let{index:o,rowIndex:a,columnIndex:l,style:s,data:c}=e;const{onChange:u,onClick:d,onMouseDown:p,onMouseUp:f,onMouseEnter:h,onTouchStart:m,onTouchEnd:g,pages:v,isLocked:b,column:y=!1,checkboxes:x=!1,textAlign:S,direction:w,layoutOptions:E={},freqIsAllowed:C,isSingleSelect:k,actions:R,frequencyMax:L="",histogram:O=!1,keyboard:I,showGray:T=!0,showTick:P=!0,columnCount:_=1,rowCount:N=1,dataOffset:M,focusListItems:q,listCount:z,itemPadding:A,frequencyWidth:D,translator:j,showSearch:F,isModal:B}=c,{dense:$=!1,dataLayout:W="singleColumn",layoutOrder:V}=E;let G,K;const Z={max:null,currentIndex:null};if("number"==typeof a&&"number"==typeof l){"row"===V?(G=a*_+l,Z.max=N,Z.currentIndex=a):(G=l*N+a,Z.max=_,Z.currentIndex=l);const e=0;K=i(i({},s),{},{left:e+(0===l?s.left:Number(s.left)+l*e),top:0===a?s.top:Number(s.top)+a*e})}else G=o,Z.max=z,Z.currentIndex=o,K=i({},s);G+=M;const[X,Q]=U.useState(null);U.useEffect((()=>{null!==X&&(0===Z.currentIndex&&q.first&&(X.focus(),q.setFirst(!1)),Z.currentIndex===Z.max-1&&q.last&&(X.focus(),q.setLast(!1)))}),[X,q.first,q.last]);const J=U.useCallback(function(e){let{select:t,selectAll:n,onCtrlF:r,confirm:o,cancel:i,setScrollPosition:a,focusListItems:l,keyboard:s,isModal:c,rowCount:u,columnCount:d,rowIndex:p,columnIndex:f,layoutOrder:h}=e;const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e===IO.ARROW_LEFT||e===IO.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=NO({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 IO.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 IO.SHIFT:v(!0);break;case IO.SPACE:t([TO(d)],!1,e);break;case IO.ARROW_DOWN:case IO.ARROW_RIGHT:u=m(f,d,!0),h&&u&&(g&&(t([TO(d)],!0),v(!1)),t([TO(u)],!0));break;case IO.ARROW_UP:case IO.ARROW_LEFT:u=m(f,d,!1),h&&u&&(g&&(t([TO(d)],!0),v(!1)),t([TO(u)],!0));break;case IO.ENTER:o();break;case IO.ESCAPE:if(!c())return;i();break;case IO.HOME:if(l.setFirst(!0),b){null==a||a("overflowStart");break}null==a||a("start");break;case IO.END:if(l.setLast(!0),b){null==a||a("overflowEnd");break}null==a||a("end");break;case IO.A:if(b||y){n();break}return;case IO.F:if(b||y){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(i(i({},R),{},{focusListItems:q,keyboard:I,isModal:B,rowCount:N,columnCount:_,rowIndex:a,columnIndex:l,layoutOrder:V})),[R,null==I?void 0:I.innerTabStops,N,_,a,l,V]),Y=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:v,cellIndex:G})),[v,G]),ee="S"===(null==Y?void 0:Y.qState)||"XS"===(null==Y?void 0:Y.qState)||"L"===(null==Y?void 0:Y.qState)||"XL"===(null==Y?void 0:Y.qState),te=U.useMemo((()=>(e=>{let{column:t,histogram:n,checkboxes:r,cell:o,showGray:i}=e;const a=[t?GL.column:GL.row];return n||a.push(GL.rowBorderBottom),o?(r||("XS"===o.qState?a.push(i?GL.XS:GL.S):"S"===o.qState||"L"===o.qState?a.push(GL.S):i&&eO(o)?a.push(GL.A):i&&YL(o)&&a.push(GL.X)),a):[]})({column:y,histogram:O,checkboxes:x,cell:Y,showGray:T})),[null==Y?void 0:Y.qState,O,$,x]),ne=U.useCallback((e=>{e.preventDefault()}),[x]);if(!Y)return null;const re=!["NaN",void 0].includes(null==Y?void 0:Y.qNum);let oe;oe=!S||S.auto?re?"rtl"===w?"left":"right":{rtl:"right",ltr:"left"}[w]:(null==S?void 0:S.align)||"left";const ie="grid"===W&&"column"===V,ae=null!==(t=null==Y?void 0:Y.qText)&&void 0!==t?t:"";let le;if(null!==(n=Y.qHighlightRanges)&&void 0!==n&&null!==(r=n.qRanges)&&void 0!==r&&r.length){const e=Y.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];le=function(e,t){if(!t.length)return[];const n=t.reduce(((n,r,o)=>{const i=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{qCharPos:r,qCharCount:o}=t,i=[];return r>n&&i.push([e.slice(n,r),!1]),i.push([e.slice(r,r+o),!0]),i}(e,r,i));const a=o===t.length-1,l=t[o].qCharPos+t[o].qCharCount;return a&&l<e.length&&n.push([e.slice(l),!1]),n}),[]);return n}(ae,e)}const se={alignItems:"center",display:"flex",fontSize:"8px"},ce={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"rtl"===w?8:x?0:void 0,paddingRight:x?0:"rtl"===w?8:0,justifyContent:oe},ue=0===o,de=x?"auto":"max-content",pe=ee&&b,fe=!x&&ee&&!b,he=!x&&P,me=x||!P,ge=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:i,maxIndex:a,showSearch:l}=e;const s=LO[r],c=t.get(s),u=[];if(o){const e=l?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=t.get(e);u.push(n)}const d="".concat(n," ").concat(c),p=t.get("CurrentSelections.Of",[i+1,a+1]);return u.unshift(d,p),u.join(". ").trim()}({translator:j,label:ae,qState:Y.qState,currentIndex:Z.currentIndex,maxIndex:Z.max,showSearch:F});return H.createElement(lO,{className:GL.barContainer,flexBasisProp:de,style:K,isGridCol:ie,isGridMode:"grid"===W,dense:$,frequencyWidth:D,direction:w,"data-testid":"listbox.item"},H.createElement(RO,{role:"row","aria-label":ge,"aria-selected":ee,"aria-setsize":Z.max,"aria-rowindex":Z.currentIndex,ref:Q,container:!0,dataLayout:W,cellPaddingRight:me,layoutOrder:V,itemPadding:A,gap:0,className:nO(["value",...te]),classes:{root:GL.fieldRoot},onClick:d,onMouseDown:p,onMouseUp:f,onMouseEnter:h,onKeyDown:J,onTouchStart:m,onTouchEnd:g,onContextMenu:ne,tabIndex:ue&&I.innerTabStops?0:-1,"data-n":null==Y?void 0:Y.qElemNumber,direction:w},(null==Y?void 0:Y.qFrequency)&&H.createElement(EO,{qFrequency:null==Y?void 0:Y.qFrequency,histogram:O,checkboxes:x,isSelected:ee,frequencyMax:L}),H.createElement(pk,{item:!0,style:ce,className:nO([GL.cell,GL.selectedCell]),title:"".concat(ae)},le?H.createElement(SO,{onChange:u,labels:le,checkboxes:x,dense:$,showGray:T,color:"inherit",qElemNumber:Y.qElemNumber,isSelected:ee,cell:Y,isGridCol:ie,isSingleSelect:k,valueTextAlign:oe}):H.createElement(wO,{onChange:u,label:ae,color:"inherit",qElemNumber:Y.qElemNumber,isSelected:ee,dense:$,cell:Y,isGridCol:ie,showGray:T,isSingleSelect:k,checkboxes:x,valueTextAlign:oe})),C&&H.createElement(CO,{cell:Y,checkboxes:x,dense:$,showGray:T}),he&&H.createElement(pk,{item:!0,className:GL.icon},pe&&H.createElement(zL,{style:se,size:"small"}),fe&&H.createElement(JL,{style:se,size:"small"}))))}var qO=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function zO(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||qO(r)&&qO(o)))return!1;var r,o;return!0}function AO(e,t){var n;void 0===t&&(t=zO);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var DO="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function jO(e){cancelAnimationFrame(e.id)}function FO(e,t){var n=DO();var r={id:requestAnimationFrame((function o(){DO()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var BO=-1;function $O(e){if(void 0===e&&(e=!1),-1===BO||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),BO=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return BO}var WO=null;function UO(e){if(void 0===e&&(e=!1),null===WO||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?WO="positive-descending":(t.scrollLeft=1,WO=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),WO}return WO}var HO=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function VO(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,MS(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:MS(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=AO((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=AO((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,c=a.rowHeight,p=r._getItemStyleCache(m&&l,m&&s,m&&c),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=AO((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,c=i;if("rtl"===t)switch(UO()){case"negative":c=-i;break;case"positive-descending":c=s-o-i}c=Math.max(0,Math.min(c,s-o));var u=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&jO(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=FO(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}ES(t,e),t.getDerivedStateFromProps=function(e,t){return GO(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,u=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=$O();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(UO()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&jO(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?HO:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],E=S[1],C=this._getVerticalRangeToRender(),k=C[0],R=C[1],L=[];if(r>0&&g)for(var O=k;O<=R;O++)for(var I=w;I<=E;I++)L.push(U.createElement(t,{columnIndex:I,data:d,isScrolling:b?x:void 0,key:f({columnIndex:I,data:d,rowIndex:O}),rowIndex:O,style:this._getItemStyle(O,I)}));var T=a(this.props,this._instanceProps),P=l(this.props,this._instanceProps);return U.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:xS({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},U.createElement(c||u||"div",{children:L,ref:s,style:{height:T,pointerEvents:x?"none":void 0,width:P}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(a,l,d,p,s,c,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,b=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,c=s.horizontalScrollDirection,u=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,c=a.scrollTop,u=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,u),g=l&&"forward"!==s?1:Math.max(1,u);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(U.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var GO=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},KO=function(e,t){return e};function ZO(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,MS(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:MS(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=AO((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=AO((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,u=r._getItemStyleCache(c&&l,c&&s,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,h="rtl"===a,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=AO((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(UO()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&jO(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=FO(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}ES(t,e),t.getDerivedStateFromProps=function(e,t){return XO(e,t),u(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?$O():0:s.scrollHeight>s.clientHeight?$O():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(UO()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&jO(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?KO: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:xS({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},U.createElement(l||s||"div",{children:k,ref:a,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 i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,s,this._instanceProps),u=l(this.props,c,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(U.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var XO=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},QO=VO({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){var a=e.columnCount,l=e.columnWidth,s=e.width,c=Math.max(0,a*l-s),u=Math.min(c,t*l),d=Math.max(0,t*l-s+i+l);switch("smart"===n&&(n=r>=d-s&&r<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(s/2)?0:p>c+Math.floor(s/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){var a=e.rowHeight,l=e.height,s=e.rowCount,c=Math.max(0,s*a-l),u=Math.min(c,t*a),d=Math.max(0,t*a-l+i+a);switch("smart"===n&&(n=r>=d-l&&r<=u+l?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(l/2)?0:p>c+Math.floor(l/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,o=e.columnCount,i=e.width,a=t*r,l=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+l-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,o=e.rowCount,i=e.height,a=t*r,l=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+l-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),JO=ZO({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===a||"horizontal"===u?d:l,f=Math.max(0,s*c-p),h=Math.min(f,t*c),m=Math.max(0,t*c-p+c+i);switch("smart"===n&&(n=r>=m-p&&r<=h+p?"auto":"center"),n){case"start":return h;case"end":return m;case"center":var g=Math.round(m+(h-m)/2);return g<Math.ceil(p/2)?0:g>f+Math.floor(p/2)?f:g;default:return r>=m&&r<=h?r:r<m?m:h}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,i=e.itemCount,a=e.itemSize,l=e.layout,s=e.width,c=t*a,u="horizontal"===r||"horizontal"===l?s:o,d=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const YO="#BBB",eI="#f1f1f1",tI={styledScrollbars:"".concat("ListBox","-styledScrollbars")};function nI(e){let{renderProps:t,layoutOptions:n,maxCount:r,columnCount:o,rowCount:i,overflowDisclaimer:a,qCardinal:l,dataOffset:s}=e;const c="column"===(null==n?void 0:n.layoutOrder)&&"singleColumn"!==n.dataLayout,u=((e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex)(t,c),d=c?r.column:r.row,p=(c?o:i)>=d,f=((e,t,n,r)=>e===t*n+r+n)(l,u,c?i:o,s),h=!!s&&((e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex)(t,c),m=p&&!f&&u>=d-1||h||a.state.show;a.set(m)}const{StyledFixedSizeList:rI,StyledFixedSizeGrid:oI}=function(){const e=e=>({scrollbarColor:"".concat(YO," ").concat(eI),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:eI},"&::-webkit-scrollbar-thumb":{backgroundColor:YO,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:_m(JO,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(tI.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:_m(QO,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(tI.styledScrollbars)]:e(n)}}))}}();function iI(e){let{layout:t,width:n,height:r,listCount:o,count:i,textWidth:a,freqIsAllowed:l,checkboxes:s}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:p,dense:f,dataLayout:h}=c,m=l?40:0,g=s?20:0;let v=56+m+g;!s&&v>=80&&(v+=20);let b,y,x,S,w=a+18+m+g;!s&&w>=80&&(w+=20),w=Math.min(150,Math.max(w,v));const E="grid"===h;let C=f?20:E?32:29;E&&(C+=4);const k=null!=r?r:8*C;if(u){let e=n;"row"===u?(b={overflowX:"hidden"},e+=8,({rowCount:S,columnWidth:x,columnCount:y}=function(e){let{maxVisibleColumns:t,listCount:n,containerWidth:r,columnAutoWidth:o,itemMinWidth:i}=e;const a=(null==t?void 0:t.maxColumns)||3,l=r-10;let s;const c=Math.min(n,Math.max(1,Math.round(l/Math.max(i,o))));s=!1!==(null==t?void 0:t.auto)?c:Math.min(n,a,c);const u=l/s;return{rowCount:Math.ceil(n/s),columnWidth:u,columnCount:s}}({maxVisibleColumns:p,listCount:o,containerWidth:e,columnAutoWidth:w,itemMinWidth:v}))):(b={overflowY:"hidden"},({rowCount:S,columnWidth:x,columnCount:y}=function(e){let t,{maxVisibleRows:n,itemHeight:r,listCount:o,listHeight:i,columnAutoWidth:a,containerWidth:l,itemMinWidth:s}=e;const c=(null==n?void 0:n.maxRows)||3,u=Math.floor(i/r);t=!1!==n.auto?u:Math.min(o,c,u);const d=Math.ceil(o/t);return{columnWidth:Math.max(a,l/d,s),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:C,listCount:o,listHeight:k,columnAutoWidth:w,containerWidth:e,itemMinWidth:v})))}y=("singleColumn"===h?1:y)||1,S=("singleColumn"===h?i:S)||o;const R=c.dense?838e3:577e3;S=Math.min(S,R);const L=Math.floor(3355e4/x);y=Math.min(y,L)||1;const O=S*y;return{columnCount:y,columnWidth:x,rowCount:S,overflowStyling:b,itemHeight:C,listHeight:k,scrollBarWidth:10,count:i,listCount:Math.min(o,O),maxCount:{row:R,column:L},itemPadding:4,frequencyWidth:40}}const aI=(e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map((e=>n.measureText(e).width)));return n.measureText(e).width};function lI(e){if(!e)return"";const t=e.qListObject.qDimensionInfo.qApprMaxGlyphCount;let n="";for(let e=0;e<t;e++)n+="M";return n}function sI(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;const i=null!=t&&t.length&&o?(e=>{let{pages:t=[],minimumBatchSize:n,count:r}=e;const o=t.some((e=>e.qArea.qHeight<n)),i=Math.max(...t.map((e=>e.qArea.qTop+e.qArea.qHeight)));return o?i:r})({pages:t,minimumBatchSize:n,count:r}):r;return i||0}const[cI,uI]=Tw({});function dI(e){const t="".concat(e.id),[n]=cI();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const pI=uy(vE,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return i({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px")},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function fI(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:i}=U.useContext(Iw);return H.createElement(uL,{title:o?i.get(n):""},H.createElement(pI,{width:t,dense:r,component:"div",variant:"body1",py:"12px"},i.get(n)))}var hI={},mI={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(mI);var gI,vI=mI.exports,bI={},yI=r(Qw);var xI=vI;Object.defineProperty(hI,"__esModule",{value:!0});var SI=hI.default=void 0,wI=xI((gI||(gI=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=yI}(bI)),bI)),EI=Vg,CI=(0,wI.default)((0,EI.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");SI=hI.default=CI;const kI=uy(oE)((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}})),RI=uy("div")((()=>({paddingLeft:"6px",flexGrow:1}))),LI=uy("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),OI=uy(SI)((()=>({fontSize:"14px"})));function II(e){let{text:t,dismiss:n,dense:r,parentWidth:o=0}=e;const i="function"==typeof n,a=r?370:282,l=Math.max(o/2-a/2,0),s=Math.min(a,o)-42,c=r&&o<a;return H.createElement(kI,{left:l,style:{maxWidth:a}},H.createElement(RI,null,H.createElement(fI,{text:t,dense:r,width:s,tooltip:c})),H.createElement(LI,{dense:r},i&&H.createElement(uE,{"aria-label":"close",onClick:()=>n()},H.createElement(OI,null))))}function TI(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>80,{frequencyEnabled:i=!1}=(null==n?void 0:n.qListObject)||{},a=!["none",void 0].includes(r);return!(!o||!a&&!i)}const PI=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,"))")},_I=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=U.useState(),[i,a]=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=PI(r);return(await t.evaluateEx(o)).qNumber})(t,e);o(n),a(!1)})()}),[n&&t]),{frequencyMax:n?r:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:i}},NI=["isLoadingData"],MI=uy("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function qI(e){var t,n,r,o;let{model:a,app:c,constraints:u,layout:d,selections:p,selectionState:f,direction:h,checkboxes:m,height:g,width:v,frequencyMode:b,update:y,fetchStart:x,postProcessPages:S,calculatePagesHeight:w=!1,keyboard:E={},showGray:C=!0,scrollState:k,selectDisabled:R=(()=>!1),keyScroll:L={state:{},reset:()=>{}},currentScrollIndex:O={set:()=>{}},renderedCallback:I,onCtrlF:T,showSearch:P,isModal:_}=e;const{translator:N}=U.useContext(Iw),[M,q]=U.useState(!1),z=!(!d||!d.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:A=m,histogram:D}=null!=d?d:{},j=U.useRef(null),F=U.useRef({queue:[],validPages:!1,dataOffset:0}),B=U.useRef({pages:[]}),{frequencyMax:$,awaitingFrequencyMax:W}=_I(c,d),V=function(e){let{local:t,loaderRef:n,model:r,fetchStart:o,scrollTimeout:i,postProcessPages:a,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],i=r.getListObjectData("/qListObjectDef",[{qTop:n.start>p?n.start-p:0,qHeight:p,qLeft:0,qWidth:1},{qTop:n.start,qHeight:p,qLeft:0,qWidth:1}]).then((n=>{const r=a?a(n):n;t.current.validPages=!0,l.current.pages=r,d(r),c(!1),e()}));o&&o(i)}),f?i:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(p=t),f}},pages:u,isLoading:s}}({local:F,loaderRef:j,model:a,fetchStart:x,scrollTimeout:0,postProcessPages:S,listData:B}),G=s(V,NI),{setStoreValue:K}=dI(a),Z=U.useCallback(G.loadMoreItems,[d]),[X,Q]=U.useState({show:!1,dismissed:!1}),[J,Y]=U.useState([]);null!=G&&G.pages&&f.update({setPages:Y,pages:G.pages,isSingleSelect:z,selectDisabled:R,layout:d});const ee=null==d?void 0:d.qListObject.qDimensionInfo.qCardinal;(null!=G&&G.pages.length&&!W||0===ee)&&(null==I||I());const te=U.useCallback((e=>{if(null==J||!J.length||!F.current.validPages)return!1;F.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=J.filter((e=>t(e)))[0];return n&&t(n)}),[d,J]),{interactionEvents:ne,select:re}=XL({selectionState:f,selections:p,checkboxes:A,doc:document,loaderRef:j}),{layoutOptions:oe={}}=d||{};let ie=!0;oe.dataLayout&&(ie="singleColumn"===oe.dataLayout||"row"===(null==oe?void 0:oe.layoutOrder));const ae="grid"===(null==oe?void 0:oe.dataLayout),le=e=>{const t=i({},ie?{rowIndex:e}:{columnIndex:e}),n=ae?t:e;j.current._listRef.scrollToItem(n)},se=()=>{if(F.current.queue=[],F.current.validPages=!1,j.current){j.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===L.state.scrollPosition;if(d&&d.qSelectionInfo.qInSelections||e)return void(e&&L.reset());F.current.dataOffset=0,le(0)}};y&&y.call(null,se),U.useEffect((()=>{k&&!M&&j.current&&(j.current._listRef.scrollToItem(k.initScrollPos),q(!0))}),[j.current]),U.useEffect((()=>{se()}),[d,F.current.dataOffset]);const ce=(e=>{const t=U.useMemo((()=>"text"in e?e:{}),[e]);return U.useMemo((()=>aI(t.text,t.font||"14px Source Sans Pro")),[t.text,t.font])})({text:lI(d),font:"14px Source sans pro"});let ue=100;const de="grid"!==oe.dataLayout,pe=null==d||null===(t=d.qListObject.qSize)||void 0===t?void 0:t.qcy,fe=sI({pages:J,minimumBatchSize:ue,count:pe,calculatePagesHeight:w,layoutOptions:oe,model:a});let he=TI({itemWidth:v,layout:d,frequencyMode:b});const me=iI({layout:d,width:v,height:g,listCount:fe,count:pe,textWidth:ce,freqIsAllowed:he,checkboxes:A});me.columnWidth&&(he=TI({itemWidth:me.columnWidth,layout:d,frequencyMode:b}));const{listCount:ge}=me;K("listCount",ge);const ve=e=>{const{scrollIndex:t,offset:n,triggerRerender:r}=function(e){let t,{position:n,isRow:r,sizes:o,layout:i,offset:a}=e,l=!1,s=null!=a?a:0;switch(n){case"start":t=0;break;case"end":t=r?o.rowCount:o.columnCount;break;case"overflowStart":s=0,t=0,l=!0;break;case"overflowEnd":s=((e,t)=>e.qListObject.qDimensionInfo.qCardinal-t)(i,o.listCount),t=i.qListObject.qDimensionInfo.qCardinal,l=!0}return{scrollIndex:t,offset:s,triggerRerender:l}}({position:e,isRow:ie,sizes:me,layout:d,offset:F.current.dataOffset});F.current.dataOffset=n,r&&f.triggerStateChanged(),le(t)};U.useEffect((()=>{const e=L.state;e.up?le(O.state.start-e.up):e.down?le(O.state.stop+e.down):e.scrollPosition&&ve(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&L.reset()}),[L.state.up,L.state.down,L.state.scrollPosition]);const{textAlign:be}=(null==d?void 0:d.qListObject.qDimensionInfo)||{},[ye,xe]=U.useState({first:!1,last:!1}),{List:Se,Grid:we}=function(e){let{layout:t,width:n,checkboxes:r,local:o,isVertical:a,pages:s,selectDisabled:c,interactionEvents:u,frequencyMode:d,histogram:p,isSingleSelect:f,select:h,selectAll:m,onCtrlF:g,textAlign:v,selections:b,keyboard:y,showGray:x,scrollState:S,direction:w,sizes:E,listCount:C,overflowDisclaimer:k,setScrollPosition:R,focusListItems:L,setCurrentScrollIndex:O,constraints:I,frequencyMax:T,freqIsAllowed:P,translator:_,showSearch:N,isModal:M}=e;const{layoutOptions:q={}}=t||{},{columnWidth:z,itemPadding:A,listHeight:D,itemHeight:j,rowCount:F,columnCount:B,frequencyWidth:$}=E||{},W=("grid"===q.dataLayout?z:n)>80,U={direction:"rtl"===w?"rtl":"ltr",useIsScrolling:!0,className:tI.styledScrollbars},V=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,G=i(i({isLocked:V,column:!a,pages:s},V||c()?{}:u),{},{checkboxes:r,layoutOptions:q,frequencyMode:d,freqIsAllowed:P,isSingleSelect:f,textAlign:v,itemPadding:A,frequencyWidth:$,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:T,histogram:p,keyboard:y,showGray:x,showTick:W,dataOffset:o.current.dataOffset,focusListItems:L,direction:w,translator:_,showSearch:N,isModal:M});return{List:e=>{let{onItemsRendered:r,ref:a}=e;return o.current.listRef=a,H.createElement(rI,l({},U,{dataTestid:"fixed-size-list",scrollDisabled:null==I?void 0:I.active,height:D,width:n,itemCount:C,itemData:i(i({},G),{},{listCount:C}),itemSize:j,onItemsRendered:e=>{var n,a;O({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),nI({renderProps:e,layoutOptions:q,maxCount:E.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(a=n.qDimensionInfo)||void 0===a?void 0:a.qCardinal,dataOffset:o.current.dataOffset}),r(i({},e))},ref:a}),MO)},Grid:e=>{let{onItemsRendered:r,ref:a}=e;const{overflowStyling:s,scrollBarWidth:c}=E,{layoutOrder:u}=q||{},d=Math.min(D,F*j+c);return o.current.listRef=a,H.createElement(oI,l({},U,{dataTestid:"fixed-size-grid",scrollDisabled:null==I?void 0:I.active,height:d,width:n,columnCount:B,columnWidth:z,rowCount:F,rowHeight:j,style:i({},s),itemData:i(i({},G),{},{column:void 0,columnCount:B,rowCount:F}),onItemsRendered:e=>{var n,i;const a="row"===u;O({start:a?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:a?e.visibleRowStopIndex:e.visibleColumnStopIndex});const l=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:i}=e,{overscanRowStartIndex:a,overscanRowStopIndex:l,overscanColumnStartIndex:s,overscanColumnStopIndex:c,visibleStopIndex:u}=t;let d,p,f,h;return n&&n.setScrollPos(u),"column"===r?(d=s*o,p=a,f=c*o,h=l):(d=s,p=a*i,f=c,h=l*i),{visibleStartIndex:d+p,visibleStopIndex:f+h}}({renderProps:e,scrollState:S,layoutOrder:u,rowCount:F,columnCount:B});nI({renderProps:e,layoutOptions:q,maxCount:E.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(i=n.qDimensionInfo)||void 0===i?void 0:i.qCardinal,dataOffset:o.current.dataOffset}),r(l)},ref:a}),MO)}}}({direction:h,layout:d,height:g,width:v,checkboxes:A,frequencyMode:b,histogram:D,keyboard:E,showGray:C,interactionEvents:ne,select:re,selectAll:()=>{f.clearItemStates(!1),a.selectListObjectAll("/qListObjectDef")},onCtrlF:T,textAlign:be,isVertical:de,pages:J,selectDisabled:R,isSingleSelect:z,selections:p,scrollState:k,local:F,sizes:me,listCount:ge,overflowDisclaimer:{state:X,set:e=>Q((t=>i(i({},t),{},{show:e})))},setScrollPosition:ve,focusListItems:{first:ye.first,setFirst:e=>xe((t=>i(i({},t),{},{first:e}))),last:ye.last,setLast:e=>xe((t=>i(i({},t),{},{last:e})))},setCurrentScrollIndex:O.set,constraints:u,frequencyMax:$,freqIsAllowed:he,translator:N,showSearch:P,isModal:_}),{columnWidth:Ee,listHeight:Ce,itemHeight:ke}=me||{};return de||(ue=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:v,columnWidth:Ee,listHeight:Ce,itemHeight:ke})),H.createElement(MI,null,H.createElement(OO,{className:"screenReaderOnly",layout:d}),!ge&&ee>0&&H.createElement(fI,{width:v,text:"Listbox.NoMatchesForYourTerms"}),H.createElement(BL,{isItemLoaded:te,itemCount:ge||1,loadMoreItems:Z.with({minimumBatchSize:ue}),threshold:0,minimumBatchSize:ue,ref:j,role:"grid"},de?Se:we),X.show&&!X.dismissed&&H.createElement(II,{text:"Listbox.ItemsOverflow",dismiss:()=>Q((e=>i(i({},e),{},{dismissed:!0}))),parentWidth:null==j||null===(n=j.current)||void 0===n||null===(r=n._listRef)||void 0===r||null===(o=r.props)||void 0===o?void 0:o.width,dense:null==oe?void 0:oe.dense}))}const zI=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]}),AI=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),DI=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),jI=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});var FI=e=>{let{layout:t,model:n,translator:r,selectionState:o,isDirectQuery:i=!1}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:zI,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:DI,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectPossible("/qListObjectDef")}},!i&&{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:AI,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAlternative("/qListObjectDef")}},!i&&{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:jI,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectExcluded("/qListObjectDef")}}].filter(Boolean)};const BI=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M2,6.5 L3,6.5 C3.55228475,6.5 4,6.94771525 4,7.5 L4,8.5 C4,9.05228475 3.55228475,9.5 3,9.5 L2,9.5 C1.44771525,9.5 1,9.05228475 1,8.5 L1,7.5 C1,6.94771525 1.44771525,6.5 2,6.5 Z M7.5,6.5 L8.5,6.5 C9.05228475,6.5 9.5,6.94771525 9.5,7.5 L9.5,8.5 C9.5,9.05228475 9.05228475,9.5 8.5,9.5 L7.5,9.5 C6.94771525,9.5 6.5,9.05228475 6.5,8.5 L6.5,7.5 C6.5,6.94771525 6.94771525,6.5 7.5,6.5 Z M13,6.5 L14,6.5 C14.5522847,6.5 15,6.94771525 15,7.5 L15,8.5 C15,9.05228475 14.5522847,9.5 14,9.5 L13,9.5 C12.4477153,9.5 12,9.05228475 12,8.5 L12,7.5 C12,6.94771525 12.4477153,6.5 13,6.5 Z"}}]});function $I(e){const t=ay(),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 WI={className:"njs-cell-action"},UI=H.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const i=ay(),{hidden:a,disabled:l,style:s,hasSvgIconShape:c}=$I(r);if(a)return null;const u=Number.parseInt(i.spacing(.5),10),d=r.keyboardAction||r.action,p=d?e=>["Enter"].includes(e.key)&&d():null,f=d?e=>[" ","Spacebar"].includes(e.key)&&d():null,h="actions-toolbar-".concat(r.key);return H.createElement(uE,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:p,onKeyUp:f,disabled:l,style:s,className:[WI.className,h].join(" "),size:"large",disableRipple:!0,"aria-expanded":n,"aria-controls":"moreMenuList","data-testid":h},c&&ML(r.getSvgIconShape()),o&&H.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),HI=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]}),VI=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]});var GI=e=>ML(VI(e));const KI="njs-action-toolbar-more",ZI={icon:"".concat("More","-icon")},XI=uy(SR)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(ZI.icon)]:{color:t.palette.text.primary}}}));function QI(e){let{item:t,autoFocus:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:i,hasSvgIconShape:a}=$I(t);return o?null:H.createElement(OR,{autoFocus:n,title:t.label,onClick:()=>{t.action(),r()},disabled:i,tabindex:"0"},a&&H.createElement(nR,{className:ZI.icon},ML(t.getSvgIconShape())),H.createElement(vE,{noWrap:!0},t.label))}const JI=H.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:o,popoverProps:a={},popoverPaperStyle:s={},onCloseOrActionClick:c=(()=>{})}=e;const u=n.length>0,d=n.findIndex((e=>!e.disabled));return u&&H.createElement(XI,l({},a,{onClose:c,ref:t,open:r,anchorEl:o.current,getContentAnchorEl:null,container:o.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:KI}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:i({pointerEvents:"auto",maxWidth:"250px"},s)}}),H.createElement(uR,{id:"moreMenuList"},n.map(((e,t)=>H.createElement(QI,{key:t,item:e,autoFocus:t===d,onActionClick:c})))))}));function YI(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r,selections:o}=e;return e=>{const{target:i,nativeEvent:a}=e,{keyCode:l}=a;switch(l){case IO.ARROW_LEFT:case IO.ARROW_DOWN:case IO.ARROW_RIGHT:case IO.ARROW_UP:if(i.classList.contains("njs-cell-action")){const e=(e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)})(i);(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()})([IO.ARROW_LEFT,IO.ARROW_DOWN].includes(l)?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case IO.SPACE:e.preventDefault();break;case IO.TAB:if(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 IO.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}const eT="ActionsToolbar",tT={item:"".concat(eT,"-item"),itemSpacing:"".concat(eT,"-itemSpacing"),firstItemSpacing:"".concat(eT,"-firstItemSpacing"),lastItemSpacing:"".concat(eT,"-lastItemSpacing")},nT=uy(SR)((e=>{let{theme:t}=e;return{["& .".concat(tT.itemSpacing)]:{padding:t.spacing(0,.5)},["& .".concat(tT.firstItemSpacing)]:{padding:t.spacing(0,.5,0,0)},["& .".concat(tT.lastItemSpacing)]:{padding:t.spacing(0,0,0,.5)}}})),rT="njs-action-toolbar-popover",oT=H.forwardRef(((e,t)=>{let{className:n,ariaExpanded:r=!1,actions:o=[],first:i=!1,last:a=!1,addAnchor:l=!1,isRtl:s=!1}=e;return o.length>0?H.createElement(pk,{item:!0,container:!0,gap:0,flexDirection:s?"row-reverse":"row",wrap:"nowrap",className:n},o.map(((e,n)=>{let s=[];const c=i&&0===n,u=a&&o.length-1===n;return c&&!u&&(s=[tT.firstItemSpacing,tT.item]),u&&!c&&(s=[...s,tT.lastItemSpacing,tT.item]),c||u||0!==s.length||(s=[tT.itemSpacing,tT.item]),H.createElement(pk,{item:!0,key:e.key,className:s.join(" ").trim()},H.createElement(UI,{ariaExpanded:r,key:e.key,item:e,ref:0===n?t:null,addAnchor:l}))}))):null})),iT={pointerEvents:"none"},aT={vertical:"bottom",horizontal:"right"};function lT(e){var t,n;let{show:r=!0,actions:o=[],maxItems:i=3,selections:a={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:l={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:s={show:!1,anchorEl:null},focusHandler:c=null,actionsRefMock:u=null,direction:d="ltr"}=e;const p=function(e){let{api:t,onConfirm:n=(()=>{}),onCancel:r=(()=>{}),onKeyDeactivate:o=(()=>{})}=e;const{translator:i}=U.useContext(Iw);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:VI},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(),action:()=>{r(),t.cancel()},keyboardAction:()=>{o(),r(),t.cancel()},getSvgIconShape:HI},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(),action:()=>{n(),t.confirm()},keyboardAction:()=>{o(),n(),t.confirm()},getSvgIconShape:QL}]}(a),{translator:f,keyboardNavigation:h}=U.useContext(Iw),[m,g]=U.useState(!1),v={vertical:7,horizontal:(null!==(t=null===(n=s.anchorEl)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)-7},b=U.useRef(),y=U.useRef(),x=ay(),S=U.useMemo((()=>({margin:x.spacing(.5,0)}))),w=e=>{const t=b.current||u;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},E=U.useMemo((()=>YI({keyboardNavigation:h,focusHandler:c,getEnabledButton:w,selections:a})),[h,c,w,a]);U.useEffect((()=>()=>{g(!1)}),[s.show,r,a.show]),U.useEffect((()=>{if(!c)return;c.on("focus_toolbar_first",(()=>{const e=w(!1);e&&e.focus()})),c.on("focus_toolbar_last",(()=>{const e=w(!0);e&&e.focus()}))}),[]);let C=l.enabled,k=l.actions;const R=l.alignTo||y,L=o.filter((e=>!e.hidden));if(L.length>i){const e=L.splice(-(L.length-i)-1);C=!0,k=[...e,...l.actions]}if(!a.show&&0===L.length)return null;const O={key:"more",label:f.get("Menu.More"),getSvgIconShape:BI,hidden:!1,active:m,enabled:()=>C,action:()=>g(!m)},I=L.length>0,T=k.length>0,P=I&&a.show||T&&a.show,_="rtl"===d,N=H.createElement(pk,{ref:b,onKeyDown:E,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:_?"row-reverse":"row"}},I&&H.createElement(oT,{actions:L,first:!0,last:!T&&!a.show}),T&&H.createElement(oT,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:y,ariaExpanded:m,actions:[O],first:!I,last:!a.show,addAnchor:!0}),P&&H.createElement(pk,{item:!0,className:tT.itemSpacing,style:S},H.createElement(KC,{orientation:"vertical"})),a.show&&H.createElement(oT,{className:"actions-toolbar-default-actions",actions:p,first:!I&&!T,last:!0,isRtl:_}),m&&H.createElement(JI,{show:m,actions:k,alignTo:R,popoverProps:l.popoverProps,popoverPaperStyle:l.popoverPaperStyle,onCloseOrActionClick:()=>{g(!1)}}));return s.show?H.createElement(nT,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:s.show,anchorEl:s.anchorEl,anchorOrigin:v,transformOrigin:aT,hideBackdrop:!0,style:iT,PaperProps:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:rT,style:{pointerEvents:"auto",padding:x.spacing(.8)}}},N):r&&N}var sT=e=>ML((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(e));const cT="/qListObjectDef",uT=uy(Tk)((e=>{var t,n;let{theme:r}=e;return{color:null===(t=r.listBox)||void 0===t||null===(n=t.content)||void 0===n?void 0:n.color}})),dT=uy(AR)((e=>{var t,n;let{theme:r}=e;return{color:null===(t=r.listBox)||void 0===t||null===(n=t.content)||void 0===n?void 0:n.color,display:"flex"}}));function pT(e){let{selections:t,selectionState:n,model:r,keyboard:o,dense:i=!1,visible:a=!0,autoFocus:l=!0,wildCardSearch:s=!1,searchEnabled:c,direction:u,hide:d}=e;const{translator:p}=U.useContext(Iw),[f,h]=U.useState(""),[m,g]=U.useState(!1),v=U.useRef(),b=ay(),{getStoreValue:y}=dI(r),x="rtl"===u,S=x?"right":"left",w=async()=>{if(t.isModal())try{await r.abortListObjectSearch(cT)}finally{h("")}};U.useEffect((()=>{a||w()}),[a]),U.useEffect((()=>(t.on("deactivated",w),()=>{t.removeListener&&t.removeListener("deactivated",w)})),[]),U.useEffect((()=>{if(m&&v.current){const e=f.length-1;v.current.setSelectionRange(e,e),g(!1)}}),[m,v.current]);const E=async()=>{let e;return await r.searchListObjectFor(cT,f)&&f.length&&y("listCount")>0&&(e=r.acceptListObjectSearch(cT,!0),t.selectionsMade=!0,n.clearItemStates(!1),h("")),e};function C(e){const t=(null==e?void 0:e.querySelector(".last-focused"))||(null==e?void 0:e.querySelector('[role="row"]:first-child'));t.setAttribute("tabIndex",0),null==t||t.focus()}return a&&!1!==c?H.createElement(dT,{startAdornment:H.createElement(uT,{position:"start"},H.createElement(sT,{size:i?"small":"normal"})),className:"search",sx:[{border:"none",fontSize:14,borderRadius:0,backgroundColor:"transparent","& fieldset":{border:"1px solid ".concat(b.palette.divider),borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"},paddingLeft:"".concat(9,"px")},i&&{fontSize:12,paddingLeft:b.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}},{flexDirection:x?"row-reverse":"row"}],inputRef:v,size:"small",fullWidth:!0,placeholder:p.get("Listbox.Search"),value:f,onFocus:()=>{s&&(h("**"),g(!0)),t.isModal()||t.begin(["/qListObjectDef"])},onChange:async e=>(h(e.target.value),e.target.value.length?r.searchListObjectFor(cT,e.target.value):w()),onKeyDown:async e=>{const{currentTarget:n}=e,r=n.closest(".listbox-container");switch(e.key){case"Enter":E();break;case"Escape":C(r),t.isActive()&&t.cancel();break;case"Tab":e.shiftKey?o.focusSelection():(C(r),null==r||r.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")})));break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;d&&(d(),C(r));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:l,inputProps:{tabIndex:o.innerTabStops?0:-1,style:{textAlign:"".concat(S)},"data-testid":"search-input-field"}}):null}function fT(e){return Object.keys(te.prototype).forEach((t=>{e[t]=te.prototype[t]})),te.init(e),e}const hT=e=>{let t,{appSelections:n,appModal:r,model:o}=e,i=!1,a=!1;const l={id:o.id,setLayout(e){t=e},begin(e){const t=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",t),t.isPrevented()?Promise.resolve():(i=!0,this.emit("activated"),r.begin(o,e,!0))},clear(){return a=!1,this.emit("cleared"),t.qListObject?o.clearSelections("/qListObjectDef"):o.resetMadeSelections()},confirm(){return a=!1,i=!1,this.emit("confirmed"),this.emit("deactivated"),r.end(!0)},cancel(){return a=!1,i=!1,this.emit("canceled"),this.emit("deactivated"),r.end(!1)},async select(e){const t=this.begin([e.params[0]]);if(!n.isModal())return!1;await t;const r=await o[e.method](...e.params);return a="resetMadeSelections"!==e.method,!!r||(o.resetMadeSelections(),!1)},canClear:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked&&!t.qListObject.qDimensionInfo.qIsOneAndOnlyOne:a,canConfirm:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:a,canCancel:()=>!(t&&t.qListObject&&t.qListObject.qDimensionInfo)||!t.qListObject.qDimensionInfo.qLocked,isActive:()=>i,isModal:()=>n.isModal(o),goModal:e=>r.begin(o,e,!1),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return fT(l),l},mT=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 gT(e,t,n,r){const o=Array.isArray(n)?n:[n],[i]=jw(e),[a]=TL(t),l=t?t.id:null,[s]=Nw(),[c]=qw(),u=s.get(e.id);let d=c.get(l);return U.useEffect((()=>{i&&t&&!d&&(d=hT({appSelections:i,appModal:u,model:t}),c.set(l,d),c.dispatch(!0))}),[i,t]),U.useEffect((()=>{if(!d)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=mT({elements:o,objectSelections:d,options:r});return d.addListener("activated",e),d.addListener("deactivated",t),()=>{d.isActive()&&d.confirm(),d.removeListener("activated",e),d.removeListener("deactivated",t)}}),[d]),U.useEffect((()=>{d&&d.setLayout(a)}),[d,a]),[d]}function vT(){const e={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,update(t){var n,r,o;let{setPages:i,pages:a,isSingleSelect:l,selectDisabled:s,layout:c}=t;this.setPages=i;const u=this.lastRowCount===c.qListObject.qSize.qcy,d=this.lastApprMaxGlyphCount===c.qListObject.qDimensionInfo.qApprMaxGlyphCount;u&&d||(this.lastRowCount=c.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=c.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==a&&void 0!==a&&(e.enginePages=null!=a?a:[],e.selectedInEngine=UL(a),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=l,e.selectDisabled=s,e.isDimCalculated=null!==(n=null==c||null===(r=c.qListObject)||void 0===r||null===(o=r.qDimensionInfo)||void 0===o?void 0:o.qIsCalculated)&&void 0!==n&&n},allowedToSelect:()=>!e.selectDisabled()&&!(e.isDimCalculated&&e.selectableValuesUpdating),setSelectableValuesUpdating(){e.selectableValuesUpdating=!0},useClientItemState:t=>e.ignoreSelectionState||t in e.itemStates,isSelected:t=>e.useClientItemState(t)?!!e.itemStates[t]:e.selectedInEngine.includes(t),getState(t){const{qElemNumber:n,qState:r}=t;return e.useClientItemState(n)?e.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(t,n,r){const o=e.isSelected(t);o&&!n?e.itemStates[t]=!1:o||(null==r||r.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages(t){const n=t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[i(i({},n),{},{qState:r}),...t.slice(1)]}));return i(i({},t),{},{qMatrix:n})}));return n},updateItem(t,n,r){e.updateItemNoEvents(t,n,r),e.triggerStateChanged()},updateItems(t,n,r){t.forEach((t=>{e.updateItemNoEvents(t,n,r)})),e.triggerStateChanged()},clearItemStates(t){e.itemStates={},e.ignoreSelectionState=t}};return e}const bT=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 yT(e){let{alignTo:t,anchorOrigin:n={vertical:"bottom",horizontal:"center"},transformOrigin:r={vertical:"top",horizontal:"center"},show:o,close:i,app:a,fieldName:l,stateName:s="$",autoFocus:c}=e;const u=Boolean(null==l?void 0:l.qLibraryId),d=o&&Boolean(t.current),[p,f]=U.useState(0),h=ay(),m=U.useRef(),[g]=kL({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:s,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:u?void 0:[l]},qLibraryId:u?l.qLibraryId:void 0}},a,l,s),v=U.useCallback((()=>{g.lock("/qListObjectDef")}),[g]),b=U.useCallback((()=>{g.unlock("/qListObjectDef")}),[g]),{translator:y}=U.useContext(Iw),x=U.useRef(),S=U.useRef(),[w]=gT(a,g,S),[E]=TL(g),[C]=U.useState((()=>vT()));if(U.useEffect((()=>{w&&d&&(w.isModal(g)||w.goModal("/qListObjectDef"))}),[w,d]),!g||!E||!y)return null;const k=!0===E.qListObject.qDimensionInfo.qLocked,R=(e,t)=>{const n="escapeKeyDown"!==t;w.noModal(n),i()},L=FI({layout:E,model:g,translator:y,selectionState:C}),O=function(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return bT(t,"qSelected",0)+bT(t,"qSelectedExcluded",0)+bT(t,"qLocked",0)+bT(t,"qLockedExcluded",0)>0}(E);return H.createElement(SR,{open:d,onClose:R,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,PaperProps:{style:{minWidth:"250px"}}},H.createElement(pk,{container:!0,direction:"column",gap:0,ref:S},H.createElement(pk,{item:!0,container:!0,style:{padding:h.spacing(1)}},H.createElement(pk,{item:!0},k?H.createElement(uE,{onClick:b,disabled:!k,size:"large"},H.createElement(zL,{title:y.get("Listbox.Unlock")})):H.createElement(uE,{onClick:v,disabled:!O,size:"large"},H.createElement(AL,{title:y.get("Listbox.Lock")}))),H.createElement(pk,{item:!0,xs:!0}),H.createElement(pk,{item:!0},H.createElement(lT,{more:{enabled:!k,actions:L,alignTo:x,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:w,onConfirm:R,onCancel:()=>R(0,"escapeKeyDown")}}))),H.createElement(pk,{item:!0,xs:!0},H.createElement("div",{ref:x}),H.createElement(pk,{item:!0,ref:m},H.createElement(pT,{visible:!0,model:g,listCount:p,selections:w,selectionState:C,keyboard:{enabled:!1},autoFocus:null==c||c})),H.createElement(qI,{model:g,app:a,layout:E,selections:w,selectionState:C,direction:"ltr",onSetListCount:e=>f(e),onCtrlF:()=>{const e=m.current.querySelector("input");null==e||e.focus()}}))))}function xT(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:i=null,onClose:a=(()=>{})}=e;const{translator:l}=U.useContext(Iw),s=i||U.useRef(),c=ay(),[u,d]=U.useState(!1),p=e=>{e.currentTarget.contains(e.target)&&d(!u)},f=()=>{d(!1),a()},h=t.selections[r];void 0===h.qTotal&&(h.qTotal=0);const m=h.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},g=(m.qSelected+m.qLocked)/h.qTotal,v=m.qAlternative/h.qTotal,b=(m.qExcluded+m.qLockedExcluded+m.qSelectedExcluded)/h.qTotal,y=m.qSelected+m.qSelectedExcluded+m.qLocked+m.qLockedExcluded,x=0===y&&0===h.qTotal;let S="";h.qTotal===y&&h.qTotal>1?S=l.get("CurrentSelections.All"):y>1&&h.qTotal?S=l.get("CurrentSelections.Of",[y,h.qTotal]):h.qSelectedFieldSelectionInfo&&(S=h.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==t.states[r]&&(S="".concat(t.states[r],": ").concat(S));const w=[{color:c.palette.selected.main,ratio:g},{color:c.palette.selected.alternative,ratio:v},{color:c.palette.selected.excluded,ratio:b}];w.forEach(((e,t)=>{e.offset=t?w[t-1].offset+w[t-1].ratio:0}));let E=null,C=null,k=null,R=null;return i||(E=H.createElement(pk,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:h.qLocked?"0.3":""}},H.createElement(vE,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},h.qField),H.createElement(vE,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},S)),h.qLocked?C=H.createElement(pk,{item:!0},H.createElement(uE,{size:"large"},H.createElement(zL,null))):h.qOneAndOnlyOne||(C=H.createElement(pk,{item:!0},H.createElement(uE,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(h.qField,t.states[r])},size:"large"},H.createElement(qL,null)))),k=H.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===x&&w.map((e=>H.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=H.createElement(pk,{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&&H.createElement(yT,{alignTo:s,show:u,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}))),i?H.createElement(yT,{alignTo:s,show:!0,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}):R}var ST=e=>ML((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(e));const wT={item:"".concat("MultiState","-item")},ET=uy(pk)((e=>{let{theme:t}=e;return{["&.".concat(wT.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function CT(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[i,a]=U.useState(!!r),[l,s]=U.useState(-1),[c,u]=U.useState(r?r.current:null),d=r||U.useRef(),{translator:p}=U.useContext(Iw),f=p.get("Selection.ClearAllStates"),h=()=>{s(-1),o()};let m=null;r||(m=H.createElement(H.Fragment,null,H.createElement(pk,{item:!0,xs:!0,zeroMinWidth:!0},H.createElement(eC,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},H.createElement(vE,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.name))),H.createElement(pk,{item:!0},H.createElement("div",{style:{width:"12px"}})),H.createElement(pk,{item:!0},H.createElement(uE,{size:"large"},H.createElement(ST,null)))));const g=H.createElement(zk,{dense:!0},H.createElement(Xk,{title:f,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},H.createElement(gw,{variant:"contained",fullWidth:!0},f)),t.states.map(((e,r)=>H.createElement(Xk,{key:r,title:t.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),s(t)})(e,r)},H.createElement(rC,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},H.createElement(xT,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),v=H.createElement(SR,{open:i,onClose:()=>{a(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},g),b=r?v:H.createElement(ET,{container:!0,gap:0,className:wT.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),d.current=e.currentTarget,a(!i))}},m,i&&v,l>-1&&H.createElement(yT,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}));return r&&l>-1?H.createElement(yT,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):b}const kT="More",RT={item:"".concat(kT,"-item"),badge:"".concat(kT,"-badge")},LT=uy(pk)((e=>{let{theme:t}=e;return{["&.".concat(RT.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(RT.badge)]:{padding:t.spacing(0,1)}}}));function OT(e){let{items:t=[],api:n}=e;const r=ay(),[o,i]=U.useState(!1),[a,l]=U.useState(-1),[s,c]=U.useState(null),u=U.useRef(),d=()=>{l(-1)};let p=null;return a>-1&&(p=t[a].states.length>1?H.createElement(CT,{field:t[a],api:n,moreAlignTo:u,onClose:d}):H.createElement(xT,{field:t[a],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:d})),H.createElement(LT,{container:!0,gap:0,className:RT.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,i(!o))}},H.createElement(pk,{item:!0},H.createElement(rC,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},H.createElement(vE,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),H.createElement(pk,{item:!0},H.createElement(uE,{size:"large"},H.createElement(ST,null))),o&&H.createElement(SR,{open:o,onClose:()=>{i(!1)},anchorEl:s,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},H.createElement(zk,{dense:!0},t.map(((e,t)=>H.createElement(Xk,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),l(t)})(e,t)},H.createElement(rC,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?H.createElement(CT,{field:e,api:n}):H.createElement(xT,{field:e,api:n}))))))),p)}function IT(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 TT(e){let{api:t,app:n}=e;const r=ay(),[o]=LL(n),[i]=TL(o),[a,l]=U.useState({items:[],more:[]}),[s]=Aw(),[c,u]=_L(),[d,p]=U.useState(0);return U.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-72,n=Math.floor(t/120);p(n)}),[u]),U.useEffect((()=>{if(!(n&&o&&i&&d))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&IT(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>IT(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(i);l((t=>{const r=e;if((()=>{const e=s.get(n.id);return e&&"njsListbox"===e.genericType})()&&r.length+1===t.items.length){const e=t.items.filter((e=>!1===r.some((t=>e.name===t.name))))[0],{qField:n}=e.selections[0];e.selections=[{qField:n}];const o=t.items.indexOf(e);r.splice(o,0,e)}let o=[];return d<r.length&&(o=r.splice(d-r.length)),{items:r,more:o}}))}),[n,o,i,t.isInModal(),d]),H.createElement(pk,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},a.items.map((e=>H.createElement(pk,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(120,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?H.createElement(CT,{field:e,api:t}):H.createElement(xT,{field:e,api:t})))),a.more.length>0&&H.createElement(pk,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(72,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},H.createElement(OT,{items:a.more,api:t})))}var PT=e=>ML((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(e));var _T=e=>ML((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));function NT(e){const[t]=LL(e),[n]=TL(t),[r]=PL(e),[o,i]=U.useState(null);return U.useEffect((()=>{r&&t&&n&&((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)})(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})),i({canGoBack:e,canGoForward:t,canClear:r})}),[n]),[o,t,n]}function MT(e){let{api:t,app:n}=e;const{translator:r}=U.useContext(Iw),[o]=NT(n);return H.createElement(pk,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},H.createElement(pk,{item:!0},H.createElement(uE,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},H.createElement(PT,null))),H.createElement(pk,{item:!0},H.createElement(uE,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},H.createElement(_T,null))),H.createElement(pk,{item:!0},H.createElement(uE,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},H.createElement(GI,null))))}const qT=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function zT(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function AT(){return qT.map(zT).join("")}function DT(e){let{app:t}=e;const n=ay(),[r]=jw(t);return r?H.createElement(pk,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},H.createElement(pk,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},H.createElement(MT,{api:r,app:t})),H.createElement(pk,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},H.createElement(TT,{api:r,app:t}))):null}function jT(e){let{element:t,app:n}=e;return wp.createPortal(H.createElement(DT,{app:n}),t,AT())}var FT,BT="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{};let $T;$T="undefined"!=typeof window?window:"undefined"!=typeof self?self:BT;let WT=null,UT=null;const HT=$T.clearTimeout,VT=$T.setTimeout,GT=$T.cancelAnimationFrame||$T.mozCancelAnimationFrame||$T.webkitCancelAnimationFrame,KT=$T.requestAnimationFrame||$T.mozRequestAnimationFrame||$T.webkitRequestAnimationFrame;function ZT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}null==GT||null==KT?(WT=HT,UT=function(e){return VT(e,20)}):(WT=function([e,t]){GT(e),HT(t)},UT=function(e){const t=KT((function(){HT(n),e()})),n=VT((function(){GT(t),e()}),20);return[t,n]}),FT={createDetectElementResize:function(e){let t,n,r,o,i,a,l;const s="undefined"!=typeof document&&document.attachEvent;if(!s){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},l=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&WT(this.__resizeRAF__),this.__resizeRAF__=UT((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,s="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],s="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+s+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=s+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(s)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){const s=i.ownerDocument,c=$T.getComputedStyle(i);c&&"static"===c.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(s),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=s.createElement("div")).className="resize-triggers";const u=s.createElement("div");u.className="expand-trigger",u.appendChild(s.createElement("div"));const d=s.createElement("div");d.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",l,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(s)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}};class XT extends U.Component{constructor(...e){super(...e),ZT(this,"state",{height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0}),ZT(this,"_autoSizer",null),ZT(this,"_detectElementResize",null),ZT(this,"_parentNode",null),ZT(this,"_resizeObserver",null),ZT(this,"_onResize",(()=>{const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){var r,o,i,a;const l=window.getComputedStyle(this._parentNode)||{},s=parseInt(null!==(r=l.paddingLeft)&&void 0!==r?r:"0",10),c=parseInt(null!==(o=l.paddingRight)&&void 0!==o?o:"0",10),u=parseInt(null!==(i=l.paddingTop)&&void 0!==i?i:"0",10),d=parseInt(null!==(a=l.paddingBottom)&&void 0!==a?a:"0",10),p=this._parentNode.getBoundingClientRect(),f=p.height-u-d,h=p.width-s-c,m=this._parentNode.offsetHeight-u-d,g=this._parentNode.offsetWidth-s-c;(e||this.state.height===m&&this.state.scaledHeight===f)&&(t||this.state.width===g&&this.state.scaledWidth===h)||(this.setState({height:m,width:g,scaledHeight:f,scaledWidth:h}),"function"==typeof n&&n({height:m,scaledHeight:f,scaledWidth:h,width:g}))}})),ZT(this,"_setRef",(e=>{this._autoSizer=e}))}componentDidMount(){const{nonce:e}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,null!=this._parentNode&&("undefined"!=typeof ResizeObserver?(this._resizeObserver=new ResizeObserver((()=>{setTimeout(this._onResize,0)})),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=(0,FT.createDetectElementResize)(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r,disableWidth:o,nonce:i,onResize:a,style:l,tagName:s="div",...c}=this.props,{height:u,scaledHeight:d,scaledWidth:p,width:f}=this.state,h={overflow:"visible"},m={};let g=!1;return r||(0===u&&(g=!0),h.height=0,m.height=u,m.scaledHeight=d),o||(0===f&&(g=!0),h.width=0,m.width=f,m.scaledWidth=p),U.createElement(s,{ref:this._setRef,style:{...h,...l},...c},!g&&e(m))}}ZT(XT,"defaultProps",{onResize:()=>{},disableHeight:!1,disableWidth:!1,style:{}});var QT=XT;var JT=e=>ML((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"}}]}))(e));function YT(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function eP(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))}function tP(e){let{keyboard:t,hovering:n,updateKeyScroll:r,containerRef:o,currentScrollIndex:i,isModal:a,constraints:l}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,i=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const l=e.currentTarget.closest(".listbox-container"),s=a();switch(n){case IO.TAB:if(s)r?_O(l)||PO(l):PO(l)||_O(l);else{if(!r)break;t.blur(!0)}i();break;case IO.ENTER:case IO.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),i();break;case IO.ESCAPE:(e=>{const{currentTarget:n,target:r}=e,i=r.classList.contains("listbox-container"),a=eP(n.closest(".listbox-container")),l=1===(null==a?void 0:a.querySelectorAll(".listbox-container").length);if(i||l)t.blur(!0);else{YT(o.current),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}})(e)}},handleOnMouseEnter:()=>{(()=>{const e=(null==l?void 0:l.select)||(null==l?void 0:l.active),t=a();return e||t})()||(n.current=!0)},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current)return;const{keyCode:t,ctrlKey:o=!1,shiftKey:a=!1}=e;switch(t){case IO.ARROW_UP:r({up:1});break;case IO.ARROW_DOWN:r({down:1});break;case IO.PAGE_UP:r({up:i.stop-i.start});break;case IO.PAGE_DOWN:r({down:i.stop-i.start});break;case IO.HOME:r({scrollPosition:o&&a?"overflowStart":"start"});break;case IO.END:r({scrollPosition:o&&a?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const nP=uy("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function rP(e){let{text:t}=e;const{translator:n}=U.useContext(Iw);return H.createElement(nP,null,n.get(t))}const oP="ListBoxInline",iP={listBoxHeader:"".concat(oP,"-listBoxHeader"),screenReaderOnly:"".concat(oP,"-screenReaderOnly"),listboxWrapper:"".concat(oP,"-listboxWrapper")},aP=uy(pk,{shouldForwardProp:e=>!["containerPadding","isGridMode"].includes(e)})((e=>{var t,n;let{theme:r,containerPadding:o,isGridMode:i}=e;return{backgroundColor:null!==(t=null===(n=r.listBox)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:r.palette.background.default,["& .".concat(iP.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(iP.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(iP.listboxWrapper)]:{padding:o},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(r.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:i?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}}})),lP=uy(vE)((e=>{var t,n,r,o,i,a,l,s,c,u,d,p;let{theme:f}=e;return{color:null===(t=f.listBox)||void 0===t||null===(n=t.title)||void 0===n||null===(r=n.main)||void 0===r?void 0:r.color,fontSize:null===(o=f.listBox)||void 0===o||null===(i=o.title)||void 0===i||null===(a=i.main)||void 0===a?void 0:a.fontSize,fontFamily:null===(l=f.listBox)||void 0===l||null===(s=l.title)||void 0===s||null===(c=s.main)||void 0===c?void 0:c.fontFamily,fontWeight:(null===(u=f.listBox)||void 0===u||null===(d=u.title)||void 0===d||null===(p=d.main)||void 0===p?void 0:p.fontWeight)||"bold"}}));const sP=H.memo((function(e){var t,n,r,o,a;let{options:s,layout:c}=e;const{app:u,direction:d,frequencyMode:p,checkboxes:f,search:h=!0,focusSearch:m=!1,rangeSelect:g=!0,model:v,selections:b,update:y,fetchStart:x,selectDisabled:S=(()=>!1),postProcessPages:w,calculatePagesHeight:E,showGray:C=!0,scrollState:k,renderedCallback:R,toolbar:L=!0,isPopover:O=!1}=s,I=ay(),T=U.useCallback((()=>{v.unlock("/qListObjectDef")}),[v]),{translator:P,keyboardNavigation:_,themeApi:N,constraints:M}=U.useContext(Iw);I.listBox=(e=>{const t=(t,n)=>e.getStyle("object.listBox",t,n);return{backgroundColor:t("","backgroundColor"),title:{main:{color:t("title.main","color"),fontSize:t("title.main","fontSize"),fontFamily:t("title.main","fontFamily"),fontWeight:t("title.main","fontWeight")}},content:{color:t("content","color"),fontSize:t("content","fontSize"),fontFamily:t("content","fontFamily")}}})(N);const q=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==u?void 0:u.layout}),z=U.useRef(),[A,D]=_L(),[j,F]=(()=>{const[e,t]=U.useState({}),n=U.useCallback((e=>{t({current:e})}),[t]);return[e,n]})(),[B,$]=U.useState(!1),[W,V]=U.useState(!1),G=U.useRef(!1),[K,Z]=U.useState({down:0,up:0,scrollPosition:""}),X=e=>Z((t=>i(i({},t),e))),[Q,J]=U.useState({start:0,stop:0}),[Y]=jw(u),ee=U.useRef(null),[te]=U.useState((()=>vT())),ne=function(e){let{containerRef:t,enabled:n}=e;const[r,o]=U.useState(!1),i={enabled:n,active:r,innerTabStops:!n||r,blur(e){var r;if(!n)return;o(!1);const i=eP(t.current)||(null===(r=t.current)||void 0===r?void 0:r.parentElement);var a;null==(a=t.current)||a.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),YT(t.current),e&&i&&(i.setAttribute("tabIndex",0),i.focus())},focus(){if(!n)return;o(!0);const e=t.current,r=null==e?void 0:e.querySelector(".search input"),i=null==e?void 0:e.querySelector(".value.last-focused"),a=null==e?void 0:e.querySelector(".value.selector, .value"),l=null==e?void 0:e.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),s=r||i||a||l;null==s||s.setAttribute("tabIndex",0),null==s||s.focus()},focusSelection(){const e=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm");null==e||e.setAttribute("tabIndex",0),null==e||e.focus()}};return i}({containerRef:z,enabled:_}),re=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:u,appSelections:Y})),[u,Y]),oe=null==c?void 0:c.qListObject.qDimensionInfo.qError,ie=oe&&M.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",[ae,le]=U.useState(!1),{handleKeyDown:se,handleOnMouseEnter:ce,handleOnMouseLeave:ue,globalKeyDown:de}=U.useMemo((()=>tP({keyboard:ne,hovering:G,updateKeyScroll:X,containerRef:z,currentScrollIndex:Q,app:u,appSelections:Y,constraints:M,isModal:re})),[ne,G,X,z,Q,u,Y,M,re]),pe=L&&(""===(null==c?void 0:c.title)||!1===(null==c?void 0:c.showTitle))&&!O,fe=L&&""!==(null==c?void 0:c.title)&&!1!==(null==c?void 0:c.showTitle)||O;U.useEffect((()=>(document.addEventListener("keydown",de),()=>{document.removeEventListener("keydown",de)})),[de]),U.useEffect((()=>{const e=()=>{$(!0)},t=()=>{$(!1),"toggle"===h&&V(!1)};return O&&(b.isActive()||(b.begin("/qListObjectDef"),b.on("activated",e),b.on("deactivated",t)),$(O)),b&&(b.isModal()||(b.on("activated",e),b.on("deactivated",t)),$(b.isActive())),()=>{b&&b.removeListener&&(b.removeListener("activated",e),b.removeListener("deactivated",t))}}),[b,O]),U.useEffect((()=>{if(j&&j.current&&(h&&m||"toggle"===h&&W)){const e=j.current.querySelector("input");e&&e.focus()}}),[j&&j.current,W,h,m]);const{wildCardSearch:he,searchEnabled:me,layoutOptions:ge={}}=null!=c?c:{},ve=!1!==me&&"toggle"===h,be=!0===(null==c||null===(t=c.qListObject)||void 0===t||null===(n=t.qDimensionInfo)||void 0===n?void 0:n.qLocked),ye=be||ve,xe="H"===(null==c||null===(r=c.qListObject)||void 0===r||null===(o=r.qDimensionInfo)||void 0===o?void 0:o.qGrouping),Se=ye||xe,we=(ye?28:0)+(xe?19:0);if(U.useEffect((()=>{if(!ee.current||!D)return;const e=function(e){var t,n,r,o;let{containerRect:i,titleRef:a,iconsWidth:l}=e;const s=i.width<(null!==(t=null==a||null===(n=a.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)+l+16+128,c=(null==a||null===(r=a.current)||void 0===r?void 0:r.scrollWidth)>(null==a||null===(o=a.current)||void 0===o?void 0:o.offsetWidth);return!(!s&&!c)}({containerRect:D,titleRef:ee,iconsWidth:we});le(e)}),[ee.current,D]),!v||!c||!P)return null;const Ee="rtl"===d,Ce=FI({layout:c,model:v,translator:P,selectionState:te,isDirectQuery:q}),ke=(!0===h||"toggle"===h&&W)&&!S()&&!1!==me,Re=null!==(a=ge.dense)&&void 0!==a&&a,Le=fe?49+(ke?Re?27:40:0)+(Re?39:49):0,Oe=()=>{V(!W)},Ie=()=>{if("toggle"===h)Oe();else{const e=j.current.querySelector("input");null==e||e.focus()}},Te=e=>function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:i,selections:a,keyboard:l}=e;return{show:n&&!t,popover:{show:n&&t,anchorEl:r.current},more:{enabled:!o,actions:i,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:n,api:a,onConfirm:()=>{null==l||l.focus()},onCancel:()=>{null==l||l.focus()}}}}({isDetached:!O&&e,showToolbar:B,containerRef:z,isLocked:be,listboxSelectionToolbarItems:Ce,selections:b,keyboard:ne}),Pe=ke&&"toggle"===h,_e=9-(ye?7:0),Ne=Ee?9-(Se?7:0):0,Me="grid"===(null==ge?void 0:ge.dataLayout);let qe;Me&&(qe="row"===ge.layoutOrder?"2px 4px":"2px 6px 2px 4px");const ze=null!=M&&M.active?H.createElement(sT,{title:P.get("Listbox.Search"),size:"large",style:{fontSize:"12px",padding:"7px"}}):H.createElement(uE,{onClick:Oe,tabIndex:-1,title:P.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},H.createElement(sT,{style:{fontSize:"12px"}})),Ae=S()?H.createElement(zL,{size:"large",style:{fontSize:"12px",padding:"7px"}}):H.createElement(uE,{title:P.get("SelectionToolbar.ClickToUnlock"),tabIndex:-1,onClick:T,size:"large"},H.createElement(zL,{disableRipple:!0,style:{fontSize:"12px"}}));return H.createElement(H.Fragment,null,pe&&H.createElement(lT,l({direction:d},Te(!0))),H.createElement(aP,{className:"listbox-container",container:!0,tabIndex:ne.enabled?-1:void 0,direction:"column",gap:0,containerPadding:qe,style:{height:"100%",minHeight:"".concat(Le,"px"),flexFlow:"column nowrap"},onKeyDown:se,onMouseEnter:ce,onMouseLeave:ue,ref:e=>{z.current=e,A(e)},isGridMode:Me},fe&&H.createElement(pk,{item:!0,container:!0,minHeight:32,flexDirection:Ee?"row-reverse":"row",marginY:1,paddingLeft:"".concat(_e,"px"),paddingRight:"".concat(Ne,"px"),wrap:"nowrap"},Se&&H.createElement(pk,{item:!0,container:!0,alignItems:"center",width:we},be?Ae:ve&&ze,xe&&H.createElement(JT,{tabIndex:-1,title:P.get("Listbox.DrillDown"),size:"large",style:{fontSize:"12px"}})),H.createElement(pk,{item:!0,xs:!0,minWidth:0,justifyContent:Ee?"flex-end":"flex-start",className:iP.listBoxHeader},H.createElement(lP,{variant:"h6",noWrap:!0,ref:ee,title:c.title},c.title)),H.createElement(pk,{item:!0},H.createElement(lT,l({direction:d},Te(ae))))),H.createElement(pk,{item:!0,container:!0,direction:"column",style:{height:"100%",minHeight:"50px"},role:"region","aria-label":P.get("Listbox.ResultFilterLabel")},H.createElement(pk,{item:!0,ref:F},H.createElement("div",{className:iP.screenReaderOnly},P.get("Listbox.Search.ScreenReaderInstructions")),H.createElement(pT,{selections:b,selectionState:te,model:v,dense:Re,keyboard:ne,visible:ke,search:h,autoFocus:Pe,wildCardSearch:he,searchEnabled:me,direction:d,hide:ve&&Oe})),H.createElement(pk,{item:!0,xs:!0,className:iP.listboxWrapper},H.createElement("div",{className:iP.screenReaderOnly},P.get("Listbox.ScreenReaderInstructions")),oe?H.createElement(rP,{text:ie}):H.createElement(QT,null,(e=>{let{height:t,width:n}=e;return H.createElement(qI,{model:v,app:u,constraints:M,layout:c,selections:b,selectionState:te,direction:d,frequencyMode:p,rangeSelect:g,checkboxes:f,height:t,width:n,update:y,fetchStart:x,postProcessPages:w,calculatePagesHeight:E,selectDisabled:S,keyboard:ne,showGray:C,scrollState:k,keyScroll:{state:K,reset:()=>Z({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:Q,set:J},renderedCallback:R,onCtrlF:Ie,isModal:re})}))))))}));function cP(e){let{options:t={}}=e;const{model:n}=t,[r]=TL(n);return H.createElement(sP,{options:t,layout:r})}const uP={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};const dP=["__DO_NOT_USE__"],pP=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n=s(e,dP),r={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1},o=i(i(i({},n),r),t);return o};function fP(e){let{app:t,fieldIdentifier:n,qId:r,stateName:o,element:a,options:l,renderedCallback:s}=e;const{isExistingObject:c,hasExternalSelectionsApi:u}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:r,options:l}),[d,p]=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?function(e){let{app:t,qId:n,options:r={}}=e;const[o,i]=U.useState(),[a]=EL(),{sessionModel:l}=r,s=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(r).filter((e=>s.includes(e)));if(c.length)throw new Error('Option "'.concat(c.join(", "),'" is not applicable for existing objects.'));return U.useEffect((()=>{l?i(l):async function(){const e=a.get(n);if(e)i(e);else{const e=await t.getObject(n);a.set(e.id,e),e.once("closed",(()=>{a.clear(e.id)})),i(e)}}()}),[]),o}({app:t,qId:r,options:l}):function(e){var t;let{app:n,fieldIdentifier:r,stateName:o,options:i={}}=e;const[a,l]=U.useState(""),[s,c]=U.useState(!0),[u,d]=U.useState(),[p,f]=U.useState(),h=null!==(t=i.title)&&void 0!==t?t:p;U.useEffect((()=>{const e=i.histogram||"N"!==i.frequencyMode;r.qLibraryId&&e?async function(){try{const e=await n.getDimension(r.qLibraryId),t=await e.getLayout();f(t.qDim.title),"N"===t.qDim.qGrouping?l(t.qDim.qFieldDefs?t.qDim.qFieldDefs[0]:""):l({multiFieldDim:!0}),c(!1)}catch(e){throw c(!1),l({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}():(c(!1),f(r))}),[]);const{dense:m,checkboxes:g,listLayout:v,properties:b={}}=i;let{frequencyMode:y,histogram:x=!1}=i;switch(a&&a.failedToFetchFieldDef&&(x=!1,y="N"),!0){case["none","N","NX_FREQUENCY_NONE"].includes(y):y="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(y):y="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(y):y="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(y):y="R";break;default:y="N"}const S={dense:m};"horizontal"===v&&(S.dataLayout="grid",S.layoutOrder="column",S.maxVisibleColumns={auto:!0},S.maxVisibleRows={auto:!1,maxRows:1});const w=U.useRef();w.current||(w.current=AT());const E=Ve(!0,{},uP,{qInfo:{qId:w.current},qListObjectDef:{qStateName:o,qFrequencyMode:x&&"N"===y?"V":y},histogram:x,checkboxes:g,layoutOptions:S,title:h});let C;if(Ve(!0,E,b),r.qLibraryId?(E.qListObjectDef.qLibraryId=r.qLibraryId,C=r.qLibraryId):(E.qListObjectDef.qDef.qFieldDefs=[r],C=r),"P"!==y&&x)if(null!=a&&a.multiFieldDim)E.frequencyMax="fetch";else{const e=r.qLibraryId?a:C;E.frequencyMax={qValueExpression:PI(e)}}const[k]=kL(E,s?null:n,C,o);return U.useEffect((()=>{k&&d(k)}),[k]),u}({app:t,fieldIdentifier:n,stateName:o,options:l}),h=U.useRef(a),m=u?l.selectionsApi:gT(t,f,[h,".njs-action-toolbar-more",".njs-action-toolbar-popover"],l)[0],g=U.useMemo((()=>i(i({},l),{},{selections:m,model:f,app:t,renderedCallback:s})),[l,m,f,t]);return m&&f?H.createElement(cP,{options:g}):null}function hP(e){let{element:t,app:n,fieldIdentifier:r,qId:o,stateName:i="$",options:a={},renderedCallback:l}=e;return wp.createPortal(H.createElement(fP,{app:n,element:t,fieldIdentifier:r,qId:o,stateName:i,options:a,renderedCallback:l}),t,AT())}const mP={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},gP=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=i({},mP);return Ve(!0,t,e),t};function vP(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:i={}}=e;const[a,l]=U.useState(!!i.show);return H.createElement(yT,{show:a,app:t,alignTo:{current:o},anchorOrigin:i.anchorOrigin,transformOrigin:i.transformOrigin,close:()=>{l(!1),i.onPopoverClose&&i.onPopoverClose()},fieldName:n,stateName:r,autoFocus:i.autoFocus})}function bP(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function yP(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}function xP(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?(e=>({qDef:{qFieldDefs:[e]}}))(e):i(i({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||AT(),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),bP(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 yP(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?(e=>({qDef:{qDef:e}}))(e):i(i({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||AT(),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),bP(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];yP(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}function SP(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?(e=>({qDef:{qFieldDefs:[e]}}))(e):i(i({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||AT(),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 wP=e=>({qDef:{qFieldDefs:[e]}});function EP(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=(e=>{let t;return t="string"==typeof e?Ve(!0,{},uP,{qListObjectDef:wP(e)}):e.qListObjectDef?Ve(!0,{},uP,e):Ve(!0,{},uP,{qListObjectDef:e}),t})(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||AT(),!r.title)if(o.qLibraryId){const e=await n.app.getDimension(o.qLibraryId),t=await e.getProperties();t.qDim.qLabelExpression?r.title={qStringExpression:{qExpr:t.qDim.qLabelExpression}}:r.title=t.qDim.title}else{var i,a;r.title=o.qDef.title||(null===(i=o.qDef.qFieldLabels)||void 0===i?void 0:i[0])||(null===(a=o.qDef.qFieldDefs)||void 0===a?void 0:a[0])}t.push({qProperty:r,qChildren:[]})},addMeasure(){}};return r}function CP(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 kP(e,t){let{sn:n,properties:r,fields:o,children:i}=e;if(!o.length)return;const a=n.qae.data.targets[0];if(!a)return;const{propertyPath:l}=a,s=l.split("/");let c=r;for(let e=0;e<s.length;e++){const t=s[e];c=t?c[t]:c}const u=function(e){return e.match("/qListObjectDef")?SP:e.match("/qChildListDef")?EP:xP}(l),d=u({dc:c,def:a,properties:r,children:i,halo:t});for(let e=0;e<o.length;++e){const t=o[e];"measure"===CP(t)?await d.addMeasure(t):await d.addDimension(t)}}var RP=(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},LP=(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==i[t]&&null!==i[t]||(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?i[o]=n:delete i[o]},OP=e=>0===Object.keys(e).length&&e.constructor===Object;var IP={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 TP=2**53-1;function PP(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function _P(e,t){const n=Ve(!0,{},t,e);return RP(n,"qOtherTotalSpec.qOtherCounted")||LP(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),RP(n,"qOtherTotalSpec.qOtherLimit")||LP(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function NP(e,t){return Ve(!0,{},t,e)}function MP(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var qP={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===RP(e,t)&&LP(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:PP,importCommonProperties:function(e,t,n){const r="masterobject"===RP(t,"properties.qInfo.qType")?"masterobject":RP(n,"qInfo.qType");LP(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:_P,createDefaultMeasure:NP,resolveValue:MP,getHypercubePath:function(e){const t=RP(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function(e){let{exportFormat:t,newHyperCubeDef:n}=e;const r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();let i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(IP.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,IP.indexRemoved(n.qInterColumnSortOrder,i))},createNewProperties:function(e){let{exportFormat:t,initialProperties:n,hypercubePath:r}=e,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((e=>{"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=Ve(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?LP(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||PP(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=Ve(!0,{},n,o),null===o.components&&(o.components=[]),o},getMaxMinDimensionMeasure:function(e){let{exportFormat:t,dataDefinition:n={}}=e;const r=t.data[0],o=n.dimensions||{max:0},i=n.measures||{max:0},a=MP(i.max,r.dimensions.length,TP),l=MP(i.min,r.dimensions.length,0);return{maxDimensions:MP(o.max,a,TP),minDimensions:MP(o.min,l,0),maxMeasures:a,minMeasures:l}},shouldInitLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i}=e;const a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},initLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i,newHyperCubeDef:a}=e;const l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,newHyperCubeDef:o,defaultDimension:i}=e;const a=t.data[0];let l;if(n>0)for(l=0;l<a.dimensions.length;++l)o.qDimensions.length<n?o.qDimensions.push(_P(a.dimensions[l],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(_P(a.dimensions[l],i));else if(a.dimensions.length)for(l=0;l<a.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(_P(a.dimensions[l],i));if(a.excludedDimensions.length)for(l=0;l<a.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(_P(a.excludedDimensions[l],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(_P(a.excludedDimensions[l],i))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:i}=e;const a=t.data[0];let l;if(n>0)for(l=0;l<a.measures.length;++l)o.qMeasures.length<n?o.qMeasures.push(NP(a.measures[l],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(NP(a.measures[l],i));else if(a.measures.length)for(l=0;l<a.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(NP(a.measures[l],i));if(a.excludedMeasures.length)for(l=0;l<a.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(NP(a.excludedMeasures[l],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(NP(a.excludedMeasures[l],i))},updateDimensionsOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.dimensions&&"function"==typeof n.dimensions.added){const e=RP(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=RP(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var zP={exportProperties:e=>function(e){let{propertyTree:t,hypercubePath:n}=e;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),o=t.qProperty,i=RP(o,n||""),a=i.qHyperCubeDef,l=r.data[0];if(a.qInterColumnSortOrder||(a.qInterColumnSortOrder=[]),l.dimensions.push(...a.qDimensions),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qDimensions&&l.excludedDimensions.push(...a.qLayoutExclude.qHyperCubeDef.qDimensions),l.measures.push(...a.qMeasures),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qMeasures&&l.excludedMeasures.push(...a.qLayoutExclude.qHyperCubeDef.qMeasures),l.interColumnSortOrder=a.qInterColumnSortOrder.concat(),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();IP.isOrderedSubset(e,l.interColumnSortOrder)&&(l.interColumnSortOrder=e)}return delete a.qLayoutExclude,Object.keys(o).forEach((e=>{r.properties[e]=o[e]})),n&&(r.properties.qHyperCubeDef=i.qHyperCubeDef,delete i.qHyperCubeDef),o.qLayoutExclude||(o.qLayoutExclude={}),o.qLayoutExclude.disabled&&(Object.keys(o.qLayoutExclude.disabled).forEach((e=>{r.properties.hasOwnProperty(e)||(r.properties[e]=o.qLayoutExclude.disabled[e])})),delete o.qLayoutExclude.disabled),o.qLayoutExclude.changed&&(qP.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!OP(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:i}=e;const a={qChildren:[]},l=qP.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),s=RP(n,i||"").qHyperCubeDef,c=RP(l,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=qP.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=qP.getDefaultDimension(),defaultMeasure:m=qP.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,qP.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&qP.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),qP.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),qP.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),qP.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),qP.copyPropertyIfExist("qMaxStackedCells",s,c),qP.copyPropertyIfExist("qNoOfLeftDims",s,c),qP.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),qP.copyPropertyOrSetDefault("qMode",s,c,"S"),qP.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),qP.copyPropertyOrSetDefault("qSortbyYValue",s,c),qP.copyPropertyOrSetDefault("qIndentMode",s,c),qP.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),qP.importCommonProperties(l,t,n),qP.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:i}),qP.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:i}),a.qProperty=l,a}(e)};const AP=e=>RP(e,"data.targets.0.propertyPath"),DP=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return zP.exportProperties})(AP(e))},jP=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return zP.importProperties})(AP(e))},FP=async e=>{let{halo:t,model:n,cellRef:r,newType:o}=e;const a=await n.getFullPropertyTree(),l=r.current.getQae(),s=DP(l),c=await(async e=>{let{halo:t,name:n,version:r}=e;const{types:o}=t;return await o.get({name:n,version:r}).supernova()})({halo:t,name:o}),u=c.qae;return jP(u)({exportFormat:s({propertyTree:a,hypercubePath:qP.getHypercubePath(l)}),initialProperties:i({qInfo:{qType:o},visualization:o},RP(u,"properties.initial",{})),dataDefinition:RP(u,"data.targets.0.",{}),hypercubePath:qP.getHypercubePath(u)})},BP={hypercube:zP};var $P=e=>ML((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(e));function WP(e){let{d:t}=e;const n=ay();let r="inherit",o=n.palette.success.main;t.missing?o=n.palette.warning.main:t.error&&(r="error",o=n.palette.error.main);const i={color:o},a=H.createElement(vE,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},H.createElement(Ek,null,t.missing||t.error?H.createElement($P,{style:i}):H.createElement(JL,{style:i})));return H.createElement(pk,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},H.createElement(pk,{item:!0},a),H.createElement(pk,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},H.createElement(vE,{noWrap:!0,component:"p"},H.createElement(vE,{component:"span",variant:"subtitle2",color:r},t.description),H.createElement(vE,{component:"span"}," "),H.createElement(vE,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function UP(e){let{data:t}=e;const n=ay();return H.createElement(pk,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>H.createElement(WP,{d:e,key:t})));return r.length>0&&H.createElement(pk,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},H.createElement(vE,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function HP(e){let{title:t="Error",message:n="",data:r=[]}=e;return H.createElement(pk,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},H.createElement(pk,{item:!0},H.createElement($P,{style:{fontSize:"38px"}})),H.createElement(pk,{item:!0},H.createElement(vE,{variant:"h6",align:"center","data-tid":"error-title"},t)),H.createElement(pk,{item:!0},H.createElement(vE,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),H.createElement(UP,{data:r}))}const VP=["size"],GP="Progress",KP={root:"".concat(GP,"-root"),front:"".concat(GP,"-front"),back:"".concat(GP,"-back")},ZP=uy("div")((e=>{let{theme:t}=e;return{["&.".concat(KP.root)]:{position:"relative",display:"inline-block"},["& .".concat(KP.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(KP.back)]:{color:t.palette.divider}}})),XP={small:16,medium:32,large:64,xlarge:128};function QP(e){let{size:t="medium"}=e,n=s(e,VP);const r=XP[t];return H.createElement(ZP,{className:KP.root},H.createElement(zC,l({variant:"determinate",value:100,className:KP.back,size:r,thickness:3},n)),H.createElement(zC,l({variant:"indeterminate",disableShrink:!0,className:KP.front,size:r,thickness:3},n)))}const JP=["cancel","translator"],YP=["retry","translator"],e_={stripes:"".concat("LongRunningQuery","-stripes")},t_=uy(pk)((()=>({["& .".concat(e_.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 n_(e){let{cancel:t,translator:n}=e,r=s(e,JP);return H.createElement(H.Fragment,null,H.createElement(t_,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},H.createElement(pk,{item:!0},H.createElement(QP,null)),H.createElement(pk,{item:!0},H.createElement(vE,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),H.createElement(pk,l({item:!0},r),H.createElement(gw,{variant:"contained",onClick:t},n.get("Cancel"))))}function r_(e){let{retry:t,translator:n}=e,r=s(e,YP);return H.createElement(H.Fragment,null,H.createElement(pk,{item:!0},H.createElement($P,{style:{fontSize:"38px"}})),H.createElement(pk,{item:!0},H.createElement(vE,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),H.createElement(pk,{item:!0},H.createElement(gw,l({variant:"contained",onClick:t},r),n.get("Retry"))))}function o_(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=U.useContext(Iw);return H.createElement(pk,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:e_.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&H.createElement(n_,{cancel:r.cancel,translator:o,className:e_.cancel}),n&&H.createElement(r_,{retry:r.retry,translator:o,className:e_.retry}))}function i_(){return H.createElement(pk,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},H.createElement(QP,{size:"large"}))}const a_="Header",l_={containerStyle:"".concat(a_,"-containerStyle"),containerTitleStyle:"".concat(a_,"-containerTitleStyle")},s_=uy(pk)((e=>{let{theme:t}=e;return{["&.".concat(l_.containerStyle)]:{flexGrow:0},["&.".concat(l_.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),c_="njs-cell-title",u_="njs-cell-sub-title";function d_(e){let{layout:t,sn:n,anchorEl:r,hovering:o,focusHandler:i,titleStyles:a={}}=e;const l=t.showTitles&&!!t.title,s=t.showTitles&&!!t.subtitle,c=t.qSelectionInfo&&t.qSelectionInfo.qInSelections,[u,d]=U.useState([]),[p,f]=_L(),[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=[l_.containerStyle,...g?[l_.containerTitleStyle]:[]],b=(o||c)&&(h||!g),y=g&&!b&&!h,x=H.createElement(lT,{show:y,selections:{show:c,api:n.component.selections,onKeyDeactivate:i.refocusContent},actions:u,popover:{show:b,anchorEl:r},focusHandler:i});return H.createElement(s_,{ref:p,item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},H.createElement(pk,{item:!0,zeroMinWidth:!0,xs:!0},H.createElement(pk,{container:!0,wrap:"nowrap",direction:"column"},l&&H.createElement(vE,{variant:"h6",noWrap:!0,className:c_,style:a.main},t.title),s&&H.createElement(vE,{variant:"body2",noWrap:!0,className:u_,style:a.subTitle},t.subtitle))),H.createElement(pk,{item:!0},x))}const p_={itemStyle:"".concat("Footer","-itemStyle")},f_=uy(pk)((e=>{let{theme:t}=e;return{["& .".concat(p_.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),h_="njs-cell-footer";function m_(e){let{layout:t,titleStyles:n={}}=e;return t&&t.showTitles&&t.footnote?H.createElement(f_,{container:!0},H.createElement(pk,{item:!0,className:p_.itemStyle},H.createElement(vE,{noWrap:!0,variant:"body2",className:h_,style:n.footer},t.footnote))):null}class g_{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 v_="njs-viz";function b_(e){let{sn:t,snOptions:n,snPlugins:r,layout:o,appLayout:a,halo:l}=e;const{component:s}=t,{theme:c,language:u,constraints:d,interactions:p,keyboardNavigation:f}=U.useContext(Iw),[h]=U.useState((()=>new g_)),[m,g]=U.useState(!1),[v,b]=U.useState(0),[y,x,S]=_L(),[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"),l.app&&l.app.session&&e.push("fetch"),Promise.resolve(s.render({layout:o,options:n,plugins:r,embed:l.public.nebbie,context:i({constraints:d,interactions:p,theme:l.public.theme,appLayout:a,keyboardNavigation:f},s.isHooked?{}:{logicalSize:t.logicalSize({layout:o}),localeInfo:(a||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===v&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),b(v+1))}))})))}),[x,n,r,w,S,o,a,c,u,d,p,m,f]),H.createElement("div",{ref:y,"data-render-count":v,style:{position:"relative",height:"100%"},className:v_},H.createElement("div",{ref:C,style:{position:"absolute",width:"100%",height:"100%"}}))}const y_={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},x_={"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 S_(e,t){return t?function(e){var t;let n,r,o,i;return null!=e&&null!==(t=e.session)&&void 0!==t&&t.config?(n=e.session.config,r=new URL(n.url),i="wss:"===r.protocol,o=i?"https://":"http://",o+r.host):""}(e)+t:void 0}function w_(e,t){const n=null==e?void 0:e.bgImage;if(n){let i="";var r,o;if("media"===n.mode||"media"===e.useImage)i=null!=n&&null!==(r=n.mediaUrl)&&void 0!==r&&null!==(o=r.qStaticContentUrl)&&void 0!==o&&o.qUrl?decodeURIComponent(n.mediaUrl.qStaticContentUrl.qUrl):void 0,i=S_(t,i);"expression"===n.mode&&(i=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const a=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=x_[e.bgImage.position]),n}(e),l=function(e){var t;let n=y_.originalSize;return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.sizing&&(n=y_[e.bgImage.sizing]),n}(e);return i?{url:i,pos:a,size:l}:void 0}}function E_(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t?r.useExpression?t.validateColor(r.colorExpression):r.color&&"none"!==r.color.color?t.getColorPickerColor(r.color,!0):void 0:t&&n?t.getStyle("object.".concat(n),"","backgroundColor"):t?t.getStyle("","","backgroundColor"):void 0}function C_(e,t,n,r){var o;const i=(null==e||null===(o=e.title)||void 0===o?void 0:o[t])||{},a=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(i.fontStyle,t);return{fontFamily:i.fontFamily||n.getStyle("object.".concat(r),"title.".concat(t),"fontFamily"),color:i.color&&"none"!==i.color.color?n.getColorPickerColor(i.color,!0):n.getStyle("object.".concat(r),t,"color"),fontWeight:a.includes("bold")?"bold":"normal",fontStyle:a.includes("italic")?"italic":"normal",textDecoration:a.includes("underline")?"underline":"initial"}}const k_="njs-cell",R_=(e,t)=>{switch(t.type){case"LOADING":return i(i({},e),{},{loading:!0});case"LOADED":return i(i({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return i(i({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return i(i({},e),{},{longRunningQuery:!0});case"ERROR":return i(i({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function L_(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?H.createElement(i_,null):null}const O_=e=>!e.qError||7005===e.qError.qErrorCode,I_=(e,t,n,r,o)=>[...Array(e).keys()].map((e=>{const i=!(!t||!t[e]),a=i&&t[e].qError&&7005===t[e].qError.qErrorCode,l=i&&!a&&t[e].qError,s=a&&t[e].qCalcCondMsg,c="".concat(l?r:a?s||o:i&&t[e].qFallbackTitle||""),u=n(e);return{description:u?"".concat(u).concat(c.length?":":""):null,label:c,missing:t&&!i&&!l&&e>=t.length||a,error:l}})),T_=e=>e&&(Array.isArray(e)?e:[e])||[],P_=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t);return{reqDimErrors:I_(o,T_(a.qDimensionInfo||a.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:I_(i,T_(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},__=async(e,t,n,r)=>{let{targets:o}=n;const{hasUnfulfilledErrors:i,aggMinD:a,aggMinM:l,hasLayoutErrors:s,layoutErrors:c}=((e,t,n)=>{let r=!1,o=0,i=0,a=!1,l=!1;const s=[];for(let c=0;c<t.length;++c){const u=t[c],d=u.dimensions.min(),p=u.measures.min(),f=u.resolveLayout(n),h=T_(f.qDimensionInfo||f.qItems).filter(O_),m=T_(f.qMeasureInfo).filter(O_);if(o+=d,i+=p,(h.length<d||m.length<p)&&(r=!0),f.qError){a=!0,l=7005===f.qError.qErrorCode;const t=l&&f.qCalcCondMsg?f.qCalcCondMsg:l?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");s.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:i,hasLayoutErrors:a,layoutErrors:s}})(e,o,t),u=[],d=[];let p=null;for(let n=0;n<o.length;++n){const a=o[n];if(!s&&i){const n=p||await r.getProperties();p=n;const o=P_(e,t,n,a);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const f=u.filter((e=>!(e.missing||e.error))).length,h=e.get("Visualization.Incomplete.Dimensions",[f,a]),m=d.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,l]),v=[{title:h,descriptions:[...u]},{title:g,descriptions:[...d]}],b=s?c:v;return[s||i,{title:s?c[0].title:e.get("Visualization.Incomplete"),data:b}]},N_=U.forwardRef(((e,t)=>{let{halo:n,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:l,onMount:s,currentId:c,emitter:u}=e;const{app:d,types:p}=n,{nebbie:f}=n.public,{theme:h,translator:m,language:g,keyboardNavigation:v,disableCellPadding:b=!1}=U.useContext(Iw),y=ay(),[x,S,w]=_L(),[E,C]=U.useReducer(R_,{loading:!1,loaded:!1,longRunningQuery:!1,error:(k=l)?{title:k.message}:null,sn:null,visualization:null});var k;const[R,{validating:L,canCancel:O,canRetry:I},T]=TL(r),[P]=PL(d),[_,N,M]=_L(),[q,z]=U.useState(o),[A,D]=U.useState(a),j="njs-cell-".concat(c),[F]=gT(d,r,["#".concat(j),".njs-action-toolbar-popover"]),[B,$]=U.useState(!1),W=U.useRef({enter:null,leave:null}),[V,G]=U.useState(void 0),[K,Z]=U.useState(void 0),[X,Q]=U.useState(void 0),J=U.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});U.useEffect((()=>{fT(J.current)}),[]),U.useEffect((()=>{if(R&&n.public.theme){const e=R.components?R.components.find((e=>"general"===e.key)):null;Q({main:C_(e,"main",n.public.theme,R.visualization),footer:C_(e,"footer",n.public.theme,R.visualization),subTitle:C_(e,"subTitle",n.public.theme,R.visualization)}),G(E_(e,n.public.theme,R.visualization)),Z(w_(e,n.app))}}),[R,n.public.theme,n.app,h]),J.current.blurCallback=e=>{n.root.toggleFocusOfCells(),e&&M&&M.focus()},J.current.refocusContent=()=>{E.sn.component&&"function"==typeof E.sn.component.focus&&E.sn.component.focus()};U.useEffect((()=>{if(l||!P||!R)return;if(E.visualization===R.visualization&&E.sn)return void(async e=>{const[t,n]=await __(m,R,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:R,model:r})})(E.sn);const e=p.getSupportedVersion(R.visualization,R.version);return(async(e,t)=>{C({type:"LOADING"});const n=await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:i,app:a,selections:l,nebbie:s,focusHandler:c,emitter:u}=e;try{const e=await(async e=>{let{types:t,name:n,version:r}=e;return await t.get({name:n,version:r}).supernova()})({types:n,name:r,version:o});return e.create({model:i,app:a,selections:l,nebbie:s,focusHandler:c,emitter:u})}catch(e){t(o?{type:"ERROR",error:{title:e.message}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(r,"' that supports current object version. Did you forget to register ").concat(r,"?")}})}})({dispatch:C,types:p,visualization:e,version:t,model:r,app:d,selections:F,nebbie:f,focusHandler:J.current,emitter:u});n&&(C({type:"LOADED",sn:n,visualization:e}),s())})(R.visualization,e),()=>{}}),[p,E.sn,r,F,R,P,g]),U.useEffect((()=>{if(!L)return;const e=setTimeout((()=>C({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[L]),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:z,setSnPlugins:D,async takeSnapshot(){const{width:e,height:t}=S;let n=JSON.parse(JSON.stringify(R));return"function"==typeof E.sn.component.setSnapshotData&&(n=await E.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:m.language(),theme:y.name,appLayout:P,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof n.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return n.config.snapshot.capture(e)}})),[E.sn,N,S,R,y.name,P]);let Y=null;return E.loading&&!E.longRunningQuery?Y=H.createElement(L_,null):E.error?Y=H.createElement(HP,E.error):E.loaded&&(Y=H.createElement(b_,{key:R.visualization,sn:E.sn,halo:n,snOptions:q,snPlugins:A,layout:R,appLayout:P})),H.createElement(oE,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:V||"unset",backgroundImage:K&&K.url?"url(".concat(K.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:K&&K.size,backgroundPosition:K&&K.pos},elevation:0,square:!0,className:k_,ref:x,id:j,onMouseEnter:()=>{W.current.leave&&clearTimeout(W.current.leave),W.enter||(W.current.enter=setTimeout((()=>{$(!0),W.current.enter=null}),250))},onMouseLeave:()=>{W.current.enter&&clearTimeout(W.current.enter),W.current.leave||(W.current.leave=setTimeout((()=>{$(!1),W.current.leave=null}),750))}},H.createElement(pk,{container:!0,direction:"column",gap:0,style:i(i({position:"relative",width:"100%",height:"100%"},b?{}:{padding:y.spacing(1)}),E.longRunningQuery?{opacity:"0.3"}:{})},w&&R&&E.sn&&H.createElement(d_,{layout:R,sn:E.sn,anchorEl:w,hovering:B,focusHandler:J.current,titleStyles:X}," "),H.createElement(pk,{tabIndex:v?0:-1,onKeyDown:v?e=>{["Enter"," ","Spacebar"].includes(e.key)&&n.root.toggleFocusOfCells(c)}:null,item:!0,xs:!0,style:{height:"100%"},ref:_},Y),H.createElement(m_,{layout:R,titleStyles:X})),E.longRunningQuery&&H.createElement(o_,{canCancel:O,canRetry:I,api:T}))}));function M_(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:i,onMount:a,emitter:l,initialError:s}=e;const{root:c}=t,u=H.createRef(),d=AT(),p=wp.createPortal(H.createElement(N_,{ref:u,halo:t,model:r,currentId:d,initialSnOptions:o,initialSnPlugins:i,initialError:s,onMount:a,emitter:l}),n,d),f=()=>{c.remove(p),r.removeListener("closed",f)};return r.on("closed",f),c.add(p),c.addCell(d,u),[f,u]}function q_(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function z_(e,t){return q_(e)&&q_(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}function A_(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const r=[];return Object.keys(t).forEach((o=>{const i=t[o];"object"!=typeof n[o]||"object"!=typeof i||Array.isArray(i)?z_(i,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...A_("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function D_(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 j_=()=>{};function F_(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=j_,a=null,l=null,s=null;const c=new Promise((e=>{s=e}));let u={},d=[];const p=new te,f=async e=>{l?(async()=>{await c,a.current.setSnOptions(i(i({},u),e))})():u=i(i({},u),e)},h=async e=>{D_(e),l?(async()=>{await c,a.current.setSnPlugins(e)})():d=e},m={id:e.id,model:e,async destroy(){await r(),o(),o=j_},async convertTo(n){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await FP({halo:t,model:e,cellRef:a,newType:n});return r&&(e.__snInterceptor?await e.__snInterceptor.setProperties.call(e,o.qProperty):await e.setProperties(o.qProperty)),o},addListener(e,t){p.addListener(e,t)},removeListener(e,t){p.removeListener(e,t)},__DO_NOT_USE__:{mount(r){if(l)throw new Error("Already mounted");return l=r,[o,a]=M_({halo:t,element:r,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:n,onMount:s,emitter:p}),c},async applyProperties(t){const n=A_("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){f(e)},plugins(e){h(e)},exportImage:()=>a.current.exportImage(),takeSnapshot:()=>a.current.takeSnapshot(),getModel:()=>e}};return m}async function B_(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const i=F_({model:e,halo:n,initialError:r,onDestroy:o});return t.options&&i.__DO_NOT_USE__.options(t.options),t.plugins&&i.__DO_NOT_USE__.plugins(t.plugins),t.element&&await i.__DO_NOT_USE__.mount(t.element),i}async function $_(e,t){let{type:n,version:r,fields:o,properties:i,options:a,plugins:l,element:s,extendProperties:c}=e,u={};const d=[];let p;try{const e=t.types.get({name:n,version:r});u=await e.initialProperties(i,c);const a=await e.supernova();o&&await kP({sn:a,properties:u,fields:o,children:d},t),i&&a&&a.qae.properties.onChange&&a.qae.properties.onChange.call({},u)}catch(e){p=e,u={qInfo:{qType:n},visualization:n}}const f=await t.app.createSessionObject(u);d.length>0&&await f.setFullPropertyTree({qProperty:u,qChildren:d}),CL.set(f.id,f);const h=(e=>{const t=wL({type:"SET",value:e});return()=>{t(),CL.clear(e.id)}})(f);return B_(f,{options:a,plugins:l,element:s},t,p,(async()=>{await t.app.destroySessionObject(f.id),h()}))}async function W_(e,t,n){let{type:r,version:o,fields:i,properties:a,extendProperties:l}=e,s={};const c=[];try{const e=t.types.get({name:r,version:o});s=await e.initialProperties(a,l);const n=await e.supernova();i&&await kP({sn:n,properties:s,fields:i,children:c},t),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},s)}catch(e){s=n?null:{qInfo:{qType:r},visualization:r}}if(!n){const e=await t.app.createObject(s);return c.length>0&&await e.setFullPropertyTree({qProperty:s,qChildren:c}),CL.set(e.id,e),e}return s}const U_="njs-sheet";function H_(e){let{model:t,halo:n,initialSnOptions:r,initialSnPlugins:o,initialError:i,onMount:a}=e;const{root:l}=n,[s]=TL(t),{theme:c}=U.useContext(Iw),[u,d]=U.useState([]),[p,f]=U.useState(void 0),[h,m]=U.useState(void 0),[g,v]=U.useState("");U.useEffect((()=>{if(s){const e=JSON.stringify(s.cells);if(e===g)return;v(e);const t=async()=>{u.forEach((e=>{l.removeCell(e.currentId)}));const e=s.cells,t=await Promise.all(e.map((async e=>{let t;const r=new Promise((e=>{t=e})),o=u.find((t=>t.id===e.name));if(o)return o.bounds=e.bounds,delete o.mountedPromise,o;const i=await async function(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let l=bL.get(a);l||(l=t.app.getObject(n),bL.set(a,l));const s=await l;return CL.set(a,s),B_(s,{options:r,plugins:o,element:i},t)}({id:e.name},n);return{model:i.model,id:e.name,bounds:e.bounds,cellRef:H.createRef(),currentId:AT(),mounted:t,mountedPromise:r}})));t.forEach((e=>l.addCell(e.currentId,e.cellRef))),d(t)};t()}}),[s]);const b=U.useMemo((()=>u?u.map((e=>function(e,t,n,r,o,i){const{x:a,y:l,width:s,height:c}=e.bounds;return H.createElement("div",{style:{left:"".concat(a,"%"),top:"".concat(l,"%"),width:"".concat(s,"%"),height:"".concat(c,"%"),position:"absolute"}},H.createElement(N_,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:i}))}(e,n,r,o,i,e.mounted))):[]),[u]);U.useEffect((()=>{const e=null!=s&&s.components?s.components.find((e=>"general"===e.key)):null;f(E_(e,n.public.theme)),m(w_(e,n.app))}),[s,n.public.theme,n.app,c]);const y=!s||Number.isNaN(s.height)?"100%":"".concat(Number(s.height),"%"),x=u.map((e=>e.mountedPromise)),S=x.filter((e=>!!e));return S.length&&Promise.all(x).then((()=>{a()})),H.createElement("div",{className:U_,style:{width:"100%",height:y,position:"relative",backgroundColor:p,backgroundImage:h&&h.url?"url(".concat(h.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:h&&h.size,backgroundPosition:h&&h.pos}},b)}function V_(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:i,onMount:a,initialError:l}=e;const{root:s}=t,c=H.createRef(),u=wp.createPortal(H.createElement(H_,{ref:c,halo:t,model:r,initialSnOptions:o,initialSnPlugins:i,initialError:l,onMount:a}),n,r.id),d=()=>{s.remove(u),r.removeListener("closed",d)};return r.on("closed",d),s.add(u),[d,c]}const G_=()=>{};function K_(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=G_,a=null,l=null,s=null;const c=new Promise((e=>{s=e}));let u={},d=[];const p=async e=>{l?(async()=>{await c,a.current.setSnOptions(i(i({},u),e))})():u=i(i({},u),e)},f=async e=>{D_(e),l?(async()=>{await c,a.current.setSnPlugins(e)})():d=e},h={id:e.id,model:e,async destroy(){await r(),o(),o=G_},__DO_NOT_USE__:{mount(r){if(l)throw new Error("Already mounted");return l=r,[o,a]=V_({halo:t,element:r,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:n,onMount:s}),c},async applyProperties(t){const n=A_("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){p(e)},plugins(e){f(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return h}async function Z_(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let l=bL.get(a);l||(l=t.app.getObject(n),bL.set(a,l));const s=await l;return CL.set(a,s),"sheet"===s.genericType?async function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const i=K_({model:e,halo:n,initialError:r,onDestroy:o});return t.options&&i.__DO_NOT_USE__.options(t.options),t.plugins&&i.__DO_NOT_USE__.plugins(t.plugins),t.element&&await i.__DO_NOT_USE__.mount(t.element),i}(s,{options:r,plugins:o,element:i},t):B_(s,{options:r,plugins:o,element:i},t)}function X_(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const Q_=Ve.bind(null,!0),J_={},{isArray:Y_}=Array;function eN(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function tN(e){return void 0===e}function nN(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function rN(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const i=isNaN(r)?{}:[];e[r||t]=tN(e[r||t])?i:e[t],e=e[r||t]})),e}function oN(e,t){let n=!0;if(eN(e)&&eN(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{oN(e[r],t[r])||(n=!1)})),n);if(Y_(e)&&Y_(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!oN(e[n],t[n]))return!1;return!0}return e===t}J_.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?Q_({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);oN(i,a)||nN(t,o)||(tN(a)?r.push({op:"add",path:l,value:i}):eN(i)&&eN(a)?r=r.concat(J_.generate(a,i,l)):Y_(i)&&Y_(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&tN(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(oN(t,o))return r;if(!tN(t[0])&&tN(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:"".concat(n,"/").concat(e)}),o.splice(e,1)):r=r.concat(J_.generate(o[e],t[i],"".concat(n,"/").concat(e)));for(let e=0,l=t.length;e<l;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:"".concat(n,"/").concat(e),value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:"".concat(n,"/").concat(e),from:"".concat(n,"/").concat(i)}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((o=>{tN(t[o])&&!nN(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},J_.apply=function(e,t){t.forEach((t=>{let n=rN(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(Y_(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Y_(o)&&Y_(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(eN(o)&&eN(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!nN(a,e)&&delete a[e]})),Q_(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=rN(e,t.from);Y_(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(Y_(n)?n.splice(+r,1):delete n[r]);var a}))},J_.clone=function(e){return Q_({},e)},J_.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},J_.updateObject=function(e,t){Object.keys(e).length?J_.apply(e,J_.generate(e,t)):Q_(e,t)};const iN=e=>t=>{const n=(r=i(i({},t),{},{action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0}),Object.keys(te.prototype).forEach((e=>{r[e]=te.prototype[e]})),te.init(r),r);var r;return n};let aN,lN;function sN(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 cN(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null}}}function uN(e){pN(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 dN(e){if(e.__hooks.obsolete)return Promise.resolve();lN=-1,aN=e,aN.__hooks.initiated&&aN.__hooks.list.length;try{aN.fn.call(null)}catch(e){console.error(e)}aN.__hooks.initiated=!0;const t=aN.__hooks;return gN(aN),lN=void 0,aN=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){pN(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){pN(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 pN(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 fN(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 hN(e,t,n){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function mN(e){return e.__hooks.imperativeHandle}function gN(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function vN(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,gN(e))}function bN(e){if(void 0===aN)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=aN.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function yN(e){bN(++lN);return aN.context[e]}function xN(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function SN(e){return{__hooked:!0,fn:e,initiate:cN,run:dN,teardown:uN,runSnaps:fN,runMenu:hN,focus:LN,blur:ON,observeActions:vN,getImperativeHandle:mN,updateRectOnNextRun:xN}}function wN(e){const t=bN(++lN);if(!t.value){t.component=aN;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,dN(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function EN(e,t){const n=bN(++lN);sN(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===aN.__hooks.pendingEffects.indexOf(n)&&aN.__hooks.pendingEffects.push(n))}function CN(e,t){const n=bN(++lN);sN(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],aN.__hooks.pendingLayoutEffects.push(n))}function kN(e,t){const n=bN(++lN);return sN(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function RN(){return yN("element")}function LN(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 ON(e){const t=e.__hooks.accessibility;t&&t.active&&(t.active=!1,t&&t.setter&&t.setter({active:!1,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}const IN={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},TN=Object.keys(IN);function PN(e,t){const n=i({},IN);var r;r=n,Object.keys(te.prototype).forEach((e=>{r[e]=te.prototype[e]})),te.init(r);const o={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==TN.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]}));const a=function(e){let{sn:t,component:n}=e;const r={},o=[],i=iN(n);return((t.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=i(e);r[e.key]=t,o.push(t)})),(t.definition.actions||[]).forEach((e=>{const t=i(e);r[e.key]=t})),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:o}),l=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:l,selections:t.selections,actions:a.actions}),Object.assign(n,{actions:a.actions,model:t.model,app:t.app,selections:t.selections}),[n,a]}function _N(e,t,n){"function"==typeof e.component&&(e.component=SN(e.component));const[r,o]=e.component&&e.component.__hooked?function(e,t,n){const r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const a={},l=["appLayout","constraints","interactions"],s={},c={};t.model&&t.model.session||(s.select=!0,s.edit=!0,c.select=!1,c.edit=!1);const u={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:s,interactions:c,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(u,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let r=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(r=!0)})),r&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,n)=>{this.context.plugins[n]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],n=!0)}l.forEach((e=>{const r=t.context;if(r&&Object.prototype.hasOwnProperty.call(r,e)){let t=JSON.stringify(r[e]);"constraints"===e&&(t=JSON.stringify(i(i({},r[e]),s))),"interactions"===e&&(t=JSON.stringify(i(i({},r[e]),c))),t!==a[e]&&(n=!0,a[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==a.themeName&&(n=!0,a.themeName=this.context.theme.name()),this.context.translator.language()!==a.language&&(n=!0,a.language=u.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n){return e.component.runMenu(this,t,n)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return l.forEach((e=>{a[e]=JSON.stringify(u.context[e])})),a.themeName=u.context.theme?u.context.theme.name():void 0,a.language=u.context.translator?u.context.translator.language():void 0,Object.assign(u,{selections:t.selections}),[u,null]}(e,t,n):PN(e,t),a=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.qae.properties.onChange.call({model:t.model},...r),t.model.__snInterceptor.setProperties.call(this,...r)},t.model.applyPatches=function(n,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const i=J_.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));J_.apply(o,a),e.qae.properties.onChange.call({model:t.model},o);const l=J_.generate(i,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,l,r)}))},t.model.__snInterceptor.teardown=()=>{t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor},a.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){a.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const NN=()=>{};function MN(e,t){return void 0===e?()=>t:()=>e}function qN(e){const t=e||{};return{min:"function"==typeof t.min?t.min:MN(t.min,0),max:"function"==typeof t.max?t.max:MN(t.max,1e3),added:t.added||t.add||NN,description:t.description||NN,moved:t.moved||t.move||NN,removed:t.removed||t.remove||NN,replaced:t.replaced||t.replace||NN,isDefined:()=>!!e}}function zN(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=>((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})(e,n,{}),dimensions:qN(e.dimensions),measures:qN(e.measures)}}function AN(){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);const r={properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(zN)},exportProperties:t.exportProperties,importProperties:t.importProperties};return r}function DN(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:AN(n.qae),component:n.component||{},create:e=>_N(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}var jN={exports:{}};!function(e,t){var n;t=e.exports=d,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=Number.MAX_SAFE_INTEGER||9007199254740991,o=t.re=[],i=t.src=[],a=t.tokens={},l=0;function s(e){a[e]=l++}s("NUMERICIDENTIFIER"),i[a.NUMERICIDENTIFIER]="0|[1-9]\\d*",s("NUMERICIDENTIFIERLOOSE"),i[a.NUMERICIDENTIFIERLOOSE]="[0-9]+",s("NONNUMERICIDENTIFIER"),i[a.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",s("MAINVERSION"),i[a.MAINVERSION]="("+i[a.NUMERICIDENTIFIER]+")\\.("+i[a.NUMERICIDENTIFIER]+")\\.("+i[a.NUMERICIDENTIFIER]+")",s("MAINVERSIONLOOSE"),i[a.MAINVERSIONLOOSE]="("+i[a.NUMERICIDENTIFIERLOOSE]+")\\.("+i[a.NUMERICIDENTIFIERLOOSE]+")\\.("+i[a.NUMERICIDENTIFIERLOOSE]+")",s("PRERELEASEIDENTIFIER"),i[a.PRERELEASEIDENTIFIER]="(?:"+i[a.NUMERICIDENTIFIER]+"|"+i[a.NONNUMERICIDENTIFIER]+")",s("PRERELEASEIDENTIFIERLOOSE"),i[a.PRERELEASEIDENTIFIERLOOSE]="(?:"+i[a.NUMERICIDENTIFIERLOOSE]+"|"+i[a.NONNUMERICIDENTIFIER]+")",s("PRERELEASE"),i[a.PRERELEASE]="(?:-("+i[a.PRERELEASEIDENTIFIER]+"(?:\\."+i[a.PRERELEASEIDENTIFIER]+")*))",s("PRERELEASELOOSE"),i[a.PRERELEASELOOSE]="(?:-?("+i[a.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+i[a.PRERELEASEIDENTIFIERLOOSE]+")*))",s("BUILDIDENTIFIER"),i[a.BUILDIDENTIFIER]="[0-9A-Za-z-]+",s("BUILD"),i[a.BUILD]="(?:\\+("+i[a.BUILDIDENTIFIER]+"(?:\\."+i[a.BUILDIDENTIFIER]+")*))",s("FULL"),s("FULLPLAIN"),i[a.FULLPLAIN]="v?"+i[a.MAINVERSION]+i[a.PRERELEASE]+"?"+i[a.BUILD]+"?",i[a.FULL]="^"+i[a.FULLPLAIN]+"$",s("LOOSEPLAIN"),i[a.LOOSEPLAIN]="[v=\\s]*"+i[a.MAINVERSIONLOOSE]+i[a.PRERELEASELOOSE]+"?"+i[a.BUILD]+"?",s("LOOSE"),i[a.LOOSE]="^"+i[a.LOOSEPLAIN]+"$",s("GTLT"),i[a.GTLT]="((?:<|>)?=?)",s("XRANGEIDENTIFIERLOOSE"),i[a.XRANGEIDENTIFIERLOOSE]=i[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",s("XRANGEIDENTIFIER"),i[a.XRANGEIDENTIFIER]=i[a.NUMERICIDENTIFIER]+"|x|X|\\*",s("XRANGEPLAIN"),i[a.XRANGEPLAIN]="[v=\\s]*("+i[a.XRANGEIDENTIFIER]+")(?:\\.("+i[a.XRANGEIDENTIFIER]+")(?:\\.("+i[a.XRANGEIDENTIFIER]+")(?:"+i[a.PRERELEASE]+")?"+i[a.BUILD]+"?)?)?",s("XRANGEPLAINLOOSE"),i[a.XRANGEPLAINLOOSE]="[v=\\s]*("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:"+i[a.PRERELEASELOOSE]+")?"+i[a.BUILD]+"?)?)?",s("XRANGE"),i[a.XRANGE]="^"+i[a.GTLT]+"\\s*"+i[a.XRANGEPLAIN]+"$",s("XRANGELOOSE"),i[a.XRANGELOOSE]="^"+i[a.GTLT]+"\\s*"+i[a.XRANGEPLAINLOOSE]+"$",s("COERCE"),i[a.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",s("COERCERTL"),o[a.COERCERTL]=new RegExp(i[a.COERCE],"g"),s("LONETILDE"),i[a.LONETILDE]="(?:~>?)",s("TILDETRIM"),i[a.TILDETRIM]="(\\s*)"+i[a.LONETILDE]+"\\s+",o[a.TILDETRIM]=new RegExp(i[a.TILDETRIM],"g");s("TILDE"),i[a.TILDE]="^"+i[a.LONETILDE]+i[a.XRANGEPLAIN]+"$",s("TILDELOOSE"),i[a.TILDELOOSE]="^"+i[a.LONETILDE]+i[a.XRANGEPLAINLOOSE]+"$",s("LONECARET"),i[a.LONECARET]="(?:\\^)",s("CARETTRIM"),i[a.CARETTRIM]="(\\s*)"+i[a.LONECARET]+"\\s+",o[a.CARETTRIM]=new RegExp(i[a.CARETTRIM],"g");s("CARET"),i[a.CARET]="^"+i[a.LONECARET]+i[a.XRANGEPLAIN]+"$",s("CARETLOOSE"),i[a.CARETLOOSE]="^"+i[a.LONECARET]+i[a.XRANGEPLAINLOOSE]+"$",s("COMPARATORLOOSE"),i[a.COMPARATORLOOSE]="^"+i[a.GTLT]+"\\s*("+i[a.LOOSEPLAIN]+")$|^$",s("COMPARATOR"),i[a.COMPARATOR]="^"+i[a.GTLT]+"\\s*("+i[a.FULLPLAIN]+")$|^$",s("COMPARATORTRIM"),i[a.COMPARATORTRIM]="(\\s*)"+i[a.GTLT]+"\\s*("+i[a.LOOSEPLAIN]+"|"+i[a.XRANGEPLAIN]+")",o[a.COMPARATORTRIM]=new RegExp(i[a.COMPARATORTRIM],"g");s("HYPHENRANGE"),i[a.HYPHENRANGE]="^\\s*("+i[a.XRANGEPLAIN]+")\\s+-\\s+("+i[a.XRANGEPLAIN]+")\\s*$",s("HYPHENRANGELOOSE"),i[a.HYPHENRANGELOOSE]="^\\s*("+i[a.XRANGEPLAINLOOSE]+")\\s+-\\s+("+i[a.XRANGEPLAINLOOSE]+")\\s*$",s("STAR"),i[a.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c<l;c++)n(c,i[c]),o[c]||(o[c]=new RegExp(i[c]));function u(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?o[a.LOOSE]:o[a.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<r)return t}return e})):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}t.parse=u,t.valid=function(e,t){var n=u(e,t);return n?n.version:null},t.clean=function(e,t){var n=u(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=d,d.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},d.prototype.toString=function(){return this.version},d.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof d||(e=new d(e,this.options)),this.compareMain(e)||this.comparePre(e)},d.prototype.compareMain=function(e){return e instanceof d||(e=new d(e,this.options)),f(this.major,e.major)||f(this.minor,e.minor)||f(this.patch,e.patch)},d.prototype.comparePre=function(e){if(e instanceof d||(e=new d(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return f(r,o)}while(++t)},d.prototype.compareBuild=function(e){e instanceof d||(e=new d(e,this.options));var t=0;do{var r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return f(r,o)}while(++t)},d.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(v(e,t))return null;var n=u(e),r=u(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var i="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return o+a;return i},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function h(e,t,n){return new d(e,n).compare(new d(t,n))}function m(e,t,n){return h(e,t,n)>0}function g(e,t,n){return h(e,t,n)<0}function v(e,t,n){return 0===h(e,t,n)}function b(e,t,n){return 0!==h(e,t,n)}function y(e,t,n){return h(e,t,n)>=0}function x(e,t,n){return h(e,t,n)<=0}function S(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 v(e,n,r);case"!=":return b(e,n,r);case">":return m(e,n,r);case">=":return y(e,n,r);case"<":return g(e,n,r);case"<=":return x(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===E?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),o=new d(t,n);return r.compare(o)||r.compareBuild(o)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=m,t.lt=g,t.eq=v,t.neq=b,t.gte=y,t.lte=x,t.cmp=S,t.Comparator=w;var E={};function C(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof C)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new C(e.raw,t);if(e instanceof w)return new C(e.value,t);if(!(this instanceof C))return new C(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function k(e,t){for(var n=!0,r=e.slice(),o=r.pop();n&&r.length;)n=r.every((function(e){return o.intersects(e,t)})),o=r.pop();return n}function R(e){return!e||"x"===e.toLowerCase()||"*"===e}function L(e,t,n,r,o,i,a,l,s,c,u,d,p){return((t=R(n)?"":R(r)?">="+n+".0.0":R(o)?">="+n+"."+r+".0":">="+t)+" "+(l=R(s)?"":R(c)?"<"+(+s+1)+".0.0":R(u)?"<"+s+"."+(+c+1)+".0":d?"<="+s+"."+c+"."+u+"-"+d:"<="+l)).trim()}function O(e,t,r){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(o=0;o<e.length;o++)if(n(e[o].semver),e[o].semver!==E&&e[o].semver.prerelease.length>0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function I(e,t,n){try{t=new C(t,n)}catch(e){return!1}return t.test(e)}function T(e,t,n,r){var o,i,a,l,s;switch(e=new d(e,r),t=new C(t,r),n){case">":o=m,i=x,a=g,l=">",s=">=";break;case"<":o=g,i=y,a=m,l="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(I(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],p=null,f=null;if(u.forEach((function(e){e.semver===E&&(e=new w(">=0.0.0")),p=p||e,f=f||e,o(e.semver,p.semver,r)?p=e:a(e.semver,f.semver,r)&&(f=e)})),p.operator===l||p.operator===s)return!1;if((!f.operator||f.operator===l)&&i(e,f.semver))return!1;if(f.operator===s&&a(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=E},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===E||e===E)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return S(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new C(e.value,t),I(this.value,n,t));if(""===e.operator)return""===e.value||(n=new C(this.value,t),I(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),l=S(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=S(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&a||l||s},t.Range=C,C.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},C.prototype.toString=function(){return this.range},C.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[a.HYPHENRANGELOOSE]:o[a.HYPHENRANGE];e=e.replace(r,L),n("hyphen replace",e),e=e.replace(o[a.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,o[a.COMPARATORTRIM]),e=(e=(e=e.replace(o[a.TILDETRIM],"$1~")).replace(o[a.CARETTRIM],"$1^")).split(/\s+/).join(" ");var i=t?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],l=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?o[a.CARETLOOSE]:o[a.CARET];return e.replace(r,(function(t,r,o,i,a){var l;return n("caret",e,t,r,o,i,a),R(r)?l="":R(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":R(i)?l="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),l="0"===r?"0"===o?">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),l="0"===r?"0"===o?">="+r+"."+o+"."+i+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+" <"+(+r+1)+".0.0"),n("caret return",l),l}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?o[a.TILDELOOSE]:o[a.TILDE];return e.replace(r,(function(t,r,o,i,a){var l;return n("tilde",e,t,r,o,i,a),R(r)?l="":R(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":R(i)?l=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":a?(n("replaceTilde pr",a),l=">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0"):l=">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0",n("tilde return",l),l}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?o[a.XRANGELOOSE]:o[a.XRANGE];return e.replace(r,(function(r,o,i,a,l,s){n("xRange",e,r,o,i,a,l,s);var c=R(i),u=c||R(a),d=u||R(l),p=d;return"="===o&&p&&(o=""),s=t.includePrerelease?"-0":"",c?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&p?(u&&(a=0),l=0,">"===o?(o=">=",u?(i=+i+1,a=0,l=0):(a=+a+1,l=0)):"<="===o&&(o="<",u?i=+i+1:a=+a+1),r=o+i+"."+a+"."+l+s):u?r=">="+i+".0.0"+s+" <"+(+i+1)+".0.0"+s:d&&(r=">="+i+"."+a+".0"+s+" <"+i+"."+(+a+1)+".0"+s),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[a.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(l=l.filter((function(e){return!!e.match(i)}))),l=l.map((function(e){return new w(e,this.options)}),this)},C.prototype.intersects=function(e,t){if(!(e instanceof C))throw new TypeError("a Range is required");return this.set.some((function(n){return k(n,t)&&e.set.some((function(e){return k(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new C(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},C.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1},t.satisfies=I,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var i=new C(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&-1!==o.compare(e)||(o=new d(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,o=null;try{var i=new C(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&1!==o.compare(e)||(o=new d(r=e,n)))})),r},t.minVersion=function(e,t){e=new C(e,t);var n=new d("0.0.0");if(e.test(n))return n;if(n=new d("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r){e.set[r].forEach((function(e){var t=new d(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!m(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new C(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return T(e,t,"<",n)},t.gtr=function(e,t,n){return T(e,t,">",n)},t.outside=T,t.prerelease=function(e,t){var n=u(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new C(e,n),t=new C(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=o[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),o[a.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;o[a.COERCERTL].lastIndex=-1}else n=e.match(o[a.COERCE]);if(null===n)return null;return u(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(jN,jN.exports);var FN=jN.exports;const BN={};async function $N(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!BN[i]){const n="".concat(e).concat(t&&" v".concat(t)||"");if(r&&"function"!=typeof r)throw new Error("load of visualization '".concat(n,"' is not a fuction, wrap load promise in function"));const a=(r||o.load)({name:e,version:t}),l=Promise.resolve(a);BN[i]=l.then((e=>{if(!e)throw new Error("load() of visualization '".concat(n,"' resolved to an invalid object"));return e})).catch((e=>{throw new Error("Failed to load visualization: '".concat(n,"'"))}))}return BN[i]}function WN(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]=function(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:a}=o,l={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&a&&a.deps&&a.deps.properties)||FN.satisfies(e,a.deps.properties),supernova:()=>$N(l.name,l.version,t,o.load).then((e=>(n=n||DN(e,t.public.galaxy),r=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.supernova().then((()=>{const n=i({qInfo:{qType:l.name},visualization:l.name,version:l.version,showTitles:!0},JSON.parse(r));return t?(Ve(!0,n,e),n):i(i({},n),e)}))}};return l}({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 UN(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=WN(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>r[e]?r[e].getMatchingVersionFromProperties(t):null,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(BN).forEach((t=>{t.split("__")[0]===e&&(BN[t]=void 0)}))}(e)}}}const HN={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()))},VN={context:{},load:()=>{},types:[],themes:[],anything:{},snapshot:HN};VN.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1};const GN=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i(i({},e),t)},KN=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[...e,...t].filter(((e,t,n)=>n.indexOf(e)===t))},ZN=(e,t)=>({context:GN(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:i({},t.snapshot||e.snapshot),types:KN(e.types,t.types),themes:KN(e.themes,t.themes),flags:GN(e.flags,t.flags),anything:GN(e.anything,t.anything)});var XN=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Q(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let a=i(i({},t.context),{},{translator:n.translator});const[l]=Ww({app:e,context:a}),s=dt({themes:t.themes,loadTheme:t.loadTheme,root:l});a.themeApi=s.externalAPI;const c={galaxy:{translator:n.translator,flags:X_(t.flags),deviceType:pt(t.context.deviceType),anything:t.anything},theme:s.externalAPI,translator:n.translator,nebbie:null},u={app:e,root:l,config:t,public:c,context:a,types:null},d=UN({halo:u});t.types.forEach((e=>d.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let p=s.setTheme(t.context.theme),f=null,h=null;const m={render:async e=>(await p,e.id?Z_(e,u):$_(e,u)),create:async e=>W_(e,u,!1),generateProperties:async e=>W_(e,u,!0),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==a[n]&&(t||(t={}),t[n]=e[n])})),t&&(a=i(i(i({},a),t),{},{translator:n.translator}),t.theme&&(p=s.setTheme(t.theme),await p),t.language&&u.public.translator.language(t.language),l.context(a))},selections:async()=>(f||(f={mount(t){h||(h=jT({element:t,app:e}),l.add(h))},unmount(){h&&(l.remove(h),h=null)}}),f),field:async t=>{let n;const r="string"==typeof t?t:t.qLibraryId;if(t.qId)n=t.qId;else if(!r)throw new Error("Field identifier or object id must be provided");const o={fieldName:r,async mount(a){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!a)throw new Error("Element for ".concat(r||n," not provided"));if(this._instance)throw new Error("Field or object ".concat(r||n," already mounted"));const c=()=>o.emit("selectionActivated"),u=()=>o.emit("selectionDeactivated");return new Promise((r=>{this._instance=hP({element:a,app:e,fieldIdentifier:t,qId:n,options:pP(i({onSelectionActivated:c,onSelectionDeactivated:u},s)),stateName:s.stateName||"$",renderedCallback:r}),l.add(this._instance)}))},unmount(){this._instance&&(l.remove(this._instance),this._instance=null)}};return fT(o),o},getRegisteredTypes:d.getList,__DO_NOT_USE__:{types:d,popover(t,n,r){m._popoverInstance&&(l.remove(m._popoverInstance),m._popoverInstance=null);const o=gP(i({onPopoverClose:()=>m.emit("fieldPopoverClose")},r));m._popoverInstance=H.createElement(vP,{element:t,key:AT(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),l.add(m._popoverInstance)}}};return u.public.nebbie=m,u.types=d,fT(m),m}return r.createConfiguration=n=>e(ZN(t,n)),r.config=t,r}(VN);function QN(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const JN=globalThis.crypto||{getRandomValues:()=>123456};function YN(){return e=>{const t=Ve({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^JN.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const n=t._mock;let r=t;return n&&(delete t._mock,r=Ve({},t,n)),Promise.resolve(i({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(r),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId},t))}}const eM=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},tM=function(e){let{defaultValue:t,async:n=!0,delay:r=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];const l=eM(e,{defaultValue:t,args:i});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},nM=["id","session"],rM=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function oM(e){return!rM.includes(e)}function iM(e){const t=eM(e.getLayout);return t.qInfo&&t.qInfo.qId}function aM(e,t){return e.reduce(((e,n)=>i(i({},e),function(e,t){let n=iM(e);const{delay:r}=t,{id:o,session:a}=e,l=s(e,nM);if(o&&n&&o!==n)throw new Error("Generic object has multiple IDs, qInfo.qId: ".concat(n,", id: ").concat(o));return n=n||o||"object - ".concat(+Date.now()),{[n]:i(i({id:n,session:eM(a,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(l).reduce(((e,t)=>{let[n,o]=t;return i(i({},e),{},{[n]:tM(o,{async:oM(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function lM(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!iM(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function sM(){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(lM);const n=aM(e,t);return async e=>Promise.resolve(n[e])}function cM(){return()=>Promise.resolve({id:"app-layout"})}const uM={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new QN,r=new YN,o=new sM(e,t),i=new cM,a={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,getObject:o,getAppLayout:i};return Promise.resolve(a)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},dM={generator:DN,hook:SN,theme:ct,locale:Z};e.EnigmaMocker=uM,e.__DO_NOT_USE__=dM,e.conversion=BP,e.embed=XN,e.onContextMenu=function(e){const t=bN(++lN);t.value||(t.value=1,aN.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=bN(++lN);t.value||(t.value=1,aN.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=wN({action(){n._config.action.call(null)}});return n.component||(n.component=aN,aN.__hooks.actions.list.push(n)),kN((()=>{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=yN("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return yN("appLayout")},e.useConstraints=function(){return yN("constraints")},e.useDeviceType=function(){return yN("deviceType")},e.useEffect=EN,e.useElement=RN,e.useEmbed=function(){return yN("nebbie")},e.useEmitter=function(){return yN("emitter")},e.useGlobal=function(){const e=yN("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=bN(++lN);if(n.imperative||(n.imperative=!0),sN(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],aN.__hooks.imperativeHandle=r}},e.useInteractionState=function(){return yN("interactions")},e.useKeyboard=function(){const e=yN("keyboardNavigation"),t=yN("focusHandler");if(!aN.__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&&(ON(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(aN);aN.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),LN(this))}.bind(aN);aN.__hooks.accessibility.focusFunction=n;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const n=this.__hooks.accessibility;n.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(aN);aN.__hooks.accessibility.focusSelectionFunction=r}const n=aN.__hooks.accessibility.focusFunction,r=aN.__hooks.accessibility.exitFunction,o=aN.__hooks.accessibility.focusSelectionFunction,[i,a]=wN({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return aN.__hooks.accessibility.setter=a,aN.__hooks.accessibility.enabled=e,EN((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i},e.useLayout=function(){return yN("layout")},e.useMemo=kN,e.useModel=function(){const e=yN("model");return e&&e.session?e:void 0},e.useOptions=function(){return yN("options")},e.usePlugins=function(){return yN("plugins")},e.usePromise=function(e,t){const[n,r]=wN((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=bN(++lN);return o.component||(o.component=aN),CN((()=>{let t=!1;return o.teardown=()=>{t=!0,o.teardown=null;const e=o.component.__hooks.pendingPromises.indexOf(o);e>-1&&o.component.__hooks.pendingPromises.splice(e,1)},e().then((e=>{t||(o.teardown&&o.teardown(),r({resolved:e,rejected:void 0,state:"resolved"}))})).catch((e=>{t||(o.teardown&&o.teardown(),r({resolved:void 0,rejected:e,state:"resolved"}))})),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}}),t),[n.resolved,n.rejected]},e.useRect=function(){const e=RN(),t=aN.__hooks.resizer,[n,r]=wN((()=>{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()),CN((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:i}=e.getBoundingClientRect(),a=t.current;a.width===o&&a.height===i&&a.left===n&&a.top===r||t.setters.forEach((e=>e({left:n,top:r,width:o,height:i})))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let r=new ResizeObserver(n);return r.observe(e),()=>{r.unobserve(e),r.disconnect(e),r=null,t.resize=void 0}}}),[e]),n},e.useRenderState=function(){bN(++lN);const e=aN.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return yN("selections")},e.useStaleLayout=function(){const e=yN("layout"),[t]=wN({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=wN,e.useTheme=function(){return yN("theme")},e.useTranslator=function(){return yN("translator")}}));
135
134
  //# sourceMappingURL=stardust.js.map