@nebula.js/stardust 5.16.0 → 5.17.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 v5.16.0
2
+ * @nebula.js/stardust v5.17.0
3
3
  * Copyright (c) 2025 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)}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var i,a={exports:{}};function l(e){var t,n,r,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);o--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new s(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function s(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return s=function(e){this.s=e,this.n=e.next},s.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new s(e)}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(null,arguments)}function d(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}i||(i=1,function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new I(r||[]);return o(a,"_invoke",{value:_(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 f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function v(){}function b(){}function y(){}var x={};c(x,a,(function(){return this}));var S=Object.getPrototypeOf,w=S&&S(S(T([])));w&&w!==n&&r.call(w,a)&&(x=w);var E=y.prototype=v.prototype=Object.create(x);function k(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 _(e,n,r){var o=f;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=R(l,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function R(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,R(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function 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(null!=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}}throw new TypeError(typeof e+" is not iterable")}return b.prototype=y,o(E,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},k(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()}))},k(E),c(E,s,"Generator"),c(E,a,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,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,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;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),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(a));var h,m,g={exports:{}},v={};function b(){if(h)return v;h=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}g.prototype.isReactComponent={},g.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")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=g.prototype;var x=y.prototype=new b;x.constructor=y,p(x,g.prototype),x.isPureReactComponent=!0;var S=Array.isArray,w=Object.prototype.hasOwnProperty,E={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function C(t,n,r){var o,i={},a=null,l=null;if(null!=n)for(o in void 0!==n.ref&&(l=n.ref),void 0!==n.key&&(a=""+n.key),n)w.call(n,o)&&!k.hasOwnProperty(o)&&(i[o]=n[o]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];i.children=c}if(t&&t.defaultProps)for(o in s=t.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:e,type:t,key:a,ref:l,props:i,_owner:E.current}}function _(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var R=/\/+/g;function L(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 O(n,r,o,i,a){var l=typeof n;"undefined"!==l&&"boolean"!==l||(n=null);var s=!1;if(null===n)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(n.$$typeof){case e:case t:s=!0}}if(s)return a=a(s=n),n=""===i?"."+L(s,0):i,S(a)?(o="",null!=n&&(o=n.replace(R,"$&/")+"/"),O(a,r,o,"",(function(e){return e}))):null!=a&&(_(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(R,"$&/")+"/")+n)),r.push(a)),1;if(s=0,i=""===i?".":i+":",S(n))for(var c=0;c<n.length;c++){var u=i+L(l=n[c],c);s+=O(l,r,o,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(n),"function"==typeof u)for(n=u.call(n),c=0;!(l=n.next()).done;)s+=O(l=l.value,r,o,u=i+L(l,c++),a);else if("object"===l)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return s}function I(e,t,n){if(null==e)return e;var r=[],o=0;return O(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function T(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 P={current:null},M={transition:null},N={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:M,ReactCurrentOwner:E};function D(){throw Error("act(...) is not supported in production builds of React.")}return v.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},v.Component=g,v.Fragment=n,v.Profiler=o,v.PureComponent=y,v.StrictMode=r,v.Suspense=s,v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,v.act=D,v.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=p({},t.props),i=t.key,a=t.ref,l=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,l=E.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(c in n)w.call(n,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===n[c]&&void 0!==s?s[c]:n[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];o.children=s}return{$$typeof:e,type:t.type,key:i,ref:a,props:o,_owner:l}},v.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},v.createElement=C,v.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},v.createRef=function(){return{current:null}},v.forwardRef=function(e){return{$$typeof:l,render:e}},v.isValidElement=_,v.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:T}},v.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},v.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},v.unstable_act=D,v.useCallback=function(e,t){return P.current.useCallback(e,t)},v.useContext=function(e){return P.current.useContext(e)},v.useDebugValue=function(){},v.useDeferredValue=function(e){return P.current.useDeferredValue(e)},v.useEffect=function(e,t){return P.current.useEffect(e,t)},v.useId=function(){return P.current.useId()},v.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},v.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},v.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},v.useMemo=function(e,t){return P.current.useMemo(e,t)},v.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},v.useRef=function(e){return P.current.useRef(e)},v.useState=function(e){return P.current.useState(e)},v.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},v.useTransition=function(){return P.current.useTransition()},v.version="18.3.1",v}function y(){return m||(m=1,g.exports=b()),g.exports}var x=y(),S=r(x),w=t({__proto__:null,default:S},[x]);const E=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={};let r=e;const o={language:e=>(e&&(r=e),r),add:e=>{const{id:t,locale:r}=e;Object.keys(r).forEach((e=>{n[e]||(n[e]={}),n[e][t]=r[e]}))},get(e,o){let i;return i=n[r]&&void 0!==n[r][e]?n[r][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const t="string"==typeof e||"number"==typeof e?[e]:e;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/\{(\d+)\}/g,((e,n)=>void 0!==t[n]?t[n]:e))}(i,o):i}};return o}({initial:e,fallback:t});return{translator:n}};var k,C,_={Accessibility_Object_NoTitle:{id:"Accessibility.Object.NoTitle",locale:{"de-DE":"Kein Titel","en-US":"No title","es-ES":"Sin título","fr-FR":"Pas de titre","it-IT":"Nessun titolo","ja-JP":"タイトルなし","ko-KR":"제목 없음","nl-NL":"Geen titel","pl-PL":"Brak tytułu","pt-BR":"Sem título","ru-RU":"Без заголовка","sv-SE":"Ingen rubrik","tr-TR":"Başlık yok","zh-CN":"无标题","zh-TW":"無標題"}},Cancel:{id:"Cancel",locale:{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},CurrentSelections_All:{id:"CurrentSelections.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},CurrentSelections_Of:{id:"CurrentSelections.Of",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},Listbox_Clear_Search:{id:"Listbox.Clear.Search",locale:{"de-DE":"Suche löschen","en-US":"Clear search","es-ES":"Borrar búsqueda","fr-FR":"Effacer la recherche","it-IT":"Cancella ricerca","ja-JP":"検索をクリア","ko-KR":"검색 지우기","nl-NL":"Zoekopdracht wissen","pl-PL":"Wyczyść wyszukiwanie","pt-BR":"Limpar pesquisa","ru-RU":"Очистить поиск","sv-SE":"Radera sökning","tr-TR":"Aramayı temizle","zh-CN":"清除搜索","zh-TW":"清除搜尋"}},Listbox_Cyclic:{id:"Listbox.Cyclic",locale:{"de-DE":"Zyklische Dimension","en-US":"Cyclic dimension","es-ES":"Dimensión cíclica","fr-FR":"Dimension cyclique","it-IT":"Dimensione ciclica","ja-JP":"サイクリック軸","ko-KR":"순환 차원","nl-NL":"Cyclische dimensie","pl-PL":"Wymiar cykliczny","pt-BR":"Dimensão cíclica","ru-RU":"Циклическое измерение","sv-SE":"Cyklisk dimension","tr-TR":"Döngüsel boyut","zh-CN":"循环维度","zh-TW":"循環維度"}},Listbox_Dismiss:{id:"Listbox.Dismiss",locale:{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},Listbox_DrillDown:{id:"Listbox.DrillDown",locale:{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"钻取维度","zh-TW":"向下探查維度"}},Listbox_ItemsOverflow:{id:"Listbox.ItemsOverflow",locale:{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},Listbox_Lock:{id:"Listbox.Lock",locale:{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},Listbox_NoMatchesForYourTerms:{id:"Listbox.NoMatchesForYourTerms",locale:{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},Listbox_ResultFilterLabel:{id:"Listbox.ResultFilterLabel",locale:{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},Listbox_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},Listbox_ScreenReader_SelectionMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},Listbox_ScreenReaderInstructions:{id:"Listbox.ScreenReaderInstructions",locale:{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L'attivazione degli elementi sottostanti causerà l'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},Listbox_Search:{id:"Listbox.Search",locale:{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},Listbox_Search_ScreenReaderInstructions:{id:"Listbox.Search.ScreenReaderInstructions",locale:{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},Listbox_Unlock:{id:"Listbox.Unlock",locale:{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},Menu_More:{id:"Menu.More",locale:{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},Navigate_Back:{id:"Navigate.Back",locale:{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},Navigate_Forward:{id:"Navigate.Forward",locale:{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},OK:{id:"OK",locale:{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},Object_ActionButton:{id:"Object.ActionButton",locale:{"de-DE":"Schaltfläche","en-US":"Button","es-ES":"Botón","fr-FR":"Bouton","it-IT":"Pulsante","ja-JP":"ボタン","ko-KR":"버튼","nl-NL":"Knop","pl-PL":"Przycisk","pt-BR":"Botão","ru-RU":"Кнопка","sv-SE":"Knapp","tr-TR":"Düğme","zh-CN":"按钮","zh-TW":"按鈕"}},Object_AutoChart:{id:"Object.AutoChart",locale:{"de-DE":"Automatisches Diagramm","en-US":"Autochart","es-ES":"Gráfico automático","fr-FR":"Graphique automatique","it-IT":"Grafico automatico","ja-JP":"オートチャート","ko-KR":"자동 차트","nl-NL":"Automatisch diagram","pl-PL":"Automatyczny wykres","pt-BR":"Gráfico automático","ru-RU":"Автодиаграмма","sv-SE":"Automatiskt diagram","tr-TR":"Otomatik grafik","zh-CN":"自动图表","zh-TW":"自動圖表"}},Object_BarChart:{id:"Object.BarChart",locale:{"de-DE":"Balkendiagramm","en-US":"Bar chart","es-ES":"Gráfico de barras","fr-FR":"Graphique en barres","it-IT":"Grafico a barre","ja-JP":"棒グラフ","ko-KR":"막대형 차트","nl-NL":"Staafdiagram","pl-PL":"Wykres słupkowy","pt-BR":"Gráfico de barras","ru-RU":"Линейчатая диаграмма","sv-SE":"Stapeldiagram","tr-TR":"Sütun grafik","zh-CN":"条形图","zh-TW":"長條圖"}},Object_BoxPlot:{id:"Object.BoxPlot",locale:{"de-DE":"Boxplot","en-US":"Box plot","es-ES":"Diagrama de caja","fr-FR":"Boîte à moustaches","it-IT":"Box plot","ja-JP":"ボックス プロット","ko-KR":"상자 그림","nl-NL":"Boxplot","pl-PL":"Wykres pudełkowy","pt-BR":"Plotagem de caixa","ru-RU":"Блочная диаграмма","sv-SE":"Lådagram","tr-TR":"Kutu çizimi","zh-CN":"框图","zh-TW":"盒狀圖"}},Object_BulletChart:{id:"Object.BulletChart",locale:{"de-DE":"Bullet-Diagramm","en-US":"Bullet chart","es-ES":"Gráfico de viñetas","fr-FR":"Graphique à puces","it-IT":"Grafico bullet","ja-JP":"ブレット チャート","ko-KR":"글머리 기호 차트","nl-NL":"Bulletgrafiek","pl-PL":"Wykres pociskowy","pt-BR":"Quadro comparativo","ru-RU":"Диаграмма Буллет","sv-SE":"Nyansdiagram","tr-TR":"Madde imli grafik","zh-CN":"子弹图","zh-TW":"子彈圖"}},Object_ComboChart:{id:"Object.ComboChart",locale:{"de-DE":"Kombi-Diagramm","en-US":"Combo chart","es-ES":"Gráfico combinado","fr-FR":"Graphique combiné","it-IT":"Grafico combinato","ja-JP":"コンボ チャート","ko-KR":"콤보 차트","nl-NL":"Combinatiegrafiek","pl-PL":"Wykres kombi","pt-BR":"Gráfico de combinação","ru-RU":"Комбинированная диаграмма","sv-SE":"Kombinationsdiagram","tr-TR":"Birleşik grafik","zh-CN":"组合图","zh-TW":"組合圖"}},Object_Container:{id:"Object.Container",locale:{"de-DE":"Sammelbox","en-US":"Container","es-ES":"Contenedor","fr-FR":"Conteneur","it-IT":"Contenitore","ja-JP":"コンテナー","ko-KR":"컨테이너","nl-NL":"Container","pl-PL":"Kontener","pt-BR":"Contêiner","ru-RU":"Контейнер","sv-SE":"Behållare","tr-TR":"Kapsayıcı","zh-CN":"容器","zh-TW":"容器"}},Object_DistributionPlot:{id:"Object.DistributionPlot",locale:{"de-DE":"Verteilungsdiagramm","en-US":"Distribution plot","es-ES":"Diagrama de distribución","fr-FR":"Diagramme de distribution","it-IT":"Grafico di distribuzione","ja-JP":"分布プロット","ko-KR":"분포도","nl-NL":"Verdelingsplot","pl-PL":"Wykres rozkładu","pt-BR":"Gráfico de distribuição","ru-RU":"График распределения","sv-SE":"Fördelningsdiagram","tr-TR":"Dağılım grafiği","zh-CN":"分布图","zh-TW":"分佈圖"}},Object_FilterLabel_All:{id:"Object.FilterLabel.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUT","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKIE","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},Object_FilterLabel_Exclude:{id:"Object.FilterLabel.Exclude",locale:{"de-DE":"NICHT","en-US":"NOT","es-ES":"NO","fr-FR":"EXCLURE","it-IT":"NON","ja-JP":"除外","ko-KR":"제외","nl-NL":"NIET","pl-PL":"NIE","pt-BR":"NÃO","ru-RU":"НЕ","sv-SE":"INTE","tr-TR":"DEĞİL","zh-CN":"非","zh-TW":"不是"}},Object_FilterLabel_Unknown:{id:"Object.FilterLabel.Unknown",locale:{"de-DE":"Unbekannt","en-US":"Unknown","es-ES":"Desconocido","fr-FR":"Inconnu","it-IT":"Sconosciuto","ja-JP":"不明","ko-KR":"알 수 없음","nl-NL":"Onbekend","pl-PL":"Nieznany","pt-BR":"Desconhecido","ru-RU":"Неизвестный","sv-SE":"Okänt","tr-TR":"Bilinmiyor","zh-CN":"未知","zh-TW":"未知"}},Object_FilterPane:{id:"Object.FilterPane",locale:{"de-DE":"Filterfenster","en-US":"Filter pane","es-ES":"Panel de filtrado","fr-FR":"Panneau de filtre","it-IT":"Casella di filtro","ja-JP":"フィルター パネル","ko-KR":"필터 창","nl-NL":"Filtervak","pl-PL":"Panel filtrowania","pt-BR":"Painel de filtro","ru-RU":"Фильтр","sv-SE":"Filterruta","tr-TR":"Filtre bölmesi","zh-CN":"筛选器窗格","zh-TW":"篩選窗格"}},Object_FiltersApplied:{id:"Object.FiltersApplied",locale:{"de-DE":"Angewendete Filter:","en-US":"Filters applied:","es-ES":"Filtros aplicados:","fr-FR":"Filtres appliqués :","it-IT":"Filtri applicati:","ja-JP":"適用されているフィルター:","ko-KR":"적용된 필터:","nl-NL":"Toegepaste filters:","pl-PL":"Zastosowane filtry:","pt-BR":"Filtros aplicados:","ru-RU":"Примененные фильтры:","sv-SE":"Använda filter:","tr-TR":"Uygulanan filtreler:","zh-CN":"应用的筛选器:","zh-TW":"篩選器已套用:"}},Object_FunnelChart:{id:"Object.FunnelChart",locale:{"de-DE":"Trichterdiagramm","en-US":"Funnel chart","es-ES":"Gráfico de embudo","fr-FR":"Graphique en entonnoir","it-IT":"Grafico a imbuto","ja-JP":"ファネル チャート","ko-KR":"깔때기형 차트","nl-NL":"Trechterdiagram","pl-PL":"Wykres lejkowy","pt-BR":"Gráfico de funil","ru-RU":"Диаграмма Воронка","sv-SE":"Trattdiagram","tr-TR":"Huni grafik","zh-CN":"漏斗图","zh-TW":"漏斗圖"}},Object_Gauge:{id:"Object.Gauge",locale:{"de-DE":"Messzeiger","en-US":"Gauge","es-ES":"Indicador","fr-FR":"Jauge","it-IT":"Misuratore","ja-JP":"ゲージ","ko-KR":"게이지","nl-NL":"Meter","pl-PL":"Miernik","pt-BR":"Mostrador","ru-RU":"Датчик","sv-SE":"Mätare","tr-TR":"Gösterge","zh-CN":"仪表","zh-TW":"量表"}},Object_GridChart:{id:"Object.GridChart",locale:{"de-DE":"Matrixdiagramm","en-US":"Grid chart","es-ES":"Gráfico de cuadrícula","fr-FR":"Bulles","it-IT":"Grafico a griglia","ja-JP":"グリッド チャート","ko-KR":"그리드형 차트","nl-NL":"Rasterdiagram","pl-PL":"Wykres siatkowy","pt-BR":"Gráfico de grade","ru-RU":"Сетчатая диаграмма","sv-SE":"Rutnätsdiagram","tr-TR":"Izgara grafik","zh-CN":"网格图","zh-TW":"格線圖"}},Object_Histogram:{id:"Object.Histogram",locale:{"de-DE":"Histogramm","en-US":"Histogram","es-ES":"Histograma","fr-FR":"Histogramme","it-IT":"Istogramma","ja-JP":"ヒストグラム","ko-KR":"히스토그램","nl-NL":"Histogram","pl-PL":"Histogram","pt-BR":"Histograma","ru-RU":"Гистограмма","sv-SE":"Histogram","tr-TR":"Histogram","zh-CN":"直方图","zh-TW":"色階分佈圖"}},Object_Kpi:{id:"Object.Kpi",locale:{"de-DE":"KPI","en-US":"KPI","es-ES":"KPI","fr-FR":"ICP","it-IT":"KPI","ja-JP":"KPI","ko-KR":"KPI","nl-NL":"KPI","pl-PL":"Wskaźnik KPI","pt-BR":"KPI","ru-RU":"Ключевой показатель эффективности","sv-SE":"KPI (nyckeltal)","tr-TR":"KPI","zh-CN":"KPI","zh-TW":"KPI"}},Object_LayoutContainer:{id:"Object.LayoutContainer",locale:{"de-DE":"Layout-Sammelbox","en-US":"Layout container","es-ES":"Contenedor de diseño","fr-FR":"Conteneur de disposition","it-IT":"Contenitore layout","ja-JP":"レイアウト コンテナ","ko-KR":"레이아웃 컨테이너","nl-NL":"Lay-outcontainer","pl-PL":"Kontener układu","pt-BR":"Contêiner de layout","ru-RU":"Контейнер макета","sv-SE":"Layoutbehållare","tr-TR":"Düzen kapsayıcısı","zh-CN":"布局容器","zh-TW":"版面配置容器"}},Object_LineChart:{id:"Object.LineChart",locale:{"de-DE":"Liniendiagramm","en-US":"Line chart","es-ES":"Gráfico de líneas","fr-FR":"Graphique en courbes","it-IT":"Grafico lineare","ja-JP":"折れ線グラフ","ko-KR":"꺾은선형 차트","nl-NL":"Lijndiagram","pl-PL":"Wykres liniowy","pt-BR":"Gráfico de linhas","ru-RU":"Линейный график","sv-SE":"Linjediagram","tr-TR":"Çizgi grafik","zh-CN":"折线图","zh-TW":"折線圖"}},Object_Listbox:{id:"Object.Listbox",locale:{"de-DE":"Listbox","en-US":"List box","es-ES":"Cuadro de lista","fr-FR":"Liste de sélection","it-IT":"Casella di elenco","ja-JP":"リスト ボックス","ko-KR":"목록 상자","nl-NL":"Keuzelijst","pl-PL":"Lista wartości","pt-BR":"Lista","ru-RU":"Список","sv-SE":"Listruta","tr-TR":"Liste kutusu","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_Map:{id:"Object.Map",locale:{"de-DE":"Karte","en-US":"Map","es-ES":"Mapa","fr-FR":"Carte","it-IT":"Mappa","ja-JP":"マップ","ko-KR":"맵","nl-NL":"Kaart","pl-PL":"Mapa","pt-BR":"Mapa","ru-RU":"Карта","sv-SE":"Karta","tr-TR":"Harita","zh-CN":"映射","zh-TW":"地圖"}},Object_MekkoChart:{id:"Object.MekkoChart",locale:{"de-DE":"Marimekko-Diagramm","en-US":"Mekko chart","es-ES":"Gráfico Mekko","fr-FR":"Graphique Mekko","it-IT":"Grafico Mekko","ja-JP":"メッコ チャート","ko-KR":"메코 차트","nl-NL":"Mekko-diagram","pl-PL":"Wykres Mekko","pt-BR":"Gráfico Mekko","ru-RU":"Диаграмма Мекко","sv-SE":"Mosaikdiagram","tr-TR":"Mekko grafiği","zh-CN":"玛丽麦高图","zh-TW":"Mekko 圖"}},Object_NavMenu:{id:"Object.NavMenu",locale:{"de-DE":"Navigationsmenü","en-US":"Navigation menu","es-ES":"Menú de navegación","fr-FR":"Menu de navigation","it-IT":"Menu di navigazione","ja-JP":"ナビゲーション メニュー","ko-KR":"탐색 메뉴","nl-NL":"Navigatiemenu","pl-PL":"Menu nawigacji","pt-BR":"Menu de navegação","ru-RU":"Меню навигации","sv-SE":"Navigationsmeny","tr-TR":"Gezinti menüsü","zh-CN":"导航菜单","zh-TW":"導覽功能表"}},Object_NlgChart:{id:"Object.NlgChart",locale:{"de-DE":"NL-Einblicke","en-US":"NL insights","es-ES":"Información en LN","fr-FR":"Informations analytiques NL","it-IT":"Informazioni strategiche NL","ja-JP":"NL インサイト","ko-KR":"NL 통찰력","nl-NL":"NL-inzichten","pl-PL":"Wnioski w języku naturalnym","pt-BR":"Ideias de NL","ru-RU":"Наблюдения на естественном языке","sv-SE":"Insikter på naturligt språk (NL)","tr-TR":"NL içgörüleri","zh-CN":"NL 见解","zh-TW":"自然語言深入資訊"}},Object_PieChart:{id:"Object.PieChart",locale:{"de-DE":"Kreisdiagramm","en-US":"Pie chart","es-ES":"Gráfico de tarta","fr-FR":"Graphique en secteurs","it-IT":"Grafico a torta","ja-JP":"円グラフ","ko-KR":"원형 차트","nl-NL":"Cirkeldiagram","pl-PL":"Wykres kołowy","pt-BR":"Gráfico de pizza","ru-RU":"Круговая диаграмма","sv-SE":"Cirkeldiagram","tr-TR":"Pasta grafik","zh-CN":"饼图","zh-TW":"圓形圖"}},Object_PivotTable:{id:"Object.PivotTable",locale:{"de-DE":"Pivottabelle","en-US":"Pivot table","es-ES":"Tabla dinámica","fr-FR":"Tableau croisé dynamique","it-IT":"Tabella pivot","ja-JP":"ピボット テーブル","ko-KR":"피벗 테이블","nl-NL":"Draaitabel","pl-PL":"Tabela przestawna","pt-BR":"Tabela dinâmica","ru-RU":"Сводная таблица","sv-SE":"Pivottabell","tr-TR":"Pivot tablo","zh-CN":"透视表","zh-TW":"樞紐分析表"}},Object_RadarChart:{id:"Object.RadarChart",locale:{"de-DE":"Netzdiagramm","en-US":"Radar chart","es-ES":"Gráfico de radar","fr-FR":"Diagramme en étoile","it-IT":"Grafico a radar","ja-JP":"レーダー チャート","ko-KR":"방사형 차트","nl-NL":"Radardiagram","pl-PL":"Wykres radarowy","pt-BR":"Gráfico de radar","ru-RU":"Диаграмма Радар","sv-SE":"Radardiagram","tr-TR":"Radar grafiği","zh-CN":"雷达图","zh-TW":"雷達圖"}},Object_SankeyChart:{id:"Object.SankeyChart",locale:{"de-DE":"Sankey-Diagramm","en-US":"Sankey chart","es-ES":"Diagrama de Sankey","fr-FR":"Diagramme de Sankey","it-IT":"Diagramma di Sankey","ja-JP":"サンキー グラフ","ko-KR":"Sankey 차트","nl-NL":"Sankey-diagram","pl-PL":"Wykres Sankeya","pt-BR":"Gráfico de Sankey","ru-RU":"Диаграмма Сэнки","sv-SE":"Sankey-diagram","tr-TR":"Sankey grafiği","zh-CN":"桑基图","zh-TW":"桑基圖"}},Object_ScatterPlot:{id:"Object.ScatterPlot",locale:{"de-DE":"Punktdiagramm","en-US":"Scatter plot","es-ES":"Gráfico de dispersión","fr-FR":"Nuage de points","it-IT":"Grafico a dispersione","ja-JP":"散布図","ko-KR":"스캐터 차트","nl-NL":"Spreidingsplot","pl-PL":"Wykres punktowy","pt-BR":"Plotagem de dispersão","ru-RU":"Точечная диаграмма","sv-SE":"Spridningsdiagram","tr-TR":"Dağılım çizimi","zh-CN":"散点图","zh-TW":"散佈圖"}},Object_StraightTable:{id:"Object.StraightTable",locale:{"de-DE":"Tabellendiagramm","en-US":"Straight table","es-ES":"Tabla simple","fr-FR":"Tableau simple","it-IT":"Tabella lineare","ja-JP":"ストレート テーブル","ko-KR":"일반표","nl-NL":"Strakke tabel","pl-PL":"Tabela prosta","pt-BR":"Tabela estática","ru-RU":"Прямая таблица","sv-SE":"Enkel tabell","tr-TR":"Düz tablo","zh-CN":"垂直表","zh-TW":"直表"}},Object_TabContainer:{id:"Object.TabContainer",locale:{"de-DE":"Registerkarten-Container","en-US":"Tab container","es-ES":"Contenedor de pestañas","fr-FR":"Conteneur d'onglets","it-IT":"Contenitore a schede","ja-JP":"タブ付きコンテナ","ko-KR":"탭 컨테이너","nl-NL":"Tabbladcontainer","pl-PL":"Kontener karty","pt-BR":"Contêiner de guias","ru-RU":"Контейнер вкладок","sv-SE":"Flikbehållare","tr-TR":"Sekme kapsayıcısı","zh-CN":"选项卡容器","zh-TW":"索引標籤容器"}},Object_Table:{id:"Object.Table",locale:{"de-DE":"Tabelle","en-US":"Table","es-ES":"Tabla","fr-FR":"Table","it-IT":"Tabella","ja-JP":"テーブル","ko-KR":"테이블","nl-NL":"Tabel","pl-PL":"Tabela","pt-BR":"Tabela","ru-RU":"Таблица","sv-SE":"Tabell","tr-TR":"Tablo","zh-CN":"表格","zh-TW":"表格"}},Object_Table_Deprecated:{id:"Object.Table.Deprecated",locale:{"de-DE":"Tabelle","en-US":"Table ","es-ES":"Tabla","fr-FR":"Table","it-IT":"Tabella","ja-JP":"テーブル","ko-KR":"테이블","nl-NL":"Tabel","pl-PL":"Tabela","pt-BR":"Tabela","ru-RU":"Таблица","sv-SE":"Tabell","tr-TR":"Tablo","zh-CN":"表格","zh-TW":"表格"}},Object_Text:{id:"Object.Text",locale:{"de-DE":"Text","en-US":"Text","es-ES":"Texto","fr-FR":"Texte","it-IT":"Testo","ja-JP":"テキスト","ko-KR":"텍스트","nl-NL":"Tekst","pl-PL":"Tekst","pt-BR":"Texto","ru-RU":"Текст","sv-SE":"Text","tr-TR":"Metin","zh-CN":"文本","zh-TW":"文字"}},Object_TextImage:{id:"Object.TextImage",locale:{"de-DE":"Text und Bild","en-US":"Text & image","es-ES":"Texto e imagen","fr-FR":"Texte et image","it-IT":"Testo e immagine","ja-JP":"テキストと画像","ko-KR":"텍스트 및 이미지","nl-NL":"Tekst en afbeelding","pl-PL":"Tekst i grafika","pt-BR":"Texto e imagem","ru-RU":"Текст и изображение","sv-SE":"Text och bild","tr-TR":"Metin ve resim","zh-CN":"文本和图片","zh-TW":"文字與影像"}},Object_Treemap:{id:"Object.Treemap",locale:{"de-DE":"Baumkarte","en-US":"Treemap","es-ES":"Gráfico de bloques","fr-FR":"Treemap","it-IT":"Mappa ad albero","ja-JP":"ツリーマップ","ko-KR":"트리맵","nl-NL":"Structuuroverzicht","pl-PL":"Mapa drzewa","pt-BR":"Mapa de árvore","ru-RU":"Карта дерева","sv-SE":"Trädkarta","tr-TR":"Ağaç haritası","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":"資料更新已取消"}},Object_WaterfallChart:{id:"Object.WaterfallChart",locale:{"de-DE":"Wasserfalldiagramm","en-US":"Waterfall chart","es-ES":"Gráfico de cascada","fr-FR":"Graphique en cascade","it-IT":"Grafico a cascata","ja-JP":"ウォーターフォール グラフ","ko-KR":"폭포형 차트","nl-NL":"Watervalgrafiek","pl-PL":"Wykres wodospadowy","pt-BR":"Gráfico em cascata","ru-RU":"Каскадная диаграмма","sv-SE":"Vattenfallsdiagram","tr-TR":"Şelale grafik","zh-CN":"瀑布图","zh-TW":"瀑布圖"}},Retry:{id:"Retry",locale:{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},ScreenReader_ManySearchResults:{id:"ScreenReader.ManySearchResults",locale:{"de-DE":"Es sind {0} Ergebnisse verfügbar","en-US":"There are {0} available results","es-ES":"Hay {0} resultados disponibles","fr-FR":"Il existe {0} résultats disponibles.","it-IT":"{0} risultati disponibili","ja-JP":"利用可能な結果が {0} つあります","ko-KR":"{0}개의 결과를 사용할 수 있음","nl-NL":"Er zijn {0} beschikbare resultaten","pl-PL":"Liczba dostępnych wyników: {0}","pt-BR":"Há {0} resultados disponíveis","ru-RU":"Имеются доступные результаты: {0}","sv-SE":"Det finns {0} tillgängliga resultat","tr-TR":"Kullanılabilir {0} sonuç mevcut","zh-CN":"有 {0} 个可用结果","zh-TW":"有 {0} 個可用的結果"}},ScreenReader_ManySelected:{id:"ScreenReader.ManySelected",locale:{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},ScreenReader_OneSearchResult:{id:"ScreenReader.OneSearchResult",locale:{"de-DE":"Es ist ein Ergebnis verfügbar","en-US":"There is one available result","es-ES":"Hay un resultado disponible","fr-FR":"Il existe un résultat disponible.","it-IT":"Un risultato disponibile","ja-JP":"利用可能な結果が 1 つあります","ko-KR":"하나의 결과를 사용할 수 있음","nl-NL":"Er is één beschikbaar resultaat","pl-PL":"Jest jeden dostępny wynik","pt-BR":"Há um resultado disponível","ru-RU":"Имеется один доступный результат","sv-SE":"Det finns ett tillgängligt resultat","tr-TR":"Kullanılabilir bir sonuç mevcut","zh-CN":"有一个可用结果","zh-TW":"有一個可用的結果"}},ScreenReader_OneSelected:{id:"ScreenReader.OneSelected",locale:{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},ScreenReader_ZeroSelected:{id:"ScreenReader.ZeroSelected",locale:{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},Selection_Cancel:{id:"Selection.Cancel",locale:{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},Selection_Clear:{id:"Selection.Clear",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},Selection_ClearAll:{id:"Selection.ClearAll",locale:{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},Selection_ClearAllStates:{id:"Selection.ClearAllStates",locale:{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},Selection_Confirm:{id:"Selection.Confirm",locale:{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},Selection_Menu:{id:"Selection.Menu",locale:{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":'Меню "Выборка"',"sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},Selection_SelectAll:{id:"Selection.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},Selection_SelectAlternative:{id:"Selection.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},Selection_SelectExcluded:{id:"Selection.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},Selection_SelectPossible:{id:"Selection.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SelectionToolbar_ClickToLock:{id:"SelectionToolbar.ClickToLock",locale:{"de-DE":"Klicken zum Sperren","en-US":"Click to lock","es-ES":"Haga clic para bloquearla","fr-FR":"Cliquez pour verrouiller","it-IT":"Fare clic per bloccare","ja-JP":"クリックしてロック","ko-KR":"클릭하여 잠금","nl-NL":"Klik om te vergrendelen","pl-PL":"Kliknij, aby zablokować","pt-BR":"Clique para bloquear","ru-RU":"Щелкните, чтобы заблокировать","sv-SE":"Klicka för att låsa","tr-TR":"Kilitlemek için tıklayın","zh-CN":"单击以锁定","zh-TW":"按一下以鎖定"}},SelectionToolbar_ClickToUnlock:{id:"SelectionToolbar.ClickToUnlock",locale:{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},Visualization_Incomplete:{id:"Visualization.Incomplete",locale:{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},Visualization_Incomplete_Dimensions:{id:"Visualization.Incomplete.Dimensions",locale:{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},Visualization_Incomplete_Measures:{id:"Visualization.Incomplete.Measures",locale:{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},Visualization_Invalid_Dimension:{id:"Visualization.Invalid.Dimension",locale:{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},Visualization_Invalid_Measure:{id:"Visualization.Invalid.Measure",locale:{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},Visualization_LayoutError:{id:"Visualization.LayoutError",locale:{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},Visualization_UnfulfilledCalculationCondition:{id:"Visualization.UnfulfilledCalculationCondition",locale:{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}};function R(e){const t=E({initial:e});return Object.keys(_).forEach((e=>{t.translator.add(_[e])})),{translator:t.translator}}var L=function(){if(C)return k;C=1;var e={};function t(){t.init.call(this)}return e.isObject=function(e){return"object"==typeof e&&null!==e},e.isNumber=function(e){return"number"==typeof e},e.isUndefined=function(e){return void 0===e},e.isFunction=function(e){return"function"==typeof e},k=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,i,a,l;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];for(o=(l=r.slice()).length,a=0;a<o;a++)l[a].apply(this,i)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,i,a;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(a=i;a-- >0;)if(r[a]===n||r[a].listener&&r[a].listener===n){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},k}(),O=r(L);function I(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function T(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function P(){}var M,N,D=.7,q=1/D,A="\\s*([+-]?\\d+)\\s*",z="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",j="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",F=/^#([0-9a-f]{3,8})$/,$=new RegExp(`^rgb\\(${A},${A},${A}\\)$`),B=new RegExp(`^rgb\\(${j},${j},${j}\\)$`),W=new RegExp(`^rgba\\(${A},${A},${A},${z}\\)$`),U=new RegExp(`^rgba\\(${j},${j},${j},${z}\\)$`),H=new RegExp(`^hsl\\(${z},${j},${j}\\)$`),V=new RegExp(`^hsla\\(${z},${j},${j},${z}\\)$`),G={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 K(){return this.rgb().formatHex()}function Z(){return this.rgb().formatRgb()}function J(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=F.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?X(t):3===n?new ee(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Q(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Q(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=$.exec(e))?new ee(t[1],t[2],t[3],1):(t=B.exec(e))?new ee(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=W.exec(e))?Q(t[1],t[2],t[3],t[4]):(t=U.exec(e))?Q(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=H.exec(e))?ae(t[1],t[2]/100,t[3]/100,1):(t=V.exec(e))?ae(t[1],t[2]/100,t[3]/100,t[4]):G.hasOwnProperty(e)?X(G[e]):"transparent"===e?new ee(NaN,NaN,NaN,0):null}function X(e){return new ee(e>>16&255,e>>8&255,255&e,1)}function Q(e,t,n,r){return r<=0&&(e=t=n=NaN),new ee(e,t,n,r)}function Y(e,t,n,r){return 1===arguments.length?function(e){return e instanceof P||(e=J(e)),e?new ee((e=e.rgb()).r,e.g,e.b,e.opacity):new ee}(e):new ee(e,t,n,null==r?1:r)}function ee(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function te(){return`#${ie(this.r)}${ie(this.g)}${ie(this.b)}`}function ne(){const e=re(this.opacity);return`${1===e?"rgb(":"rgba("}${oe(this.r)}, ${oe(this.g)}, ${oe(this.b)}${1===e?")":`, ${e})`}`}function re(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function oe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ie(e){return((e=oe(e))<16?"0":"")+e.toString(16)}function ae(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new se(e,t,n,r)}function le(e){if(e instanceof se)return new se(e.h,e.s,e.l,e.opacity);if(e instanceof P||(e=J(e)),!e)return new se;if(e instanceof se)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 se(a,l,s,e.opacity)}function se(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ce(e){return(e=(e||0)%360)<0?e+360:e}function ue(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)}I(P,J,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:K,formatHex:K,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return le(this).formatHsl()},formatRgb:Z,toString:Z}),I(ee,Y,T(P,{brighter(e){return e=null==e?q:Math.pow(q,e),new ee(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?D:Math.pow(D,e),new ee(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ee(oe(this.r),oe(this.g),oe(this.b),re(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:te,formatHex:te,formatHex8:function(){return`#${ie(this.r)}${ie(this.g)}${ie(this.b)}${ie(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ne,toString:ne})),I(se,(function(e,t,n,r){return 1===arguments.length?le(e):new se(e,t,n,null==r?1:r)}),T(P,{brighter(e){return e=null==e?q:Math.pow(q,e),new se(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?D:Math.pow(D,e),new se(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new ee(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 se(ce(this.h),ue(this.s),ue(this.l),re(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=re(this.opacity);return`${1===e?"hsl(":"hsla("}${ce(this.h)}, ${100*ue(this.s)}%, ${100*ue(this.l)}%${1===e?")":`, ${e})`}`}}));var fe=function(){if(N)return M;N=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return M=function e(){var t,n,r,s,c,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(s=l(t,n))&&(h&&s&&(i(s)||(c=o(s)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,s)})):void 0!==s&&a(d,{name:n,newValue:s}));return d},M}(),pe=r(fe),he={fontSize:"12px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},object:{title:{main:{color:"@B50",fontSize:"15px",backgroundColor:"transparent"},subTitle:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"},footer:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"}}},scales:[{name:"Sequential Gradient",translation:"properties.colorScheme.sequential",type:"gradient",propertyValue:"sg",scale:["#26a0a7","#c7ea8b"]},{name:"Sequential Classes",translation:"properties.colorScheme.sequentialC",propertyValue:"sc",type:"class",scale:["#26a0a7","#c7ea8b"]},{name:"Diverging gradient",translation:"properties.colorScheme.diverging",propertyValue:"dg",type:"gradient",scale:["#26a0a7","#c3ea8c","#ec983d"]},{name:"Diverging Classes",translation:"properties.colorScheme.divergingC",propertyValue:"dc",type:"class",scale:["#26a0a7","#c3ea8c","#ec983d"]}],palettes:{data:[{name:"12 Colors",translation:"properties.colorNumberOfColors.12",propertyValue:"12",type:"pyramid",scale:[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],ui:[{name:"Palette",colors:["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}},me={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"light",color:"@B35"},ge={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"dark",color:"@B98",object:{listBox:{backgroundColor:"@B20",title:{main:{color:"@B98",fontSize:"14px",fontWeight:"bold"}},content:{color:"#@B98",fontSize:"12px"}}}},ve={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};const be={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},ye=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,xe=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,Se=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,we=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,Ee=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,ke=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:Ce}=Math,{round:_e}=Math;class Re{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r,o,i,a,l,s,c,u,d,f,p,h,m=0,g=0,v=0,b=1;if(this._invalid=!1,t[0]instanceof Re)m=t[0]._r,g=t[0]._g,v=t[0]._b,b=t[0]._a,this._invalid=t[0]._invalid;else if(t.length<3)if("string"==typeof t[0])if(h=t[0],p=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))m=parseInt(p[1],10),g=parseInt(p[2],10),v=parseInt(p[3],10);else if(p=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(h))m=parseInt(p[1],10),g=parseInt(p[2],10),v=parseInt(p[3],10),b=parseFloat(p[4]);else if(p=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))b=parseInt(p[1],10)/255,m=parseInt(p[2],10),g=parseInt(p[3],10),v=parseInt(p[4],10);else if(p=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(h))m=parseInt(p[1],16),g=parseInt(p[2],16),v=parseInt(p[3],16),b=1;else if(p=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(h))m=parseInt(p[1]+p[1],16),g=parseInt(p[2]+p[2],16),v=parseInt(p[3]+p[3],16),b=1;else if(p=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(p[1]),o=parseFloat(p[3]),a=parseFloat(p[5]),r%=360,o/=100,a/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,a=a<0?0:a>1?1:a,s=a<=.5?2*a*o:(2-2*a)*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}f=a-.5*s,m=d[0]+f,g=d[1]+f,v=d[2]+f,m=_e(255*m),g=_e(255*g),v=_e(255*v),b=1}else if(p=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(h)){switch(r=parseFloat(p[1]),o=parseFloat(p[3]),a=parseFloat(p[5]),b=parseFloat(p[7]),r%=360,o/=100,a/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,a=a<0?0:a>1?1:a,s=a<=.5?2*a*o:(2-2*a)*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}f=a-.5*s,m=d[0]+f,g=d[1]+f,v=d[2]+f,m=_e(255*m),g=_e(255*g),v=_e(255*v)}else if(p=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(p[1]),o=parseFloat(p[3]),l=parseFloat(p[5]),r%=360,o/=100,l/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,l=l<0?0:l>1?1:l,s=l*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}f=l-s,m=d[0]+f,g=d[1]+f,v=d[2]+f,m=_e(255*m),g=_e(255*g),v=_e(255*v),b=1}else be[h.toLowerCase()]?(i=h.toLowerCase(),m=be[i].r,g=be[i].g,v=be[i].b,b="number"==typeof be[i].a?be[i].a:1):this._invalid=!0;else"number"==typeof t[0]&&t[0]>=0&&"argb"===t[1]?(b=(4278190080&t[0])>>>24,b/=255,m=(16711680&t[0])>>16,g=(65280&t[0])>>8,v=255&t[0]):"number"==typeof t[0]&&t[0]>=0?(m=(16711680&t[0])>>16,g=(65280&t[0])>>8,v=255&t[0]):this._invalid=!0;else t.length>=3?(m=t[0],g=t[1],v=t[2],b=arguments.length>=4?t[3]:1):this._invalid=!0;Number.isNaN(+m+g+v+b)&&(this._invalid=!0),this._r=Ce(m),this._g=Ce(g),this._b=Ce(v),this._a=b,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=Re.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=Re.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=Re.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=Re.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=Re.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=Re.toHSLA(this,e)),this._spaces.hsla}toHSV(){const e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=Re.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=Re.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(e){const t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]);let i=parseFloat(n[5]);const a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}isEqual(e){return e instanceof Re||(e=new Re(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){const n=Ce(this._r+(e._r-this._r)*t),r=Ce(this._g+(e._g-this._g)*t),o=Ce(this._b+(e._b-this._b)*t),i=Ce(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),n=this._g<126?1:1+this._g/512,r=this.shiftLuminance(20*(t*n<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new Re(r)}static toRGB(e){if(e instanceof Re)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=Re.toNumber(e));const t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")}static toRGBA(e,t){if(e instanceof Re)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=Re.toNumber(e));const n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")}static toHex(e){let t,n,r;return e instanceof Re?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=Re.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))}static toHSL(e,t){let n,r,o,i=0;"string"==typeof e&&(e=new Re(e));const a=e._r/255,l=e._g/255,s=e._b/255,c=Math.max(a,l,s),u=Math.min(a,l,s);if(r=t?.21*a+.72*l+.07*s:(c+u)/2,c===u)n=0,i=0;else{switch(o=c-u,n=r>.5?o/(2-c-u):o/(c+u),c){case a:i=(l-s)/o+(l<s?6:0);break;case l:i=(s-a)/o+2;break;case s:i=(a-l)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")}static toHSLA(e,t){let n,r,o,i=0;"string"==typeof e&&(e=new Re(e));const a=e._r/255,l=e._g/255,s=e._b/255,c=e._a,u=Math.max(a,l,s),d=Math.min(a,l,s);if(r=t?.21*a+.72*l+.07*s:(u+d)/2,u===d)n=0,i=0;else{switch(o=u-d,n=r>.5?o/(2-u-d):o/(u+d),u){case a:i=(l-s)/o+(l<s?6:0);break;case l:i=(s-a)/o+2;break;case s:i=(a-l)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(c,")")}static toHSVComponents(e){let t,n,r=0;"string"==typeof e&&(e=new Re(e));const o=e._r/255,i=e._g/255,a=e._b/255,l=Math.max(o,i,a),s=Math.min(o,i,a),c=l;if(l===s)t=0,r=0;else{switch(n=l-s,t=0===n?0:n/c,l){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}static toNumber(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length&&t[0]instanceof Re)return(t[0]._r<<16)+(t[0]._g<<8)+t[0]._b;let r,o,i=0,a=0,l=0;return 1===t.length&&"string"==typeof t[0]&&(o=t[0],(r=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(o))?(i=parseInt(r[1],10),a=parseInt(r[2],10),l=parseInt(r[3],10)):(r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(o))?(i=parseInt(r[1],16),a=parseInt(r[2],16),l=parseInt(r[3],16)):(r=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(o))&&(i=parseInt(r[1]+r[1],16),a=parseInt(r[2]+r[2],16),l=parseInt(r[3]+r[3],16))),(i<<16)+(a<<8)+l}static blend(e,t,n){const r=(16711680&(e=Re.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=Re.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)}static getBlend(e,t,n){const r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new Re(r,o,i,a)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(ye.test(e)||xe.test(e)||Se.test(e)||we.test(e)||Ee.test(e)||ke.test(e)||be[e.toLowerCase()])}static getBestContrast(e,t,n){const r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n}static getContrast(e,t){if(!e||!t)return;const n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}static isDark(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Re(...t).isDark(...t)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}class Le{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=J(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([J(e),J(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 Y(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 Oe(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Ie(e,t,n){const r=[],o=new Le(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 Te(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=Oe(1/t*o,t,n);i=e.getColor(r);break}}r.push(J(i).formatHex())}return r}function Pe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#d2d2d2";e.forEach((e=>{if("class"===e.type){const n=function(e,t,n){const r=Ie(e,n,!0),o=Ie(Te(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(Te(o,e,t));return i}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function Me(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 Ne(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 De(e,t,n,r){let o;if(""===e)o=Me(null,n);else{o=Me(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=Ne(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function qe(e,t){const n=e.split(".");return{getStyle:(e,r)=>De(e,r,n.concat(),t)}}function Ae(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?Ae(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function ze(e){const t=J(e);if(!t)return 0;const{r:n,g:r,b:o}=t.rgb(),[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)}qe.resolveRawTheme=e=>{const t=pe(!0,{},e);return Ae(t,t._variables),t.scales&&Pe(t.scales,t.dataColors&&t.dataColors.nullColor),t};const je=1e3;function Fe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(ze);return{getBestContrastColor(o){if(!t[o]){n>je&&(t={},n=0);const i=ze(o),a=r.map((e=>{return t=i,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),l=e[a.indexOf(Math.max(...a))];t[o]=l,n++}return t[o]}}}function $e(){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]=qe(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=J(...arguments);return n?n.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?ge:me;let r=ve;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=pe(!0,{},he,r,n),i=pe(!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,qe.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=>{const n=e.colors&&"none"!==e.colors[0]?["none",...e.colors]:e.colors;t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:n||[]})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e){const n="number"==typeof(null==e?void 0:e.index)&&!Number.isNaN(null==e?void 0:e.index),r="string"==typeof(null==e?void 0:e.color);if(!n&&!r)return;const o=(()=>(null==e?void 0:e.index)<0||void 0===(null==e?void 0:e.index)?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index]?e.color:t.colors[e.index]:e.color))();if(void 0===e.alpha||e.alpha>=1||e.alpha<0)return o;const i=new Re(o);return i.setAlpha(e.alpha),i.isInvalid()?o:i.toRGBA()}}}(e);const l=o.getStyle("","","color"),s=ze(l);n=Fe([l,s<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(O.prototype).forEach((e=>{o[e]=O.prototype[e]})),O.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const Be=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),We=5e3;function Ue(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 He,Ve,Ge,Ke,Ze,Je={},Xe={exports:{}},Qe={},Ye={exports:{}},et={};function tt(){return Ve||(Ve=1,Ye.exports=(He||(He=1,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,f=3,p=!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,P(S);else{var t=n(c);null!==t&&M(x,t.startTime-e)}}function S(t,o){h=!1,m&&(m=!1,v(C),C=-1),p=!0;var i=f;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!L());){var a=d.callback;if("function"==typeof a){d.callback=null,f=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&&M(x,g.startTime-o),u=!1}return u}finally{d=null,f=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,E=!1,k=null,C=-1,_=5,R=-1;function L(){return!(e.unstable_now()-R<_)}function O(){if(null!==k){var t=e.unstable_now();R=t;var n=!0;try{n=k(!0,t)}finally{n?w():(E=!1,k=null)}}else E=!1}if("function"==typeof b)w=function(){b(O)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,T=I.port2;I.port1.onmessage=O,w=function(){T.postMessage(null)}}else w=function(){g(O,0)};function P(e){k=e,E||(E=!0,w())}function M(t,n){C=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||p||(h=!0,P(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"):_=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=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=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<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(C),C=-1):m=!0,M(x,i-a))):(r.sortIndex=l,t(s,r),h||p||(h=!0,P(S))),r},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(et)),et)),Ye.exports}
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)}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var i,a={exports:{}};function l(e){var t,n,r,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);o--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new s(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function s(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return s=function(e){this.s=e,this.n=e.next},s.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new s(e)}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(null,arguments)}function d(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}i||(i=1,function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new I(r||[]);return o(a,"_invoke",{value:_(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 f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function v(){}function b(){}function y(){}var x={};c(x,a,(function(){return this}));var S=Object.getPrototypeOf,w=S&&S(S(T([])));w&&w!==n&&r.call(w,a)&&(x=w);var E=y.prototype=v.prototype=Object.create(x);function k(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 _(e,n,r){var o=f;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=R(l,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function R(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,R(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function 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(null!=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}}throw new TypeError(typeof e+" is not iterable")}return b.prototype=y,o(E,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},k(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()}))},k(E),c(E,s,"Generator"),c(E,a,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,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,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;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),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(a));var h,m,g={exports:{}},v={};function b(){if(h)return v;h=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}g.prototype.isReactComponent={},g.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")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=g.prototype;var x=y.prototype=new b;x.constructor=y,p(x,g.prototype),x.isPureReactComponent=!0;var S=Array.isArray,w=Object.prototype.hasOwnProperty,E={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function C(t,n,r){var o,i={},a=null,l=null;if(null!=n)for(o in void 0!==n.ref&&(l=n.ref),void 0!==n.key&&(a=""+n.key),n)w.call(n,o)&&!k.hasOwnProperty(o)&&(i[o]=n[o]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];i.children=c}if(t&&t.defaultProps)for(o in s=t.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:e,type:t,key:a,ref:l,props:i,_owner:E.current}}function _(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var R=/\/+/g;function L(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 O(n,r,o,i,a){var l=typeof n;"undefined"!==l&&"boolean"!==l||(n=null);var s=!1;if(null===n)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(n.$$typeof){case e:case t:s=!0}}if(s)return a=a(s=n),n=""===i?"."+L(s,0):i,S(a)?(o="",null!=n&&(o=n.replace(R,"$&/")+"/"),O(a,r,o,"",(function(e){return e}))):null!=a&&(_(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(R,"$&/")+"/")+n)),r.push(a)),1;if(s=0,i=""===i?".":i+":",S(n))for(var c=0;c<n.length;c++){var u=i+L(l=n[c],c);s+=O(l,r,o,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(n),"function"==typeof u)for(n=u.call(n),c=0;!(l=n.next()).done;)s+=O(l=l.value,r,o,u=i+L(l,c++),a);else if("object"===l)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return s}function I(e,t,n){if(null==e)return e;var r=[],o=0;return O(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function T(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 P={current:null},M={transition:null},q={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:M,ReactCurrentOwner:E};function D(){throw Error("act(...) is not supported in production builds of React.")}return v.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},v.Component=g,v.Fragment=n,v.Profiler=o,v.PureComponent=y,v.StrictMode=r,v.Suspense=s,v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,v.act=D,v.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=p({},t.props),i=t.key,a=t.ref,l=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,l=E.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(c in n)w.call(n,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===n[c]&&void 0!==s?s[c]:n[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];o.children=s}return{$$typeof:e,type:t.type,key:i,ref:a,props:o,_owner:l}},v.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},v.createElement=C,v.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},v.createRef=function(){return{current:null}},v.forwardRef=function(e){return{$$typeof:l,render:e}},v.isValidElement=_,v.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:T}},v.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},v.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},v.unstable_act=D,v.useCallback=function(e,t){return P.current.useCallback(e,t)},v.useContext=function(e){return P.current.useContext(e)},v.useDebugValue=function(){},v.useDeferredValue=function(e){return P.current.useDeferredValue(e)},v.useEffect=function(e,t){return P.current.useEffect(e,t)},v.useId=function(){return P.current.useId()},v.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},v.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},v.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},v.useMemo=function(e,t){return P.current.useMemo(e,t)},v.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},v.useRef=function(e){return P.current.useRef(e)},v.useState=function(e){return P.current.useState(e)},v.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},v.useTransition=function(){return P.current.useTransition()},v.version="18.3.1",v}function y(){return m||(m=1,g.exports=b()),g.exports}var x=y(),S=r(x),w=t({__proto__:null,default:S},[x]);const E=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={};let r=e;const o={language:e=>(e&&(r=e),r),add:e=>{const{id:t,locale:r}=e;Object.keys(r).forEach((e=>{n[e]||(n[e]={}),n[e][t]=r[e]}))},get(e,o){let i;return i=n[r]&&void 0!==n[r][e]?n[r][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const t="string"==typeof e||"number"==typeof e?[e]:e;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/\{(\d+)\}/g,((e,n)=>void 0!==t[n]?t[n]:e))}(i,o):i}};return o}({initial:e,fallback:t});return{translator:n}};var k,C,_={Accessibility_Object_NoTitle:{id:"Accessibility.Object.NoTitle",locale:{"de-DE":"Kein Titel","en-US":"No title","es-ES":"Sin título","fr-FR":"Pas de titre","it-IT":"Nessun titolo","ja-JP":"タイトルなし","ko-KR":"제목 없음","nl-NL":"Geen titel","pl-PL":"Brak tytułu","pt-BR":"Sem título","ru-RU":"Без заголовка","sv-SE":"Ingen rubrik","tr-TR":"Başlık yok","zh-CN":"无标题","zh-TW":"無標題"}},Cancel:{id:"Cancel",locale:{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},CurrentSelections_All:{id:"CurrentSelections.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},CurrentSelections_Of:{id:"CurrentSelections.Of",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},Listbox_Clear_Search:{id:"Listbox.Clear.Search",locale:{"de-DE":"Suche löschen","en-US":"Clear search","es-ES":"Borrar búsqueda","fr-FR":"Effacer la recherche","it-IT":"Cancella ricerca","ja-JP":"検索をクリア","ko-KR":"검색 지우기","nl-NL":"Zoekopdracht wissen","pl-PL":"Wyczyść wyszukiwanie","pt-BR":"Limpar pesquisa","ru-RU":"Очистить поиск","sv-SE":"Radera sökning","tr-TR":"Aramayı temizle","zh-CN":"清除搜索","zh-TW":"清除搜尋"}},Listbox_Cyclic:{id:"Listbox.Cyclic",locale:{"de-DE":"Zyklische Dimension","en-US":"Cyclic dimension","es-ES":"Dimensión cíclica","fr-FR":"Dimension cyclique","it-IT":"Dimensione ciclica","ja-JP":"サイクリック軸","ko-KR":"순환 차원","nl-NL":"Cyclische dimensie","pl-PL":"Wymiar cykliczny","pt-BR":"Dimensão cíclica","ru-RU":"Циклическое измерение","sv-SE":"Cyklisk dimension","tr-TR":"Döngüsel boyut","zh-CN":"循环维度","zh-TW":"循環維度"}},Listbox_Dismiss:{id:"Listbox.Dismiss",locale:{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},Listbox_DrillDown:{id:"Listbox.DrillDown",locale:{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"钻取维度","zh-TW":"向下探查維度"}},Listbox_ItemsOverflow:{id:"Listbox.ItemsOverflow",locale:{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},Listbox_Lock:{id:"Listbox.Lock",locale:{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},Listbox_NoMatchesForYourTerms:{id:"Listbox.NoMatchesForYourTerms",locale:{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},Listbox_ResultFilterLabel:{id:"Listbox.ResultFilterLabel",locale:{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},Listbox_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},Listbox_ScreenReader_SelectionMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},Listbox_ScreenReaderInstructions:{id:"Listbox.ScreenReaderInstructions",locale:{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L'attivazione degli elementi sottostanti causerà l'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},Listbox_Search:{id:"Listbox.Search",locale:{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},Listbox_Search_ScreenReaderInstructions:{id:"Listbox.Search.ScreenReaderInstructions",locale:{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},Listbox_Unlock:{id:"Listbox.Unlock",locale:{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},Menu_More:{id:"Menu.More",locale:{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},Navigate_Back:{id:"Navigate.Back",locale:{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},Navigate_Forward:{id:"Navigate.Forward",locale:{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},OK:{id:"OK",locale:{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},Object_ActionButton:{id:"Object.ActionButton",locale:{"de-DE":"Schaltfläche","en-US":"Button","es-ES":"Botón","fr-FR":"Bouton","it-IT":"Pulsante","ja-JP":"ボタン","ko-KR":"버튼","nl-NL":"Knop","pl-PL":"Przycisk","pt-BR":"Botão","ru-RU":"Кнопка","sv-SE":"Knapp","tr-TR":"Düğme","zh-CN":"按钮","zh-TW":"按鈕"}},Object_AutoChart:{id:"Object.AutoChart",locale:{"de-DE":"Automatisches Diagramm","en-US":"Autochart","es-ES":"Gráfico automático","fr-FR":"Graphique automatique","it-IT":"Grafico automatico","ja-JP":"オートチャート","ko-KR":"자동 차트","nl-NL":"Automatisch diagram","pl-PL":"Automatyczny wykres","pt-BR":"Gráfico automático","ru-RU":"Автодиаграмма","sv-SE":"Automatiskt diagram","tr-TR":"Otomatik grafik","zh-CN":"自动图表","zh-TW":"自動圖表"}},Object_BarChart:{id:"Object.BarChart",locale:{"de-DE":"Balkendiagramm","en-US":"Bar chart","es-ES":"Gráfico de barras","fr-FR":"Graphique en barres","it-IT":"Grafico a barre","ja-JP":"棒グラフ","ko-KR":"막대형 차트","nl-NL":"Staafdiagram","pl-PL":"Wykres słupkowy","pt-BR":"Gráfico de barras","ru-RU":"Линейчатая диаграмма","sv-SE":"Stapeldiagram","tr-TR":"Sütun grafik","zh-CN":"条形图","zh-TW":"長條圖"}},Object_BoxPlot:{id:"Object.BoxPlot",locale:{"de-DE":"Boxplot","en-US":"Box plot","es-ES":"Diagrama de caja","fr-FR":"Boîte à moustaches","it-IT":"Box plot","ja-JP":"ボックス プロット","ko-KR":"상자 그림","nl-NL":"Boxplot","pl-PL":"Wykres pudełkowy","pt-BR":"Plotagem de caixa","ru-RU":"Блочная диаграмма","sv-SE":"Lådagram","tr-TR":"Kutu çizimi","zh-CN":"框图","zh-TW":"盒狀圖"}},Object_BulletChart:{id:"Object.BulletChart",locale:{"de-DE":"Bullet-Diagramm","en-US":"Bullet chart","es-ES":"Gráfico de viñetas","fr-FR":"Graphique à puces","it-IT":"Grafico bullet","ja-JP":"ブレット チャート","ko-KR":"글머리 기호 차트","nl-NL":"Bulletgrafiek","pl-PL":"Wykres pociskowy","pt-BR":"Quadro comparativo","ru-RU":"Диаграмма Буллет","sv-SE":"Nyansdiagram","tr-TR":"Madde imli grafik","zh-CN":"子弹图","zh-TW":"子彈圖"}},Object_ComboChart:{id:"Object.ComboChart",locale:{"de-DE":"Kombi-Diagramm","en-US":"Combo chart","es-ES":"Gráfico combinado","fr-FR":"Graphique combiné","it-IT":"Grafico combinato","ja-JP":"コンボ チャート","ko-KR":"콤보 차트","nl-NL":"Combinatiegrafiek","pl-PL":"Wykres kombi","pt-BR":"Gráfico de combinação","ru-RU":"Комбинированная диаграмма","sv-SE":"Kombinationsdiagram","tr-TR":"Birleşik grafik","zh-CN":"组合图","zh-TW":"組合圖"}},Object_Container:{id:"Object.Container",locale:{"de-DE":"Sammelbox","en-US":"Container","es-ES":"Contenedor","fr-FR":"Conteneur","it-IT":"Contenitore","ja-JP":"コンテナー","ko-KR":"컨테이너","nl-NL":"Container","pl-PL":"Kontener","pt-BR":"Contêiner","ru-RU":"Контейнер","sv-SE":"Behållare","tr-TR":"Kapsayıcı","zh-CN":"容器","zh-TW":"容器"}},Object_DistributionPlot:{id:"Object.DistributionPlot",locale:{"de-DE":"Verteilungsdiagramm","en-US":"Distribution plot","es-ES":"Diagrama de distribución","fr-FR":"Diagramme de distribution","it-IT":"Grafico di distribuzione","ja-JP":"分布プロット","ko-KR":"분포도","nl-NL":"Verdelingsplot","pl-PL":"Wykres rozkładu","pt-BR":"Gráfico de distribuição","ru-RU":"График распределения","sv-SE":"Fördelningsdiagram","tr-TR":"Dağılım grafiği","zh-CN":"分布图","zh-TW":"分佈圖"}},Object_FilterLabel_All:{id:"Object.FilterLabel.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUT","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKIE","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},Object_FilterLabel_Exclude:{id:"Object.FilterLabel.Exclude",locale:{"de-DE":"NICHT","en-US":"NOT","es-ES":"NO","fr-FR":"EXCLURE","it-IT":"NON","ja-JP":"除外","ko-KR":"제외","nl-NL":"NIET","pl-PL":"NIE","pt-BR":"NÃO","ru-RU":"НЕ","sv-SE":"INTE","tr-TR":"DEĞİL","zh-CN":"非","zh-TW":"不是"}},Object_FilterLabel_Unknown:{id:"Object.FilterLabel.Unknown",locale:{"de-DE":"Unbekannt","en-US":"Unknown","es-ES":"Desconocido","fr-FR":"Inconnu","it-IT":"Sconosciuto","ja-JP":"不明","ko-KR":"알 수 없음","nl-NL":"Onbekend","pl-PL":"Nieznany","pt-BR":"Desconhecido","ru-RU":"Неизвестный","sv-SE":"Okänt","tr-TR":"Bilinmiyor","zh-CN":"未知","zh-TW":"未知"}},Object_FilterPane:{id:"Object.FilterPane",locale:{"de-DE":"Filterfenster","en-US":"Filter pane","es-ES":"Panel de filtrado","fr-FR":"Panneau de filtre","it-IT":"Casella di filtro","ja-JP":"フィルター パネル","ko-KR":"필터 창","nl-NL":"Filtervak","pl-PL":"Panel filtrowania","pt-BR":"Painel de filtro","ru-RU":"Фильтр","sv-SE":"Filterruta","tr-TR":"Filtre bölmesi","zh-CN":"筛选器窗格","zh-TW":"篩選窗格"}},Object_FiltersApplied:{id:"Object.FiltersApplied",locale:{"de-DE":"Angewendete Filter:","en-US":"Filters applied:","es-ES":"Filtros aplicados:","fr-FR":"Filtres appliqués :","it-IT":"Filtri applicati:","ja-JP":"適用されているフィルター:","ko-KR":"적용된 필터:","nl-NL":"Toegepaste filters:","pl-PL":"Zastosowane filtry:","pt-BR":"Filtros aplicados:","ru-RU":"Примененные фильтры:","sv-SE":"Använda filter:","tr-TR":"Uygulanan filtreler:","zh-CN":"应用的筛选器:","zh-TW":"篩選器已套用:"}},Object_FunnelChart:{id:"Object.FunnelChart",locale:{"de-DE":"Trichterdiagramm","en-US":"Funnel chart","es-ES":"Gráfico de embudo","fr-FR":"Graphique en entonnoir","it-IT":"Grafico a imbuto","ja-JP":"ファネル チャート","ko-KR":"깔때기형 차트","nl-NL":"Trechterdiagram","pl-PL":"Wykres lejkowy","pt-BR":"Gráfico de funil","ru-RU":"Диаграмма Воронка","sv-SE":"Trattdiagram","tr-TR":"Huni grafik","zh-CN":"漏斗图","zh-TW":"漏斗圖"}},Object_Gauge:{id:"Object.Gauge",locale:{"de-DE":"Messzeiger","en-US":"Gauge","es-ES":"Indicador","fr-FR":"Jauge","it-IT":"Misuratore","ja-JP":"ゲージ","ko-KR":"게이지","nl-NL":"Meter","pl-PL":"Miernik","pt-BR":"Mostrador","ru-RU":"Датчик","sv-SE":"Mätare","tr-TR":"Gösterge","zh-CN":"仪表","zh-TW":"量表"}},Object_GridChart:{id:"Object.GridChart",locale:{"de-DE":"Matrixdiagramm","en-US":"Grid chart","es-ES":"Gráfico de cuadrícula","fr-FR":"Bulles","it-IT":"Grafico a griglia","ja-JP":"グリッド チャート","ko-KR":"그리드형 차트","nl-NL":"Rasterdiagram","pl-PL":"Wykres siatkowy","pt-BR":"Gráfico de grade","ru-RU":"Сетчатая диаграмма","sv-SE":"Rutnätsdiagram","tr-TR":"Izgara grafik","zh-CN":"网格图","zh-TW":"格線圖"}},Object_Histogram:{id:"Object.Histogram",locale:{"de-DE":"Histogramm","en-US":"Histogram","es-ES":"Histograma","fr-FR":"Histogramme","it-IT":"Istogramma","ja-JP":"ヒストグラム","ko-KR":"히스토그램","nl-NL":"Histogram","pl-PL":"Histogram","pt-BR":"Histograma","ru-RU":"Гистограмма","sv-SE":"Histogram","tr-TR":"Histogram","zh-CN":"直方图","zh-TW":"色階分佈圖"}},Object_Kpi:{id:"Object.Kpi",locale:{"de-DE":"KPI","en-US":"KPI","es-ES":"KPI","fr-FR":"ICP","it-IT":"KPI","ja-JP":"KPI","ko-KR":"KPI","nl-NL":"KPI","pl-PL":"Wskaźnik KPI","pt-BR":"KPI","ru-RU":"Ключевой показатель эффективности","sv-SE":"KPI (nyckeltal)","tr-TR":"KPI","zh-CN":"KPI","zh-TW":"KPI"}},Object_LayoutContainer:{id:"Object.LayoutContainer",locale:{"de-DE":"Layout-Sammelbox","en-US":"Layout container","es-ES":"Contenedor de diseño","fr-FR":"Conteneur de disposition","it-IT":"Contenitore layout","ja-JP":"レイアウト コンテナ","ko-KR":"레이아웃 컨테이너","nl-NL":"Lay-outcontainer","pl-PL":"Kontener układu","pt-BR":"Contêiner de layout","ru-RU":"Контейнер макета","sv-SE":"Layoutbehållare","tr-TR":"Düzen kapsayıcısı","zh-CN":"布局容器","zh-TW":"版面配置容器"}},Object_LineChart:{id:"Object.LineChart",locale:{"de-DE":"Liniendiagramm","en-US":"Line chart","es-ES":"Gráfico de líneas","fr-FR":"Graphique en courbes","it-IT":"Grafico lineare","ja-JP":"折れ線グラフ","ko-KR":"꺾은선형 차트","nl-NL":"Lijndiagram","pl-PL":"Wykres liniowy","pt-BR":"Gráfico de linhas","ru-RU":"Линейный график","sv-SE":"Linjediagram","tr-TR":"Çizgi grafik","zh-CN":"折线图","zh-TW":"折線圖"}},Object_Listbox:{id:"Object.Listbox",locale:{"de-DE":"Listbox","en-US":"List box","es-ES":"Cuadro de lista","fr-FR":"Liste de sélection","it-IT":"Casella di elenco","ja-JP":"リスト ボックス","ko-KR":"목록 상자","nl-NL":"Keuzelijst","pl-PL":"Lista wartości","pt-BR":"Lista","ru-RU":"Список","sv-SE":"Listruta","tr-TR":"Liste kutusu","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_Map:{id:"Object.Map",locale:{"de-DE":"Karte","en-US":"Map","es-ES":"Mapa","fr-FR":"Carte","it-IT":"Mappa","ja-JP":"マップ","ko-KR":"맵","nl-NL":"Kaart","pl-PL":"Mapa","pt-BR":"Mapa","ru-RU":"Карта","sv-SE":"Karta","tr-TR":"Harita","zh-CN":"映射","zh-TW":"地圖"}},Object_MekkoChart:{id:"Object.MekkoChart",locale:{"de-DE":"Marimekko-Diagramm","en-US":"Mekko chart","es-ES":"Gráfico Mekko","fr-FR":"Graphique Mekko","it-IT":"Grafico Mekko","ja-JP":"メッコ チャート","ko-KR":"메코 차트","nl-NL":"Mekko-diagram","pl-PL":"Wykres Mekko","pt-BR":"Gráfico Mekko","ru-RU":"Диаграмма Мекко","sv-SE":"Mosaikdiagram","tr-TR":"Mekko grafiği","zh-CN":"玛丽麦高图","zh-TW":"Mekko 圖"}},Object_NavMenu:{id:"Object.NavMenu",locale:{"de-DE":"Navigationsmenü","en-US":"Navigation menu","es-ES":"Menú de navegación","fr-FR":"Menu de navigation","it-IT":"Menu di navigazione","ja-JP":"ナビゲーション メニュー","ko-KR":"탐색 메뉴","nl-NL":"Navigatiemenu","pl-PL":"Menu nawigacji","pt-BR":"Menu de navegação","ru-RU":"Меню навигации","sv-SE":"Navigationsmeny","tr-TR":"Gezinti menüsü","zh-CN":"导航菜单","zh-TW":"導覽功能表"}},Object_NlgChart:{id:"Object.NlgChart",locale:{"de-DE":"NL-Einblicke","en-US":"NL insights","es-ES":"Información en LN","fr-FR":"Informations analytiques NL","it-IT":"Informazioni strategiche NL","ja-JP":"NL インサイト","ko-KR":"NL 통찰력","nl-NL":"NL-inzichten","pl-PL":"Wnioski w języku naturalnym","pt-BR":"Ideias de NL","ru-RU":"Наблюдения на естественном языке","sv-SE":"Insikter på naturligt språk (NL)","tr-TR":"NL içgörüleri","zh-CN":"NL 见解","zh-TW":"自然語言深入資訊"}},Object_PieChart:{id:"Object.PieChart",locale:{"de-DE":"Kreisdiagramm","en-US":"Pie chart","es-ES":"Gráfico de tarta","fr-FR":"Graphique en secteurs","it-IT":"Grafico a torta","ja-JP":"円グラフ","ko-KR":"원형 차트","nl-NL":"Cirkeldiagram","pl-PL":"Wykres kołowy","pt-BR":"Gráfico de pizza","ru-RU":"Круговая диаграмма","sv-SE":"Cirkeldiagram","tr-TR":"Pasta grafik","zh-CN":"饼图","zh-TW":"圓形圖"}},Object_PivotTable:{id:"Object.PivotTable",locale:{"de-DE":"Pivottabelle","en-US":"Pivot table","es-ES":"Tabla dinámica","fr-FR":"Tableau croisé dynamique","it-IT":"Tabella pivot","ja-JP":"ピボット テーブル","ko-KR":"피벗 테이블","nl-NL":"Draaitabel","pl-PL":"Tabela przestawna","pt-BR":"Tabela dinâmica","ru-RU":"Сводная таблица","sv-SE":"Pivottabell","tr-TR":"Pivot tablo","zh-CN":"透视表","zh-TW":"樞紐分析表"}},Object_RadarChart:{id:"Object.RadarChart",locale:{"de-DE":"Netzdiagramm","en-US":"Radar chart","es-ES":"Gráfico de radar","fr-FR":"Diagramme en étoile","it-IT":"Grafico a radar","ja-JP":"レーダー チャート","ko-KR":"방사형 차트","nl-NL":"Radardiagram","pl-PL":"Wykres radarowy","pt-BR":"Gráfico de radar","ru-RU":"Диаграмма Радар","sv-SE":"Radardiagram","tr-TR":"Radar grafiği","zh-CN":"雷达图","zh-TW":"雷達圖"}},Object_SankeyChart:{id:"Object.SankeyChart",locale:{"de-DE":"Sankey-Diagramm","en-US":"Sankey chart","es-ES":"Diagrama de Sankey","fr-FR":"Diagramme de Sankey","it-IT":"Diagramma di Sankey","ja-JP":"サンキー グラフ","ko-KR":"Sankey 차트","nl-NL":"Sankey-diagram","pl-PL":"Wykres Sankeya","pt-BR":"Gráfico de Sankey","ru-RU":"Диаграмма Сэнки","sv-SE":"Sankey-diagram","tr-TR":"Sankey grafiği","zh-CN":"桑基图","zh-TW":"桑基圖"}},Object_ScatterPlot:{id:"Object.ScatterPlot",locale:{"de-DE":"Punktdiagramm","en-US":"Scatter plot","es-ES":"Gráfico de dispersión","fr-FR":"Nuage de points","it-IT":"Grafico a dispersione","ja-JP":"散布図","ko-KR":"스캐터 차트","nl-NL":"Spreidingsplot","pl-PL":"Wykres punktowy","pt-BR":"Plotagem de dispersão","ru-RU":"Точечная диаграмма","sv-SE":"Spridningsdiagram","tr-TR":"Dağılım çizimi","zh-CN":"散点图","zh-TW":"散佈圖"}},Object_StraightTable:{id:"Object.StraightTable",locale:{"de-DE":"Tabellendiagramm","en-US":"Straight table","es-ES":"Tabla simple","fr-FR":"Tableau simple","it-IT":"Tabella lineare","ja-JP":"ストレート テーブル","ko-KR":"일반표","nl-NL":"Strakke tabel","pl-PL":"Tabela prosta","pt-BR":"Tabela estática","ru-RU":"Прямая таблица","sv-SE":"Enkel tabell","tr-TR":"Düz tablo","zh-CN":"垂直表","zh-TW":"直表"}},Object_TabContainer:{id:"Object.TabContainer",locale:{"de-DE":"Registerkarten-Container","en-US":"Tab container","es-ES":"Contenedor de pestañas","fr-FR":"Conteneur d'onglets","it-IT":"Contenitore a schede","ja-JP":"タブ付きコンテナ","ko-KR":"탭 컨테이너","nl-NL":"Tabbladcontainer","pl-PL":"Kontener karty","pt-BR":"Contêiner de guias","ru-RU":"Контейнер вкладок","sv-SE":"Flikbehållare","tr-TR":"Sekme kapsayıcısı","zh-CN":"选项卡容器","zh-TW":"索引標籤容器"}},Object_Table:{id:"Object.Table",locale:{"de-DE":"Tabelle","en-US":"Table","es-ES":"Tabla","fr-FR":"Table","it-IT":"Tabella","ja-JP":"テーブル","ko-KR":"테이블","nl-NL":"Tabel","pl-PL":"Tabela","pt-BR":"Tabela","ru-RU":"Таблица","sv-SE":"Tabell","tr-TR":"Tablo","zh-CN":"表格","zh-TW":"表格"}},Object_Table_Deprecated:{id:"Object.Table.Deprecated",locale:{"de-DE":"Tabelle","en-US":"Table ","es-ES":"Tabla","fr-FR":"Table","it-IT":"Tabella","ja-JP":"テーブル","ko-KR":"테이블","nl-NL":"Tabel","pl-PL":"Tabela","pt-BR":"Tabela","ru-RU":"Таблица","sv-SE":"Tabell","tr-TR":"Tablo","zh-CN":"表格","zh-TW":"表格"}},Object_Text:{id:"Object.Text",locale:{"de-DE":"Text","en-US":"Text","es-ES":"Texto","fr-FR":"Texte","it-IT":"Testo","ja-JP":"テキスト","ko-KR":"텍스트","nl-NL":"Tekst","pl-PL":"Tekst","pt-BR":"Texto","ru-RU":"Текст","sv-SE":"Text","tr-TR":"Metin","zh-CN":"文本","zh-TW":"文字"}},Object_TextImage:{id:"Object.TextImage",locale:{"de-DE":"Text und Bild","en-US":"Text & image","es-ES":"Texto e imagen","fr-FR":"Texte et image","it-IT":"Testo e immagine","ja-JP":"テキストと画像","ko-KR":"텍스트 및 이미지","nl-NL":"Tekst en afbeelding","pl-PL":"Tekst i grafika","pt-BR":"Texto e imagem","ru-RU":"Текст и изображение","sv-SE":"Text och bild","tr-TR":"Metin ve resim","zh-CN":"文本和图片","zh-TW":"文字與影像"}},Object_Treemap:{id:"Object.Treemap",locale:{"de-DE":"Baumkarte","en-US":"Treemap","es-ES":"Gráfico de bloques","fr-FR":"Treemap","it-IT":"Mappa ad albero","ja-JP":"ツリーマップ","ko-KR":"트리맵","nl-NL":"Structuuroverzicht","pl-PL":"Mapa drzewa","pt-BR":"Mapa de árvore","ru-RU":"Карта дерева","sv-SE":"Trädkarta","tr-TR":"Ağaç haritası","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":"資料更新已取消"}},Object_WaterfallChart:{id:"Object.WaterfallChart",locale:{"de-DE":"Wasserfalldiagramm","en-US":"Waterfall chart","es-ES":"Gráfico de cascada","fr-FR":"Graphique en cascade","it-IT":"Grafico a cascata","ja-JP":"ウォーターフォール グラフ","ko-KR":"폭포형 차트","nl-NL":"Watervalgrafiek","pl-PL":"Wykres wodospadowy","pt-BR":"Gráfico em cascata","ru-RU":"Каскадная диаграмма","sv-SE":"Vattenfallsdiagram","tr-TR":"Şelale grafik","zh-CN":"瀑布图","zh-TW":"瀑布圖"}},Retry:{id:"Retry",locale:{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},ScreenReader_ManySearchResults:{id:"ScreenReader.ManySearchResults",locale:{"de-DE":"Es sind {0} Ergebnisse verfügbar","en-US":"There are {0} available results","es-ES":"Hay {0} resultados disponibles","fr-FR":"Il existe {0} résultats disponibles.","it-IT":"{0} risultati disponibili","ja-JP":"利用可能な結果が {0} つあります","ko-KR":"{0}개의 결과를 사용할 수 있음","nl-NL":"Er zijn {0} beschikbare resultaten","pl-PL":"Liczba dostępnych wyników: {0}","pt-BR":"Há {0} resultados disponíveis","ru-RU":"Имеются доступные результаты: {0}","sv-SE":"Det finns {0} tillgängliga resultat","tr-TR":"Kullanılabilir {0} sonuç mevcut","zh-CN":"有 {0} 个可用结果","zh-TW":"有 {0} 個可用的結果"}},ScreenReader_ManySelected:{id:"ScreenReader.ManySelected",locale:{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},ScreenReader_OneSearchResult:{id:"ScreenReader.OneSearchResult",locale:{"de-DE":"Es ist ein Ergebnis verfügbar","en-US":"There is one available result","es-ES":"Hay un resultado disponible","fr-FR":"Il existe un résultat disponible.","it-IT":"Un risultato disponibile","ja-JP":"利用可能な結果が 1 つあります","ko-KR":"하나의 결과를 사용할 수 있음","nl-NL":"Er is één beschikbaar resultaat","pl-PL":"Jest jeden dostępny wynik","pt-BR":"Há um resultado disponível","ru-RU":"Имеется один доступный результат","sv-SE":"Det finns ett tillgängligt resultat","tr-TR":"Kullanılabilir bir sonuç mevcut","zh-CN":"有一个可用结果","zh-TW":"有一個可用的結果"}},ScreenReader_OneSelected:{id:"ScreenReader.OneSelected",locale:{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},ScreenReader_ZeroSelected:{id:"ScreenReader.ZeroSelected",locale:{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},Selection_Cancel:{id:"Selection.Cancel",locale:{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},Selection_Clear:{id:"Selection.Clear",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},Selection_ClearAll:{id:"Selection.ClearAll",locale:{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},Selection_ClearAllStates:{id:"Selection.ClearAllStates",locale:{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},Selection_Confirm:{id:"Selection.Confirm",locale:{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},Selection_Menu:{id:"Selection.Menu",locale:{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":'Меню "Выборка"',"sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},Selection_SelectAll:{id:"Selection.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},Selection_SelectAlternative:{id:"Selection.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},Selection_SelectExcluded:{id:"Selection.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},Selection_SelectPossible:{id:"Selection.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SelectionToolbar_ClickToLock:{id:"SelectionToolbar.ClickToLock",locale:{"de-DE":"Klicken zum Sperren","en-US":"Click to lock","es-ES":"Haga clic para bloquearla","fr-FR":"Cliquez pour verrouiller","it-IT":"Fare clic per bloccare","ja-JP":"クリックしてロック","ko-KR":"클릭하여 잠금","nl-NL":"Klik om te vergrendelen","pl-PL":"Kliknij, aby zablokować","pt-BR":"Clique para bloquear","ru-RU":"Щелкните, чтобы заблокировать","sv-SE":"Klicka för att låsa","tr-TR":"Kilitlemek için tıklayın","zh-CN":"单击以锁定","zh-TW":"按一下以鎖定"}},SelectionToolbar_ClickToUnlock:{id:"SelectionToolbar.ClickToUnlock",locale:{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},Visualization_Incomplete:{id:"Visualization.Incomplete",locale:{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},Visualization_Incomplete_Dimensions:{id:"Visualization.Incomplete.Dimensions",locale:{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},Visualization_Incomplete_Measures:{id:"Visualization.Incomplete.Measures",locale:{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},Visualization_Invalid_Dimension:{id:"Visualization.Invalid.Dimension",locale:{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},Visualization_Invalid_Measure:{id:"Visualization.Invalid.Measure",locale:{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},Visualization_LayoutError:{id:"Visualization.LayoutError",locale:{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},Visualization_UnfulfilledCalculationCondition:{id:"Visualization.UnfulfilledCalculationCondition",locale:{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}};function R(e){const t=E({initial:e});return Object.keys(_).forEach((e=>{t.translator.add(_[e])})),{translator:t.translator}}var L=function(){if(C)return k;C=1;var e={};function t(){t.init.call(this)}return e.isObject=function(e){return"object"==typeof e&&null!==e},e.isNumber=function(e){return"number"==typeof e},e.isUndefined=function(e){return void 0===e},e.isFunction=function(e){return"function"==typeof e},k=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,i,a,l;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];for(o=(l=r.slice()).length,a=0;a<o;a++)l[a].apply(this,i)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,i,a;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(a=i;a-- >0;)if(r[a]===n||r[a].listener&&r[a].listener===n){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},k}(),O=r(L);function I(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function T(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function P(){}var M,q,D=.7,N=1/D,A="\\s*([+-]?\\d+)\\s*",z="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",j="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",F=/^#([0-9a-f]{3,8})$/,$=new RegExp(`^rgb\\(${A},${A},${A}\\)$`),B=new RegExp(`^rgb\\(${j},${j},${j}\\)$`),W=new RegExp(`^rgba\\(${A},${A},${A},${z}\\)$`),H=new RegExp(`^rgba\\(${j},${j},${j},${z}\\)$`),U=new RegExp(`^hsl\\(${z},${j},${j}\\)$`),V=new RegExp(`^hsla\\(${z},${j},${j},${z}\\)$`),G={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 K(){return this.rgb().formatHex()}function Z(){return this.rgb().formatRgb()}function J(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=F.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?X(t):3===n?new ee(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Y(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Y(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=$.exec(e))?new ee(t[1],t[2],t[3],1):(t=B.exec(e))?new ee(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=W.exec(e))?Y(t[1],t[2],t[3],t[4]):(t=H.exec(e))?Y(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=U.exec(e))?ae(t[1],t[2]/100,t[3]/100,1):(t=V.exec(e))?ae(t[1],t[2]/100,t[3]/100,t[4]):G.hasOwnProperty(e)?X(G[e]):"transparent"===e?new ee(NaN,NaN,NaN,0):null}function X(e){return new ee(e>>16&255,e>>8&255,255&e,1)}function Y(e,t,n,r){return r<=0&&(e=t=n=NaN),new ee(e,t,n,r)}function Q(e,t,n,r){return 1===arguments.length?function(e){return e instanceof P||(e=J(e)),e?new ee((e=e.rgb()).r,e.g,e.b,e.opacity):new ee}(e):new ee(e,t,n,null==r?1:r)}function ee(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function te(){return`#${ie(this.r)}${ie(this.g)}${ie(this.b)}`}function ne(){const e=re(this.opacity);return`${1===e?"rgb(":"rgba("}${oe(this.r)}, ${oe(this.g)}, ${oe(this.b)}${1===e?")":`, ${e})`}`}function re(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function oe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ie(e){return((e=oe(e))<16?"0":"")+e.toString(16)}function ae(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new se(e,t,n,r)}function le(e){if(e instanceof se)return new se(e.h,e.s,e.l,e.opacity);if(e instanceof P||(e=J(e)),!e)return new se;if(e instanceof se)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 se(a,l,s,e.opacity)}function se(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ce(e){return(e=(e||0)%360)<0?e+360:e}function ue(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)}I(P,J,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:K,formatHex:K,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return le(this).formatHsl()},formatRgb:Z,toString:Z}),I(ee,Q,T(P,{brighter(e){return e=null==e?N:Math.pow(N,e),new ee(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?D:Math.pow(D,e),new ee(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ee(oe(this.r),oe(this.g),oe(this.b),re(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:te,formatHex:te,formatHex8:function(){return`#${ie(this.r)}${ie(this.g)}${ie(this.b)}${ie(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ne,toString:ne})),I(se,(function(e,t,n,r){return 1===arguments.length?le(e):new se(e,t,n,null==r?1:r)}),T(P,{brighter(e){return e=null==e?N:Math.pow(N,e),new se(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?D:Math.pow(D,e),new se(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new ee(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 se(ce(this.h),ue(this.s),ue(this.l),re(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=re(this.opacity);return`${1===e?"hsl(":"hsla("}${ce(this.h)}, ${100*ue(this.s)}%, ${100*ue(this.l)}%${1===e?")":`, ${e})`}`}}));var fe=function(){if(q)return M;q=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return M=function e(){var t,n,r,s,c,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(s=l(t,n))&&(h&&s&&(i(s)||(c=o(s)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,s)})):void 0!==s&&a(d,{name:n,newValue:s}));return d},M}(),pe=r(fe),he={fontSize:"12px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},object:{title:{main:{color:"@B50",fontSize:"15px",backgroundColor:"transparent"},subTitle:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"},footer:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"}}},scales:[{name:"Sequential Gradient",translation:"properties.colorScheme.sequential",type:"gradient",propertyValue:"sg",scale:["#26a0a7","#c7ea8b"]},{name:"Sequential Classes",translation:"properties.colorScheme.sequentialC",propertyValue:"sc",type:"class",scale:["#26a0a7","#c7ea8b"]},{name:"Diverging gradient",translation:"properties.colorScheme.diverging",propertyValue:"dg",type:"gradient",scale:["#26a0a7","#c3ea8c","#ec983d"]},{name:"Diverging Classes",translation:"properties.colorScheme.divergingC",propertyValue:"dc",type:"class",scale:["#26a0a7","#c3ea8c","#ec983d"]}],palettes:{data:[{name:"12 Colors",translation:"properties.colorNumberOfColors.12",propertyValue:"12",type:"pyramid",scale:[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],ui:[{name:"Palette",colors:["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}},me={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"light",color:"@B35"},ge={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"dark",color:"@B98",object:{listBox:{backgroundColor:"@B20",title:{main:{color:"@B98",fontSize:"14px",fontWeight:"bold"}},content:{color:"#@B98",fontSize:"12px"}}}},ve={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};const be={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},ye=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,xe=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,Se=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,we=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,Ee=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,ke=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:Ce}=Math,{round:_e}=Math;class Re{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r,o,i,a,l,s,c,u,d,f,p,h,m=0,g=0,v=0,b=1;if(this._invalid=!1,t[0]instanceof Re)m=t[0]._r,g=t[0]._g,v=t[0]._b,b=t[0]._a,this._invalid=t[0]._invalid;else if(t.length<3)if("string"==typeof t[0])if(h=t[0],p=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))m=parseInt(p[1],10),g=parseInt(p[2],10),v=parseInt(p[3],10);else if(p=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(h))m=parseInt(p[1],10),g=parseInt(p[2],10),v=parseInt(p[3],10),b=parseFloat(p[4]);else if(p=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))b=parseInt(p[1],10)/255,m=parseInt(p[2],10),g=parseInt(p[3],10),v=parseInt(p[4],10);else if(p=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(h))m=parseInt(p[1],16),g=parseInt(p[2],16),v=parseInt(p[3],16),b=1;else if(p=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(h))m=parseInt(p[1]+p[1],16),g=parseInt(p[2]+p[2],16),v=parseInt(p[3]+p[3],16),b=1;else if(p=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(p[1]),o=parseFloat(p[3]),a=parseFloat(p[5]),r%=360,o/=100,a/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,a=a<0?0:a>1?1:a,s=a<=.5?2*a*o:(2-2*a)*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}f=a-.5*s,m=d[0]+f,g=d[1]+f,v=d[2]+f,m=_e(255*m),g=_e(255*g),v=_e(255*v),b=1}else if(p=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(h)){switch(r=parseFloat(p[1]),o=parseFloat(p[3]),a=parseFloat(p[5]),b=parseFloat(p[7]),r%=360,o/=100,a/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,a=a<0?0:a>1?1:a,s=a<=.5?2*a*o:(2-2*a)*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}f=a-.5*s,m=d[0]+f,g=d[1]+f,v=d[2]+f,m=_e(255*m),g=_e(255*g),v=_e(255*v)}else if(p=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(p[1]),o=parseFloat(p[3]),l=parseFloat(p[5]),r%=360,o/=100,l/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,l=l<0?0:l>1?1:l,s=l*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}f=l-s,m=d[0]+f,g=d[1]+f,v=d[2]+f,m=_e(255*m),g=_e(255*g),v=_e(255*v),b=1}else be[h.toLowerCase()]?(i=h.toLowerCase(),m=be[i].r,g=be[i].g,v=be[i].b,b="number"==typeof be[i].a?be[i].a:1):this._invalid=!0;else"number"==typeof t[0]&&t[0]>=0&&"argb"===t[1]?(b=(4278190080&t[0])>>>24,b/=255,m=(16711680&t[0])>>16,g=(65280&t[0])>>8,v=255&t[0]):"number"==typeof t[0]&&t[0]>=0?(m=(16711680&t[0])>>16,g=(65280&t[0])>>8,v=255&t[0]):this._invalid=!0;else t.length>=3?(m=t[0],g=t[1],v=t[2],b=arguments.length>=4?t[3]:1):this._invalid=!0;Number.isNaN(+m+g+v+b)&&(this._invalid=!0),this._r=Ce(m),this._g=Ce(g),this._b=Ce(v),this._a=b,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=Re.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=Re.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=Re.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=Re.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=Re.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=Re.toHSLA(this,e)),this._spaces.hsla}toHSV(){const e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=Re.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=Re.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(e){const t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]);let i=parseFloat(n[5]);const a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}isEqual(e){return e instanceof Re||(e=new Re(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){const n=Ce(this._r+(e._r-this._r)*t),r=Ce(this._g+(e._g-this._g)*t),o=Ce(this._b+(e._b-this._b)*t),i=Ce(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),n=this._g<126?1:1+this._g/512,r=this.shiftLuminance(20*(t*n<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new Re(r)}static toRGB(e){if(e instanceof Re)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=Re.toNumber(e));const t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")}static toRGBA(e,t){if(e instanceof Re)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=Re.toNumber(e));const n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")}static toHex(e){let t,n,r;return e instanceof Re?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=Re.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))}static toHSL(e,t){let n,r,o,i=0;"string"==typeof e&&(e=new Re(e));const a=e._r/255,l=e._g/255,s=e._b/255,c=Math.max(a,l,s),u=Math.min(a,l,s);if(r=t?.21*a+.72*l+.07*s:(c+u)/2,c===u)n=0,i=0;else{switch(o=c-u,n=r>.5?o/(2-c-u):o/(c+u),c){case a:i=(l-s)/o+(l<s?6:0);break;case l:i=(s-a)/o+2;break;case s:i=(a-l)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")}static toHSLA(e,t){let n,r,o,i=0;"string"==typeof e&&(e=new Re(e));const a=e._r/255,l=e._g/255,s=e._b/255,c=e._a,u=Math.max(a,l,s),d=Math.min(a,l,s);if(r=t?.21*a+.72*l+.07*s:(u+d)/2,u===d)n=0,i=0;else{switch(o=u-d,n=r>.5?o/(2-u-d):o/(u+d),u){case a:i=(l-s)/o+(l<s?6:0);break;case l:i=(s-a)/o+2;break;case s:i=(a-l)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(c,")")}static toHSVComponents(e){let t,n,r=0;"string"==typeof e&&(e=new Re(e));const o=e._r/255,i=e._g/255,a=e._b/255,l=Math.max(o,i,a),s=Math.min(o,i,a),c=l;if(l===s)t=0,r=0;else{switch(n=l-s,t=0===n?0:n/c,l){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}static toNumber(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length&&t[0]instanceof Re)return(t[0]._r<<16)+(t[0]._g<<8)+t[0]._b;let r,o,i=0,a=0,l=0;return 1===t.length&&"string"==typeof t[0]&&(o=t[0],(r=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(o))?(i=parseInt(r[1],10),a=parseInt(r[2],10),l=parseInt(r[3],10)):(r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(o))?(i=parseInt(r[1],16),a=parseInt(r[2],16),l=parseInt(r[3],16)):(r=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(o))&&(i=parseInt(r[1]+r[1],16),a=parseInt(r[2]+r[2],16),l=parseInt(r[3]+r[3],16))),(i<<16)+(a<<8)+l}static blend(e,t,n){const r=(16711680&(e=Re.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=Re.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)}static getBlend(e,t,n){const r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new Re(r,o,i,a)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(ye.test(e)||xe.test(e)||Se.test(e)||we.test(e)||Ee.test(e)||ke.test(e)||be[e.toLowerCase()])}static getBestContrast(e,t,n){const r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n}static getContrast(e,t){if(!e||!t)return;const n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}static isDark(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Re(...t).isDark(...t)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}class Le{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=J(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([J(e),J(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 Q(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 Oe(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Ie(e,t,n){const r=[],o=new Le(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 Te(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=Oe(1/t*o,t,n);i=e.getColor(r);break}}r.push(J(i).formatHex())}return r}function Pe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#d2d2d2";e.forEach((e=>{if("class"===e.type){const n=function(e,t,n){const r=Ie(e,n,!0),o=Ie(Te(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(Te(o,e,t));return i}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function Me(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 qe(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 De(e,t,n,r){let o;if(""===e)o=Me(null,n);else{o=Me(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=qe(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function Ne(e,t){const n=e.split(".");return{getStyle:(e,r)=>De(e,r,n.concat(),t)}}function Ae(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?Ae(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function ze(e){const t=J(e);if(!t)return 0;const{r:n,g:r,b:o}=t.rgb(),[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)}Ne.resolveRawTheme=e=>{const t=pe(!0,{},e);return Ae(t,t._variables),t.scales&&Pe(t.scales,t.dataColors&&t.dataColors.nullColor),t};const je=1e3;function Fe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(ze);return{getBestContrastColor(o){if(!t[o]){n>je&&(t={},n=0);const i=ze(o),a=r.map((e=>{return t=i,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),l=e[a.indexOf(Math.max(...a))];t[o]=l,n++}return t[o]}}}function $e(){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]=Ne(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=J(...arguments);return n?n.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?ge:me;let r=ve;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=pe(!0,{},he,r,n),i=pe(!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,Ne.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=>{const n=e.colors&&"none"!==e.colors[0]?["none",...e.colors]:e.colors;t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:n||[]})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e){const n="number"==typeof(null==e?void 0:e.index)&&!Number.isNaN(null==e?void 0:e.index),r="string"==typeof(null==e?void 0:e.color);if(!n&&!r)return;const o=(()=>(null==e?void 0:e.index)<0||void 0===(null==e?void 0:e.index)?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index]?e.color:t.colors[e.index]:e.color))();if(void 0===e.alpha||e.alpha>=1||e.alpha<0)return o;const i=new Re(o);return i.setAlpha(e.alpha),i.isInvalid()?o:i.toRGBA()}}}(e);const l=o.getStyle("","","color"),s=ze(l);n=Fe([l,s<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(O.prototype).forEach((e=>{o[e]=O.prototype[e]})),O.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const Be=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),We=5e3;function He(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 Ue,Ve,Ge,Ke,Ze,Je={},Xe={exports:{}},Ye={},Qe={exports:{}},et={};function tt(){return Ve||(Ve=1,Qe.exports=(Ue||(Ue=1,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,f=3,p=!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,P(S);else{var t=n(c);null!==t&&M(x,t.startTime-e)}}function S(t,o){h=!1,m&&(m=!1,v(C),C=-1),p=!0;var i=f;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!L());){var a=d.callback;if("function"==typeof a){d.callback=null,f=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&&M(x,g.startTime-o),u=!1}return u}finally{d=null,f=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,E=!1,k=null,C=-1,_=5,R=-1;function L(){return!(e.unstable_now()-R<_)}function O(){if(null!==k){var t=e.unstable_now();R=t;var n=!0;try{n=k(!0,t)}finally{n?w():(E=!1,k=null)}}else E=!1}if("function"==typeof b)w=function(){b(O)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,T=I.port2;I.port1.onmessage=O,w=function(){T.postMessage(null)}}else w=function(){g(O,0)};function P(e){k=e,E||(E=!0,w())}function M(t,n){C=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||p||(h=!0,P(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"):_=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=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=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<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(C),C=-1):m=!0,M(x,i-a))):(r.sortIndex=l,t(s,r),h||p||(h=!0,P(S))),r},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(et)),et)),Qe.exports}
8
8
  /**
9
9
  * @license React
10
10
  * react-dom.production.min.js
@@ -13,14 +13,14 @@
13
13
  *
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
- */function nt(){if(Ge)return Qe;Ge=1;var e=y(),t=tt();function n(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 r=new Set,o={};function i(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var l=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),s=Object.prototype.hasOwnProperty,c=/^[: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]*$/,u={},d={};function f(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 p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){p[e]=new f(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];p[t]=new f(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){p[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){p[e]=new f(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){p[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){p[e]=new f(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){p[e]=new f(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){p[e]=new f(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){p[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)}));var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function g(e,t,n,r){var o=p.hasOwnProperty(t)?p[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!!s.call(d,e)||!s.call(u,e)&&(c.test(e)?d[e]=!0:(u[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(h,m);p[t]=new f(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(h,m);p[t]=new f(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(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)})),p.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)}));var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),C=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),P=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=P&&e[P]||e["@@iterator"])?e:null}var N,D=Object.assign;function q(e){if(void 0===N)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return"\n"+N+e}var A=!1;function z(e,t){if(!e||A)return"";A=!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{A=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?q(e):""}function j(e){switch(e.tag){case 5:return q(e.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function F(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 S:return"Fragment";case x:return"Portal";case E:return"Profiler";case w:return"StrictMode";case R:return"Suspense";case L:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case _:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case O:return null!==(t=e.displayName||null)?t:F(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return F(e(t))}catch(e){}}return null}function $(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 F(t);case 8:return t===w?"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 B(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function U(e){e._valueTracker||(e._valueTracker=function(e){var t=W(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 H(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function V(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 G(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=B(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 Z(e,t){null!=(t=t.checked)&&g(e,"checked",t,!1)}function J(e,t){Z(e,t);var n=B(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")?Q(e,t.type,n):t.hasOwnProperty("defaultValue")&&Q(e,t.type,B(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(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 Q(e,t,n){"number"===t&&V(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Y=Array.isArray;function ee(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=""+B(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 te(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ne(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(Y(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:B(r)}}function re(e,t){var n=B(t.value),r=B(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 oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ie(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 ae(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ie(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,se=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ce(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 ue={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},de=["Webkit","ms","Moz","O"];function fe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ue.hasOwnProperty(e)&&ue[e]?(""+t).trim():t+"px"}function pe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=fe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ue).forEach((function(e){de.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ue[t]=ue[e]}))}));var he=D({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 me(e,t){if(t){if(he[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function ge(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 ve=null;function be(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ye=null,xe=null,Se=null;function we(e){if(e=xo(e)){if("function"!=typeof ye)throw Error(n(280));var t=e.stateNode;t&&(t=wo(t),ye(e.stateNode,e.type,t))}}function Ee(e){xe?Se?Se.push(e):Se=[e]:xe=e}function ke(){if(xe){var e=xe,t=Se;if(Se=xe=null,we(e),t)for(e=0;e<t.length;e++)we(t[e])}}function Ce(e,t){return e(t)}function _e(){}var Re=!1;function Le(e,t,n){if(Re)return e(t,n);Re=!0;try{return Ce(e,t,n)}finally{Re=!1,(null!==xe||null!==Se)&&(_e(),ke())}}function Oe(e,t){var r=e.stateNode;if(null===r)return null;var o=wo(r);if(null===o)return null;r=o[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":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Ie=!1;if(l)try{var Te={};Object.defineProperty(Te,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Te,Te),window.removeEventListener("test",Te,Te)}catch(e){Ie=!1}function Pe(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 Me=!1,Ne=null,De=!1,qe=null,Ae={onError:function(e){Me=!0,Ne=e}};function ze(e,t,n,r,o,i,a,l,s){Me=!1,Ne=null,Pe.apply(Ae,arguments)}function je(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 Fe(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 $e(e){if(je(e)!==e)throw Error(n(188))}function Be(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=je(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(o=i.return)){r=o;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return $e(i),e;if(a===o)return $e(i),t;a=a.sibling}throw Error(n(188))}if(r.return!==o.return)r=i,o=a;else{for(var l=!1,s=i.child;s;){if(s===r){l=!0,r=i,o=a;break}if(s===o){l=!0,o=i,r=a;break}s=s.sibling}if(!l){for(s=a.child;s;){if(s===r){l=!0,r=a,o=i;break}if(s===o){l=!0,o=a,r=i;break}s=s.sibling}if(!l)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e),null!==e?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var Ue=t.unstable_scheduleCallback,He=t.unstable_cancelCallback,Ve=t.unstable_shouldYield,Ke=t.unstable_requestPaint,Ze=t.unstable_now,Je=t.unstable_getCurrentPriorityLevel,Xe=t.unstable_ImmediatePriority,Ye=t.unstable_UserBlockingPriority,et=t.unstable_NormalPriority,nt=t.unstable_LowPriority,rt=t.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2;var ct=64,ut=4194304;function dt(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 ft(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=dt(l):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(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-at(t)),r|=e[n],t&=~o;return r}function pt(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 ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0==(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function xt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var St,wt,Et,kt,Ct,_t=!1,Rt=[],Lt=null,Ot=null,It=null,Tt=new Map,Pt=new Map,Mt=[],Nt="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 Dt(e,t){switch(e){case"focusin":case"focusout":Lt=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":Tt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function qt(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=xo(t))&&wt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function At(e){var t=yo(e.target);if(null!==t){var n=je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Fe(n)))return e.blockedOn=t,void Ct(e.priority,(function(){Et(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 zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&wt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ve=r,n.target.dispatchEvent(r),ve=null,t.shift()}return!0}function jt(e,t,n){zt(e)&&n.delete(t)}function Ft(){_t=!1,null!==Lt&&zt(Lt)&&(Lt=null),null!==Ot&&zt(Ot)&&(Ot=null),null!==It&&zt(It)&&(It=null),Tt.forEach(jt),Pt.forEach(jt)}function $t(e,n){e.blockedOn===n&&(e.blockedOn=null,_t||(_t=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ft)))}function Bt(e){function t(t){return $t(t,e)}if(0<Rt.length){$t(Rt[0],e);for(var n=1;n<Rt.length;n++){var r=Rt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Lt&&$t(Lt,e),null!==Ot&&$t(Ot,e),null!==It&&$t(It,e),Tt.forEach(t),Pt.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)At(n),null===n.blockedOn&&Mt.shift()}var Wt=v.ReactCurrentBatchConfig,Ut=!0;function Ht(e,t,n,r){var o=yt,i=Wt.transition;Wt.transition=null;try{yt=1,Gt(e,t,n,r)}finally{yt=o,Wt.transition=i}}function Vt(e,t,n,r){var o=yt,i=Wt.transition;Wt.transition=null;try{yt=4,Gt(e,t,n,r)}finally{yt=o,Wt.transition=i}}function Gt(e,t,n,r){if(Ut){var o=Zt(e,t,n,r);if(null===o)Ur(e,t,r,Kt,n),Dt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Lt=qt(Lt,e,t,n,r,o),!0;case"dragenter":return Ot=qt(Ot,e,t,n,r,o),!0;case"mouseover":return It=qt(It,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Tt.set(i,qt(Tt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Pt.set(i,qt(Pt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Dt(e,r),4&t&&-1<Nt.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&St(i),null===(i=Zt(e,t,n,r))&&Ur(e,t,r,Kt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var Kt=null;function Zt(e,t,n,r){if(Kt=null,null!==(e=yo(e=be(r))))if(null===(t=je(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Fe(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 Kt=e,null}function Jt(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(Je()){case Xe:return 1;case Ye:return 4;case et:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Qt=null,Yt=null;function en(){if(Yt)return Yt;var e,t,n=Qt,r=n.length,o="value"in Xt?Xt.value:Xt.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 Yt=o.slice(e,1<t?1-t:void 0)}function tn(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 nn(){return!0}function rn(){return!1}function on(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)?nn:rn,this.isPropagationStopped=rn,this}return D(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=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=D({},cn,{view:0,detail:0}),fn=on(dn),pn=D({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,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!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(pn),mn=on(D({},pn,{dataTransfer:0})),gn=on(D({},dn,{relatedTarget:0})),vn=on(D({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=D({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),xn=on(D({},cn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wn={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"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Cn(){return kn}var _n=D({},dn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Rn=on(_n),Ln=on(D({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=on(D({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),In=on(D({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Tn=D({},pn,{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}),Pn=on(Tn),Mn=[9,13,27,32],Nn=l&&"CompositionEvent"in window,Dn=null;l&&"documentMode"in document&&(Dn=document.documentMode);var qn=l&&"TextEvent"in window&&!Dn,An=l&&(!Nn||Dn&&8<Dn&&11>=Dn),zn=String.fromCharCode(32),jn=!1;function Fn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Wn={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 Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Hn(e,t,n,r){Ee(r),0<(t=Vr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Gn=null;function Kn(e){zr(e,0)}function Zn(e){if(H(So(e)))return e}function Jn(e,t){if("change"===e)return t}var Xn=!1;if(l){var Qn;if(l){var Yn="oninput"in document;if(!Yn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Yn="function"==typeof er.oninput}Qn=Yn}else Qn=!1;Xn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),Gn=Vn=null)}function nr(e){if("value"===e.propertyName&&Zn(Gn)){var t=[];Hn(t,Gn,e,be(e)),Le(Kn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zn(Gn)}function ir(e,t){if("click"===e)return Zn(t)}function ar(e,t){if("input"===e||"change"===e)return Zn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sr(e,t){if(lr(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(!s.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(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=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=V();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=V((e=t.contentWindow).document)}return t}function pr(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 hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(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=ur(n,i);var a=ur(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 mr=l&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,br=null,yr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==V(r)||("selectionStart"in(r=gr)&&pr(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},br&&sr(br,r)||(br=r,0<(r=Vr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function Sr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:Sr("Animation","AnimationEnd"),animationiteration:Sr("Animation","AnimationIteration"),animationstart:Sr("Animation","AnimationStart"),transitionend:Sr("Transition","TransitionEnd")},Er={},kr={};function Cr(e){if(Er[e])return Er[e];if(!wr[e])return e;var t,n=wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return Er[e]=n[t];return e}l&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var _r=Cr("animationend"),Rr=Cr("animationiteration"),Lr=Cr("animationstart"),Or=Cr("transitionend"),Ir=new Map,Tr="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 Pr(e,t){Ir.set(e,t),i(t,[e])}for(var Mr=0;Mr<Tr.length;Mr++){var Nr=Tr[Mr];Pr(Nr.toLowerCase(),"on"+(Nr[0].toUpperCase()+Nr.slice(1)))}Pr(_r,"onAnimationEnd"),Pr(Rr,"onAnimationIteration"),Pr(Lr,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(Or,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="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(" "),qr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Ar(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,i,a,l,s,c){if(ze.apply(this,arguments),Me){if(!Me)throw Error(n(198));var u=Ne;Me=!1,Ne=null,De||(De=!0,qe=u)}}(o,t,void 0,e),e.currentTarget=null}function zr(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;Ar(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;Ar(o,l,c),i=s}}}if(De)throw e=qe,De=!1,qe=null,e}function jr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Fr(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[$r]){e[$r]=!0,r.forEach((function(t){"selectionchange"!==t&&(qr.has(t)||Fr(t,!1,e),Fr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$r]||(t[$r]=!0,Fr("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Jt(t)){case 1:var o=Ht;break;case 4:o=Vt;break;default:o=Gt}n=o.bind(null,t,n,e),o=void 0,!Ie||"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 Ur(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=yo(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Le((function(){var r=i,o=be(n),a=[];e:{var l=Ir.get(e);if(void 0!==l){var s=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=Rn;break;case"focusin":c="focus",s=gn;break;case"focusout":c="blur",s=gn;break;case"beforeblur":case"afterblur":s=gn;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=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=On;break;case _r:case Rr:case Lr:s=vn;break;case Or:s=In;break;case"scroll":s=fn;break;case"wheel":s=Pn;break;case"copy":case"cut":case"paste":s=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Ln}var u=0!=(4&t),d=!u&&"scroll"===e,f=u?null!==l?l+"Capture":null:l;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Oe(h,f))&&u.push(Hr(h,m,p)))),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===ve||!(c=n.relatedTarget||n.fromElement)||!yo(c)&&!c[mo])&&(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)?yo(c):null)&&(c!==(d=je(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Ln,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?l:So(s),p=null==c?l:So(c),(l=new u(m,h+"leave",s,n,o)).target=d,l.relatedTarget=p,m=null,yo(o)===r&&((u=new u(f,h+"enter",c,n,o)).target=p,u.relatedTarget=d,m=u),d=m,s&&c)e:{for(f=c,h=0,p=u=s;p;p=Gr(p))h++;for(p=0,m=f;m;m=Gr(m))p++;for(;0<h-p;)u=Gr(u),h--;for(;0<p-h;)f=Gr(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Gr(u),f=Gr(f)}u=null}else u=null;null!==s&&Kr(a,l,s,u,!1),null!==c&&null!==d&&Kr(a,d,c,u,!0)}if("select"===(s=(l=r?So(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Jn;else if(Un(l))if(Xn)g=ar;else{g=or;var v=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=ir);switch(g&&(g=g(e,r))?Hn(a,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&Q(l,"number",l.value)),v=r?So(r):window,e){case"focusin":(Un(v)||"true"===v.contentEditable)&&(gr=v,vr=r,br=null);break;case"focusout":br=vr=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,xr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(a,n,o)}var b;if(Nn)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 Bn?Fn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(An&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Bn&&(b=en()):(Qt="value"in(Xt=o)?Xt.value:Xt.textContent,Bn=!0)),0<(v=Vr(r,y)).length&&(y=new xn(y,e,null,n,o),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=$n(n))&&(y.data=b))),(b=qn?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(jn=!0,zn);case"textInput":return(e=t.data)===zn&&jn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Nn&&Fn(e,t)?(e=en(),Yt=Qt=Xt=null,Bn=!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 An&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}zr(a,t)}))}function Hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(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=Oe(e,n))&&r.unshift(Hr(e,i,o)),null!=(i=Oe(e,t))&&r.push(Hr(e,i,o))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(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=Oe(n,i))&&a.unshift(Hr(n,s,l)):o||null!=(s=Oe(n,i))&&a.push(Hr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Zr=/\r\n?/g,Jr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Zr,"\n").replace(Jr,"")}function Qr(e,t,r){if(t=Xr(t),Xr(e)!==t&&r)throw Error(n(425))}function Yr(){}var eo=null,to=null;function no(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 ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function so(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 Bt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Bt(t)}function co(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 uo(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 fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,go="__reactEvents$"+fo,vo="__reactListeners$"+fo,bo="__reactHandles$"+fo;function yo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[po])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function So(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function wo(e){return e[ho]||null}var Eo=[],ko=-1;function Co(e){return{current:e}}function _o(e){0>ko||(e.current=Eo[ko],Eo[ko]=null,ko--)}function Ro(e,t){ko++,Eo[ko]=e.current,e.current=t}var Lo={},Oo=Co(Lo),Io=Co(!1),To=Lo;function Po(e,t){var n=e.type.contextTypes;if(!n)return Lo;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 Mo(e){return null!=(e=e.childContextTypes)}function No(){_o(Io),_o(Oo)}function Do(e,t,r){if(Oo.current!==Lo)throw Error(n(168));Ro(Oo,t),Ro(Io,r)}function qo(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var i in o=o.getChildContext())if(!(i in t))throw Error(n(108,$(e)||"Unknown",i));return D({},r,o)}function Ao(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Lo,To=Oo.current,Ro(Oo,e),Ro(Io,Io.current),!0}function zo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=qo(e,t,To),o.__reactInternalMemoizedMergedChildContext=e,_o(Io),_o(Oo),Ro(Oo,e)):_o(Io),Ro(Io,r)}var jo=null,Fo=!1,$o=!1;function Bo(e){null===jo?jo=[e]:jo.push(e)}function Wo(){if(!$o&&null!==jo){$o=!0;var e=0,t=yt;try{var n=jo;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}jo=null,Fo=!1}catch(t){throw null!==jo&&(jo=jo.slice(e+1)),Ue(Xe,Wo),t}finally{yt=t,$o=!1}}return null}var Uo=[],Ho=0,Vo=null,Go=0,Ko=[],Zo=0,Jo=null,Xo=1,Qo="";function Yo(e,t){Uo[Ho++]=Go,Uo[Ho++]=Vo,Vo=e,Go=t}function ei(e,t,n){Ko[Zo++]=Xo,Ko[Zo++]=Qo,Ko[Zo++]=Jo,Jo=e;var r=Xo;e=Qo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Xo=1<<32-at(t)+o|n<<o|r,Qo=i+e}else Xo=1<<i|n<<o|r,Qo=e}function ti(e){null!==e.return&&(Yo(e,1),ei(e,1,0))}function ni(e){for(;e===Vo;)Vo=Uo[--Ho],Uo[Ho]=null,Go=Uo[--Ho],Uo[Ho]=null;for(;e===Jo;)Jo=Ko[--Zo],Ko[Zo]=null,Qo=Ko[--Zo],Ko[Zo]=null,Xo=Ko[--Zo],Ko[Zo]=null}var ri=null,oi=null,ii=!1,ai=null;function li(e,t){var n=Tc(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 si(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,ri=e,oi=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Jo?{id:Xo,overflow:Qo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Tc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ci(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var r=t;if(!si(e,t)){if(ci(e))throw Error(n(418));t=co(r.nextSibling);var o=ri;t&&si(e,t)?li(o,r):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ci(e))throw Error(n(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw pi(),Error(n(418));for(;t;)li(e,t),t=co(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){oi=co(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}oi=null}}else oi=ri?co(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=co(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var gi=v.ReactCurrentBatchConfig;function vi(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var i=o,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function bi(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yi(e){return(0,e._init)(e._payload)}function xi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(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 i(e,t){return(e=Mc(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 l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Ac(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===I&&yi(o)===t.type)?((r=i(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Nc(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Dc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ac(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case b:return(n=Nc(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case x:return(t=zc(t,e.mode,n)).return=e,t;case I:return f(e,(0,t._init)(t._payload),n)}if(Y(t)||M(t))return(t=Dc(t,e.mode,n,null)).return=e,t;bi(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:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case b:return n.key===o?c(e,t,n,r):null;case x:return n.key===o?u(e,t,n,r):null;case I:return p(e,t,(o=n._init)(n._payload),r)}if(Y(n)||M(n))return null!==o?null:d(e,t,n,r,null);bi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case b:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case I:return h(e,t,n,(0,r._init)(r._payload),o)}if(Y(r)||M(r))return d(t,e=e.get(n)||null,r,o,null);bi(t,r)}return null}function m(n,i,l,s){for(var c=null,u=null,d=i,m=i=0,g=null;null!==d&&m<l.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(n,d,l[m],s);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(n,d),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===l.length)return r(n,d),ii&&Yo(n,m),c;if(null===d){for(;m<l.length;m++)null!==(d=f(n,l[m],s))&&(i=a(d,i,m),null===u?c=d:u.sibling=d,u=d);return ii&&Yo(n,m),c}for(d=o(n,d);m<l.length;m++)null!==(g=h(d,n,m,l[m],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(n,e)})),ii&&Yo(n,m),c}function g(i,l,s,c){var u=M(s);if("function"!=typeof u)throw Error(n(150));if(null==(s=u.call(s)))throw Error(n(151));for(var d=u=null,m=l,g=l=0,v=null,b=s.next();null!==m&&!b.done;g++,b=s.next()){m.index>g?(v=m,m=null):v=m.sibling;var y=p(i,m,b.value,c);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(i,m),l=a(y,l,g),null===d?u=y:d.sibling=y,d=y,m=v}if(b.done)return r(i,m),ii&&Yo(i,g),u;if(null===m){for(;!b.done;g++,b=s.next())null!==(b=f(i,b.value,c))&&(l=a(b,l,g),null===d?u=b:d.sibling=b,d=b);return ii&&Yo(i,g),u}for(m=o(i,m);!b.done;g++,b=s.next())null!==(b=h(m,i,g,b.value,c))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),l=a(b,l,g),null===d?u=b:d.sibling=b,d=b);return e&&m.forEach((function(e){return t(i,e)})),ii&&Yo(i,g),u}return function e(n,o,a,s){if("object"==typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case b:e:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===S){if(7===u.tag){r(n,u.sibling),(o=i(u,a.props.children)).return=n,n=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===I&&yi(c)===u.type){r(n,u.sibling),(o=i(u,a.props)).ref=vi(n,u,a),o.return=n,n=o;break e}r(n,u);break}t(n,u),u=u.sibling}a.type===S?((o=Dc(a.props.children,n.mode,s,a.key)).return=n,n=o):((s=Nc(a.type,a.key,a.props,null,n.mode,s)).ref=vi(n,o,a),s.return=n,n=s)}return l(n);case x:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(n,o.sibling),(o=i(o,a.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=zc(a,n.mode,s)).return=n,n=o}return l(n);case I:return e(n,o,(u=a._init)(a._payload),s)}if(Y(a))return m(n,o,a,s);if(M(a))return g(n,o,a,s);bi(n,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(r(n,o.sibling),(o=i(o,a)).return=n,n=o):(r(n,o),(o=Ac(a,n.mode,s)).return=n,n=o),l(n)):r(n,o)}}var Si=xi(!0),wi=xi(!1),Ei=Co(null),ki=null,Ci=null,_i=null;function Ri(){_i=Ci=ki=null}function Li(e){var t=Ei.current;_o(Ei),e._currentValue=t}function Oi(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 Ii(e,t){ki=e,_i=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(yl=!0),e.firstContext=null)}function Ti(e){var t=e._currentValue;if(_i!==e)if(e={context:e,memoizedValue:t,next:null},null===Ci){if(null===ki)throw Error(n(308));Ci=e,ki.dependencies={lanes:0,firstContext:e}}else Ci=Ci.next=e;return t}var Pi=null;function Mi(e){null===Pi?Pi=[e]:Pi.push(e)}function Ni(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Mi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Di(e,r)}function Di(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 qi=!1;function Ai(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zi(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 ji(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Ls)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Di(e,n)}return null===(o=r.interleaved)?(t.next=t,Mi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Di(e,n)}function $i(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,bt(e,n)}}function Bi(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 Wi(e,t,n,r){var o=e.updateQueue;qi=!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 f=l.lane,p=l.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=D({},d,f);break e;case 2:qi=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=p,s=d):u=u.next=p,a|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,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);qs|=a,e.lanes=a,e.memoizedState=d}}function Ui(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],i=o.callback;if(null!==i){if(o.callback=null,o=r,"function"!=typeof i)throw Error(n(191,i));i.call(o)}}}var Hi={},Vi=Co(Hi),Gi=Co(Hi),Ki=Co(Hi);function Zi(e){if(e===Hi)throw Error(n(174));return e}function Ji(e,t){switch(Ro(Ki,t),Ro(Gi,e),Ro(Vi,Hi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ae(null,"");break;default:t=ae(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_o(Vi),Ro(Vi,t)}function Xi(){_o(Vi),_o(Gi),_o(Ki)}function Qi(e){Zi(Ki.current);var t=Zi(Vi.current),n=ae(t,e.type);t!==n&&(Ro(Gi,e),Ro(Vi,n))}function Yi(e){Gi.current===e&&(_o(Vi),_o(Gi))}var ea=Co(0);function ta(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 na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=v.ReactCurrentDispatcher,ia=v.ReactCurrentBatchConfig,aa=0,la=null,sa=null,ca=null,ua=!1,da=!1,fa=0,pa=0;function ha(){throw Error(n(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ga(e,t,r,o,i,a){if(aa=a,la=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Ya:el,e=r(o,i),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(n(301));a+=1,ca=sa=null,t.updateQueue=null,oa.current=tl,e=r(o,i)}while(da)}if(oa.current=Qa,t=null!==sa&&null!==sa.next,aa=0,ca=sa=la=null,ua=!1,t)throw Error(n(300));return e}function va(){var e=0!==fa;return fa=0,e}function ba(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?la.memoizedState=ca=e:ca=ca.next=e,ca}function ya(){if(null===sa){var e=la.alternate;e=null!==e?e.memoizedState:null}else e=sa.next;var t=null===ca?la.memoizedState:ca.next;if(null!==t)ca=t,sa=e;else{if(null===e)throw Error(n(310));e={memoizedState:(sa=e).memoizedState,baseState:sa.baseState,baseQueue:sa.baseQueue,queue:sa.queue,next:null},null===ca?la.memoizedState=ca=e:ca=ca.next=e}return ca}function xa(e,t){return"function"==typeof t?t(e):t}function Sa(e){var t=ya(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=sa,i=o.baseQueue,a=r.pending;if(null!==a){if(null!==i){var l=i.next;i.next=a.next,a.next=l}o.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,o=o.baseState;var s=l=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),o=u.hasEagerState?u.eagerState:e(o,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(s=c=f,l=o):c=c.next=f,la.lanes|=d,qs|=d}u=u.next}while(null!==u&&u!==a);null===c?l=o:c.next=s,lr(o,t.memoizedState)||(yl=!0),t.memoizedState=o,t.baseState=l,t.baseQueue=c,r.lastRenderedState=o}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,la.lanes|=a,qs|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function wa(e){var t=ya(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var l=i=i.next;do{a=e(a,l.action),l=l.next}while(l!==i);lr(a,t.memoizedState)||(yl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,o]}function Ea(){}function ka(e,t){var r=la,o=ya(),i=t(),a=!lr(o.memoizedState,i);if(a&&(o.memoizedState=i,yl=!0),o=o.queue,qa(Ra.bind(null,r,o,e),[e]),o.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(r.flags|=2048,Ta(9,_a.bind(null,r,o,i,t),void 0,null),null===Os)throw Error(n(349));0!=(30&aa)||Ca(r,t,i)}return i}function Ca(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function _a(e,t,n,r){t.value=n,t.getSnapshot=r,La(t)&&Oa(e)}function Ra(e,t,n){return n((function(){La(t)&&Oa(e)}))}function La(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function Oa(e){var t=Di(e,1);null!==t&&nc(t,e,1,-1)}function Ia(e){var t=ba();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ka.bind(null,la,e),[t.memoizedState,e]}function Ta(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.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 Pa(){return ya().memoizedState}function Ma(e,t,n,r){var o=ba();la.flags|=e,o.memoizedState=Ta(1|t,n,void 0,void 0===r?null:r)}function Na(e,t,n,r){var o=ya();r=void 0===r?null:r;var i=void 0;if(null!==sa){var a=sa.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=Ta(t,n,i,r))}la.flags|=e,o.memoizedState=Ta(1|t,n,i,r)}function Da(e,t){return Ma(8390656,8,e,t)}function qa(e,t){return Na(2048,8,e,t)}function Aa(e,t){return Na(4,2,e,t)}function za(e,t){return Na(4,4,e,t)}function ja(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 Fa(e,t,n){return n=null!=n?n.concat([e]):null,Na(4,4,ja.bind(null,t,e),n)}function $a(){}function Ba(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wa(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ua(e,t,n){return 0==(21&aa)?(e.baseState&&(e.baseState=!1,yl=!0),e.memoizedState=n):(lr(n,t)||(n=mt(),la.lanes|=n,qs|=n,e.baseState=!0),t)}function Ha(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{yt=n,ia.transition=r}}function Va(){return ya().memoizedState}function Ga(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Za(e))Ja(t,n);else if(null!==(n=Ni(e,t,n,r))){nc(n,e,r,ec()),Xa(n,t,r)}}function Ka(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Za(e))Ja(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,lr(l,a)){var s=t.interleaved;return null===s?(o.next=o,Mi(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ni(e,t,o,r))&&(nc(n,e,r,o=ec()),Xa(n,t,r))}}function Za(e){var t=e.alternate;return e===la||null!==t&&t===la}function Ja(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xa(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Qa={readContext:Ti,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Ya={readContext:Ti,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:Ti,useEffect:Da,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ma(4194308,4,ja.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ma(4,2,e,t)},useMemo:function(e,t){var n=ba();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ba();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=Ga.bind(null,la,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ba().memoizedState=e},useState:Ia,useDebugValue:$a,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Ia(!1),t=e[0];return e=Ha.bind(null,e[1]),ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=la,i=ba();if(ii){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Os)throw Error(n(349));0!=(30&aa)||Ca(o,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Da(Ra.bind(null,o,a,e),[e]),o.flags|=2048,Ta(9,_a.bind(null,o,a,r,t),void 0,null),r},useId:function(){var e=ba(),t=Os.identifierPrefix;if(ii){var n=Qo;t=":"+t+"R"+(n=(Xo&~(1<<32-at(Xo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:Ti,useCallback:Ba,useContext:Ti,useEffect:qa,useImperativeHandle:Fa,useInsertionEffect:Aa,useLayoutEffect:za,useMemo:Wa,useReducer:Sa,useRef:Pa,useState:function(){return Sa(xa)},useDebugValue:$a,useDeferredValue:function(e){return Ua(ya(),sa.memoizedState,e)},useTransition:function(){return[Sa(xa)[0],ya().memoizedState]},useMutableSource:Ea,useSyncExternalStore:ka,useId:Va,unstable_isNewReconciler:!1},tl={readContext:Ti,useCallback:Ba,useContext:Ti,useEffect:qa,useImperativeHandle:Fa,useInsertionEffect:Aa,useLayoutEffect:za,useMemo:Wa,useReducer:wa,useRef:Pa,useState:function(){return wa(xa)},useDebugValue:$a,useDeferredValue:function(e){var t=ya();return null===sa?t.memoizedState=e:Ua(t,sa.memoizedState,e)},useTransition:function(){return[wa(xa)[0],ya().memoizedState]},useMutableSource:Ea,useSyncExternalStore:ka,useId:Va,unstable_isNewReconciler:!1};function nl(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return!!(e=e._reactInternals)&&je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=ji(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Fi(e,i,o))&&(nc(t,e,o,r),$i(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=ji(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Fi(e,i,o))&&(nc(t,e,o,r),$i(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=ji(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Fi(e,o,r))&&(nc(t,e,r,n),$i(t,e,r))}};function il(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(o,i))}function al(e,t,n){var r=!1,o=Lo,i=t.contextType;return"object"==typeof i&&null!==i?i=Ti(i):(o=Mo(t)?To:Oo.current,i=(r=null!=(r=t.contextTypes))?Po(e,o):Lo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ll(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&&ol.enqueueReplaceState(t,t.state,null)}function sl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ai(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ti(i):(i=Mo(t)?To:Oo.current,o.context=Po(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rl(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&&ol.enqueueReplaceState(o,o.state,null),Wi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function cl(e,t){try{var n="",r=t;do{n+=j(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 ul(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fl="function"==typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=ji(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Us||(Us=!0,Hs=r),dl(0,t)},n}function hl(e,t,n){(n=ji(-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(){dl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!=typeof r&&(null===Vs?Vs=new Set([this]):Vs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ml(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fl;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=Cc.bind(null,e,t,n),t.then(e,e))}function gl(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 vl(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=ji(-1,1)).tag=2,Fi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var bl=v.ReactCurrentOwner,yl=!1;function xl(e,t,n,r){t.child=null===e?wi(t,null,n,r):Si(t,e.child,n,r)}function Sl(e,t,n,r,o){n=n.render;var i=t.ref;return Ii(t,o),r=ga(e,t,n,r,i,o),n=va(),null===e||yl?(ii&&n&&ti(t),t.flags|=1,xl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ul(e,t,o))}function wl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Pc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,El(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(a,r)&&e.ref===t.ref)return Ul(e,t,o)}return t.flags|=1,(e=Mc(i,r)).ref=t.ref,e.return=t,t.child=e}function El(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(sr(i,r)&&e.ref===t.ref){if(yl=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Ul(e,t,o);0!=(131072&e.flags)&&(yl=!0)}}return _l(e,t,n,r,o)}function kl(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},Ro(Ms,Ps),Ps|=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,Ro(Ms,Ps),Ps|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Ro(Ms,Ps),Ps|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ro(Ms,Ps),Ps|=r;return xl(e,t,o,n),t.child}function Cl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _l(e,t,n,r,o){var i=Mo(n)?To:Oo.current;return i=Po(t,i),Ii(t,o),n=ga(e,t,n,r,i,o),r=va(),null===e||yl?(ii&&r&&ti(t),t.flags|=1,xl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ul(e,t,o))}function Rl(e,t,n,r,o){if(Mo(n)){var i=!0;Ao(t)}else i=!1;if(Ii(t,o),null===t.stateNode)Wl(e,t),al(t,n,r),sl(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=Ti(c):c=Po(t,c=Mo(n)?To:Oo.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)&&ll(t,a,r,c),qi=!1;var f=t.memoizedState;a.state=f,Wi(t,r,a,o),s=t.memoizedState,l!==r||f!==s||Io.current||qi?("function"==typeof u&&(rl(t,n,u,r),s=t.memoizedState),(l=qi||il(t,n,l,r,f,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,zi(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:nl(t.type,l),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Ti(s):s=Po(t,s=Mo(n)?To:Oo.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||f!==s)&&ll(t,a,r,s),qi=!1,f=t.memoizedState,a.state=f,Wi(t,r,a,o);var h=t.memoizedState;l!==d||f!==h||Io.current||qi?("function"==typeof p&&(rl(t,n,p,r),h=t.memoizedState),(c=qi||il(t,n,c,r,f,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&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===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&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ll(e,t,n,r,i,o)}function Ll(e,t,n,r,o,i){Cl(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&zo(t,n,!1),Ul(e,t,i);r=t.stateNode,bl.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Si(t,e.child,null,i),t.child=Si(t,null,l,i)):xl(e,t,l,i),t.memoizedState=r.state,o&&zo(t,n,!0),t.child}function Ol(e){var t=e.stateNode;t.pendingContext?Do(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Do(0,t.context,!1),Ji(e,t.containerInfo)}function Il(e,t,n,r,o){return hi(),mi(o),t.flags|=256,xl(e,t,n,r),t.child}var Tl,Pl,Ml,Nl,Dl={dehydrated:null,treeContext:null,retryLane:0};function ql(e){return{baseLanes:e,cachePool:null,transitions:null}}function Al(e,t,r){var o,i=t.pendingProps,a=ea.current,l=!1,s=0!=(128&t.flags);if((o=s)||(o=(null===e||null!==e.memoizedState)&&0!=(2&a)),o?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ro(ea,1&a),null===e)return ui(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):(s=i.children,e=i.fallback,l?(i=t.mode,l=t.child,s={mode:"hidden",children:s},0==(1&i)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=qc(s,i,0,null),e=Dc(e,i,r,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=ql(r),t.memoizedState=Dl,e):zl(t,s));if(null!==(a=e.memoizedState)&&null!==(o=a.dehydrated))return function(e,t,r,o,i,a,l){if(r)return 256&t.flags?(t.flags&=-257,jl(e,t,l,o=ul(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=o.fallback,i=t.mode,o=qc({mode:"visible",children:o.children},i,0,null),(a=Dc(a,i,l,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,0!=(1&t.mode)&&Si(t,e.child,null,l),t.child.memoizedState=ql(l),t.memoizedState=Dl,a);if(0==(1&t.mode))return jl(e,t,l,null);if("$!"===i.data){if(o=i.nextSibling&&i.nextSibling.dataset)var s=o.dgst;return o=s,jl(e,t,l,o=ul(a=Error(n(419)),o,void 0))}if(s=0!=(l&e.childLanes),yl||s){if(null!==(o=Os)){switch(l&-l){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(o.suspendedLanes|l))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Di(e,i),nc(o,e,i,-1))}return mc(),jl(e,t,l,o=ul(Error(n(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Rc.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,oi=co(i.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Ko[Zo++]=Xo,Ko[Zo++]=Qo,Ko[Zo++]=Jo,Xo=e.id,Qo=e.overflow,Jo=t),t=zl(t,o.children),t.flags|=4096,t)}(e,t,s,i,o,a,r);if(l){l=i.fallback,s=t.mode,o=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 0==(1&s)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Mc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==o?l=Mc(o,l):(l=Dc(l,s,r,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,i=l,l=t.child,s=null===(s=e.child.memoizedState)?ql(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~r,t.memoizedState=Dl,i}return e=(l=e.child).sibling,i=Mc(l,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function zl(e,t){return(t=qc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function jl(e,t,n,r){return null!==r&&mi(r),Si(t,e.child,null,n),(e=zl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Oi(e.return,t,n)}function $l(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 Bl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xl(e,t,r.children,n),0!=(2&(r=ea.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&&Fl(e,n,t);else if(19===e.tag)Fl(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(Ro(ea,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===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$l(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===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$l(t,!0,n,null,i);break;case"together":$l(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wl(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ul(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),qs|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Mc(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Mc(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Hl(e,t){if(!ii)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 Vl(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 Gl(e,t,r){var i=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vl(t),null;case 1:case 17:return Mo(t.type)&&No(),Vl(t),null;case 3:return i=t.stateNode,Xi(),_o(Io),_o(Oo),ra(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ai&&(ac(ai),ai=null))),Pl(e,t),Vl(t),null;case 5:Yi(t);var a=Zi(Ki.current);if(r=t.type,null!==e&&null!=t.stateNode)Ml(e,t,r,i,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(n(166));return Vl(t),null}if(e=Zi(Vi.current),fi(t)){i=t.stateNode,r=t.type;var l=t.memoizedProps;switch(i[po]=t,i[ho]=l,e=0!=(1&t.mode),r){case"dialog":jr("cancel",i),jr("close",i);break;case"iframe":case"object":case"embed":jr("load",i);break;case"video":case"audio":for(a=0;a<Dr.length;a++)jr(Dr[a],i);break;case"source":jr("error",i);break;case"img":case"image":case"link":jr("error",i),jr("load",i);break;case"details":jr("toggle",i);break;case"input":K(i,l),jr("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!l.multiple},jr("invalid",i);break;case"textarea":ne(i,l),jr("invalid",i)}for(var s in me(r,l),a=null,l)if(l.hasOwnProperty(s)){var c=l[s];"children"===s?"string"==typeof c?i.textContent!==c&&(!0!==l.suppressHydrationWarning&&Qr(i.textContent,c,e),a=["children",c]):"number"==typeof c&&i.textContent!==""+c&&(!0!==l.suppressHydrationWarning&&Qr(i.textContent,c,e),a=["children",""+c]):o.hasOwnProperty(s)&&null!=c&&"onScroll"===s&&jr("scroll",i)}switch(r){case"input":U(i),X(i,l,!0);break;case"textarea":U(i),oe(i);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(i.onclick=Yr)}i=a,t.updateQueue=i,null!==i&&(t.flags|=4)}else{s=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ie(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=s.createElement(r,{is:i.is}):(e=s.createElement(r),"select"===r&&(s=e,i.multiple?s.multiple=!0:i.size&&(s.size=i.size))):e=s.createElementNS(e,r),e[po]=t,e[ho]=i,Tl(e,t,!1,!1),t.stateNode=e;e:{switch(s=ge(r,i),r){case"dialog":jr("cancel",e),jr("close",e),a=i;break;case"iframe":case"object":case"embed":jr("load",e),a=i;break;case"video":case"audio":for(a=0;a<Dr.length;a++)jr(Dr[a],e);a=i;break;case"source":jr("error",e),a=i;break;case"img":case"image":case"link":jr("error",e),jr("load",e),a=i;break;case"details":jr("toggle",e),a=i;break;case"input":K(e,i),a=G(e,i),jr("invalid",e);break;case"option":default:a=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},a=D({},i,{value:void 0}),jr("invalid",e);break;case"textarea":ne(e,i),a=te(e,i),jr("invalid",e)}for(l in me(r,a),c=a)if(c.hasOwnProperty(l)){var u=c[l];"style"===l?pe(e,u):"dangerouslySetInnerHTML"===l?null!=(u=u?u.__html:void 0)&&se(e,u):"children"===l?"string"==typeof u?("textarea"!==r||""!==u)&&ce(e,u):"number"==typeof u&&ce(e,""+u):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(o.hasOwnProperty(l)?null!=u&&"onScroll"===l&&jr("scroll",e):null!=u&&g(e,l,u,s))}switch(r){case"input":U(e),X(e,i,!1);break;case"textarea":U(e),oe(e);break;case"option":null!=i.value&&e.setAttribute("value",""+B(i.value));break;case"select":e.multiple=!!i.multiple,null!=(l=i.value)?ee(e,!!i.multiple,l,!1):null!=i.defaultValue&&ee(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Yr)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vl(t),null;case 6:if(e&&null!=t.stateNode)Nl(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(n(166));if(r=Zi(Ki.current),Zi(Vi.current),fi(t)){if(i=t.stateNode,r=t.memoizedProps,i[po]=t,(l=i.nodeValue!==r)&&null!==(e=ri))switch(e.tag){case 3:Qr(i.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(i.nodeValue,r,0!=(1&e.mode))}l&&(t.flags|=4)}else(i=(9===r.nodeType?r:r.ownerDocument).createTextNode(i))[po]=t,t.stateNode=i}return Vl(t),null;case 13:if(_o(ea),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!=(1&t.mode)&&0==(128&t.flags))pi(),hi(),t.flags|=98560,l=!1;else if(l=fi(t),null!==i&&null!==i.dehydrated){if(null===e){if(!l)throw Error(n(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(n(317));l[po]=t}else hi(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vl(t),l=!1}else null!==ai&&(ac(ai),ai=null),l=!0;if(!l)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=r,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ea.current)?0===Ns&&(Ns=3):mc())),null!==t.updateQueue&&(t.flags|=4),Vl(t),null);case 4:return Xi(),Pl(e,t),null===e&&Br(t.stateNode.containerInfo),Vl(t),null;case 10:return Li(t.type._context),Vl(t),null;case 19:if(_o(ea),null===(l=t.memoizedState))return Vl(t),null;if(i=0!=(128&t.flags),null===(s=l.rendering))if(i)Hl(l,!1);else{if(0!==Ns||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=ta(e))){for(t.flags|=128,Hl(l,!1),null!==(i=s.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;null!==r;)e=i,(l=r).flags&=14680066,null===(s=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ro(ea,1&ea.current|2),t.child}e=e.sibling}null!==l.tail&&Ze()>Bs&&(t.flags|=128,i=!0,Hl(l,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=ta(s))){if(t.flags|=128,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Hl(l,!0),null===l.tail&&"hidden"===l.tailMode&&!s.alternate&&!ii)return Vl(t),null}else 2*Ze()-l.renderingStartTime>Bs&&1073741824!==r&&(t.flags|=128,i=!0,Hl(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(null!==(r=l.last)?r.sibling=s:t.child=s,l.last=s)}return null!==l.tail?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Ze(),t.sibling=null,r=ea.current,Ro(ea,i?1&r|2:1&r),t):(Vl(t),null);case 22:case 23:return dc(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&0!=(1&t.mode)?0!=(1073741824&Ps)&&(Vl(t),6&t.subtreeFlags&&(t.flags|=8192)):Vl(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Kl(e,t){switch(ni(t),t.tag){case 1:return Mo(t.type)&&No(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xi(),_o(Io),_o(Oo),ra(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Yi(t),null;case 13:if(_o(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _o(ea),null;case 4:return Xi(),null;case 10:return Li(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Tl=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}},Pl=function(){},Ml=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Zi(Vi.current);var a,l=null;switch(n){case"input":i=G(e,i),r=G(e,r),l=[];break;case"select":i=D({},i,{value:void 0}),r=D({},r,{value:void 0}),l=[];break;case"textarea":i=te(e,i),r=te(e,r),l=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Yr)}for(u in me(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var s=i[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(o.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var c=r[u];if(s=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(null!=c||null!=s))if("style"===u)if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(l||(l=[]),l.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(l=l||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(o.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&jr("scroll",e),l||s===c||(l=[])):(l=l||[]).push(u,c))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}},Nl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Zl=!1,Jl=!1,Xl="function"==typeof WeakSet?WeakSet:Set,Ql=null;function Yl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){kc(e,t,n)}else n.current=null}function es(e,t,n){try{n()}catch(n){kc(e,t,n)}}var ts=!1;function ns(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&&es(t,n,i)}o=o.next}while(o!==r)}}function rs(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 os(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 is(e){var t=e.alternate;null!==t&&(e.alternate=null,is(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[go],delete t[vo],delete t[bo])),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 as(e){return 5===e.tag||3===e.tag||4===e.tag}function ls(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||as(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 ss(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=Yr));else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}function cs(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(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}var us=null,ds=!1;function fs(e,t,n){for(n=n.child;null!==n;)ps(e,t,n),n=n.sibling}function ps(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Jl||Yl(n,t);case 6:var r=us,o=ds;us=null,fs(e,t,n),ds=o,null!==(us=r)&&(ds?(e=us,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):us.removeChild(n.stateNode));break;case 18:null!==us&&(ds?(e=us,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),Bt(e)):so(us,n.stateNode));break;case 4:r=us,o=ds,us=n.stateNode.containerInfo,ds=!0,fs(e,t,n),us=r,ds=o;break;case 0:case 11:case 14:case 15:if(!Jl&&(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))&&es(n,t,a),o=o.next}while(o!==r)}fs(e,t,n);break;case 1:if(!Jl&&(Yl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){kc(n,t,e)}fs(e,t,n);break;case 21:fs(e,t,n);break;case 22:1&n.mode?(Jl=(r=Jl)||null!==n.memoizedState,fs(e,t,n),Jl=r):fs(e,t,n);break;default:fs(e,t,n)}}function hs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xl),t.forEach((function(t){var r=Lc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ms(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o];try{var a=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:us=s.stateNode,ds=!1;break e;case 3:case 4:us=s.stateNode.containerInfo,ds=!0;break e}s=s.return}if(null===us)throw Error(n(160));ps(a,l,i),us=null,ds=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(e){kc(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gs(t,e),t=t.sibling}function gs(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ms(t,e),vs(e),4&o){try{ns(3,e,e.return),rs(3,e)}catch(t){kc(e,e.return,t)}try{ns(5,e,e.return)}catch(t){kc(e,e.return,t)}}break;case 1:ms(t,e),vs(e),512&o&&null!==r&&Yl(r,r.return);break;case 5:if(ms(t,e),vs(e),512&o&&null!==r&&Yl(r,r.return),32&e.flags){var i=e.stateNode;try{ce(i,"")}catch(t){kc(e,e.return,t)}}if(4&o&&null!=(i=e.stateNode)){var a=e.memoizedProps,l=null!==r?r.memoizedProps:a,s=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===s&&"radio"===a.type&&null!=a.name&&Z(i,a),ge(s,l);var u=ge(s,a);for(l=0;l<c.length;l+=2){var d=c[l],f=c[l+1];"style"===d?pe(i,f):"dangerouslySetInnerHTML"===d?se(i,f):"children"===d?ce(i,f):g(i,d,f,u)}switch(s){case"input":J(i,a);break;case"textarea":re(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ee(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ee(i,!!a.multiple,a.defaultValue,!0):ee(i,!!a.multiple,a.multiple?[]:"",!1))}i[ho]=a}catch(t){kc(e,e.return,t)}}break;case 6:if(ms(t,e),vs(e),4&o){if(null===e.stateNode)throw Error(n(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){kc(e,e.return,t)}}break;case 3:if(ms(t,e),vs(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{Bt(t.containerInfo)}catch(t){kc(e,e.return,t)}break;case 4:default:ms(t,e),vs(e);break;case 13:ms(t,e),vs(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||($s=Ze())),4&o&&hs(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Jl=(u=Jl)||d,ms(t,e),Jl=u):ms(t,e),vs(e),8192&o){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Ql=e,d=e.child;null!==d;){for(f=Ql=d;null!==Ql;){switch(h=(p=Ql).child,p.tag){case 0:case 11:case 14:case 15:ns(4,p,p.return);break;case 1:Yl(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){o=p,r=p.return;try{t=o,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){kc(o,r,e)}}break;case 5:Yl(p,p.return);break;case 22:if(null!==p.memoizedState){Ss(f);continue}}null!==h?(h.return=p,Ql=h):Ss(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,u?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=f.stateNode,l=null!=(c=f.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,s.style.display=fe("display",l))}catch(t){kc(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(t){kc(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ms(t,e),vs(e),4&o&&hs(e);case 21:}}function vs(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(as(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(ce(i,""),o.flags&=-33),cs(e,ls(e),i);break;case 3:case 4:var a=o.stateNode.containerInfo;ss(e,ls(e),a);break;default:throw Error(n(161))}}catch(t){kc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bs(e,t,n){Ql=e,ys(e)}function ys(e,t,n){for(var r=0!=(1&e.mode);null!==Ql;){var o=Ql,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Zl;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Jl;l=Zl;var c=Jl;if(Zl=a,(Jl=s)&&!c)for(Ql=o;null!==Ql;)s=(a=Ql).child,22===a.tag&&null!==a.memoizedState?ws(o):null!==s?(s.return=a,Ql=s):ws(o);for(;null!==i;)Ql=i,ys(i),i=i.sibling;Ql=o,Zl=l,Jl=c}xs(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Ql=i):xs(e)}}function xs(e){for(;null!==Ql;){var t=Ql;if(0!=(8772&t.flags)){var r=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Jl||rs(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Jl)if(null===r)o.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:nl(t.type,r.memoizedProps);o.componentDidUpdate(i,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ui(t,a,o);break;case 3:var l=t.updateQueue;if(null!==l){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Ui(t,l,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Bt(f)}}}break;default:throw Error(n(163))}Jl||512&t.flags&&os(t)}catch(e){kc(t,t.return,e)}}if(t===e){Ql=null;break}if(null!==(r=t.sibling)){r.return=t.return,Ql=r;break}Ql=t.return}}function Ss(e){for(;null!==Ql;){var t=Ql;if(t===e){Ql=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ql=n;break}Ql=t.return}}function ws(e){for(;null!==Ql;){var t=Ql;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rs(4,t)}catch(e){kc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){kc(t,o,e)}}var i=t.return;try{os(t)}catch(e){kc(t,i,e)}break;case 5:var a=t.return;try{os(t)}catch(e){kc(t,a,e)}}}catch(e){kc(t,t.return,e)}if(t===e){Ql=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Ql=l;break}Ql=t.return}}var Es,ks=Math.ceil,Cs=v.ReactCurrentDispatcher,_s=v.ReactCurrentOwner,Rs=v.ReactCurrentBatchConfig,Ls=0,Os=null,Is=null,Ts=0,Ps=0,Ms=Co(0),Ns=0,Ds=null,qs=0,As=0,zs=0,js=null,Fs=null,$s=0,Bs=1/0,Ws=null,Us=!1,Hs=null,Vs=null,Gs=!1,Ks=null,Zs=0,Js=0,Xs=null,Qs=-1,Ys=0;function ec(){return 0!=(6&Ls)?Ze():-1!==Qs?Qs:Qs=Ze()}function tc(e){return 0==(1&e.mode)?1:0!=(2&Ls)&&0!==Ts?Ts&-Ts:null!==gi.transition?(0===Ys&&(Ys=mt()),Ys):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Jt(e.type)}function nc(e,t,r,o){if(50<Js)throw Js=0,Xs=null,Error(n(185));vt(e,r,o),0!=(2&Ls)&&e===Os||(e===Os&&(0==(2&Ls)&&(As|=r),4===Ns&&lc(e,Ts)),rc(e,o),1===r&&0===Ls&&0==(1&t.mode)&&(Bs=Ze()+500,Fo&&Wo()))}function rc(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-at(i),l=1<<a,s=o[a];-1===s?0!=(l&n)&&0==(l&r)||(o[a]=pt(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=ft(e,e===Os?Ts:0);if(0===r)null!==n&&He(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&He(n),1===t)0===e.tag?function(e){Fo=!0,Bo(e)}(sc.bind(null,e)):Bo(sc.bind(null,e)),ao((function(){0==(6&Ls)&&Wo()})),n=null;else{switch(xt(r)){case 1:n=Xe;break;case 4:n=Ye;break;case 16:default:n=et;break;case 536870912:n=rt}n=Oc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Qs=-1,Ys=0,0!=(6&Ls))throw Error(n(327));var r=e.callbackNode;if(wc()&&e.callbackNode!==r)return null;var o=ft(e,e===Os?Ts:0);if(0===o)return null;if(0!=(30&o)||0!=(o&e.expiredLanes)||t)t=gc(e,o);else{t=o;var i=Ls;Ls|=2;var a=hc();for(Os===e&&Ts===t||(Ws=null,Bs=Ze()+500,fc(e,t));;)try{bc();break}catch(t){pc(e,t)}Ri(),Cs.current=a,Ls=i,null!==Is?t=0:(Os=null,Ts=0,t=Ns)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(o=i,t=ic(e,i))),1===t)throw r=Ds,fc(e,0),lc(e,o),rc(e,Ze()),r;if(6===t)lc(e,o);else{if(i=e.current.alternate,0==(30&o)&&!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(!lr(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}(i)&&(2===(t=gc(e,o))&&(0!==(a=ht(e))&&(o=a,t=ic(e,a))),1===t))throw r=Ds,fc(e,0),lc(e,o),rc(e,Ze()),r;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:Sc(e,Fs,Ws);break;case 3:if(lc(e,o),(130023424&o)===o&&10<(t=$s+500-Ze())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&o)!==o){ec(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ro(Sc.bind(null,e,Fs,Ws),t);break}Sc(e,Fs,Ws);break;case 4:if(lc(e,o),(4194240&o)===o)break;for(t=e.eventTimes,i=-1;0<o;){var l=31-at(o);a=1<<l,(l=t[l])>i&&(i=l),o&=~a}if(o=i,10<(o=(120>(o=Ze()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*ks(o/1960))-o)){e.timeoutHandle=ro(Sc.bind(null,e,Fs,Ws),o);break}Sc(e,Fs,Ws);break;default:throw Error(n(329))}}}return rc(e,Ze()),e.callbackNode===r?oc.bind(null,e):null}function ic(e,t){var n=js;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Fs,Fs=n,null!==t&&ac(t)),e}function ac(e){null===Fs?Fs=e:Fs.push.apply(Fs,e)}function lc(e,t){for(t&=~zs,t&=~As,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function sc(e){if(0!=(6&Ls))throw Error(n(327));wc();var t=ft(e,0);if(0==(1&t))return rc(e,Ze()),null;var r=gc(e,t);if(0!==e.tag&&2===r){var o=ht(e);0!==o&&(t=o,r=ic(e,o))}if(1===r)throw r=Ds,fc(e,0),lc(e,t),rc(e,Ze()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sc(e,Fs,Ws),rc(e,Ze()),null}function cc(e,t){var n=Ls;Ls|=1;try{return e(t)}finally{0===(Ls=n)&&(Bs=Ze()+500,Fo&&Wo())}}function uc(e){null!==Ks&&0===Ks.tag&&0==(6&Ls)&&wc();var t=Ls;Ls|=1;var n=Rs.transition,r=yt;try{if(Rs.transition=null,yt=1,e)return e()}finally{yt=r,Rs.transition=n,0==(6&(Ls=t))&&Wo()}}function dc(){Ps=Ms.current,_o(Ms)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Is)for(n=Is.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&No();break;case 3:Xi(),_o(Io),_o(Oo),ra();break;case 5:Yi(r);break;case 4:Xi();break;case 13:case 19:_o(ea);break;case 10:Li(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Os=e,Is=e=Mc(e.current,null),Ts=Ps=t,Ns=0,Ds=null,zs=As=qs=0,Fs=js=null,null!==Pi){for(t=0;t<Pi.length;t++)if(null!==(r=(n=Pi[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}Pi=null}return e}function pc(e,t){for(;;){var r=Is;try{if(Ri(),oa.current=Qa,ua){for(var o=la.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}ua=!1}if(aa=0,ca=sa=la=null,da=!1,fa=0,_s.current=null,null===r||null===r.return){Ns=1,Ds=t,Is=null;break}e:{var a=e,l=r.return,s=r,c=t;if(t=Ts,s.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=s,f=d.tag;if(0==(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gl(l);if(null!==h){h.flags&=-257,vl(h,l,s,0,t),1&h.mode&&ml(a,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0==(1&t)){ml(a,u,t),mc();break e}c=Error(n(426))}else if(ii&&1&s.mode){var v=gl(l);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),vl(v,l,s,0,t),mi(cl(c,s));break e}}a=c=cl(c,s),4!==Ns&&(Ns=2),null===js?js=[a]:js.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Bi(a,pl(0,c,t));break e;case 1:s=c;var b=a.type,y=a.stateNode;if(0==(128&a.flags)&&("function"==typeof b.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===Vs||!Vs.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Bi(a,hl(a,s,t));break e}}a=a.return}while(null!==a)}xc(r)}catch(e){t=e,Is===r&&null!==r&&(Is=r=r.return);continue}break}}function hc(){var e=Cs.current;return Cs.current=Qa,null===e?Qa:e}function mc(){0!==Ns&&3!==Ns&&2!==Ns||(Ns=4),null===Os||0==(268435455&qs)&&0==(268435455&As)||lc(Os,Ts)}function gc(e,t){var r=Ls;Ls|=2;var o=hc();for(Os===e&&Ts===t||(Ws=null,fc(e,t));;)try{vc();break}catch(t){pc(e,t)}if(Ri(),Ls=r,Cs.current=o,null!==Is)throw Error(n(261));return Os=null,Ts=0,Ns}function vc(){for(;null!==Is;)yc(Is)}function bc(){for(;null!==Is&&!Ve();)yc(Is)}function yc(e){var t=Es(e.alternate,e,Ps);e.memoizedProps=e.pendingProps,null===t?xc(e):Is=t,_s.current=null}function xc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Gl(n,t,Ps)))return void(Is=n)}else{if(null!==(n=Kl(n,t)))return n.flags&=32767,void(Is=n);if(null===e)return Ns=6,void(Is=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Is=t);Is=t=e}while(null!==t);0===Ns&&(Ns=5)}function Sc(e,t,r){var o=yt,i=Rs.transition;try{Rs.transition=null,yt=1,function(e,t,r,o){do{wc()}while(null!==Ks);if(0!=(6&Ls))throw Error(n(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.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-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Os&&(Is=Os=null,Ts=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||Gs||(Gs=!0,Oc(et,(function(){return wc(),null}))),a=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||a){a=Rs.transition,Rs.transition=null;var l=yt;yt=1;var s=Ls;Ls|=4,_s.current=null,function(e,t){if(eo=Ut,pr(e=fr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var l=0,s=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||0!==i&&3!==f.nodeType||(s=l+i),f!==a||0!==o&&3!==f.nodeType||(c=l+o),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++u===i&&(s=l),p===a&&++d===o&&(c=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}r=-1===s||-1===c?null:{start:s,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},Ut=!1,Ql=t;null!==Ql;)if(e=(t=Ql).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Ql=e;else for(;null!==Ql;){t=Ql;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:nl(t.type,g),v);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(n(163))}}catch(e){kc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ql=e;break}Ql=t.return}m=ts,ts=!1}(e,r),gs(r,e),hr(to),Ut=!!eo,to=eo=null,e.current=r,bs(r),Ke(),Ls=s,yt=l,Rs.transition=a}else e.current=r;if(Gs&&(Gs=!1,Ks=e,Zs=i),a=e.pendingLanes,0===a&&(Vs=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode),rc(e,Ze()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],o(i.value,{componentStack:i.stack,digest:i.digest});if(Us)throw Us=!1,e=Hs,Hs=null,e;0!=(1&Zs)&&0!==e.tag&&wc(),a=e.pendingLanes,0!=(1&a)?e===Xs?Js++:(Js=0,Xs=e):Js=0,Wo()}(e,t,r,o)}finally{Rs.transition=i,yt=o}return null}function wc(){if(null!==Ks){var e=xt(Zs),t=Rs.transition,r=yt;try{if(Rs.transition=null,yt=16>e?16:e,null===Ks)var o=!1;else{if(e=Ks,Ks=null,Zs=0,0!=(6&Ls))throw Error(n(331));var i=Ls;for(Ls|=4,Ql=e.current;null!==Ql;){var a=Ql,l=a.child;if(0!=(16&Ql.flags)){var s=a.deletions;if(null!==s){for(var c=0;c<s.length;c++){var u=s[c];for(Ql=u;null!==Ql;){var d=Ql;switch(d.tag){case 0:case 11:case 15:ns(8,d,a)}var f=d.child;if(null!==f)f.return=d,Ql=f;else for(;null!==Ql;){var p=(d=Ql).sibling,h=d.return;if(is(d),d===u){Ql=null;break}if(null!==p){p.return=h,Ql=p;break}Ql=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Ql=a}}if(0!=(2064&a.subtreeFlags)&&null!==l)l.return=a,Ql=l;else e:for(;null!==Ql;){if(0!=(2048&(a=Ql).flags))switch(a.tag){case 0:case 11:case 15:ns(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,Ql=b;break e}Ql=a.return}}var y=e.current;for(Ql=y;null!==Ql;){var x=(l=Ql).child;if(0!=(2064&l.subtreeFlags)&&null!==x)x.return=l,Ql=x;else e:for(l=y;null!==Ql;){if(0!=(2048&(s=Ql).flags))try{switch(s.tag){case 0:case 11:case 15:rs(9,s)}}catch(e){kc(s,s.return,e)}if(s===l){Ql=null;break e}var S=s.sibling;if(null!==S){S.return=s.return,Ql=S;break e}Ql=s.return}}if(Ls=i,Wo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}o=!0}return o}finally{yt=r,Rs.transition=t}}return!1}function Ec(e,t,n){e=Fi(e,t=pl(0,t=cl(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),rc(e,t))}function kc(e,t,n){if(3===e.tag)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vs||!Vs.has(r))){t=Fi(t,e=hl(t,e=cl(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),rc(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Os===e&&(Ts&n)===n&&(4===Ns||3===Ns&&(130023424&Ts)===Ts&&500>Ze()-$s?fc(e,0):zs|=n),rc(e,t)}function _c(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=Di(e,t))&&(vt(e,t,n),rc(e,n))}function Rc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),_c(e,n)}function Lc(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),_c(e,r)}function Oc(e,t){return Ue(e,t)}function Ic(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 Tc(e,t,n,r){return new Ic(e,t,n,r)}function Pc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mc(e,t){var n=e.alternate;return null===n?((n=Tc(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 Nc(e,t,r,o,i,a){var l=2;if(o=e,"function"==typeof e)Pc(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case S:return Dc(r.children,i,a,t);case w:l=8,i|=8;break;case E:return(e=Tc(12,r,t,2|i)).elementType=E,e.lanes=a,e;case R:return(e=Tc(13,r,t,i)).elementType=R,e.lanes=a,e;case L:return(e=Tc(19,r,t,i)).elementType=L,e.lanes=a,e;case T:return qc(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:l=10;break e;case C:l=9;break e;case _:l=11;break e;case O:l=14;break e;case I:l=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Tc(l,r,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Dc(e,t,n,r){return(e=Tc(7,e,r,t)).lanes=n,e}function qc(e,t,n,r){return(e=Tc(22,e,r,t)).elementType=T,e.lanes=n,e.stateNode={isHidden:!1},e}function Ac(e,t,n){return(e=Tc(6,e,null,t)).lanes=n,e}function zc(e,t,n){return(t=Tc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jc(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=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fc(e,t,n,r,o,i,a,l,s){return e=new jc(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Tc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ai(i),e}function $c(e){if(!e)return Lo;e:{if(je(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Mo(r))return qo(e,r,t)}return t}function Bc(e,t,n,r,o,i,a,l,s){return(e=Fc(n,r,!0,e,0,i,0,l,s)).context=$c(null),n=e.current,(i=ji(r=ec(),o=tc(n))).callback=null!=t?t:null,Fi(n,i,o),e.current.lanes=o,vt(e,o,r),rc(e,r),e}function Wc(e,t,n,r){var o=t.current,i=ec(),a=tc(o);return n=$c(n),null===t.context?t.context=n:t.pendingContext=n,(t=ji(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Fi(o,t,a))&&(nc(e,o,a,i),$i(e,o,a)),a}function Uc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vc(e,t){Hc(e,t),(e=e.alternate)&&Hc(e,t)}Es=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Io.current)yl=!0;else{if(0==(e.lanes&r)&&0==(128&t.flags))return yl=!1,function(e,t,n){switch(t.tag){case 3:Ol(t),hi();break;case 5:Qi(t);break;case 1:Mo(t.type)&&Ao(t);break;case 4:Ji(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ro(Ei,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ro(ea,1&ea.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Al(e,t,n):(Ro(ea,1&ea.current),null!==(e=Ul(e,t,n))?e.sibling:null);Ro(ea,1&ea.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Bl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ro(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,kl(e,t,n)}return Ul(e,t,n)}(e,t,r);yl=0!=(131072&e.flags)}else yl=!1,ii&&0!=(1048576&t.flags)&&ei(t,Go,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Wl(e,t),e=t.pendingProps;var i=Po(t,Oo.current);Ii(t,r),i=ga(null,t,o,e,i,r);var a=va();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mo(o)?(a=!0,Ao(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ai(t),i.updater=ol,t.stateNode=i,i._reactInternals=t,sl(t,o,e,r),t=Ll(null,t,o,!0,a,r)):(t.tag=0,ii&&a&&ti(t),xl(null,t,i,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Pc(e)?1:0;if(null!=e){if((e=e.$$typeof)===_)return 11;if(e===O)return 14}return 2}(o),e=nl(o,e),i){case 0:t=_l(null,t,o,e,r);break e;case 1:t=Rl(null,t,o,e,r);break e;case 11:t=Sl(null,t,o,e,r);break e;case 14:t=wl(null,t,o,nl(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,_l(e,t,o,i=t.elementType===o?i:nl(o,i),r);case 1:return o=t.type,i=t.pendingProps,Rl(e,t,o,i=t.elementType===o?i:nl(o,i),r);case 3:e:{if(Ol(t),null===e)throw Error(n(387));o=t.pendingProps,i=(a=t.memoizedState).element,zi(e,t),Wi(t,o,null,r);var l=t.memoizedState;if(o=l.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Il(e,t,o,r,i=cl(Error(n(423)),t));break e}if(o!==i){t=Il(e,t,o,r,i=cl(Error(n(424)),t));break e}for(oi=co(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,r=wi(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(hi(),o===i){t=Ul(e,t,r);break e}xl(e,t,o,r)}t=t.child}return t;case 5:return Qi(t),null===e&&ui(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,l=i.children,no(o,i)?l=null:null!==a&&no(o,a)&&(t.flags|=32),Cl(e,t),xl(e,t,l,r),t.child;case 6:return null===e&&ui(t),null;case 13:return Al(e,t,r);case 4:return Ji(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Si(t,null,o,r):xl(e,t,o,r),t.child;case 11:return o=t.type,i=t.pendingProps,Sl(e,t,o,i=t.elementType===o?i:nl(o,i),r);case 7:return xl(e,t,t.pendingProps,r),t.child;case 8:case 12:return xl(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,a=t.memoizedProps,l=i.value,Ro(Ei,o._currentValue),o._currentValue=l,null!==a)if(lr(a.value,l)){if(a.children===i.children&&!Io.current){t=Ul(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){l=a.child;for(var c=s.firstContext;null!==c;){if(c.context===o){if(1===a.tag){(c=ji(-1,r&-r)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=r,null!==(c=a.alternate)&&(c.lanes|=r),Oi(a.return,r,t),s.lanes|=r;break}c=c.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(n(341));l.lanes|=r,null!==(s=l.alternate)&&(s.lanes|=r),Oi(l,r,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}xl(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,Ii(t,r),o=o(i=Ti(i)),t.flags|=1,xl(e,t,o,r),t.child;case 14:return i=nl(o=t.type,t.pendingProps),wl(e,t,o,i=nl(o.type,i),r);case 15:return El(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:nl(o,i),Wl(e,t),t.tag=1,Mo(o)?(e=!0,Ao(t)):e=!1,Ii(t,r),al(t,o,i),sl(t,o,i,r),Ll(null,t,o,!0,e,r);case 19:return Bl(e,t,r);case 22:return kl(e,t,r)}throw Error(n(156,t.tag))};var Gc="function"==typeof reportError?reportError:function(e){console.error(e)};function Kc(e){this._internalRoot=e}function Zc(e){this._internalRoot=e}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qc(){}function Yc(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=Uc(a);l.call(e)}}Wc(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=Uc(a);i.call(e)}}var a=Bc(t,r,e,0,null,!1,0,"",Qc);return e._reactRootContainer=a,e[mo]=a.current,Br(8===e.nodeType?e.parentNode:e),uc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Uc(s);l.call(e)}}var s=Fc(e,0,!1,null,0,!1,0,"",Qc);return e._reactRootContainer=s,e[mo]=s.current,Br(8===e.nodeType?e.parentNode:e),uc((function(){Wc(t,s,n,r)})),s}(n,t,e,o,r);return Uc(a)}Zc.prototype.render=Kc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Wc(e,t,null,null)},Zc.prototype.unmount=Kc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Wc(null,e,null,null)})),t[mo]=null}},Zc.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&At(e)}},St=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),rc(t,Ze()),0==(6&Ls)&&(Bs=Ze()+500,Wo()))}break;case 13:uc((function(){var t=Di(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Vc(e,1)}},wt=function(e){if(13===e.tag){var t=Di(e,134217728);if(null!==t)nc(t,e,134217728,ec());Vc(e,134217728)}},Et=function(e){if(13===e.tag){var t=tc(e),n=Di(e,t);if(null!==n)nc(n,e,t,ec());Vc(e,t)}},kt=function(){return yt},Ct=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},ye=function(e,t,r){switch(t){case"input":if(J(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var i=wo(o);if(!i)throw Error(n(90));H(o),J(o,i)}}}break;case"textarea":re(e,r);break;case"select":null!=(t=r.value)&&ee(e,!!r.multiple,t,!1)}},Ce=cc,_e=uc;var eu={usingClientEntryPoint:!1,Events:[xo,So,wo,Ee,ke,cc]},tu={findFiberByHostInstance:yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:v.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Be(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),it=ru}catch(e){}}return Qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,Qe.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Jc(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},Qe.createRoot=function(e,t){if(!Jc(e))throw Error(n(299));var r=!1,o="",i=Gc;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Fc(e,1,!1,null,0,r,0,o,i),e[mo]=t.current,Br(8===e.nodeType?e.parentNode:e),new Kc(t)},Qe.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(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=Be(t))?null:e.stateNode},Qe.flushSync=function(e){return uc(e)},Qe.hydrate=function(e,t,r){if(!Xc(t))throw Error(n(200));return Yc(null,e,t,!0,r)},Qe.hydrateRoot=function(e,t,r){if(!Jc(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,i=!1,a="",l=Gc;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(l=r.onRecoverableError)),t=Bc(t,null,e,1,null!=r?r:null,i,0,a,l),e[mo]=t.current,Br(e),o)for(e=0;e<o.length;e++)i=(i=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Zc(t)},Qe.render=function(e,t,r){if(!Xc(t))throw Error(n(200));return Yc(null,e,t,!1,r)},Qe.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(n(40));return!!e._reactRootContainer&&(uc((function(){Yc(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},Qe.unstable_batchedUpdates=cc,Qe.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Xc(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Yc(e,t,r,!1,o)},Qe.version="18.3.1-next-f1338f8080-20240426",Qe}function rt(){if(Ke)return Xe.exports;return Ke=1,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)}}(),Xe.exports=nt(),Xe.exports}var ot=function(){if(Ze)return Je;Ze=1;var e=rt();return Je.createRoot=e.createRoot,Je.hydrateRoot=e.hydrateRoot,Je}(),it=r(ot);function at(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."}var lt=Object.freeze({__proto__:null,default:at}),st="$$material";function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ct.apply(null,arguments)}function ut(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var dt=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),ft="-ms-",pt="-moz-",ht="-webkit-",mt="comm",gt="rule",vt="decl",bt="@keyframes",yt=Math.abs,xt=String.fromCharCode,St=Object.assign;function wt(e,t){return 45^Rt(e,0)?(((t<<2^Rt(e,0))<<2^Rt(e,1))<<2^Rt(e,2))<<2^Rt(e,3):0}function Et(e){return e.trim()}function kt(e,t){return(e=t.exec(e))?e[0]:e}function Ct(e,t,n){return e.replace(t,n)}function _t(e,t){return e.indexOf(t)}function Rt(e,t){return 0|e.charCodeAt(t)}function Lt(e,t,n){return e.slice(t,n)}function Ot(e){return e.length}function It(e){return e.length}function Tt(e,t){return t.push(e),e}function Pt(e,t){return e.map(t).join("")}var Mt=1,Nt=1,Dt=0,qt=0,At=0,zt="";function jt(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Mt,column:Nt,length:a,return:""}}function Ft(e,t){return St(jt("",null,null,"",null,null,0),e,{length:-e.length},t)}function $t(){return At=qt>0?Rt(zt,--qt):0,Nt--,10===At&&(Nt=1,Mt--),At}function Bt(){return At=qt<Dt?Rt(zt,qt++):0,Nt++,10===At&&(Nt=1,Mt++),At}function Wt(){return Rt(zt,qt)}function Ut(){return qt}function Ht(e,t){return Lt(zt,e,t)}function Vt(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 Gt(e){return Mt=Nt=1,Dt=Ot(zt=e),qt=0,[]}function Kt(e){return zt="",e}function Zt(e){return Et(Ht(qt-1,Qt(91===e?e+2:40===e?e+1:e)))}function Jt(e){for(;(At=Wt())&&At<33;)Bt();return Vt(e)>2||Vt(At)>3?"":" "}function Xt(e,t){for(;--t&&Bt()&&!(At<48||At>102||At>57&&At<65||At>70&&At<97););return Ht(e,Ut()+(t<6&&32==Wt()&&32==Bt()))}function Qt(e){for(;Bt();)switch(At){case e:return qt;case 34:case 39:34!==e&&39!==e&&Qt(At);break;case 40:41===e&&Qt(e);break;case 92:Bt()}return qt}function Yt(e,t){for(;Bt()&&e+At!==57&&(e+At!==84||47!==Wt()););return"/*"+Ht(t,qt-1)+"*"+xt(47===e?e:Bt())}function en(e){for(;!Vt(Wt());)Bt();return Ht(e,qt)}function tn(e){return Kt(nn("",null,null,null,[""],e=Gt(e),0,[0],e))}function nn(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,f=0,p=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=Bt()){case 40:if(108!=h&&58==Rt(E,d-1)){-1!=_t(E+=Ct(Zt(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=Zt(b);break;case 9:case 10:case 13:case 32:E+=Jt(h);break;case 92:E+=Xt(Ut()-1,7);continue;case 47:switch(Wt()){case 42:case 47:Tt(on(Yt(Bt(),Ut()),t,n),s);break;default:E+="/"}break;case 123*m:l[c++]=Ot(E)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(E=Ct(E,/\f/g,"")),p>0&&Ot(E)-d&&Tt(p>32?an(E+";",r,n,d-1):an(Ct(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(Tt(w=rn(E,t,n,c,u,o,l,y,x=[],S=[],d),i),123===b)if(0===u)nn(E,t,w,w,x,i,d,l,S);else switch(99===f&&110===Rt(E,3)?100:f){case 100:case 108:case 109:case 115:nn(e,w,w,r&&Tt(rn(e,w,w,0,0,o,l,y,o,x=[],d),S),o,S,d,l,r?x:S);break;default:nn(E,w,w,w,[""],S,0,l,S)}}c=u=p=0,m=v=1,y=E="",d=a;break;case 58:d=1+Ot(E),p=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==$t())continue;switch(E+=xt(b),b*m){case 38:v=u>0?1:(E+="\f",-1);break;case 44:l[c++]=(Ot(E)-1)*v,v=1;break;case 64:45===Wt()&&(E+=Zt(Bt())),f=Wt(),u=d=Ot(y=E+=en(Ut())),b++;break;case 45:45===h&&2==Ot(E)&&(m=0)}}return i}function rn(e,t,n,r,o,i,a,l,s,c,u){for(var d=o-1,f=0===o?i:[""],p=It(f),h=0,m=0,g=0;h<r;++h)for(var v=0,b=Lt(e,d+1,d=yt(m=a[h])),y=e;v<p;++v)(y=Et(m>0?f[v]+" "+b:Ct(b,/&\f/g,f[v])))&&(s[g++]=y);return jt(e,t,n,0===o?gt:l,s,c,u)}function on(e,t,n){return jt(e,t,n,mt,xt(At),Lt(e,2,-2),0)}function an(e,t,n,r){return jt(e,t,n,vt,Lt(e,0,r),Lt(e,r+1,-1),r)}function ln(e,t){for(var n="",r=It(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function sn(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case vt:return e.return=e.return||e.value;case mt:return"";case bt:return e.return=e.value+"{"+ln(e.children,r)+"}";case gt:e.value=e.props.join(",")}return Ot(n=ln(e.children,r))?e.return=e.value+"{"+n+"}":""}function cn(e){var t=It(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}function un(e){return function(t){t.root||(t=t.return)&&e(t)}}var dn=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 fn(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var pn="undefined"!=typeof document,hn=function(e,t,n){for(var r=0,o=0;r=o,o=Wt(),38===r&&12===o&&(t[n]=1),!Vt(o);)Bt();return Ht(e,qt)},mn=function(e,t){return Kt(function(e,t){var n=-1,r=44;do{switch(Vt(r)){case 0:38===r&&12===Wt()&&(t[n]=1),e[n]+=hn(qt-1,t,n);break;case 2:e[n]+=Zt(r);break;case 4:if(44===r){e[++n]=58===Wt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=xt(r)}}while(r=Bt());return e}(Gt(e),t))},gn=new WeakMap,vn=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)||gn.get(n))&&!r){gn.set(e,!0);for(var o=[],i=mn(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]}}},bn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function yn(e,t){switch(wt(e,t)){case 5103:return ht+"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 ht+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ht+e+pt+e+ft+e+e;case 6828:case 4268:return ht+e+ft+e+e;case 6165:return ht+e+ft+"flex-"+e+e;case 5187:return ht+e+Ct(e,/(\w+).+(:[^]+)/,ht+"box-$1$2"+ft+"flex-$1$2")+e;case 5443:return ht+e+ft+"flex-item-"+Ct(e,/flex-|-self/,"")+e;case 4675:return ht+e+ft+"flex-line-pack"+Ct(e,/align-content|flex-|-self/,"")+e;case 5548:return ht+e+ft+Ct(e,"shrink","negative")+e;case 5292:return ht+e+ft+Ct(e,"basis","preferred-size")+e;case 6060:return ht+"box-"+Ct(e,"-grow","")+ht+e+ft+Ct(e,"grow","positive")+e;case 4554:return ht+Ct(e,/([^-])(transform)/g,"$1"+ht+"$2")+e;case 6187:return Ct(Ct(Ct(e,/(zoom-|grab)/,ht+"$1"),/(image-set)/,ht+"$1"),e,"")+e;case 5495:case 3959:return Ct(e,/(image-set\([^]*)/,ht+"$1$`$1");case 4968:return Ct(Ct(e,/(.+:)(flex-)?(.*)/,ht+"box-pack:$3"+ft+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ht+e+e;case 4095:case 3583:case 4068:case 2532:return Ct(e,/(.+)-inline(.+)/,ht+"$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(Ot(e)-1-t>6)switch(Rt(e,t+1)){case 109:if(45!==Rt(e,t+4))break;case 102:return Ct(e,/(.+:)(.+)-([^]+)/,"$1"+ht+"$2-$3$1"+pt+(108==Rt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~_t(e,"stretch")?yn(Ct(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Rt(e,t+1))break;case 6444:switch(Rt(e,Ot(e)-3-(~_t(e,"!important")&&10))){case 107:return Ct(e,":",":"+ht)+e;case 101:return Ct(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ht+(45===Rt(e,14)?"inline-":"")+"box$3$1"+ht+"$2$3$1"+ft+"$2box$3")+e}break;case 5936:switch(Rt(e,t+11)){case 114:return ht+e+ft+Ct(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ht+e+ft+Ct(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ht+e+ft+Ct(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ht+e+ft+e+e}return e}var xn,Sn,wn,En,kn=pn?void 0:dn((function(){return fn((function(){return{}}))})),Cn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case vt:e.return=yn(e.value,e.length);break;case bt:return ln([Ft(e,{value:Ct(e.value,"@","@"+ht)})],r);case gt:if(e.length)return Pt(e.props,(function(t){switch(kt(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ln([Ft(e,{props:[Ct(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ln([Ft(e,{props:[Ct(t,/:(plac\w+)/,":"+ht+"input-$1")]}),Ft(e,{props:[Ct(t,/:(plac\w+)/,":-moz-$1")]}),Ft(e,{props:[Ct(t,/:(plac\w+)/,ft+"input-$1")]})],r)}return""}))}}],_n=function(e){var t=e.key;if(pn&&"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||Cn,a={},l=[];pn&&(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=[vn,bn];if(kn){var c=[sn],u=cn(s.concat(i,c)),d=kn(i)(t),f=function(e,t){var n=t.name;return void 0===d[n]&&(d[n]=function(e){return ln(tn(e),u)}(e?e+"{"+t.styles+"}":t.styles)),d[n]};o=function(e,t,n,r){var o=t.name,i=f(e,t);return void 0===g.compat?(r&&(g.inserted[o]=!0),i):r?void(g.inserted[o]=i):i}}else{var p,h=[sn,un((function(e){p.insert(e)}))],m=cn(s.concat(i,h));o=function(e,t,n,r){p=n,function(e){ln(tn(e),m)}(e?e+"{"+t.styles+"}":t.styles),r&&(g.inserted[t.name]=!0)}}var g={key:t,sheet:new dt({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 g.sheet.hydrate(l),g},Rn={exports:{}},Ln={};function On(){return Sn||(Sn=1,Rn.exports=function(){if(xn)return Ln;xn=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case s:case l:case c:case p:case f:case a:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),Ln.ContextConsumer=l,Ln.ContextProvider=a,Ln.Element=t,Ln.ForwardRef=c,Ln.Fragment=r,Ln.Lazy=p,Ln.Memo=f,Ln.Portal=n,Ln.Profiler=i,Ln.StrictMode=o,Ln.Suspense=u,Ln.SuspenseList=d,Ln.isAsyncMode=function(){return!1},Ln.isConcurrentMode=function(){return!1},Ln.isContextConsumer=function(e){return m(e)===l},Ln.isContextProvider=function(e){return m(e)===a},Ln.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ln.isForwardRef=function(e){return m(e)===c},Ln.isFragment=function(e){return m(e)===r},Ln.isLazy=function(e){return m(e)===p},Ln.isMemo=function(e){return m(e)===f},Ln.isPortal=function(e){return m(e)===n},Ln.isProfiler=function(e){return m(e)===i},Ln.isStrictMode=function(e){return m(e)===o},Ln.isSuspense=function(e){return m(e)===u},Ln.isSuspenseList=function(e){return m(e)===d},Ln.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===l||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Ln.typeOf=m,Ln}()),Rn.exports}!function(){if(En)return wn;En=1;var e=On(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,l=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;wn=function e(t,r,o){if("string"!=typeof r){if(d){var f=u(r);f&&f!==d&&e(t,f,o)}var p=l(r);s&&(p=p.concat(s(r)));for(var h=i(t),m=i(r),g=0;g<p.length;++g){var v=p[g];if(!(n[v]||o&&o[v]||m&&m[v]||h&&h[v])){var b=c(r,v);try{a(t,v,b)}catch(e){}}}}return t}}();var In="undefined"!=typeof document;function Tn(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Pn=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===In&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Mn=function(e,t,n){Pn(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);In||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!In&&0!==o.length)return o}};var Nn={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,scale: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},Dn=/[A-Z]|^ms/g,qn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,An=function(e){return 45===e.charCodeAt(1)},zn=function(e){return null!=e&&"boolean"!=typeof e},jn=fn((function(e){return An(e)?e:e.replace(Dn,"-$&").toLowerCase()})),Fn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(qn,(function(e,t,n){return Bn={name:t,styles:n,next:Bn},t}))}return 1===Nn[e]||An(e)||"number"!=typeof t||0===t?t:t+"px"};function $n(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Bn={name:o.name,styles:o.styles,next:Bn},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Bn={name:a.name,styles:a.styles,next:Bn},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=$n(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var l=a;null!=t&&void 0!==t[l]?r+=i+"{"+t[l]+"}":zn(l)&&(r+=jn(i)+":"+Fn(i,l)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=$n(e,t,a);switch(i){case"animation":case"animationName":r+=jn(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var c=0;c<a.length;c++)zn(a[c])&&(r+=jn(i)+":"+Fn(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var l=Bn,s=n(e);return Bn=l,$n(e,t,s)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Bn,Wn=/label:\s*([^\s;{]+)\s*(;|$)/g;function Un(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="";Bn=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=$n(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=$n(n,t,e[a]),r)o+=i[a]}Wn.lastIndex=0;for(var l,s="";null!==(l=Wn.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:Bn}}var Hn="undefined"!=typeof document,Vn=function(e){return e()},Gn=!!w.useInsertionEffect&&w.useInsertionEffect,Kn=Hn&&Gn||Vn,Zn=Gn||x.useLayoutEffect,Jn="undefined"!=typeof document,Xn=x.createContext("undefined"!=typeof HTMLElement?_n({key:"css"}):null),Qn=Xn.Provider,Yn=function(e){return x.forwardRef((function(t,n){var r=x.useContext(Xn);return e(t,r,n)}))};Jn||(Yn=function(e){return function(t){var n=x.useContext(Xn);return null===n?(n=_n({key:"css"}),x.createElement(Xn.Provider,{value:n},e(t,n))):e(t,n)}});var er,tr,nr=x.createContext({}),rr={}.hasOwnProperty,or="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ir=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Pn(t,n,r);var o=Kn((function(){return Mn(t,n,r)}));if(!Jn&&void 0!==o){for(var i,a=n.name,l=n.next;void 0!==l;)a+=" "+l.name,l=l.next;return x.createElement("style",((i={})["data-emotion"]=t.key+" "+a,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},ar=Yn((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[or],i=[r],a="";"string"==typeof e.className?a=Tn(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var l=Un(i,void 0,x.useContext(nr));a+=t.key+"-"+l.name;var s={};for(var c in e)rr.call(e,c)&&"css"!==c&&c!==or&&(s[c]=e[c]);return s.className=a,n&&(s.ref=n),x.createElement(x.Fragment,null,x.createElement(ir,{cache:t,serialized:l,isStringTag:"string"==typeof o}),x.createElement(o,s))})),lr=ar,sr=function(e,t){var n=arguments;if(null==t||!rr.call(t,"css"))return x.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=lr,o[1]=function(e,t){var n={};for(var r in t)rr.call(t,r)&&(n[r]=t[r]);return n[or]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return x.createElement.apply(null,o)};er=sr||(sr={}),tr||(tr=er.JSX||(er.JSX={}));var cr=Yn((function(e,t){var n=Un([e.styles],void 0,x.useContext(nr));if(!Jn){for(var r,o=n.name,i=n.styles,a=n.next;void 0!==a;)o+=" "+a.name,i+=a.styles,a=a.next;var l=!0===t.compat,s=t.insert("",{name:o,styles:i},t.sheet,l);return l?null:x.createElement("style",((r={})["data-emotion"]=t.key+"-global "+o,r.dangerouslySetInnerHTML={__html:s},r.nonce=t.sheet.nonce,r))}var c=x.useRef();return Zn((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),c.current=[r,o],function(){r.flush()}}),[t]),Zn((function(){var e=c.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Mn(t,n.next,!0),r.tags.length){var o=r.tags[r.tags.length-1].nextElementSibling;r.before=o,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function ur(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Un(t)}function dr(){var e=ur.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_"}}}var fr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,pr="undefined"!=typeof document,hr=fn((function(e){return fr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),mr=function(e){return"theme"!==e},gr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?hr:mr},vr=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},br=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Pn(t,n,r);var o=Kn((function(){return Mn(t,n,r)}));if(!pr&&void 0!==o){for(var i,a=n.name,l=n.next;void 0!==l;)a+=" "+l.name,l=l.next;return x.createElement("style",((i={})["data-emotion"]=t.key+" "+a,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},yr=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=vr(t,n,i),s=l||gr(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{var f=u[0];d.push(f[0]);for(var p=u.length,h=1;h<p;h++)d.push(u[h],f[h])}var m=Yn((function(e,t,n){var r=c&&e.as||a,i="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=x.useContext(nr)}"string"==typeof e.className?i=Tn(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var h=Un(d.concat(u),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===l?gr(r):s,g={};for(var v in e)c&&"as"===v||m(v)&&(g[v]=e[v]);return g.className=i,n&&(g.ref=n),x.createElement(x.Fragment,null,x.createElement(br,{cache:t,serialized:h,isStringTag:"string"==typeof r}),x.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,ct({},n,r,{shouldForwardProp:vr(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["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){yr[e]=yr(e)}));var xr="undefined"!=typeof document,Sr=function(e,t,n){for(var r=0,o=0;r=o,o=Wt(),38===r&&12===o&&(t[n]=1),!Vt(o);)Bt();return Ht(e,qt)},wr=function(e,t){return Kt(function(e,t){var n=-1,r=44;do{switch(Vt(r)){case 0:38===r&&12===Wt()&&(t[n]=1),e[n]+=Sr(qt-1,t,n);break;case 2:e[n]+=Zt(r);break;case 4:if(44===r){e[++n]=58===Wt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=xt(r)}}while(r=Bt());return e}(Gt(e),t))},Er=new WeakMap,kr=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)||Er.get(n))&&!r){Er.set(e,!0);for(var o=[],i=wr(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]}}},Cr=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function _r(e,t){switch(wt(e,t)){case 5103:return ht+"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 ht+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ht+e+pt+e+ft+e+e;case 6828:case 4268:return ht+e+ft+e+e;case 6165:return ht+e+ft+"flex-"+e+e;case 5187:return ht+e+Ct(e,/(\w+).+(:[^]+)/,ht+"box-$1$2"+ft+"flex-$1$2")+e;case 5443:return ht+e+ft+"flex-item-"+Ct(e,/flex-|-self/,"")+e;case 4675:return ht+e+ft+"flex-line-pack"+Ct(e,/align-content|flex-|-self/,"")+e;case 5548:return ht+e+ft+Ct(e,"shrink","negative")+e;case 5292:return ht+e+ft+Ct(e,"basis","preferred-size")+e;case 6060:return ht+"box-"+Ct(e,"-grow","")+ht+e+ft+Ct(e,"grow","positive")+e;case 4554:return ht+Ct(e,/([^-])(transform)/g,"$1"+ht+"$2")+e;case 6187:return Ct(Ct(Ct(e,/(zoom-|grab)/,ht+"$1"),/(image-set)/,ht+"$1"),e,"")+e;case 5495:case 3959:return Ct(e,/(image-set\([^]*)/,ht+"$1$`$1");case 4968:return Ct(Ct(e,/(.+:)(flex-)?(.*)/,ht+"box-pack:$3"+ft+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ht+e+e;case 4095:case 3583:case 4068:case 2532:return Ct(e,/(.+)-inline(.+)/,ht+"$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(Ot(e)-1-t>6)switch(Rt(e,t+1)){case 109:if(45!==Rt(e,t+4))break;case 102:return Ct(e,/(.+:)(.+)-([^]+)/,"$1"+ht+"$2-$3$1"+pt+(108==Rt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~_t(e,"stretch")?_r(Ct(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Rt(e,t+1))break;case 6444:switch(Rt(e,Ot(e)-3-(~_t(e,"!important")&&10))){case 107:return Ct(e,":",":"+ht)+e;case 101:return Ct(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ht+(45===Rt(e,14)?"inline-":"")+"box$3$1"+ht+"$2$3$1"+ft+"$2box$3")+e}break;case 5936:switch(Rt(e,t+11)){case 114:return ht+e+ft+Ct(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ht+e+ft+Ct(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ht+e+ft+Ct(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ht+e+ft+e+e}return e}var Rr,Lr,Or=xr?void 0:dn((function(){return fn((function(){var e={};return function(t){return e[t]}}))})),Ir=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case vt:e.return=_r(e.value,e.length);break;case bt:return ln([Ft(e,{value:Ct(e.value,"@","@"+ht)})],r);case gt:if(e.length)return Pt(e.props,(function(t){switch(kt(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ln([Ft(e,{props:[Ct(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ln([Ft(e,{props:[Ct(t,/:(plac\w+)/,":"+ht+"input-$1")]}),Ft(e,{props:[Ct(t,/:(plac\w+)/,":-moz-$1")]}),Ft(e,{props:[Ct(t,/:(plac\w+)/,ft+"input-$1")]})],r)}return""}))}}],Tr={exports:{}},Pr={};function Mr(){return Lr||(Lr=1,Tr.exports=function(){if(Rr)return Pr;Rr=1;var e=y(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var l,s={},c=null,u=null;for(l in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,l)&&!i.hasOwnProperty(l)&&(s[l]=n[l]);if(e&&e.defaultProps)for(l in n=e.defaultProps)void 0===s[l]&&(s[l]=n[l]);return{$$typeof:t,type:e,key:c,ref:u,props:s,_owner:o.current}}return Pr.Fragment=n,Pr.jsx=a,Pr.jsxs=a,Pr}()),Tr.exports}var Nr=Mr();let Dr;function qr(e){const{injectFirst:t,children:n}=e;return t&&Dr?Nr.jsx(Qn,{value:Dr,children:n}):n}function Ar(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 Nr.jsx(cr,{styles:r})}
16
+ */function nt(){if(Ge)return Ye;Ge=1;var e=y(),t=tt();function n(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 r=new Set,o={};function i(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var l=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),s=Object.prototype.hasOwnProperty,c=/^[: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]*$/,u={},d={};function f(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 p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){p[e]=new f(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];p[t]=new f(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){p[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){p[e]=new f(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){p[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){p[e]=new f(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){p[e]=new f(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){p[e]=new f(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){p[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)}));var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function g(e,t,n,r){var o=p.hasOwnProperty(t)?p[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!!s.call(d,e)||!s.call(u,e)&&(c.test(e)?d[e]=!0:(u[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(h,m);p[t]=new f(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(h,m);p[t]=new f(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(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)})),p.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)}));var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),C=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),P=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=P&&e[P]||e["@@iterator"])?e:null}var q,D=Object.assign;function N(e){if(void 0===q)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);q=t&&t[1]||""}return"\n"+q+e}var A=!1;function z(e,t){if(!e||A)return"";A=!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{A=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?N(e):""}function j(e){switch(e.tag){case 5:return N(e.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function F(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 S:return"Fragment";case x:return"Portal";case E:return"Profiler";case w:return"StrictMode";case R:return"Suspense";case L:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case _:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case O:return null!==(t=e.displayName||null)?t:F(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return F(e(t))}catch(e){}}return null}function $(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 F(t);case 8:return t===w?"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 B(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function H(e){e._valueTracker||(e._valueTracker=function(e){var t=W(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 U(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function V(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 G(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=B(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 Z(e,t){null!=(t=t.checked)&&g(e,"checked",t,!1)}function J(e,t){Z(e,t);var n=B(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")?Y(e,t.type,n):t.hasOwnProperty("defaultValue")&&Y(e,t.type,B(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(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 Y(e,t,n){"number"===t&&V(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Q=Array.isArray;function ee(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=""+B(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 te(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ne(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(Q(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:B(r)}}function re(e,t){var n=B(t.value),r=B(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 oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ie(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 ae(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ie(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,se=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ce(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 ue={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},de=["Webkit","ms","Moz","O"];function fe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ue.hasOwnProperty(e)&&ue[e]?(""+t).trim():t+"px"}function pe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=fe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ue).forEach((function(e){de.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ue[t]=ue[e]}))}));var he=D({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 me(e,t){if(t){if(he[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function ge(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 ve=null;function be(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ye=null,xe=null,Se=null;function we(e){if(e=xo(e)){if("function"!=typeof ye)throw Error(n(280));var t=e.stateNode;t&&(t=wo(t),ye(e.stateNode,e.type,t))}}function Ee(e){xe?Se?Se.push(e):Se=[e]:xe=e}function ke(){if(xe){var e=xe,t=Se;if(Se=xe=null,we(e),t)for(e=0;e<t.length;e++)we(t[e])}}function Ce(e,t){return e(t)}function _e(){}var Re=!1;function Le(e,t,n){if(Re)return e(t,n);Re=!0;try{return Ce(e,t,n)}finally{Re=!1,(null!==xe||null!==Se)&&(_e(),ke())}}function Oe(e,t){var r=e.stateNode;if(null===r)return null;var o=wo(r);if(null===o)return null;r=o[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":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Ie=!1;if(l)try{var Te={};Object.defineProperty(Te,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Te,Te),window.removeEventListener("test",Te,Te)}catch(e){Ie=!1}function Pe(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 Me=!1,qe=null,De=!1,Ne=null,Ae={onError:function(e){Me=!0,qe=e}};function ze(e,t,n,r,o,i,a,l,s){Me=!1,qe=null,Pe.apply(Ae,arguments)}function je(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 Fe(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 $e(e){if(je(e)!==e)throw Error(n(188))}function Be(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=je(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(o=i.return)){r=o;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return $e(i),e;if(a===o)return $e(i),t;a=a.sibling}throw Error(n(188))}if(r.return!==o.return)r=i,o=a;else{for(var l=!1,s=i.child;s;){if(s===r){l=!0,r=i,o=a;break}if(s===o){l=!0,o=i,r=a;break}s=s.sibling}if(!l){for(s=a.child;s;){if(s===r){l=!0,r=a,o=i;break}if(s===o){l=!0,o=a,r=i;break}s=s.sibling}if(!l)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e),null!==e?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var He=t.unstable_scheduleCallback,Ue=t.unstable_cancelCallback,Ve=t.unstable_shouldYield,Ke=t.unstable_requestPaint,Ze=t.unstable_now,Je=t.unstable_getCurrentPriorityLevel,Xe=t.unstable_ImmediatePriority,Qe=t.unstable_UserBlockingPriority,et=t.unstable_NormalPriority,nt=t.unstable_LowPriority,rt=t.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2;var ct=64,ut=4194304;function dt(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 ft(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=dt(l):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(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-at(t)),r|=e[n],t&=~o;return r}function pt(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 ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0==(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function xt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var St,wt,Et,kt,Ct,_t=!1,Rt=[],Lt=null,Ot=null,It=null,Tt=new Map,Pt=new Map,Mt=[],qt="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 Dt(e,t){switch(e){case"focusin":case"focusout":Lt=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":Tt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function Nt(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=xo(t))&&wt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function At(e){var t=yo(e.target);if(null!==t){var n=je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Fe(n)))return e.blockedOn=t,void Ct(e.priority,(function(){Et(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 zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&wt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ve=r,n.target.dispatchEvent(r),ve=null,t.shift()}return!0}function jt(e,t,n){zt(e)&&n.delete(t)}function Ft(){_t=!1,null!==Lt&&zt(Lt)&&(Lt=null),null!==Ot&&zt(Ot)&&(Ot=null),null!==It&&zt(It)&&(It=null),Tt.forEach(jt),Pt.forEach(jt)}function $t(e,n){e.blockedOn===n&&(e.blockedOn=null,_t||(_t=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ft)))}function Bt(e){function t(t){return $t(t,e)}if(0<Rt.length){$t(Rt[0],e);for(var n=1;n<Rt.length;n++){var r=Rt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Lt&&$t(Lt,e),null!==Ot&&$t(Ot,e),null!==It&&$t(It,e),Tt.forEach(t),Pt.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)At(n),null===n.blockedOn&&Mt.shift()}var Wt=v.ReactCurrentBatchConfig,Ht=!0;function Ut(e,t,n,r){var o=yt,i=Wt.transition;Wt.transition=null;try{yt=1,Gt(e,t,n,r)}finally{yt=o,Wt.transition=i}}function Vt(e,t,n,r){var o=yt,i=Wt.transition;Wt.transition=null;try{yt=4,Gt(e,t,n,r)}finally{yt=o,Wt.transition=i}}function Gt(e,t,n,r){if(Ht){var o=Zt(e,t,n,r);if(null===o)Hr(e,t,r,Kt,n),Dt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Lt=Nt(Lt,e,t,n,r,o),!0;case"dragenter":return Ot=Nt(Ot,e,t,n,r,o),!0;case"mouseover":return It=Nt(It,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Tt.set(i,Nt(Tt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Pt.set(i,Nt(Pt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Dt(e,r),4&t&&-1<qt.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&St(i),null===(i=Zt(e,t,n,r))&&Hr(e,t,r,Kt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Kt=null;function Zt(e,t,n,r){if(Kt=null,null!==(e=yo(e=be(r))))if(null===(t=je(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Fe(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 Kt=e,null}function Jt(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(Je()){case Xe:return 1;case Qe:return 4;case et:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Yt=null,Qt=null;function en(){if(Qt)return Qt;var e,t,n=Yt,r=n.length,o="value"in Xt?Xt.value:Xt.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 Qt=o.slice(e,1<t?1-t:void 0)}function tn(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 nn(){return!0}function rn(){return!1}function on(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)?nn:rn,this.isPropagationStopped=rn,this}return D(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=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=D({},cn,{view:0,detail:0}),fn=on(dn),pn=D({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,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!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(pn),mn=on(D({},pn,{dataTransfer:0})),gn=on(D({},dn,{relatedTarget:0})),vn=on(D({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=D({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),xn=on(D({},cn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wn={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"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Cn(){return kn}var _n=D({},dn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Rn=on(_n),Ln=on(D({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=on(D({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),In=on(D({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Tn=D({},pn,{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}),Pn=on(Tn),Mn=[9,13,27,32],qn=l&&"CompositionEvent"in window,Dn=null;l&&"documentMode"in document&&(Dn=document.documentMode);var Nn=l&&"TextEvent"in window&&!Dn,An=l&&(!qn||Dn&&8<Dn&&11>=Dn),zn=String.fromCharCode(32),jn=!1;function Fn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Wn={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 Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Un(e,t,n,r){Ee(r),0<(t=Vr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Gn=null;function Kn(e){zr(e,0)}function Zn(e){if(U(So(e)))return e}function Jn(e,t){if("change"===e)return t}var Xn=!1;if(l){var Yn;if(l){var Qn="oninput"in document;if(!Qn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Qn="function"==typeof er.oninput}Yn=Qn}else Yn=!1;Xn=Yn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),Gn=Vn=null)}function nr(e){if("value"===e.propertyName&&Zn(Gn)){var t=[];Un(t,Gn,e,be(e)),Le(Kn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zn(Gn)}function ir(e,t){if("click"===e)return Zn(t)}function ar(e,t){if("input"===e||"change"===e)return Zn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sr(e,t){if(lr(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(!s.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(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=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=V();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=V((e=t.contentWindow).document)}return t}function pr(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 hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(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=ur(n,i);var a=ur(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 mr=l&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,br=null,yr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==V(r)||("selectionStart"in(r=gr)&&pr(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},br&&sr(br,r)||(br=r,0<(r=Vr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function Sr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:Sr("Animation","AnimationEnd"),animationiteration:Sr("Animation","AnimationIteration"),animationstart:Sr("Animation","AnimationStart"),transitionend:Sr("Transition","TransitionEnd")},Er={},kr={};function Cr(e){if(Er[e])return Er[e];if(!wr[e])return e;var t,n=wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return Er[e]=n[t];return e}l&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var _r=Cr("animationend"),Rr=Cr("animationiteration"),Lr=Cr("animationstart"),Or=Cr("transitionend"),Ir=new Map,Tr="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 Pr(e,t){Ir.set(e,t),i(t,[e])}for(var Mr=0;Mr<Tr.length;Mr++){var qr=Tr[Mr];Pr(qr.toLowerCase(),"on"+(qr[0].toUpperCase()+qr.slice(1)))}Pr(_r,"onAnimationEnd"),Pr(Rr,"onAnimationIteration"),Pr(Lr,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(Or,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="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(" "),Nr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Ar(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,i,a,l,s,c){if(ze.apply(this,arguments),Me){if(!Me)throw Error(n(198));var u=qe;Me=!1,qe=null,De||(De=!0,Ne=u)}}(o,t,void 0,e),e.currentTarget=null}function zr(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;Ar(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;Ar(o,l,c),i=s}}}if(De)throw e=Ne,De=!1,Ne=null,e}function jr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Fr(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[$r]){e[$r]=!0,r.forEach((function(t){"selectionchange"!==t&&(Nr.has(t)||Fr(t,!1,e),Fr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$r]||(t[$r]=!0,Fr("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Jt(t)){case 1:var o=Ut;break;case 4:o=Vt;break;default:o=Gt}n=o.bind(null,t,n,e),o=void 0,!Ie||"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 Hr(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=yo(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Le((function(){var r=i,o=be(n),a=[];e:{var l=Ir.get(e);if(void 0!==l){var s=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=Rn;break;case"focusin":c="focus",s=gn;break;case"focusout":c="blur",s=gn;break;case"beforeblur":case"afterblur":s=gn;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=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=On;break;case _r:case Rr:case Lr:s=vn;break;case Or:s=In;break;case"scroll":s=fn;break;case"wheel":s=Pn;break;case"copy":case"cut":case"paste":s=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Ln}var u=0!=(4&t),d=!u&&"scroll"===e,f=u?null!==l?l+"Capture":null:l;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Oe(h,f))&&u.push(Ur(h,m,p)))),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===ve||!(c=n.relatedTarget||n.fromElement)||!yo(c)&&!c[mo])&&(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)?yo(c):null)&&(c!==(d=je(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Ln,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?l:So(s),p=null==c?l:So(c),(l=new u(m,h+"leave",s,n,o)).target=d,l.relatedTarget=p,m=null,yo(o)===r&&((u=new u(f,h+"enter",c,n,o)).target=p,u.relatedTarget=d,m=u),d=m,s&&c)e:{for(f=c,h=0,p=u=s;p;p=Gr(p))h++;for(p=0,m=f;m;m=Gr(m))p++;for(;0<h-p;)u=Gr(u),h--;for(;0<p-h;)f=Gr(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Gr(u),f=Gr(f)}u=null}else u=null;null!==s&&Kr(a,l,s,u,!1),null!==c&&null!==d&&Kr(a,d,c,u,!0)}if("select"===(s=(l=r?So(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Jn;else if(Hn(l))if(Xn)g=ar;else{g=or;var v=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=ir);switch(g&&(g=g(e,r))?Un(a,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&Y(l,"number",l.value)),v=r?So(r):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,br=null);break;case"focusout":br=vr=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,xr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(a,n,o)}var b;if(qn)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 Bn?Fn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(An&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Bn&&(b=en()):(Yt="value"in(Xt=o)?Xt.value:Xt.textContent,Bn=!0)),0<(v=Vr(r,y)).length&&(y=new xn(y,e,null,n,o),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=$n(n))&&(y.data=b))),(b=Nn?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(jn=!0,zn);case"textInput":return(e=t.data)===zn&&jn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!qn&&Fn(e,t)?(e=en(),Qt=Yt=Xt=null,Bn=!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 An&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}zr(a,t)}))}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(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=Oe(e,n))&&r.unshift(Ur(e,i,o)),null!=(i=Oe(e,t))&&r.push(Ur(e,i,o))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(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=Oe(n,i))&&a.unshift(Ur(n,s,l)):o||null!=(s=Oe(n,i))&&a.push(Ur(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Zr=/\r\n?/g,Jr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Zr,"\n").replace(Jr,"")}function Yr(e,t,r){if(t=Xr(t),Xr(e)!==t&&r)throw Error(n(425))}function Qr(){}var eo=null,to=null;function no(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 ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function so(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 Bt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Bt(t)}function co(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 uo(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 fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,go="__reactEvents$"+fo,vo="__reactListeners$"+fo,bo="__reactHandles$"+fo;function yo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[po])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function So(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function wo(e){return e[ho]||null}var Eo=[],ko=-1;function Co(e){return{current:e}}function _o(e){0>ko||(e.current=Eo[ko],Eo[ko]=null,ko--)}function Ro(e,t){ko++,Eo[ko]=e.current,e.current=t}var Lo={},Oo=Co(Lo),Io=Co(!1),To=Lo;function Po(e,t){var n=e.type.contextTypes;if(!n)return Lo;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 Mo(e){return null!=(e=e.childContextTypes)}function qo(){_o(Io),_o(Oo)}function Do(e,t,r){if(Oo.current!==Lo)throw Error(n(168));Ro(Oo,t),Ro(Io,r)}function No(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var i in o=o.getChildContext())if(!(i in t))throw Error(n(108,$(e)||"Unknown",i));return D({},r,o)}function Ao(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Lo,To=Oo.current,Ro(Oo,e),Ro(Io,Io.current),!0}function zo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=No(e,t,To),o.__reactInternalMemoizedMergedChildContext=e,_o(Io),_o(Oo),Ro(Oo,e)):_o(Io),Ro(Io,r)}var jo=null,Fo=!1,$o=!1;function Bo(e){null===jo?jo=[e]:jo.push(e)}function Wo(){if(!$o&&null!==jo){$o=!0;var e=0,t=yt;try{var n=jo;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}jo=null,Fo=!1}catch(t){throw null!==jo&&(jo=jo.slice(e+1)),He(Xe,Wo),t}finally{yt=t,$o=!1}}return null}var Ho=[],Uo=0,Vo=null,Go=0,Ko=[],Zo=0,Jo=null,Xo=1,Yo="";function Qo(e,t){Ho[Uo++]=Go,Ho[Uo++]=Vo,Vo=e,Go=t}function ei(e,t,n){Ko[Zo++]=Xo,Ko[Zo++]=Yo,Ko[Zo++]=Jo,Jo=e;var r=Xo;e=Yo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Xo=1<<32-at(t)+o|n<<o|r,Yo=i+e}else Xo=1<<i|n<<o|r,Yo=e}function ti(e){null!==e.return&&(Qo(e,1),ei(e,1,0))}function ni(e){for(;e===Vo;)Vo=Ho[--Uo],Ho[Uo]=null,Go=Ho[--Uo],Ho[Uo]=null;for(;e===Jo;)Jo=Ko[--Zo],Ko[Zo]=null,Yo=Ko[--Zo],Ko[Zo]=null,Xo=Ko[--Zo],Ko[Zo]=null}var ri=null,oi=null,ii=!1,ai=null;function li(e,t){var n=Tc(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 si(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,ri=e,oi=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Jo?{id:Xo,overflow:Yo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Tc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ci(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var r=t;if(!si(e,t)){if(ci(e))throw Error(n(418));t=co(r.nextSibling);var o=ri;t&&si(e,t)?li(o,r):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ci(e))throw Error(n(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw pi(),Error(n(418));for(;t;)li(e,t),t=co(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){oi=co(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}oi=null}}else oi=ri?co(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=co(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var gi=v.ReactCurrentBatchConfig;function vi(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var i=o,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function bi(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yi(e){return(0,e._init)(e._payload)}function xi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(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 i(e,t){return(e=Mc(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 l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Ac(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===I&&yi(o)===t.type)?((r=i(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=qc(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Dc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ac(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case b:return(n=qc(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case x:return(t=zc(t,e.mode,n)).return=e,t;case I:return f(e,(0,t._init)(t._payload),n)}if(Q(t)||M(t))return(t=Dc(t,e.mode,n,null)).return=e,t;bi(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:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case b:return n.key===o?c(e,t,n,r):null;case x:return n.key===o?u(e,t,n,r):null;case I:return p(e,t,(o=n._init)(n._payload),r)}if(Q(n)||M(n))return null!==o?null:d(e,t,n,r,null);bi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case b:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case I:return h(e,t,n,(0,r._init)(r._payload),o)}if(Q(r)||M(r))return d(t,e=e.get(n)||null,r,o,null);bi(t,r)}return null}function m(n,i,l,s){for(var c=null,u=null,d=i,m=i=0,g=null;null!==d&&m<l.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(n,d,l[m],s);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(n,d),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===l.length)return r(n,d),ii&&Qo(n,m),c;if(null===d){for(;m<l.length;m++)null!==(d=f(n,l[m],s))&&(i=a(d,i,m),null===u?c=d:u.sibling=d,u=d);return ii&&Qo(n,m),c}for(d=o(n,d);m<l.length;m++)null!==(g=h(d,n,m,l[m],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(n,e)})),ii&&Qo(n,m),c}function g(i,l,s,c){var u=M(s);if("function"!=typeof u)throw Error(n(150));if(null==(s=u.call(s)))throw Error(n(151));for(var d=u=null,m=l,g=l=0,v=null,b=s.next();null!==m&&!b.done;g++,b=s.next()){m.index>g?(v=m,m=null):v=m.sibling;var y=p(i,m,b.value,c);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(i,m),l=a(y,l,g),null===d?u=y:d.sibling=y,d=y,m=v}if(b.done)return r(i,m),ii&&Qo(i,g),u;if(null===m){for(;!b.done;g++,b=s.next())null!==(b=f(i,b.value,c))&&(l=a(b,l,g),null===d?u=b:d.sibling=b,d=b);return ii&&Qo(i,g),u}for(m=o(i,m);!b.done;g++,b=s.next())null!==(b=h(m,i,g,b.value,c))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),l=a(b,l,g),null===d?u=b:d.sibling=b,d=b);return e&&m.forEach((function(e){return t(i,e)})),ii&&Qo(i,g),u}return function e(n,o,a,s){if("object"==typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case b:e:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===S){if(7===u.tag){r(n,u.sibling),(o=i(u,a.props.children)).return=n,n=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===I&&yi(c)===u.type){r(n,u.sibling),(o=i(u,a.props)).ref=vi(n,u,a),o.return=n,n=o;break e}r(n,u);break}t(n,u),u=u.sibling}a.type===S?((o=Dc(a.props.children,n.mode,s,a.key)).return=n,n=o):((s=qc(a.type,a.key,a.props,null,n.mode,s)).ref=vi(n,o,a),s.return=n,n=s)}return l(n);case x:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(n,o.sibling),(o=i(o,a.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=zc(a,n.mode,s)).return=n,n=o}return l(n);case I:return e(n,o,(u=a._init)(a._payload),s)}if(Q(a))return m(n,o,a,s);if(M(a))return g(n,o,a,s);bi(n,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(r(n,o.sibling),(o=i(o,a)).return=n,n=o):(r(n,o),(o=Ac(a,n.mode,s)).return=n,n=o),l(n)):r(n,o)}}var Si=xi(!0),wi=xi(!1),Ei=Co(null),ki=null,Ci=null,_i=null;function Ri(){_i=Ci=ki=null}function Li(e){var t=Ei.current;_o(Ei),e._currentValue=t}function Oi(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 Ii(e,t){ki=e,_i=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(yl=!0),e.firstContext=null)}function Ti(e){var t=e._currentValue;if(_i!==e)if(e={context:e,memoizedValue:t,next:null},null===Ci){if(null===ki)throw Error(n(308));Ci=e,ki.dependencies={lanes:0,firstContext:e}}else Ci=Ci.next=e;return t}var Pi=null;function Mi(e){null===Pi?Pi=[e]:Pi.push(e)}function qi(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Mi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Di(e,r)}function Di(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 Ni=!1;function Ai(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zi(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 ji(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Ls)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Di(e,n)}return null===(o=r.interleaved)?(t.next=t,Mi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Di(e,n)}function $i(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,bt(e,n)}}function Bi(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 Wi(e,t,n,r){var o=e.updateQueue;Ni=!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 f=l.lane,p=l.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=D({},d,f);break e;case 2:Ni=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=p,s=d):u=u.next=p,a|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,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);Ns|=a,e.lanes=a,e.memoizedState=d}}function Hi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],i=o.callback;if(null!==i){if(o.callback=null,o=r,"function"!=typeof i)throw Error(n(191,i));i.call(o)}}}var Ui={},Vi=Co(Ui),Gi=Co(Ui),Ki=Co(Ui);function Zi(e){if(e===Ui)throw Error(n(174));return e}function Ji(e,t){switch(Ro(Ki,t),Ro(Gi,e),Ro(Vi,Ui),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ae(null,"");break;default:t=ae(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_o(Vi),Ro(Vi,t)}function Xi(){_o(Vi),_o(Gi),_o(Ki)}function Yi(e){Zi(Ki.current);var t=Zi(Vi.current),n=ae(t,e.type);t!==n&&(Ro(Gi,e),Ro(Vi,n))}function Qi(e){Gi.current===e&&(_o(Vi),_o(Gi))}var ea=Co(0);function ta(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 na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=v.ReactCurrentDispatcher,ia=v.ReactCurrentBatchConfig,aa=0,la=null,sa=null,ca=null,ua=!1,da=!1,fa=0,pa=0;function ha(){throw Error(n(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ga(e,t,r,o,i,a){if(aa=a,la=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Qa:el,e=r(o,i),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(n(301));a+=1,ca=sa=null,t.updateQueue=null,oa.current=tl,e=r(o,i)}while(da)}if(oa.current=Ya,t=null!==sa&&null!==sa.next,aa=0,ca=sa=la=null,ua=!1,t)throw Error(n(300));return e}function va(){var e=0!==fa;return fa=0,e}function ba(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?la.memoizedState=ca=e:ca=ca.next=e,ca}function ya(){if(null===sa){var e=la.alternate;e=null!==e?e.memoizedState:null}else e=sa.next;var t=null===ca?la.memoizedState:ca.next;if(null!==t)ca=t,sa=e;else{if(null===e)throw Error(n(310));e={memoizedState:(sa=e).memoizedState,baseState:sa.baseState,baseQueue:sa.baseQueue,queue:sa.queue,next:null},null===ca?la.memoizedState=ca=e:ca=ca.next=e}return ca}function xa(e,t){return"function"==typeof t?t(e):t}function Sa(e){var t=ya(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=sa,i=o.baseQueue,a=r.pending;if(null!==a){if(null!==i){var l=i.next;i.next=a.next,a.next=l}o.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,o=o.baseState;var s=l=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),o=u.hasEagerState?u.eagerState:e(o,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(s=c=f,l=o):c=c.next=f,la.lanes|=d,Ns|=d}u=u.next}while(null!==u&&u!==a);null===c?l=o:c.next=s,lr(o,t.memoizedState)||(yl=!0),t.memoizedState=o,t.baseState=l,t.baseQueue=c,r.lastRenderedState=o}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,la.lanes|=a,Ns|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function wa(e){var t=ya(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var l=i=i.next;do{a=e(a,l.action),l=l.next}while(l!==i);lr(a,t.memoizedState)||(yl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,o]}function Ea(){}function ka(e,t){var r=la,o=ya(),i=t(),a=!lr(o.memoizedState,i);if(a&&(o.memoizedState=i,yl=!0),o=o.queue,Na(Ra.bind(null,r,o,e),[e]),o.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(r.flags|=2048,Ta(9,_a.bind(null,r,o,i,t),void 0,null),null===Os)throw Error(n(349));0!=(30&aa)||Ca(r,t,i)}return i}function Ca(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function _a(e,t,n,r){t.value=n,t.getSnapshot=r,La(t)&&Oa(e)}function Ra(e,t,n){return n((function(){La(t)&&Oa(e)}))}function La(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function Oa(e){var t=Di(e,1);null!==t&&nc(t,e,1,-1)}function Ia(e){var t=ba();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ka.bind(null,la,e),[t.memoizedState,e]}function Ta(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.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 Pa(){return ya().memoizedState}function Ma(e,t,n,r){var o=ba();la.flags|=e,o.memoizedState=Ta(1|t,n,void 0,void 0===r?null:r)}function qa(e,t,n,r){var o=ya();r=void 0===r?null:r;var i=void 0;if(null!==sa){var a=sa.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=Ta(t,n,i,r))}la.flags|=e,o.memoizedState=Ta(1|t,n,i,r)}function Da(e,t){return Ma(8390656,8,e,t)}function Na(e,t){return qa(2048,8,e,t)}function Aa(e,t){return qa(4,2,e,t)}function za(e,t){return qa(4,4,e,t)}function ja(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 Fa(e,t,n){return n=null!=n?n.concat([e]):null,qa(4,4,ja.bind(null,t,e),n)}function $a(){}function Ba(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wa(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ha(e,t,n){return 0==(21&aa)?(e.baseState&&(e.baseState=!1,yl=!0),e.memoizedState=n):(lr(n,t)||(n=mt(),la.lanes|=n,Ns|=n,e.baseState=!0),t)}function Ua(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{yt=n,ia.transition=r}}function Va(){return ya().memoizedState}function Ga(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Za(e))Ja(t,n);else if(null!==(n=qi(e,t,n,r))){nc(n,e,r,ec()),Xa(n,t,r)}}function Ka(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Za(e))Ja(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,lr(l,a)){var s=t.interleaved;return null===s?(o.next=o,Mi(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=qi(e,t,o,r))&&(nc(n,e,r,o=ec()),Xa(n,t,r))}}function Za(e){var t=e.alternate;return e===la||null!==t&&t===la}function Ja(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xa(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Ya={readContext:Ti,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Qa={readContext:Ti,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:Ti,useEffect:Da,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ma(4194308,4,ja.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ma(4,2,e,t)},useMemo:function(e,t){var n=ba();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ba();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=Ga.bind(null,la,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ba().memoizedState=e},useState:Ia,useDebugValue:$a,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Ia(!1),t=e[0];return e=Ua.bind(null,e[1]),ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=la,i=ba();if(ii){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Os)throw Error(n(349));0!=(30&aa)||Ca(o,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Da(Ra.bind(null,o,a,e),[e]),o.flags|=2048,Ta(9,_a.bind(null,o,a,r,t),void 0,null),r},useId:function(){var e=ba(),t=Os.identifierPrefix;if(ii){var n=Yo;t=":"+t+"R"+(n=(Xo&~(1<<32-at(Xo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:Ti,useCallback:Ba,useContext:Ti,useEffect:Na,useImperativeHandle:Fa,useInsertionEffect:Aa,useLayoutEffect:za,useMemo:Wa,useReducer:Sa,useRef:Pa,useState:function(){return Sa(xa)},useDebugValue:$a,useDeferredValue:function(e){return Ha(ya(),sa.memoizedState,e)},useTransition:function(){return[Sa(xa)[0],ya().memoizedState]},useMutableSource:Ea,useSyncExternalStore:ka,useId:Va,unstable_isNewReconciler:!1},tl={readContext:Ti,useCallback:Ba,useContext:Ti,useEffect:Na,useImperativeHandle:Fa,useInsertionEffect:Aa,useLayoutEffect:za,useMemo:Wa,useReducer:wa,useRef:Pa,useState:function(){return wa(xa)},useDebugValue:$a,useDeferredValue:function(e){var t=ya();return null===sa?t.memoizedState=e:Ha(t,sa.memoizedState,e)},useTransition:function(){return[wa(xa)[0],ya().memoizedState]},useMutableSource:Ea,useSyncExternalStore:ka,useId:Va,unstable_isNewReconciler:!1};function nl(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return!!(e=e._reactInternals)&&je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=ji(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Fi(e,i,o))&&(nc(t,e,o,r),$i(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=ji(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Fi(e,i,o))&&(nc(t,e,o,r),$i(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=ji(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Fi(e,o,r))&&(nc(t,e,r,n),$i(t,e,r))}};function il(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(o,i))}function al(e,t,n){var r=!1,o=Lo,i=t.contextType;return"object"==typeof i&&null!==i?i=Ti(i):(o=Mo(t)?To:Oo.current,i=(r=null!=(r=t.contextTypes))?Po(e,o):Lo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ll(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&&ol.enqueueReplaceState(t,t.state,null)}function sl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ai(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ti(i):(i=Mo(t)?To:Oo.current,o.context=Po(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rl(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&&ol.enqueueReplaceState(o,o.state,null),Wi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function cl(e,t){try{var n="",r=t;do{n+=j(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 ul(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fl="function"==typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=ji(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hs||(Hs=!0,Us=r),dl(0,t)},n}function hl(e,t,n){(n=ji(-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(){dl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!=typeof r&&(null===Vs?Vs=new Set([this]):Vs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ml(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fl;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=Cc.bind(null,e,t,n),t.then(e,e))}function gl(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 vl(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=ji(-1,1)).tag=2,Fi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var bl=v.ReactCurrentOwner,yl=!1;function xl(e,t,n,r){t.child=null===e?wi(t,null,n,r):Si(t,e.child,n,r)}function Sl(e,t,n,r,o){n=n.render;var i=t.ref;return Ii(t,o),r=ga(e,t,n,r,i,o),n=va(),null===e||yl?(ii&&n&&ti(t),t.flags|=1,xl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hl(e,t,o))}function wl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Pc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=qc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,El(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(a,r)&&e.ref===t.ref)return Hl(e,t,o)}return t.flags|=1,(e=Mc(i,r)).ref=t.ref,e.return=t,t.child=e}function El(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(sr(i,r)&&e.ref===t.ref){if(yl=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Hl(e,t,o);0!=(131072&e.flags)&&(yl=!0)}}return _l(e,t,n,r,o)}function kl(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},Ro(Ms,Ps),Ps|=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,Ro(Ms,Ps),Ps|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Ro(Ms,Ps),Ps|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ro(Ms,Ps),Ps|=r;return xl(e,t,o,n),t.child}function Cl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _l(e,t,n,r,o){var i=Mo(n)?To:Oo.current;return i=Po(t,i),Ii(t,o),n=ga(e,t,n,r,i,o),r=va(),null===e||yl?(ii&&r&&ti(t),t.flags|=1,xl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hl(e,t,o))}function Rl(e,t,n,r,o){if(Mo(n)){var i=!0;Ao(t)}else i=!1;if(Ii(t,o),null===t.stateNode)Wl(e,t),al(t,n,r),sl(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=Ti(c):c=Po(t,c=Mo(n)?To:Oo.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)&&ll(t,a,r,c),Ni=!1;var f=t.memoizedState;a.state=f,Wi(t,r,a,o),s=t.memoizedState,l!==r||f!==s||Io.current||Ni?("function"==typeof u&&(rl(t,n,u,r),s=t.memoizedState),(l=Ni||il(t,n,l,r,f,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,zi(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:nl(t.type,l),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Ti(s):s=Po(t,s=Mo(n)?To:Oo.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||f!==s)&&ll(t,a,r,s),Ni=!1,f=t.memoizedState,a.state=f,Wi(t,r,a,o);var h=t.memoizedState;l!==d||f!==h||Io.current||Ni?("function"==typeof p&&(rl(t,n,p,r),h=t.memoizedState),(c=Ni||il(t,n,c,r,f,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&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===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&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ll(e,t,n,r,i,o)}function Ll(e,t,n,r,o,i){Cl(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&zo(t,n,!1),Hl(e,t,i);r=t.stateNode,bl.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Si(t,e.child,null,i),t.child=Si(t,null,l,i)):xl(e,t,l,i),t.memoizedState=r.state,o&&zo(t,n,!0),t.child}function Ol(e){var t=e.stateNode;t.pendingContext?Do(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Do(0,t.context,!1),Ji(e,t.containerInfo)}function Il(e,t,n,r,o){return hi(),mi(o),t.flags|=256,xl(e,t,n,r),t.child}var Tl,Pl,Ml,ql,Dl={dehydrated:null,treeContext:null,retryLane:0};function Nl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Al(e,t,r){var o,i=t.pendingProps,a=ea.current,l=!1,s=0!=(128&t.flags);if((o=s)||(o=(null===e||null!==e.memoizedState)&&0!=(2&a)),o?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ro(ea,1&a),null===e)return ui(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):(s=i.children,e=i.fallback,l?(i=t.mode,l=t.child,s={mode:"hidden",children:s},0==(1&i)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=Nc(s,i,0,null),e=Dc(e,i,r,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Nl(r),t.memoizedState=Dl,e):zl(t,s));if(null!==(a=e.memoizedState)&&null!==(o=a.dehydrated))return function(e,t,r,o,i,a,l){if(r)return 256&t.flags?(t.flags&=-257,jl(e,t,l,o=ul(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=o.fallback,i=t.mode,o=Nc({mode:"visible",children:o.children},i,0,null),(a=Dc(a,i,l,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,0!=(1&t.mode)&&Si(t,e.child,null,l),t.child.memoizedState=Nl(l),t.memoizedState=Dl,a);if(0==(1&t.mode))return jl(e,t,l,null);if("$!"===i.data){if(o=i.nextSibling&&i.nextSibling.dataset)var s=o.dgst;return o=s,jl(e,t,l,o=ul(a=Error(n(419)),o,void 0))}if(s=0!=(l&e.childLanes),yl||s){if(null!==(o=Os)){switch(l&-l){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(o.suspendedLanes|l))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Di(e,i),nc(o,e,i,-1))}return mc(),jl(e,t,l,o=ul(Error(n(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Rc.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,oi=co(i.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Ko[Zo++]=Xo,Ko[Zo++]=Yo,Ko[Zo++]=Jo,Xo=e.id,Yo=e.overflow,Jo=t),t=zl(t,o.children),t.flags|=4096,t)}(e,t,s,i,o,a,r);if(l){l=i.fallback,s=t.mode,o=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 0==(1&s)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Mc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==o?l=Mc(o,l):(l=Dc(l,s,r,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,i=l,l=t.child,s=null===(s=e.child.memoizedState)?Nl(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~r,t.memoizedState=Dl,i}return e=(l=e.child).sibling,i=Mc(l,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function zl(e,t){return(t=Nc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function jl(e,t,n,r){return null!==r&&mi(r),Si(t,e.child,null,n),(e=zl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Oi(e.return,t,n)}function $l(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 Bl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xl(e,t,r.children,n),0!=(2&(r=ea.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&&Fl(e,n,t);else if(19===e.tag)Fl(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(Ro(ea,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===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$l(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===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$l(t,!0,n,null,i);break;case"together":$l(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wl(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hl(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ns|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Mc(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Mc(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Ul(e,t){if(!ii)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 Vl(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 Gl(e,t,r){var i=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vl(t),null;case 1:case 17:return Mo(t.type)&&qo(),Vl(t),null;case 3:return i=t.stateNode,Xi(),_o(Io),_o(Oo),ra(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ai&&(ac(ai),ai=null))),Pl(e,t),Vl(t),null;case 5:Qi(t);var a=Zi(Ki.current);if(r=t.type,null!==e&&null!=t.stateNode)Ml(e,t,r,i,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(n(166));return Vl(t),null}if(e=Zi(Vi.current),fi(t)){i=t.stateNode,r=t.type;var l=t.memoizedProps;switch(i[po]=t,i[ho]=l,e=0!=(1&t.mode),r){case"dialog":jr("cancel",i),jr("close",i);break;case"iframe":case"object":case"embed":jr("load",i);break;case"video":case"audio":for(a=0;a<Dr.length;a++)jr(Dr[a],i);break;case"source":jr("error",i);break;case"img":case"image":case"link":jr("error",i),jr("load",i);break;case"details":jr("toggle",i);break;case"input":K(i,l),jr("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!l.multiple},jr("invalid",i);break;case"textarea":ne(i,l),jr("invalid",i)}for(var s in me(r,l),a=null,l)if(l.hasOwnProperty(s)){var c=l[s];"children"===s?"string"==typeof c?i.textContent!==c&&(!0!==l.suppressHydrationWarning&&Yr(i.textContent,c,e),a=["children",c]):"number"==typeof c&&i.textContent!==""+c&&(!0!==l.suppressHydrationWarning&&Yr(i.textContent,c,e),a=["children",""+c]):o.hasOwnProperty(s)&&null!=c&&"onScroll"===s&&jr("scroll",i)}switch(r){case"input":H(i),X(i,l,!0);break;case"textarea":H(i),oe(i);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(i.onclick=Qr)}i=a,t.updateQueue=i,null!==i&&(t.flags|=4)}else{s=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ie(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=s.createElement(r,{is:i.is}):(e=s.createElement(r),"select"===r&&(s=e,i.multiple?s.multiple=!0:i.size&&(s.size=i.size))):e=s.createElementNS(e,r),e[po]=t,e[ho]=i,Tl(e,t,!1,!1),t.stateNode=e;e:{switch(s=ge(r,i),r){case"dialog":jr("cancel",e),jr("close",e),a=i;break;case"iframe":case"object":case"embed":jr("load",e),a=i;break;case"video":case"audio":for(a=0;a<Dr.length;a++)jr(Dr[a],e);a=i;break;case"source":jr("error",e),a=i;break;case"img":case"image":case"link":jr("error",e),jr("load",e),a=i;break;case"details":jr("toggle",e),a=i;break;case"input":K(e,i),a=G(e,i),jr("invalid",e);break;case"option":default:a=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},a=D({},i,{value:void 0}),jr("invalid",e);break;case"textarea":ne(e,i),a=te(e,i),jr("invalid",e)}for(l in me(r,a),c=a)if(c.hasOwnProperty(l)){var u=c[l];"style"===l?pe(e,u):"dangerouslySetInnerHTML"===l?null!=(u=u?u.__html:void 0)&&se(e,u):"children"===l?"string"==typeof u?("textarea"!==r||""!==u)&&ce(e,u):"number"==typeof u&&ce(e,""+u):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(o.hasOwnProperty(l)?null!=u&&"onScroll"===l&&jr("scroll",e):null!=u&&g(e,l,u,s))}switch(r){case"input":H(e),X(e,i,!1);break;case"textarea":H(e),oe(e);break;case"option":null!=i.value&&e.setAttribute("value",""+B(i.value));break;case"select":e.multiple=!!i.multiple,null!=(l=i.value)?ee(e,!!i.multiple,l,!1):null!=i.defaultValue&&ee(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Qr)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vl(t),null;case 6:if(e&&null!=t.stateNode)ql(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(n(166));if(r=Zi(Ki.current),Zi(Vi.current),fi(t)){if(i=t.stateNode,r=t.memoizedProps,i[po]=t,(l=i.nodeValue!==r)&&null!==(e=ri))switch(e.tag){case 3:Yr(i.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Yr(i.nodeValue,r,0!=(1&e.mode))}l&&(t.flags|=4)}else(i=(9===r.nodeType?r:r.ownerDocument).createTextNode(i))[po]=t,t.stateNode=i}return Vl(t),null;case 13:if(_o(ea),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!=(1&t.mode)&&0==(128&t.flags))pi(),hi(),t.flags|=98560,l=!1;else if(l=fi(t),null!==i&&null!==i.dehydrated){if(null===e){if(!l)throw Error(n(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(n(317));l[po]=t}else hi(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vl(t),l=!1}else null!==ai&&(ac(ai),ai=null),l=!0;if(!l)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=r,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ea.current)?0===qs&&(qs=3):mc())),null!==t.updateQueue&&(t.flags|=4),Vl(t),null);case 4:return Xi(),Pl(e,t),null===e&&Br(t.stateNode.containerInfo),Vl(t),null;case 10:return Li(t.type._context),Vl(t),null;case 19:if(_o(ea),null===(l=t.memoizedState))return Vl(t),null;if(i=0!=(128&t.flags),null===(s=l.rendering))if(i)Ul(l,!1);else{if(0!==qs||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=ta(e))){for(t.flags|=128,Ul(l,!1),null!==(i=s.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;null!==r;)e=i,(l=r).flags&=14680066,null===(s=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ro(ea,1&ea.current|2),t.child}e=e.sibling}null!==l.tail&&Ze()>Bs&&(t.flags|=128,i=!0,Ul(l,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=ta(s))){if(t.flags|=128,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Ul(l,!0),null===l.tail&&"hidden"===l.tailMode&&!s.alternate&&!ii)return Vl(t),null}else 2*Ze()-l.renderingStartTime>Bs&&1073741824!==r&&(t.flags|=128,i=!0,Ul(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(null!==(r=l.last)?r.sibling=s:t.child=s,l.last=s)}return null!==l.tail?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Ze(),t.sibling=null,r=ea.current,Ro(ea,i?1&r|2:1&r),t):(Vl(t),null);case 22:case 23:return dc(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&0!=(1&t.mode)?0!=(1073741824&Ps)&&(Vl(t),6&t.subtreeFlags&&(t.flags|=8192)):Vl(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Kl(e,t){switch(ni(t),t.tag){case 1:return Mo(t.type)&&qo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xi(),_o(Io),_o(Oo),ra(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Qi(t),null;case 13:if(_o(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _o(ea),null;case 4:return Xi(),null;case 10:return Li(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Tl=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}},Pl=function(){},Ml=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Zi(Vi.current);var a,l=null;switch(n){case"input":i=G(e,i),r=G(e,r),l=[];break;case"select":i=D({},i,{value:void 0}),r=D({},r,{value:void 0}),l=[];break;case"textarea":i=te(e,i),r=te(e,r),l=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Qr)}for(u in me(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var s=i[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(o.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var c=r[u];if(s=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(null!=c||null!=s))if("style"===u)if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(l||(l=[]),l.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(l=l||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(o.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&jr("scroll",e),l||s===c||(l=[])):(l=l||[]).push(u,c))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}},ql=function(e,t,n,r){n!==r&&(t.flags|=4)};var Zl=!1,Jl=!1,Xl="function"==typeof WeakSet?WeakSet:Set,Yl=null;function Ql(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){kc(e,t,n)}else n.current=null}function es(e,t,n){try{n()}catch(n){kc(e,t,n)}}var ts=!1;function ns(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&&es(t,n,i)}o=o.next}while(o!==r)}}function rs(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 os(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 is(e){var t=e.alternate;null!==t&&(e.alternate=null,is(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[go],delete t[vo],delete t[bo])),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 as(e){return 5===e.tag||3===e.tag||4===e.tag}function ls(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||as(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 ss(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=Qr));else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}function cs(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(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}var us=null,ds=!1;function fs(e,t,n){for(n=n.child;null!==n;)ps(e,t,n),n=n.sibling}function ps(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Jl||Ql(n,t);case 6:var r=us,o=ds;us=null,fs(e,t,n),ds=o,null!==(us=r)&&(ds?(e=us,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):us.removeChild(n.stateNode));break;case 18:null!==us&&(ds?(e=us,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),Bt(e)):so(us,n.stateNode));break;case 4:r=us,o=ds,us=n.stateNode.containerInfo,ds=!0,fs(e,t,n),us=r,ds=o;break;case 0:case 11:case 14:case 15:if(!Jl&&(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))&&es(n,t,a),o=o.next}while(o!==r)}fs(e,t,n);break;case 1:if(!Jl&&(Ql(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){kc(n,t,e)}fs(e,t,n);break;case 21:fs(e,t,n);break;case 22:1&n.mode?(Jl=(r=Jl)||null!==n.memoizedState,fs(e,t,n),Jl=r):fs(e,t,n);break;default:fs(e,t,n)}}function hs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xl),t.forEach((function(t){var r=Lc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ms(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o];try{var a=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:us=s.stateNode,ds=!1;break e;case 3:case 4:us=s.stateNode.containerInfo,ds=!0;break e}s=s.return}if(null===us)throw Error(n(160));ps(a,l,i),us=null,ds=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(e){kc(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gs(t,e),t=t.sibling}function gs(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ms(t,e),vs(e),4&o){try{ns(3,e,e.return),rs(3,e)}catch(t){kc(e,e.return,t)}try{ns(5,e,e.return)}catch(t){kc(e,e.return,t)}}break;case 1:ms(t,e),vs(e),512&o&&null!==r&&Ql(r,r.return);break;case 5:if(ms(t,e),vs(e),512&o&&null!==r&&Ql(r,r.return),32&e.flags){var i=e.stateNode;try{ce(i,"")}catch(t){kc(e,e.return,t)}}if(4&o&&null!=(i=e.stateNode)){var a=e.memoizedProps,l=null!==r?r.memoizedProps:a,s=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===s&&"radio"===a.type&&null!=a.name&&Z(i,a),ge(s,l);var u=ge(s,a);for(l=0;l<c.length;l+=2){var d=c[l],f=c[l+1];"style"===d?pe(i,f):"dangerouslySetInnerHTML"===d?se(i,f):"children"===d?ce(i,f):g(i,d,f,u)}switch(s){case"input":J(i,a);break;case"textarea":re(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ee(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ee(i,!!a.multiple,a.defaultValue,!0):ee(i,!!a.multiple,a.multiple?[]:"",!1))}i[ho]=a}catch(t){kc(e,e.return,t)}}break;case 6:if(ms(t,e),vs(e),4&o){if(null===e.stateNode)throw Error(n(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){kc(e,e.return,t)}}break;case 3:if(ms(t,e),vs(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{Bt(t.containerInfo)}catch(t){kc(e,e.return,t)}break;case 4:default:ms(t,e),vs(e);break;case 13:ms(t,e),vs(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||($s=Ze())),4&o&&hs(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Jl=(u=Jl)||d,ms(t,e),Jl=u):ms(t,e),vs(e),8192&o){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Yl=e,d=e.child;null!==d;){for(f=Yl=d;null!==Yl;){switch(h=(p=Yl).child,p.tag){case 0:case 11:case 14:case 15:ns(4,p,p.return);break;case 1:Ql(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){o=p,r=p.return;try{t=o,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){kc(o,r,e)}}break;case 5:Ql(p,p.return);break;case 22:if(null!==p.memoizedState){Ss(f);continue}}null!==h?(h.return=p,Yl=h):Ss(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,u?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=f.stateNode,l=null!=(c=f.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,s.style.display=fe("display",l))}catch(t){kc(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(t){kc(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ms(t,e),vs(e),4&o&&hs(e);case 21:}}function vs(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(as(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(ce(i,""),o.flags&=-33),cs(e,ls(e),i);break;case 3:case 4:var a=o.stateNode.containerInfo;ss(e,ls(e),a);break;default:throw Error(n(161))}}catch(t){kc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bs(e,t,n){Yl=e,ys(e)}function ys(e,t,n){for(var r=0!=(1&e.mode);null!==Yl;){var o=Yl,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Zl;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Jl;l=Zl;var c=Jl;if(Zl=a,(Jl=s)&&!c)for(Yl=o;null!==Yl;)s=(a=Yl).child,22===a.tag&&null!==a.memoizedState?ws(o):null!==s?(s.return=a,Yl=s):ws(o);for(;null!==i;)Yl=i,ys(i),i=i.sibling;Yl=o,Zl=l,Jl=c}xs(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Yl=i):xs(e)}}function xs(e){for(;null!==Yl;){var t=Yl;if(0!=(8772&t.flags)){var r=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Jl||rs(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Jl)if(null===r)o.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:nl(t.type,r.memoizedProps);o.componentDidUpdate(i,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Hi(t,a,o);break;case 3:var l=t.updateQueue;if(null!==l){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Hi(t,l,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Bt(f)}}}break;default:throw Error(n(163))}Jl||512&t.flags&&os(t)}catch(e){kc(t,t.return,e)}}if(t===e){Yl=null;break}if(null!==(r=t.sibling)){r.return=t.return,Yl=r;break}Yl=t.return}}function Ss(e){for(;null!==Yl;){var t=Yl;if(t===e){Yl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Yl=n;break}Yl=t.return}}function ws(e){for(;null!==Yl;){var t=Yl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rs(4,t)}catch(e){kc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){kc(t,o,e)}}var i=t.return;try{os(t)}catch(e){kc(t,i,e)}break;case 5:var a=t.return;try{os(t)}catch(e){kc(t,a,e)}}}catch(e){kc(t,t.return,e)}if(t===e){Yl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Yl=l;break}Yl=t.return}}var Es,ks=Math.ceil,Cs=v.ReactCurrentDispatcher,_s=v.ReactCurrentOwner,Rs=v.ReactCurrentBatchConfig,Ls=0,Os=null,Is=null,Ts=0,Ps=0,Ms=Co(0),qs=0,Ds=null,Ns=0,As=0,zs=0,js=null,Fs=null,$s=0,Bs=1/0,Ws=null,Hs=!1,Us=null,Vs=null,Gs=!1,Ks=null,Zs=0,Js=0,Xs=null,Ys=-1,Qs=0;function ec(){return 0!=(6&Ls)?Ze():-1!==Ys?Ys:Ys=Ze()}function tc(e){return 0==(1&e.mode)?1:0!=(2&Ls)&&0!==Ts?Ts&-Ts:null!==gi.transition?(0===Qs&&(Qs=mt()),Qs):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Jt(e.type)}function nc(e,t,r,o){if(50<Js)throw Js=0,Xs=null,Error(n(185));vt(e,r,o),0!=(2&Ls)&&e===Os||(e===Os&&(0==(2&Ls)&&(As|=r),4===qs&&lc(e,Ts)),rc(e,o),1===r&&0===Ls&&0==(1&t.mode)&&(Bs=Ze()+500,Fo&&Wo()))}function rc(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-at(i),l=1<<a,s=o[a];-1===s?0!=(l&n)&&0==(l&r)||(o[a]=pt(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=ft(e,e===Os?Ts:0);if(0===r)null!==n&&Ue(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ue(n),1===t)0===e.tag?function(e){Fo=!0,Bo(e)}(sc.bind(null,e)):Bo(sc.bind(null,e)),ao((function(){0==(6&Ls)&&Wo()})),n=null;else{switch(xt(r)){case 1:n=Xe;break;case 4:n=Qe;break;case 16:default:n=et;break;case 536870912:n=rt}n=Oc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Ys=-1,Qs=0,0!=(6&Ls))throw Error(n(327));var r=e.callbackNode;if(wc()&&e.callbackNode!==r)return null;var o=ft(e,e===Os?Ts:0);if(0===o)return null;if(0!=(30&o)||0!=(o&e.expiredLanes)||t)t=gc(e,o);else{t=o;var i=Ls;Ls|=2;var a=hc();for(Os===e&&Ts===t||(Ws=null,Bs=Ze()+500,fc(e,t));;)try{bc();break}catch(t){pc(e,t)}Ri(),Cs.current=a,Ls=i,null!==Is?t=0:(Os=null,Ts=0,t=qs)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(o=i,t=ic(e,i))),1===t)throw r=Ds,fc(e,0),lc(e,o),rc(e,Ze()),r;if(6===t)lc(e,o);else{if(i=e.current.alternate,0==(30&o)&&!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(!lr(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}(i)&&(2===(t=gc(e,o))&&(0!==(a=ht(e))&&(o=a,t=ic(e,a))),1===t))throw r=Ds,fc(e,0),lc(e,o),rc(e,Ze()),r;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:Sc(e,Fs,Ws);break;case 3:if(lc(e,o),(130023424&o)===o&&10<(t=$s+500-Ze())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&o)!==o){ec(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ro(Sc.bind(null,e,Fs,Ws),t);break}Sc(e,Fs,Ws);break;case 4:if(lc(e,o),(4194240&o)===o)break;for(t=e.eventTimes,i=-1;0<o;){var l=31-at(o);a=1<<l,(l=t[l])>i&&(i=l),o&=~a}if(o=i,10<(o=(120>(o=Ze()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*ks(o/1960))-o)){e.timeoutHandle=ro(Sc.bind(null,e,Fs,Ws),o);break}Sc(e,Fs,Ws);break;default:throw Error(n(329))}}}return rc(e,Ze()),e.callbackNode===r?oc.bind(null,e):null}function ic(e,t){var n=js;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Fs,Fs=n,null!==t&&ac(t)),e}function ac(e){null===Fs?Fs=e:Fs.push.apply(Fs,e)}function lc(e,t){for(t&=~zs,t&=~As,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function sc(e){if(0!=(6&Ls))throw Error(n(327));wc();var t=ft(e,0);if(0==(1&t))return rc(e,Ze()),null;var r=gc(e,t);if(0!==e.tag&&2===r){var o=ht(e);0!==o&&(t=o,r=ic(e,o))}if(1===r)throw r=Ds,fc(e,0),lc(e,t),rc(e,Ze()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sc(e,Fs,Ws),rc(e,Ze()),null}function cc(e,t){var n=Ls;Ls|=1;try{return e(t)}finally{0===(Ls=n)&&(Bs=Ze()+500,Fo&&Wo())}}function uc(e){null!==Ks&&0===Ks.tag&&0==(6&Ls)&&wc();var t=Ls;Ls|=1;var n=Rs.transition,r=yt;try{if(Rs.transition=null,yt=1,e)return e()}finally{yt=r,Rs.transition=n,0==(6&(Ls=t))&&Wo()}}function dc(){Ps=Ms.current,_o(Ms)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Is)for(n=Is.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&qo();break;case 3:Xi(),_o(Io),_o(Oo),ra();break;case 5:Qi(r);break;case 4:Xi();break;case 13:case 19:_o(ea);break;case 10:Li(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Os=e,Is=e=Mc(e.current,null),Ts=Ps=t,qs=0,Ds=null,zs=As=Ns=0,Fs=js=null,null!==Pi){for(t=0;t<Pi.length;t++)if(null!==(r=(n=Pi[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}Pi=null}return e}function pc(e,t){for(;;){var r=Is;try{if(Ri(),oa.current=Ya,ua){for(var o=la.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}ua=!1}if(aa=0,ca=sa=la=null,da=!1,fa=0,_s.current=null,null===r||null===r.return){qs=1,Ds=t,Is=null;break}e:{var a=e,l=r.return,s=r,c=t;if(t=Ts,s.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=s,f=d.tag;if(0==(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gl(l);if(null!==h){h.flags&=-257,vl(h,l,s,0,t),1&h.mode&&ml(a,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0==(1&t)){ml(a,u,t),mc();break e}c=Error(n(426))}else if(ii&&1&s.mode){var v=gl(l);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),vl(v,l,s,0,t),mi(cl(c,s));break e}}a=c=cl(c,s),4!==qs&&(qs=2),null===js?js=[a]:js.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Bi(a,pl(0,c,t));break e;case 1:s=c;var b=a.type,y=a.stateNode;if(0==(128&a.flags)&&("function"==typeof b.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===Vs||!Vs.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Bi(a,hl(a,s,t));break e}}a=a.return}while(null!==a)}xc(r)}catch(e){t=e,Is===r&&null!==r&&(Is=r=r.return);continue}break}}function hc(){var e=Cs.current;return Cs.current=Ya,null===e?Ya:e}function mc(){0!==qs&&3!==qs&&2!==qs||(qs=4),null===Os||0==(268435455&Ns)&&0==(268435455&As)||lc(Os,Ts)}function gc(e,t){var r=Ls;Ls|=2;var o=hc();for(Os===e&&Ts===t||(Ws=null,fc(e,t));;)try{vc();break}catch(t){pc(e,t)}if(Ri(),Ls=r,Cs.current=o,null!==Is)throw Error(n(261));return Os=null,Ts=0,qs}function vc(){for(;null!==Is;)yc(Is)}function bc(){for(;null!==Is&&!Ve();)yc(Is)}function yc(e){var t=Es(e.alternate,e,Ps);e.memoizedProps=e.pendingProps,null===t?xc(e):Is=t,_s.current=null}function xc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Gl(n,t,Ps)))return void(Is=n)}else{if(null!==(n=Kl(n,t)))return n.flags&=32767,void(Is=n);if(null===e)return qs=6,void(Is=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Is=t);Is=t=e}while(null!==t);0===qs&&(qs=5)}function Sc(e,t,r){var o=yt,i=Rs.transition;try{Rs.transition=null,yt=1,function(e,t,r,o){do{wc()}while(null!==Ks);if(0!=(6&Ls))throw Error(n(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.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-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Os&&(Is=Os=null,Ts=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||Gs||(Gs=!0,Oc(et,(function(){return wc(),null}))),a=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||a){a=Rs.transition,Rs.transition=null;var l=yt;yt=1;var s=Ls;Ls|=4,_s.current=null,function(e,t){if(eo=Ht,pr(e=fr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var l=0,s=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||0!==i&&3!==f.nodeType||(s=l+i),f!==a||0!==o&&3!==f.nodeType||(c=l+o),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++u===i&&(s=l),p===a&&++d===o&&(c=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}r=-1===s||-1===c?null:{start:s,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},Ht=!1,Yl=t;null!==Yl;)if(e=(t=Yl).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Yl=e;else for(;null!==Yl;){t=Yl;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:nl(t.type,g),v);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(n(163))}}catch(e){kc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Yl=e;break}Yl=t.return}m=ts,ts=!1}(e,r),gs(r,e),hr(to),Ht=!!eo,to=eo=null,e.current=r,bs(r),Ke(),Ls=s,yt=l,Rs.transition=a}else e.current=r;if(Gs&&(Gs=!1,Ks=e,Zs=i),a=e.pendingLanes,0===a&&(Vs=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode),rc(e,Ze()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],o(i.value,{componentStack:i.stack,digest:i.digest});if(Hs)throw Hs=!1,e=Us,Us=null,e;0!=(1&Zs)&&0!==e.tag&&wc(),a=e.pendingLanes,0!=(1&a)?e===Xs?Js++:(Js=0,Xs=e):Js=0,Wo()}(e,t,r,o)}finally{Rs.transition=i,yt=o}return null}function wc(){if(null!==Ks){var e=xt(Zs),t=Rs.transition,r=yt;try{if(Rs.transition=null,yt=16>e?16:e,null===Ks)var o=!1;else{if(e=Ks,Ks=null,Zs=0,0!=(6&Ls))throw Error(n(331));var i=Ls;for(Ls|=4,Yl=e.current;null!==Yl;){var a=Yl,l=a.child;if(0!=(16&Yl.flags)){var s=a.deletions;if(null!==s){for(var c=0;c<s.length;c++){var u=s[c];for(Yl=u;null!==Yl;){var d=Yl;switch(d.tag){case 0:case 11:case 15:ns(8,d,a)}var f=d.child;if(null!==f)f.return=d,Yl=f;else for(;null!==Yl;){var p=(d=Yl).sibling,h=d.return;if(is(d),d===u){Yl=null;break}if(null!==p){p.return=h,Yl=p;break}Yl=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Yl=a}}if(0!=(2064&a.subtreeFlags)&&null!==l)l.return=a,Yl=l;else e:for(;null!==Yl;){if(0!=(2048&(a=Yl).flags))switch(a.tag){case 0:case 11:case 15:ns(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,Yl=b;break e}Yl=a.return}}var y=e.current;for(Yl=y;null!==Yl;){var x=(l=Yl).child;if(0!=(2064&l.subtreeFlags)&&null!==x)x.return=l,Yl=x;else e:for(l=y;null!==Yl;){if(0!=(2048&(s=Yl).flags))try{switch(s.tag){case 0:case 11:case 15:rs(9,s)}}catch(e){kc(s,s.return,e)}if(s===l){Yl=null;break e}var S=s.sibling;if(null!==S){S.return=s.return,Yl=S;break e}Yl=s.return}}if(Ls=i,Wo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}o=!0}return o}finally{yt=r,Rs.transition=t}}return!1}function Ec(e,t,n){e=Fi(e,t=pl(0,t=cl(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),rc(e,t))}function kc(e,t,n){if(3===e.tag)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vs||!Vs.has(r))){t=Fi(t,e=hl(t,e=cl(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),rc(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Os===e&&(Ts&n)===n&&(4===qs||3===qs&&(130023424&Ts)===Ts&&500>Ze()-$s?fc(e,0):zs|=n),rc(e,t)}function _c(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=Di(e,t))&&(vt(e,t,n),rc(e,n))}function Rc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),_c(e,n)}function Lc(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),_c(e,r)}function Oc(e,t){return He(e,t)}function Ic(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 Tc(e,t,n,r){return new Ic(e,t,n,r)}function Pc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mc(e,t){var n=e.alternate;return null===n?((n=Tc(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 qc(e,t,r,o,i,a){var l=2;if(o=e,"function"==typeof e)Pc(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case S:return Dc(r.children,i,a,t);case w:l=8,i|=8;break;case E:return(e=Tc(12,r,t,2|i)).elementType=E,e.lanes=a,e;case R:return(e=Tc(13,r,t,i)).elementType=R,e.lanes=a,e;case L:return(e=Tc(19,r,t,i)).elementType=L,e.lanes=a,e;case T:return Nc(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:l=10;break e;case C:l=9;break e;case _:l=11;break e;case O:l=14;break e;case I:l=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Tc(l,r,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Dc(e,t,n,r){return(e=Tc(7,e,r,t)).lanes=n,e}function Nc(e,t,n,r){return(e=Tc(22,e,r,t)).elementType=T,e.lanes=n,e.stateNode={isHidden:!1},e}function Ac(e,t,n){return(e=Tc(6,e,null,t)).lanes=n,e}function zc(e,t,n){return(t=Tc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jc(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=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fc(e,t,n,r,o,i,a,l,s){return e=new jc(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Tc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ai(i),e}function $c(e){if(!e)return Lo;e:{if(je(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Mo(r))return No(e,r,t)}return t}function Bc(e,t,n,r,o,i,a,l,s){return(e=Fc(n,r,!0,e,0,i,0,l,s)).context=$c(null),n=e.current,(i=ji(r=ec(),o=tc(n))).callback=null!=t?t:null,Fi(n,i,o),e.current.lanes=o,vt(e,o,r),rc(e,r),e}function Wc(e,t,n,r){var o=t.current,i=ec(),a=tc(o);return n=$c(n),null===t.context?t.context=n:t.pendingContext=n,(t=ji(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Fi(o,t,a))&&(nc(e,o,a,i),$i(e,o,a)),a}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Uc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vc(e,t){Uc(e,t),(e=e.alternate)&&Uc(e,t)}Es=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Io.current)yl=!0;else{if(0==(e.lanes&r)&&0==(128&t.flags))return yl=!1,function(e,t,n){switch(t.tag){case 3:Ol(t),hi();break;case 5:Yi(t);break;case 1:Mo(t.type)&&Ao(t);break;case 4:Ji(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ro(Ei,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ro(ea,1&ea.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Al(e,t,n):(Ro(ea,1&ea.current),null!==(e=Hl(e,t,n))?e.sibling:null);Ro(ea,1&ea.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Bl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ro(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,kl(e,t,n)}return Hl(e,t,n)}(e,t,r);yl=0!=(131072&e.flags)}else yl=!1,ii&&0!=(1048576&t.flags)&&ei(t,Go,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Wl(e,t),e=t.pendingProps;var i=Po(t,Oo.current);Ii(t,r),i=ga(null,t,o,e,i,r);var a=va();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mo(o)?(a=!0,Ao(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ai(t),i.updater=ol,t.stateNode=i,i._reactInternals=t,sl(t,o,e,r),t=Ll(null,t,o,!0,a,r)):(t.tag=0,ii&&a&&ti(t),xl(null,t,i,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Pc(e)?1:0;if(null!=e){if((e=e.$$typeof)===_)return 11;if(e===O)return 14}return 2}(o),e=nl(o,e),i){case 0:t=_l(null,t,o,e,r);break e;case 1:t=Rl(null,t,o,e,r);break e;case 11:t=Sl(null,t,o,e,r);break e;case 14:t=wl(null,t,o,nl(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,_l(e,t,o,i=t.elementType===o?i:nl(o,i),r);case 1:return o=t.type,i=t.pendingProps,Rl(e,t,o,i=t.elementType===o?i:nl(o,i),r);case 3:e:{if(Ol(t),null===e)throw Error(n(387));o=t.pendingProps,i=(a=t.memoizedState).element,zi(e,t),Wi(t,o,null,r);var l=t.memoizedState;if(o=l.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Il(e,t,o,r,i=cl(Error(n(423)),t));break e}if(o!==i){t=Il(e,t,o,r,i=cl(Error(n(424)),t));break e}for(oi=co(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,r=wi(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(hi(),o===i){t=Hl(e,t,r);break e}xl(e,t,o,r)}t=t.child}return t;case 5:return Yi(t),null===e&&ui(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,l=i.children,no(o,i)?l=null:null!==a&&no(o,a)&&(t.flags|=32),Cl(e,t),xl(e,t,l,r),t.child;case 6:return null===e&&ui(t),null;case 13:return Al(e,t,r);case 4:return Ji(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Si(t,null,o,r):xl(e,t,o,r),t.child;case 11:return o=t.type,i=t.pendingProps,Sl(e,t,o,i=t.elementType===o?i:nl(o,i),r);case 7:return xl(e,t,t.pendingProps,r),t.child;case 8:case 12:return xl(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,a=t.memoizedProps,l=i.value,Ro(Ei,o._currentValue),o._currentValue=l,null!==a)if(lr(a.value,l)){if(a.children===i.children&&!Io.current){t=Hl(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){l=a.child;for(var c=s.firstContext;null!==c;){if(c.context===o){if(1===a.tag){(c=ji(-1,r&-r)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=r,null!==(c=a.alternate)&&(c.lanes|=r),Oi(a.return,r,t),s.lanes|=r;break}c=c.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(n(341));l.lanes|=r,null!==(s=l.alternate)&&(s.lanes|=r),Oi(l,r,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}xl(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,Ii(t,r),o=o(i=Ti(i)),t.flags|=1,xl(e,t,o,r),t.child;case 14:return i=nl(o=t.type,t.pendingProps),wl(e,t,o,i=nl(o.type,i),r);case 15:return El(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:nl(o,i),Wl(e,t),t.tag=1,Mo(o)?(e=!0,Ao(t)):e=!1,Ii(t,r),al(t,o,i),sl(t,o,i,r),Ll(null,t,o,!0,e,r);case 19:return Bl(e,t,r);case 22:return kl(e,t,r)}throw Error(n(156,t.tag))};var Gc="function"==typeof reportError?reportError:function(e){console.error(e)};function Kc(e){this._internalRoot=e}function Zc(e){this._internalRoot=e}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Yc(){}function Qc(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=Hc(a);l.call(e)}}Wc(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=Hc(a);i.call(e)}}var a=Bc(t,r,e,0,null,!1,0,"",Yc);return e._reactRootContainer=a,e[mo]=a.current,Br(8===e.nodeType?e.parentNode:e),uc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Hc(s);l.call(e)}}var s=Fc(e,0,!1,null,0,!1,0,"",Yc);return e._reactRootContainer=s,e[mo]=s.current,Br(8===e.nodeType?e.parentNode:e),uc((function(){Wc(t,s,n,r)})),s}(n,t,e,o,r);return Hc(a)}Zc.prototype.render=Kc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Wc(e,t,null,null)},Zc.prototype.unmount=Kc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Wc(null,e,null,null)})),t[mo]=null}},Zc.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&At(e)}},St=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),rc(t,Ze()),0==(6&Ls)&&(Bs=Ze()+500,Wo()))}break;case 13:uc((function(){var t=Di(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Vc(e,1)}},wt=function(e){if(13===e.tag){var t=Di(e,134217728);if(null!==t)nc(t,e,134217728,ec());Vc(e,134217728)}},Et=function(e){if(13===e.tag){var t=tc(e),n=Di(e,t);if(null!==n)nc(n,e,t,ec());Vc(e,t)}},kt=function(){return yt},Ct=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},ye=function(e,t,r){switch(t){case"input":if(J(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var i=wo(o);if(!i)throw Error(n(90));U(o),J(o,i)}}}break;case"textarea":re(e,r);break;case"select":null!=(t=r.value)&&ee(e,!!r.multiple,t,!1)}},Ce=cc,_e=uc;var eu={usingClientEntryPoint:!1,Events:[xo,So,wo,Ee,ke,cc]},tu={findFiberByHostInstance:yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:v.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Be(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),it=ru}catch(e){}}return Ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,Ye.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Jc(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},Ye.createRoot=function(e,t){if(!Jc(e))throw Error(n(299));var r=!1,o="",i=Gc;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Fc(e,1,!1,null,0,r,0,o,i),e[mo]=t.current,Br(8===e.nodeType?e.parentNode:e),new Kc(t)},Ye.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(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=Be(t))?null:e.stateNode},Ye.flushSync=function(e){return uc(e)},Ye.hydrate=function(e,t,r){if(!Xc(t))throw Error(n(200));return Qc(null,e,t,!0,r)},Ye.hydrateRoot=function(e,t,r){if(!Jc(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,i=!1,a="",l=Gc;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(l=r.onRecoverableError)),t=Bc(t,null,e,1,null!=r?r:null,i,0,a,l),e[mo]=t.current,Br(e),o)for(e=0;e<o.length;e++)i=(i=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Zc(t)},Ye.render=function(e,t,r){if(!Xc(t))throw Error(n(200));return Qc(null,e,t,!1,r)},Ye.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(n(40));return!!e._reactRootContainer&&(uc((function(){Qc(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},Ye.unstable_batchedUpdates=cc,Ye.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Xc(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Qc(e,t,r,!1,o)},Ye.version="18.3.1-next-f1338f8080-20240426",Ye}function rt(){if(Ke)return Xe.exports;return Ke=1,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)}}(),Xe.exports=nt(),Xe.exports}var ot=function(){if(Ze)return Je;Ze=1;var e=rt();return Je.createRoot=e.createRoot,Je.hydrateRoot=e.hydrateRoot,Je}(),it=r(ot);function at(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."}var lt=Object.freeze({__proto__:null,default:at}),st="$$material";function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ct.apply(null,arguments)}function ut(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var dt=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),ft="-ms-",pt="-moz-",ht="-webkit-",mt="comm",gt="rule",vt="decl",bt="@keyframes",yt=Math.abs,xt=String.fromCharCode,St=Object.assign;function wt(e,t){return 45^Rt(e,0)?(((t<<2^Rt(e,0))<<2^Rt(e,1))<<2^Rt(e,2))<<2^Rt(e,3):0}function Et(e){return e.trim()}function kt(e,t){return(e=t.exec(e))?e[0]:e}function Ct(e,t,n){return e.replace(t,n)}function _t(e,t){return e.indexOf(t)}function Rt(e,t){return 0|e.charCodeAt(t)}function Lt(e,t,n){return e.slice(t,n)}function Ot(e){return e.length}function It(e){return e.length}function Tt(e,t){return t.push(e),e}function Pt(e,t){return e.map(t).join("")}var Mt=1,qt=1,Dt=0,Nt=0,At=0,zt="";function jt(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Mt,column:qt,length:a,return:""}}function Ft(e,t){return St(jt("",null,null,"",null,null,0),e,{length:-e.length},t)}function $t(){return At=Nt>0?Rt(zt,--Nt):0,qt--,10===At&&(qt=1,Mt--),At}function Bt(){return At=Nt<Dt?Rt(zt,Nt++):0,qt++,10===At&&(qt=1,Mt++),At}function Wt(){return Rt(zt,Nt)}function Ht(){return Nt}function Ut(e,t){return Lt(zt,e,t)}function Vt(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 Gt(e){return Mt=qt=1,Dt=Ot(zt=e),Nt=0,[]}function Kt(e){return zt="",e}function Zt(e){return Et(Ut(Nt-1,Yt(91===e?e+2:40===e?e+1:e)))}function Jt(e){for(;(At=Wt())&&At<33;)Bt();return Vt(e)>2||Vt(At)>3?"":" "}function Xt(e,t){for(;--t&&Bt()&&!(At<48||At>102||At>57&&At<65||At>70&&At<97););return Ut(e,Ht()+(t<6&&32==Wt()&&32==Bt()))}function Yt(e){for(;Bt();)switch(At){case e:return Nt;case 34:case 39:34!==e&&39!==e&&Yt(At);break;case 40:41===e&&Yt(e);break;case 92:Bt()}return Nt}function Qt(e,t){for(;Bt()&&e+At!==57&&(e+At!==84||47!==Wt()););return"/*"+Ut(t,Nt-1)+"*"+xt(47===e?e:Bt())}function en(e){for(;!Vt(Wt());)Bt();return Ut(e,Nt)}function tn(e){return Kt(nn("",null,null,null,[""],e=Gt(e),0,[0],e))}function nn(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,f=0,p=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=Bt()){case 40:if(108!=h&&58==Rt(E,d-1)){-1!=_t(E+=Ct(Zt(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=Zt(b);break;case 9:case 10:case 13:case 32:E+=Jt(h);break;case 92:E+=Xt(Ht()-1,7);continue;case 47:switch(Wt()){case 42:case 47:Tt(on(Qt(Bt(),Ht()),t,n),s);break;default:E+="/"}break;case 123*m:l[c++]=Ot(E)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(E=Ct(E,/\f/g,"")),p>0&&Ot(E)-d&&Tt(p>32?an(E+";",r,n,d-1):an(Ct(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(Tt(w=rn(E,t,n,c,u,o,l,y,x=[],S=[],d),i),123===b)if(0===u)nn(E,t,w,w,x,i,d,l,S);else switch(99===f&&110===Rt(E,3)?100:f){case 100:case 108:case 109:case 115:nn(e,w,w,r&&Tt(rn(e,w,w,0,0,o,l,y,o,x=[],d),S),o,S,d,l,r?x:S);break;default:nn(E,w,w,w,[""],S,0,l,S)}}c=u=p=0,m=v=1,y=E="",d=a;break;case 58:d=1+Ot(E),p=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==$t())continue;switch(E+=xt(b),b*m){case 38:v=u>0?1:(E+="\f",-1);break;case 44:l[c++]=(Ot(E)-1)*v,v=1;break;case 64:45===Wt()&&(E+=Zt(Bt())),f=Wt(),u=d=Ot(y=E+=en(Ht())),b++;break;case 45:45===h&&2==Ot(E)&&(m=0)}}return i}function rn(e,t,n,r,o,i,a,l,s,c,u){for(var d=o-1,f=0===o?i:[""],p=It(f),h=0,m=0,g=0;h<r;++h)for(var v=0,b=Lt(e,d+1,d=yt(m=a[h])),y=e;v<p;++v)(y=Et(m>0?f[v]+" "+b:Ct(b,/&\f/g,f[v])))&&(s[g++]=y);return jt(e,t,n,0===o?gt:l,s,c,u)}function on(e,t,n){return jt(e,t,n,mt,xt(At),Lt(e,2,-2),0)}function an(e,t,n,r){return jt(e,t,n,vt,Lt(e,0,r),Lt(e,r+1,-1),r)}function ln(e,t){for(var n="",r=It(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function sn(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case vt:return e.return=e.return||e.value;case mt:return"";case bt:return e.return=e.value+"{"+ln(e.children,r)+"}";case gt:e.value=e.props.join(",")}return Ot(n=ln(e.children,r))?e.return=e.value+"{"+n+"}":""}function cn(e){var t=It(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}function un(e){return function(t){t.root||(t=t.return)&&e(t)}}var dn=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 fn(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var pn="undefined"!=typeof document,hn=function(e,t,n){for(var r=0,o=0;r=o,o=Wt(),38===r&&12===o&&(t[n]=1),!Vt(o);)Bt();return Ut(e,Nt)},mn=function(e,t){return Kt(function(e,t){var n=-1,r=44;do{switch(Vt(r)){case 0:38===r&&12===Wt()&&(t[n]=1),e[n]+=hn(Nt-1,t,n);break;case 2:e[n]+=Zt(r);break;case 4:if(44===r){e[++n]=58===Wt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=xt(r)}}while(r=Bt());return e}(Gt(e),t))},gn=new WeakMap,vn=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)||gn.get(n))&&!r){gn.set(e,!0);for(var o=[],i=mn(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]}}},bn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function yn(e,t){switch(wt(e,t)){case 5103:return ht+"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 ht+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ht+e+pt+e+ft+e+e;case 6828:case 4268:return ht+e+ft+e+e;case 6165:return ht+e+ft+"flex-"+e+e;case 5187:return ht+e+Ct(e,/(\w+).+(:[^]+)/,ht+"box-$1$2"+ft+"flex-$1$2")+e;case 5443:return ht+e+ft+"flex-item-"+Ct(e,/flex-|-self/,"")+e;case 4675:return ht+e+ft+"flex-line-pack"+Ct(e,/align-content|flex-|-self/,"")+e;case 5548:return ht+e+ft+Ct(e,"shrink","negative")+e;case 5292:return ht+e+ft+Ct(e,"basis","preferred-size")+e;case 6060:return ht+"box-"+Ct(e,"-grow","")+ht+e+ft+Ct(e,"grow","positive")+e;case 4554:return ht+Ct(e,/([^-])(transform)/g,"$1"+ht+"$2")+e;case 6187:return Ct(Ct(Ct(e,/(zoom-|grab)/,ht+"$1"),/(image-set)/,ht+"$1"),e,"")+e;case 5495:case 3959:return Ct(e,/(image-set\([^]*)/,ht+"$1$`$1");case 4968:return Ct(Ct(e,/(.+:)(flex-)?(.*)/,ht+"box-pack:$3"+ft+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ht+e+e;case 4095:case 3583:case 4068:case 2532:return Ct(e,/(.+)-inline(.+)/,ht+"$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(Ot(e)-1-t>6)switch(Rt(e,t+1)){case 109:if(45!==Rt(e,t+4))break;case 102:return Ct(e,/(.+:)(.+)-([^]+)/,"$1"+ht+"$2-$3$1"+pt+(108==Rt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~_t(e,"stretch")?yn(Ct(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Rt(e,t+1))break;case 6444:switch(Rt(e,Ot(e)-3-(~_t(e,"!important")&&10))){case 107:return Ct(e,":",":"+ht)+e;case 101:return Ct(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ht+(45===Rt(e,14)?"inline-":"")+"box$3$1"+ht+"$2$3$1"+ft+"$2box$3")+e}break;case 5936:switch(Rt(e,t+11)){case 114:return ht+e+ft+Ct(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ht+e+ft+Ct(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ht+e+ft+Ct(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ht+e+ft+e+e}return e}var xn,Sn,wn,En,kn=pn?void 0:dn((function(){return fn((function(){return{}}))})),Cn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case vt:e.return=yn(e.value,e.length);break;case bt:return ln([Ft(e,{value:Ct(e.value,"@","@"+ht)})],r);case gt:if(e.length)return Pt(e.props,(function(t){switch(kt(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ln([Ft(e,{props:[Ct(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ln([Ft(e,{props:[Ct(t,/:(plac\w+)/,":"+ht+"input-$1")]}),Ft(e,{props:[Ct(t,/:(plac\w+)/,":-moz-$1")]}),Ft(e,{props:[Ct(t,/:(plac\w+)/,ft+"input-$1")]})],r)}return""}))}}],_n=function(e){var t=e.key;if(pn&&"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||Cn,a={},l=[];pn&&(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=[vn,bn];if(kn){var c=[sn],u=cn(s.concat(i,c)),d=kn(i)(t),f=function(e,t){var n=t.name;return void 0===d[n]&&(d[n]=function(e){return ln(tn(e),u)}(e?e+"{"+t.styles+"}":t.styles)),d[n]};o=function(e,t,n,r){var o=t.name,i=f(e,t);return void 0===g.compat?(r&&(g.inserted[o]=!0),i):r?void(g.inserted[o]=i):i}}else{var p,h=[sn,un((function(e){p.insert(e)}))],m=cn(s.concat(i,h));o=function(e,t,n,r){p=n,function(e){ln(tn(e),m)}(e?e+"{"+t.styles+"}":t.styles),r&&(g.inserted[t.name]=!0)}}var g={key:t,sheet:new dt({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 g.sheet.hydrate(l),g},Rn={exports:{}},Ln={};function On(){return Sn||(Sn=1,Rn.exports=function(){if(xn)return Ln;xn=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case s:case l:case c:case p:case f:case a:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),Ln.ContextConsumer=l,Ln.ContextProvider=a,Ln.Element=t,Ln.ForwardRef=c,Ln.Fragment=r,Ln.Lazy=p,Ln.Memo=f,Ln.Portal=n,Ln.Profiler=i,Ln.StrictMode=o,Ln.Suspense=u,Ln.SuspenseList=d,Ln.isAsyncMode=function(){return!1},Ln.isConcurrentMode=function(){return!1},Ln.isContextConsumer=function(e){return m(e)===l},Ln.isContextProvider=function(e){return m(e)===a},Ln.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ln.isForwardRef=function(e){return m(e)===c},Ln.isFragment=function(e){return m(e)===r},Ln.isLazy=function(e){return m(e)===p},Ln.isMemo=function(e){return m(e)===f},Ln.isPortal=function(e){return m(e)===n},Ln.isProfiler=function(e){return m(e)===i},Ln.isStrictMode=function(e){return m(e)===o},Ln.isSuspense=function(e){return m(e)===u},Ln.isSuspenseList=function(e){return m(e)===d},Ln.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===l||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Ln.typeOf=m,Ln}()),Rn.exports}!function(){if(En)return wn;En=1;var e=On(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,l=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;wn=function e(t,r,o){if("string"!=typeof r){if(d){var f=u(r);f&&f!==d&&e(t,f,o)}var p=l(r);s&&(p=p.concat(s(r)));for(var h=i(t),m=i(r),g=0;g<p.length;++g){var v=p[g];if(!(n[v]||o&&o[v]||m&&m[v]||h&&h[v])){var b=c(r,v);try{a(t,v,b)}catch(e){}}}}return t}}();var In="undefined"!=typeof document;function Tn(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Pn=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===In&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Mn=function(e,t,n){Pn(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);In||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!In&&0!==o.length)return o}};var qn={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,scale: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},Dn=/[A-Z]|^ms/g,Nn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,An=function(e){return 45===e.charCodeAt(1)},zn=function(e){return null!=e&&"boolean"!=typeof e},jn=fn((function(e){return An(e)?e:e.replace(Dn,"-$&").toLowerCase()})),Fn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Nn,(function(e,t,n){return Bn={name:t,styles:n,next:Bn},t}))}return 1===qn[e]||An(e)||"number"!=typeof t||0===t?t:t+"px"};function $n(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Bn={name:o.name,styles:o.styles,next:Bn},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Bn={name:a.name,styles:a.styles,next:Bn},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=$n(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var l=a;null!=t&&void 0!==t[l]?r+=i+"{"+t[l]+"}":zn(l)&&(r+=jn(i)+":"+Fn(i,l)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=$n(e,t,a);switch(i){case"animation":case"animationName":r+=jn(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var c=0;c<a.length;c++)zn(a[c])&&(r+=jn(i)+":"+Fn(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var l=Bn,s=n(e);return Bn=l,$n(e,t,s)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Bn,Wn=/label:\s*([^\s;{]+)\s*(;|$)/g;function Hn(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="";Bn=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=$n(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=$n(n,t,e[a]),r)o+=i[a]}Wn.lastIndex=0;for(var l,s="";null!==(l=Wn.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:Bn}}var Un="undefined"!=typeof document,Vn=function(e){return e()},Gn=!!w.useInsertionEffect&&w.useInsertionEffect,Kn=Un&&Gn||Vn,Zn=Gn||x.useLayoutEffect,Jn="undefined"!=typeof document,Xn=x.createContext("undefined"!=typeof HTMLElement?_n({key:"css"}):null),Yn=Xn.Provider,Qn=function(e){return x.forwardRef((function(t,n){var r=x.useContext(Xn);return e(t,r,n)}))};Jn||(Qn=function(e){return function(t){var n=x.useContext(Xn);return null===n?(n=_n({key:"css"}),x.createElement(Xn.Provider,{value:n},e(t,n))):e(t,n)}});var er,tr,nr=x.createContext({}),rr={}.hasOwnProperty,or="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ir=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Pn(t,n,r);var o=Kn((function(){return Mn(t,n,r)}));if(!Jn&&void 0!==o){for(var i,a=n.name,l=n.next;void 0!==l;)a+=" "+l.name,l=l.next;return x.createElement("style",((i={})["data-emotion"]=t.key+" "+a,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},ar=Qn((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[or],i=[r],a="";"string"==typeof e.className?a=Tn(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var l=Hn(i,void 0,x.useContext(nr));a+=t.key+"-"+l.name;var s={};for(var c in e)rr.call(e,c)&&"css"!==c&&c!==or&&(s[c]=e[c]);return s.className=a,n&&(s.ref=n),x.createElement(x.Fragment,null,x.createElement(ir,{cache:t,serialized:l,isStringTag:"string"==typeof o}),x.createElement(o,s))})),lr=ar,sr=function(e,t){var n=arguments;if(null==t||!rr.call(t,"css"))return x.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=lr,o[1]=function(e,t){var n={};for(var r in t)rr.call(t,r)&&(n[r]=t[r]);return n[or]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return x.createElement.apply(null,o)};er=sr||(sr={}),tr||(tr=er.JSX||(er.JSX={}));var cr=Qn((function(e,t){var n=Hn([e.styles],void 0,x.useContext(nr));if(!Jn){for(var r,o=n.name,i=n.styles,a=n.next;void 0!==a;)o+=" "+a.name,i+=a.styles,a=a.next;var l=!0===t.compat,s=t.insert("",{name:o,styles:i},t.sheet,l);return l?null:x.createElement("style",((r={})["data-emotion"]=t.key+"-global "+o,r.dangerouslySetInnerHTML={__html:s},r.nonce=t.sheet.nonce,r))}var c=x.useRef();return Zn((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),c.current=[r,o],function(){r.flush()}}),[t]),Zn((function(){var e=c.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Mn(t,n.next,!0),r.tags.length){var o=r.tags[r.tags.length-1].nextElementSibling;r.before=o,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function ur(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Hn(t)}function dr(){var e=ur.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_"}}}var fr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,pr="undefined"!=typeof document,hr=fn((function(e){return fr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),mr=function(e){return"theme"!==e},gr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?hr:mr},vr=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},br=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Pn(t,n,r);var o=Kn((function(){return Mn(t,n,r)}));if(!pr&&void 0!==o){for(var i,a=n.name,l=n.next;void 0!==l;)a+=" "+l.name,l=l.next;return x.createElement("style",((i={})["data-emotion"]=t.key+" "+a,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},yr=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=vr(t,n,i),s=l||gr(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{var f=u[0];d.push(f[0]);for(var p=u.length,h=1;h<p;h++)d.push(u[h],f[h])}var m=Qn((function(e,t,n){var r=c&&e.as||a,i="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=x.useContext(nr)}"string"==typeof e.className?i=Tn(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var h=Hn(d.concat(u),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===l?gr(r):s,g={};for(var v in e)c&&"as"===v||m(v)&&(g[v]=e[v]);return g.className=i,n&&(g.ref=n),x.createElement(x.Fragment,null,x.createElement(br,{cache:t,serialized:h,isStringTag:"string"==typeof r}),x.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,ct({},n,r,{shouldForwardProp:vr(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["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){yr[e]=yr(e)}));var xr="undefined"!=typeof document,Sr=function(e,t,n){for(var r=0,o=0;r=o,o=Wt(),38===r&&12===o&&(t[n]=1),!Vt(o);)Bt();return Ut(e,Nt)},wr=function(e,t){return Kt(function(e,t){var n=-1,r=44;do{switch(Vt(r)){case 0:38===r&&12===Wt()&&(t[n]=1),e[n]+=Sr(Nt-1,t,n);break;case 2:e[n]+=Zt(r);break;case 4:if(44===r){e[++n]=58===Wt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=xt(r)}}while(r=Bt());return e}(Gt(e),t))},Er=new WeakMap,kr=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)||Er.get(n))&&!r){Er.set(e,!0);for(var o=[],i=wr(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]}}},Cr=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function _r(e,t){switch(wt(e,t)){case 5103:return ht+"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 ht+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ht+e+pt+e+ft+e+e;case 6828:case 4268:return ht+e+ft+e+e;case 6165:return ht+e+ft+"flex-"+e+e;case 5187:return ht+e+Ct(e,/(\w+).+(:[^]+)/,ht+"box-$1$2"+ft+"flex-$1$2")+e;case 5443:return ht+e+ft+"flex-item-"+Ct(e,/flex-|-self/,"")+e;case 4675:return ht+e+ft+"flex-line-pack"+Ct(e,/align-content|flex-|-self/,"")+e;case 5548:return ht+e+ft+Ct(e,"shrink","negative")+e;case 5292:return ht+e+ft+Ct(e,"basis","preferred-size")+e;case 6060:return ht+"box-"+Ct(e,"-grow","")+ht+e+ft+Ct(e,"grow","positive")+e;case 4554:return ht+Ct(e,/([^-])(transform)/g,"$1"+ht+"$2")+e;case 6187:return Ct(Ct(Ct(e,/(zoom-|grab)/,ht+"$1"),/(image-set)/,ht+"$1"),e,"")+e;case 5495:case 3959:return Ct(e,/(image-set\([^]*)/,ht+"$1$`$1");case 4968:return Ct(Ct(e,/(.+:)(flex-)?(.*)/,ht+"box-pack:$3"+ft+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ht+e+e;case 4095:case 3583:case 4068:case 2532:return Ct(e,/(.+)-inline(.+)/,ht+"$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(Ot(e)-1-t>6)switch(Rt(e,t+1)){case 109:if(45!==Rt(e,t+4))break;case 102:return Ct(e,/(.+:)(.+)-([^]+)/,"$1"+ht+"$2-$3$1"+pt+(108==Rt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~_t(e,"stretch")?_r(Ct(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Rt(e,t+1))break;case 6444:switch(Rt(e,Ot(e)-3-(~_t(e,"!important")&&10))){case 107:return Ct(e,":",":"+ht)+e;case 101:return Ct(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ht+(45===Rt(e,14)?"inline-":"")+"box$3$1"+ht+"$2$3$1"+ft+"$2box$3")+e}break;case 5936:switch(Rt(e,t+11)){case 114:return ht+e+ft+Ct(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ht+e+ft+Ct(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ht+e+ft+Ct(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ht+e+ft+e+e}return e}var Rr,Lr,Or=xr?void 0:dn((function(){return fn((function(){var e={};return function(t){return e[t]}}))})),Ir=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case vt:e.return=_r(e.value,e.length);break;case bt:return ln([Ft(e,{value:Ct(e.value,"@","@"+ht)})],r);case gt:if(e.length)return Pt(e.props,(function(t){switch(kt(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ln([Ft(e,{props:[Ct(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ln([Ft(e,{props:[Ct(t,/:(plac\w+)/,":"+ht+"input-$1")]}),Ft(e,{props:[Ct(t,/:(plac\w+)/,":-moz-$1")]}),Ft(e,{props:[Ct(t,/:(plac\w+)/,ft+"input-$1")]})],r)}return""}))}}],Tr={exports:{}},Pr={};function Mr(){return Lr||(Lr=1,Tr.exports=function(){if(Rr)return Pr;Rr=1;var e=y(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var l,s={},c=null,u=null;for(l in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,l)&&!i.hasOwnProperty(l)&&(s[l]=n[l]);if(e&&e.defaultProps)for(l in n=e.defaultProps)void 0===s[l]&&(s[l]=n[l]);return{$$typeof:t,type:e,key:c,ref:u,props:s,_owner:o.current}}return Pr.Fragment=n,Pr.jsx=a,Pr.jsxs=a,Pr}()),Tr.exports}var qr=Mr();let Dr;function Nr(e){const{injectFirst:t,children:n}=e;return t&&Dr?qr.jsx(Yn,{value:Dr,children:n}):n}function Ar(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 qr.jsx(cr,{styles:r})}
17
17
  /**
18
18
  * @mui/styled-engine v5.16.14
19
19
  *
20
20
  * @license MIT
21
21
  * This source code is licensed under the MIT license found in the
22
22
  * LICENSE file in the root directory of this source tree.
23
- */function zr(e,t){return yr(e,t)}"object"==typeof document&&(Dr=function(e){var t=e.key;if(xr&&"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||Ir,a={},l=[];xr&&(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=[kr,Cr];if(xr){var c,u=[sn,un((function(e){c.insert(e)}))],d=cn(s.concat(i,u));o=function(e,t,n,r){c=n,function(e){ln(tn(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(g.inserted[t.name]=!0)}}else{var f=[sn],p=cn(s.concat(i,f)),h=Or(i)(t),m=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return ln(tn(e),p)}(e?e+"{"+t.styles+"}":t.styles)),h[n]};o=function(e,t,n,r){var o=t.name,i=m(e,t);return void 0===g.compat?(r&&(g.inserted[o]=!0),i):r?void(g.inserted[o]=i):i}}var g={key:t,sheet:new dt({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 g.sheet.hydrate(l),g}({key:"css",prepend:!0}));const jr=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};var Fr=Object.freeze({__proto__:null,GlobalStyles:Ar,StyledEngineProvider:qr,ThemeContext:nr,css:ur,default:zr,internal_processStyles:jr,keyframes:dr});function $r(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Br(e){if(x.isValidElement(e)||!$r(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Br(e[n])})),t}function Wr(e,t,n={clone:!0}){const r=n.clone?ct({},e):e;return $r(e)&&$r(t)&&Object.keys(t).forEach((o=>{x.isValidElement(t[o])?r[o]=t[o]:$r(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&$r(e[o])?r[o]=Wr(e[o],t[o],n):n.clone?r[o]=$r(t[o])?Br(t[o]):t[o]:r[o]=t[o]})),r}var Ur=Object.freeze({__proto__:null,default:Wr,isPlainObject:$r});const Hr=["values","unit","step"],Vr=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>ct({},e,{[t.key]:t.val})),{})};function Gr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ut(e,Hr),i=Vr(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 ct({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)}const Kr={borderRadius:4};function Zr(e,t){return t?Wr(e,t,{clone:!1}):e}const Jr={xs:0,sm:600,md:900,lg:1200,xl:1536},Xr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Jr[e]}px)`};function Qr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Xr;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Xr;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Jr).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Yr(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function eo(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function to({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 no(e){if("string"!=typeof e)throw new Error(at(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ro=Object.freeze({__proto__:null,default:no});function oo(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 io(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:oo(e,n)||r,t&&(o=t(o,r,e)),o}function ao(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=oo(e.theme,r)||{};return Qr(e,i,(e=>{let r=io(a,o,e);return e===r&&"string"==typeof e&&(r=io(a,o,`${t}${"default"===e?"":no(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const lo={m:"margin",p:"padding"},so={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},co={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},uo=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!co[e])return[e];e=co[e]}const[t,n]=e.split(""),r=lo[t],o=so[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),fo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],po=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function ho(e,t,n,r){var o;const i=null!=(o=oo(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 mo(e){return ho(e,"spacing",8)}function go(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 vo(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=go(t,n),e)),{})}(uo(n),r);return Qr(e,e[n],o)}function bo(e,t){const n=mo(e.theme);return Object.keys(e).map((r=>vo(e,t,r,n))).reduce(Zr,{})}function yo(e){return bo(e,fo)}function xo(e){return bo(e,po)}function So(e=8){if(e.mui)return e;const t=mo({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 wo(...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]?Zr(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Eo(e){return"number"!=typeof e?e:`${e}px solid`}function ko(e,t){return ao({prop:e,themeKey:"borders",transform:t})}yo.propTypes={},yo.filterProps=fo,xo.propTypes={},xo.filterProps=po;const Co=ko("border",Eo),_o=ko("borderTop",Eo),Ro=ko("borderRight",Eo),Lo=ko("borderBottom",Eo),Oo=ko("borderLeft",Eo),Io=ko("borderColor"),To=ko("borderTopColor"),Po=ko("borderRightColor"),Mo=ko("borderBottomColor"),No=ko("borderLeftColor"),Do=ko("outline",Eo),qo=ko("outlineColor"),Ao=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=ho(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:go(t,e)});return Qr(e,e.borderRadius,n)}return null};Ao.propTypes={},Ao.filterProps=["borderRadius"],wo(Co,_o,Ro,Lo,Oo,Io,To,Po,Mo,No,Ao,Do,qo);const zo=e=>{if(void 0!==e.gap&&null!==e.gap){const t=ho(e.theme,"spacing",8),n=e=>({gap:go(t,e)});return Qr(e,e.gap,n)}return null};zo.propTypes={},zo.filterProps=["gap"];const jo=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=ho(e.theme,"spacing",8),n=e=>({columnGap:go(t,e)});return Qr(e,e.columnGap,n)}return null};jo.propTypes={},jo.filterProps=["columnGap"];const Fo=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=ho(e.theme,"spacing",8),n=e=>({rowGap:go(t,e)});return Qr(e,e.rowGap,n)}return null};Fo.propTypes={},Fo.filterProps=["rowGap"];function $o(e,t){return"grey"===t?t:e}wo(zo,jo,Fo,ao({prop:"gridColumn"}),ao({prop:"gridRow"}),ao({prop:"gridAutoFlow"}),ao({prop:"gridAutoColumns"}),ao({prop:"gridAutoRows"}),ao({prop:"gridTemplateColumns"}),ao({prop:"gridTemplateRows"}),ao({prop:"gridTemplateAreas"}),ao({prop:"gridArea"}));function Bo(e){return e<=1&&0!==e?100*e+"%":e}wo(ao({prop:"color",themeKey:"palette",transform:$o}),ao({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$o}),ao({prop:"backgroundColor",themeKey:"palette",transform:$o}));const Wo=ao({prop:"width",transform:Bo}),Uo=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Jr[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Bo(t)}};return Qr(e,e.maxWidth,t)}return null};Uo.filterProps=["maxWidth"];const Ho=ao({prop:"minWidth",transform:Bo}),Vo=ao({prop:"height",transform:Bo}),Go=ao({prop:"maxHeight",transform:Bo}),Ko=ao({prop:"minHeight",transform:Bo});ao({prop:"size",cssProperty:"width",transform:Bo}),ao({prop:"size",cssProperty:"height",transform:Bo});wo(Wo,Uo,Ho,Vo,Go,Ko,ao({prop:"boxSizing"}));const Zo={border:{themeKey:"borders",transform:Eo},borderTop:{themeKey:"borders",transform:Eo},borderRight:{themeKey:"borders",transform:Eo},borderBottom:{themeKey:"borders",transform:Eo},borderLeft:{themeKey:"borders",transform:Eo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Eo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ao},color:{themeKey:"palette",transform:$o},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$o},backgroundColor:{themeKey:"palette",transform:$o},p:{style:xo},pt:{style:xo},pr:{style:xo},pb:{style:xo},pl:{style:xo},px:{style:xo},py:{style:xo},padding:{style:xo},paddingTop:{style:xo},paddingRight:{style:xo},paddingBottom:{style:xo},paddingLeft:{style:xo},paddingX:{style:xo},paddingY:{style:xo},paddingInline:{style:xo},paddingInlineStart:{style:xo},paddingInlineEnd:{style:xo},paddingBlock:{style:xo},paddingBlockStart:{style:xo},paddingBlockEnd:{style:xo},m:{style:yo},mt:{style:yo},mr:{style:yo},mb:{style:yo},ml:{style:yo},mx:{style:yo},my:{style:yo},margin:{style:yo},marginTop:{style:yo},marginRight:{style:yo},marginBottom:{style:yo},marginLeft:{style:yo},marginX:{style:yo},marginY:{style:yo},marginInline:{style:yo},marginInlineStart:{style:yo},marginInlineEnd:{style:yo},marginBlock:{style:yo},marginBlockStart:{style:yo},marginBlockEnd:{style:yo},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:zo},rowGap:{style:Fo},columnGap:{style:jo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bo},maxWidth:{style:Uo},minWidth:{transform:Bo},height:{transform:Bo},maxHeight:{transform:Bo},minHeight:{transform:Bo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Jo(){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=oo(n,l)||{};if(c)return c(o);return Qr(o,t,(t=>{let n=io(u,s,t);return t===n&&"string"==typeof t&&(n=io(u,s,`${e}${"default"===t?"":no(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:Zo;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=Yr(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=Zr(s,e(n,o,i,a));else{const e=Qr({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=Zr(s,e):s[n]=t({sx:o,theme:i})}else s=Zr(s,e(n,o,i,a))})),eo(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const Xo=Jo();function Qo(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}Xo.filterProps=["sx"];const Yo=["breakpoints","palette","spacing","shape"];function ei(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=ut(e,Yo),l=Gr(n),s=So(o);let c=Wr({breakpoints:l,direction:"ltr",components:{},palette:ct({mode:"light"},r),spacing:s,shape:ct({},Kr,i)},a);return c.applyStyles=Qo,c=t.reduce(((e,t)=>Wr(e,t)),c),c.unstable_sxConfig=ct({},Zo,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Xo({sx:e,theme:this})},c}var ti=Object.freeze({__proto__:null,default:ei,private_createBreakpoints:Gr,unstable_applyStyles:Qo});function ni(e=null){const t=x.useContext(nr);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const ri=ei();function oi(e=ri){return ni(e)}function ii({styles:e,themeId:t,defaultTheme:n={}}){const r=oi(n),o="function"==typeof e?e(t&&r[t]||r):e;return Nr.jsx(Ar,{styles:o})}const ai=["sx"],li=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Zo;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function si(e){const{sx:t}=e,n=ut(e,ai),{systemProps:r,otherProps:o}=li(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return $r(n)?ct({},r,n):r}:ct({},r,t),ct({},o,{sx:i})}var ci=Object.freeze({__proto__:null,default:Xo,extendSxProp:si,unstable_createStyleFunctionSx:Jo,unstable_defaultSxConfig:Zo});const ui=e=>e,di=(()=>{let e=ui;return{configure(t){e=t},generate:t=>e(t),reset(){e=ui}}})();function fi(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=fi(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pi(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=fi(e))&&(r&&(r+=" "),r+=t);return r}const hi=["className","component"];const mi={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function gi(e,t,n="Mui"){const r=mi[t];return r?`${n}-${r}`:`${di.generate(e)}-${t}`}function vi(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=gi(e,t,n)})),r}var bi=On();const yi=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function xi(e){const t=`${e}`.match(yi);return t&&t[1]||""}function Si(e,t=""){return e.displayName||e.name||xi(e)||t}function wi(e,t,n){const r=Si(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Ei=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Si(e,"Component");if("object"==typeof e)switch(e.$$typeof){case bi.ForwardRef:return wi(e,e.render,"ForwardRef");case bi.Memo:return wi(e,e.type,"memo");default:return}}},getFunctionName:xi});const ki=["ownerState"],Ci=["variants"],_i=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ri(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Li=ei(),Oi=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Ii({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Ti(e){return e?(t,n)=>n[e]:null}function Pi(e,t){let{ownerState:n}=t,r=ut(t,ki);const o="function"==typeof e?e(ct({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Pi(e,ct({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=ut(o,Ci);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(ct({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(ct({ownerState:n},r,n)):e.style))})),t}return o}const Mi=function(e={}){const{themeId:t,defaultTheme:n=Li,rootShouldForwardProp:r=Ri,slotShouldForwardProp:o=Ri}=e,i=e=>Xo(ct({},e,{theme:Ii(ct({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{jr(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d=Ti(Oi(s))}=a,f=ut(a,_i),p=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,h=u||!1;let m=Ri;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=zr(e,ct({shouldForwardProp:m,label:undefined},f)),v=e=>"function"==typeof e&&e.__emotion_real!==e||$r(e)?r=>Pi(e,ct({},r,{theme:Ii({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let a=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=Ii(ct({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=Pi(n,ct({},e,{theme:r}))})),d(e,i)})),l&&!p&&s.push((e=>{var r;const o=Ii(ct({},e,{defaultTheme:n,themeId:t}));return Pi({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},ct({},e,{theme:o}))})),h||s.push(i);const c=s.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const u=g(a,...s);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(b.withConfig=g.withConfig),b}}();function Ni(e,t){const n=ct({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=ct({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=ct({},i),Object.keys(o).forEach((e=>{n[r][e]=Ni(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Di({props:e,name:t,defaultTheme:n,themeId:r}){let o=oi(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?Ni(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}const qi="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;var Ai=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function zi(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function ji(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Fi(e,t){var n,r;return x.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(r=e.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)}function $i(e){return e&&e.ownerDocument||document}function Bi(e){return $i(e).defaultView||window}function Wi(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Ui=0;const Hi=w["useId".toString()];function Vi(e){if(void 0!==Hi){const t=Hi();return null!=e?e:t}return function(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect((()=>{null==t&&(Ui+=1,n(`mui-${Ui}`))}),[t]),r}(e)}function Gi({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=x.useRef(void 0!==e),[i,a]=x.useState(t);return[o?e:i,x.useCallback((e=>{o||a(e)}),[])]}function Ki(e){const t=x.useRef(e);return qi((()=>{t.current=e})),x.useRef(((...e)=>(0,t.current)(...e))).current}function Zi(...e){return x.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Wi(e,t)}))}),e)}const Ji={};const Xi=[];class Qi{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Qi}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Yi(){const e=function(e,t){const n=x.useRef(Ji);return n.current===Ji&&(n.current=e(t)),n}(Qi.create).current;var t;return t=e.disposeEffect,x.useEffect(t,Xi),e}let ea=!0,ta=!1;const na=new Qi,ra={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 oa(e){e.metaKey||e.altKey||e.ctrlKey||(ea=!0)}function ia(){ea=!1}function aa(){"hidden"===this.visibilityState&&ta&&(ea=!0)}function la(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ea||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!ra[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function sa(){const e=x.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",oa,!0),t.addEventListener("mousedown",ia,!0),t.addEventListener("pointerdown",ia,!0),t.addEventListener("touchstart",ia,!0),t.addEventListener("visibilitychange",aa,!0))}),[]),t=x.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!la(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ta=!0,na.start(100,(()=>{ta=!1})),t.current=!1,!0)},ref:e}}function ca(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const ua=e=>{const t=x.useRef({});return x.useEffect((()=>{t.current=e})),t.current};function da(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}function fa(e){return"string"==typeof e}function pa(e,t,n){return void 0===e||fa(e)?t:ct({},t,{ownerState:ct({},t.ownerState,n)})}function ha(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ha(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ma(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ha(e))&&(r&&(r+=" "),r+=t);return r}function ga(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function va(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const ba=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ya(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=ut(e,ba),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=ma(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=ct({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=ct({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=ga(ct({},o,r)),l=va(r),s=va(o),c=t(a),u=ma(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=ct({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),f=ct({},c,n,s,l);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}(ct({},a,{externalSlotProps:l}));return pa(n,ct({},s,{ref:Zi(c,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}function xa(e){var t;return parseInt(x.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Sa=x.createContext(null);function wa(){return x.useContext(Sa)}var Ea="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function ka(e){const{children:t,theme:n}=e,r=wa(),o=x.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return ct({},e,t)}(r,n);return null!=e&&(e[Ea]=null!==r),e}),[n,r]);return Nr.jsx(Sa.Provider,{value:o,children:t})}const Ca=["value"],_a=x.createContext();function Ra(e){let{value:t}=e,n=ut(e,Ca);return Nr.jsx(_a.Provider,ct({value:null==t||t},n))}const La=x.createContext(void 0);function Oa({value:e,children:t}){return Nr.jsx(La.Provider,{value:e,children:t})}function Ia({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Ni(o.defaultProps,r):o.styleOverrides||o.variants?r:Ni(o,r)}({props:e,name:t,theme:{components:x.useContext(La)}})}const Ta={};function Pa(e,t,n,r=!1){return x.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?ct({},t,{[e]:i}):i;return r?()=>a:a}return ct({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Ma(e){const{children:t,theme:n,themeId:r}=e,o=ni(Ta),i=wa()||Ta,a=Pa(r,o,n),l=Pa(r,i,n,!0),s="rtl"===a.direction;return Nr.jsx(ka,{theme:l,children:Nr.jsx(nr.Provider,{value:a,children:Nr.jsx(Ra,{value:s,children:Nr.jsx(Oa,{value:null==a?void 0:a.components,children:t})})})})}const Na=["component","direction","spacing","divider","children","className","useFlexGap"],Da=ei(),qa=Mi("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Aa(e){return Di({props:e,name:"MuiStack",defaultTheme:Da})}function za(e,t){const n=x.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(x.cloneElement(t,{key:`separator-${o}`})),e)),[])}const ja=({ownerState:e,theme:t})=>{let n=ct({display:"flex",flexDirection:"column"},Qr({theme:t},to({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=mo(t),o=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),i=to({values:e.direction,base:o}),a=to({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach(((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}}));n=Wr(n,Qr({theme:t},a,((t,n)=>{return e.useFlexGap?{gap:go(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?i[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:go(r,t)}};var o})))}return n=function(e,...t){const n=Yr(e),r=[n,...t].reduce(((e,t)=>Wr(e,t)),{});return eo(Object.keys(n),r)}(t.breakpoints,n),n};const Fa=["defaultProps","mixins","overrides","palette","props","styleOverrides"],$a=["type","mode"];var Ba,Wa={},Ua={exports:{}};function Ha(){return Ba||(Ba=1,function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Ua)),Ua.exports}var Va,Ga=o(lt),Ka=o(Ai);function Za(){if(Va)return Wa;Va=1;var e=Ha();Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.alpha=u,Wa.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(e),s=i(t),c=[o(a.values[0],s.values[0]),o(a.values[1],s.values[1]),o(a.values[2],s.values[2])];return l({type:"rgb",values:c})},Wa.colorChannel=void 0,Wa.darken=d,Wa.decomposeColor=i,Wa.emphasize=p,Wa.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Wa.getLuminance=c,Wa.hexToRgb=o,Wa.hslToRgb=s,Wa.lighten=f,Wa.private_safeAlpha=function(e,t,n){try{return u(e,t)}catch(t){return e}},Wa.private_safeColorChannel=void 0,Wa.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},Wa.private_safeEmphasize=function(e,t,n){try{return p(e,t)}catch(t){return e}},Wa.private_safeLighten=function(e,t,n){try{return f(e,t)}catch(t){return e}},Wa.recomposeColor=l,Wa.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var t=e(Ga),n=e(Ka);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,l=e.substring(n+1,e.length-1);if("color"===r){if(l=l.split(" "),a=l.shift(),4===l.length&&"/"===l[3].charAt(0)&&(l[3]=l[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else l=l.split(",");return l=l.map((e=>parseFloat(e))),{type:r,values:l,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};Wa.colorChannel=a;function l(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 s(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),s=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),l({type:c,values:u})}function c(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(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 u(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,l(e)}function d(e,t){if(e=i(e),t=r(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 l(e)}function f(e,t){if(e=i(e),t=r(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 l(e)}function p(e,t=.15){return c(e)>.5?d(e,t):f(e,t)}return Wa.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},Wa}var Ja=Za();const Xa={black:"#000",white:"#fff"},Qa={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"},Ya={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},el={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},tl={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},nl={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},rl={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ol={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},il=["mode","contrastThreshold","tonalOffset"],al={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:Xa.white,default:Xa.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}},ll={text:{primary:Xa.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:Xa.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 sl(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=Ja.lighten(e.main,o):"dark"===t&&(e.dark=Ja.darken(e.main,i)))}function cl(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ut(e,il),i=e.primary||function(e="light"){return"dark"===e?{main:nl[200],light:nl[50],dark:nl[400]}:{main:nl[700],light:nl[400],dark:nl[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Ya[200],light:Ya[50],dark:Ya[400]}:{main:Ya[500],light:Ya[300],dark:Ya[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:el[500],light:el[300],dark:el[700]}:{main:el[700],light:el[400],dark:el[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:rl[400],light:rl[300],dark:rl[700]}:{main:rl[700],light:rl[500],dark:rl[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:ol[400],light:ol[300],dark:ol[700]}:{main:ol[800],light:ol[500],dark:ol[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:tl[400],light:tl[300],dark:tl[700]}:{main:"#ed6c02",light:tl[500],dark:tl[900]}}(t);function d(e){return Ja.getContrastRatio(e,ll.text.primary)>=n?ll.text.primary:al.text.primary}const f=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=ct({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(at(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(at(12,t?` (${t})`:"",JSON.stringify(e.main)));return sl(e,"light",o,r),sl(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:ll,light:al};return Wr(ct({common:ct({},Xa),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:s,name:"info"}),success:f({color:c,name:"success"}),grey:Qa,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),o)}const ul=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const dl={textTransform:"uppercase"},fl='"Roboto", "Helvetica", "Arial", sans-serif';function pl(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=fl,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,f=ut(n,ul),p=o/14,h=d||(e=>e/c*p+"rem"),m=(e,t,n,o,i)=>{return ct({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===fl?{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,dl),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,dl),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Wr(ct({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),f,{clone:!1})}function hl(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const ml=["none",hl(0,2,1,-1,0,1,1,0,0,1,3,0),hl(0,3,1,-2,0,2,2,0,0,1,5,0),hl(0,3,3,-2,0,3,4,0,0,1,8,0),hl(0,2,4,-1,0,4,5,0,0,1,10,0),hl(0,3,5,-1,0,5,8,0,0,1,14,0),hl(0,3,5,-1,0,6,10,0,0,1,18,0),hl(0,4,5,-2,0,7,10,1,0,2,16,1),hl(0,5,5,-3,0,8,10,1,0,3,14,2),hl(0,5,6,-3,0,9,12,1,0,3,16,2),hl(0,6,6,-3,0,10,14,1,0,4,18,3),hl(0,6,7,-4,0,11,15,1,0,4,20,3),hl(0,7,8,-4,0,12,17,2,0,5,22,4),hl(0,7,8,-4,0,13,19,2,0,5,24,4),hl(0,7,9,-4,0,14,21,2,0,5,26,4),hl(0,8,9,-5,0,15,22,2,0,6,28,5),hl(0,8,10,-5,0,16,24,2,0,6,30,5),hl(0,8,11,-5,0,17,26,2,0,6,32,5),hl(0,9,11,-5,0,18,28,2,0,7,34,6),hl(0,9,12,-6,0,19,29,2,0,7,36,6),hl(0,10,13,-6,0,20,31,3,0,8,38,7),hl(0,10,13,-6,0,21,33,3,0,8,40,7),hl(0,10,14,-6,0,22,35,3,0,8,42,7),hl(0,11,14,-7,0,23,36,3,0,9,44,8),hl(0,11,15,-7,0,24,38,3,0,9,46,8)],gl=["duration","easing","delay"],vl={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)"},bl={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function yl(e){return`${Math.round(e)}ms`}function xl(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Sl(e){const t=ct({},vl,e.easing),n=ct({},bl,e.duration);return ct({getAutoHeightDuration:xl,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return ut(r,gl),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:yl(o)} ${i} ${"string"==typeof a?a:yl(a)}`)).join(",")}},e,{easing:t,duration:n})}const wl={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},El=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function kl(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=ut(e,El);if(e.vars&&void 0===e.generateCssVars)throw new Error(at(18));const l=cl(r),s=ei(e);let c=Wr(s,{mixins:(u=s.breakpoints,d=n,ct({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:ml.slice(),typography:pl(l,i),transitions:Sl(o),zIndex:ct({},wl)});var u,d;return c=Wr(c,a),c=t.reduce(((e,t)=>Wr(e,t)),c),c.unstable_sxConfig=ct({},Zo,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Xo({sx:e,theme:this})},c}const Cl=kl();function _l(){const e=oi(Cl);return e[st]||e}var Rl,Ll={},Ol={exports:{}};var Il,Tl={exports:{}};var Pl,Ml=o(Fr),Nl=o(Ur),Dl=o(ro),ql=o(Ei),Al=o(ti),zl=o(ci);function jl(){if(Pl)return Ll;Pl=1;var e=Ha();Object.defineProperty(Ll,"__esModule",{value:!0}),Ll.default=function(e={}){const{themeId:i,defaultTheme:l=f,rootShouldForwardProp:s=d,slotShouldForwardProp:u=d}=e,v=e=>(0,a.default)((0,t.default)({},e,{theme:h((0,t.default)({},e,{defaultTheme:l,themeId:i}))}));return v.__mui_systemSx=!0,(e,a={})=>{(0,r.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:f,slot:b,skipVariantsResolver:y,skipSx:x,overridesResolver:S=m(p(b))}=a,w=(0,n.default)(a,c),E=void 0!==y?y:b&&"Root"!==b&&"root"!==b||!1,k=x||!1;let C=d;"Root"===b||"root"===b?C=s:b?C=u:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(C=void 0);const _=(0,r.default)(e,(0,t.default)({shouldForwardProp:C,label:undefined},w)),R=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?n=>g(e,(0,t.default)({},n,{theme:h({theme:n.theme,defaultTheme:l,themeId:i})})):e,L=(n,...r)=>{let o=R(n);const a=r?r.map(R):[];f&&S&&a.push((e=>{const n=h((0,t.default)({},e,{defaultTheme:l,themeId:i}));if(!n.components||!n.components[f]||!n.components[f].styleOverrides)return null;const r=n.components[f].styleOverrides,o={};return Object.entries(r).forEach((([r,i])=>{o[r]=g(i,(0,t.default)({},e,{theme:n}))})),S(e,o)})),f&&!E&&a.push((e=>{var n;const r=h((0,t.default)({},e,{defaultTheme:l,themeId:i}));return g({variants:null==r||null==(n=r.components)||null==(n=n[f])?void 0:n.variants},(0,t.default)({},e,{theme:r}))})),k||a.push(v);const s=a.length-r.length;if(Array.isArray(n)&&s>0){const e=new Array(s).fill("");o=[...n,...e],o.raw=[...n.raw,...e]}const c=_(o,...a);return e.muiName&&(c.muiName=e.muiName),c};return _.withConfig&&(L.withConfig=_.withConfig),L}},Ll.shouldForwardProp=d,Ll.systemDefaultTheme=void 0;var t=e((Rl||(Rl=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ol)),Ol.exports)),n=e((Il||(Il=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(Tl)),Tl.exports)),r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Ml),o=Nl;e(Dl),e(ql);var i=e(Al),a=e(zl);const l=["ownerState"],s=["variants"],c=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const f=Ll.systemDefaultTheme=(0,i.default)(),p=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function h({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function m(e){return e?(t,n)=>n[e]:null}function g(e,r){let{ownerState:o}=r,i=(0,n.default)(r,l);const a="function"==typeof e?e((0,t.default)({ownerState:o},i)):e;if(Array.isArray(a))return a.flatMap((e=>g(e,(0,t.default)({ownerState:o},i))));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let r=(0,n.default)(a,s);return e.forEach((e=>{let n=!0;"function"==typeof e.props?n=e.props((0,t.default)({ownerState:o},i,o)):Object.keys(e.props).forEach((t=>{(null==o?void 0:o[t])!==e.props[t]&&i[t]!==e.props[t]&&(n=!1)})),n&&(Array.isArray(r)||(r=[r]),r.push("function"==typeof e.style?e.style((0,t.default)({ownerState:o},i,o)):e.style))})),r}return a}return Ll}const Fl=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,$l=r(jl())({themeId:st,defaultTheme:Cl,rootShouldForwardProp:Fl}),Bl=["theme"];function Wl(e){let{theme:t}=e,n=ut(e,Bl);const r=t[st];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=ct({},r,{vars:null}):t&&!t.vars&&(o=ct({},t,{vars:null}))),Nr.jsx(Ma,ct({},n,{themeId:r?st:void 0,theme:o}))}const Ul=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Hl(e){return Ia(e)}function Vl(e,t){return Vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vl(e,t)}function Gl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vl(e,t)}var Kl=rt(),Zl=r(Kl),Jl=!1,Xl=S.createContext(null),Ql="unmounted",Yl="exited",es="entering",ts="entered",ns="exiting",rs=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=Yl,r.appearStatus=es):o=ts:o=t.unmountOnExit||t.mountOnEnter?Ql:Yl,r.state={status:o},r.nextCallback=null,r}Gl(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ql?{status:Yl}: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!==es&&n!==ts&&(t=es):n!==es&&n!==ts||(t=ns)}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===es){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Zl.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Yl&&this.setState({status:Ql})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Zl.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Jl?this.safeSetState({status:ts},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:es},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:ts},(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:Zl.findDOMNode(this);t&&!Jl?(this.props.onExit(r),this.safeSetState({status:ns},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Yl},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Yl},(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:Zl.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===Ql)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=ut(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return S.createElement(Xl.Provider,{value:null},"function"==typeof n?n(e,r):S.cloneElement(S.Children.only(n),r))},t}(S.Component);function os(){}function is(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function as(e,t){var n=Object.create(null);return e&&x.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&x.isValidElement(e)?t(e):e}(e)})),n}function ls(e,t,n){return null!=n[t]?n[t]:e.props[t]}function ss(e,t,n){var r=as(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(x.isValidElement(a)){var l=i in t,s=i in r,c=t[i],u=x.isValidElement(c)&&!c.props.in;!s||l&&!u?s||!l||u?s&&l&&x.isValidElement(c)&&(o[i]=x.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:ls(a,"exit",e),enter:ls(a,"enter",e)})):o[i]=x.cloneElement(a,{in:!1}):o[i]=x.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:ls(a,"exit",e),enter:ls(a,"enter",e)})}})),o}rs.contextType=Xl,rs.propTypes={},rs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:os,onEntering:os,onEntered:os,onExit:os,onExiting:os,onExited:os},rs.UNMOUNTED=Ql,rs.EXITED=Yl,rs.ENTERING=es,rs.ENTERED=ts,rs.EXITING=ns;var cs=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},us=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(is(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Gl(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,as(n.children,(function(e){return x.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:ls(e,"appear",n),enter:ls(e,"enter",n),exit:ls(e,"exit",n)})}))):ss(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=as(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=ct({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=ut(e,["component","childFactory"]),o=this.state.contextValue,i=cs(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?S.createElement(Xl.Provider,{value:o},i):S.createElement(Xl.Provider,{value:o},S.createElement(t,r,i))},t}(S.Component);us.propTypes={},us.defaultProps={component:"div",childFactory:function(e){return e}};const ds=vi("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),fs=["center","classes","className"];let ps,hs,ms,gs,vs=e=>e;const bs=dr(ps||(ps=vs`
23
+ */function zr(e,t){return yr(e,t)}"object"==typeof document&&(Dr=function(e){var t=e.key;if(xr&&"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||Ir,a={},l=[];xr&&(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=[kr,Cr];if(xr){var c,u=[sn,un((function(e){c.insert(e)}))],d=cn(s.concat(i,u));o=function(e,t,n,r){c=n,function(e){ln(tn(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(g.inserted[t.name]=!0)}}else{var f=[sn],p=cn(s.concat(i,f)),h=Or(i)(t),m=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return ln(tn(e),p)}(e?e+"{"+t.styles+"}":t.styles)),h[n]};o=function(e,t,n,r){var o=t.name,i=m(e,t);return void 0===g.compat?(r&&(g.inserted[o]=!0),i):r?void(g.inserted[o]=i):i}}var g={key:t,sheet:new dt({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 g.sheet.hydrate(l),g}({key:"css",prepend:!0}));const jr=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};var Fr=Object.freeze({__proto__:null,GlobalStyles:Ar,StyledEngineProvider:Nr,ThemeContext:nr,css:ur,default:zr,internal_processStyles:jr,keyframes:dr});function $r(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Br(e){if(x.isValidElement(e)||!$r(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Br(e[n])})),t}function Wr(e,t,n={clone:!0}){const r=n.clone?ct({},e):e;return $r(e)&&$r(t)&&Object.keys(t).forEach((o=>{x.isValidElement(t[o])?r[o]=t[o]:$r(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&$r(e[o])?r[o]=Wr(e[o],t[o],n):n.clone?r[o]=$r(t[o])?Br(t[o]):t[o]:r[o]=t[o]})),r}var Hr=Object.freeze({__proto__:null,default:Wr,isPlainObject:$r});const Ur=["values","unit","step"],Vr=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>ct({},e,{[t.key]:t.val})),{})};function Gr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ut(e,Ur),i=Vr(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 ct({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)}const Kr={borderRadius:4};function Zr(e,t){return t?Wr(e,t,{clone:!1}):e}const Jr={xs:0,sm:600,md:900,lg:1200,xl:1536},Xr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Jr[e]}px)`};function Yr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Xr;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Xr;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Jr).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Qr(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function eo(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function to({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 no(e){if("string"!=typeof e)throw new Error(at(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ro=Object.freeze({__proto__:null,default:no});function oo(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 io(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:oo(e,n)||r,t&&(o=t(o,r,e)),o}function ao(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=oo(e.theme,r)||{};return Yr(e,i,(e=>{let r=io(a,o,e);return e===r&&"string"==typeof e&&(r=io(a,o,`${t}${"default"===e?"":no(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const lo={m:"margin",p:"padding"},so={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},co={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},uo=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!co[e])return[e];e=co[e]}const[t,n]=e.split(""),r=lo[t],o=so[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),fo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],po=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function ho(e,t,n,r){var o;const i=null!=(o=oo(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 mo(e){return ho(e,"spacing",8)}function go(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 vo(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=go(t,n),e)),{})}(uo(n),r);return Yr(e,e[n],o)}function bo(e,t){const n=mo(e.theme);return Object.keys(e).map((r=>vo(e,t,r,n))).reduce(Zr,{})}function yo(e){return bo(e,fo)}function xo(e){return bo(e,po)}function So(e=8){if(e.mui)return e;const t=mo({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 wo(...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]?Zr(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Eo(e){return"number"!=typeof e?e:`${e}px solid`}function ko(e,t){return ao({prop:e,themeKey:"borders",transform:t})}yo.propTypes={},yo.filterProps=fo,xo.propTypes={},xo.filterProps=po;const Co=ko("border",Eo),_o=ko("borderTop",Eo),Ro=ko("borderRight",Eo),Lo=ko("borderBottom",Eo),Oo=ko("borderLeft",Eo),Io=ko("borderColor"),To=ko("borderTopColor"),Po=ko("borderRightColor"),Mo=ko("borderBottomColor"),qo=ko("borderLeftColor"),Do=ko("outline",Eo),No=ko("outlineColor"),Ao=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=ho(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:go(t,e)});return Yr(e,e.borderRadius,n)}return null};Ao.propTypes={},Ao.filterProps=["borderRadius"],wo(Co,_o,Ro,Lo,Oo,Io,To,Po,Mo,qo,Ao,Do,No);const zo=e=>{if(void 0!==e.gap&&null!==e.gap){const t=ho(e.theme,"spacing",8),n=e=>({gap:go(t,e)});return Yr(e,e.gap,n)}return null};zo.propTypes={},zo.filterProps=["gap"];const jo=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=ho(e.theme,"spacing",8),n=e=>({columnGap:go(t,e)});return Yr(e,e.columnGap,n)}return null};jo.propTypes={},jo.filterProps=["columnGap"];const Fo=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=ho(e.theme,"spacing",8),n=e=>({rowGap:go(t,e)});return Yr(e,e.rowGap,n)}return null};Fo.propTypes={},Fo.filterProps=["rowGap"];function $o(e,t){return"grey"===t?t:e}wo(zo,jo,Fo,ao({prop:"gridColumn"}),ao({prop:"gridRow"}),ao({prop:"gridAutoFlow"}),ao({prop:"gridAutoColumns"}),ao({prop:"gridAutoRows"}),ao({prop:"gridTemplateColumns"}),ao({prop:"gridTemplateRows"}),ao({prop:"gridTemplateAreas"}),ao({prop:"gridArea"}));function Bo(e){return e<=1&&0!==e?100*e+"%":e}wo(ao({prop:"color",themeKey:"palette",transform:$o}),ao({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$o}),ao({prop:"backgroundColor",themeKey:"palette",transform:$o}));const Wo=ao({prop:"width",transform:Bo}),Ho=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Jr[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Bo(t)}};return Yr(e,e.maxWidth,t)}return null};Ho.filterProps=["maxWidth"];const Uo=ao({prop:"minWidth",transform:Bo}),Vo=ao({prop:"height",transform:Bo}),Go=ao({prop:"maxHeight",transform:Bo}),Ko=ao({prop:"minHeight",transform:Bo});ao({prop:"size",cssProperty:"width",transform:Bo}),ao({prop:"size",cssProperty:"height",transform:Bo});wo(Wo,Ho,Uo,Vo,Go,Ko,ao({prop:"boxSizing"}));const Zo={border:{themeKey:"borders",transform:Eo},borderTop:{themeKey:"borders",transform:Eo},borderRight:{themeKey:"borders",transform:Eo},borderBottom:{themeKey:"borders",transform:Eo},borderLeft:{themeKey:"borders",transform:Eo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Eo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ao},color:{themeKey:"palette",transform:$o},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$o},backgroundColor:{themeKey:"palette",transform:$o},p:{style:xo},pt:{style:xo},pr:{style:xo},pb:{style:xo},pl:{style:xo},px:{style:xo},py:{style:xo},padding:{style:xo},paddingTop:{style:xo},paddingRight:{style:xo},paddingBottom:{style:xo},paddingLeft:{style:xo},paddingX:{style:xo},paddingY:{style:xo},paddingInline:{style:xo},paddingInlineStart:{style:xo},paddingInlineEnd:{style:xo},paddingBlock:{style:xo},paddingBlockStart:{style:xo},paddingBlockEnd:{style:xo},m:{style:yo},mt:{style:yo},mr:{style:yo},mb:{style:yo},ml:{style:yo},mx:{style:yo},my:{style:yo},margin:{style:yo},marginTop:{style:yo},marginRight:{style:yo},marginBottom:{style:yo},marginLeft:{style:yo},marginX:{style:yo},marginY:{style:yo},marginInline:{style:yo},marginInlineStart:{style:yo},marginInlineEnd:{style:yo},marginBlock:{style:yo},marginBlockStart:{style:yo},marginBlockEnd:{style:yo},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:zo},rowGap:{style:Fo},columnGap:{style:jo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bo},maxWidth:{style:Ho},minWidth:{transform:Bo},height:{transform:Bo},maxHeight:{transform:Bo},minHeight:{transform:Bo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Jo(){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=oo(n,l)||{};if(c)return c(o);return Yr(o,t,(t=>{let n=io(u,s,t);return t===n&&"string"==typeof t&&(n=io(u,s,`${e}${"default"===t?"":no(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:Zo;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=Qr(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=Zr(s,e(n,o,i,a));else{const e=Yr({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=Zr(s,e):s[n]=t({sx:o,theme:i})}else s=Zr(s,e(n,o,i,a))})),eo(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const Xo=Jo();function Yo(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}Xo.filterProps=["sx"];const Qo=["breakpoints","palette","spacing","shape"];function ei(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=ut(e,Qo),l=Gr(n),s=So(o);let c=Wr({breakpoints:l,direction:"ltr",components:{},palette:ct({mode:"light"},r),spacing:s,shape:ct({},Kr,i)},a);return c.applyStyles=Yo,c=t.reduce(((e,t)=>Wr(e,t)),c),c.unstable_sxConfig=ct({},Zo,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Xo({sx:e,theme:this})},c}var ti=Object.freeze({__proto__:null,default:ei,private_createBreakpoints:Gr,unstable_applyStyles:Yo});function ni(e=null){const t=x.useContext(nr);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const ri=ei();function oi(e=ri){return ni(e)}function ii({styles:e,themeId:t,defaultTheme:n={}}){const r=oi(n),o="function"==typeof e?e(t&&r[t]||r):e;return qr.jsx(Ar,{styles:o})}const ai=["sx"],li=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Zo;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function si(e){const{sx:t}=e,n=ut(e,ai),{systemProps:r,otherProps:o}=li(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return $r(n)?ct({},r,n):r}:ct({},r,t),ct({},o,{sx:i})}var ci=Object.freeze({__proto__:null,default:Xo,extendSxProp:si,unstable_createStyleFunctionSx:Jo,unstable_defaultSxConfig:Zo});const ui=e=>e,di=(()=>{let e=ui;return{configure(t){e=t},generate:t=>e(t),reset(){e=ui}}})();function fi(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=fi(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pi(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=fi(e))&&(r&&(r+=" "),r+=t);return r}const hi=["className","component"];const mi={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function gi(e,t,n="Mui"){const r=mi[t];return r?`${n}-${r}`:`${di.generate(e)}-${t}`}function vi(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=gi(e,t,n)})),r}var bi=On();const yi=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function xi(e){const t=`${e}`.match(yi);return t&&t[1]||""}function Si(e,t=""){return e.displayName||e.name||xi(e)||t}function wi(e,t,n){const r=Si(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Ei=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Si(e,"Component");if("object"==typeof e)switch(e.$$typeof){case bi.ForwardRef:return wi(e,e.render,"ForwardRef");case bi.Memo:return wi(e,e.type,"memo");default:return}}},getFunctionName:xi});const ki=["ownerState"],Ci=["variants"],_i=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ri(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Li=ei(),Oi=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Ii({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Ti(e){return e?(t,n)=>n[e]:null}function Pi(e,t){let{ownerState:n}=t,r=ut(t,ki);const o="function"==typeof e?e(ct({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Pi(e,ct({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=ut(o,Ci);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(ct({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(ct({ownerState:n},r,n)):e.style))})),t}return o}const Mi=function(e={}){const{themeId:t,defaultTheme:n=Li,rootShouldForwardProp:r=Ri,slotShouldForwardProp:o=Ri}=e,i=e=>Xo(ct({},e,{theme:Ii(ct({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{jr(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d=Ti(Oi(s))}=a,f=ut(a,_i),p=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,h=u||!1;let m=Ri;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=zr(e,ct({shouldForwardProp:m,label:undefined},f)),v=e=>"function"==typeof e&&e.__emotion_real!==e||$r(e)?r=>Pi(e,ct({},r,{theme:Ii({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let a=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=Ii(ct({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=Pi(n,ct({},e,{theme:r}))})),d(e,i)})),l&&!p&&s.push((e=>{var r;const o=Ii(ct({},e,{defaultTheme:n,themeId:t}));return Pi({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},ct({},e,{theme:o}))})),h||s.push(i);const c=s.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const u=g(a,...s);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(b.withConfig=g.withConfig),b}}();function qi(e,t){const n=ct({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=ct({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=ct({},i),Object.keys(o).forEach((e=>{n[r][e]=qi(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Di({props:e,name:t,defaultTheme:n,themeId:r}){let o=oi(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?qi(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}const Ni="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;var Ai=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function zi(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function ji(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Fi(e,t){var n,r;return x.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(r=e.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)}function $i(e){return e&&e.ownerDocument||document}function Bi(e){return $i(e).defaultView||window}function Wi(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Hi=0;const Ui=w["useId".toString()];function Vi(e){if(void 0!==Ui){const t=Ui();return null!=e?e:t}return function(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect((()=>{null==t&&(Hi+=1,n(`mui-${Hi}`))}),[t]),r}(e)}function Gi({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=x.useRef(void 0!==e),[i,a]=x.useState(t);return[o?e:i,x.useCallback((e=>{o||a(e)}),[])]}function Ki(e){const t=x.useRef(e);return Ni((()=>{t.current=e})),x.useRef(((...e)=>(0,t.current)(...e))).current}function Zi(...e){return x.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Wi(e,t)}))}),e)}const Ji={};const Xi=[];class Yi{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Yi}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Qi(){const e=function(e,t){const n=x.useRef(Ji);return n.current===Ji&&(n.current=e(t)),n}(Yi.create).current;var t;return t=e.disposeEffect,x.useEffect(t,Xi),e}let ea=!0,ta=!1;const na=new Yi,ra={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 oa(e){e.metaKey||e.altKey||e.ctrlKey||(ea=!0)}function ia(){ea=!1}function aa(){"hidden"===this.visibilityState&&ta&&(ea=!0)}function la(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ea||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!ra[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function sa(){const e=x.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",oa,!0),t.addEventListener("mousedown",ia,!0),t.addEventListener("pointerdown",ia,!0),t.addEventListener("touchstart",ia,!0),t.addEventListener("visibilitychange",aa,!0))}),[]),t=x.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!la(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ta=!0,na.start(100,(()=>{ta=!1})),t.current=!1,!0)},ref:e}}function ca(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const ua=e=>{const t=x.useRef({});return x.useEffect((()=>{t.current=e})),t.current};function da(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}function fa(e){return"string"==typeof e}function pa(e,t,n){return void 0===e||fa(e)?t:ct({},t,{ownerState:ct({},t.ownerState,n)})}function ha(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ha(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ma(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ha(e))&&(r&&(r+=" "),r+=t);return r}function ga(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function va(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const ba=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ya(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=ut(e,ba),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=ma(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=ct({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=ct({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=ga(ct({},o,r)),l=va(r),s=va(o),c=t(a),u=ma(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=ct({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),f=ct({},c,n,s,l);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}(ct({},a,{externalSlotProps:l}));return pa(n,ct({},s,{ref:Zi(c,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}function xa(e){var t;return parseInt(x.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Sa=x.createContext(null);function wa(){return x.useContext(Sa)}var Ea="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function ka(e){const{children:t,theme:n}=e,r=wa(),o=x.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return ct({},e,t)}(r,n);return null!=e&&(e[Ea]=null!==r),e}),[n,r]);return qr.jsx(Sa.Provider,{value:o,children:t})}const Ca=["value"],_a=x.createContext();function Ra(e){let{value:t}=e,n=ut(e,Ca);return qr.jsx(_a.Provider,ct({value:null==t||t},n))}const La=x.createContext(void 0);function Oa({value:e,children:t}){return qr.jsx(La.Provider,{value:e,children:t})}function Ia({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?qi(o.defaultProps,r):o.styleOverrides||o.variants?r:qi(o,r)}({props:e,name:t,theme:{components:x.useContext(La)}})}const Ta={};function Pa(e,t,n,r=!1){return x.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?ct({},t,{[e]:i}):i;return r?()=>a:a}return ct({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Ma(e){const{children:t,theme:n,themeId:r}=e,o=ni(Ta),i=wa()||Ta,a=Pa(r,o,n),l=Pa(r,i,n,!0),s="rtl"===a.direction;return qr.jsx(ka,{theme:l,children:qr.jsx(nr.Provider,{value:a,children:qr.jsx(Ra,{value:s,children:qr.jsx(Oa,{value:null==a?void 0:a.components,children:t})})})})}const qa=["component","direction","spacing","divider","children","className","useFlexGap"],Da=ei(),Na=Mi("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Aa(e){return Di({props:e,name:"MuiStack",defaultTheme:Da})}function za(e,t){const n=x.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(x.cloneElement(t,{key:`separator-${o}`})),e)),[])}const ja=({ownerState:e,theme:t})=>{let n=ct({display:"flex",flexDirection:"column"},Yr({theme:t},to({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=mo(t),o=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),i=to({values:e.direction,base:o}),a=to({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach(((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}}));n=Wr(n,Yr({theme:t},a,((t,n)=>{return e.useFlexGap?{gap:go(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?i[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:go(r,t)}};var o})))}return n=function(e,...t){const n=Qr(e),r=[n,...t].reduce(((e,t)=>Wr(e,t)),{});return eo(Object.keys(n),r)}(t.breakpoints,n),n};const Fa=["defaultProps","mixins","overrides","palette","props","styleOverrides"],$a=["type","mode"];var Ba,Wa={},Ha={exports:{}};function Ua(){return Ba||(Ba=1,function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Ha)),Ha.exports}var Va,Ga=o(lt),Ka=o(Ai);function Za(){if(Va)return Wa;Va=1;var e=Ua();Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.alpha=u,Wa.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(e),s=i(t),c=[o(a.values[0],s.values[0]),o(a.values[1],s.values[1]),o(a.values[2],s.values[2])];return l({type:"rgb",values:c})},Wa.colorChannel=void 0,Wa.darken=d,Wa.decomposeColor=i,Wa.emphasize=p,Wa.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Wa.getLuminance=c,Wa.hexToRgb=o,Wa.hslToRgb=s,Wa.lighten=f,Wa.private_safeAlpha=function(e,t,n){try{return u(e,t)}catch(t){return e}},Wa.private_safeColorChannel=void 0,Wa.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},Wa.private_safeEmphasize=function(e,t,n){try{return p(e,t)}catch(t){return e}},Wa.private_safeLighten=function(e,t,n){try{return f(e,t)}catch(t){return e}},Wa.recomposeColor=l,Wa.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var t=e(Ga),n=e(Ka);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,l=e.substring(n+1,e.length-1);if("color"===r){if(l=l.split(" "),a=l.shift(),4===l.length&&"/"===l[3].charAt(0)&&(l[3]=l[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else l=l.split(",");return l=l.map((e=>parseFloat(e))),{type:r,values:l,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};Wa.colorChannel=a;function l(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 s(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),s=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),l({type:c,values:u})}function c(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(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 u(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,l(e)}function d(e,t){if(e=i(e),t=r(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 l(e)}function f(e,t){if(e=i(e),t=r(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 l(e)}function p(e,t=.15){return c(e)>.5?d(e,t):f(e,t)}return Wa.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},Wa}var Ja=Za();const Xa={black:"#000",white:"#fff"},Ya={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"},Qa={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},el={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},tl={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},nl={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},rl={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ol={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},il=["mode","contrastThreshold","tonalOffset"],al={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:Xa.white,default:Xa.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}},ll={text:{primary:Xa.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:Xa.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 sl(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=Ja.lighten(e.main,o):"dark"===t&&(e.dark=Ja.darken(e.main,i)))}function cl(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ut(e,il),i=e.primary||function(e="light"){return"dark"===e?{main:nl[200],light:nl[50],dark:nl[400]}:{main:nl[700],light:nl[400],dark:nl[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Qa[200],light:Qa[50],dark:Qa[400]}:{main:Qa[500],light:Qa[300],dark:Qa[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:el[500],light:el[300],dark:el[700]}:{main:el[700],light:el[400],dark:el[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:rl[400],light:rl[300],dark:rl[700]}:{main:rl[700],light:rl[500],dark:rl[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:ol[400],light:ol[300],dark:ol[700]}:{main:ol[800],light:ol[500],dark:ol[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:tl[400],light:tl[300],dark:tl[700]}:{main:"#ed6c02",light:tl[500],dark:tl[900]}}(t);function d(e){return Ja.getContrastRatio(e,ll.text.primary)>=n?ll.text.primary:al.text.primary}const f=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=ct({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(at(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(at(12,t?` (${t})`:"",JSON.stringify(e.main)));return sl(e,"light",o,r),sl(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:ll,light:al};return Wr(ct({common:ct({},Xa),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:s,name:"info"}),success:f({color:c,name:"success"}),grey:Ya,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),o)}const ul=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const dl={textTransform:"uppercase"},fl='"Roboto", "Helvetica", "Arial", sans-serif';function pl(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=fl,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,f=ut(n,ul),p=o/14,h=d||(e=>e/c*p+"rem"),m=(e,t,n,o,i)=>{return ct({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===fl?{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,dl),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,dl),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Wr(ct({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),f,{clone:!1})}function hl(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const ml=["none",hl(0,2,1,-1,0,1,1,0,0,1,3,0),hl(0,3,1,-2,0,2,2,0,0,1,5,0),hl(0,3,3,-2,0,3,4,0,0,1,8,0),hl(0,2,4,-1,0,4,5,0,0,1,10,0),hl(0,3,5,-1,0,5,8,0,0,1,14,0),hl(0,3,5,-1,0,6,10,0,0,1,18,0),hl(0,4,5,-2,0,7,10,1,0,2,16,1),hl(0,5,5,-3,0,8,10,1,0,3,14,2),hl(0,5,6,-3,0,9,12,1,0,3,16,2),hl(0,6,6,-3,0,10,14,1,0,4,18,3),hl(0,6,7,-4,0,11,15,1,0,4,20,3),hl(0,7,8,-4,0,12,17,2,0,5,22,4),hl(0,7,8,-4,0,13,19,2,0,5,24,4),hl(0,7,9,-4,0,14,21,2,0,5,26,4),hl(0,8,9,-5,0,15,22,2,0,6,28,5),hl(0,8,10,-5,0,16,24,2,0,6,30,5),hl(0,8,11,-5,0,17,26,2,0,6,32,5),hl(0,9,11,-5,0,18,28,2,0,7,34,6),hl(0,9,12,-6,0,19,29,2,0,7,36,6),hl(0,10,13,-6,0,20,31,3,0,8,38,7),hl(0,10,13,-6,0,21,33,3,0,8,40,7),hl(0,10,14,-6,0,22,35,3,0,8,42,7),hl(0,11,14,-7,0,23,36,3,0,9,44,8),hl(0,11,15,-7,0,24,38,3,0,9,46,8)],gl=["duration","easing","delay"],vl={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)"},bl={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function yl(e){return`${Math.round(e)}ms`}function xl(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Sl(e){const t=ct({},vl,e.easing),n=ct({},bl,e.duration);return ct({getAutoHeightDuration:xl,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return ut(r,gl),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:yl(o)} ${i} ${"string"==typeof a?a:yl(a)}`)).join(",")}},e,{easing:t,duration:n})}const wl={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},El=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function kl(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=ut(e,El);if(e.vars&&void 0===e.generateCssVars)throw new Error(at(18));const l=cl(r),s=ei(e);let c=Wr(s,{mixins:(u=s.breakpoints,d=n,ct({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:ml.slice(),typography:pl(l,i),transitions:Sl(o),zIndex:ct({},wl)});var u,d;return c=Wr(c,a),c=t.reduce(((e,t)=>Wr(e,t)),c),c.unstable_sxConfig=ct({},Zo,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Xo({sx:e,theme:this})},c}const Cl=kl();function _l(){const e=oi(Cl);return e[st]||e}var Rl,Ll={},Ol={exports:{}};var Il,Tl={exports:{}};var Pl,Ml=o(Fr),ql=o(Hr),Dl=o(ro),Nl=o(Ei),Al=o(ti),zl=o(ci);function jl(){if(Pl)return Ll;Pl=1;var e=Ua();Object.defineProperty(Ll,"__esModule",{value:!0}),Ll.default=function(e={}){const{themeId:i,defaultTheme:l=f,rootShouldForwardProp:s=d,slotShouldForwardProp:u=d}=e,v=e=>(0,a.default)((0,t.default)({},e,{theme:h((0,t.default)({},e,{defaultTheme:l,themeId:i}))}));return v.__mui_systemSx=!0,(e,a={})=>{(0,r.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:f,slot:b,skipVariantsResolver:y,skipSx:x,overridesResolver:S=m(p(b))}=a,w=(0,n.default)(a,c),E=void 0!==y?y:b&&"Root"!==b&&"root"!==b||!1,k=x||!1;let C=d;"Root"===b||"root"===b?C=s:b?C=u:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(C=void 0);const _=(0,r.default)(e,(0,t.default)({shouldForwardProp:C,label:undefined},w)),R=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?n=>g(e,(0,t.default)({},n,{theme:h({theme:n.theme,defaultTheme:l,themeId:i})})):e,L=(n,...r)=>{let o=R(n);const a=r?r.map(R):[];f&&S&&a.push((e=>{const n=h((0,t.default)({},e,{defaultTheme:l,themeId:i}));if(!n.components||!n.components[f]||!n.components[f].styleOverrides)return null;const r=n.components[f].styleOverrides,o={};return Object.entries(r).forEach((([r,i])=>{o[r]=g(i,(0,t.default)({},e,{theme:n}))})),S(e,o)})),f&&!E&&a.push((e=>{var n;const r=h((0,t.default)({},e,{defaultTheme:l,themeId:i}));return g({variants:null==r||null==(n=r.components)||null==(n=n[f])?void 0:n.variants},(0,t.default)({},e,{theme:r}))})),k||a.push(v);const s=a.length-r.length;if(Array.isArray(n)&&s>0){const e=new Array(s).fill("");o=[...n,...e],o.raw=[...n.raw,...e]}const c=_(o,...a);return e.muiName&&(c.muiName=e.muiName),c};return _.withConfig&&(L.withConfig=_.withConfig),L}},Ll.shouldForwardProp=d,Ll.systemDefaultTheme=void 0;var t=e((Rl||(Rl=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ol)),Ol.exports)),n=e((Il||(Il=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(Tl)),Tl.exports)),r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Ml),o=ql;e(Dl),e(Nl);var i=e(Al),a=e(zl);const l=["ownerState"],s=["variants"],c=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const f=Ll.systemDefaultTheme=(0,i.default)(),p=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function h({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function m(e){return e?(t,n)=>n[e]:null}function g(e,r){let{ownerState:o}=r,i=(0,n.default)(r,l);const a="function"==typeof e?e((0,t.default)({ownerState:o},i)):e;if(Array.isArray(a))return a.flatMap((e=>g(e,(0,t.default)({ownerState:o},i))));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let r=(0,n.default)(a,s);return e.forEach((e=>{let n=!0;"function"==typeof e.props?n=e.props((0,t.default)({ownerState:o},i,o)):Object.keys(e.props).forEach((t=>{(null==o?void 0:o[t])!==e.props[t]&&i[t]!==e.props[t]&&(n=!1)})),n&&(Array.isArray(r)||(r=[r]),r.push("function"==typeof e.style?e.style((0,t.default)({ownerState:o},i,o)):e.style))})),r}return a}return Ll}const Fl=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,$l=r(jl())({themeId:st,defaultTheme:Cl,rootShouldForwardProp:Fl}),Bl=["theme"];function Wl(e){let{theme:t}=e,n=ut(e,Bl);const r=t[st];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=ct({},r,{vars:null}):t&&!t.vars&&(o=ct({},t,{vars:null}))),qr.jsx(Ma,ct({},n,{themeId:r?st:void 0,theme:o}))}const Hl=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Ul(e){return Ia(e)}function Vl(e,t){return Vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vl(e,t)}function Gl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vl(e,t)}var Kl=rt(),Zl=r(Kl),Jl=!1,Xl=S.createContext(null),Yl="unmounted",Ql="exited",es="entering",ts="entered",ns="exiting",rs=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=Ql,r.appearStatus=es):o=ts:o=t.unmountOnExit||t.mountOnEnter?Yl:Ql,r.state={status:o},r.nextCallback=null,r}Gl(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Yl?{status:Ql}: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!==es&&n!==ts&&(t=es):n!==es&&n!==ts||(t=ns)}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===es){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Zl.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ql&&this.setState({status:Yl})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Zl.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Jl?this.safeSetState({status:ts},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:es},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:ts},(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:Zl.findDOMNode(this);t&&!Jl?(this.props.onExit(r),this.safeSetState({status:ns},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Ql},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Ql},(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:Zl.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===Yl)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=ut(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return S.createElement(Xl.Provider,{value:null},"function"==typeof n?n(e,r):S.cloneElement(S.Children.only(n),r))},t}(S.Component);function os(){}function is(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function as(e,t){var n=Object.create(null);return e&&x.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&x.isValidElement(e)?t(e):e}(e)})),n}function ls(e,t,n){return null!=n[t]?n[t]:e.props[t]}function ss(e,t,n){var r=as(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(x.isValidElement(a)){var l=i in t,s=i in r,c=t[i],u=x.isValidElement(c)&&!c.props.in;!s||l&&!u?s||!l||u?s&&l&&x.isValidElement(c)&&(o[i]=x.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:ls(a,"exit",e),enter:ls(a,"enter",e)})):o[i]=x.cloneElement(a,{in:!1}):o[i]=x.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:ls(a,"exit",e),enter:ls(a,"enter",e)})}})),o}rs.contextType=Xl,rs.propTypes={},rs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:os,onEntering:os,onEntered:os,onExit:os,onExiting:os,onExited:os},rs.UNMOUNTED=Yl,rs.EXITED=Ql,rs.ENTERING=es,rs.ENTERED=ts,rs.EXITING=ns;var cs=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},us=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(is(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Gl(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,as(n.children,(function(e){return x.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:ls(e,"appear",n),enter:ls(e,"enter",n),exit:ls(e,"exit",n)})}))):ss(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=as(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=ct({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=ut(e,["component","childFactory"]),o=this.state.contextValue,i=cs(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?S.createElement(Xl.Provider,{value:o},i):S.createElement(Xl.Provider,{value:o},S.createElement(t,r,i))},t}(S.Component);us.propTypes={},us.defaultProps={component:"div",childFactory:function(e){return e}};const ds=vi("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),fs=["center","classes","className"];let ps,hs,ms,gs,vs=e=>e;const bs=dr(ps||(ps=vs`
24
24
  0% {
25
25
  transform: scale(0);
26
26
  opacity: 0.1;
@@ -50,7 +50,7 @@
50
50
  100% {
51
51
  transform: scale(1);
52
52
  }
53
- `)),Ss=$l("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ws=$l((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]=x.useState(!1),f=pi(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-a/2+i,left:-a/2+o},h=pi(n.child,u&&n.childLeaving,r&&n.childPulsate);return l||u||d(!0),x.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,c);return()=>{clearTimeout(e)}}}),[s,l,c]),Nr.jsx("span",{className:f,style:p,children:Nr.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(gs||(gs=vs`
53
+ `)),Ss=$l("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ws=$l((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]=x.useState(!1),f=pi(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-a/2+i,left:-a/2+o},h=pi(n.child,u&&n.childLeaving,r&&n.childPulsate);return l||u||d(!0),x.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,c);return()=>{clearTimeout(e)}}}),[s,l,c]),qr.jsx("span",{className:f,style:p,children:qr.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(gs||(gs=vs`
54
54
  opacity: 0;
55
55
  position: absolute;
56
56
 
@@ -93,7 +93,7 @@
93
93
  animation-iteration-count: infinite;
94
94
  animation-delay: 200ms;
95
95
  }
96
- `),ds.rippleVisible,bs,550,(({theme:e})=>e.transitions.easing.easeInOut),ds.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),ds.child,ds.childLeaving,ys,550,(({theme:e})=>e.transitions.easing.easeInOut),ds.childPulsate,xs,(({theme:e})=>e.transitions.easing.easeInOut)),Es=x.forwardRef((function(e,t){const n=Hl({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=ut(n,fs),[l,s]=x.useState([]),c=x.useRef(0),u=x.useRef(null);x.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const d=x.useRef(!1),f=Yi(),p=x.useRef(null),h=x.useRef(null),m=x.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Nr.jsx(ws,{classes:{ripple:pi(o.ripple,ds.ripple),rippleVisible:pi(o.rippleVisible,ds.rippleVisible),ripplePulsate:pi(o.ripplePulsate,ds.ripplePulsate),child:pi(o.child,ds.child),childLeaving:pi(o.childLeaving,ds.childLeaving),childPulsate:pi(o.childPulsate,ds.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=x.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===p.current&&(p.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},f.start(80,(()=>{p.current&&(p.current(),p.current=null)}))):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,f]),v=x.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=x.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&p.current)return p.current(),p.current=null,void f.start(0,(()=>{b(e,t)}));p.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[f]);return x.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Nr.jsx(Ss,ct({className:pi(ds.root,o.root,i),ref:h},a,{children:Nr.jsx(us,{component:null,exit:!0,children:l})}))}));function ks(e){return gi("MuiButtonBase",e)}const Cs=vi("MuiButtonBase",["root","disabled","focusVisible"]),_s=["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"],Rs=$l("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"}}),Ls=x.forwardRef((function(e,t){const n=Hl({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:f="a",onBlur:p,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:S,onMouseDown:w,onMouseLeave:E,onMouseUp:k,onTouchEnd:C,onTouchMove:_,onTouchStart:R,tabIndex:L=0,TouchRippleProps:O,touchRippleRef:I,type:T}=n,P=ut(n,_s),M=x.useRef(null),N=x.useRef(null),D=Zi(N,I),{isFocusVisibleRef:q,onFocus:A,onBlur:z,ref:j}=sa(),[F,$]=x.useState(!1);s&&F&&$(!1),x.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),M.current.focus()}})),[]);const[B,W]=x.useState(!1);x.useEffect((()=>{W(!0)}),[]);const U=B&&!c&&!s;function H(e,t,n=u){return Ki((r=>{t&&t(r);return!n&&N.current&&N.current[e](r),!0}))}x.useEffect((()=>{F&&d&&!c&&B&&N.current.pulsate()}),[c,d,F,B]);const V=H("start",w),G=H("stop",m),K=H("stop",g),Z=H("stop",k),J=H("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),X=H("start",R),Q=H("stop",C),Y=H("stop",_),ee=H("stop",(e=>{z(e),!1===q.current&&$(!1),p&&p(e)}),!1),te=Ki((e=>{M.current||(M.current=e.currentTarget),A(e),!0===q.current&&($(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=M.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=x.useRef(!1),oe=Ki((e=>{d&&!re.current&&F&&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=Ki((e=>{d&&" "===e.key&&N.current&&F&&!e.defaultPrevented&&(re.current=!1,N.current.stop(e,(()=>{N.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(P.href||P.to)&&(ae=f);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=Zi(t,j,M),ce=ct({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:L,focusVisible:F}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=da({root:["root",t&&"disabled",n&&"focusVisible"]},ks,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return Nr.jsxs(Rs,ct({as:ae,className:pi(ue.root,a),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:J,onMouseUp:Z,onDragLeave:K,onTouchEnd:Q,onTouchMove:Y,onTouchStart:X,ref:se,tabIndex:s?-1:L,type:T},le,P,{children:[i,U?Nr.jsx(Es,ct({ref:D,center:o},O)):null]}))}));function Os(e){return gi("MuiButton",e)}const Is=vi("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Ts=x.createContext({}),Ps=x.createContext(void 0),Ms=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ns=e=>ct({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Ds=$l(Ls,{shouldForwardProp:e=>Fl(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${no(n.color)}`],t[`size${no(n.size)}`],t[`${n.variant}Size${no(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return ct({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":ct({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ja.alpha(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})`:Ja.alpha(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})`:Ja.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":ct({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Is.focusVisible}`]:ct({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Is.disabled}`]:ct({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ja.alpha(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"},[`&.${Is.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Is.disabled}`]:{boxShadow:"none"}})),qs=$l("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${no(n.size)}`]]}})((({ownerState:e})=>ct({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ns(e)))),As=$l("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${no(n.size)}`]]}})((({ownerState:e})=>ct({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ns(e)))),zs=x.forwardRef((function(e,t){const n=x.useContext(Ts),r=x.useContext(Ps),o=Hl({props:Ni(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,y=ut(o,Ms),S=ct({},o,{color:a,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return ct({},a,da({root:["root",i,`${i}${no(t)}`,`size${no(o)}`,`${i}Size${no(o)}`,`color${no(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${no(o)}`],endIcon:["icon","endIcon",`iconSize${no(o)}`]},Os,a))})(S),E=g&&Nr.jsx(qs,{className:w.startIcon,ownerState:S,children:g}),k=f&&Nr.jsx(As,{className:w.endIcon,ownerState:S,children:f}),C=r||"";return Nr.jsxs(Ds,ct({ownerState:S,className:pi(n.className,w.root,s,C),component:l,disabled:c,focusRipple:!d,focusVisibleClassName:pi(w.focusVisible,p),ref:t,type:v},y,{classes:w,children:[E,i,k]}))}));var js={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 Fs={green:"#00873D",blue:"#3F8AB3",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey45:"#737373",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey0:"#000000"},$s={mode:"light",palette:{primary:{main:Fs.grey25,contrastText:Fs.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Fs.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:Fs.grey100,dark:Fs.grey0},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:Fs.grey100,default:Fs.grey100,lightest:Fs.grey100,lighter:Fs.grey98,darker:Fs.grey95,darkest:Fs.grey90},custom:{focusBorder:Fs.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:Fs.grey45,disabledContrastText:Fs.grey100},selected:{main:Fs.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:Fs.grey100,selectedContrastText:Fs.grey100,mainContrastText:Fs.grey100,alternativeContrastText:Fs.grey25,excludedContrastText:Fs.grey25,selectedExcludedContrastText:Fs.grey100,possibleContrastText:Fs.grey0},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},Bs={mode:"dark",palette:{primary:{main:Fs.grey20,contrastText:Fs.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Fs.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:Fs.grey100,dark:Fs.grey0},action:{active:Fs.grey100,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:Fs.grey25,lighter:Fs.grey20,darker:Fs.grey15,darkest:Fs.grey10},custom:{focusBorder:Fs.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:Fs.grey45,disabledContrastText:Fs.grey100},selected:{main:Fs.green,alternative:Fs.grey20,excluded:Fs.grey10,selectedExcluded:Fs.grey10,possible:Fs.grey80,selectedContrastText:Fs.grey100,mainContrastText:Fs.grey100,alternativeContrastText:Fs.grey100,excludedContrastText:Fs.grey100,selectedExcludedContrastText:Fs.grey100,possibleContrastText:Fs.grey0},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},Ws={},Us=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(Is.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(Is.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(Is.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(Is.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function Hs(e){let t=$s,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=Bs));const r=JSON.stringify(t);if(Ws[r])return Ws[r];const o={palette:f(f({type:t.mode},js.palette),t.palette),typography:f({},js.typography),shadows:js.shadows,props:f({},js.props),shape:f({},js.shape)};return Ws[r]=kl(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={}}=e,l=ct({},ut(e,Fa),{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=So(e.spacing);const s=Gr(e.breakpoints||{}),c=l.spacing;l.mixins=ct({gutters:(e={})=>ct({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:ct({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,f=ut(o,$a),p=d||u||"light";return l.palette=ct({text:{hint:"dark"===p?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:p,type:p},f),l}(f(f({},o),{},{overrides:Us(o)}))),Ws[r].name=n,Ws[r]}di.configure((e=>"njs-".concat("1075","-").concat(e.replace("Mui",""))));var Vs=S.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{}});const Gs={active:!0,select:!0,passive:!0,edit:!1};function Ks(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(Gs).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=Gs[e],n[e]=!Gs[e])})),e.constraints=n,e.interactions=t}var Zs=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=[],r={},o={get:e=>t[e],set:(n,o)=>{if(void 0===n||"object"==typeof n)throw new Error("Invalid key: ".concat(JSON.stringify(n)));return t[n]=o,r[n]=e({type:"SET",value:o}),o},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));t[e]=null},dispatch:e=>{n.forEach((n=>n(e?{}:t)))},destroy:()=>{Object.keys(r).forEach((e=>{r[e]&&r[e]()}))}};return[()=>{const[,e]=x.useState(t);return x.useEffect((()=>(n.push(e),()=>{const t=n.indexOf(e);n.splice(t,1)})),[e]),[o]},o]};const Js=x.forwardRef(((e,t)=>{let{initialContext:n,renderCallback:r,modelStore:o,selectionStore:i}=e;const[a,l]=x.useState(n),[s,c]=x.useState(),{theme:u}=x.useMemo((()=>({theme:Hs(s)})),[s]),[d,f]=x.useState([]);return x.useEffect((()=>{r&&r()}),[]),x.useImperativeHandle(t,(()=>({setComps(e){f([...e])},setMuiThemeName:c,setContext:e=>l((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t))})),[]),a&&(a.modelStore=o,a.selectionStore=i),S.createElement(qr,{injectFirst:!0},S.createElement(Wl,{theme:u},S.createElement(Vs.Provider,{value:a},d)))}));function Xs(e){let t,{app:n,context:r}=e,o=!1;const i=new Promise((e=>{t=e})),a=S.createRef(),l=document.createElement("div");l.style.display="none",l.setAttribute("data-nebulajs-version","5.16.0"),l.setAttribute("data-app-id",n.id),document.body.appendChild(l),r&&Ks(r);const s=function(e){const[t,n]=Zs({}),[r,o]=Zs({}),[i,a]=Zs({}),[l,s]=Zs({}),[c,u]=Zs({}),[,d]=Zs({}),f=e=>{let{type:t,value:r}=e;const i=d.get(r.id);d.set(r.id,{});const l=()=>{o.clear(r.id),u.set(r.id,{}),u.dispatch(!0)},c=()=>{r.removeListener("closed",c),r.removeListener("changed",l),n.clear(r.id),o.clear(r.id),a.clear(r.id),s.clear(r.id),u.clear(r.id),d.clear(r.id)};return"SET"===t&&(i||(r.on("changed",l),r.once("closed",c))),c},[p,h]=Zs({},f);return{subscribe:e=>{const t=f({type:"SET",value:e});return()=>{t(),h.clear(e.id)}},destroy:()=>{h.destroy()},useModelStore:p,modelStore:h,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:r,rpcRequestStore:o,useRpcRequestModelStore:l,rpcRequestModelStore:s,useRpcRequestSessionModelStore:i,rpcRequestSessionModelStore:a,modelChangedStore:u,appId:e}}(n.id),c=function(e){const[t,n]=Zs({}),[r,o]=Zs({}),[i,a]=Zs({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:i,modalObjectStore:a,appId:e}}(n.id),u=it.createRoot(l);u.render(S.createElement(Js,{ref:a,initialContext:r,renderCallback:t,modelStore:s,selectionStore:c}));const d={},f=[],p=[];return[{toggleFocusOfCells(e){Object.keys(d).forEach((t=>{var n;null===(n=d[t].current)||void 0===n||n.toggleFocus(t===e)}))},cells:d,addCell(e,t){d[e]=t},removeCell(e){delete d[e]},add:(e,t)=>(async()=>{await i,p.push(e),f.push(t),a.current.setComps(p)})(),remove(e){o||(async t=>{await i;const n=p.indexOf(e);var r;-1!==n&&(null===(r=f[n])||void 0===r||r.call(f),p.splice(n,1),f.splice(n,1));null==a||null===(t=a.current)||void 0===t||t.setComps(p)})()},setMuiThemeName(e){(async()=>{await i,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await i,e&&Ks(e),a.current.setContext(e)})()},destroy(){o=!0,f.forEach((e=>{e&&e()})),s.destroy(),u.unmount(),document.body.removeChild(l)}},s,c,a,i]}function Qs(e){return gi("MuiSvgIcon",e)}vi("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ys=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ec=$l("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${no(n.color)}`],t[`fontSize${no(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,c,u,d,f,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(f=(e.vars||e).palette)||null==(f=f[t.color])?void 0:f.main)?d:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),tc=x.forwardRef((function(e,t){const n=Hl({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,f=ut(n,Ys),p=x.isValidElement(r)&&"svg"===r.type,h=ct({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:p}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return da({root:["root","inherit"!==t&&`color${no(t)}`,`fontSize${no(n)}`]},Qs,r)})(h);return Nr.jsxs(ec,ct({as:a,className:pi(g.root,o),focusable:"false",color:s,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,f,p&&r.props,{ownerState:h,children:[p?r.props.children:r,u?Nr.jsx("title",{children:u}):null]}))}));function nc(e,t){function n(n,r){return Nr.jsx(tc,ct({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=tc.muiName,x.memo(x.forwardRef(n))}tc.muiName="SvgIcon";const rc={configure:e=>{di.configure(e)}};var oc=Object.freeze({__proto__:null,capitalize:no,createChainedFunction:zi,createSvgIcon:nc,debounce:ji,deprecatedPropType:function(e,t){return()=>null},isMuiElement:Fi,ownerDocument:$i,ownerWindow:Bi,requirePropFactory:function(e,t){return()=>null},setRef:Wi,unstable_ClassNameGenerator:rc,unstable_useEnhancedEffect:qi,unstable_useId:Vi,unsupportedProp:function(e,t,n,r,o){return null},useControlled:Gi,useEventCallback:Ki,useForkRef:Zi,useIsFocusVisible:sa});const ic=e=>e.scrollTop;function ac(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 lc(e){return gi("MuiPaper",e)}vi("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 sc=["className","component","elevation","square","variant"],cc=$l("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return ct({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&ct({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Ja.alpha("#fff",Ul(t.elevation))}, ${Ja.alpha("#fff",Ul(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),uc=x.forwardRef((function(e,t){const n=Hl({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=ut(n,sc),c=ct({},n,{component:o,elevation:i,square:a,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return da({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},lc,o)})(c);return Nr.jsx(cc,ct({as:o,ownerState:c,className:pi(u.root,r),ref:t},s))}));function dc(e){return gi("MuiIconButton",e)}const fc=vi("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),pc=["edge","children","className","color","disabled","disableFocusRipple","size"],hc=$l(Ls,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${no(n.color)}`],n.edge&&t[`edge${no(n.edge)}`],t[`size${no(n.size)}`]]}})((({theme:e,ownerState:t})=>ct({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})`:Ja.alpha(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 ct({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&ct({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":ct({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ja.alpha(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)},{[`&.${fc.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),mc=x.forwardRef((function(e,t){const n=Hl({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=ut(n,pc),d=ct({},n,{edge:r,color:a,disabled:l,disableFocusRipple:s,size:c}),f=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return da({root:["root",n&&"disabled","default"!==r&&`color${no(r)}`,o&&`edge${no(o)}`,`size${no(i)}`]},dc,t)})(d);return Nr.jsx(hc,ct({className:pi(f.root,i),centerRipple:!0,focusRipple:!s,disabled:l,ref:t},u,{ownerState:d,children:o}))}));function gc(e){return gi("MuiTypography",e)}vi("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const vc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],bc=$l("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${no(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>ct({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),yc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Sc=x.forwardRef((function(e,t){const n=Hl({props:e,name:"MuiTypography"}),r=(e=>xc[e]||e)(n.color),o=si(ct({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:f=yc}=o,p=ut(o,vc),h=ct({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:f}),m=l||(u?"p":f[d]||yc[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return da({root:["root",i,"inherit"!==e.align&&`align${no(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},gc,a)})(h);return Nr.jsx(bc,ct({as:m,ref:t,ownerState:h,className:pi(g.root,a)},p))}));var wc,Ec={};function kc(){if(wc)return Ec;wc=1,Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(y()),t=Ml;function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}return Ec.default=function(n=null){const r=e.useContext(t.ThemeContext);return r&&(o=r,0!==Object.keys(o).length)?r:n;var o},Ec}var Cc=r(kc()),_c="top",Rc="bottom",Lc="right",Oc="left",Ic="auto",Tc=[_c,Rc,Lc,Oc],Pc="start",Mc="end",Nc="clippingParents",Dc="viewport",qc="popper",Ac="reference",zc=Tc.reduce((function(e,t){return e.concat([t+"-"+Pc,t+"-"+Mc])}),[]),jc=[].concat(Tc,[Ic]).reduce((function(e,t){return e.concat([t,t+"-"+Pc,t+"-"+Mc])}),[]),Fc=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function $c(e){return e?(e.nodeName||"").toLowerCase():null}function Bc(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wc(e){return e instanceof Bc(e).Element||e instanceof Element}function Uc(e){return e instanceof Bc(e).HTMLElement||e instanceof HTMLElement}function Hc(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Bc(e).ShadowRoot||e instanceof ShadowRoot)}var Vc={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];Uc(o)&&$c(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}),{});Uc(r)&&$c(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Gc(e){return e.split("-")[0]}var Kc=Math.max,Zc=Math.min,Jc=Math.round;function Xc(){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 Qc(){return!/^((?!chrome|android).)*safari/i.test(Xc())}function Yc(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Uc(e)&&(o=e.offsetWidth>0&&Jc(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Jc(r.height)/e.offsetHeight||1);var a=(Wc(e)?Bc(e):window).visualViewport,l=!Qc()&&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 eu(e){var t=Yc(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 tu(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Hc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function nu(e){return Bc(e).getComputedStyle(e)}function ru(e){return["table","td","th"].indexOf($c(e))>=0}function ou(e){return((Wc(e)?e.ownerDocument:e.document)||window.document).documentElement}function iu(e){return"html"===$c(e)?e:e.assignedSlot||e.parentNode||(Hc(e)?e.host:null)||ou(e)}function au(e){return Uc(e)&&"fixed"!==nu(e).position?e.offsetParent:null}function lu(e){for(var t=Bc(e),n=au(e);n&&ru(n)&&"static"===nu(n).position;)n=au(n);return n&&("html"===$c(n)||"body"===$c(n)&&"static"===nu(n).position)?t:n||function(e){var t=/firefox/i.test(Xc());if(/Trident/i.test(Xc())&&Uc(e)&&"fixed"===nu(e).position)return null;var n=iu(e);for(Hc(n)&&(n=n.host);Uc(n)&&["html","body"].indexOf($c(n))<0;){var r=nu(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 su(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function cu(e,t,n){return Kc(e,Zc(t,n))}function uu(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function du(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var fu={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=Gc(n.placement),s=su(l),c=[Oc,Lc].indexOf(l)>=0?"height":"width";if(i&&a){var u=function(e,t){return uu("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:du(e,Tc))}(o.padding,n),d=eu(i),f="y"===s?_c:Oc,p="y"===s?Rc:Lc,h=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],m=a[s]-n.rects.reference[s],g=lu(i),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,y=u[f],x=v-d[c]-u[p],S=v/2-d[c]/2+b,w=cu(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)))&&tu(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pu(e){return e.split("-")[1]}var hu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mu(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,f=a.x,p=void 0===f?0:f,h=a.y,m=void 0===h?0:h,g="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=Oc,x=_c,S=window;if(c){var w=lu(n),E="clientHeight",k="clientWidth";if(w===Bc(n)&&"static"!==nu(w=ou(n)).position&&"absolute"===l&&(E="scrollHeight",k="scrollWidth"),o===_c||(o===Oc||o===Lc)&&i===Mc)x=Rc,m-=(d&&w===S&&S.visualViewport?S.visualViewport.height:w[E])-r.height,m*=s?1:-1;if(o===Oc||(o===_c||o===Rc)&&i===Mc)y=Lc,p-=(d&&w===S&&S.visualViewport?S.visualViewport.width:w[k])-r.width,p*=s?1:-1}var C,_=Object.assign({position:l},c&&hu),R=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Jc(n*o)/o||0,y:Jc(r*o)/o||0}}({x:p,y:m},Bc(n)):{x:p,y:m};return p=R.x,m=R.y,s?Object.assign({},_,((C={})[x]=b?"0":"",C[y]=v?"0":"",C.transform=(S.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",C)):Object.assign({},_,((t={})[x]=b?m+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var gu={passive:!0};var vu={left:"right",right:"left",bottom:"top",top:"bottom"};function bu(e){return e.replace(/left|right|bottom|top/g,(function(e){return vu[e]}))}var yu={start:"end",end:"start"};function xu(e){return e.replace(/start|end/g,(function(e){return yu[e]}))}function Su(e){var t=Bc(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function wu(e){return Yc(ou(e)).left+Su(e).scrollLeft}function Eu(e){var t=nu(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ku(e){return["html","body","#document"].indexOf($c(e))>=0?e.ownerDocument.body:Uc(e)&&Eu(e)?e:ku(iu(e))}function Cu(e,t){var n;void 0===t&&(t=[]);var r=ku(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Bc(r),a=o?[i].concat(i.visualViewport||[],Eu(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Cu(iu(a)))}function _u(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ru(e,t,n){return t===Dc?_u(function(e,t){var n=Bc(e),r=ou(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var c=Qc();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+wu(e),y:s}}(e,n)):Wc(t)?function(e,t){var n=Yc(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):_u(function(e){var t,n=ou(e),r=Su(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Kc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Kc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+wu(e),s=-r.scrollTop;return"rtl"===nu(o||n).direction&&(l+=Kc(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(ou(e)))}function Lu(e,t,n,r){var o="clippingParents"===t?function(e){var t=Cu(iu(e)),n=["absolute","fixed"].indexOf(nu(e).position)>=0&&Uc(e)?lu(e):e;return Wc(n)?t.filter((function(e){return Wc(e)&&tu(e,n)&&"body"!==$c(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce((function(t,n){var o=Ru(e,n,r);return t.top=Kc(o.top,t.top),t.right=Zc(o.right,t.right),t.bottom=Zc(o.bottom,t.bottom),t.left=Kc(o.left,t.left),t}),Ru(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 Ou(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Gc(o):null,a=o?pu(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case _c:t={x:l,y:n.y-r.height};break;case Rc:t={x:l,y:n.y+n.height};break;case Lc:t={x:n.x+n.width,y:s};break;case Oc:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=i?su(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Pc:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Mc:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Iu(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?Nc:l,c=n.rootBoundary,u=void 0===c?Dc:c,d=n.elementContext,f=void 0===d?qc:d,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,v=uu("number"!=typeof g?g:du(g,Tc)),b=f===qc?Ac:qc,y=e.rects.popper,x=e.elements[h?b:f],S=Lu(Wc(x)?x:x.contextElement||ou(e.elements.popper),s,u,a),w=Yc(e.elements.reference),E=Ou({reference:w,element:y,placement:o}),k=_u(Object.assign({},y,E)),C=f===qc?k:w,_={top:S.top-C.top+v.top,bottom:C.bottom-S.bottom+v.bottom,left:S.left-C.left+v.left,right:C.right-S.right+v.right},R=e.modifiersData.offset;if(f===qc&&R){var L=R[o];Object.keys(_).forEach((function(e){var t=[Lc,Rc].indexOf(e)>=0?1:-1,n=[_c,Rc].indexOf(e)>=0?"y":"x";_[e]+=L[n]*t}))}return _}function Tu(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?jc:s,u=pu(r),d=u?l?zc:zc.filter((function(e){return pu(e)===u})):Tc,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=Iu(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Gc(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}var Pu={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,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=Gc(g),b=s||(v===g||!h?[bu(g)]:function(e){if(Gc(e)===Ic)return[];var t=bu(e);return[xu(e),t,xu(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(Gc(n)===Ic?Tu(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,k=y[0],C=0;C<y.length;C++){var _=y[C],R=Gc(_),L=pu(_)===Pc,O=[_c,Rc].indexOf(R)>=0,I=O?"width":"height",T=Iu(t,{placement:_,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),P=O?L?Lc:Oc:L?Rc:_c;x[I]>S[I]&&(P=bu(P));var M=bu(P),N=[];if(i&&N.push(T[R]<=0),l&&N.push(T[P]<=0,T[M]<=0),N.every((function(e){return e}))){k=_,E=!1;break}w.set(_,N)}if(E)for(var D=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 k=t,"break"},q=h?3:1;q>0;q--){if("break"===D(q))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Mu(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 Nu(e){return[_c,Lc,Rc,Oc].some((function(t){return e[t]>=0}))}var Du={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=jc.reduce((function(e,n){return e[n]=function(e,t,n){var r=Gc(e),o=[Oc,_c].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,[Oc,Lc].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 qu={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,f=n.tether,p=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,g=Iu(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=Gc(t.placement),b=pu(t.placement),y=!b,x=su(v),S="x"===x?"y":"x",w=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,_="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(w){if(i){var O,I="y"===x?_c:Oc,T="y"===x?Rc:Lc,P="y"===x?"height":"width",M=w[x],N=M+g[I],D=M-g[T],q=p?-k[P]/2:0,A=b===Pc?E[P]:k[P],z=b===Pc?-k[P]:-E[P],j=t.elements.arrow,F=p&&j?eu(j):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=$[I],W=$[T],U=cu(0,E[P],F[P]),H=y?E[P]/2-q-U-B-_.mainAxis:A-U-B-_.mainAxis,V=y?-E[P]/2+q+U+W+_.mainAxis:z+U+W+_.mainAxis,G=t.elements.arrow&&lu(t.elements.arrow),K=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,Z=null!=(O=null==R?void 0:R[x])?O:0,J=M+V-Z,X=cu(p?Zc(N,M+H-Z-K):N,M,p?Kc(D,J):D);w[x]=X,L[x]=X-M}if(l){var Q,Y="x"===x?_c:Oc,ee="x"===x?Rc:Lc,te=w[S],ne="y"===S?"height":"width",re=te+g[Y],oe=te-g[ee],ie=-1!==[_c,Oc].indexOf(v),ae=null!=(Q=null==R?void 0:R[S])?Q:0,le=ie?re:te-E[ne]-k[ne]-ae+_.altAxis,se=ie?te+E[ne]+k[ne]-ae-_.altAxis:oe,ce=p&&ie?function(e,t,n){var r=cu(e,t,n);return r>n?n:r}(le,te,se):cu(p?le:re,te,p?se:oe);w[S]=ce,L[S]=ce-te}t.modifiersData[r]=L}},requiresIfExists:["offset"]};function Au(e,t,n){void 0===n&&(n=!1);var r=Uc(t),o=Uc(t)&&function(e){var t=e.getBoundingClientRect(),n=Jc(t.width)/e.offsetWidth||1,r=Jc(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=ou(t),a=Yc(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==$c(t)||Eu(i))&&(l=function(e){return e!==Bc(e)&&Uc(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Su(e);var t}(t)),Uc(t)?((s=Yc(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=wu(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function zu(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 ju={placement:"bottom",modifiers:[],strategy:"absolute"};function Fu(){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 $u(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?ju:o;return function(e,t,n){void 0===n&&(n=i);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},ju,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:Wc(e)?Cu(e):e.contextElement?Cu(e.contextElement):[],popper:Cu(t)};var a,c,f=function(e){var t=zu(e);return Fc.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=f.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(Fu(t,n)){l.rects={reference:Au(t,lu(n),"fixed"===l.options.strategy),popper:eu(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(!Fu(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 Bu=$u({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=Bc(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,gu)})),l&&s.addEventListener("resize",n.update,gu),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,gu)})),l&&s.removeEventListener("resize",n.update,gu)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ou({reference:t.rects.reference,element:t.rects.popper,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:Gc(t.placement),variation:pu(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,mu(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,mu(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:{}},Vc,Du,Pu,qu,fu,{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=Iu(t,{elementContext:"reference"}),l=Iu(t,{altBoundary:!0}),s=Mu(a,r),c=Mu(l,o,i),u=Nu(s),d=Nu(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const Wu=x.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=x.useState(null),l=Zi(x.isValidElement(n)?xa(n):null,t);if(qi((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),qi((()=>{if(i&&!o)return Wi(t,i),()=>{Wi(t,null)}}),[t,i,o]),o){if(x.isValidElement(n)){const e={ref:l};return x.cloneElement(n,e)}return Nr.jsx(x.Fragment,{children:n})}return Nr.jsx(x.Fragment,{children:i?Kl.createPortal(n,i):i})}));function Uu(e){return gi("MuiPopper",e)}vi("MuiPopper",["root"]);const Hu=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Vu=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Gu(e){return"function"==typeof e?e():e}const Ku={},Zu=x.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:f={},slots:p={},TransitionProps:h}=e,m=ut(e,Hu),g=x.useRef(null),v=Zi(g,t),b=x.useRef(null),y=Zi(b,d),S=x.useRef(y);qi((()=>{S.current=y}),[y]),x.useImperativeHandle(d,(()=>b.current),[]);const w=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(c,i),[E,k]=x.useState(w),[C,_]=x.useState(Gu(r));x.useEffect((()=>{b.current&&b.current.forceUpdate()})),x.useEffect((()=>{r&&_(Gu(r))}),[r]),qi((()=>{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})=>{k(e.placement)}}];null!=l&&(e=e.concat(l)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=Bu(C,g.current,ct({placement:w},u,{modifiers:e}));return S.current(t),()=>{t.destroy(),S.current(null)}}),[C,a,l,s,u,w]);const R={placement:E};null!==h&&(R.TransitionProps=h);const L=(e=>{const{classes:t}=e;return da({root:["root"]},Uu,t)})(e),O=null!=(n=p.root)?n:"div",I=ya({elementType:O,externalSlotProps:f.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:L.root});return Nr.jsx(O,ct({},I,{children:"function"==typeof o?o(R):o}))})),Ju=x.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=Ku,popperRef:f,style:p,transition:h=!1,slotProps:m={},slots:g={}}=e,v=ut(e,Vu),[b,y]=x.useState(!0);if(!l&&!c&&(!h||b))return null;let S;if(o)S=o;else if(n){const e=Gu(n);S=e&&void 0!==e.nodeType?$i(e).body:$i(null).body}const w=c||!l||h&&!b?void 0:"none",E=h?{in:c,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return Nr.jsx(Wu,{disablePortal:a,container:S,children:Nr.jsx(Zu,ct({anchorEl:n,direction:i,disablePortal:a,modifiers:s,ref:t,open:h?!b:c,placement:u,popperOptions:d,popperRef:f,slotProps:m,slots:g},v,{style:ct({position:"fixed",top:0,left:0,display:w},p),TransitionProps:E,children:r}))})})),Xu=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Qu=$l(Ju,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Yu=x.forwardRef((function(e,t){var n;const r=Cc(),o=Hl({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:s,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:m,popperRef:g,transition:v,slots:b,slotProps:y}=o,x=ut(o,Xu),S=null!=(n=null==b?void 0:b.root)?n:null==l?void 0:l.Root,w=ct({anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:m,popperRef:g,transition:v},x);return Nr.jsx(Qu,ct({as:a,direction:null==r?void 0:r.direction,slots:{root:S},slotProps:null!=y?y:s},w,{ref:t}))})),ed=["onChange","maxRows","minRows","style","value"];function td(e){return parseInt(e,10)||0}const nd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function rd(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const od=x.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=ut(e,ed),{current:s}=x.useRef(null!=a),c=x.useRef(null),u=Zi(t,c),d=x.useRef(null),f=x.useRef(null),p=x.useCallback((()=>{const t=c.current,n=f.current;if(!t||!n)return;const i=Bi(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,l=td(i.paddingBottom)+td(i.paddingTop),s=td(i.borderBottomWidth)+td(i.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let p=u;o&&(p=Math.max(Number(o)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===a?l+s:0),overflowing:Math.abs(p-u)<=1}}),[r,o,e.placeholder]),h=Ki((()=>{const e=c.current,t=p();if(!e||!t||rd(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n})),m=x.useCallback((()=>{const e=c.current,t=p();if(!e||!t||rd(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""}),[p]),g=x.useRef(-1);qi((()=>{const e=ji(m),t=null==c?void 0:c.current;if(!t)return;const n=Bi(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver((()=>{h()&&(r.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame((()=>{r.observe(t)})))})),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener("resize",e),r&&r.disconnect()}}),[p,m,h]),qi((()=>{m()}));return Nr.jsxs(x.Fragment,{children:[Nr.jsx("textarea",ct({value:a,onChange:e=>{s||m(),n&&n(e)},ref:u,rows:o,style:i},l)),Nr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:ct({},nd,i,{paddingTop:0,paddingBottom:0})})]})}));function id({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}const ad=x.createContext(void 0);function ld(){return x.useContext(ad)}function sd(e){return Nr.jsx(ii,ct({},e,{defaultTheme:Cl,themeId:st}))}function cd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function ud(e){return gi("MuiInputBase",e)}const dd=vi("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),fd=["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"],pd=(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${no(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},hd=(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]},md=$l("div",{name:"MuiInputBase",slot:"Root",overridesResolver:pd})((({theme:e,ownerState:t})=>ct({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${dd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&ct({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),gd=$l("input",{name:"MuiInputBase",slot:"Input",overridesResolver:hd})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=ct({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return ct({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${dd.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},[`&.${dd.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"})})),vd=Nr.jsx(sd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),bd=x.forwardRef((function(e,t){var n;const r=Hl({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:f,endAdornment:p,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:S,multiline:w=!1,name:E,onBlur:k,onChange:C,onClick:_,onFocus:R,onKeyDown:L,onKeyUp:O,placeholder:I,readOnly:T,renderSuffix:P,rows:M,slotProps:N={},slots:D={},startAdornment:q,type:A="text",value:z}=r,j=ut(r,fd),F=null!=v.value?v.value:z,{current:$}=x.useRef(null!=F),B=x.useRef(),W=x.useCallback((e=>{}),[]),U=Zi(B,b,v.ref,W),[H,V]=x.useState(!1),G=ld(),K=id({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:H,x.useEffect((()=>{!G&&d&&H&&(V(!1),k&&k())}),[G,d,H,k]);const Z=G&&G.onFilled,J=G&&G.onEmpty,X=x.useCallback((e=>{!function(e,t=!1){return e&&(cd(e.value)&&""!==e.value||t&&cd(e.defaultValue)&&""!==e.defaultValue)}(e)?J&&J():Z&&Z()}),[Z,J]);qi((()=>{$&&X({value:F})}),[F,X,$]);x.useEffect((()=>{X(B.current)}),[]);let Q=g,Y=v;w&&"input"===Q&&(Y=ct(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:y,minRows:S},Y),Q=od);x.useEffect((()=>{G&&G.setAdornedStart(Boolean(q))}),[G,q]);const ee=ct({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:p,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:w,size:K.size,startAdornment:q,type:A}),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:f,startAdornment:p,type:h}=e;return da({root:["root",`color${no(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",f&&"medium"!==f&&`size${no(f)}`,u&&"multiline",p&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===f&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},ud,t)})(ee),ne=D.root||s.Root||md,re=N.root||c.root||{},oe=D.input||s.Input||gd;return Y=ct({},Y,null!=(n=N.input)?n:c.input),Nr.jsxs(x.Fragment,{children:[!f&&vd,Nr.jsxs(ne,ct({},re,!fa(ne)&&{ownerState:ct({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),_&&_(e)}},j,{className:pi(te.root,re.className,l,T&&"MuiInputBase-readOnly"),children:[q,Nr.jsx(ad.Provider,{value:null,children:Nr.jsx(oe,ct({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:E,placeholder:I,readOnly:T,required:K.required,rows:M,value:F,onKeyDown:L,onKeyUp:O,type:A},Y,!fa(oe)&&{as:Q,ownerState:ct({},ee,Y.ownerState)},{ref:U,className:pi(te.input,Y.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{k&&k(e),v.onBlur&&v.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(at(1));X({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))}}))}),p,P?P(ct({},K,{startAdornment:q})):null]}))]})}));function yd(e){return gi("MuiOutlinedInput",e)}const xd=ct({},dd,vi("MuiOutlinedInput",["root","notchedOutline","input"])),Sd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],wd={entering:{opacity:1},entered:{opacity:1}},Ed=x.forwardRef((function(e,t){const n=_l(),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:f,onExited:p,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=rs}=e,b=ut(e,Sd),y=x.useRef(null),S=Zi(y,xa(a),t),w=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=w(d),k=w(((e,t)=>{ic(e);const r=ac({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=w(u),_=w(h),R=w((e=>{const t=ac({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),L=w(p);return Nr.jsx(v,ct({appear:i,in:s,nodeRef:y,onEnter:k,onEntered:C,onEntering:E,onExit:R,onExited:L,onExiting:_,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>x.cloneElement(a,ct({style:ct({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},wd[e],m,a.props.style),ref:S},t))}))}));function kd(e){return gi("MuiBackdrop",e)}vi("MuiBackdrop",["root","invisible"]);const Cd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],_d=$l("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>ct({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),Rd=x.forwardRef((function(e,t){var n,r,o;const i=Hl({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:c={},componentsProps:u={},invisible:d=!1,open:f,slotProps:p={},slots:h={},TransitionComponent:m=Ed,transitionDuration:g}=i,v=ut(i,Cd),b=ct({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return da({root:["root",n&&"invisible"]},kd,t)})(b),x=null!=(n=p.root)?n:u.root;return Nr.jsx(m,ct({in:f,timeout:g},v,{children:Nr.jsx(_d,ct({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:pi(y.root,l,null==x?void 0:x.className),ownerState:ct({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));function Ld(e){return gi("MuiBadge",e)}const Od=vi("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"]),Id=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Td=$l("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Pd=$l("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${no(n.anchorOrigin.vertical)}${no(n.anchorOrigin.horizontal)}${no(n.overlap)}`],"default"!==n.color&&t[`color${no(n.color)}`],n.invisible&&t.invisible]}})((({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n,r;return(null!=(n=e.vars)?n:e).palette[t].main&&(null!=(r=e.vars)?r:e).palette[t].contrastText})).map((t=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Od.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Od.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Od.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Od.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Od.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Od.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Od.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Od.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}})),Md=x.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Hl({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:u,component:d,components:f={},componentsProps:p={},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,k=ut(s,Id),{badgeContent:C,invisible:_,max:R,displayValue:L}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=ua({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}),O=ua({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:y}),I=_||null==C&&"dot"!==E,{color:T=g,overlap:P=m,anchorOrigin:M=c,variant:N=E}=I?O:s,D="dot"!==N?L:void 0,q=ct({},s,{badgeContent:C,invisible:I,max:R,displayValue:D,showZero:w,anchorOrigin:M,color:T,overlap:P,variant:N}),A=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e;return da({root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${no(n.vertical)}${no(n.horizontal)}`,`anchorOrigin${no(n.vertical)}${no(n.horizontal)}${no(o)}`,`overlap${no(o)}`,"default"!==t&&`color${no(t)}`]},Ld,a)})(q),z=null!=(n=null!=(r=null==x?void 0:x.root)?r:f.Root)?n:Td,j=null!=(o=null!=(i=null==x?void 0:x.badge)?i:f.Badge)?o:Pd,F=null!=(a=null==S?void 0:S.root)?a:p.root,$=null!=(l=null==S?void 0:S.badge)?l:p.badge,B=ya({elementType:z,externalSlotProps:F,externalForwardedProps:k,additionalProps:{ref:t,as:d},ownerState:q,className:pi(null==F?void 0:F.className,A.root,u)}),W=ya({elementType:j,externalSlotProps:$,ownerState:q,className:pi(A.badge,null==$?void 0:$.className)});return Nr.jsxs(z,ct({},B,{children:[h,Nr.jsx(j,ct({},W,{children:D}))]}))})),Nd=vi("MuiBox",["root"]),Dd=kl(),qd=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=zr("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Xo),a=x.forwardRef((function(e,a){const l=oi(n),s=si(e),{className:c,component:u="div"}=s,d=ut(s,hi);return Nr.jsx(i,ct({as:u,ref:a,className:pi(c,o?o(r):r),theme:t&&l[t]||l},d))}));return a}({themeId:st,defaultTheme:Dd,defaultClassName:Nd.root,generateClassName:di.generate});function Ad(e){return gi("PrivateSwitchBase",e)}vi("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const zd=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],jd=$l(Ls)((({ownerState:e})=>ct({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Fd=$l("input",{shouldForwardProp:Fl})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),$d=x.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:f,inputRef:p,name:h,onBlur:m,onChange:g,onFocus:v,readOnly:b,required:y=!1,tabIndex:x,type:S,value:w}=e,E=ut(e,zd),[k,C]=Gi({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),_=ld();let R=l;_&&void 0===R&&(R=_.disabled);const L="checkbox"===S||"radio"===S,O=ct({},e,{checked:k,disabled:R,disableFocusRipple:s,edge:c}),I=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return da({root:["root",n&&"checked",r&&"disabled",o&&`edge${no(o)}`],input:["input"]},Ad,t)})(O);return Nr.jsxs(jd,ct({component:"span",className:pi(I.root,i),centerRipple:!0,focusRipple:!s,disabled:R,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),_&&_.onFocus&&_.onFocus(e)},onBlur:e=>{m&&m(e),_&&_.onBlur&&_.onBlur(e)},ownerState:O,ref:t},E,{children:[Nr.jsx(Fd,ct({autoFocus:n,checked:r,defaultChecked:a,className:I.input,disabled:R,id:L?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;C(t),g&&g(e,t)},readOnly:b,ref:p,required:y,ownerState:O,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},f)),k?o:u]}))}));var Bd=nc(Nr.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"),Wd=nc(Nr.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"),Ud=nc(Nr.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 Hd(e){return gi("MuiCheckbox",e)}const Vd=vi("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Gd=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Kd=$l($d,{shouldForwardProp:e=>Fl(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${no(n.size)}`],"default"!==n.color&&t[`color${no(n.color)}`]]}})((({theme:e,ownerState:t})=>ct({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})`:Ja.alpha("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Vd.checked}, &.${Vd.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Vd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Zd=Nr.jsx(Wd,{}),Jd=Nr.jsx(Bd,{}),Xd=Nr.jsx(Ud,{}),Qd=x.forwardRef((function(e,t){var n,r;const o=Hl({props:e,name:"MuiCheckbox"}),{checkedIcon:i=Zd,color:a="primary",icon:l=Jd,indeterminate:s=!1,indeterminateIcon:c=Xd,inputProps:u,size:d="medium",className:f}=o,p=ut(o,Gd),h=s?c:l,m=s?c:i,g=ct({},o,{color:a,indeterminate:s,size:d}),v=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e;return ct({},t,da({root:["root",n&&"indeterminate",`color${no(r)}`,`size${no(o)}`]},Hd,t))})(g);return Nr.jsx(Kd,ct({type:"checkbox",inputProps:ct({"data-indeterminate":s},u),icon:x.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:x.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:pi(v.root,f)},p,{classes:v}))}));function Yd(e){return gi("MuiCircularProgress",e)}vi("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ef=["className","color","disableShrink","size","style","thickness","value","variant"];let tf,nf,rf,of,af=e=>e;const lf=44,sf=dr(tf||(tf=af`
96
+ `),ds.rippleVisible,bs,550,(({theme:e})=>e.transitions.easing.easeInOut),ds.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),ds.child,ds.childLeaving,ys,550,(({theme:e})=>e.transitions.easing.easeInOut),ds.childPulsate,xs,(({theme:e})=>e.transitions.easing.easeInOut)),Es=x.forwardRef((function(e,t){const n=Ul({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=ut(n,fs),[l,s]=x.useState([]),c=x.useRef(0),u=x.useRef(null);x.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const d=x.useRef(!1),f=Qi(),p=x.useRef(null),h=x.useRef(null),m=x.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,qr.jsx(ws,{classes:{ripple:pi(o.ripple,ds.ripple),rippleVisible:pi(o.rippleVisible,ds.rippleVisible),ripplePulsate:pi(o.ripplePulsate,ds.ripplePulsate),child:pi(o.child,ds.child),childLeaving:pi(o.childLeaving,ds.childLeaving),childPulsate:pi(o.childPulsate,ds.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=x.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===p.current&&(p.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},f.start(80,(()=>{p.current&&(p.current(),p.current=null)}))):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,f]),v=x.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=x.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&p.current)return p.current(),p.current=null,void f.start(0,(()=>{b(e,t)}));p.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[f]);return x.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),qr.jsx(Ss,ct({className:pi(ds.root,o.root,i),ref:h},a,{children:qr.jsx(us,{component:null,exit:!0,children:l})}))}));function ks(e){return gi("MuiButtonBase",e)}const Cs=vi("MuiButtonBase",["root","disabled","focusVisible"]),_s=["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"],Rs=$l("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"}}),Ls=x.forwardRef((function(e,t){const n=Ul({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:f="a",onBlur:p,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:S,onMouseDown:w,onMouseLeave:E,onMouseUp:k,onTouchEnd:C,onTouchMove:_,onTouchStart:R,tabIndex:L=0,TouchRippleProps:O,touchRippleRef:I,type:T}=n,P=ut(n,_s),M=x.useRef(null),q=x.useRef(null),D=Zi(q,I),{isFocusVisibleRef:N,onFocus:A,onBlur:z,ref:j}=sa(),[F,$]=x.useState(!1);s&&F&&$(!1),x.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),M.current.focus()}})),[]);const[B,W]=x.useState(!1);x.useEffect((()=>{W(!0)}),[]);const H=B&&!c&&!s;function U(e,t,n=u){return Ki((r=>{t&&t(r);return!n&&q.current&&q.current[e](r),!0}))}x.useEffect((()=>{F&&d&&!c&&B&&q.current.pulsate()}),[c,d,F,B]);const V=U("start",w),G=U("stop",m),K=U("stop",g),Z=U("stop",k),J=U("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),X=U("start",R),Y=U("stop",C),Q=U("stop",_),ee=U("stop",(e=>{z(e),!1===N.current&&$(!1),p&&p(e)}),!1),te=Ki((e=>{M.current||(M.current=e.currentTarget),A(e),!0===N.current&&($(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=M.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=x.useRef(!1),oe=Ki((e=>{d&&!re.current&&F&&q.current&&" "===e.key&&(re.current=!0,q.current.stop(e,(()=>{q.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=Ki((e=>{d&&" "===e.key&&q.current&&F&&!e.defaultPrevented&&(re.current=!1,q.current.stop(e,(()=>{q.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(P.href||P.to)&&(ae=f);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=Zi(t,j,M),ce=ct({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:L,focusVisible:F}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=da({root:["root",t&&"disabled",n&&"focusVisible"]},ks,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return qr.jsxs(Rs,ct({as:ae,className:pi(ue.root,a),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:J,onMouseUp:Z,onDragLeave:K,onTouchEnd:Y,onTouchMove:Q,onTouchStart:X,ref:se,tabIndex:s?-1:L,type:T},le,P,{children:[i,H?qr.jsx(Es,ct({ref:D,center:o},O)):null]}))}));function Os(e){return gi("MuiButton",e)}const Is=vi("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Ts=x.createContext({}),Ps=x.createContext(void 0),Ms=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],qs=e=>ct({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Ds=$l(Ls,{shouldForwardProp:e=>Fl(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${no(n.color)}`],t[`size${no(n.size)}`],t[`${n.variant}Size${no(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return ct({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":ct({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ja.alpha(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})`:Ja.alpha(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})`:Ja.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":ct({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Is.focusVisible}`]:ct({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Is.disabled}`]:ct({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ja.alpha(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"},[`&.${Is.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Is.disabled}`]:{boxShadow:"none"}})),Ns=$l("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${no(n.size)}`]]}})((({ownerState:e})=>ct({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},qs(e)))),As=$l("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${no(n.size)}`]]}})((({ownerState:e})=>ct({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},qs(e)))),zs=x.forwardRef((function(e,t){const n=x.useContext(Ts),r=x.useContext(Ps),o=Ul({props:qi(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,y=ut(o,Ms),S=ct({},o,{color:a,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return ct({},a,da({root:["root",i,`${i}${no(t)}`,`size${no(o)}`,`${i}Size${no(o)}`,`color${no(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${no(o)}`],endIcon:["icon","endIcon",`iconSize${no(o)}`]},Os,a))})(S),E=g&&qr.jsx(Ns,{className:w.startIcon,ownerState:S,children:g}),k=f&&qr.jsx(As,{className:w.endIcon,ownerState:S,children:f}),C=r||"";return qr.jsxs(Ds,ct({ownerState:S,className:pi(n.className,w.root,s,C),component:l,disabled:c,focusRipple:!d,focusVisibleClassName:pi(w.focusVisible,p),ref:t,type:v},y,{classes:w,children:[E,i,k]}))}));var js={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 Fs={green:"#00873D",blue:"#3F8AB3",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey45:"#737373",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey0:"#000000"},$s={mode:"light",palette:{primary:{main:Fs.grey25,contrastText:Fs.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Fs.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:Fs.grey100,dark:Fs.grey0},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:Fs.grey100,default:Fs.grey100,lightest:Fs.grey100,lighter:Fs.grey98,darker:Fs.grey95,darkest:Fs.grey90},custom:{focusBorder:Fs.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:Fs.grey45,disabledContrastText:Fs.grey100},selected:{main:Fs.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:Fs.grey100,selectedContrastText:Fs.grey100,mainContrastText:Fs.grey100,alternativeContrastText:Fs.grey25,excludedContrastText:Fs.grey25,selectedExcludedContrastText:Fs.grey100,possibleContrastText:Fs.grey0},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},Bs={mode:"dark",palette:{primary:{main:Fs.grey20,contrastText:Fs.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Fs.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:Fs.grey100,dark:Fs.grey0},action:{active:Fs.grey100,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:Fs.grey25,lighter:Fs.grey20,darker:Fs.grey15,darkest:Fs.grey10},custom:{focusBorder:Fs.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:Fs.grey45,disabledContrastText:Fs.grey100},selected:{main:Fs.green,alternative:Fs.grey20,excluded:Fs.grey10,selectedExcluded:Fs.grey10,possible:Fs.grey80,selectedContrastText:Fs.grey100,mainContrastText:Fs.grey100,alternativeContrastText:Fs.grey100,excludedContrastText:Fs.grey100,selectedExcludedContrastText:Fs.grey100,possibleContrastText:Fs.grey0},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},Ws={},Hs=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(Is.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(Is.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(Is.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(Is.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function Us(e){let t=$s,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=Bs));const r=JSON.stringify(t);if(Ws[r])return Ws[r];const o={palette:f(f({type:t.mode},js.palette),t.palette),typography:f({},js.typography),shadows:js.shadows,props:f({},js.props),shape:f({},js.shape)};return Ws[r]=kl(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={}}=e,l=ct({},ut(e,Fa),{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=So(e.spacing);const s=Gr(e.breakpoints||{}),c=l.spacing;l.mixins=ct({gutters:(e={})=>ct({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:ct({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,f=ut(o,$a),p=d||u||"light";return l.palette=ct({text:{hint:"dark"===p?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:p,type:p},f),l}(f(f({},o),{},{overrides:Hs(o)}))),Ws[r].name=n,Ws[r]}di.configure((e=>"njs-".concat("1ecc","-").concat(e.replace("Mui",""))));var Vs=S.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{}});const Gs={active:!0,select:!0,passive:!0,edit:!1};function Ks(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(Gs).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=Gs[e],n[e]=!Gs[e])})),e.constraints=n,e.interactions=t}var Zs=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=[],r={},o={get:e=>t[e],set:(n,o)=>{if(void 0===n||"object"==typeof n)throw new Error("Invalid key: ".concat(JSON.stringify(n)));return t[n]=o,r[n]=e({type:"SET",value:o}),o},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));t[e]=null},dispatch:e=>{n.forEach((n=>n(e?{}:t)))},destroy:()=>{Object.keys(r).forEach((e=>{r[e]&&r[e]()}))}};return[()=>{const[,e]=x.useState(t);return x.useEffect((()=>(n.push(e),()=>{const t=n.indexOf(e);n.splice(t,1)})),[e]),[o]},o]};const Js=x.forwardRef(((e,t)=>{let{initialContext:n,renderCallback:r,modelStore:o,selectionStore:i}=e;const[a,l]=x.useState(n),[s,c]=x.useState(),{theme:u}=x.useMemo((()=>({theme:Us(s)})),[s]),[d,f]=x.useState([]);return x.useEffect((()=>{r&&r()}),[]),x.useImperativeHandle(t,(()=>({setComps(e){f([...e])},setMuiThemeName:c,setContext:e=>l((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t))})),[]),a&&(a.modelStore=o,a.selectionStore=i),S.createElement(Nr,{injectFirst:!0},S.createElement(Wl,{theme:u},S.createElement(Vs.Provider,{value:a},d)))}));function Xs(e){let t,{app:n,context:r}=e,o=!1;const i=new Promise((e=>{t=e})),a=S.createRef(),l=document.createElement("div");l.style.display="none",l.setAttribute("data-nebulajs-version","5.17.0"),l.setAttribute("data-app-id",n.id),document.body.appendChild(l),r&&Ks(r);const s=function(e){const[t,n]=Zs({}),[r,o]=Zs({}),[i,a]=Zs({}),[l,s]=Zs({}),[c,u]=Zs({}),[,d]=Zs({}),f=e=>{let{type:t,value:r}=e;const i=d.get(r.id);d.set(r.id,{});const l=()=>{o.clear(r.id),u.set(r.id,{}),u.dispatch(!0)},c=()=>{r.removeListener("closed",c),r.removeListener("changed",l),n.clear(r.id),o.clear(r.id),a.clear(r.id),s.clear(r.id),u.clear(r.id),d.clear(r.id)};return"SET"===t&&(i||(r.on("changed",l),r.once("closed",c))),c},[p,h]=Zs({},f);return{subscribe:e=>{const t=f({type:"SET",value:e});return()=>{t(),h.clear(e.id)}},destroy:()=>{h.destroy()},useModelStore:p,modelStore:h,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:r,rpcRequestStore:o,useRpcRequestModelStore:l,rpcRequestModelStore:s,useRpcRequestSessionModelStore:i,rpcRequestSessionModelStore:a,modelChangedStore:u,appId:e}}(n.id),c=function(e){const[t,n]=Zs({}),[r,o]=Zs({}),[i,a]=Zs({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:i,modalObjectStore:a,appId:e}}(n.id),u=it.createRoot(l);u.render(S.createElement(Js,{ref:a,initialContext:r,renderCallback:t,modelStore:s,selectionStore:c}));const d={},f=[],p=[];return[{toggleFocusOfCells(e){Object.keys(d).forEach((t=>{var n;null===(n=d[t].current)||void 0===n||n.toggleFocus(t===e)}))},cells:d,addCell(e,t){d[e]=t},removeCell(e){delete d[e]},add:(e,t)=>(async()=>{await i,p.push(e),f.push(t),a.current.setComps(p)})(),remove(e){o||(async t=>{await i;const n=p.indexOf(e);var r;-1!==n&&(null===(r=f[n])||void 0===r||r.call(f),p.splice(n,1),f.splice(n,1));null==a||null===(t=a.current)||void 0===t||t.setComps(p)})()},setMuiThemeName(e){(async()=>{await i,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await i,e&&Ks(e),a.current.setContext(e)})()},destroy(){o=!0,f.forEach((e=>{e&&e()})),s.destroy(),u.unmount(),document.body.removeChild(l)}},s,c,a,i]}function Ys(e){return gi("MuiSvgIcon",e)}vi("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Qs=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ec=$l("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${no(n.color)}`],t[`fontSize${no(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,c,u,d,f,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(f=(e.vars||e).palette)||null==(f=f[t.color])?void 0:f.main)?d:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),tc=x.forwardRef((function(e,t){const n=Ul({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,f=ut(n,Qs),p=x.isValidElement(r)&&"svg"===r.type,h=ct({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:p}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return da({root:["root","inherit"!==t&&`color${no(t)}`,`fontSize${no(n)}`]},Ys,r)})(h);return qr.jsxs(ec,ct({as:a,className:pi(g.root,o),focusable:"false",color:s,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,f,p&&r.props,{ownerState:h,children:[p?r.props.children:r,u?qr.jsx("title",{children:u}):null]}))}));function nc(e,t){function n(n,r){return qr.jsx(tc,ct({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=tc.muiName,x.memo(x.forwardRef(n))}tc.muiName="SvgIcon";const rc={configure:e=>{di.configure(e)}};var oc=Object.freeze({__proto__:null,capitalize:no,createChainedFunction:zi,createSvgIcon:nc,debounce:ji,deprecatedPropType:function(e,t){return()=>null},isMuiElement:Fi,ownerDocument:$i,ownerWindow:Bi,requirePropFactory:function(e,t){return()=>null},setRef:Wi,unstable_ClassNameGenerator:rc,unstable_useEnhancedEffect:Ni,unstable_useId:Vi,unsupportedProp:function(e,t,n,r,o){return null},useControlled:Gi,useEventCallback:Ki,useForkRef:Zi,useIsFocusVisible:sa});const ic=e=>e.scrollTop;function ac(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 lc(e){return gi("MuiPaper",e)}vi("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 sc=["className","component","elevation","square","variant"],cc=$l("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return ct({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&ct({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Ja.alpha("#fff",Hl(t.elevation))}, ${Ja.alpha("#fff",Hl(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),uc=x.forwardRef((function(e,t){const n=Ul({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=ut(n,sc),c=ct({},n,{component:o,elevation:i,square:a,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return da({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},lc,o)})(c);return qr.jsx(cc,ct({as:o,ownerState:c,className:pi(u.root,r),ref:t},s))}));function dc(e){return gi("MuiIconButton",e)}const fc=vi("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),pc=["edge","children","className","color","disabled","disableFocusRipple","size"],hc=$l(Ls,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${no(n.color)}`],n.edge&&t[`edge${no(n.edge)}`],t[`size${no(n.size)}`]]}})((({theme:e,ownerState:t})=>ct({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})`:Ja.alpha(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 ct({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&ct({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":ct({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ja.alpha(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)},{[`&.${fc.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),mc=x.forwardRef((function(e,t){const n=Ul({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=ut(n,pc),d=ct({},n,{edge:r,color:a,disabled:l,disableFocusRipple:s,size:c}),f=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return da({root:["root",n&&"disabled","default"!==r&&`color${no(r)}`,o&&`edge${no(o)}`,`size${no(i)}`]},dc,t)})(d);return qr.jsx(hc,ct({className:pi(f.root,i),centerRipple:!0,focusRipple:!s,disabled:l,ref:t},u,{ownerState:d,children:o}))}));function gc(e){return gi("MuiTypography",e)}vi("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const vc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],bc=$l("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${no(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>ct({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),yc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Sc=x.forwardRef((function(e,t){const n=Ul({props:e,name:"MuiTypography"}),r=(e=>xc[e]||e)(n.color),o=si(ct({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:f=yc}=o,p=ut(o,vc),h=ct({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:f}),m=l||(u?"p":f[d]||yc[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return da({root:["root",i,"inherit"!==e.align&&`align${no(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},gc,a)})(h);return qr.jsx(bc,ct({as:m,ref:t,ownerState:h,className:pi(g.root,a)},p))}));var wc,Ec={};function kc(){if(wc)return Ec;wc=1,Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(y()),t=Ml;function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}return Ec.default=function(n=null){const r=e.useContext(t.ThemeContext);return r&&(o=r,0!==Object.keys(o).length)?r:n;var o},Ec}var Cc=r(kc()),_c="top",Rc="bottom",Lc="right",Oc="left",Ic="auto",Tc=[_c,Rc,Lc,Oc],Pc="start",Mc="end",qc="clippingParents",Dc="viewport",Nc="popper",Ac="reference",zc=Tc.reduce((function(e,t){return e.concat([t+"-"+Pc,t+"-"+Mc])}),[]),jc=[].concat(Tc,[Ic]).reduce((function(e,t){return e.concat([t,t+"-"+Pc,t+"-"+Mc])}),[]),Fc=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function $c(e){return e?(e.nodeName||"").toLowerCase():null}function Bc(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wc(e){return e instanceof Bc(e).Element||e instanceof Element}function Hc(e){return e instanceof Bc(e).HTMLElement||e instanceof HTMLElement}function Uc(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Bc(e).ShadowRoot||e instanceof ShadowRoot)}var Vc={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];Hc(o)&&$c(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}),{});Hc(r)&&$c(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Gc(e){return e.split("-")[0]}var Kc=Math.max,Zc=Math.min,Jc=Math.round;function Xc(){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 Yc(){return!/^((?!chrome|android).)*safari/i.test(Xc())}function Qc(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Hc(e)&&(o=e.offsetWidth>0&&Jc(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Jc(r.height)/e.offsetHeight||1);var a=(Wc(e)?Bc(e):window).visualViewport,l=!Yc()&&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 eu(e){var t=Qc(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 tu(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Uc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function nu(e){return Bc(e).getComputedStyle(e)}function ru(e){return["table","td","th"].indexOf($c(e))>=0}function ou(e){return((Wc(e)?e.ownerDocument:e.document)||window.document).documentElement}function iu(e){return"html"===$c(e)?e:e.assignedSlot||e.parentNode||(Uc(e)?e.host:null)||ou(e)}function au(e){return Hc(e)&&"fixed"!==nu(e).position?e.offsetParent:null}function lu(e){for(var t=Bc(e),n=au(e);n&&ru(n)&&"static"===nu(n).position;)n=au(n);return n&&("html"===$c(n)||"body"===$c(n)&&"static"===nu(n).position)?t:n||function(e){var t=/firefox/i.test(Xc());if(/Trident/i.test(Xc())&&Hc(e)&&"fixed"===nu(e).position)return null;var n=iu(e);for(Uc(n)&&(n=n.host);Hc(n)&&["html","body"].indexOf($c(n))<0;){var r=nu(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 su(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function cu(e,t,n){return Kc(e,Zc(t,n))}function uu(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function du(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var fu={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=Gc(n.placement),s=su(l),c=[Oc,Lc].indexOf(l)>=0?"height":"width";if(i&&a){var u=function(e,t){return uu("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:du(e,Tc))}(o.padding,n),d=eu(i),f="y"===s?_c:Oc,p="y"===s?Rc:Lc,h=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],m=a[s]-n.rects.reference[s],g=lu(i),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,y=u[f],x=v-d[c]-u[p],S=v/2-d[c]/2+b,w=cu(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)))&&tu(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pu(e){return e.split("-")[1]}var hu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mu(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,f=a.x,p=void 0===f?0:f,h=a.y,m=void 0===h?0:h,g="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=Oc,x=_c,S=window;if(c){var w=lu(n),E="clientHeight",k="clientWidth";if(w===Bc(n)&&"static"!==nu(w=ou(n)).position&&"absolute"===l&&(E="scrollHeight",k="scrollWidth"),o===_c||(o===Oc||o===Lc)&&i===Mc)x=Rc,m-=(d&&w===S&&S.visualViewport?S.visualViewport.height:w[E])-r.height,m*=s?1:-1;if(o===Oc||(o===_c||o===Rc)&&i===Mc)y=Lc,p-=(d&&w===S&&S.visualViewport?S.visualViewport.width:w[k])-r.width,p*=s?1:-1}var C,_=Object.assign({position:l},c&&hu),R=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Jc(n*o)/o||0,y:Jc(r*o)/o||0}}({x:p,y:m},Bc(n)):{x:p,y:m};return p=R.x,m=R.y,s?Object.assign({},_,((C={})[x]=b?"0":"",C[y]=v?"0":"",C.transform=(S.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",C)):Object.assign({},_,((t={})[x]=b?m+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var gu={passive:!0};var vu={left:"right",right:"left",bottom:"top",top:"bottom"};function bu(e){return e.replace(/left|right|bottom|top/g,(function(e){return vu[e]}))}var yu={start:"end",end:"start"};function xu(e){return e.replace(/start|end/g,(function(e){return yu[e]}))}function Su(e){var t=Bc(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function wu(e){return Qc(ou(e)).left+Su(e).scrollLeft}function Eu(e){var t=nu(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ku(e){return["html","body","#document"].indexOf($c(e))>=0?e.ownerDocument.body:Hc(e)&&Eu(e)?e:ku(iu(e))}function Cu(e,t){var n;void 0===t&&(t=[]);var r=ku(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Bc(r),a=o?[i].concat(i.visualViewport||[],Eu(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Cu(iu(a)))}function _u(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ru(e,t,n){return t===Dc?_u(function(e,t){var n=Bc(e),r=ou(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var c=Yc();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+wu(e),y:s}}(e,n)):Wc(t)?function(e,t){var n=Qc(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):_u(function(e){var t,n=ou(e),r=Su(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Kc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Kc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+wu(e),s=-r.scrollTop;return"rtl"===nu(o||n).direction&&(l+=Kc(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(ou(e)))}function Lu(e,t,n,r){var o="clippingParents"===t?function(e){var t=Cu(iu(e)),n=["absolute","fixed"].indexOf(nu(e).position)>=0&&Hc(e)?lu(e):e;return Wc(n)?t.filter((function(e){return Wc(e)&&tu(e,n)&&"body"!==$c(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce((function(t,n){var o=Ru(e,n,r);return t.top=Kc(o.top,t.top),t.right=Zc(o.right,t.right),t.bottom=Zc(o.bottom,t.bottom),t.left=Kc(o.left,t.left),t}),Ru(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 Ou(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Gc(o):null,a=o?pu(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case _c:t={x:l,y:n.y-r.height};break;case Rc:t={x:l,y:n.y+n.height};break;case Lc:t={x:n.x+n.width,y:s};break;case Oc:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=i?su(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Pc:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Mc:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Iu(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?qc:l,c=n.rootBoundary,u=void 0===c?Dc:c,d=n.elementContext,f=void 0===d?Nc:d,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,v=uu("number"!=typeof g?g:du(g,Tc)),b=f===Nc?Ac:Nc,y=e.rects.popper,x=e.elements[h?b:f],S=Lu(Wc(x)?x:x.contextElement||ou(e.elements.popper),s,u,a),w=Qc(e.elements.reference),E=Ou({reference:w,element:y,placement:o}),k=_u(Object.assign({},y,E)),C=f===Nc?k:w,_={top:S.top-C.top+v.top,bottom:C.bottom-S.bottom+v.bottom,left:S.left-C.left+v.left,right:C.right-S.right+v.right},R=e.modifiersData.offset;if(f===Nc&&R){var L=R[o];Object.keys(_).forEach((function(e){var t=[Lc,Rc].indexOf(e)>=0?1:-1,n=[_c,Rc].indexOf(e)>=0?"y":"x";_[e]+=L[n]*t}))}return _}function Tu(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?jc:s,u=pu(r),d=u?l?zc:zc.filter((function(e){return pu(e)===u})):Tc,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=Iu(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Gc(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}var Pu={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,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=Gc(g),b=s||(v===g||!h?[bu(g)]:function(e){if(Gc(e)===Ic)return[];var t=bu(e);return[xu(e),t,xu(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(Gc(n)===Ic?Tu(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,k=y[0],C=0;C<y.length;C++){var _=y[C],R=Gc(_),L=pu(_)===Pc,O=[_c,Rc].indexOf(R)>=0,I=O?"width":"height",T=Iu(t,{placement:_,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),P=O?L?Lc:Oc:L?Rc:_c;x[I]>S[I]&&(P=bu(P));var M=bu(P),q=[];if(i&&q.push(T[R]<=0),l&&q.push(T[P]<=0,T[M]<=0),q.every((function(e){return e}))){k=_,E=!1;break}w.set(_,q)}if(E)for(var D=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 k=t,"break"},N=h?3:1;N>0;N--){if("break"===D(N))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Mu(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 qu(e){return[_c,Lc,Rc,Oc].some((function(t){return e[t]>=0}))}var Du={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=jc.reduce((function(e,n){return e[n]=function(e,t,n){var r=Gc(e),o=[Oc,_c].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,[Oc,Lc].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 Nu={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,f=n.tether,p=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,g=Iu(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=Gc(t.placement),b=pu(t.placement),y=!b,x=su(v),S="x"===x?"y":"x",w=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,_="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(w){if(i){var O,I="y"===x?_c:Oc,T="y"===x?Rc:Lc,P="y"===x?"height":"width",M=w[x],q=M+g[I],D=M-g[T],N=p?-k[P]/2:0,A=b===Pc?E[P]:k[P],z=b===Pc?-k[P]:-E[P],j=t.elements.arrow,F=p&&j?eu(j):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=$[I],W=$[T],H=cu(0,E[P],F[P]),U=y?E[P]/2-N-H-B-_.mainAxis:A-H-B-_.mainAxis,V=y?-E[P]/2+N+H+W+_.mainAxis:z+H+W+_.mainAxis,G=t.elements.arrow&&lu(t.elements.arrow),K=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,Z=null!=(O=null==R?void 0:R[x])?O:0,J=M+V-Z,X=cu(p?Zc(q,M+U-Z-K):q,M,p?Kc(D,J):D);w[x]=X,L[x]=X-M}if(l){var Y,Q="x"===x?_c:Oc,ee="x"===x?Rc:Lc,te=w[S],ne="y"===S?"height":"width",re=te+g[Q],oe=te-g[ee],ie=-1!==[_c,Oc].indexOf(v),ae=null!=(Y=null==R?void 0:R[S])?Y:0,le=ie?re:te-E[ne]-k[ne]-ae+_.altAxis,se=ie?te+E[ne]+k[ne]-ae-_.altAxis:oe,ce=p&&ie?function(e,t,n){var r=cu(e,t,n);return r>n?n:r}(le,te,se):cu(p?le:re,te,p?se:oe);w[S]=ce,L[S]=ce-te}t.modifiersData[r]=L}},requiresIfExists:["offset"]};function Au(e,t,n){void 0===n&&(n=!1);var r=Hc(t),o=Hc(t)&&function(e){var t=e.getBoundingClientRect(),n=Jc(t.width)/e.offsetWidth||1,r=Jc(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=ou(t),a=Qc(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==$c(t)||Eu(i))&&(l=function(e){return e!==Bc(e)&&Hc(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Su(e);var t}(t)),Hc(t)?((s=Qc(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=wu(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function zu(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 ju={placement:"bottom",modifiers:[],strategy:"absolute"};function Fu(){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 $u(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?ju:o;return function(e,t,n){void 0===n&&(n=i);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},ju,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:Wc(e)?Cu(e):e.contextElement?Cu(e.contextElement):[],popper:Cu(t)};var a,c,f=function(e){var t=zu(e);return Fc.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=f.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(Fu(t,n)){l.rects={reference:Au(t,lu(n),"fixed"===l.options.strategy),popper:eu(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(!Fu(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 Bu=$u({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=Bc(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,gu)})),l&&s.addEventListener("resize",n.update,gu),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,gu)})),l&&s.removeEventListener("resize",n.update,gu)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ou({reference:t.rects.reference,element:t.rects.popper,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:Gc(t.placement),variation:pu(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,mu(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,mu(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:{}},Vc,Du,Pu,Nu,fu,{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=Iu(t,{elementContext:"reference"}),l=Iu(t,{altBoundary:!0}),s=Mu(a,r),c=Mu(l,o,i),u=qu(s),d=qu(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const Wu=x.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=x.useState(null),l=Zi(x.isValidElement(n)?xa(n):null,t);if(Ni((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Ni((()=>{if(i&&!o)return Wi(t,i),()=>{Wi(t,null)}}),[t,i,o]),o){if(x.isValidElement(n)){const e={ref:l};return x.cloneElement(n,e)}return qr.jsx(x.Fragment,{children:n})}return qr.jsx(x.Fragment,{children:i?Kl.createPortal(n,i):i})}));function Hu(e){return gi("MuiPopper",e)}vi("MuiPopper",["root"]);const Uu=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Vu=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Gu(e){return"function"==typeof e?e():e}const Ku={},Zu=x.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:f={},slots:p={},TransitionProps:h}=e,m=ut(e,Uu),g=x.useRef(null),v=Zi(g,t),b=x.useRef(null),y=Zi(b,d),S=x.useRef(y);Ni((()=>{S.current=y}),[y]),x.useImperativeHandle(d,(()=>b.current),[]);const w=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(c,i),[E,k]=x.useState(w),[C,_]=x.useState(Gu(r));x.useEffect((()=>{b.current&&b.current.forceUpdate()})),x.useEffect((()=>{r&&_(Gu(r))}),[r]),Ni((()=>{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})=>{k(e.placement)}}];null!=l&&(e=e.concat(l)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=Bu(C,g.current,ct({placement:w},u,{modifiers:e}));return S.current(t),()=>{t.destroy(),S.current(null)}}),[C,a,l,s,u,w]);const R={placement:E};null!==h&&(R.TransitionProps=h);const L=(e=>{const{classes:t}=e;return da({root:["root"]},Hu,t)})(e),O=null!=(n=p.root)?n:"div",I=ya({elementType:O,externalSlotProps:f.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:L.root});return qr.jsx(O,ct({},I,{children:"function"==typeof o?o(R):o}))})),Ju=x.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=Ku,popperRef:f,style:p,transition:h=!1,slotProps:m={},slots:g={}}=e,v=ut(e,Vu),[b,y]=x.useState(!0);if(!l&&!c&&(!h||b))return null;let S;if(o)S=o;else if(n){const e=Gu(n);S=e&&void 0!==e.nodeType?$i(e).body:$i(null).body}const w=c||!l||h&&!b?void 0:"none",E=h?{in:c,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return qr.jsx(Wu,{disablePortal:a,container:S,children:qr.jsx(Zu,ct({anchorEl:n,direction:i,disablePortal:a,modifiers:s,ref:t,open:h?!b:c,placement:u,popperOptions:d,popperRef:f,slotProps:m,slots:g},v,{style:ct({position:"fixed",top:0,left:0,display:w},p),TransitionProps:E,children:r}))})})),Xu=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Yu=$l(Ju,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Qu=x.forwardRef((function(e,t){var n;const r=Cc(),o=Ul({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:s,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:m,popperRef:g,transition:v,slots:b,slotProps:y}=o,x=ut(o,Xu),S=null!=(n=null==b?void 0:b.root)?n:null==l?void 0:l.Root,w=ct({anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:m,popperRef:g,transition:v},x);return qr.jsx(Yu,ct({as:a,direction:null==r?void 0:r.direction,slots:{root:S},slotProps:null!=y?y:s},w,{ref:t}))})),ed=["onChange","maxRows","minRows","style","value"];function td(e){return parseInt(e,10)||0}const nd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function rd(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const od=x.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=ut(e,ed),{current:s}=x.useRef(null!=a),c=x.useRef(null),u=Zi(t,c),d=x.useRef(null),f=x.useRef(null),p=x.useCallback((()=>{const t=c.current,n=f.current;if(!t||!n)return;const i=Bi(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,l=td(i.paddingBottom)+td(i.paddingTop),s=td(i.borderBottomWidth)+td(i.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let p=u;o&&(p=Math.max(Number(o)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===a?l+s:0),overflowing:Math.abs(p-u)<=1}}),[r,o,e.placeholder]),h=Ki((()=>{const e=c.current,t=p();if(!e||!t||rd(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n})),m=x.useCallback((()=>{const e=c.current,t=p();if(!e||!t||rd(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""}),[p]),g=x.useRef(-1);Ni((()=>{const e=ji(m),t=null==c?void 0:c.current;if(!t)return;const n=Bi(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver((()=>{h()&&(r.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame((()=>{r.observe(t)})))})),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener("resize",e),r&&r.disconnect()}}),[p,m,h]),Ni((()=>{m()}));return qr.jsxs(x.Fragment,{children:[qr.jsx("textarea",ct({value:a,onChange:e=>{s||m(),n&&n(e)},ref:u,rows:o,style:i},l)),qr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:ct({},nd,i,{paddingTop:0,paddingBottom:0})})]})}));function id({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}const ad=x.createContext(void 0);function ld(){return x.useContext(ad)}function sd(e){return qr.jsx(ii,ct({},e,{defaultTheme:Cl,themeId:st}))}function cd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function ud(e){return gi("MuiInputBase",e)}const dd=vi("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),fd=["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"],pd=(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${no(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},hd=(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]},md=$l("div",{name:"MuiInputBase",slot:"Root",overridesResolver:pd})((({theme:e,ownerState:t})=>ct({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${dd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&ct({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),gd=$l("input",{name:"MuiInputBase",slot:"Input",overridesResolver:hd})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=ct({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return ct({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${dd.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},[`&.${dd.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"})})),vd=qr.jsx(sd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),bd=x.forwardRef((function(e,t){var n;const r=Ul({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:f,endAdornment:p,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:S,multiline:w=!1,name:E,onBlur:k,onChange:C,onClick:_,onFocus:R,onKeyDown:L,onKeyUp:O,placeholder:I,readOnly:T,renderSuffix:P,rows:M,slotProps:q={},slots:D={},startAdornment:N,type:A="text",value:z}=r,j=ut(r,fd),F=null!=v.value?v.value:z,{current:$}=x.useRef(null!=F),B=x.useRef(),W=x.useCallback((e=>{}),[]),H=Zi(B,b,v.ref,W),[U,V]=x.useState(!1),G=ld(),K=id({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:U,x.useEffect((()=>{!G&&d&&U&&(V(!1),k&&k())}),[G,d,U,k]);const Z=G&&G.onFilled,J=G&&G.onEmpty,X=x.useCallback((e=>{!function(e,t=!1){return e&&(cd(e.value)&&""!==e.value||t&&cd(e.defaultValue)&&""!==e.defaultValue)}(e)?J&&J():Z&&Z()}),[Z,J]);Ni((()=>{$&&X({value:F})}),[F,X,$]);x.useEffect((()=>{X(B.current)}),[]);let Y=g,Q=v;w&&"input"===Y&&(Q=ct(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:y,minRows:S},Q),Y=od);x.useEffect((()=>{G&&G.setAdornedStart(Boolean(N))}),[G,N]);const ee=ct({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:p,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:w,size:K.size,startAdornment:N,type:A}),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:f,startAdornment:p,type:h}=e;return da({root:["root",`color${no(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",f&&"medium"!==f&&`size${no(f)}`,u&&"multiline",p&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===f&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},ud,t)})(ee),ne=D.root||s.Root||md,re=q.root||c.root||{},oe=D.input||s.Input||gd;return Q=ct({},Q,null!=(n=q.input)?n:c.input),qr.jsxs(x.Fragment,{children:[!f&&vd,qr.jsxs(ne,ct({},re,!fa(ne)&&{ownerState:ct({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),_&&_(e)}},j,{className:pi(te.root,re.className,l,T&&"MuiInputBase-readOnly"),children:[N,qr.jsx(ad.Provider,{value:null,children:qr.jsx(oe,ct({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:E,placeholder:I,readOnly:T,required:K.required,rows:M,value:F,onKeyDown:L,onKeyUp:O,type:A},Q,!fa(oe)&&{as:Y,ownerState:ct({},ee,Q.ownerState)},{ref:H,className:pi(te.input,Q.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{k&&k(e),v.onBlur&&v.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(at(1));X({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))}}))}),p,P?P(ct({},K,{startAdornment:N})):null]}))]})}));function yd(e){return gi("MuiOutlinedInput",e)}const xd=ct({},dd,vi("MuiOutlinedInput",["root","notchedOutline","input"])),Sd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],wd={entering:{opacity:1},entered:{opacity:1}},Ed=x.forwardRef((function(e,t){const n=_l(),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:f,onExited:p,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=rs}=e,b=ut(e,Sd),y=x.useRef(null),S=Zi(y,xa(a),t),w=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=w(d),k=w(((e,t)=>{ic(e);const r=ac({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=w(u),_=w(h),R=w((e=>{const t=ac({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),L=w(p);return qr.jsx(v,ct({appear:i,in:s,nodeRef:y,onEnter:k,onEntered:C,onEntering:E,onExit:R,onExited:L,onExiting:_,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>x.cloneElement(a,ct({style:ct({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},wd[e],m,a.props.style),ref:S},t))}))}));function kd(e){return gi("MuiBackdrop",e)}vi("MuiBackdrop",["root","invisible"]);const Cd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],_d=$l("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>ct({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),Rd=x.forwardRef((function(e,t){var n,r,o;const i=Ul({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:c={},componentsProps:u={},invisible:d=!1,open:f,slotProps:p={},slots:h={},TransitionComponent:m=Ed,transitionDuration:g}=i,v=ut(i,Cd),b=ct({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return da({root:["root",n&&"invisible"]},kd,t)})(b),x=null!=(n=p.root)?n:u.root;return qr.jsx(m,ct({in:f,timeout:g},v,{children:qr.jsx(_d,ct({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:pi(y.root,l,null==x?void 0:x.className),ownerState:ct({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));function Ld(e){return gi("MuiBadge",e)}const Od=vi("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"]),Id=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Td=$l("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Pd=$l("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${no(n.anchorOrigin.vertical)}${no(n.anchorOrigin.horizontal)}${no(n.overlap)}`],"default"!==n.color&&t[`color${no(n.color)}`],n.invisible&&t.invisible]}})((({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n,r;return(null!=(n=e.vars)?n:e).palette[t].main&&(null!=(r=e.vars)?r:e).palette[t].contrastText})).map((t=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Od.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Od.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Od.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Od.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Od.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Od.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Od.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Od.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}})),Md=x.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Ul({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:u,component:d,components:f={},componentsProps:p={},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,k=ut(s,Id),{badgeContent:C,invisible:_,max:R,displayValue:L}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=ua({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}),O=ua({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:y}),I=_||null==C&&"dot"!==E,{color:T=g,overlap:P=m,anchorOrigin:M=c,variant:q=E}=I?O:s,D="dot"!==q?L:void 0,N=ct({},s,{badgeContent:C,invisible:I,max:R,displayValue:D,showZero:w,anchorOrigin:M,color:T,overlap:P,variant:q}),A=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e;return da({root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${no(n.vertical)}${no(n.horizontal)}`,`anchorOrigin${no(n.vertical)}${no(n.horizontal)}${no(o)}`,`overlap${no(o)}`,"default"!==t&&`color${no(t)}`]},Ld,a)})(N),z=null!=(n=null!=(r=null==x?void 0:x.root)?r:f.Root)?n:Td,j=null!=(o=null!=(i=null==x?void 0:x.badge)?i:f.Badge)?o:Pd,F=null!=(a=null==S?void 0:S.root)?a:p.root,$=null!=(l=null==S?void 0:S.badge)?l:p.badge,B=ya({elementType:z,externalSlotProps:F,externalForwardedProps:k,additionalProps:{ref:t,as:d},ownerState:N,className:pi(null==F?void 0:F.className,A.root,u)}),W=ya({elementType:j,externalSlotProps:$,ownerState:N,className:pi(A.badge,null==$?void 0:$.className)});return qr.jsxs(z,ct({},B,{children:[h,qr.jsx(j,ct({},W,{children:D}))]}))})),qd=vi("MuiBox",["root"]),Dd=kl(),Nd=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=zr("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Xo),a=x.forwardRef((function(e,a){const l=oi(n),s=si(e),{className:c,component:u="div"}=s,d=ut(s,hi);return qr.jsx(i,ct({as:u,ref:a,className:pi(c,o?o(r):r),theme:t&&l[t]||l},d))}));return a}({themeId:st,defaultTheme:Dd,defaultClassName:qd.root,generateClassName:di.generate});function Ad(e){return gi("PrivateSwitchBase",e)}vi("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const zd=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],jd=$l(Ls)((({ownerState:e})=>ct({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Fd=$l("input",{shouldForwardProp:Fl})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),$d=x.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:f,inputRef:p,name:h,onBlur:m,onChange:g,onFocus:v,readOnly:b,required:y=!1,tabIndex:x,type:S,value:w}=e,E=ut(e,zd),[k,C]=Gi({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),_=ld();let R=l;_&&void 0===R&&(R=_.disabled);const L="checkbox"===S||"radio"===S,O=ct({},e,{checked:k,disabled:R,disableFocusRipple:s,edge:c}),I=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return da({root:["root",n&&"checked",r&&"disabled",o&&`edge${no(o)}`],input:["input"]},Ad,t)})(O);return qr.jsxs(jd,ct({component:"span",className:pi(I.root,i),centerRipple:!0,focusRipple:!s,disabled:R,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),_&&_.onFocus&&_.onFocus(e)},onBlur:e=>{m&&m(e),_&&_.onBlur&&_.onBlur(e)},ownerState:O,ref:t},E,{children:[qr.jsx(Fd,ct({autoFocus:n,checked:r,defaultChecked:a,className:I.input,disabled:R,id:L?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;C(t),g&&g(e,t)},readOnly:b,ref:p,required:y,ownerState:O,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},f)),k?o:u]}))}));var Bd=nc(qr.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"),Wd=nc(qr.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"),Hd=nc(qr.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 Ud(e){return gi("MuiCheckbox",e)}const Vd=vi("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Gd=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Kd=$l($d,{shouldForwardProp:e=>Fl(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${no(n.size)}`],"default"!==n.color&&t[`color${no(n.color)}`]]}})((({theme:e,ownerState:t})=>ct({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})`:Ja.alpha("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Vd.checked}, &.${Vd.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Vd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Zd=qr.jsx(Wd,{}),Jd=qr.jsx(Bd,{}),Xd=qr.jsx(Hd,{}),Yd=x.forwardRef((function(e,t){var n,r;const o=Ul({props:e,name:"MuiCheckbox"}),{checkedIcon:i=Zd,color:a="primary",icon:l=Jd,indeterminate:s=!1,indeterminateIcon:c=Xd,inputProps:u,size:d="medium",className:f}=o,p=ut(o,Gd),h=s?c:l,m=s?c:i,g=ct({},o,{color:a,indeterminate:s,size:d}),v=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e;return ct({},t,da({root:["root",n&&"indeterminate",`color${no(r)}`,`size${no(o)}`]},Ud,t))})(g);return qr.jsx(Kd,ct({type:"checkbox",inputProps:ct({"data-indeterminate":s},u),icon:x.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:x.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:pi(v.root,f)},p,{classes:v}))}));function Qd(e){return gi("MuiCircularProgress",e)}vi("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ef=["className","color","disableShrink","size","style","thickness","value","variant"];let tf,nf,rf,of,af=e=>e;const lf=44,sf=dr(tf||(tf=af`
97
97
  0% {
98
98
  transform: rotate(0deg);
99
99
  }
@@ -120,9 +120,7 @@
120
120
  animation: ${0} 1.4s linear infinite;
121
121
  `),sf))),df=$l("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),ff=$l("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${no(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>ct({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&&ur(of||(of=af`
122
122
  animation: ${0} 1.4s ease-in-out infinite;
123
- `),cf))),pf=x.forwardRef((function(e,t){const n=Hl({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=ut(n,ef),f=ct({},n,{color:o,disableShrink:i,size:a,thickness:s,value:c,variant:u}),p=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return da({root:["root",n,`color${no(r)}`],svg:["svg"],circle:["circle",`circle${no(n)}`,o&&"circleDisableShrink"]},Yd,t)})(f),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((lf-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 Nr.jsx(uf,ct({className:pi(p.root,r),style:ct({width:a,height:a},m,l),ownerState:f,ref:t,role:"progressbar"},g,d,{children:Nr.jsx(df,{className:p.svg,ownerState:f,viewBox:"22 22 44 44",children:Nr.jsx(ff,{className:p.circle,style:h,ownerState:f,cx:lf,cy:lf,r:(lf-s)/2,fill:"none",strokeWidth:s})})}))}));function hf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function mf(e){return parseInt(Bi(e).getComputedStyle(e).paddingRight,10)||0}function gf(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&&hf(e,o)}))}function vf(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function bf(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=$i(e);return t.body===e?Bi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=ca($i(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${mf(r)+e}px`;const t=$i(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${mf(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=$i(r).body;else{const t=r.parentElement,n=Bi(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const yf=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function xf(e){const t=[],n=[];return Array.from(e.querySelectorAll(yf)).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 Sf(){return!0}function wf(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=xf,isEnabled:a=Sf,open:l}=e,s=x.useRef(!1),c=x.useRef(null),u=x.useRef(null),d=x.useRef(null),f=x.useRef(null),p=x.useRef(!1),h=x.useRef(null),m=Zi(xa(t),h),g=x.useRef(null);x.useEffect((()=>{l&&h.current&&(p.current=!n)}),[n,l]),x.useEffect((()=>{if(!l||!h.current)return;const e=$i(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),p.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),x.useEffect((()=>{if(!l||!h.current)return;const e=$i(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,u.current&&u.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!p.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=i(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0};return Nr.jsxs(x.Fragment,{children:[Nr.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Nr.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})}const Ef=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&&hf(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);gf(t,e.mount,e.modalRef,r,!0);const o=vf(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=vf(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=bf(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=vf(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&&hf(e.modalRef,t),gf(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&&hf(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function kf(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Ef,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:c,open:u,rootRef:d}=e,f=x.useRef({}),p=x.useRef(null),h=x.useRef(null),m=Zi(h,d),[g,v]=x.useState(!u),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(f.current.modalRef=h.current,f.current.mount=p.current,f.current),w=()=>{o.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},E=Ki((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||$i(p.current).body;o.add(S(),e),h.current&&w()})),k=x.useCallback((()=>o.isTopModal(S())),[o]),C=Ki((e=>{p.current=e,e&&(u&&k()?w():h.current&&hf(h.current,y))})),_=x.useCallback((()=>{o.remove(S(),y)}),[y,o]);x.useEffect((()=>()=>{_()}),[_]),x.useEffect((()=>{u?E():b&&i||_()}),[u,_,b,i,E]);const R=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&k()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},L=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=ga(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=ct({},n,t);return ct({role:"presentation"},r,{onKeyDown:R(r),ref:m})},getBackdropProps:(e={})=>ct({"aria-hidden":!0},e,{onClick:L(e),open:u}),getTransitionProps:()=>({onEnter:zi((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:zi((()=>{v(!0),l&&l(),i&&_()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:C,isTopModal:k,exited:g,hasTransition:b}}function Cf(e){return gi("MuiModal",e)}vi("MuiModal",["root","hidden","backdrop"]);const _f=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Rf=$l("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>ct({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Lf=$l(Rd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Of=x.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Hl({name:"MuiModal",props:e}),{BackdropComponent:c=Lf,BackdropProps:u,className:d,closeAfterTransition:f=!1,children:p,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:k=!1,hideBackdrop:C=!1,keepMounted:_=!1,onBackdropClick:R,open:L,slotProps:O,slots:I}=s,T=ut(s,_f),P=ct({},s,{closeAfterTransition:f,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:E,disableScrollLock:k,hideBackdrop:C,keepMounted:_}),{getRootProps:M,getBackdropProps:N,getTransitionProps:D,portalRef:q,isTopModal:A,exited:z,hasTransition:j}=kf(ct({},P,{rootRef:t})),F=ct({},P,{exited:z}),$=(e=>{const{open:t,exited:n,classes:r}=e;return da({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Cf,r)})(F),B={};if(void 0===p.props.tabIndex&&(B.tabIndex="-1"),j){const{onEnter:e,onExited:t}=D();B.onEnter=e,B.onExited=t}const W=null!=(n=null!=(r=null==I?void 0:I.root)?r:g.Root)?n:Rf,U=null!=(o=null!=(i=null==I?void 0:I.backdrop)?i:g.Backdrop)?o:c,H=null!=(a=null==O?void 0:O.root)?a:v.root,V=null!=(l=null==O?void 0:O.backdrop)?l:v.backdrop,G=ya({elementType:W,externalSlotProps:H,externalForwardedProps:T,getSlotProps:M,additionalProps:{ref:t,as:m},ownerState:F,className:pi(d,null==H?void 0:H.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),K=ya({elementType:U,externalSlotProps:V,additionalProps:u,getSlotProps:e=>N(ct({},e,{onClick:t=>{R&&R(t),null!=e&&e.onClick&&e.onClick(t)}})),className:pi(null==V?void 0:V.className,null==u?void 0:u.className,null==$?void 0:$.backdrop),ownerState:F});return _||L||j&&!z?Nr.jsx(Wu,{ref:q,container:h,disablePortal:w,children:Nr.jsxs(W,ct({},G,{children:[!C&&c?Nr.jsx(U,ct({},K)):null,Nr.jsx(wf,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:A,open:L,children:x.cloneElement(p,B)})]}))}):null}));function If(e){return gi("MuiDivider",e)}const Tf=vi("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Pf=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Mf=$l("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>ct({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ja.alpha(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>ct({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>ct({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>ct({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>ct({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Nf=$l("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>ct({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Df=x.forwardRef((function(e,t){const n=Hl({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:f="fullWidth"}=n,p=ut(n,Pf),h=ct({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:c,role:u,textAlign:d,variant:f}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return da({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"]},If,r)})(h);return Nr.jsx(Mf,ct({as:a,className:pi(m.root,i),role:u,ref:t,ownerState:h},p,{children:o?Nr.jsx(Nf,{className:m.wrapper,ownerState:h,children:o}):null}))}));Df.muiSkipListHighlight=!0;const qf=function(e={}){const{createStyledComponent:t=qa,useThemeProps:n=Aa,componentName:r="MuiStack"}=e,o=t(ja),i=x.forwardRef((function(e,t){const i=si(n(e)),{component:a="div",direction:l="column",spacing:s=0,divider:c,children:u,className:d,useFlexGap:f=!1}=i,p=ut(i,Na),h={direction:l,spacing:s,useFlexGap:f},m=da({root:["root"]},(e=>gi(r,e)),{});return Nr.jsx(o,ct({as:a,ownerState:h,ref:t,className:pi(m.root,d)},p,{children:c?za(u,c):u}))}));return i}({createStyledComponent:$l("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Hl({props:e,name:"MuiStack"})});function Af(e){return gi("MuiFormControlLabel",e)}const zf=vi("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),jf=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Ff=$l("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zf.label}`]:t.label},t.root,t[`labelPlacement${no(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>ct({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${zf.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},{[`& .${zf.label}`]:{[`&.${zf.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),$f=$l("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${zf.error}`]:{color:(e.vars||e).palette.error.main}}))),Bf=x.forwardRef((function(e,t){var n,r;const o=Hl({props:e,name:"MuiFormControlLabel"}),{className:i,componentsProps:a={},control:l,disabled:s,disableTypography:c,label:u,labelPlacement:d="end",required:f,slotProps:p={}}=o,h=ut(o,jf),m=ld(),g=null!=(n=null!=s?s:l.props.disabled)?n:null==m?void 0:m.disabled,v=null!=f?f: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=id({props:o,muiFormControl:m,states:["error"]}),S=ct({},o,{disabled:g,labelPlacement:d,required:v,error:y.error}),w=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e;return da({root:["root",n&&"disabled",`labelPlacement${no(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},Af,t)})(S),E=null!=(r=p.typography)?r:a.typography;let k=u;return null==k||k.type===Sc||c||(k=Nr.jsx(Sc,ct({component:"span"},E,{className:pi(w.label,null==E?void 0:E.className),children:k}))),Nr.jsxs(Ff,ct({className:pi(w.root,i),ownerState:S,ref:t},h,{children:[x.cloneElement(l,b),v?Nr.jsxs(qf,{display:"block",children:[k,Nr.jsxs($f,{ownerState:S,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):k]}))})),Wf=x.createContext();function Uf(e){return gi("MuiGrid",e)}const Hf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Vf=vi("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}`)),...Hf.map((e=>`grid-xs-${e}`)),...Hf.map((e=>`grid-sm-${e}`)),...Hf.map((e=>`grid-md-${e}`)),...Hf.map((e=>`grid-lg-${e}`)),...Hf.map((e=>`grid-xl-${e}`))]),Gf=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Kf(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Zf({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 Jf=$l("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})=>ct({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 Qr({theme:e},to({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${Vf.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=to({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Zf({breakpoints:e.breakpoints.values,values:t})),o=Qr({theme:e},t,((t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{marginTop:`-${Kf(i)}`,[`& > .${Vf.item}`]:{paddingTop:Kf(i)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${Vf.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=to({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Zf({breakpoints:e.breakpoints.values,values:t})),o=Qr({theme:e},t,((t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{width:`calc(100% + ${Kf(i)})`,marginLeft:`-${Kf(i)}`,[`& > .${Vf.item}`]:{paddingLeft:Kf(i)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${Vf.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=to({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} + ${Kf(n)})`;c={flexBasis:e,maxWidth:e}}}i=ct({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 Xf=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 da({root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...u]},Uf,t)},Qf=x.forwardRef((function(e,t){const n=Hl({props:e,name:"MuiGrid"}),{breakpoints:r}=_l(),o=si(n),{className:i,columns:a,columnSpacing:l,component:s="div",container:c=!1,direction:u="row",item:d=!1,rowSpacing:f,spacing:p=0,wrap:h="wrap",zeroMinWidth:m=!1}=o,g=ut(o,Gf),v=f||p,b=l||p,y=x.useContext(Wf),S=c?a||12:y,w={},E=ct({},g);r.keys.forEach((e=>{null!=g[e]&&(w[e]=g[e],delete E[e])}));const k=ct({},o,{columns:S,container:c,direction:u,item:d,rowSpacing:v,columnSpacing:b,wrap:h,zeroMinWidth:m,spacing:p},w,{breakpoints:r.keys}),C=Xf(k);return Nr.jsx(Wf.Provider,{value:S,children:Nr.jsx(Jf,ct({ownerState:k,className:pi(C.root,i),as:s,ref:t},E))})})),Yf=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ep(e){return`scale(${e}, ${e**2})`}const tp={entering:{opacity:1,transform:ep(1)},entered:{opacity:1,transform:"none"}},np="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),rp=x.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:f,style:p,timeout:h="auto",TransitionComponent:m=rs}=e,g=ut(e,Yf),v=Yi(),b=x.useRef(),y=_l(),S=x.useRef(null),w=Zi(S,xa(o),t),E=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},k=E(c),C=E(((e,t)=>{ic(e);const{duration:n,delay:r,easing:o}=ac({style:p,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:np?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),_=E(s),R=E(f),L=E((e=>{const{duration:t,delay:n,easing:r}=ac({style:p,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:np?o:.666*o,delay:np?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=ep(.75),u&&u(e)})),O=E(d);return Nr.jsx(m,ct({appear:r,in:a,nodeRef:S,onEnter:C,onEntered:_,onEntering:k,onExit:L,onExited:O,onExiting:R,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>x.cloneElement(o,ct({style:ct({opacity:0,transform:ep(.75),visibility:"exited"!==e||a?void 0:"hidden"},tp[e],p,o.props.style),ref:w},t))}))}));function op(e){return gi("MuiIcon",e)}rp.muiSupportAuto=!0,vi("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ip=["baseClassName","className","color","component","fontSize"],ap=$l("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${no(n.color)}`],t[`fontSize${no(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]}))),lp=x.forwardRef((function(e,t){const n=Hl({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:i="inherit",component:a="span",fontSize:l="medium"}=n,s=ut(n,ip),c=ct({},n,{baseClassName:r,color:i,component:a,fontSize:l}),u=(e=>{const{color:t,fontSize:n,classes:r}=e;return da({root:["root","inherit"!==t&&`color${no(t)}`,`fontSize${no(n)}`]},op,r)})(c);return Nr.jsx(ap,ct({as:a,className:pi(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t},s))}));function sp(e){return gi("MuiInputAdornment",e)}lp.muiName="Icon";const cp=vi("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var up;const dp=["children","className","component","disablePointerEvents","disableTypography","position","variant"],fp=$l("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${no(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>ct({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${cp.positionStart}&:not(.${cp.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),pp=x.forwardRef((function(e,t){const n=Hl({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:s,variant:c}=n,u=ut(n,dp),d=ld()||{};let f=c;c&&d.variant,d&&!f&&(f=d.variant);const p=ct({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:s,variant:f}),h=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return da({root:["root",n&&"disablePointerEvents",o&&`position${no(o)}`,a,r&&"hiddenLabel",i&&`size${no(i)}`]},sp,t)})(p);return Nr.jsx(ad.Provider,{value:null,children:Nr.jsx(fp,ct({as:i,ownerState:p,className:pi(h.root,o),ref:t},u,{children:"string"!=typeof r||l?Nr.jsxs(x.Fragment,{children:["start"===s?up||(up=Nr.jsx("span",{className:"notranslate",children:"​"})):null,r]}):Nr.jsx(Sc,{color:"text.secondary",children:r})}))})})),hp=x.createContext({});function mp(e){return gi("MuiList",e)}vi("MuiList",["root","padding","dense","subheader"]);const gp=["children","className","component","dense","disablePadding","subheader"],vp=$l("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>ct({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),bp=x.forwardRef((function(e,t){const n=Hl({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,c=ut(n,gp),u=x.useMemo((()=>({dense:a})),[a]),d=ct({},n,{component:i,dense:a,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return da({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},mp,t)})(d);return Nr.jsx(hp.Provider,{value:u,children:Nr.jsxs(vp,ct({as:i,className:pi(f.root,o),ref:t,ownerState:d},c,{children:[s,r]}))})}));function yp(e){return gi("MuiListItem",e)}const xp=vi("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Sp=vi("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function wp(e){return gi("MuiListItemSecondaryAction",e)}vi("MuiListItemSecondaryAction",["root","disableGutters"]);const Ep=["className"],kp=$l("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>ct({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),Cp=x.forwardRef((function(e,t){const n=Hl({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=ut(n,Ep),i=ct({},n,{disableGutters:x.useContext(hp).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return da({root:["root",t&&"disableGutters"]},wp,n)})(i);return Nr.jsx(kp,ct({className:pi(a.root,r),ownerState:i,ref:t},o))}));Cp.muiName="ListItemSecondaryAction";const _p=["className"],Rp=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Lp=$l("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})=>ct({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&ct({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Sp.root}`]:{paddingRight:48}},{[`&.${xp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${xp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ja.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${xp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ja.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${xp.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"}},[`&.${xp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ja.alpha(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})`:Ja.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),Op=$l("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Ip=x.forwardRef((function(e,t){const n=Hl({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:f}={},dense:p=!1,disabled:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:v=!1,focusVisibleClassName:b,secondaryAction:y,selected:S=!1,slotProps:w={},slots:E={}}=n,k=ut(n.ContainerProps,_p),C=ut(n,Rp),_=x.useContext(hp),R=x.useMemo((()=>({dense:p||_.dense||!1,alignItems:r,disableGutters:m})),[r,_.dense,p,m]),L=x.useRef(null);qi((()=>{o&&L.current&&L.current.focus()}),[o]);const O=x.Children.toArray(a),I=O.length&&Fi(O[O.length-1],["ListItemSecondaryAction"]),T=ct({},n,{alignItems:r,autoFocus:o,button:i,dense:R.dense,disabled:h,disableGutters:m,disablePadding:g,divider:v,hasSecondaryAction:I,selected:S}),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 da({root:["root",o&&"dense",!a&&"gutters",!l&&"padding",s&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},yp,r)})(T),M=Zi(L,t),N=E.root||c.Root||Lp,D=w.root||u.root||{},q=ct({className:pi(P.root,D.className,l),disabled:h},C);let A=s||"li";return i&&(q.component=s||"div",q.focusVisibleClassName=pi(xp.focusVisible,b),A=Ls),I?(A=q.component||s?A:"div","li"===d&&("li"===A?A="div":"li"===q.component&&(q.component="div")),Nr.jsx(hp.Provider,{value:R,children:Nr.jsxs(Op,ct({as:d,className:pi(P.container,f),ref:M,ownerState:T},k,{children:[Nr.jsx(N,ct({},D,!fa(N)&&{as:A,ownerState:ct({},T,D.ownerState)},q,{children:O})),O.pop()]}))})):Nr.jsx(hp.Provider,{value:R,children:Nr.jsxs(N,ct({},D,{as:A,ref:M},!fa(N)&&{ownerState:ct({},T,D.ownerState)},q,{children:[O,y&&Nr.jsx(Cp,{children:y})]}))})}));function Tp(e){return gi("MuiListItemIcon",e)}const Pp=vi("MuiListItemIcon",["root","alignItemsFlexStart"]),Mp=["className"],Np=$l("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>ct({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Dp=x.forwardRef((function(e,t){const n=Hl({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=ut(n,Mp),i=ct({},n,{alignItems:x.useContext(hp).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return da({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Tp,n)})(i);return Nr.jsx(Np,ct({className:pi(a.root,r),ownerState:i,ref:t},o))})),qp=vi("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Ap=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function zp(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function jp(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Fp(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 $p(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")&&Fp(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const Bp=x.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=ut(e,Ap),f=x.useRef(null),p=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});qi((()=>{r&&f.current.focus()}),[r]),x.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${ca($i(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const h=Zi(f,t);let m=-1;x.Children.forEach(i,((e,t)=>{x.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))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=x.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),x.cloneElement(e,t)}return e}));return Nr.jsx(bp,ct({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=f.current,n=e.key,r=$i(t).activeElement;if("ArrowDown"===n)e.preventDefault(),$p(t,r,s,l,zp);else if("ArrowUp"===n)e.preventDefault(),$p(t,r,s,l,jp);else if("Home"===n)e.preventDefault(),$p(t,null,s,l,zp);else if("End"===n)e.preventDefault(),$p(t,null,s,l,jp);else if(1===n.length){const o=p.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&&Fp(r,o);o.previousKeyMatched&&(s||$p(t,r,!1,l,zp,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:g}))}));function Wp(e){return gi("MuiPopover",e)}vi("MuiPopover",["root","paper"]);const Up=["onEntering"],Hp=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Vp=["slotProps"];function Gp(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Kp(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Zp(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Jp(e){return"function"==typeof e?e():e}const Xp=$l(Of,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Qp=$l(uc,{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}),Yp=x.forwardRef((function(e,t){var n,r,o;const i=Hl({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:f,container:p,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=rp,transitionDuration:E="auto",TransitionProps:{onEntering:k}={},disableScrollLock:C=!1}=i,_=ut(i.TransitionProps,Up),R=ut(i,Hp),L=null!=(n=null==y?void 0:y.paper)?n:v,O=x.useRef(),I=Zi(O,L.ref),T=ct({},i,{anchorOrigin:s,anchorReference:u,elevation:h,marginThreshold:m,externalPaperSlotProps:L,transformOrigin:S,TransitionComponent:w,transitionDuration:E,TransitionProps:_}),P=(e=>{const{classes:t}=e;return da({root:["root"],paper:["paper"]},Wp,t)})(T),M=x.useCallback((()=>{if("anchorPosition"===u)return c;const e=Jp(l),t=(e&&1===e.nodeType?e:$i(O.current).body).getBoundingClientRect();return{top:t.top+Gp(t,s.vertical),left:t.left+Kp(t,s.horizontal)}}),[l,s.horizontal,s.vertical,c,u]),N=x.useCallback((e=>({vertical:Gp(e,S.vertical),horizontal:Kp(e,S.horizontal)})),[S.horizontal,S.vertical]),D=x.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=N(t);if("none"===u)return{top:null,left:null,transformOrigin:Zp(n)};const r=M();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,c=Bi(Jp(l)),d=c.innerHeight-m,f=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(s>f){const e=s-f;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Zp(n)}}),[l,u,M,N,m]),[q,A]=x.useState(g),z=x.useCallback((()=>{const e=O.current;if(!e)return;const t=D(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,A(!0)}),[D]);x.useEffect((()=>(C&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z))),[l,C,z]);x.useEffect((()=>{g&&z()})),x.useImperativeHandle(a,(()=>g?{updatePosition:()=>{z()}}:null),[g,z]),x.useEffect((()=>{if(!g)return;const e=ji((()=>{z()})),t=Bi(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,z]);let j=E;"auto"!==E||w.muiSupportAuto||(j=void 0);const F=p||(l?$i(Jp(l)).body:void 0),$=null!=(r=null==b?void 0:b.root)?r:Xp,B=null!=(o=null==b?void 0:b.paper)?o:Qp,W=ya({elementType:B,externalSlotProps:ct({},L,{style:q?L.style:ct({},L.style,{opacity:0})}),additionalProps:{elevation:h,ref:I},ownerState:T,className:pi(P.paper,null==L?void 0:L.className)}),U=ya({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:R,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:T,className:pi(P.root,f)}),{slotProps:H}=U,V=ut(U,Vp);return Nr.jsx($,ct({},V,!fa($)&&{slotProps:H,disableScrollLock:C},{children:Nr.jsx(w,ct({appear:!0,in:g,onEntering:(e,t)=>{k&&k(e,t),z()},onExited:()=>{A(!1)},timeout:j},_,{children:Nr.jsx(B,ct({},W,{children:d}))}))}))}));function eh(e){return gi("MuiMenuItem",e)}const th=vi("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),nh=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],rh=$l(Ls,{shouldForwardProp:e=>Fl(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>ct({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${th.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ja.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${th.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ja.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${th.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ja.alpha(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})`:Ja.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${th.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${th.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Tf.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Tf.inset}`]:{marginLeft:52},[`& .${qp.root}`]:{marginTop:0,marginBottom:0},[`& .${qp.inset}`]:{paddingLeft:36},[`& .${Pp.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&ct({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Pp.root} svg`]:{fontSize:"1.25rem"}})))),oh=x.forwardRef((function(e,t){const n=Hl({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,f=ut(n,nh),p=x.useContext(hp),h=x.useMemo((()=>({dense:i||p.dense||!1,disableGutters:l})),[p.dense,i,l]),m=x.useRef(null);qi((()=>{r&&m.current&&m.current.focus()}),[r]);const g=ct({},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 ct({},a,da({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},eh,a))})(n),b=Zi(m,t);let y;return n.disabled||(y=void 0!==u?u:-1),Nr.jsx(hp.Provider,{value:h,children:Nr.jsx(rh,ct({ref:b,role:c,tabIndex:y,component:o,focusVisibleClassName:pi(v.focusVisible,s),className:pi(v.root,d)},f,{ownerState:g,classes:v}))})}));var ih;const ah=["children","classes","className","label","notched"],lh=$l("fieldset",{shouldForwardProp:Fl})({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%"}),sh=$l("legend",{shouldForwardProp:Fl})((({ownerState:e,theme:t})=>ct({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&ct({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const ch=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],uh=$l(md,{shouldForwardProp:e=>Fl(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:pd})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return ct({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${xd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${xd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${xd.focused} .${xd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${xd.error} .${xd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${xd.disabled} .${xd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&ct({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),dh=$l((function(e){const{className:t,label:n,notched:r}=e,o=ut(e,ah),i=null!=n&&""!==n,a=ct({},e,{notched:r,withLabel:i});return Nr.jsx(lh,ct({"aria-hidden":!0,className:t,ownerState:a},o,{children:Nr.jsx(sh,{ownerState:a,children:i?Nr.jsx("span",{children:n}):ih||(ih=Nr.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}})),fh=$l(gd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:hd})((({theme:e,ownerState:t})=>ct({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),ph=x.forwardRef((function(e,t){var n,r,o,i,a;const l=Hl({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:c=!1,inputComponent:u="input",label:d,multiline:f=!1,notched:p,slots:h={},type:m="text"}=l,g=ut(l,ch),v=(e=>{const{classes:t}=e;return ct({},t,da({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},yd,t))})(l),b=ld(),y=id({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=ct({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:c,hiddenLabel:y.hiddenLabel,multiline:f,size:y.size,type:m}),w=null!=(n=null!=(r=h.root)?r:s.Root)?n:uh,E=null!=(o=null!=(i=h.input)?i:s.Input)?o:fh;return Nr.jsx(bd,ct({slots:{root:w,input:E},renderSuffix:e=>Nr.jsx(dh,{ownerState:S,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Nr.jsxs(x.Fragment,{children:[d," ","*"]})):d,notched:void 0!==p?p:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:u,multiline:f,ref:t,type:m},g,{classes:ct({},v,{notchedOutline:null})}))}));ph.muiName="Input";var hh=nc(Nr.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"),mh=nc(Nr.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 gh=$l("span",{shouldForwardProp:Fl})({position:"relative",display:"flex"}),vh=$l(hh)({transform:"scale(1)"}),bh=$l(mh)((({theme:e,ownerState:t})=>ct({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 yh(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=ct({},e,{checked:t});return Nr.jsxs(gh,{className:n.root,ownerState:o,children:[Nr.jsx(vh,{fontSize:r,className:n.background,ownerState:o}),Nr.jsx(bh,{fontSize:r,className:n.dot,ownerState:o})]})}const xh=x.createContext(void 0);function Sh(e){return gi("MuiRadio",e)}const wh=vi("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Eh=["checked","checkedIcon","color","icon","name","onChange","size","className"],kh=$l($d,{shouldForwardProp:e=>Fl(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${no(n.size)}`],t[`color${no(n.color)}`]]}})((({theme:e,ownerState:t})=>ct({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})`:Ja.alpha("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${wh.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${wh.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const Ch=Nr.jsx(yh,{checked:!0}),_h=Nr.jsx(yh,{}),Rh=x.forwardRef((function(e,t){var n,r;const o=Hl({props:e,name:"MuiRadio"}),{checked:i,checkedIcon:a=Ch,color:l="primary",icon:s=_h,name:c,onChange:u,size:d="medium",className:f}=o,p=ut(o,Eh),h=ct({},o,{color:l,size:d}),m=(e=>{const{classes:t,color:n,size:r}=e;return ct({},t,da({root:["root",`color${no(n)}`,"medium"!==r&&`size${no(r)}`]},Sh,t))})(h),g=x.useContext(xh);let v=i;const b=zi(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)),Nr.jsx(kh,ct({type:"radio",icon:x.cloneElement(s,{fontSize:null!=(n=_h.props.fontSize)?n:d}),checkedIcon:x.cloneElement(a,{fontSize:null!=(r=Ch.props.fontSize)?r:d}),ownerState:h,classes:m,name:y,checked:v,onChange:b,ref:t,className:pi(m.root,f)},p))}));function Lh(e){return gi("MuiTooltip",e)}const Oh=vi("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Ih=["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 Th=$l(Yu,{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})=>ct({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Oh.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Oh.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Oh.arrow}`]:ct({},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"] .${Oh.arrow}`]:ct({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),Ph=$l("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${no(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return ct({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Ja.alpha(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},{[`.${Oh.popper}[data-popper-placement*="left"] &`]:ct({transformOrigin:"right center"},t.isRtl?ct({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):ct({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Oh.popper}[data-popper-placement*="right"] &`]:ct({transformOrigin:"left center"},t.isRtl?ct({marginRight:"14px"},t.touch&&{marginRight:"24px"}):ct({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Oh.popper}[data-popper-placement*="top"] &`]:ct({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Oh.popper}[data-popper-placement*="bottom"] &`]:ct({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),Mh=$l("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:Ja.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Nh=!1;const Dh=new Qi;let qh={x:0,y:0};function Ah(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const zh=x.forwardRef((function(e,t){var n,r,o,i,a,l,s,c,u,d,f,p,h,m,g,v,b,y,S;const w=Hl({props:e,name:"MuiTooltip"}),{arrow:E=!1,children:k,components:C={},componentsProps:_={},describeChild:R=!1,disableFocusListener:L=!1,disableHoverListener:O=!1,disableInteractive:I=!1,disableTouchListener:T=!1,enterDelay:P=100,enterNextDelay:M=0,enterTouchDelay:N=700,followCursor:D=!1,id:q,leaveDelay:A=0,leaveTouchDelay:z=1500,onClose:j,onOpen:F,open:$,placement:B="bottom",PopperComponent:W,PopperProps:U={},slotProps:H={},slots:V={},title:G,TransitionComponent:K=rp,TransitionProps:Z}=w,J=ut(w,Ih),X=x.isValidElement(k)?k:Nr.jsx("span",{children:k}),Q=_l(),Y=(()=>{const e=x.useContext(_a);return null!=e&&e})(),[ee,te]=x.useState(),[ne,re]=x.useState(null),oe=x.useRef(!1),ie=I||D,ae=Yi(),le=Yi(),se=Yi(),ce=Yi(),[ue,de]=Gi({controlled:$,default:!1,name:"Tooltip",state:"open"});let fe=ue;const pe=Vi(q),he=x.useRef(),me=Ki((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ce.clear()}));x.useEffect((()=>me),[me]);const ge=e=>{Dh.clear(),Nh=!0,de(!0),F&&!fe&&F(e)},ve=Ki((e=>{Dh.start(800+A,(()=>{Nh=!1})),de(!1),j&&fe&&j(e),ae.start(Q.transitions.duration.shortest,(()=>{oe.current=!1}))})),be=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),le.clear(),se.clear(),P||Nh&&M?le.start(Nh?M:P,(()=>{ge(e)})):ge(e))},ye=e=>{le.clear(),se.start(A,(()=>{ve(e)}))},{isFocusVisibleRef:xe,onBlur:Se,onFocus:we,ref:Ee}=sa(),[,ke]=x.useState(!1),Ce=e=>{Se(e),!1===xe.current&&(ke(!1),ye(e))},_e=e=>{ee||te(e.currentTarget),we(e),!0===xe.current&&(ke(!0),be(e))},Re=e=>{oe.current=!0;const t=X.props;t.onTouchStart&&t.onTouchStart(e)},Le=e=>{Re(e),se.clear(),ae.clear(),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(N,(()=>{document.body.style.WebkitUserSelect=he.current,be(e)}))},Oe=e=>{X.props.onTouchEnd&&X.props.onTouchEnd(e),me(),se.start(z,(()=>{ve(e)}))};x.useEffect((()=>{if(fe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}}),[ve,fe]);const Ie=Zi(xa(X),Ee,te,t);G||0===G||(fe=!1);const Te=x.useRef(),Pe={},Me="string"==typeof G;R?(Pe.title=fe||!Me||O?null:G,Pe["aria-describedby"]=fe?pe:null):(Pe["aria-label"]=Me?G:null,Pe["aria-labelledby"]=fe&&!Me?pe:null);const Ne=ct({},Pe,J,X.props,{className:pi(J.className,X.props.className),onTouchStart:Re,ref:Ie},D?{onMouseMove:e=>{const t=X.props;t.onMouseMove&&t.onMouseMove(e),qh={x:e.clientX,y:e.clientY},Te.current&&Te.current.update()}}:{}),De={};T||(Ne.onTouchStart=Le,Ne.onTouchEnd=Oe),O||(Ne.onMouseOver=Ah(be,Ne.onMouseOver),Ne.onMouseLeave=Ah(ye,Ne.onMouseLeave),ie||(De.onMouseOver=be,De.onMouseLeave=ye)),L||(Ne.onFocus=Ah(_e,Ne.onFocus),Ne.onBlur=Ah(Ce,Ne.onBlur),ie||(De.onFocus=_e,De.onBlur=Ce));const qe=x.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=U.popperOptions)&&e.modifiers&&(t=t.concat(U.popperOptions.modifiers)),ct({},U.popperOptions,{modifiers:t})}),[ne,U]),Ae=ct({},w,{isRtl:Y,arrow:E,disableInteractive:ie,placement:B,PopperComponentProp:W,touch:oe.current}),ze=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return da({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${no(i.split("-")[0])}`],arrow:["arrow"]},Lh,t)})(Ae),je=null!=(n=null!=(r=V.popper)?r:C.Popper)?n:Th,Fe=null!=(o=null!=(i=null!=(a=V.transition)?a:C.Transition)?i:K)?o:rp,$e=null!=(l=null!=(s=V.tooltip)?s:C.Tooltip)?l:Ph,Be=null!=(c=null!=(u=V.arrow)?u:C.Arrow)?c:Mh,We=pa(je,ct({},U,null!=(d=H.popper)?d:_.popper,{className:pi(ze.popper,null==U?void 0:U.className,null==(f=null!=(p=H.popper)?p:_.popper)?void 0:f.className)}),Ae),Ue=pa(Fe,ct({},Z,null!=(h=H.transition)?h:_.transition),Ae),He=pa($e,ct({},null!=(m=H.tooltip)?m:_.tooltip,{className:pi(ze.tooltip,null==(g=null!=(v=H.tooltip)?v:_.tooltip)?void 0:g.className)}),Ae),Ve=pa(Be,ct({},null!=(b=H.arrow)?b:_.arrow,{className:pi(ze.arrow,null==(y=null!=(S=H.arrow)?S:_.arrow)?void 0:y.className)}),Ae);return Nr.jsxs(x.Fragment,{children:[x.cloneElement(X,Ne),Nr.jsx(je,ct({as:null!=W?W:Yu,placement:B,anchorEl:D?{getBoundingClientRect:()=>({top:qh.y,left:qh.x,right:qh.x,bottom:qh.y,width:0,height:0})}:ee,popperRef:Te,open:!!ee&&fe,id:pe,transition:!0},De,We,{popperOptions:qe,children:({TransitionProps:e})=>Nr.jsx(Fe,ct({timeout:Q.transitions.duration.shorter},e,Ue,{children:Nr.jsxs($e,ct({},He,{children:[G,E?Nr.jsx(Be,ct({},Ve,{ref:re})):null]}))}))}))]})}));function jh(){const{useModelStore:e}=x.useContext(Vs).modelStore;return e()}function Fh(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=jh(),[o]=function(){const{useRpcRequestSessionModelStore:e}=x.useContext(Vs).modelStore;return e()}(),[i,a]=x.useState();for(var l=arguments.length,s=new Array(l>2?l-2:0),c=2;c<l;c++)s[c-2]=arguments[c];return x.useEffect((()=>{if(!t)return;(async()=>{let i=o.get(n);i||(i=t.createSessionObject(e),o.set(n,i));const l=await i;r.set(n,l),a(l)})()}),[t,...s]),[i]}const $h={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Bh(e){return Fh($h,e)}const Wh=e=>new Promise((t=>{setTimeout(t,e)})),Uh=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let i;switch(t.type){case"INVALID":i=f(f({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:f({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=f(f({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let a=n.get(r);return a||(a={}),a[o]=i,n.set(r,a),i};function Hh(e,t){const n=e?"".concat(e.id):null,[r]=function(){const{useRpcResultStore:e}=x.useContext(Vs).modelStore;return e()}(),[o,i]=x.useReducer(Uh,n?r.get(n):null),[a]=function(){const{useModelChangedStore:e}=x.useContext(Vs).modelStore;return e()}(),[l]=function(){const{useRpcRequestStore:e}=x.useContext(Vs).modelStore;return e()}();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{await Wh(0);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 x.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 Vh(e){const[t,{validating:n,canCancel:r,canRetry:o},i]=Hh(e,"getLayout");return null!=e&&e.pureLayout&&t?[e.pureLayout,{validating:n,canCancel:r,canRetry:o},i]:[t,{validating:n,canCancel:r,canRetry:o},i]}function Gh(e){return Hh(e,"getAppLayout")}function Kh(){const[e,t]=x.useState(),[n,r]=x.useState(),o=x.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 x.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 Zh(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Jh(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:o=[]}=e;const i=f({fontSize:Zh(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n);return S.createElement("i",{style:i},S.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 S.createElement(n,u({key:t},r))}))))}var Xh=e=>Jh((e=>f(f({},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 Qh=e=>Jh((e=>f(f({},e),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));const Yh=e=>f(f({},e),{},{viewBox:"0 0 12 16",shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]});var em=e=>Jh(Yh(e));var tm=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}}(),nm=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},rm=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=nm(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},nm(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),tm(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 f=a[0]-1;if(t(f))break;a[0]=f}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}(x.PureComponent);const om=["S","XS"],im=e=>e.reduce(((e,t)=>e.concat(t)));function am(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!om.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return im(t)}async function lm(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 sm="RowColumn",cm={row:"".concat(sm,"-row"),rowBorderBottom:"".concat(sm,"-rowBorderBottom"),column:"".concat(sm,"-column"),fieldRoot:"".concat(sm,"-fieldRoot"),cell:"".concat(sm,"-cell"),labelText:"".concat(sm,"-labelText"),labelDense:"".concat(sm,"-labelDense"),highlighted:"".concat(sm,"-highlighted"),checkboxLabel:"".concat(sm,"-checkboxLabel"),icon:"".concat(sm,"-icon"),S:"".concat(sm,"-S"),XS:"".concat(sm,"-XS"),A:"".concat(sm,"-A"),X:"".concat(sm,"-X"),frequencyCount:"".concat(sm,"-frequencyCount"),barContainer:"".concat(sm,"-barContainer"),bar:"".concat(sm,"-bar"),barSelected:"".concat(sm,"-barSelected"),barWithCheckbox:"".concat(sm,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(sm,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(sm,"-excludedTextWithCheckbox")},um=".".concat(cm.fieldRoot),dm=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function fm(e){var t;let{selectionState:n,selections:r,checkboxes:o=!1,doc:i=document,loaderRef:a}=e;const l=x.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});x.useEffect((()=>{var e;if(null===(e=a.current)||void 0===e||null===(e=e._listRef)||void 0===e||!e._outerRef)return;const t=e=>e.preventDefault(),n=e=>e.preventDefault(),r=e=>e.preventDefault(),o=a.current._listRef._outerRef;return o.addEventListener("gesturestart",t),o.addEventListener("gesturechange",n),o.addEventListener("gestureend",r),()=>{o.removeEventListener("gesturestart",t),o.removeEventListener("gesturechange",n),o.removeEventListener("gestureend",r)}}),[null===(t=a.current)||void 0===t||null===(t=t._listRef)||void 0===t?void 0:t._outerRef]);const s=async()=>{var e;return(null===(e=n.selectDisabled)||void 0===e||!e.call(n))&&(n.setSelectableValuesUpdating(),lm({selections:r,elemNumbers:l.current.elemNumbers,isSingleSelect:n.isSingleSelect,toggle:l.current.toggle}))},c=(e,t)=>{const r=function(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}));return t}));return im(t)}(n.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r})),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([e,t],r)},u=e=>{const{startElemNumber:t}=l.current;if(t===e)return;const r=c(l.current.startElemNumber,e);n.updateItems(r,!0,l.current.elemNumbers)},d=x.useCallback((e=>{if(n.selectDisabled())return;const t=+e.target.getAttribute("data-n"),r=!n.isSingleSelect&&dm(e.nativeEvent);l.current.elemNumbers=[t],l.current.toggle=r,r||n.clearItemStates(!0),n.updateItem(t),l.current.active=!1,s()}),[]),f=x.useCallback((e=>{if(0!==e.button||n.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),r=!n.isSingleSelect&&dm(e);l.current.isRange=!1,l.current.startElemNumber=t,l.current.elemNumbers=[t],l.current.toggle=r,l.current.active=!0,r||n.clearItemStates(!0),n.updateItem(t),n.isSingleSelect&&(l.current.active=!1,s()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),p=x.useCallback((e=>{if(0===e.button&&l.current.active){if(l.current.active=!1,l.current.isRange){const t=+e.currentTarget.getAttribute("data-n");u(t)}s()}}),[]),h=x.useCallback((e=>{0===e.button&&l.current.active&&(l.current.active=!1,s())}),[]),m=x.useCallback((e=>{if(!l.current.active)return;l.current.isRange||(l.current.isRange=!0,n.isSelected(l.current.startElemNumber)||(n.updateItem(l.current.startElemNumber,!0),l.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");u(t)}),[]),g=x.useCallback((e=>{var t,r;if(l.current.active||l.current.isRange||n.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void s();const o=Number(null===(t=e.touches[0].target)||void 0===t||null===(t=t.closest(um))||void 0===t?void 0:t.getAttribute("data-n")),i=Number(null===(r=e.touches[1].target)||void 0===r||null===(r=r.closest(um))||void 0===r?void 0:r.getAttribute("data-n"));if(Number.isNaN(o)||Number.isNaN(o))return void s();l.current.active=!0;c(o,i).length<7&&(l.current.touchRangeSmall=!0),l.current.elemNumbers=[],l.current.touchElemNumbers=[o,i]}),[]),v=x.useCallback((()=>{if(2!==l.current.touchElemNumbers.length)return;if(l.current.touchRangeSmall)return l.current.touchRangeSmall=!1,l.current.touchElemNumbers=[],void(l.current.active=!1);const[e,t]=l.current.touchElemNumbers;l.current.startElemNumber=e,u(t),l.current.touchElemNumbers=[],l.current.active=!1,l.current.toggle=!0,s()}),[]);x.useEffect((()=>(i.addEventListener("mouseup",h),()=>{i.removeEventListener("mouseup",h)})),[h]),x.useEffect((()=>{const e=()=>{n.clearItemStates(!1)},t=()=>{n.clearItemStates(!0),n.triggerStateChanged()};return r.on("clearItemStates",e),r.on("deactivated",e),r.on("cleared",t),()=>{r.removeListener("clearItemStates",e),r.removeListener("deactivated",e),r.removeListener("cleared",t)}}),[r]);const b={};return o?Object.assign(b,{onChange:d}):Object.assign(b,{onMouseUp:p,onMouseDown:f,onMouseEnter:m,onTouchStart:g,onTouchEnd:v}),{interactionEvents:b,select:async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(null!==(e=n.selectDisabled)&&void 0!==e&&e.call(n))return!1;const a=!n.isSingleSelect&&dm(null==i?void 0:i.nativeEvent);a||n.clearItemStates(!0);const l=[];return n.updateItems(t,o,l),n.setSelectableValuesUpdating(),lm({selections:r,elemNumbers:o?l:t,isSingleSelect:n.isSingleSelect,toggle:a})}}}const pm=e=>f(f({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var hm=e=>Jh(pm(e));const mm=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,gm=e=>{let{cell:t,checkboxes:n}=e;return((e=>e?"A"===e.qState:null)(t)||mm(t))&&n};const vm=e=>{let{column:t,histogram:n,cell:r,showGray:o}=e;if(!r)return[];const i=[t?cm.column:cm.row];n||i.push(cm.rowBorderBottom);const a=function(e){let t,{cell:n,showGray:r}=e;switch(n.qState){case"XS":t=r?cm.XS:cm.S;break;case"S":case"L":t=cm.S;break;case"A":t=!!r&&cm.A;break;case"X":case"XL":t=!!r&&cm.X;break;default:t=!1}return t}({cell:r,showGray:o});return a&&i.push(a),i},bm=9,ym=4,xm=7,Sm=12+2*(xm+1),wm=80,Em=10,km=150,Cm=56,_m=20,Rm="-",Lm=32,Om=29,Im=20,Tm=4,Pm=e=>e.filter((e=>!!e)).join(" ").trim(),Mm=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,"%")},Nm=e=>e||Rm,Dm=["backgroundColor"],qm=e=>{let{sizes:t,frequencyMode:n,isGridMode:r,freqHitsValue:o}=e;if("P"===n)return"".concat(t.freqMinWidth,"px");return r&&!o?"max-content":"25%"},Am=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},zm=e=>{let{theme:t,checkboxes:n,styles:r,selectionState:o}=e;if(n)return"selected"===o?{["& .".concat(cm.labelText)]:{color:r.selections.selected}}:{};const i=r.selections,a=i[o],l=i["".concat(o,"Contrast")];return{background:a,color:l,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0},["& .".concat(cm.labelText)]:{color:l},["& .".concat(cm.icon)]:{color:l}}},jm={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Fm=$l("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})((e=>{let{theme:t,checkboxes:n,isGridMode:r,isGridCol:o,dense:i,direction:a,sizes:l,frequencyMode:s,freqHitsValue:c,styles:u}=e;const d=u.content,{backgroundColor:h}=d,m=p(d,Dm),g=zm({theme:t,styles:u,checkboxes:n,selectionState:"selected"}),v=zm({theme:t,styles:u,checkboxes:n,selectionState:"excluded"}),b={height:"100%",transition:"width 0.2s",border:"".concat(1,"px solid"),borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},y={opacity:"30%"};return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(cm.row)]:f({flexWrap:"nowrap"},u.content),["& .".concat(cm.rowBorderBottom)]:{borderBottom:o?"none":"1px solid ".concat(t.palette.divider),borderLeft:o?"1px solid ".concat(t.palette.divider):"none"},["& .".concat(cm.column)]:f({flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider)},u.content),["& .".concat(cm.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:n?"52px":"26px",flexBasis:n?"auto":"max-content",paddingLeft:"".concat(bm,"px"),paddingRight:0},["& .".concat(cm.labelText)]:f(f({lineHeight:"24px",userSelect:"none",paddingRight:"1px"},jm),m),["& .".concat(cm.labelDense)]:{lineHeight:"18px"},["& .".concat(cm.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(cm.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":f(f({},jm),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(cm.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:m.color},["& .".concat(cm.S)]:f(f({},g),{},{border:r?"none":void 0}),["& .".concat(cm.XS)]:f(f({},zm({theme:t,styles:u,checkboxes:n,selectionState:"selectedExcluded"})),{},{border:r?"none":void 0}),["& .".concat(cm.A)]:f(f({},zm({theme:t,styles:u,checkboxes:n,selectionState:"alternative"})),{},{border:r?"none":void 0}),["& .".concat(cm.X)]:f(f({},v),{},{border:r?"none":void 0}),["& .".concat(cm.X,", & .").concat(cm.XS)]:{border:r?"none":void 0,["& .".concat(cm.barSelected," .bar-filled")]:f({},b)},["& .".concat(cm.frequencyCount)]:f(f({zIndex:3,justifyContent:"flex-end"},jm),{},{flex:"0 0 ".concat(qm({sizes:l,frequencyMode:s,isGridMode:r,freqHitsValue:c})),minWidth:!r&&"P"!==s&&c?l.freqMinWidth:"max-content",maxWidth:Am({sizes:l,frequencyMode:s,isGridMode:r}),textAlign:"rtl"===a?"left":"right",paddingLeft:"rtl"!==a?"8px":0}),["&.".concat(cm.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(cm.bar)]:{height:i?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":f({},b)},["& .".concat(cm.barSelected)]:{"& .bar-filled":f({},y)},["& .".concat(cm.barWithCheckbox)]:{left:"rtl"===a?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(cm.barSelectedWithCheckbox)]:{"& .bar-filled":f(f({},y),{},{backgroundColor:u.selections.selected||"#BFE5D0",borderColor:u.selections.selected})},["& .".concat(cm.excludedTextWithCheckbox)]:{color:u.content.color,fontStyle:"italic"}}}));var $m=S.memo(Fm);const Bm="ListBoxCheckbox",Wm={cbIcon:"".concat(Bm,"-cbIcon"),cbIconChecked:"".concat(Bm,"-cbIconChecked"),cbIconExcluded:"".concat(Bm,"-cbIconExcluded"),cbIconAlternative:"".concat(Bm,"-cbIconAlternative"),checkbox:"".concat(Bm,"-checkbox"),dense:"".concat(Bm,"-dense")},Um=$l(Qd,{shouldForwardProp:e=>"styles"!==e})((e=>{let{styles:t}=e;return{["& .".concat(Wm.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(Wm.cbIconChecked)]:{borderRadius:3,backgroundColor:t.selections.selected,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(Wm.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.excluded},["& .".concat(Wm.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.alternative},["&.".concat(Wm.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(Wm.dense)]:{padding:"4px 8px"}}})),Hm=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return S.createElement("span",{className:e.cbIcon},n&&S.createElement("span",{className:t&&n?e.cbIconExcluded:""}))};function Vm(e){let{onChange:t,checked:n,label:r,dense:o,excluded:i,styles:a,showGray:l=!0,dataN:s}=e;return S.createElement(Um,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[Wm.checkbox,o&&Wm.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":s},name:r,icon:Hm(Wm,l,i),checkedIcon:S.createElement("span",{className:Wm.cbIconChecked}),styles:a})}const Gm={radioButton:"".concat("ListBoxRadioButton","-radioButton")},Km=$l(Rh,{shouldForwardProp:e=>!["dense","styles"].includes(e)})((e=>{let{checked:t,styles:n,dense:r}=e;return{["&.".concat(Gm.radioButton)]:{right:"5px",color:t?n.selections.selected:n.content.color,padding:r?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}}));function Zm(e){let{onChange:t,checked:n,label:r,dense:o,dataN:i,styles:a}=e;return S.createElement(Km,{checked:n,onChange:t,value:r,name:r,className:Gm.radioButton,inputProps:{"data-n":i},disableRipple:!0,size:o?"small":"medium",dense:o,styles:a})}function Jm(e){let{label:t,dense:n,showGray:r=!0,checkboxes:o,cell:i,valueTextAlign:a}=e;return S.createElement(Sc,{component:"span",variant:"body2",className:Pm([cm.labelText,n&&cm.labelDense,r&&gm({cell:i,checkboxes:o})&&cm.excludedTextWithCheckbox]),align:a,dir:"auto"},S.createElement("span",null,t))}function Xm(e){let{label:t,color:n,dense:r,showGray:o,checkboxes:i,cell:a,valueTextAlign:l}=e;return"string"==typeof t?S.createElement(Jm,{label:t,color:n,dense:r,showGray:o,checkboxes:i,cell:a,valueTextAlign:l}):t}function Qm(e){let{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:i,cell:a,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:f}=e;const p=S.createElement(Vm,{onChange:t,label:n,checked:o,dense:i,excluded:mm(a),isGridCol:l,showGray:s,dataN:r,styles:f}),h=S.createElement(Zm,{onChange:t,label:n,checked:o,dense:i,dataN:r,styles:f});return S.createElement(Bf,{control:c?h:p,className:cm.checkboxLabel,label:S.createElement(Xm,{label:n,dense:i,showGray:s,checkboxes:u,cell:a,valueTextAlign:d}),key:r})}function Ym(e){let{labels:t,dense:n,showGray:r,checkboxes:o}=e;const i=t.map(((e,t)=>{let[n,r]=e;return S.createElement("span",{id:t,className:r?cm.highlighted:""},n)}));return S.createElement(Jm,{label:i,dense:n,showGray:r,checkboxes:o})}function eg(e){let{onChange:t,labels:n,checkboxes:r,dense:o,showGray:i,qElemNumber:a,isSelected:l,cell:s,isGridCol:c,isSingleSelect:u,valueTextAlign:d,styles:f}=e;const p=S.createElement(Ym,{labels:n,dense:o,showGray:i,checkboxes:r});return r?S.createElement(Qm,{onChange:t,label:p,qElemNumber:a,isSelected:l,dense:o,cell:s,isGridCol:c,showGray:i,isSingleSelect:u,checkboxes:r,valueTextAlign:d,styles:f}):p}var tg=S.memo((function(e){let{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:i,cell:a,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:f}=e;return u?S.createElement(Qm,{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:i,cell:a,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:f}):S.createElement(Jm,{label:n,dense:i,showGray:!0,checkboxes:u,cell:a,valueTextAlign:d})}));function ng(e){let{qFrequency:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:i}=e;if(!(t&&n&&Nm(t)!==Rm))return;const a=Mm({qFrequency:t,frequencyMax:i});return S.createElement(qd,{className:Pm([cm.bar,r&&cm.barWithCheckbox,o&&(r?cm.barSelectedWithCheckbox:cm.barSelected)])},S.createElement(qd,{className:"bar-filled",width:a}))}function rg(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;const i=Nm(null==t?void 0:t.qFrequency);return S.createElement(Qf,{item:!0,style:{display:"flex",alignItems:"center"},className:cm.frequencyCount,"aria-label":i,title:i},S.createElement(Sc,{noWrap:!0,color:"inherit",variant:"body2",className:Pm([r&&cm.labelDense,cm.labelText,o&&gm({cell:t,checkboxes:n})&&cm.excludedTextWithCheckbox])},i))}function og(e){let{dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:o}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:o?"100%":"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const ig=$l(Qf,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:i,fillHeight:a}=e;const l="padding".concat("rtl"===i?"Left":"Right");return{["&.".concat(cm.fieldRoot)]:f(f({},og({dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:a})),{},{[l]:o?"8px":void 0})}}));const ag=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===ag.ARROW_UP||e===ag.ARROW_DOWN||e===ag.ARROW_LEFT||e===ag.ARROW_RIGHT});function lg(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function sg(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))||(null==e?void 0:e.closest(".qv-gs-listbox"))}function cg(e){let{containerRef:t,enabled:n}=e;const[r,o]=x.useState(!1),i={enabled:n,active:r,innerTabStops:!n||r,blur(e){var r;if(!n)return;o(!1);const i=sg(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)})),lg(t.current),e&&i&&(i.setAttribute("tabIndex",0),t.current.setAttribute("tabIndex",-1),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=null==e?void 0:e.querySelector("#listbox-unlock-button"),c=(null==e?void 0:e.querySelector(".listbox-cyclic-button"))||r||i||a||s||l;null==c||c.setAttribute("tabIndex",0),null==c||c.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm:not(:disabled)"),n=e||t;return null==n||n.setAttribute("tabIndex",0),null==n||n.focus(),n}};return i}const ug=e=>+e.getAttribute("data-n"),dg=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},fg=e=>{const t=null==e?void 0:e.querySelector(".value.last-focused"),n=null==e?void 0:e.querySelector(".value.selector"),r=null==e?void 0:e.querySelector(".value"),o=t||n||r;return null==o||o.setAttribute("tabIndex",0),null==o||o.focus(),lg(e),o},pg=e=>{const t=null==e?void 0:e.querySelector(".listbox-cyclic-button:not(:disabled)");return null==t||t.setAttribute("tabIndex",0),null==t||t.focus(),t},hg=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:r}=e,o=r.classList.contains("listbox-container"),i=n.closest(".listbox-container"),a=sg(i),l=1===(null==a?void 0:a.querySelectorAll(".listbox-container").length);if(o||l)t.blur(!0);else{lg(i),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}},mg=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===ag.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};const gg={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 vg(e){var t,n;let{index:r,rowIndex:o,columnIndex:i,style:a,data:l}=e;const{onChange:s,onClick:c,onMouseDown:u,onMouseUp:d,onMouseEnter:p,onTouchStart:h,onTouchEnd:m,pages:g,isLocked:v,column:b=!1,checkboxes:y=!1,textAlign:w,direction:E,layoutOptions:k={},freqIsAllowed:C,isSingleSelect:_,actions:R,frequencyMax:L="",histogram:O=!1,keyboard:I,showGray:T=!0,showTick:P=!0,columnCount:M=1,rowCount:N=1,dataOffset:D,deducedFrequencyMode:q,focusListItems:A,listCount:z,sizes:j,translator:F,showSearch:$,isModal:B,contentFontStyle:W,styles:U,fillHeight:H}=l,{dense:V=!1,dataLayout:G="singleColumn",layoutOrder:K}=k,{itemPadding:Z}=j;let J,X;const Q={max:null,currentIndex:null};if("number"==typeof o&&"number"==typeof i){"row"===K?(J=o*M+i,Q.max=N,Q.currentIndex=o):(J=i*N+o,Q.max=M,Q.currentIndex=i);const e=0;X=f(f({},a),{},{height:H?"100%":a.height,left:e+(0===i?a.left:Number(a.left)+i*e),top:0===o?a.top:Number(a.top)+o*e})}else J=r,Q.max=z,Q.currentIndex=r,X=f({},a);J+=D;const[Y,ee]=x.useState(null);x.useEffect((()=>{null!==Y&&(0===Q.currentIndex&&A.first&&(Y.focus(),A.setFirst(!1)),Q.currentIndex===Q.max-1&&A.last&&(Y.focus(),A.setLast(!1)))}),[Y,A.first,A.last]);const te=x.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:f,columnIndex:p,layoutOrder:h}=e;const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e===ag.ARROW_LEFT||e===ag.ARROW_RIGHT||"number"!=typeof f||"number"!=typeof p){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=mg({rowIndex:f,columnIndex:p,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:f}=e,{keyCode:p,shiftKey:h=!1,ctrlKey:b=!1,metaKey:y=!1}=f;switch(p){case ag.TAB:{const t=d.closest(".listbox-container"),n=void 0!==c?c():void 0;if(d.classList.add("last-focused"),null==s||!s.enabled){if(!n)return;return s.focusSelection(),e.preventDefault(),void e.stopPropagation()}if(h){dg(t)||pg(t)||(n?s.focusSelection():hg(e,s));break}s.focusSelection()||pg(t)||dg(t)||(d.blur(),hg(e,s));break}case ag.SHIFT:v(!0);break;case ag.SPACE:t([ug(d)],!1,e);break;case ag.ARROW_DOWN:case ag.ARROW_RIGHT:u=m(p,d,!0),h&&u&&(g&&(t([ug(d)],!0),v(!1)),t([ug(u)],!0));break;case ag.ARROW_UP:case ag.ARROW_LEFT:u=m(p,d,!1),h&&u&&(g&&(t([ug(d)],!0),v(!1)),t([ug(u)],!0));break;case ag.ENTER:if(o(),void 0===c)return;break;case ag.ESCAPE:if(void 0===c)return void i();if(!c())return;i();break;case ag.HOME:if(l.setFirst(!0),b){null==a||a("overflowStart");break}null==a||a("start");break;case ag.END:if(l.setLast(!0),b){null==a||a("overflowEnd");break}null==a||a("end");break;case ag.A:if(b||y){n();break}return;case ag.F:if(b||y){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(f(f({},R),{},{focusListItems:A,keyboard:I,isModal:B,rowCount:N,columnCount:M,rowIndex:o,columnIndex:i,layoutOrder:K})),[R,null==I?void 0:I.innerTabStops,N,M,o,i,K]),ne=x.useMemo((()=>function(e){let t,{pages:n,cellIndex:r}=e;const o=n.filter((e=>e.qArea.qTop<=r&&r<e.qArea.qTop+e.qArea.qHeight))[0];if(o){const e=o.qArea;r>=e.qTop&&r<e.qTop+e.qHeight&&([t]=o.qMatrix[r-e.qTop])}return t}({pages:g,cellIndex:J})),[g,J]),re="S"===(null==ne?void 0:ne.qState)||"XS"===(null==ne?void 0:ne.qState)||"L"===(null==ne?void 0:ne.qState)||"XL"===(null==ne?void 0:ne.qState),oe=x.useMemo((()=>vm({column:b,histogram:O,cell:ne,showGray:T})),[null==ne?void 0:ne.qState,O,V]),ie=x.useCallback((e=>{e.preventDefault()}),[y]),ae=x.useMemo((()=>ne&&function(e){let{direction:t,cell:n,textAlign:r}=e;const o=!["NaN",void 0].includes(null==n?void 0:n.qNum);let i;return i=!r||r.auto?o?"rtl"===t?"left":"right":{rtl:"right",ltr:"left"}[t]:(null==r?void 0:r.align)||"left",["left","center","right"].includes(i)?i:"left"}({direction:E,cell:ne,textAlign:w})),[E,ne,w]);if(!ne)return null;const le="grid"===G&&"column"===K,se=null!==(t=null==ne?void 0:ne.qText)&&void 0!==t?t:"";let ce;if(null!==(n=ne.qHighlightRanges)&&void 0!==n&&null!==(n=n.qRanges)&&void 0!==n&&n.length){const e=ne.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];ce=function(e,t){if(!t.length)return[];const n=t.reduce(((n,r,o)=>{const 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}(se,e)}const ue={alignItems:"center",display:"flex",fontSize:"8px"},de="rtl"===E,fe={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:de?8:y?0:void 0,paddingRight:y?0:de?8:0,justifyContent:ae,textAlign:ae},pe=0===r,he=re&&v,me=!y&&re&&!v,ge=!y&&P,ve=y||!P,be=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:i,maxIndex:a,showSearch:l}=e;const s=gg[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),f=t.get("CurrentSelections.Of",[i+1,a+1]);return u.unshift(d,f),u.join(". ").trim()}({translator:F,label:se,qState:ne.qState,currentIndex:Q.currentIndex,maxIndex:Q.max,showSearch:$}),ye=!de&&"right"===ae||de&&"left"===ae;return S.createElement($m,{className:cm.barContainer,checkboxes:y,style:X,styles:U,isGridCol:le,isGridMode:"grid"===G,dense:V,direction:E,sizes:j,frequencyMode:q,freqHitsValue:ye,contentFontStyle:W,"data-testid":"listbox.item"},S.createElement(ig,{role:"row","aria-label":be,"aria-selected":re,"aria-setsize":Q.max,"aria-rowindex":Q.currentIndex,ref:ee,container:!0,dataLayout:G,cellPaddingRight:ve,layoutOrder:K,itemPadding:Z,gap:0,className:Pm(["value",...oe]),classes:{root:cm.fieldRoot},onClick:c,onMouseDown:u,onMouseUp:d,onMouseEnter:p,onKeyDown:te,onTouchStart:h,onTouchEnd:m,onContextMenu:ie,tabIndex:pe&&I.innerTabStops?0:-1,"data-n":null==ne?void 0:ne.qElemNumber,direction:E,fillHeight:H},(null==ne?void 0:ne.qFrequency)&&S.createElement(ng,{qFrequency:null==ne?void 0:ne.qFrequency,histogram:O,checkboxes:y,isSelected:re,frequencyMax:L}),S.createElement(Qf,{item:!0,style:fe,className:Pm([cm.cell,cm.selectedCell]),title:"".concat(se)},ce?S.createElement(eg,{onChange:s,labels:ce,checkboxes:y,dense:V,showGray:T,qElemNumber:ne.qElemNumber,isSelected:re,cell:ne,isGridCol:le,isSingleSelect:_,valueTextAlign:ae,styles:U}):S.createElement(tg,{onChange:s,label:se,qElemNumber:ne.qElemNumber,isSelected:re,dense:V,cell:ne,isGridCol:le,showGray:T,isSingleSelect:_,checkboxes:y,valueTextAlign:ae,styles:U})),C&&S.createElement(rg,{cell:ne,checkboxes:y,dense:V,showGray:T}),ge&&S.createElement(Qf,{item:!0,className:cm.icon},he&&S.createElement(Qh,{style:ue,size:"small"}),me&&S.createElement(hm,{style:ue,size:"small"}))))}var bg=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function yg(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||bg(r)&&bg(o)))return!1;var r,o;return!0}function xg(e,t){var n;void 0===t&&(t=yg);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 Sg="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function wg(e){cancelAnimationFrame(e.id)}function Eg(e,t){var n=Sg();var r={id:requestAnimationFrame((function o(){Sg()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var kg=-1;function Cg(e){if(void 0===e&&(e=!1),-1===kg||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),kg=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return kg}var _g=null;function Rg(e){if(void 0===e&&(e=!1),null===_g||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?_g="positive-descending":(t.scrollLeft=1,_g=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),_g}return _g}var Lg=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Og(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,f=e.getRowStartIndexForOffset,p=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,is(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:is(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=xg((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=xg((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,f=r._getItemStyleCache(m&&l,m&&s,m&&c),p=e+":"+t;if(f.hasOwnProperty(p))o=f[p];else{var h=n(r.props,t,r._instanceProps),g="rtl"===s;f[p]=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=xg((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(Rg()){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&&wg(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Eg(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Gl(t,e),t.getDerivedStateFromProps=function(e,t){return Ig(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,f=i.rowCount,p=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=Cg();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,f-1)));var b=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>p?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(Rg()){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&&wg(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,f=e.itemKey,p=void 0===f?Lg:f,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,S=this.state.isScrolling,w=this._getHorizontalRangeToRender(),E=w[0],k=w[1],C=this._getVerticalRangeToRender(),_=C[0],R=C[1],L=[];if(r>0&&g)for(var O=_;O<=R;O++)for(var I=E;I<=k;I++)L.push(x.createElement(t,{columnIndex:I,data:d,isScrolling:b?S:void 0,key:p({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 x.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:ct({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},x.createElement(c||u||"div",{children:L,ref:s,style:{height:T,pointerEvents:S?"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],f=u[1],p=u[2],h=u[3];this._callOnItemsRendered(a,l,d,f,s,c,p,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,f=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var p=r(this.props,d,this._instanceProps),h=o(this.props,p,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,f),g=u&&"forward"!==c?1:Math.max(1,f);return[Math.max(0,p-m),Math.max(0,Math.min(t-1,h+g)),p,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=f(this.props,c,this._instanceProps),h=p(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}(x.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var Ig=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},Tg=function(e,t){return e};function Pg(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,is(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:is(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=xg((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=xg((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),f=o(r.props,e,r._instanceProps),p="horizontal"===a||"horizontal"===s,h="rtl"===a,m=p?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:p?0:d,height:p?"100%":f,width:p?f:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=xg((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(Rg()){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<a?"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&&wg(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Eg(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Gl(t,e),t.getDerivedStateFromProps=function(e,t){return Mg(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?Cg():0:s.scrollHeight>s.clientHeight?Cg():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(Rg()){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&&wg(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,f=void 0===d?Tg:d,p=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,S="horizontal"===o||"horizontal"===p,w=S?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),k=E[0],C=E[1],_=[];if(c>0)for(var R=k;R<=C;R++)_.push(x.createElement(t,{data:u,key:f(R,u),index:R,isScrolling:v?y:void 0,style:this._getItemStyle(R)}));var L=r(this.props,this._instanceProps);return x.createElement(h||m||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:ct({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},x.createElement(l||s||"div",{children:_,ref:a,style:{height:S?"100%":L,pointerEvents:y?"none":void 0,width:S?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),f=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+f)),c,u]},t}(x.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Mg=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Ng=Og({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 f=Math.round(d+(u-d)/2);return f<Math.ceil(s/2)?0:f>c+Math.floor(s/2)?c:f;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 f=Math.round(d+(u-d)/2);return f<Math.ceil(l/2)?0:f>c+Math.floor(l/2)?c:f;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}}),Dg=Pg({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,f="horizontal"===a||"horizontal"===u?d:l,p=Math.max(0,s*c-f),h=Math.min(p,t*c),m=Math.max(0,t*c-f+c+i);switch("smart"===n&&(n=r>=m-f&&r<=h+f?"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(f/2)?0:g>p+Math.floor(f/2)?p: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 qg="#BBB",Ag="#f1f1f1",zg={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const jg=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,Fg=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,$g=(e,t,n,r)=>e===t*n+r+n;function Bg(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=jg(t,c),d=c?r.column:r.row,f=(c?o:i)>=d,p=$g(l,u,c?i:o,s),h=!!s&&Fg(t,c),m=f&&!p&&u>=d-1||h||a.state.show;a.set(m)}const{StyledFixedSizeList:Wg,StyledFixedSizeGrid:Ug}=function(){const e=e=>({scrollbarColor:"".concat(qg," ").concat(Ag),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:Ag},"&::-webkit-scrollbar-thumb":{backgroundColor:qg,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:yr(Dg,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(zg.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:yr(Ng,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(zg.styledScrollbars)]:e(n)}}))}}();const Hg=(e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map((e=>n.measureText(e).width)));const r=n.measureText(e);return Math.ceil(r.width||0)},Vg=e=>{const t=x.useMemo((()=>"text"in e?e:{}),[e]);return x.useMemo((()=>Hg(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function Gg(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Kg(e){let{isGridMode:t,dense:n}=e;let r=n?Im:t?Lm:Om;return t&&(r+=Tm),r}function Zg(e){let{layout:t,width:n,height:r,listCount:o,count:i,freqIsAllowed:a,checkboxes:l,styles:s}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:f,dense:p,dataLayout:h}=c,{fontSize:m="12px",fontFamily:g="Source sans pro"}=(null==s?void 0:s.content)||{},v="".concat(m," ").concat(g),b=Vg({text:Gg(t),font:v}),y=Vg({text:Gg(5),font:v}),x=Vg({text:Gg(8),font:v}),S=a?y:0,w=l?_m:0;let E=Cm+S+w;!l&&E>=wm&&(E+=_m);let k,C,_,R,L=b+18+S+w;!l&&L>=wm&&(L+=_m),L=Math.min(km,Math.max(L,E));const O=Kg({isGridMode:"grid"===h,dense:p}),I=null!=r?r:8*O;if(u){let e=n;"row"===u?(k={overflowX:"hidden"},e+=2*Tm,({rowCount:R,columnWidth:_,columnCount:C}=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-Em;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),s=Math.max(s,1);const u=l/s;return{rowCount:Math.ceil(n/s),columnWidth:u,columnCount:s}}({maxVisibleColumns:f,listCount:o,containerWidth:e,columnAutoWidth:L,itemMinWidth:E}))):(k={overflowY:"hidden"},({rowCount:R,columnWidth:_,columnCount:C}=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),t=Math.max(t,1);const d=Math.ceil(o/t);return{columnWidth:Math.max(a,l/d,s),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:O,listCount:o,listHeight:I,columnAutoWidth:L,containerWidth:e,itemMinWidth:E})))}C=("singleColumn"===h?1:C)||1,R=("singleColumn"===h?i:R)||o;const T=c.dense?838e3:577e3;R=Math.min(R,T);const P=Math.floor(3355e4/_);C=Math.min(C,P)||1;const M=R*C,N=Math.min(o,M);return{columnCount:C,columnWidth:_,rowCount:R,overflowStyling:k,itemHeight:O,listHeight:I,listWidth:n,scrollBarWidth:Em,count:i,listCount:N,maxCount:{row:T,column:P},itemPadding:Tm,textWidth:b,freqMinWidth:y,freqMaxWidth:x}}const Jg=e=>{let{pages:t=[],minimumBatchSize:n,count:r}=e;const o=t.some((e=>e.qArea.qHeight<n)),i=Math.max(...t.map((e=>e.qArea.qTop+e.qArea.qHeight)));return o?i:r};const[Xg,Qg]=Zs({});function Yg(e){const t="".concat(e.id),[n]=Xg();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const ev=$l(Sc,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return f({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px"),whiteSpace:"normal"},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function tv(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:i}=x.useContext(Vs);return S.createElement(zh,{title:o?i.get(n):""},S.createElement(ev,{width:t,dense:r,component:"div",variant:"body1",py:"12px"},i.get(n)))}var nv,rv,ov={},iv={},av=o(oc);function lv(){return nv||(nv=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=av}(iv)),iv}function sv(){if(rv)return ov;rv=1;var e=Ha();Object.defineProperty(ov,"__esModule",{value:!0}),ov.default=void 0;var t=e(lv()),n=Mr();return ov.default=(0,t.default)((0,n.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"),ov}var cv=r(sv());const uv=$l(uc)((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}})),dv=$l("div")((()=>({paddingLeft:"6px",flexGrow:1}))),fv=$l("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),pv=$l(cv)((()=>({fontSize:"14px"})));function hv(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 S.createElement(uv,{left:l,style:{maxWidth:a}},S.createElement(dv,null,S.createElement(tv,{text:t,dense:r,width:s,tooltip:c})),S.createElement(fv,{dense:r},i&&S.createElement(mc,{"aria-label":"close",onClick:()=>n()},S.createElement(pv,null))))}const mv=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const gv=80;function vv(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>gv,{frequencyEnabled:i=!1}=(null==n?void 0:n.qListObject)||{},a=!["N",void 0].includes(r);return!(!o||!a&&!i)}const bv=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:"[".concat(e.replace(/\]/g,"]]"),"]"):e,yv=e=>{const t=bv(e);return"Max(AGGR(Count(".concat(t,"), ").concat(t,"))")},xv=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=x.useState(),[i,a]=x.useState(n);return x.useEffect((()=>{if(!n)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=yv(r);return(await t.evaluateEx(o)).qNumber})(t,e);o(n),a(!1)})()}),[n&&t]),{frequencyMax:n?r:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:i}};const Sv=["isLoadingData"],wv=100,Ev=$l("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function kv(e){var t,n;let{model:r,app:o,constraints:i,layout:a,selections:l,selectionState:s,direction:c,checkboxes:d,height:h,width:m,frequencyMode:g,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:w=!1,keyboard:E={},showGray:k=!0,scrollState:C,keyScroll:_={state:{},reset:()=>{}},currentScrollIndex:R={set:()=>{}},renderedCallback:L,onCtrlF:O,showSearch:I,isModal:T,styles:P}=e;const{translator:M}=x.useContext(Vs),[N,D]=x.useState(!1),q=!(!a||!a.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:A=d,histogram:z}=null!=a?a:{},j=x.useRef(null),F=x.useRef({queue:[],validPages:!1,dataOffset:0}),$=x.useRef({pages:[]}),{frequencyMax:B,awaitingFrequencyMax:W}=xv(o,a),U=function(e){let{local:t,loaderRef:n,model:r,fetchStart:o,scrollTimeout:i,postProcessPages:a,listData:l}=e;const[s,c]=x.useState(!1),[u,d]=x.useState([]);let[f]=x.useState(0);const p=(e,s)=>{const u=t.current.dataOffset;t.current.queue.push({start:e+u,stop:s+u});const p=!!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>f?n.start-f:0,qHeight:f,qLeft:0,qWidth:1},{qTop:n.start,qHeight:f,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)}),p?i:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(f=t),p}},pages:u,isLoading:s}}({local:F,loaderRef:j,model:r,fetchStart:b,scrollTimeout:0,postProcessPages:y,listData:$}),{isLoadingData:H}=U,V=p(U,Sv),{getStoreValue:G,setStoreValue:K}=Yg(r),Z=x.useCallback(V.loadMoreItems,[a]),[J,X]=x.useState({show:!1,dismissed:!1}),[Q,Y]=x.useState([]);null!=V&&V.pages&&s.update({setPages:Y,pages:V.pages,isSingleSelect:q,layout:a});const ee=null==a?void 0:a.qListObject.qDimensionInfo.qCardinal;(null!=V&&V.pages.length&&!W||0===ee)&&(null==L||L());const te=x.useCallback((e=>{if(null==Q||!Q.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=Q.filter((e=>t(e)))[0];return n&&t(n)}),[a,Q]),{interactionEvents:ne,select:re}=fm({selectionState:s,selections:l,checkboxes:A,doc:document,loaderRef:j}),{layoutOptions:oe={}}=a||{};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=f({},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"===_.state.scrollPosition;if(a&&a.qSelectionInfo.qInSelections||e)return void(e&&_.reset());F.current.dataOffset=0,le(0)}};v&&v.call(null,se),x.useEffect((()=>{C&&!N&&j.current&&(j.current._listRef.scrollToItem(C.initScrollPos),D(!0))}),[j.current]),x.useEffect((()=>{se()}),[a,F.current.dataOffset]);let ce=wv;const ue="grid"!==oe.dataLayout,de=null==a||null===(t=a.qListObject.qSize)||void 0===t?void 0:t.qcy,fe=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?Jg({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:Q,minimumBatchSize:ce,count:de,calculatePagesHeight:w});let pe=vv({itemWidth:m,layout:a,frequencyMode:g});const he=function(e){return e.some((e=>{let{qMatrix:t}=e;return t.some((e=>{var t;let[n]=e;return!(null===(t=n.qFrequency)||void 0===t||!t.match("%"))}))}))?"P":"-"}(Q),me=Zg({layout:a,width:m,height:h,listCount:fe,count:de,freqIsAllowed:pe,checkboxes:A,styles:P});me.columnWidth&&(pe=vv({itemWidth:me.columnWidth,layout:a,frequencyMode:g}));const{listCount:ge}=me;K("listCount",ge);const ve=G("inputText"),be=function(e){let{layout:t,searchInputText:n,listCount:r}=e;const{translator:o}=x.useContext(Vs),i=[];if(null!=n&&n.length){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(r),t=o.get(e,[r]);i.push(t)}const a=function(e){var t;let{layout:n,translatorDynamic:r}=e;const{qStateCounts:o={}}=(null==n||null===(t=n.qListObject)||void 0===t?void 0:t.qDimensionInfo)||{},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"}return r.get(a,[i])}({layout:t,translatorDynamic:o});i.push(a);const l=i.filter((e=>!(null==e||!e.length))).join(". ");return l}({layout:a,searchInputText:ve,listCount:ge}),ye=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=mv(i,o.listCount),t=i.qListObject.qDimensionInfo.qCardinal,l=!0}return{scrollIndex:t,offset:s,triggerRerender:l}}({position:e,isRow:ie,sizes:me,layout:a,offset:F.current.dataOffset});F.current.dataOffset=n,r&&s.triggerStateChanged(),le(t)};x.useEffect((()=>{const e=_.state;e.up?le(R.state.start-e.up):e.down?le(R.state.stop+e.down):e.scrollPosition&&ye(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&_.reset()}),[_.state.up,_.state.down,_.state.scrollPosition]);const{textAlign:xe}=(null==a?void 0:a.qListObject.qDimensionInfo)||{},[Se,we]=x.useState({first:!1,last:!1}),{List:Ee,Grid:ke}=function(e){let{layout:t,width:n,checkboxes:r,local:o,isVertical:i,pages:a,selectionState:l,interactionEvents:s,deducedFrequencyMode:c,histogram:d,isSingleSelect:p,select:h,selectAll:m,onCtrlF:g,textAlign:v,selections:b,keyboard:y,showGray:x,scrollState:w,direction:E,sizes:k,listCount:C,overflowDisclaimer:_,setScrollPosition:R,focusListItems:L,setCurrentScrollIndex:O,constraints:I,frequencyMax:T,freqIsAllowed:P,translator:M,showSearch:N,isModal:D,styles:q}=e;const{layoutOptions:A={}}=t||{},{columnWidth:z,listHeight:j,itemHeight:F,rowCount:$,columnCount:B}=k||{},W=("grid"===A.dataLayout?z:n)>wm,U={direction:"rtl"===E?"rtl":"ltr",useIsScrolling:!0,className:zg.styledScrollbars},H=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,V=j<=F,G=f(f({isLocked:H,column:!i,pages:a},H||l.selectDisabled()?{}:s),{},{checkboxes:r,layoutOptions:A,deducedFrequencyMode:c,freqIsAllowed:P,isSingleSelect:p,textAlign:v,sizes:k,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:d,keyboard:y,showGray:x,showTick:W,dataOffset:o.current.dataOffset,focusListItems:L,direction:E,translator:M,showSearch:N,isModal:D,styles:q,fillHeight:V});return{List:e=>{let{onItemsRendered:r,ref:i}=e;return o.current.listRef=i,S.createElement(Wg,u({},U,{dataTestid:"fixed-size-list",scrollDisabled:null==I?void 0:I.active,height:j,width:n,itemCount:C,itemData:f(f({},G),{},{listCount:C}),itemSize:F,onItemsRendered:e=>{var n;O({start:e.visibleStartIndex,stop:e.visibleStopIndex}),w&&w.setScrollPos(e.visibleStopIndex),Bg({renderProps:e,layoutOptions:A,maxCount:k.maxCount,columnCount:B,rowCount:$,overflowDisclaimer:_,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(f({},e))},ref:i}),vg)},Grid:e=>{let{onItemsRendered:r,ref:i}=e;const{overflowStyling:a,scrollBarWidth:l}=k,{layoutOrder:s}=A||{},c=Math.min(j,$*F+l);return o.current.listRef=i,S.createElement(Ug,u({},U,{dataTestid:"fixed-size-grid",scrollDisabled:null==I?void 0:I.active,height:c,width:n,columnCount:B,columnWidth:z,rowCount:$,rowHeight:F,style:f({},a),itemData:f(f({},G),{},{column:void 0,columnCount:B,rowCount:$}),onItemsRendered:e=>{var n;const i="row"===s;O({start:i?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:i?e.visibleRowStopIndex:e.visibleColumnStopIndex});const a=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,f,p,h;return n&&n.setScrollPos(u),"column"===r?(d=s*o,f=a,p=c*o,h=l):(d=s,f=a*i,p=c,h=l*i),{visibleStartIndex:d+f,visibleStopIndex:p+h}}({renderProps:e,scrollState:w,layoutOrder:s,rowCount:$,columnCount:B});Bg({renderProps:e,layoutOptions:A,maxCount:k.maxCount,columnCount:B,rowCount:$,overflowDisclaimer:_,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(a)},ref:i}),vg)}}}({direction:c,layout:a,width:m,checkboxes:A,deducedFrequencyMode:he,histogram:z,keyboard:E,showGray:k,interactionEvents:ne,select:re,selectAll:()=>{s.clearItemStates(!1),r.selectListObjectAll("/qListObjectDef")},onCtrlF:O,textAlign:xe,isVertical:ue,pages:Q,selectionState:s,isSingleSelect:q,selections:l,scrollState:C,local:F,sizes:me,listCount:ge,overflowDisclaimer:{state:J,set:e=>X((t=>f(f({},t),{},{show:e})))},setScrollPosition:ye,focusListItems:{first:Se.first,setFirst:e=>we((t=>f(f({},t),{},{first:e}))),last:Se.last,setLast:e=>we((t=>f(f({},t),{},{last:e})))},setCurrentScrollIndex:R.set,constraints:i,frequencyMax:B,freqIsAllowed:pe,translator:M,showSearch:I,isModal:T,styles:P}),{columnWidth:Ce,listHeight:_e,itemHeight:Re}=me||{};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:m,columnWidth:Ce,listHeight:_e,itemHeight:Re})),S.createElement(Ev,null,S.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},be),!ge&&ee>0&&S.createElement(tv,{width:m,text:"Listbox.NoMatchesForYourTerms"}),S.createElement(rm,{isItemLoaded:te,itemCount:ge||1,loadMoreItems:Z.with({minimumBatchSize:ce}),threshold:0,minimumBatchSize:ce,ref:j,role:"grid"},ue?Ee:ke),J.show&&!J.dismissed&&S.createElement(hv,{text:"Listbox.ItemsOverflow",dismiss:()=>X((e=>f(f({},e),{},{dismissed:!0}))),parentWidth:null==j||null===(n=j.current)||void 0===n||null===(n=n._listRef)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.width,dense:null==oe?void 0:oe.dense}))}const Cv=e=>f(f({},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"}}]}),_v=e=>f(f({},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"}}]}),Rv=e=>f(f({},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"}}]}),Lv=e=>f(f({},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 Ov=e=>{let{layout:t,model:n,translator:r,selectionState:o,isDirectQuery:i=!1,selections:a}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];const l="/qListObjectDef",s=()=>{a.isActive()||a.begin(l)};return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:Cv,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectAll(l)}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:Rv,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectPossible(l)}},!i&&{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:_v,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectAlternative(l)}},!i&&{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:Lv,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectExcluded(l)}}].filter(Boolean)};const Iv=e=>f(f({},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 Tv(e){const t=_l(),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 Pv={className:"njs-cell-action"},Mv=S.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const i=_l(),{hidden:a,disabled:l,style:s,hasSvgIconShape:c}=Tv(r);if(a)return null;const u=Number.parseInt(i.spacing(.5),10),d=r.keyboardAction||r.action,f=d?e=>["Enter"].includes(e.key)&&d():null,p=d?e=>[" ","Spacebar"].includes(e.key)&&d():null,h="actions-toolbar-".concat(r.key);return S.createElement(mc,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:f,onKeyUp:p,disabled:l,style:s,className:[Pv.className,h].join(" "),size:"large",disableRipple:!0,"aria-expanded":n,"aria-controls":"moreMenuList","data-testid":h},c&&Jh(r.getSvgIconShape()),o&&S.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),Nv=e=>f(f({},e),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]});var Dv=e=>Jh(Nv(e));const qv=e=>f(f({},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 Av=e=>Jh(qv(e));const zv="njs-action-toolbar-more",jv={icon:"".concat("More","-icon")},Fv=$l(Yp)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(jv.icon," *")]:{color:t.palette.text.primary}}}));function $v(e){let{item:t,autoFocus:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:i,hasSvgIconShape:a}=Tv(t);return o?null:S.createElement(oh,{autoFocus:n,title:t.label,onClick:()=>{t.action(),r()},disabled:i,tabindex:"0"},a&&S.createElement(Dp,{className:jv.icon},Jh(t.getSvgIconShape())),S.createElement(Sc,{noWrap:!0},t.label))}const Bv=S.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:o,popoverProps:i={},popoverPaperStyle:a={},onCloseOrActionClick:l=(()=>{}),disablePortal:s=!0}=e;const c=n.length>0,d=n.findIndex((e=>!e.disabled));return c&&S.createElement(Fv,u({},i,{onClose:l,ref:t,open:r,anchorEl:o.current,getContentAnchorEl:s?null:void 0,container:s?o.current:void 0,disablePortal:s,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:zv},paper:{style:f({pointerEvents:"auto",maxWidth:"250px"},a)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),S.createElement(Bp,{id:"moreMenuList"},n.map(((e,t)=>S.createElement($v,{key:t,item:e,autoFocus:t===d,onActionClick:l})))))})),Wv=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},Uv=e=>{const t=document.querySelector("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");if(!n.length)return;n[Math.min(Math.max(0,e),n.length-1)].focus()};const Hv="ActionsToolbar",Vv={item:"".concat(Hv,"-item"),itemSpacing:"".concat(Hv,"-itemSpacing")},Gv=$l(Yp)((e=>{let{theme:t}=e;return{["& .".concat(Vv.itemSpacing)]:{padding:t.spacing(0,.25)}}})),Kv={className:"njs-action-toolbar-popover"},Zv=S.forwardRef(((e,t)=>{let{className:n,ariaExpanded:r=!1,actions:o=[],addAnchor:i=!1,isRtl:a=!1}=e;return o.length>0?S.createElement(Qf,{item:!0,container:!0,gap:0,flexDirection:a?"row-reverse":"row",wrap:"nowrap",className:n},o.map(((e,n)=>S.createElement(Qf,{item:!0,key:e.key,className:"".concat(Vv.itemSpacing," ").concat(Vv.item)},S.createElement(Mv,{ariaExpanded:r,key:e.key,item:e,ref:0===n?t:null,addAnchor:i}))))):null})),Jv={pointerEvents:"none"};function Xv(e){var t,n;let{show:r=!0,actions:o=[],maxItems:i=3,selections:a={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:l,more:s={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{},disablePortal:!0},popover:c={show:!1,anchorEl:null},focusHandler:u=null,actionsRefMock:d=null,isRtl:p,autoConfirm:h=!1,layout:m}=e;const g=function(e){let{api:t,layout:n,onConfirm:r=(()=>{}),onCancel:o=(()=>{}),onKeyDeactivate:i=(()=>{})}=e;const{translator:a}=x.useContext(Vs);return[{key:"clear",type:"icon-button",label:a.get("Selection.Clear"),enabled:()=>t.canClear(n),action:()=>t.clear(),getSvgIconShape:qv},{key:"cancel",type:"icon-button",label:a.get("Selection.Cancel"),enabled:()=>t.canCancel(n),action:()=>{o(),t.cancel()},keyboardAction:()=>{i(),o(),t.cancel()},getSvgIconShape:Nv},{key:"confirm",type:"icon-button",label:a.get("Selection.Confirm"),enabled:()=>t.canConfirm(n),action:()=>{r(),t.confirm()},keyboardAction:()=>{i(),r(),t.confirm()},getSvgIconShape:pm}]}(f(f({},a),{},{layout:m})),{translator:v,keyboardNavigation:b}=x.useContext(Vs),[y,w]=x.useState(!1),E={vertical:12,horizontal:p?0:(null!==(t=null===(n=c.anchorEl)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)-7},k={vertical:"bottom",horizontal:p?-7:"right"},C=x.useRef(),_=x.useRef(),R=_l(),L=x.useMemo((()=>({margin:R.spacing(.5,0)}))),O=e=>{const t=C.current||d;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},I=x.useMemo((()=>function(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r,selections:o,isRtl:i}=e;return e=>{const{target:a,nativeEvent:l}=e,{keyCode:s}=l;switch(s){case ag.ARROW_LEFT:case ag.ARROW_DOWN:case ag.ARROW_RIGHT:case ag.ARROW_UP:if(a.classList.contains("njs-cell-action")){const e=Wv(a);let t=[ag.ARROW_LEFT,ag.ARROW_DOWN].includes(s);t=i?!t:t,Uv(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case ag.SPACE:e.preventDefault();break;case ag.TAB:t&&null!=n&&n.refocusContent&&(e.shiftKey&&r(!1)===e.target||!e.shiftKey&&r(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),n.refocusContent());break;case ag.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:b,focusHandler:u,getEnabledButton:O,selections:a,isRtl:p})),[b,u,O,a,p]);if(x.useEffect((()=>()=>{w(!1)}),[c.show,r,a.show]),x.useEffect((()=>{if(!u)return;u.on("focus_toolbar_first",(()=>{const e=O(!1);null==e||e.focus()})),u.on("focus_toolbar_last",(()=>{const e=O(!0);null==e||e.focus()}))}),[]),h)return;let T=s.enabled,P=s.actions;const M=s.alignTo||_,N=o.filter((e=>!e.hidden));if(N.length>i){const e=N.splice(-(N.length-i)-1);T=!0,P=[...e,...s.actions]}if(!a.show&&0===N.length&&!T)return null;const D={key:"more",label:v.get("Menu.More"),getSvgIconShape:Iv,hidden:!1,active:y,enabled:()=>T,action:()=>w(!y)},q=N.length>0,A=P.length>0,z=q&&a.show||A&&a.show,j=S.createElement(Qf,{ref:C,onKeyDown:I,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:p?"row-reverse":"row"}},(null==l?void 0:l.length)&&S.createElement(Zv,{className:"actions-toolbar-extra-actions",actions:l,isRtl:p}),q&&S.createElement(Zv,{actions:N}),A&&S.createElement(Zv,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:_,ariaExpanded:y,actions:[D],addAnchor:!0}),z&&S.createElement(Qf,{item:!0,className:Vv.itemSpacing,style:L},S.createElement(Df,{orientation:"vertical"})),a.show&&S.createElement(Zv,{className:"actions-toolbar-default-actions",actions:g,isRtl:p}),y&&S.createElement(Bv,{show:y,actions:P,alignTo:M,popoverProps:s.popoverProps,popoverPaperStyle:s.popoverPaperStyle,onCloseOrActionClick:()=>{w(!1)},disablePortal:s.disablePortal}));return c.show?S.createElement(Gv,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:c.show,anchorEl:c.anchorEl,anchorOrigin:E,transformOrigin:k,hideBackdrop:!0,style:Jv,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:Kv.className,style:{pointerEvents:"auto",padding:R.spacing(.5,.25)}}}},j):r&&j}var Qv=e=>Jh((e=>f(f({},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 Yv="/qListObjectDef",eb=e=>null==e?void 0:e.substring(0,64e3),tb=$l(ph,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})((e=>{let{styles:t,dense:n,isRtl:r}=e,o={};return n&&(o={fontSize:12,"& input":{paddingTop:"5px",paddingBottom:"5px",color:t.search.color,textAlign:r?"right":"left"}}),f({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:t.search.backgroundColor,backdropFilter:t.background.backgroundImage?t.search.backdropFilter:void 0,paddingLeft:0,paddingRight:0,flexDirection:r?"row-reverse":"row","& fieldset":{borderColor:"".concat(t.search.borderColor),borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:"".concat(t.search.highlightBorderColor," !important")},"& .MuiInputBase-root":f({},t.search),"& *":{color:t.search.color},"& input":{color:t.search.color,textAlign:r?"right":"left"}},o)})),nb=$l(mc)((()=>({border:0,padding:"8px",cursor:"pointer",lineHeight:"12px","&:hover":{backgroundColor:"transparent"},":focus-visible":{borderRadius:"4px",boxShadow:"inset 0 0 0 2px rgb(2, 117, 217)"}})));var rb=x.forwardRef((function(e,t){let{popoverOpen:n,selections:r,selectionState:o,model:i,keyboard:a,dense:l=!1,visible:s=!0,autoFocus:c=!0,beginSelectionOnFocus:u=!0,wildCardSearch:d=!1,searchEnabled:f,direction:p,hide:h,styles:m}=e;const{translator:g}=x.useContext(Vs),[v,b]=x.useState(""),[y,w]=x.useState(!1),E=x.useRef(),k=x.useRef(),C=g.get("Listbox.Clear.Search"),{getStoreValue:_,setStoreValue:R}=Yg(i),L="rtl"===p,O=async()=>{try{await i.abortListObjectSearch(Yv)}finally{b("")}};x.useEffect((()=>s?()=>O():()=>{}),[s]),x.useEffect((()=>(r.on("deactivated",O),()=>{r.removeListener&&r.removeListener("deactivated",O)})),[]),x.useEffect((()=>{if(y&&E.current){const e=v.length-1;E.current.setSelectionRange(e,e),w(!1)}}),[y,E.current]),x.useEffect((()=>{R("inputText",v)}),[v]);const I=async()=>{let e;const t=eb(v),n=await i.searchListObjectFor(Yv,t);return o.selectDisabled()?n:(n&&t.length&&_("listCount")>0&&(e=i.acceptListObjectSearch(Yv,!0),r.selectionsMade=!0,o.clearItemStates(!1),b("")),e)},T=()=>{var e;null===(e=E.current)||void 0===e||e.focus()},P=()=>{O(),T()};return x.useImperativeHandle(t,(()=>({focus(){T()}}))),s&&!1!==f?S.createElement(tb,{styles:m,dense:l,isRtl:L,startAdornment:S.createElement(pp,{position:"start",sx:{marginLeft:l?"8px":"".concat(bm,"px")}},S.createElement(Qv,{size:l?"small":"normal"})),endAdornment:S.createElement(pp,{position:"end",sx:{marginLeft:0}},""!==v&&S.createElement(nb,{tabIndex:0,ref:k,title:C,"aria-label":C,onClick:P,onKeyDown:e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.key){case"Enter":P();break;case"Tab":e.shiftKey?T():fg(t);break;default:return}e.preventDefault(),e.stopPropagation()}},S.createElement(Dv,{size:l?"small":"normal"}))),className:"search",inputRef:E,size:"small",fullWidth:!0,placeholder:g.get("Listbox.Search"),value:v,onFocus:()=>{d&&(b("**"),w(!0)),u&&!o.selectDisabled()&&!r.isModal()&&r.begin("/qListObjectDef")},onChange:async e=>{const t=eb(e.target.value);return b(t),t.length?i.searchListObjectFor(Yv,t):O()},onKeyDown:async e=>{const{currentTarget:t}=e,o=t.closest(".listbox-container");switch(e.key){case"Enter":I();break;case"Escape":if(fg(o),r.cancel(),n)return;break;case"Tab":e.shiftKey?pg(o)||a.focusSelection():k.current?k.current.focus():fg(o);break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;h&&(h(),fg(o));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:c,inputProps:{tabIndex:a.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":g.get("Listbox.Search.ScreenReaderInstructions")}}):null}));function ob(e){if(!e.session)return[];const{selectionStore:t}=x.useContext(Vs),[n]=t.useAppSelectionsStore(),r=e?e.id:null;let o=n.get(r);return x.useEffect((()=>{e&&!o&&(o=function(e){let{app:t,selectionStore:n}=e;const r="".concat(t.id),{modalObjectStore:o,appModalStore:i}=n,a=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{model:t,objectSelections:n}=o.get(r)||{};t&&(await t.endSelections(e),o.clear(r),n.emit("deactivated"))},l={begin:async e=>{var n;let{model:i,paths:l,accept:s=!0,objectSelections:c}=e;if(c===(null===(n=o.get(r))||void 0===n?void 0:n.objectSelections))return;a(s),o.set(r,{model:i,objectSelections:c});const u=Array.isArray(l)?l:[l],d=async e=>{try{await i.beginSelections(u),o.set(r,{model:i,objectSelections:c})}catch(n){6003!==n.code||e?o.clear(r):(await t.abortModal(s),d(!0))}};await d()},end:a};i.set(r,l);const s={model:t,isInModal:()=>!!o.get(r),isModal(e){var t;return e?(null===(t=o.get(r))||void 0===t?void 0:t.objectSelections)===e:!!o.get(r)},forward:()=>l.end().then((()=>t.forward())),back:()=>l.end().then((()=>t.back())),clear:()=>l.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return l.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return s}({app:e,selectionStore:t}),n.set(r,o),n.dispatch(!0))}),[e]),[o]}function ib(e){return Object.keys(O.prototype).forEach((t=>{e[t]=O.prototype[t]})),O.init(e),e}const ab=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({model:o,paths:e,accept:!0,objectSelections:l}))},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(l),goModal:e=>r.begin({model:o,paths:e,accept:!1,objectSelections:l}),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return ib(l),l},lb=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 sb(e,t,n,r){const o=Array.isArray(n)?n:[n],[i]=ob(e),[a]=Vh(t),{appModalStore:l}=x.useContext(Vs).selectionStore,s=l.get(e.id),[c,u]=x.useState();return x.useEffect((()=>{i&&t&&!c&&u(ab({appSelections:i,appModal:s,model:t}))}),[i,t]),x.useEffect((()=>{if(!c)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=lb({elements:o,objectSelections:c,options:r});return c.addListener("activated",e),c.addListener("deactivated",t),()=>{c.isActive()&&c.confirm(),c.removeListener("activated",e),c.removeListener("deactivated",t)}}),[c]),x.useEffect((()=>{c&&c.setLayout(a)}),[c,a]),[c]}function cb(){const e=f(f({itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{update(t){var n,r;let{setPages:o,pages:i,isSingleSelect:a,selectDisabled:l,layout:s}=t;this.setPages=o;const c=this.lastRowCount===s.qListObject.qSize.qcy,u=this.lastApprMaxGlyphCount===s.qListObject.qDimensionInfo.qApprMaxGlyphCount;c&&u||(this.lastRowCount=s.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=s.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==i&&void 0!==i&&(e.enginePages=null!=i?i:[],e.selectedInEngine=am(i),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=a,e.selectDisabled=l||e.selectDisabled,e.isDimCalculated=null!==(n=null==s||null===(r=s.qListObject)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.qIsCalculated)&&void 0!==n&&n},allowedToSelect:()=>!e.selectDisabled()&&!(e.isDimCalculated&&e.selectableValuesUpdating),setSelectableValuesUpdating(){e.selectableValuesUpdating=!0},useClientItemState:t=>e.ignoreSelectionState||t in e.itemStates,isSelected:t=>e.useClientItemState(t)?!!e.itemStates[t]:e.selectedInEngine.includes(t),getState(t){const{qElemNumber:n,qState:r}=t;return e.useClientItemState(n)?e.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(t,n,r){const o=e.isSelected(t);o&&!n?e.itemStates[t]=!1:o||(null==r||r.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages(t){const n=t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[f(f({},n),{},{qState:r}),...t.slice(1)]}));return f(f({},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 ub=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 db(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return ub(t,"qSelected",0)+ub(t,"qSelectedExcluded",0)+ub(t,"qLocked",0)+ub(t,"qLockedExcluded",0)>0}function fb(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function pb(e){if("object"==typeof e&&fb(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),r=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),n=parseInt(o[2],16),r=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),n=parseInt(o[2]+o[2],16),r=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+r}const hb={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function mb(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&"qcm-color"===a.type)({r:n,g:r,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(fb(e[0]))({r:n,g:r,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let l;if(l=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))n=parseInt(l[1],10),r=parseInt(l[2],10),o=parseInt(l[3],10);else if(l=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))n=parseInt(l[1],10),r=parseInt(l[2],10),o=parseInt(l[3],10),i=parseFloat(l[4]);else if(l=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(l[1],10)/255,n=parseInt(l[2],10),r=parseInt(l[3],10),o=parseInt(l[4],10);else if(l=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))n=parseInt(l[1],16),r=parseInt(l[2],16),o=parseInt(l[3],16),i=1;else if(l=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))n=parseInt(l[1]+l[1],16),r=parseInt(l[2]+l[2],16),o=parseInt(l[3]+l[3],16),i=1;else if(l=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(l[1]),t=parseFloat(l[3]),a=parseFloat(l[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const s=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=s*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}const f=a-.5*s;n=d[0]+f,r=d[1]+f,o=d[2]+f,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else if(l=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(l[1]),t=parseFloat(l[3]),a=parseFloat(l[5]);i=parseFloat(l[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const s=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=s*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}const f=a-.5*s;n=d[0]+f,r=d[1]+f,o=d[2]+f,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o)}else if(l=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(l[1]),t=parseFloat(l[3]),a=parseFloat(l[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const s=a*t;let c=e/60;const u=s*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}const f=a-s;n=d[0]+f,r=d[1]+f,o=d[2]+f,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in hb}(e)){const t=hb[e];({r:n,g:r,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+o+i)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(o),t.a=i,t}function gb(e){let t,n,r;if(fb(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const o="string"==typeof e?pb(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}function vb(e){let t,n,r=0;const o="string"==typeof e?mb(e):e,i=o.r/255,a=o.g/255,l=o.b/255,{a:s}=o,c=Math.max(i,a,l),u=Math.min(i,a,l),d=(c+u)/2;if(c===u)t=0,r=0;else{switch(n=c-u,t=d>.5?n/(2-c-u):n/(c+u),c){case i:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-i)/n+2;break;case l:r=(i-a)/n+4}r/=6}return{h:360*r,s:100*t,l:100*d,a:s}}function bb(e){let t,n,r=0;const o="string"==typeof e?mb(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),c=Math.min(i,a,l),u=s;if(s===c)t=0,r=0;else{switch(n=s-c,t=0===n?0:n/u,s){case i:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-i)/n+2;break;case l:r=(i-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}}function yb(e){if(fb(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?pb(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function xb(e,t){return fb(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:xb(mb(e))}function Sb(e){return fb(e)?1===e.a?yb(e):xb(e):Sb(mb(e))}const wb=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function Eb(e){return.2126*wb(e.r)+.7152*wb(e.g)+.0722*wb(e.b)}function kb(...e){const t=mb(...e);return t.invalid||Eb(t)<.4}function Cb(...e){const t=mb(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=vb(n)),n.spaces.hslaObject),o=e=>{const t=r(),{h:n,s:o,l:i,a:a}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=mb(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>kb(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=yb(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=xb(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=Sb(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=gb(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?mb(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),c=Math.min(i,a,l),u=(s+c)/2;if(s===c)t=0,r=0;else{switch(n=s-c,t=u>.5?n/(2-s-c):n/(s+c),s){case i:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-i)/n+2;break;case l:r=(i-a)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*u})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:o}=vb(e);return`hsla(${t}, ${n}, ${r}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=bb(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=bb(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>Cb(o(18*e)),getDarkenedColor:(e=1)=>Cb(o(18*-e))}}function _b(e,t){if(!e||!t)return;const n=Eb(e),r=Eb(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function Rb(e,t){const n=Cb("#FFFFFF"),r=Cb(e),o=Cb(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=_b(n,r),a=_b(o,r),l=i>a||i>4.5;return!l&&a>3?o.getHex():l?"#FFFFFF":"#000000"}var Lb,Ob;var Ib=function(){if(Ob)return Lb;Ob=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Lb=function e(){var t,n,r,s,c,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(s=l(t,n))&&(h&&s&&(i(s)||(c=o(s)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,s)})):void 0!==s&&a(d,{name:n,newValue:s}));return d},Lb}();function Tb(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Pb(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Mb(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Ib);var Nb=1/.7,Db="\\s*([+-]?\\d+)\\s*",qb="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ab="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zb=/^#([0-9a-f]{3,8})$/,jb=new RegExp(`^rgb\\(${Db},${Db},${Db}\\)$`),Fb=new RegExp(`^rgb\\(${Ab},${Ab},${Ab}\\)$`),$b=new RegExp(`^rgba\\(${Db},${Db},${Db},${qb}\\)$`),Bb=new RegExp(`^rgba\\(${Ab},${Ab},${Ab},${qb}\\)$`),Wb=new RegExp(`^hsl\\(${qb},${Ab},${Ab}\\)$`),Ub=new RegExp(`^hsla\\(${qb},${Ab},${Ab},${qb}\\)$`),Hb={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 Vb(){return this.rgb().formatHex()}function Gb(){return this.rgb().formatRgb()}function Kb(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=zb.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Zb(t):3===n?new Yb(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Jb(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Jb(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=jb.exec(e))?new Yb(t[1],t[2],t[3],1):(t=Fb.exec(e))?new Yb(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=$b.exec(e))?Jb(t[1],t[2],t[3],t[4]):(t=Bb.exec(e))?Jb(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Wb.exec(e))?iy(t[1],t[2]/100,t[3]/100,1):(t=Ub.exec(e))?iy(t[1],t[2]/100,t[3]/100,t[4]):Hb.hasOwnProperty(e)?Zb(Hb[e]):"transparent"===e?new Yb(NaN,NaN,NaN,0):null}function Zb(e){return new Yb(e>>16&255,e>>8&255,255&e,1)}function Jb(e,t,n,r){return r<=0&&(e=t=n=NaN),new Yb(e,t,n,r)}function Xb(e){return e instanceof Mb||(e=Kb(e)),e?new Yb((e=e.rgb()).r,e.g,e.b,e.opacity):new Yb}function Qb(e,t,n,r){return 1===arguments.length?Xb(e):new Yb(e,t,n,null==r?1:r)}function Yb(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ey(){return`#${oy(this.r)}${oy(this.g)}${oy(this.b)}`}function ty(){const e=ny(this.opacity);return`${1===e?"rgb(":"rgba("}${ry(this.r)}, ${ry(this.g)}, ${ry(this.b)}${1===e?")":`, ${e})`}`}function ny(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ry(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function oy(e){return((e=ry(e))<16?"0":"")+e.toString(16)}function iy(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ly(e,t,n,r)}function ay(e){if(e instanceof ly)return new ly(e.h,e.s,e.l,e.opacity);if(e instanceof Mb||(e=Kb(e)),!e)return new ly;if(e instanceof ly)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 ly(a,l,s,e.opacity)}function ly(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function sy(e){return(e=(e||0)%360)<0?e+360:e}function cy(e){return Math.max(0,Math.min(1,e||0))}function uy(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Tb(Mb,Kb,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Vb,formatHex:Vb,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ay(this).formatHsl()},formatRgb:Gb,toString:Gb}),Tb(Yb,Qb,Pb(Mb,{brighter(e){return e=null==e?Nb:Math.pow(Nb,e),new Yb(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Yb(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Yb(ry(this.r),ry(this.g),ry(this.b),ny(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:ey,formatHex:ey,formatHex8:function(){return`#${oy(this.r)}${oy(this.g)}${oy(this.b)}${oy(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ty,toString:ty})),Tb(ly,(function(e,t,n,r){return 1===arguments.length?ay(e):new ly(e,t,n,null==r?1:r)}),Pb(Mb,{brighter(e){return e=null==e?Nb:Math.pow(Nb,e),new ly(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ly(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 Yb(uy(e>=240?e-240:e+120,o,r),uy(e,o,r),uy(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ly(sy(this.h),cy(this.s),cy(this.l),ny(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=ny(this.opacity);return`${1===e?"hsl(":"hsla("}${sy(this.h)}, ${100*cy(this.s)}%, ${100*cy(this.l)}%${1===e?")":`, ${e})`}`}}));const dy=Math.PI/180,fy=180/Math.PI,py=4/29,hy=6/29,my=3*hy*hy;function gy(e){if(e instanceof vy)return new vy(e.l,e.a,e.b,e.opacity);if(e instanceof wy)return Ey(e);e instanceof Yb||(e=Xb(e));var t,n,r=Sy(e.r),o=Sy(e.g),i=Sy(e.b),a=by((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=by((.4360747*r+.3850649*o+.1430804*i)/.96422),n=by((.0139322*r+.0971045*o+.7141733*i)/.82521)),new vy(116*a-16,500*(t-a),200*(a-n),e.opacity)}function vy(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function by(e){return e>.008856451679035631?Math.pow(e,1/3):e/my+py}function yy(e){return e>hy?e*e*e:my*(e-py)}function xy(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Sy(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function wy(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Ey(e){if(isNaN(e.h))return new vy(e.l,0,0,e.opacity);var t=e.h*dy;return new vy(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Tb(vy,(function(e,t,n,r){return 1===arguments.length?gy(e):new vy(e,t,n,null==r?1:r)}),Pb(Mb,{brighter(e){return new vy(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new vy(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Yb(xy(3.1338561*(t=.96422*yy(t))-1.6168667*(e=1*yy(e))-.4906146*(n=.82521*yy(n))),xy(-.9787684*t+1.9161415*e+.033454*n),xy(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Tb(wy,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof wy)return new wy(e.h,e.c,e.l,e.opacity);if(e instanceof vy||(e=gy(e)),0===e.a&&0===e.b)return new wy(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*fy;return new wy(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new wy(e,t,n,null==r?1:r)}),Pb(Mb,{brighter(e){return new wy(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new wy(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Ey(this).rgb()}}));var ky=e=>()=>e;function Cy(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):ky(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?Cy:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):ky(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Qb(e)).r,(t=Qb(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Cy(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var _y,Ry="center",Ly="bottom";function Oy(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Iy(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Py)):void 0===t&&(t=Ty);for(var n,r,o,i,a,l=new Dy(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new Dy(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Ny)}function Ty(e){return e.children}function Py(e){return Array.isArray(e)?e[1]:null}function My(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Ny(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Dy(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:Ry,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Ry,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Ry,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Ry},{key:"DataRangeIncludingZero",alignment:Ly},{key:"LimitedData",alignment:Ly},{key:"NegativeOrZeroValues",alignment:Ly}].reduce((function(e,t){return e[t.key]=t,e}),{}),Dy.prototype=Iy.prototype={constructor:Dy,count:function(){return this.eachAfter(Oy)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Iy(this).eachBefore(My)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},_y=function(e){
124
- /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
125
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,c,u,d,f=e.length,p=e.search(/[0-9\-\+#]/),h=p>0?e.substring(0,p):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),v=f-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,f):"";if(n=(t="-"===(e=e.substring(p,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=l)&&(t=(+t).toFixed(l+1)),u=e[0].split(i),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],s=u[1]&&u[u.length-1].length){for(m="",v=(d=t[0]).length%s,f=d.length,y=0;y<f;y++)m+=d.charAt(y),!((y-v+1)%s)&&y<f-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},_y({exports:{}});const qy=/,(?![^(]*\))/,Ay=/\s(?![^(]*\))/,zy=/^[0-9]+[a-zA-Z%]+?$/,jy=["none","inset","initial","inherit"],Fy=e=>{if(!e)return;const t=e.split(Ay).filter((e=>!jy.includes(e.toLowerCase()))).at(-1),n=!t||(e=>"0"===e||zy.test(e))(t)||jy.includes(t.toLowerCase())?void 0:t;return n},$y=e=>e?e.split(qy).map((e=>e.trim())):[];function By(e,t,n,r){return n&&r?n.getStyle("object.".concat(r),e,t):n?n.getStyle("",e,t):void 0}function Wy(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e):void 0:By(t,n,r,o)}const Uy={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},Hy={"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 Vy(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 Gy(e,t){const n=null==e?void 0:e.bgImage;if(n){let r="";if("media"===n.mode||"media"===e.useImage){const e=null==n?void 0:n.mediaUrl,{qUrl:o}=(null==e?void 0:e.qStaticContentUrl)||{};r=o?decodeURIComponent(o):void 0,r=Vy(t,r)}"expression"===n.mode&&(r=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const o=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=Hy[e.bgImage.position]),n}(e),i=function(e){var t;let n=Uy.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=Uy[r]),n}(e);return r?{url:r,pos:o,size:i}:void 0}}function Ky(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):Wy(null==r?void 0:r.color,"","backgroundColor",t,n)}function Zy(e,t,n){var r,o;const i=By("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&jy.includes(e.toLowerCase()))return e.toLowerCase();const r=$y(e);if(1!==r.length)return e;let o=n;if(!o){const n=$y(t);if(1!==n.length)return e;o=Fy(n[0])}if(!o)return e;const i=Fy(r[0]);return i?e.replace(i,o):"".concat(e," ").concat(o)})((null==e||null===(r=e.shadow)||void 0===r?void 0:r.boxShadow)||i,i,Wy(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function Jy(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"),fontSize:i.fontSize||n.getStyle("object.".concat(r),"title.".concat(t),"fontSize"),color:i.color&&"none"!==i.color.color?n.getColorPickerColor(i.color):n.getStyle("object.".concat(r),"title.".concat(t),"color"),backgroundColor:i.backgroundColor||n.getStyle("object.".concat(r),"title.".concat(t),"backgroundColor"),fontWeight:a.includes("bold")?"bold":"normal",fontStyle:a.includes("italic")?"italic":"normal",textDecoration:a.includes("underline")?"underline":"initial"}}const Xy={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},Qy=["theme","selections"];function Yy(e){var t,n,r,o,i,a,l,s;let{app:c,themeApi:u,theme:d,components:p=[],checkboxes:h=!1}=e;const m=function(){const e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const n=null==t?void 0:t.key;Qy.includes(n)&&(e[n]=t)})),e}(p),g=(e,t)=>u.getStyle("object.listBox",e,t),v=e=>(null==e?void 0:e.index)>0||null!=e&&e.color?u.getColorPickerColor(e):void 0,b=function(e){var t,n,r,o,i;let{getColorPickerColor:a,theme:l,getListboxStyle:s,overrides:c,checkboxes:u}=e;const d=null===(t=c.theme)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.fontColor,p=a(d)||s("content","color")||(null===(n=l.palette)||void 0===n?void 0:n.text.primary),h=!u&&(null===(r=null===(o=c.theme)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.useContrastColor)||void 0===r||r),m=(null===(i=c.selections)||void 0===i?void 0:i.colors)||{},g=e=>{var t,n;const r="selected"===e?"main":e,o="".concat(e,"Contrast"),i=a(m[e])||s("","dataColors.".concat(e))||"possible"===e&&s("","backgroundColor")||(null===(t=l.palette)||void 0===t||null===(t=t.selected)||void 0===t?void 0:t[r])||Xy[e];return{[e]:i,[o]:h?Rb(i,p):p||(null===(n=l.palette)||void 0===n?void 0:n.selected["".concat(o,"Text}")])}};return f(f(f(f(f({},g("selected")),g("alternative")),g("excluded")),g("selectedExcluded")),g("possible"))}({getColorPickerColor:v,theme:d,getListboxStyle:g,overrides:m,checkboxes:h}),y=m.theme||{},x=v(null===(t=y.header)||void 0===t?void 0:t.fontColor)||g("title.main","color"),S=function(e){let t,{themeApi:n,themeOverrides:r}=e;const o=null==r?void 0:r.background;return o?(t=null!=o&&o.useExpression?Ky({bgColor:o},n,"listBox"):n.getColorPickerColor(null==o?void 0:o.color),t):t}({themeApi:u,themeOverrides:y}),w=null!==(n=y.background)&&void 0!==n&&n.image?Gy({bgImage:y.background.image},c):void 0,E=S||g("","backgroundColor")||d.palette.background.default,k=function(e,t){const n=Cb(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.getRGBA()}(E,g),C=function(e){return Rb("#fff",e("content","color"))}(g),_=(null===(r=y.header)||void 0===r?void 0:r.fontStyle)||{},R=(null===(o=y.content)||void 0===o?void 0:o.fontStyle)||{},L=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:E,backgroundImage:null==w||!w.url||null!=w&&w.url.startsWith("url(")?void 0:"url('".concat(w.url,"')"),backgroundRepeat:"no-repeat",backgroundSize:null==w?void 0:w.size,backgroundPosition:null==w?void 0:w.pos},header:{color:x,fontSize:(null===(i=y.header)||void 0===i?void 0:i.fontSize)||g("title.main","fontSize"),fontFamily:(null===(a=y.header)||void 0===a?void 0:a.fontFamily)||g("title.main","fontFamily"),fontWeight:L(_.bold,"bold","normal")||g("title.main","fontWeight")||"bold",textDecoration:_.underline?"underline":"initial",fontStyle:L(_.italic,"italic","normal")||g("title.main","fontStyle")||"initial"},content:{backgroundColor:h?void 0:b.possible,color:b.possibleContrast||g("content","color"),fontSize:(null===(l=y.content)||void 0===l?void 0:l.fontSize)||g("content","fontSize"),fontFamily:(null===(s=y.content)||void 0===s?void 0:s.fontFamily)||g("content","fontFamily"),fontWeight:L(R.bold,"bold","normal")||g("content","fontWeight")||"normal",textDecoration:R.underline?"underline":"initial",fontStyle:L(R.italic,"italic","normal")||g("content","fontStyle")||"initial"},search:{color:C,borderColor:d.palette.divider,highlightBorderColor:d.palette.custom.focusBorder,backgroundColor:k,backdropFilter:"blur(8px)"},selections:b}}function ex(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,components:u,checkboxes:d,selectDisabled:f=(()=>!1),sortCriteria:p=[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],direction:h="ltr"}=e;const m=Boolean(null==l?void 0:l.qLibraryId),g=o&&Boolean(t.current),[v,b]=x.useState(0),y=_l(),w=x.useRef(),[E]=Fh({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:s,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:p,qFieldDefs:m?void 0:[l]},qLibraryId:m?l.qLibraryId:void 0}},a,l,s),k=x.useCallback((()=>{E.lock("/qListObjectDef")}),[E]),C=x.useCallback((()=>{E.unlock("/qListObjectDef")}),[E]),{translator:_,themeApi:R,keyboardNavigation:L}=x.useContext(Vs),O=x.useRef(),I=x.useRef(),[T]=sb(a,E,I),[P]=Vh(E),[M]=x.useState((()=>cb({selectDisabled:f}))),N=cg({containerRef:I,enabled:L}),{checkboxes:D=d}=P||{},q=Yy({themeApi:R,theme:y,components:u,checkboxes:D});if(x.useEffect((()=>{T&&g&&(T.isModal(E)||T.goModal("/qListObjectDef"))}),[T,g]),!E||!P||!_)return null;const A=!0===P.qListObject.qDimensionInfo.qLocked,z=(e,t)=>{const n="escapeKeyDown"!==t;T.noModal(n),i()},j=Ov({layout:P,model:E,translator:_,selectionState:M,selections:T}),F=db(P);return S.createElement(Yp,{className:"listbox-container",open:g,onClose:z,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?z():void 0,direction:h},S.createElement(Qf,{container:!0,direction:"column",gap:0,ref:I},S.createElement(Qf,{item:!0,container:!0,style:{direction:h,padding:y.spacing(1)}},S.createElement(Qf,{item:!0},A?S.createElement(mc,{onClick:C,disabled:!A,size:"large"},S.createElement(Qh,{title:_.get("Listbox.Unlock")})):S.createElement(mc,{onClick:k,disabled:!F,size:"large"},S.createElement(em,{title:_.get("Listbox.Lock")}))),S.createElement(Qf,{item:!0,xs:!0}),S.createElement(Qf,{item:!0},S.createElement(Xv,{layout:P,more:{enabled:!A,actions:j,alignTo:O,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:T,onConfirm:z,onCancel:()=>z(0,"escapeKeyDown")}}))),S.createElement(Qf,{item:!0,xs:!0},S.createElement("div",{ref:O}),S.createElement(Qf,{item:!0},S.createElement(rb,{ref:w,popoverOpen:g,styles:q,visible:!0,model:E,listCount:v,selections:T,selectionState:M,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:N.focusSelection},autoFocus:null==c||c,direction:h})),S.createElement(kv,{model:E,app:a,layout:P,selections:T,selectionState:M,direction:h,onSetListCount:e=>b(e),onCtrlF:()=>{w.current.focus()},styles:q,keyboard:N}))))}function tx(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:i=null,onClose:a=(()=>{})}=e;const{translator:l}=x.useContext(Vs),s=i||x.useRef(),c=_l(),[u,d]=x.useState(!1),f=e=>{e.currentTarget.contains(e.target)&&d(!u)},p=()=>{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,w=0===y&&0===h.qTotal;let E="";h.qTotal===y&&h.qTotal>1?E=l.get("CurrentSelections.All"):y>1&&h.qTotal?E=l.get("CurrentSelections.Of",[y,h.qTotal]):h.qSelectedFieldSelectionInfo&&(E=h.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==t.states[r]&&(E="".concat(t.states[r],": ").concat(E));const k=[{color:c.palette.selected.main,ratio:g},{color:c.palette.selected.alternative,ratio:v},{color:c.palette.selected.excluded,ratio:b}];k.forEach(((e,t)=>{e.offset=t?k[t-1].offset+k[t-1].ratio:0}));let C=null,_=null,R=null,L=null;return i||(C=S.createElement(Qf,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:h.qLocked?"0.3":""}},S.createElement(Sc,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.label),S.createElement(Sc,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},E)),h.qLocked?_=S.createElement(Qf,{item:!0},S.createElement(mc,{size:"large"},S.createElement(Qh,null))):h.qOneAndOnlyOne||(_=S.createElement(Qf,{item:!0},S.createElement(mc,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(h.qField,t.states[r])},size:"large"},S.createElement(Xh,null)))),R=S.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===w&&k.map((e=>S.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:"".concat(100*e.ratio,"%"),left:"".concat(100*e.offset,"%")}})))),L=S.createElement(Qf,{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,_,R,u&&S.createElement(ex,{alignTo:s,show:u,close:p,app:n.model,fieldName:h.qField,stateName:t.states[r]}))),i?S.createElement(ex,{alignTo:s,show:!0,close:p,app:n.model,fieldName:h.qField,stateName:t.states[r]}):L}var nx=e=>Jh((e=>f(f({},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 rx={item:"".concat("MultiState","-item")},ox=$l(Qf)((e=>{let{theme:t}=e;return{["&.".concat(rx.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function ix(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[i,a]=x.useState(!!r),[l,s]=x.useState(-1),[c,u]=x.useState(r?r.current:null),d=r||x.useRef(),{translator:f}=x.useContext(Vs),p=f.get("Selection.ClearAllStates"),h=()=>{s(-1),o()};let m=null;r||(m=S.createElement(S.Fragment,null,S.createElement(Qf,{item:!0,xs:!0,zeroMinWidth:!0},S.createElement(Md,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},S.createElement(Sc,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.label))),S.createElement(Qf,{item:!0},S.createElement("div",{style:{width:"12px"}})),S.createElement(Qf,{item:!0},S.createElement(mc,{size:"large"},S.createElement(nx,null)))));const g=S.createElement(bp,{dense:!0},S.createElement(Ip,{title:p,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},S.createElement(zs,{variant:"contained",fullWidth:!0},p)),t.states.map(((e,r)=>S.createElement(Ip,{key:r,title:t.label,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),s(t)})(e,r)},S.createElement(qd,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},S.createElement(tx,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),v=S.createElement(Yp,{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:S.createElement(ox,{container:!0,gap:0,className:rx.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),d.current=e.currentTarget,a(!i))}},m,i&&v,l>-1&&S.createElement(ex,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}));return r&&l>-1?S.createElement(ex,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):b}const ax="More",lx={item:"".concat(ax,"-item"),badge:"".concat(ax,"-badge")},sx=$l(Qf)((e=>{let{theme:t}=e;return{["&.".concat(lx.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(lx.badge)]:{padding:t.spacing(0,1)}}}));function cx(e){let{items:t=[],api:n}=e;const r=_l(),[o,i]=x.useState(!1),[a,l]=x.useState(-1),[s,c]=x.useState(null),u=x.useRef(),d=()=>{l(-1)};let f=null;return a>-1&&(f=t[a].states.length>1?S.createElement(ix,{field:t[a],api:n,moreAlignTo:u,onClose:d}):S.createElement(tx,{field:t[a],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:d})),S.createElement(sx,{container:!0,gap:0,className:lx.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,i(!o))}},S.createElement(Qf,{item:!0},S.createElement(qd,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},S.createElement(Sc,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),S.createElement(Qf,{item:!0},S.createElement(mc,{size:"large"},S.createElement(nx,null))),o&&S.createElement(Yp,{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"}}},S.createElement(bp,{dense:!0},t.map(((e,t)=>S.createElement(Ip,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),l(t)})(e,t)},S.createElement(qd,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?S.createElement(ix,{field:e,api:n}):S.createElement(tx,{field:e,api:n}))))))),f)}const ux=120,dx=72;function fx(e){let{api:t,app:n}=e;const r=_l(),[o]=Bh(n),[i]=Vh(o),[a,l]=x.useState({items:[],more:[]}),{modalObjectStore:s}=x.useContext(Vs).selectionStore,[c,u]=Kh(),[d,f]=x.useState(0);return x.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-dx,n=Math.floor(t/ux);f(n)}),[u]),x.useEffect((()=>{if(!(n&&o&&i&&d))return;const e=function(e){if(!e)return[];const t={};function n(e,n){e.qSelections.forEach((e=>{const r=e.qField;let o=t[r];var i;void 0===o&&(o={name:r,label:(null===(i=e.qDimensionReferences)||void 0===i||null===(i=i.find((e=>e.qLabel)))||void 0===i?void 0:i.qLabel)||e.qReadableName||r,states:[],selections:[]},t[r]=o),o.states.push(n),o.selections.push(e)}))}return e.qSelectionObject&&n(e.qSelectionObject,"$"),e.alternateStates&&e.alternateStates.forEach((e=>n(e.qSelectionObject,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{model:e}=s.get(n.id)||{};return"njsListbox"===(null==e?void 0:e.genericType)})()&&r.length+1===t.items.length){const e=t.items.filter((e=>!1===r.some((t=>e.name===t.name))))[0],{qField:n}=e.selections[0];e.selections=[{qField:n}];const o=t.items.indexOf(e);r.splice(o,0,e)}let o=[];return d<r.length&&(o=r.splice(d-r.length)),{items:r,more:o}}))}),[n,o,i,t.isInModal(),d]),S.createElement(Qf,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},a.items.map((e=>S.createElement(Qf,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(ux,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?S.createElement(ix,{field:e,api:t}):S.createElement(tx,{field:e,api:t})))),a.more.length>0&&S.createElement(Qf,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(dx,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},S.createElement(cx,{items:a.more,api:t})))}var px=e=>Jh((e=>f(f({},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 hx=e=>Jh((e=>f(f({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));const mx=(e,t,n)=>{const r=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}}))),o=(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::"),i=(n.qStateNames||[]).map((e=>e)).join("::");o!==i&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)};function gx(e){let{api:t,app:n}=e;const{translator:r}=x.useContext(Vs),[o]=function(e){const[t]=Bh(e),[n]=Vh(t),[r]=Gh(e),[o,i]=x.useState(null);return x.useEffect((()=>{r&&t&&n&&mx(t,n,r)}),[r,t,n]),x.useEffect((()=>{if(!n)return;let e=!1,t=!1,r=!1;[n,...n.alternateStates||[]].forEach((n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,r=r||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),i({canGoBack:e,canGoForward:t,canClear:r})}),[n]),[o,t,n]}(n);return S.createElement(Qf,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},S.createElement(Qf,{item:!0},S.createElement(mc,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},S.createElement(px,null))),S.createElement(Qf,{item:!0},S.createElement(mc,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},S.createElement(hx,null))),S.createElement(Qf,{item:!0},S.createElement(mc,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},S.createElement(Av,null))))}const vx=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function bx(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function yx(){return vx.map(bx).join("")}function xx(e){let{app:t}=e;const n=_l(),[r]=ob(t);return r?S.createElement(Qf,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},S.createElement(Qf,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},S.createElement(gx,{api:r,app:t})),S.createElement(Qf,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},S.createElement(fx,{api:r,app:t}))):null}let Sx;Sx="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let wx=null,Ex=null;const kx=Sx.clearTimeout,Cx=Sx.setTimeout,_x=Sx.cancelAnimationFrame||Sx.mozCancelAnimationFrame||Sx.webkitCancelAnimationFrame,Rx=Sx.requestAnimationFrame||Sx.mozRequestAnimationFrame||Sx.webkitRequestAnimationFrame;function Lx(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__&&wx(this.__resizeRAF__),this.__resizeRAF__=Ex((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=Sx.getComputedStyle(i);c&&"static"===c.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(s),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=s.createElement("div")).className="resize-triggers";const u=s.createElement("div");u.className="expand-trigger",u.appendChild(s.createElement("div"));const d=s.createElement("div");d.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",l,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(s)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==_x||null==Rx?(wx=kx,Ex=function(e){return Cx(e,20)}):(wx=function([e,t]){_x(e),kx(t)},Ex=function(e){const t=Rx((function(){kx(n),e()})),n=Cx((function(){_x(t),e()}),20);return[t,n]});class Ox extends x.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),l=parseFloat(r.paddingBottom||"0"),s=this._parentNode.getBoundingClientRect(),c=s.height-a-l,u=s.width-o-i,d=this._parentNode.offsetHeight-a-l,f=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===f&&this.state.scaledWidth===u)||(this.setState({height:d,width:f,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=Lx(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:i=!1,nonce:a,onResize:l,style:s={},tagName:c="div",...u}=this.props,{height:d,scaledHeight:f,scaledWidth:p,width:h}=this.state,m={overflow:"visible"},g={};let v=!1;return r||(0===d&&(v=!0),m.height=0,g.height=d,g.scaledHeight=f),o||(0===h&&(v=!0),m.width=0,g.width=h,g.scaledWidth=p),i&&(v=!1),x.createElement(c,{ref:this._setRef,style:{...m,...s},...u},!v&&e(g))}}function Ix(e){let{keyboard:t,hovering:n,updateKeyScroll:r,currentScrollIndex:o,isModal:i,constraints:a,selections:l}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,o=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const a=e.currentTarget.closest(".listbox-container"),s=i();switch(n){case ag.TAB:if(document.activeElement===a||!s&&!a.contains(document.activeElement))return;if(r){fg(a)||dg(a)||hg(e,t)}else{if(!(pg(a)||dg(a)||fg(a)))break}o();break;case ag.ENTER:case ag.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),o();break;case ag.ESCAPE:hg(e,t),l.isActive()&&l.cancel()}},handleOnMouseEnter:()=>{n.current=!0},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current||(()=>{const e=(null==a?void 0:a.select)||(null==a?void 0:a.active),t=i();return e||t})())return;const{keyCode:t,ctrlKey:l=!1,shiftKey:s=!1}=e;switch(t){case ag.ARROW_UP:r({up:1});break;case ag.ARROW_DOWN:r({down:1});break;case ag.PAGE_UP:r({up:o.stop-o.start});break;case ag.PAGE_DOWN:r({down:o.stop-o.start});break;case ag.HOME:r({scrollPosition:l&&s?"overflowStart":"start"});break;case ag.END:r({scrollPosition:l&&s?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const Tx=$l("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function Px(e){let{text:t}=e;const{translator:n}=x.useContext(Vs);return S.createElement(Tx,null,n.get(t))}const Mx={fontSize:"12px"},Nx=$l(Ls)((e=>{let{theme:t,isLoading:n}=e;return{position:"absolute",top:0,left:0,height:48,zIndex:2,background:t.palette.custom.disabledBackground,opacity:1,color:t.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:n?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:t.palette.custom.disabledContrastText},"& i":{padding:"".concat(xm,"px")}}})),Dx=$l(Qf,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((e=>{let{styles:t,isRtl:n}=e;return f(f({flexDirection:n?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},t.header),{},{"& *":{color:t.header.color}})})),qx=$l(Sc)((e=>{let{styles:t}=e;return f(f({},t.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})}));function Ax(e){let{translator:t,toggleLock:n,keyboard:r,isLoading:o}=e;const i=t.get("SelectionToolbar.ClickToUnlock");return S.createElement(Nx,{title:i,tabIndex:r.enabled?0:-1,onClick:n,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:o},o?S.createElement(pf,{size:16,variant:"indeterminate",color:"primary"}):S.createElement(Qh,{disableRipple:!0,style:Mx}),!o&&S.createElement(Sc,{fontSize:"14px"},i))}var zx=e=>Jh((e=>f(f({},e),{},{shapes:[{type:"path",attrs:{d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"}}]}))(e));var jx=e=>Jh((e=>f(f({},e),{},{shapes:[{type:"path",attrs:{d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"}}]}))(e));var Fx=e=>Jh((e=>f(f({},e),{},{shapes:[{type:"path",attrs:{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"}}]}))(e));const $x="H",Bx="C";var Wx={createDimensionIconData:e=>{let{dimInfo:t,app:n,selections:r,isPopover:o,active:i,keyboard:a}=e;switch(t.qGrouping){case $x:return{icon:jx,tooltip:"Listbox.DrillDown",onClick:void 0};case Bx:{const e=n&&i,l=()=>{o||r.confirm(),n.getDimension(t.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):console.log("engine api spec version doesn't have support for function stepCycle")})).catch((()=>null))};return{icon:e?Fx:zx,tooltip:"Listbox.Cyclic",onClick:e?l:void 0,onKeyDown:e?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case ag.SPACE:case ag.ENTER:l();break;case ag.TAB:{if(!a.enabled)return;let n;n=e.shiftKey?a.focusSelection():dg(t)||fg(t),n||hg(e,a)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}}};const Ux=$l(zs)((()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0})));function Hx(e){let{iconData:t,translator:n,iconStyle:r,disabled:o,keyboard:i}=e;if(!t)return;const{icon:a,tooltip:l,onClick:s,onKeyDown:c}=t,u=a,d=n.get(l);return s?S.createElement(Ux,{variant:"outlined",onClick:s,tabIndex:i.innerTabStops?0:-1,title:d,size:"large",disableRipple:!0,disabled:o,onKeyDown:c,className:"listbox-cyclic-button","data-testid":"listbox-cyclic-button"},S.createElement(u,{style:r})):S.createElement(u,{title:d,size:"large",style:f(f({},r),{},{padding:"".concat(xm,"px")})})}const Vx=500;let Gx=0;function Kx(e){var t,n,r;let{layout:o,translator:i,styles:a,isRtl:l,showLock:s,showSearchIcon:c,constraints:d,onShowSearch:p,classes:h,containerRect:m,isPopover:g,showToolbar:v,showDetachedToolbarOnly:b,containerRef:y,model:w,selectionState:E,isDirectQuery:k,selections:C,keyboard:_,autoConfirm:R,app:L,disablePortal:O}=e;const[I,T]=x.useState(b),[P,M]=x.useState(null==o||null===(t=o.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked),[N,D]=x.useState(!1);x.useEffect((()=>{var e;M(null==o||null===(e=o.qListObject)||void 0===e||null===(e=e.qDimensionInfo)||void 0===e?void 0:e.qLocked)}),[null==o||null===(n=o.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qLocked]);const q=x.useRef(null),A=Wx.createDimensionIconData({dimInfo:null==o||null===(r=o.qListObject)||void 0===r?void 0:r.qDimensionInfo,app:L,selections:C,isPopover:g,active:!(null!=d&&d.active),keyboard:_}),z=s&&P,j=!s&&P,F=c||j||A,$=bm-(F?xm:0),B=l?bm-(F?xm:0):ym,W=(c?Sm:0)+(j?Sm:0)+(A?Sm:0),U=function(e){let{isLocked:t,setLocked:n,settingLockedState:r,model:o,setSettingLockedState:i}=e;return()=>{const e=new Date;if(e-Gx<Vx)return Promise.resolve();if(r)return()=>{};i(!0),Gx=e;const a=t?o.unlock:o.lock;return n(!t),a.call(o,"/qListObjectDef").catch((()=>{n(t)})).finally((()=>{setTimeout((()=>{i(!1)}),0)}))}}({isLocked:P,setLocked:M,settingLockedState:N,setSettingLockedState:D,model:w}),H=Ov({layout:o,model:w,translator:i,selectionState:E,isDirectQuery:k,selections:C}),V=P||!s?void 0:[{key:"lock",type:void 0,label:i.get("SelectionToolbar.ClickToLock"),getSvgIconShape:Yh,enabled:()=>!N&&!E.selectDisabled()&&db(o),action:U}],G=null!=d&&d.active?S.createElement(Qv,{title:i.get("Listbox.Search"),size:"large",style:f(f({},Mx),{},{padding:"".concat(xm,"px")})}):S.createElement(mc,{onClick:p,tabIndex:-1,title:i.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},S.createElement(Qv,{style:Mx}));x.useEffect((()=>{if(!q.current||!m)return;const e=function(e){var t,n,r,o;let{containerRect:i,titleRef:a,iconsWidth:l,paddingLeft:s,paddingRight:c}=e;const u=s+c,d=i.width<(null!==(t=null==a||null===(n=a.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)+l+u+2+128,f=(null==a||null===(r=a.current)||void 0===r?void 0:r.scrollWidth)>(null==a||null===(o=a.current)||void 0===o?void 0:o.offsetWidth);return!(!d&&!f)}({containerRect:m,titleRef:q,iconsWidth:W,paddingLeft:$,paddingRight:B});T(b||e)}),[W,$,B,q.current,b,Object.entries(m||{}).sort().join(",")]);const K=function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:i,extraItems:a,selections:l,keyboard:s,autoConfirm:c,disablePortal:u}=e;return{autoConfirm:c,isDetached:t,show:n&&!t,popover:{show:n&&t,anchorEl:r.current},extraItems:a,more:{enabled:!o,actions:i,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"},disablePortal:u},selections:{show:n,api:l,onConfirm:()=>{null==s||s.focus()},onCancel:()=>{null==s||s.focus()}}}}({isDetached:!g&&I,showToolbar:v,containerRef:y,isLocked:P,extraItems:V,listboxSelectionToolbarItems:H,selections:C,keyboard:_,autoConfirm:R,disablePortal:O}),Z=S.createElement(Xv,u({isRtl:l,layout:o},K));if(b)return Z;const J=j?S.createElement(Qh,{size:"large",style:f(f({},Mx),{},{padding:"".concat(xm,"px")})}):void 0;return S.createElement(Dx,{item:!0,container:!0,styles:a,isRtl:l,marginY:1,paddingLeft:"".concat($,"px"),paddingRight:"".concat(B,"px"),className:"header-container"},z&&S.createElement(Ax,{isLoading:N,translator:i,toggleLock:U,keyboard:_}),F&&S.createElement(Qf,{item:!0,container:!0,alignItems:"center",width:W,className:"header-action-container"},J||c&&G,S.createElement(Hx,{iconData:A,iconStyle:Mx,disabled:C.isActive()&&g,translator:i,keyboard:_})),S.createElement(Qf,{item:!0,xs:!0,minWidth:0,justifyContent:l?"flex-end":"flex-start",className:h.listBoxHeader},S.createElement(qx,{variant:"h6",noWrap:!0,ref:q,title:o.title,styles:a},o.title)),S.createElement(Qf,{item:!0,display:"flex"},Z))}const Zx="ListBoxInline",Jx={listBoxHeader:"".concat(Zx,"-listBoxHeader"),screenReaderOnly:"".concat(Zx,"-screenReaderOnly"),listboxWrapper:"".concat(Zx,"-listboxWrapper")},Xx=$l(Qf,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((e=>{let{theme:t,containerPadding:n,isGridMode:r,styles:o}=e;return f(f({},o.background),{},{["& .".concat(Jx.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(Jx.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(Jx.listboxWrapper)]:{padding:n},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:r?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}})}));const Qx=S.memo((function(e){var t,n,r,o;let{options:i,layout:a}=e;const{app:l,direction:s,frequencyMode:c,checkboxes:u,search:d=!0,focusSearch:p=!1,rangeSelect:h=!0,model:m,selections:g,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:w,showGray:E=!0,scrollState:k,renderedCallback:C,toolbar:_=!0,isPopover:R=!1,showLock:L=!1,components:O,selectDisabled:I=(()=>!1),disablePortal:T=!0}=i,P=_l(),{translator:M,keyboardNavigation:N,themeApi:D,constraints:q}=x.useContext(Vs),{checkboxes:A=u}=a||{},z=Yy({app:l,themeApi:D,theme:P,components:O,checkboxes:A}),j=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==l?void 0:l.layout}),F=x.useRef(),$=x.useRef(),[B,W]=Kh(),[U,H]=x.useState(!1),[V,G]=x.useState(!1),K=x.useRef(!1),[Z,J]=x.useState({down:0,up:0,scrollPosition:""}),X=e=>J((t=>f(f({},t),e))),[Q,Y]=x.useState({start:0,stop:0}),[ee]=ob(l),[te]=x.useState((()=>cb({selectDisabled:I}))),ne=cg({containerRef:F,enabled:N}),re=x.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:l,appSelections:ee})),[l,ee]),oe=null==a?void 0:a.qListObject.qDimensionInfo.qError,ie=oe&&q.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:ae,handleOnMouseEnter:le,handleOnMouseLeave:se,globalKeyDown:ce}=x.useMemo((()=>Ix({keyboard:ne,hovering:K,updateKeyScroll:X,currentScrollIndex:Q,constraints:q,isModal:re,selections:g})),[ne,K,X,F,Q,l,ee,q,re]);x.useEffect((()=>(document.addEventListener("keydown",ce),()=>{document.removeEventListener("keydown",ce)})),[ce]),x.useEffect((()=>{!0===d&&G(!0);const e=()=>{H(!0)},t=()=>{H(!1),"toggle"===d&&G(!1)};return R&&(g.isActive()||(g.on("activated",e),g.on("deactivated",t)),H(R)),_&&g&&(g.isModal()||(g.on("activated",e),g.on("deactivated",t)),H(R||g.isActive())),()=>{g&&g.removeListener&&(g.removeListener("activated",e),g.removeListener("deactivated",t))}}),[_,g,R]);const{wildCardSearch:ue,searchEnabled:de,autoConfirm:fe=!1,layoutOptions:pe={}}=null!=a?a:{},he=null==a||null===(t=a.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked,me=!1!==de&&"toggle"===d&&!he,ge=(null==a||null===(n=a.title)||void 0===n?void 0:n.length)&&!1!==(null==a?void 0:a.showTitle),ve=_&&!ge&&!R,be=_&&ge||R,ye="rtl"===s;if(!m||!a||!M)return null;const xe=!0===d||"toggle"===d&&V&&!1!==de,Se=null!==(r=pe.dense)&&void 0!==r&&r,we=()=>{G(!V)},Ee=()=>{"toggle"===d?we():$.current.focus()},ke=xe&&("toggle"===d||p),Ce="grid"===(null==pe?void 0:pe.dataLayout),_e=function(e){let t,{isGridMode:n,dense:r,height:o,layoutOrder:i}=e;if(n){let e;e=Kg({isGridMode:n,dense:r})>o?"0px":"2px",t="row"===i?"".concat(e," 4px"):"".concat(e," 6px ").concat(e," 4px")}else t=void 0;return t}({isGridMode:Ce,dense:Se,height:null===(o=F.current)||void 0===o?void 0:o.clientHeight,layoutOrder:pe.layoutOrder});oe&&(null==C||C());const Re=be?Im+Em:0,Le=S.createElement(Kx,{app:l,showSearchIcon:me,onShowSearch:we,isPopover:R,showToolbar:U,isDirectQuery:j,autoConfirm:fe,showDetachedToolbarOnly:ve,layout:a,translator:M,styles:z,isRtl:ye,showLock:L,constraints:q,classes:Jx,containerRect:W,containerRef:F,model:m,selectionState:te,selections:g,keyboard:ne,disablePortal:T});return S.createElement(S.Fragment,null,ve&&Le,S.createElement(Xx,{className:"listbox-container",container:!0,tabIndex:ne.enabled?-1:void 0,direction:"column",gap:0,containerPadding:_e,styles:z,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:ae,onMouseEnter:le,onMouseLeave:se,ref:e=>{F.current=e,B(e)},isGridMode:Ce,"aria-label":ne.active?M.get("Listbox.ScreenReaderInstructions"):""},be&&Le,S.createElement(Qf,{item:!0,container:!0,direction:"column",height:"100%",minHeight:Re,role:"region","aria-label":M.get("Listbox.ResultFilterLabel")},S.createElement(Qf,{item:!0},S.createElement(rb,{ref:$,selections:g,selectionState:te,model:m,dense:Se,keyboard:ne,visible:xe,search:d,autoFocus:ke,beginSelectionOnFocus:!R,wildCardSearch:ue,searchEnabled:de,direction:s,hide:me&&we,styles:z})),S.createElement(Qf,{item:!0,xs:!0,className:Jx.listboxWrapper},oe?S.createElement(Px,{text:ie}):S.createElement(Ox,null,(e=>{let{height:t,width:n}=e;return S.createElement(kv,{model:m,app:l,constraints:q,layout:a,selections:g,selectionState:te,direction:s,frequencyMode:c,rangeSelect:h,checkboxes:A,height:t,width:n,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:w,keyboard:ne,showGray:E,scrollState:k,keyScroll:{state:Z,reset:()=>J({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:Q,set:Y},renderedCallback:C,onCtrlF:Ee,isModal:re,styles:z})}))))))}));function Yx(e){let{options:t={}}=e;const{model:n}=t,[r]=Vh(n);return S.createElement(Qx,{options:t,layout:r})}function eS(e){let{app:t,qId:n,options:r={}}=e;const[o,i]=x.useState(),[a]=jh(),{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 x.useEffect((()=>{let e=!1,r=()=>{};return async function(){const o=await Promise.resolve(l||async function(e){return a.get(e)||await t.getObject(e)}(n));if(!e){if(!a.get(o.id)){a.set(o.id,o);const e=()=>{a.clear(o.id)};o.once("closed",e),r=()=>{o.removeListener("closed",e)}}i(o)}}(),()=>{e=!0,r()}}),[]),o}const tS={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function nS(e){let t;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(e):t="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(e):t="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(e):t="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(e):t="R";break;default:t="N"}return t}const rS=["__DO_NOT_USE__"],oS=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1};return f(f(f({},p(e,rS)),n),t)},iS=x.forwardRef(((e,t)=>{let{app:n,fieldIdentifier:r,qId:o,stateName:i,element:a,initialOptions:l,renderedCallback:s}=e;const[c,u]=x.useState(l),{isExistingObject:d,hasExternalSelectionsApi:p}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:o,options:c});d||Object.assign(c,{frequencyMode:nS(c.frequencyMode)});const[h,m]=x.useState(0);x.useEffect((()=>{if(h)throw new Error("Source or selection Api can not change after a listbox has been mounted");m(h+1)}),[d,p]);const g=d?eS({app:n,qId:o,options:c}):function(e){var t;let{app:n,fieldIdentifier:r,stateName:o,options:i={}}=e;const[a,l]=x.useState(""),[s,c]=x.useState(!0),[u,d]=x.useState(),[f,p]=x.useState(),h=null!==(t=i.title)&&void 0!==t?t:f;let{histogram:m=!1,frequencyMode:g="N"}=i;a&&a.failedToFetchFieldDef&&(m=!1,g="N"),x.useEffect((()=>{const e=m||"N"!==g;r.qLibraryId&&e?async function(){try{const e=await n.getDimension(r.qLibraryId),t=await e.getLayout();p(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),p(r))}),[]);const{dense:v,checkboxes:b,listLayout:y,properties:S={}}=i,w={dense:v};"horizontal"===y&&(w.dataLayout="grid",w.layoutOrder="column",w.maxVisibleColumns={auto:!0},w.maxVisibleRows={auto:!1,maxRows:1});const E=x.useRef();E.current||(E.current=yx());const k=pe(!0,{},tS,{qInfo:{qId:E.current},qListObjectDef:{qStateName:o,qFrequencyMode:m&&"N"===g?"V":g},histogram:m,checkboxes:b,layoutOptions:w,title:h});let C;if(pe(!0,k,S),r.qLibraryId?(k.qListObjectDef.qLibraryId=r.qLibraryId,C=r.qLibraryId):(k.qListObjectDef.qDef.qFieldDefs=[r],C=r),"P"!==g&&m)if(null!=a&&a.multiFieldDim)k.frequencyMax="fetch";else{const e=r.qLibraryId?a:C;k.frequencyMax={qValueExpression:yv(e)}}const[_]=Fh(k,s?null:n,C,o);return x.useEffect((()=>{_&&d(_)}),[_]),u}({app:n,fieldIdentifier:r,stateName:i,options:c}),v=x.useRef(a),b=p?c.selectionsApi:sb(n,g,[v,".njs-action-toolbar-more",".njs-action-toolbar-popover"],c)[0],y=x.useMemo((()=>f(f({},c),{},{selections:b,model:g,app:n,renderedCallback:s})),[c,b,g,n]);return x.useImperativeHandle(t,(()=>({setOptions:e=>u(e)})),[]),b&&g?S.createElement(Yx,{options:y}):null}));const aS={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function lS(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:i={}}=e;const[a,l]=x.useState(!!i.show);return S.createElement(ex,{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,components:i.components,sortCriteria:i.sortCriteria,direction:i.direction})}function sS(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function cS(e,t){let n=0;for(let r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}const uS=e=>({qDef:{qFieldDefs:[e]}}),dS=e=>({qDef:{qDef:e}});function fS(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,i={dimensions:()=>t.qDimensions,measures:()=>t.qMeasures,addDimension(e){const r="string"==typeof e?uS(e):f(f({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||yx(),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<i.maxDimensions()?(t.qDimensions.push(r),sS(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 cS(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?dS(e):f(f({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||yx(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],t.qMeasures.length<i.maxMeasures()?(t.qMeasures.push(r),sS(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];cS(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<i.maxDimensions(),canAddMeasure:()=>t.qMeasures.length<i.maxMeasures()};return i}const pS=e=>({qDef:{qFieldDefs:[e]}});function hS(e){let{dc:t,def:n,properties:r}=e;t.qInitialDataFetch=t.qInitialDataFetch||[];const o=r,i={dimensions:()=>t.qLibraryId||t.qDef&&t.qDef.qFieldDefs&&0!==t.qDef.qFieldDefs.length?[t]:[],measures:()=>[],addDimension(e){const r="string"==typeof e?pS(e):f(f({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||yx(),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===i.dimensions().length,canAddMeasure:()=>!1};return i}const mS=e=>({qDef:{qFieldDefs:[e]}}),gS=e=>{let t;return t="string"==typeof e?pe(!0,{},tS,{qListObjectDef:mS(e)}):e.qListObjectDef?pe(!0,{},tS,e):pe(!0,{},tS,{qListObjectDef:e}),t};function vS(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=gS(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||yx(),!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 bS(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 yS(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")?hS:e.match("/qChildListDef")?vS:fS}(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"===bS(t)?await d.addMeasure(t):await d.addDimension(t)}}var xS={getValue:(e,t,n)=>{if(null==e||null==t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},setValue:(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==i[t]&&null!==i[t]||(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?i[o]=n:delete i[o]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object};var SS={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},move:function(e,t,n){if(n<0)throw Error("newIndex cannot be a negative value!");if(n>=e.length){let t=n-e.length+1;for(;t;)e.push(void 0),t--}const r=e.at(t);e.splice(t,1),e.splice(n,0,r)}};const wS=2**53-1;function ES(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function kS(e,t){const n=pe(!0,{},t,e);return xS.getValue(n,"qOtherTotalSpec.qOtherCounted")||xS.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),xS.getValue(n,"qOtherTotalSpec.qOtherLimit")||xS.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function CS(e,t){return pe(!0,{},t,e)}function _S(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var RS={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===xS.getValue(e,t)&&xS.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:ES,importCommonProperties:function(e,t,n){const r="masterobject"===xS.getValue(t,"properties.qInfo.qType")?"masterobject":xS.getValue(n,"qInfo.qType");xS.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},createDefaultDimension:kS,createDefaultMeasure:CS,resolveValue:_S,getHypercubePath:function(e){const t=xS.getValue(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function(e){let{exportFormat:t,newHyperCubeDef:n}=e;const r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();let i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(SS.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,SS.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=pe(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?xS.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||ES(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=pe(!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=_S(i.max,r.dimensions.length,wS),l=_S(i.min,r.dimensions.length,0);return{maxDimensions:_S(o.max,a,wS),minDimensions:_S(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(kS(a.dimensions[l],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(kS(a.dimensions[l],i));else if(a.dimensions.length)for(l=0;l<a.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(kS(a.dimensions[l],i));if(a.excludedDimensions.length)for(l=0;l<a.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(kS(a.excludedDimensions[l],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(kS(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(CS(a.measures[l],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(CS(a.measures[l],i));else if(a.measures.length)for(l=0;l<a.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(CS(a.measures[l],i));if(a.excludedMeasures.length)for(l=0;l<a.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(CS(a.excludedMeasures[l],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(CS(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=xS.getValue(t,r||"").qHyperCubeDef,o=[...e.qDimensions];e.qDimensions=[],o.forEach((r=>{e.qDimensions.push(r),n.dimensions.added(r,t)}))}},updateMeasuresOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.measures&&"function"==typeof n.measures.added){const e=xS.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var LS={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=xS.getValue(o,n||""),a=i.qHyperCubeDef,l=r.data[0];if(a.qInterColumnSortOrder||(a.qInterColumnSortOrder=[]),l.dimensions.push(...a.qDimensions),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qDimensions&&l.excludedDimensions.push(...a.qLayoutExclude.qHyperCubeDef.qDimensions),l.measures.push(...a.qMeasures),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qMeasures&&l.excludedMeasures.push(...a.qLayoutExclude.qHyperCubeDef.qMeasures),l.interColumnSortOrder=a.qInterColumnSortOrder.concat(),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();SS.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&&(RS.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!xS.isEmpty(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:i}=e;const a={qChildren:[]},l=RS.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),s=xS.getValue(n,i||"").qHyperCubeDef,c=xS.getValue(l,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:f,minMeasures:p}=RS.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=RS.getDefaultDimension(),defaultMeasure:m=RS.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,RS.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:f,minMeasures:p})&&RS.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:f,minMeasures:p,newHyperCubeDef:c}),RS.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),RS.addDefaultMeasures({exportFormat:t,maxMeasures:f,minMeasures:p,newHyperCubeDef:c,defaultMeasure:m}),RS.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),RS.copyPropertyIfExist("qMaxStackedCells",s,c),RS.copyPropertyIfExist("qNoOfLeftDims",s,c),RS.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),RS.copyPropertyOrSetDefault("qMode",s,c,"S"),RS.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),RS.copyPropertyOrSetDefault("qSortbyYValue",s,c),RS.copyPropertyOrSetDefault("qIndentMode",s,c),RS.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),RS.importCommonProperties(l,t,n),RS.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:i}),RS.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:i}),a.qProperty=l,a}(e)};const OS=e=>xS.getValue(e,"data.targets.0.propertyPath"),IS=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return LS.exportProperties})(OS(e))},TS=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return LS.importProperties})(OS(e))},PS=async e=>{let{halo:t,model:n,cellRef:r,newType:o,properties:i,viewDataMode:a=!1}=e;const l=i?{qProperty:i}:await n.getFullPropertyTree(),s=r.current.getQae(),c=IS(s);if(!c)throw new Error("Source chart does not support conversion");const u=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}),d=u.qae,p=TS(d);if(!p)throw new Error("Target chart does not support conversion");return p({exportFormat:c({propertyTree:l,hypercubePath:RS.getHypercubePath(s),viewDataMode:a}),initialProperties:f({qInfo:{qType:o},visualization:o},xS.getValue(d,"properties.initial",{})),dataDefinition:xS.getValue(d,"data.targets.0.",{}),hypercubePath:RS.getHypercubePath(d),viewDataMode:a})},MS={hypercube:LS};var NS=e=>Jh((e=>f(f({},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 DS(e){let{d:t}=e;const n=_l();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=S.createElement(Sc,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},S.createElement(lp,null,t.missing||t.error?S.createElement(NS,{style:i}):S.createElement(hm,{style:i})));return S.createElement(Qf,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},S.createElement(Qf,{item:!0},a),S.createElement(Qf,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},S.createElement(Sc,{noWrap:!0,component:"p"},S.createElement(Sc,{component:"span",variant:"subtitle2",color:r},t.description),S.createElement(Sc,{component:"span"}," "),S.createElement(Sc,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function qS(e){let{data:t}=e;const n=_l();return S.createElement(Qf,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>S.createElement(DS,{d:e,key:t})));return r.length>0&&S.createElement(Qf,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},S.createElement(Sc,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function AS(e){let{title:t="Error",message:n="",data:r=[]}=e;return S.createElement(Qf,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},S.createElement(Qf,{item:!0},S.createElement(NS,{style:{fontSize:"38px"}})),S.createElement(Qf,{item:!0},S.createElement(Sc,{variant:"h6",align:"center","data-tid":"error-title"},t)),S.createElement(Qf,{item:!0},S.createElement(Sc,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),S.createElement(qS,{data:r}))}const zS=["size"],jS="Progress",FS={root:"".concat(jS,"-root"),front:"".concat(jS,"-front"),back:"".concat(jS,"-back")},$S=$l("div")((e=>{let{theme:t}=e;return{["&.".concat(FS.root)]:{position:"relative",display:"inline-block"},["& .".concat(FS.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(FS.back)]:{color:t.palette.divider}}})),BS={small:16,medium:32,large:64,xlarge:128};function WS(e){let{size:t="medium"}=e,n=p(e,zS);const r=BS[t];return S.createElement($S,{className:FS.root},S.createElement(pf,u({variant:"determinate",value:100,className:FS.back,size:r,thickness:3},n)),S.createElement(pf,u({variant:"indeterminate",disableShrink:!0,className:FS.front,size:r,thickness:3},n)))}const US=["cancel","translator"],HS=["retry","translator"],VS={stripes:"".concat("LongRunningQuery","-stripes")},GS=$l(Qf)((()=>({["& .".concat(VS.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 KS(e){let{cancel:t,translator:n}=e,r=p(e,US);return S.createElement(S.Fragment,null,S.createElement(GS,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},S.createElement(Qf,{item:!0},S.createElement(WS,null)),S.createElement(Qf,{item:!0},S.createElement(Sc,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),S.createElement(Qf,u({item:!0},r),S.createElement(zs,{variant:"contained",onClick:t},n.get("Cancel"))))}function ZS(e){let{retry:t,translator:n}=e,r=p(e,HS);return S.createElement(S.Fragment,null,S.createElement(Qf,{item:!0},S.createElement(NS,{style:{fontSize:"38px"}})),S.createElement(Qf,{item:!0},S.createElement(Sc,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),S.createElement(Qf,{item:!0},S.createElement(zs,u({variant:"contained",onClick:t},r),n.get("Retry"))))}function JS(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=x.useContext(Vs);return S.createElement(Qf,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:VS.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&S.createElement(KS,{cancel:r.cancel,translator:o,className:VS.cancel}),n&&S.createElement(ZS,{retry:r.retry,translator:o,className:VS.retry}))}function XS(){return S.createElement(Qf,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},S.createElement(WS,{size:"large"}))}const QS={width:0,height:0},YS="Header",ew={containerStyle:"".concat(YS,"-containerStyle"),containerTitleStyle:"".concat(YS,"-containerTitleStyle")},tw=$l(Qf)((e=>{let{theme:t}=e;return{["&.".concat(ew.containerStyle)]:{flexGrow:0},["&.".concat(ew.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),nw="njs-cell-title",rw="njs-cell-sub-title";function ow(e){let{id:t,layout:n,sn:r,anchorEl:o,hovering:i,focusHandler:a,titleStyles:l={},isRtl:s,translator:c}=e;const u=n.showTitles&&!!n.title,d=n.showTitles&&!!n.subtitle,f=n.qSelectionInfo&&n.qSelectionInfo.qInSelections,[p,h]=x.useState([]);x.useEffect((()=>{r&&r.component&&r.component.isHooked&&r.component.observeActions((e=>{h([...e,...r&&r.selectionToolbar&&r.selectionToolbar.items||[]])}))}),[r]);const m=[ew.containerStyle,...u||d?[ew.containerTitleStyle]:[]],g=i||f,v=S.createElement(Xv,{show:!1,selections:{show:f,api:r.component.selections,onKeyDeactivate:a.refocusContent},actions:p,popover:{show:g,anchorEl:o},focusHandler:a,layout:n,isRtl:s});return S.createElement(tw,{item:!0,container:!0,wrap:"nowrap",className:m.join(" ")},S.createElement(Qf,{item:!0,zeroMinWidth:!0,xs:!0,dir:s?"rtl":"ltr"},S.createElement(Qf,{container:!0,wrap:"nowrap",direction:"column"},u?S.createElement(zh,{title:n.title},S.createElement(Sc,{id:"".concat(t,"_title"),variant:"h6",noWrap:!0,className:nw,style:l.main},n.title)):S.createElement("div",{id:"".concat(t,"_title"),style:QS,"aria-label":c.get("Accessibility.Object.NoTitle")}),d&&S.createElement(zh,{title:n.subtitle},S.createElement(Sc,{variant:"body2",noWrap:!0,className:rw,style:l.subTitle},n.subtitle)))),S.createElement(Qf,{item:!0},v))}const iw="condition",aw="search",lw="clear_selection",sw="matches_exactly",cw="starts_with",uw="ends_with",dw="beginning_of_word",fw="general",pw="fixed_value",hw=(e,t)=>{if(!Array.isArray(e))return[];const n=t.get("Object.FilterLabel.Exclude"),r=e.filter((e=>!1!==e.showInFooter));return r.map((e=>{var r;let o="";switch(e.type){case aw:o+=(e=>{var t,n,r;let o="",i="";switch(null===(t=e.options)||void 0===t?void 0:t.mode){case dw:o="*^",i="*";break;case uw:o="*";break;case cw:i="*";break;case sw:break;default:o="*",i="*"}const a=null!==(n=null===(r=e.options.values)||void 0===r?void 0:r[0])&&void 0!==n?n:"";return""!==a?'"'.concat(o).concat(a).concat(i,'"'):""})(e);break;case iw:o+=(e=>{var t,n,r,o,i,a,l;const{options:s}=e,c=(null==s?void 0:s.mode)===fw,u=(null==s||null===(t=s.modifier)||void 0===t?void 0:t.type)===pw,d=null!=s&&null!==(n=s.modifier)&&void 0!==n&&n.operator?s.modifier.operator.split(" "):[];if(0===d.length||!u&&(null===(r=s.firstValue)||void 0===r||!r.aggregator||null===(o=s.firstValue)||void 0===o||!o.field)||u&&(null===(i=s.firstValue)||void 0===i||!i.fixedValue)||c&&(null===(a=s.conditionField)||void 0===a||!a.aggregator||null===(l=s.conditionField)||void 0===l||!l.field))return"";let f,p,h="=";var m,g,v;if(c&&u)f="".concat(null===(m=s.conditionField)||void 0===m?void 0:m.aggregator,"(").concat(bv(null===(g=s.conditionField)||void 0===g?void 0:g.field),")"),p="".concat(null===(v=s.firstValue)||void 0===v?void 0:v.fixedValue);else if(!c&&u){var b;f="",p="".concat(null===(b=s.firstValue)||void 0===b?void 0:b.fixedValue),h=""}else if(c||u){var y,x,S,w;f="".concat(null===(y=s.conditionField)||void 0===y?void 0:y.aggregator,"(").concat(bv(null===(x=s.conditionField)||void 0===x?void 0:x.field),")"),p="".concat(null===(S=s.firstValue)||void 0===S?void 0:S.aggregator,"(").concat(bv(null===(w=s.firstValue)||void 0===w?void 0:w.field),")")}else{var E,k;f="".concat(bv(e.field)),p="".concat(null===(E=s.firstValue)||void 0===E?void 0:E.aggregator,"(total ").concat(bv(null===(k=s.firstValue)||void 0===k?void 0:k.field),")")}const C="".concat(h).concat(f).concat(d[0]).concat(p);let _="";if(d.length>1){var R,L,O;if(!u&&(null===(R=s.secondValue)||void 0===R||!R.aggregator||null===(L=s.secondValue)||void 0===L||!L.field)||u&&(null===(O=s.secondValue)||void 0===O||!O.fixedValue))return"";let e,t;var I;if(c&&u)e="".concat(null===(I=s.secondValue)||void 0===I?void 0:I.fixedValue),t=" and ".concat(f);else if(!c&&u){var T;e="".concat(null===(T=s.secondValue)||void 0===T?void 0:T.fixedValue),t=""}else if(c||u){var P,M;e="".concat(null===(P=s.secondValue)||void 0===P?void 0:P.aggregator,"(").concat(bv(null===(M=s.secondValue)||void 0===M?void 0:M.field),")"),t=" and ".concat(f)}else{var N,D;e="".concat(null===(N=s.secondValue)||void 0===N?void 0:N.aggregator,"(total ").concat(bv(null===(D=s.secondValue)||void 0===D?void 0:D.field),")"),t=" and ".concat(f)}_="".concat(t).concat(d[1]).concat(e)}return'"'.concat(C).concat(_,'"')})(e);break;case lw:o+=t.get("Object.FilterLabel.All");break;default:o+=null!==(r=e.options)&&void 0!==r&&r.values?e.options.values.join(", "):t.get("Object.FilterLabel.Unknown")}return""!==o&&(o=o.replace(/^"|"$/g,""),e.exclude&&(o="".concat(n," ").concat(o))),{field:e.field,label:o}})).filter((e=>""!==e.label))},mw=(e,t)=>hw(e,t).map((e=>"".concat(e.field,": ").concat(e.label))).join("; ");var gw=e=>Jh((e=>f(f({},e),{},{shapes:[{type:"path",attrs:{d:"M14.07 0a1 1 0 0 1 .816 1.577L10 8.5v4.398a1 1 0 0 1-.532.884l-2.734 1.445A.5.5 0 0 1 6 14.785V8.5L1.112 1.577A1 1 0 0 1 1.93 0zm0 1H1.93L7 8.183v5.772l2-1.057V8.183z"}}]}))(e));function vw(e){let{styles:t,children:n}=e;return S.createElement(Sc,{noWrap:!0,variant:"body2",style:f(f({},t),{},{fontStyle:"italic"})},n)}function bw(e){var t;let{layout:n,translator:r,filtersFootnoteString:o,footerStyle:i,isRtl:a}=e;const l=hw(null!==(t=null==n?void 0:n.filters)&&void 0!==t?t:[],r),s={color:null==i?void 0:i.color,fontFamily:null==i?void 0:i.fontFamily,fontSize:null==i?void 0:i.fontSize,fontWeight:null==i?void 0:i.fontWeight};return S.createElement(zh,{title:o},S.createElement(Qf,{container:!0,wrap:"nowrap",sx:{backgroundColor:null==i?void 0:i.backgroundColor,padding:null==i?void 0:i.padding,borderTop:null==i?void 0:i.borderTop},"data-testid":"filters-footnote",justifyContent:a?"flex-end":"flex-start"},S.createElement(Qf,{item:!0,display:"flex"},S.createElement(gw,{style:{fontSize:"12px",color:i.color,margin:"auto"}}),S.createElement(vw,{styles:f(f({},s),{},{marginLeft:"2px"})},r.get("Object.FiltersApplied"),"  ")),S.createElement(Qf,{item:!0,display:"flex"},l.map((e=>S.createElement(Qf,{container:!0,wrap:"nowrap",key:"".concat(e.field,"-").concat(e.label)},S.createElement(vw,{styles:f(f({},s),{},{fontWeight:"bold"})},"".concat(e.field,":")),S.createElement(vw,{styles:s},"   ",e.label,"  ")))))))}const yw={itemStyle:"".concat("Footer","-itemStyle")},xw=$l(Qf)((()=>({["& .".concat(yw.itemStyle)]:{minWidth:0,width:"100%"}}))),Sw="njs-cell-footer";function ww(e){var t,n,r;let{layout:o,titleStyles:i={},translator:a,flags:l,isCardTheme:s,isRtl:c}=e;const u=i.footer,d=(null==o||null===(t=o.filters)||void 0===t?void 0:t.length)>0&&(null==o||null===(n=o.qHyperCube)||void 0===n||null===(n=n.qMeasureInfo)||void 0===n?void 0:n.length)>0,f=mw(null!==(r=null==o?void 0:o.filters)&&void 0!==r?r:[],a),p=!(null!=o&&o.footnote)&&d&&f,h=null==l?void 0:l.isEnabled("VNA-13_CELLPADDING_FROM_THEME"),m=s?"1px":"6px";return o&&o.showTitles&&(o.footnote||p)?S.createElement(xw,{container:!0},S.createElement(Qf,{item:!0,className:yw.itemStyle,"data-testid":Sw,sx:{paddingTop:e=>h?m:e.spacing(1)}},o.footnote&&S.createElement(zh,{title:o.footnote},S.createElement(Sc,{noWrap:!0,variant:"body2",className:Sw,style:u,align:c?"right":"left"},o.footnote)),p&&S.createElement(bw,{layout:o,translator:a,filtersFootnoteString:f,footerStyle:u,isRtl:c}))):null}class Ew{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 kw="njs-viz";function Cw(e){let{sn:t,snOptions:n,snPlugins:r,layout:o,appLayout:i,halo:a,cellId:l}=e;const{component:s}=t,{theme:c,language:u,constraints:d,interactions:p,keyboardNavigation:h}=x.useContext(Vs),[m]=x.useState((()=>new Ew)),[g,v]=x.useState(!1),[b,y]=x.useState(0),[w,E,k]=Kh(),[C,_]=x.useState(null),R=x.useCallback((e=>{e&&_(e)}),[]);return x.useEffect((()=>{if(C)return s.created({options:n}),s.mounted(C),v(!0),()=>{m.stop(),s.willUnmount()}}),[C,s]),x.useEffect((()=>{g&&C&&E&&(!s.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||m.schedule((()=>{const e=[];return d.passive||e.push("passive"),d.active||e.push("interact"),d.select||e.push("select"),d.edit||e.push("edit"),a.app&&a.app.session&&e.push("fetch"),Promise.resolve(s.render({layout:o,options:n,plugins:r,embed:a.public.nebbie,context:f({constraints:d,interactions:p,theme:a.public.theme,appLayout:i,keyboardNavigation:h},s.isHooked?{}:{logicalSize:t.logicalSize({layout:o}),localeInfo:(i||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===b&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),y(b+1))}))})))}),[E,n,r,C,k,o,i,c,u,d,p,g,h]),S.createElement("div",{ref:w,"data-render-count":b,style:{position:"relative",height:"100%"},className:kw},S.createElement("div",{ref:R,id:"".concat(l,"_content"),style:{position:"absolute",width:"100%",height:"100%"}}))}const _w={linechart:"lineChart",barchart:"barChart",combochart:"comboChart",scatterplot:"scatterPlot",piechart:"pieChart",straightable:"straightTable",pivottable:"pivotTable",table:"straightTable","pivot-table":"pivotTable",listbox:"listBox",referenceline:"referenceLine",datacolors:"dataColors","text-image":"textImage",boxplot:"boxPlot",map:"mapChart",mapchart:"mapChart",bulletchart:"bulletChart"},Rw=e=>{let{layout:t,theme:n,app:r,themeName:o,disableThemeBorder:i}=e;const a=x.useMemo((()=>{if(t&&n){const o=t.components?t.components.find((e=>"general"===e.key)):null,a=(e=t.visualization,_w[e.toLowerCase()]?_w[e.toLowerCase()]:e),l={main:Jy(o,"main",n,a),footer:Jy(o,"footer",n,a),subTitle:Jy(o,"subTitle",n,a)},s=Ky(o,n,a),c=Gy(o,r),u=function(e,t,n,r){const o=Wy(null==e?void 0:e.borderColor,"","borderColor",t,n);let i=null==e?void 0:e.borderWidth;return!i&&!r&&(i=By("","borderWidth",t,n)),i&&o?"".concat(i," solid ").concat(o):void 0}(o,n,a,i),d=function(e,t,n){return(null==e?void 0:e.borderRadius)||By("","borderRadius",t,n)}(o,n,a);return{titleStyles:l,bgColor:s,bgImage:c,border:u,borderRadius:d,boxShadow:Zy(o,n,a)}}var e;return{}}),[t,n,r,o,i]);return a};class Lw extends Error{constructor(e,t){super(e),this.originalError=t,this.name="RenderError"}}const Ow=["action-button","sn-nav-menu","filterpane","sn-shape"],Iw=[...Ow,"pivot-table","table","sn-table","sn-pivot-table","kpi","sn-calendar","sn-filter-pane","sn-layout-container","sn-tabbed-container"],Tw=e=>-1===Ow.indexOf(e),Pw=e=>Tw(e)?"10px 10px 0":"10px 0 0",Mw=e=>{let{layout:t,isError:n,isCardTheme:r,titleStyles:o,translator:i}=e;if(r){var a,l,s;const e=(null==t?void 0:t.showTitles)&&!(null==t||!t.title),r=(null==t?void 0:t.showTitles)&&!(null==t||!t.subtitle),c=(null==t||null===(a=t.filters)||void 0===a?void 0:a.length)>0&&(null==t||null===(l=t.qHyperCube)||void 0===l||null===(l=l.qMeasureInfo)||void 0===l?void 0:l.length)>0,u=null==t?void 0:t.visualization,d=mw(null!==(s=null==t?void 0:t.filters)&&void 0!==s?s:[],i),f=!(null!=t&&t.footnote)&&c&&d,p=(null==t?void 0:t.showTitles)&&(!(null==t||!t.footnote)||f);let h;return e&&(o.main.padding=Pw(u)),r&&(o.subTitle.padding=((e,t)=>{const n=Tw(e);return t?n?"0 10px":"0":Pw(e)})(u,e)),p&&(-1===Ow.indexOf(u)&&(o.footer.borderTop="1px solid #d9d9d9"),o.footer.padding="6px 10px"),(n||-1===Iw.indexOf(u))&&(h="".concat(e||r?"0":"10px"," 10px ").concat(p?"0":"5px")),h}},Nw=new Map;[["auto-chart","Object.AutoChart"],["dummy-chart","Dummy"],["barchart","Object.BarChart"],["combochart","Object.ComboChart"],["container","Object.Container"],["distributionplot","Object.DistributionPlot"],["boxplot","Object.BoxPlot"],["filterpane","Object.FilterPane"],["gauge","Object.Gauge"],["histogram","Object.Histogram"],["kpi","Object.Kpi"],["linechart","Object.LineChart"],["listbox","Object.Listbox"],["piechart","Object.PieChart"],["pivot-table","Object.PivotTable"],["map","Object.Map"],["scatterplot","Object.ScatterPlot"],["sn-table","Object.StraightTable"],["text-image","Object.TextImage"],["treemap","Object.Treemap"],["waterfallchart","Object.WaterfallChart"],["mekkochart","Object.MekkoChart"],["action-button","Object.ActionButton"],["sn-nav-menu","Object.NavMenu"],["bulletchart","Object.BulletChart"],["sn-nlg-chart","Object.NlgChart"],["sn-analysis-autochart","Common.AnalysisTypes"],["sn-tabbed-container","Object.TabContainer"],["qlik-sankey-chart-ext","Object.SankeyChart"],["qlik-radar-chart","Object.RadarChart"],["qlik-funnel-chart-ext","Object.FunnelChart"],["sn-grid-chart","Object.GridChart"],["sn-layout-container","Object.LayoutContainer"]].forEach((e=>{let[t,n]=e;Nw.set(t,n)}));const Dw="njs-cell",qw="njs-cell-body";const Aw=(e,t)=>{switch(t.type){case"LOADING":return f(f({},e),{},{loading:!0});case"LOADED":return f(f({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return f(f({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return f(f({},e),{},{longRunningQuery:!0});case"ERROR":return f(f({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function zw(e){let{delay:t=750}=e;const[n,r]=x.useState(!1);return x.useEffect((()=>{const e=setTimeout((()=>r(!0)),t);return()=>clearTimeout(e)}),[]),n?S.createElement(XS,null):null}const jw=e=>!e.qError||7005===e.qError.qErrorCode,Fw=(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}})),$w=e=>e&&(Array.isArray(e)?e:[e])||[],Bw=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t),l=Fw(o,$w(a.qDimensionInfo||a.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),s=Fw(i,$w(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"));return{reqDimErrors:l,reqMeasErrors:s}},Ww=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(),f=u.measures.min(),p=u.resolveLayout(n),h=$w(p.qDimensionInfo||p.qItems).filter(jw),m=$w(p.qMeasureInfo).filter(jw);if(o+=d,i+=f,(h.length<d||m.length<f)&&(r=!0),p.qError){a=!0,l=7005===p.qError.qErrorCode;const t=l&&p.qCalcCondMsg?p.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 f=null;for(let n=0;n<o.length;++n){const a=o[n];if(!s&&i){const n=f||await r.getProperties();f=n;const o=Bw(e,t,n,a);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const p=u.filter((e=>!(e.missing||e.error))).length,h=e.get("Visualization.Incomplete.Dimensions",[p,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}]};function Uw(){return new O}const Hw=x.forwardRef(((e,t)=>{var n,r;let{halo:o,model:i,initialSnOptions:a,initialSnPlugins:l,initialError:s,onMount:c,currentId:u,emitter:d,navigation:p,onError:h}=e;const{app:m,types:g}=o,{nebbie:v}=o.public,{theme:b,translator:y,language:w,keyboardNavigation:E,externalFocusManagement:k,disableCellPadding:C=!1,navigation:_}=x.useContext(Vs),[R]=x.useState(d||Uw),L=_l(),[O,I,T]=Kh(),[P,M]=x.useReducer(Aw,{loading:!1,loaded:!1,longRunningQuery:!1,error:(N=s)?{title:N.message}:null,sn:null,visualization:null});var N;const[D,q]=x.useState(i),[A,{validating:z,canCancel:j,canRetry:F},$]=Vh(D),[B]=Gh(m),[W,U,H]=Kh(),[V,G]=x.useState(a),[K,Z]=x.useState(l),J="njs-cell-".concat(u),[X]=sb(m,D,["#".concat(J),".njs-action-toolbar-popover"]),[Q,Y]=x.useState(!1),ee=x.useRef({enter:null,leave:null}),{titleStyles:te,bgColor:ne,bgImage:re,border:oe,borderRadius:ie,boxShadow:ae}=Rw({layout:A,theme:o.public.theme,app:o.app,themeName:b,disableThemeBorder:null==V?void 0:V.disableThemeBorder}),le=!("rtl"!==(null==V?void 0:V.direction)),se=x.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});x.useEffect((()=>{ib(se.current),se.current.blurCallback=e=>{se.current.onBlurHandler?se.current.onBlurHandler(e):(o.root.toggleFocusOfCells(),e&&H&&H.focus())},se.current.refocusContent=()=>{P.sn.component&&"function"==typeof P.sn.component.focus&&P.sn.component.focus()}}),[]);x.useEffect((()=>{if(s)return void c();if(!B||!A)return;if(P.visualization===A.visualization&&P.sn)return void(async e=>{const[t,n]=await Ww(y,A,e.generator.qae.data,D);M(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:P.sn,layout:A,model:D})})(P.sn);const e=g.getSupportedVersion(A.visualization,A.version);return(async(e,t)=>{M({type:"LOADING"}),await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:i,app:a,selections:l,nebbie:s,focusHandler:c,emitter:u,onMount:d,navigation:f}=e;try{const e=await(async e=>{let{types:t,name:n,version:r}=e;return await t.get({name:n,version:r}).supernova()})({types:n,name:r,version:o}),p=e.create({model:i,app:a,selections:l,nebbie:s,focusHandler:c,emitter:u,navigation:f});p&&(t({type:"LOADED",sn:p,visualization:r}),d())}catch(e){t(o?{type:"ERROR",error:{title:e.message,errorObject:e}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(r,"' that supports current object version. Did you forget to register ").concat(r,"?")}}),d()}})({dispatch:M,types:g,visualization:e,version:t,model:D,app:m,selections:X,nebbie:v,focusHandler:se.current,emitter:R,onMount:c,navigation:null!=p?p:_})})(A.visualization,e),()=>{}}),[g,P.sn,D,X,A,B,w]),x.useEffect((()=>{if(!z)return;const e=setTimeout((()=>M({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[z]),x.useImperativeHandle(t,(()=>({getQae:()=>P.sn.generator.qae,getExtensionDefinition:()=>P.sn.generator.definition.ext,support(e,t,n){if(A&&P.loaded&&!P.error){var r;const o=t||(null===(r=P.sn.generator.definition.ext)||void 0===r?void 0:r.support);if(o)return function(e,t,n){const r=t[e];return"function"==typeof r?r.call(null,n):"boolean"==typeof r&&r}(e,o,n||A)}return!1},toggleFocus(e){"function"==typeof P.sn.component.focus&&(e?P.sn.component.focus():P.sn.component.blur())},setOnBlurHandler(e){se.current.onBlurHandler=e},setSnOptions:G,setSnPlugins:Z,setModel:q,getImperativeHandle(){var e;return null!==(e=P.sn)&&void 0!==e&&e.component&&"function"==typeof P.sn.component.getImperativeHandle?P.sn.component.getImperativeHandle():{}},onContextMenu(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return null===(e=P.sn)||void 0===e?void 0:e.component.onContextMenu(...n)},async takeSnapshot(){const{width:e,height:t}=I;let n=JSON.parse(JSON.stringify(A));return"function"==typeof P.sn.component.setSnapshotData&&(n=await P.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:y.language(),theme:L.name,appLayout:B,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof o.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return o.config.snapshot.capture(e)}})),[P.sn,U,I,A,L.name,B]);let ce=null;if(P.loading&&!P.longRunningQuery)ce=S.createElement(zw,null);else if(P.error){if(h){h(P.error.errorObject?P.error.errorObject:new Lw(P.error.title))}ce=S.createElement(AS,P.error)}else P.loaded&&(ce=S.createElement(Cw,{key:A.visualization,sn:P.sn,halo:o,snOptions:V,snPlugins:K,layout:A,appLayout:B,cellId:u}));const ue=!(null===(n=o.public.theme)||void 0===n||!n.getStyle("","","_cards")),de=null===(r=o.public.galaxy)||void 0===r?void 0:r.flags;let fe,pe;C?(fe=!1,pe=void 0):null!=de&&de.isEnabled("VNA-13_CELLPADDING_FROM_THEME")?(fe=!1,pe=Mw({layout:A,isError:P.error,isCardTheme:ue,titleStyles:te,translator:y})):(fe=!0,pe=void 0);const he=Nw.get(null==A?void 0:A.visualization),me=y.get(he);return S.createElement(uc,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:ne||"unset",backgroundImage:re&&re.url?"url(".concat(re.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:re&&re.size,backgroundPosition:re&&re.pos,border:oe,borderRadius:ie,boxShadow:ae,boxSizing:"border-box"},elevation:0,square:!0,className:Dw,ref:O,id:J,onMouseEnter:()=>{ee.current.leave&&clearTimeout(ee.current.leave),ee.enter||(ee.current.enter=setTimeout((()=>{Y(!0),ee.current.enter=null}),250))},onMouseLeave:()=>{ee.current.enter&&clearTimeout(ee.current.enter),ee.current.leave||(ee.current.leave=setTimeout((()=>{Y(!1),ee.current.leave=null}),750))}},S.createElement(Qf,{container:!0,direction:"column",gap:0,style:f(f({position:"relative",width:"100%",height:"100%"},fe?{padding:L.spacing(1)}:{}),P.longRunningQuery?{opacity:"0.3"}:{}),"aria-labelledby":"".concat(u,"_title ").concat(u,"_type ").concat(u,"_content")},A&&S.createElement("div",{id:"".concat(u,"_type"),style:QS,"aria-label":null!=me?me:A.visualization}),T&&A&&P.sn&&S.createElement(ow,{layout:A,sn:P.sn,anchorEl:T,hovering:Q,focusHandler:se.current,titleStyles:te,isRtl:le,id:u,translator:y}," "),S.createElement(Qf,{tabIndex:E&&!k?0:-1,onKeyDown:E&&!k?e=>{["Enter"," ","Spacebar"].includes(e.key)&&o.root.toggleFocusOfCells(u)}:null,item:!0,xs:!0,className:qw,style:f({height:"100%"},pe?{padding:pe}:{}),ref:W},ce),T&&A&&P.sn&&S.createElement(ww,{layout:A,titleStyles:te,translator:y,flags:de,isCardTheme:ue,isRtl:le})),P.longRunningQuery&&S.createElement(JS,{canCancel:j,canRetry:F,api:$}))}));function Vw(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Gw(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const r=[];return Object.keys(t).forEach((o=>{const i=t[o];"object"!=typeof n[o]||"object"!=typeof i||Array.isArray(i)?function(e,t){return Vw(e)&&Vw(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}(i,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...Gw("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function Kw(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 Zw=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))},Jw=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t);var Xw,Qw={exports:{}},Yw=Qw.exports;
123
+ `),cf))),pf=x.forwardRef((function(e,t){const n=Ul({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=ut(n,ef),f=ct({},n,{color:o,disableShrink:i,size:a,thickness:s,value:c,variant:u}),p=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return da({root:["root",n,`color${no(r)}`],svg:["svg"],circle:["circle",`circle${no(n)}`,o&&"circleDisableShrink"]},Qd,t)})(f),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((lf-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 qr.jsx(uf,ct({className:pi(p.root,r),style:ct({width:a,height:a},m,l),ownerState:f,ref:t,role:"progressbar"},g,d,{children:qr.jsx(df,{className:p.svg,ownerState:f,viewBox:"22 22 44 44",children:qr.jsx(ff,{className:p.circle,style:h,ownerState:f,cx:lf,cy:lf,r:(lf-s)/2,fill:"none",strokeWidth:s})})}))}));function hf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function mf(e){return parseInt(Bi(e).getComputedStyle(e).paddingRight,10)||0}function gf(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&&hf(e,o)}))}function vf(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function bf(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=$i(e);return t.body===e?Bi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=ca($i(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${mf(r)+e}px`;const t=$i(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${mf(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=$i(r).body;else{const t=r.parentElement,n=Bi(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const yf=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function xf(e){const t=[],n=[];return Array.from(e.querySelectorAll(yf)).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 Sf(){return!0}function wf(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=xf,isEnabled:a=Sf,open:l}=e,s=x.useRef(!1),c=x.useRef(null),u=x.useRef(null),d=x.useRef(null),f=x.useRef(null),p=x.useRef(!1),h=x.useRef(null),m=Zi(xa(t),h),g=x.useRef(null);x.useEffect((()=>{l&&h.current&&(p.current=!n)}),[n,l]),x.useEffect((()=>{if(!l||!h.current)return;const e=$i(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),p.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),x.useEffect((()=>{if(!l||!h.current)return;const e=$i(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,u.current&&u.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!p.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=i(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0};return qr.jsxs(x.Fragment,{children:[qr.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),qr.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})}const Ef=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&&hf(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);gf(t,e.mount,e.modalRef,r,!0);const o=vf(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=vf(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=bf(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=vf(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&&hf(e.modalRef,t),gf(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&&hf(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function kf(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Ef,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:c,open:u,rootRef:d}=e,f=x.useRef({}),p=x.useRef(null),h=x.useRef(null),m=Zi(h,d),[g,v]=x.useState(!u),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(f.current.modalRef=h.current,f.current.mount=p.current,f.current),w=()=>{o.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},E=Ki((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||$i(p.current).body;o.add(S(),e),h.current&&w()})),k=x.useCallback((()=>o.isTopModal(S())),[o]),C=Ki((e=>{p.current=e,e&&(u&&k()?w():h.current&&hf(h.current,y))})),_=x.useCallback((()=>{o.remove(S(),y)}),[y,o]);x.useEffect((()=>()=>{_()}),[_]),x.useEffect((()=>{u?E():b&&i||_()}),[u,_,b,i,E]);const R=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&k()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},L=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=ga(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=ct({},n,t);return ct({role:"presentation"},r,{onKeyDown:R(r),ref:m})},getBackdropProps:(e={})=>ct({"aria-hidden":!0},e,{onClick:L(e),open:u}),getTransitionProps:()=>({onEnter:zi((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:zi((()=>{v(!0),l&&l(),i&&_()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:C,isTopModal:k,exited:g,hasTransition:b}}function Cf(e){return gi("MuiModal",e)}vi("MuiModal",["root","hidden","backdrop"]);const _f=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Rf=$l("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>ct({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Lf=$l(Rd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Of=x.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Ul({name:"MuiModal",props:e}),{BackdropComponent:c=Lf,BackdropProps:u,className:d,closeAfterTransition:f=!1,children:p,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:k=!1,hideBackdrop:C=!1,keepMounted:_=!1,onBackdropClick:R,open:L,slotProps:O,slots:I}=s,T=ut(s,_f),P=ct({},s,{closeAfterTransition:f,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:E,disableScrollLock:k,hideBackdrop:C,keepMounted:_}),{getRootProps:M,getBackdropProps:q,getTransitionProps:D,portalRef:N,isTopModal:A,exited:z,hasTransition:j}=kf(ct({},P,{rootRef:t})),F=ct({},P,{exited:z}),$=(e=>{const{open:t,exited:n,classes:r}=e;return da({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Cf,r)})(F),B={};if(void 0===p.props.tabIndex&&(B.tabIndex="-1"),j){const{onEnter:e,onExited:t}=D();B.onEnter=e,B.onExited=t}const W=null!=(n=null!=(r=null==I?void 0:I.root)?r:g.Root)?n:Rf,H=null!=(o=null!=(i=null==I?void 0:I.backdrop)?i:g.Backdrop)?o:c,U=null!=(a=null==O?void 0:O.root)?a:v.root,V=null!=(l=null==O?void 0:O.backdrop)?l:v.backdrop,G=ya({elementType:W,externalSlotProps:U,externalForwardedProps:T,getSlotProps:M,additionalProps:{ref:t,as:m},ownerState:F,className:pi(d,null==U?void 0:U.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),K=ya({elementType:H,externalSlotProps:V,additionalProps:u,getSlotProps:e=>q(ct({},e,{onClick:t=>{R&&R(t),null!=e&&e.onClick&&e.onClick(t)}})),className:pi(null==V?void 0:V.className,null==u?void 0:u.className,null==$?void 0:$.backdrop),ownerState:F});return _||L||j&&!z?qr.jsx(Wu,{ref:N,container:h,disablePortal:w,children:qr.jsxs(W,ct({},G,{children:[!C&&c?qr.jsx(H,ct({},K)):null,qr.jsx(wf,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:A,open:L,children:x.cloneElement(p,B)})]}))}):null}));function If(e){return gi("MuiDivider",e)}const Tf=vi("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Pf=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Mf=$l("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>ct({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ja.alpha(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>ct({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>ct({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>ct({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>ct({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),qf=$l("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>ct({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Df=x.forwardRef((function(e,t){const n=Ul({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:f="fullWidth"}=n,p=ut(n,Pf),h=ct({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:c,role:u,textAlign:d,variant:f}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return da({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"]},If,r)})(h);return qr.jsx(Mf,ct({as:a,className:pi(m.root,i),role:u,ref:t,ownerState:h},p,{children:o?qr.jsx(qf,{className:m.wrapper,ownerState:h,children:o}):null}))}));Df.muiSkipListHighlight=!0;const Nf=function(e={}){const{createStyledComponent:t=Na,useThemeProps:n=Aa,componentName:r="MuiStack"}=e,o=t(ja),i=x.forwardRef((function(e,t){const i=si(n(e)),{component:a="div",direction:l="column",spacing:s=0,divider:c,children:u,className:d,useFlexGap:f=!1}=i,p=ut(i,qa),h={direction:l,spacing:s,useFlexGap:f},m=da({root:["root"]},(e=>gi(r,e)),{});return qr.jsx(o,ct({as:a,ownerState:h,ref:t,className:pi(m.root,d)},p,{children:c?za(u,c):u}))}));return i}({createStyledComponent:$l("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ul({props:e,name:"MuiStack"})});function Af(e){return gi("MuiFormControlLabel",e)}const zf=vi("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),jf=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Ff=$l("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zf.label}`]:t.label},t.root,t[`labelPlacement${no(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>ct({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${zf.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},{[`& .${zf.label}`]:{[`&.${zf.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),$f=$l("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${zf.error}`]:{color:(e.vars||e).palette.error.main}}))),Bf=x.forwardRef((function(e,t){var n,r;const o=Ul({props:e,name:"MuiFormControlLabel"}),{className:i,componentsProps:a={},control:l,disabled:s,disableTypography:c,label:u,labelPlacement:d="end",required:f,slotProps:p={}}=o,h=ut(o,jf),m=ld(),g=null!=(n=null!=s?s:l.props.disabled)?n:null==m?void 0:m.disabled,v=null!=f?f: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=id({props:o,muiFormControl:m,states:["error"]}),S=ct({},o,{disabled:g,labelPlacement:d,required:v,error:y.error}),w=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e;return da({root:["root",n&&"disabled",`labelPlacement${no(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},Af,t)})(S),E=null!=(r=p.typography)?r:a.typography;let k=u;return null==k||k.type===Sc||c||(k=qr.jsx(Sc,ct({component:"span"},E,{className:pi(w.label,null==E?void 0:E.className),children:k}))),qr.jsxs(Ff,ct({className:pi(w.root,i),ownerState:S,ref:t},h,{children:[x.cloneElement(l,b),v?qr.jsxs(Nf,{display:"block",children:[k,qr.jsxs($f,{ownerState:S,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):k]}))})),Wf=x.createContext();function Hf(e){return gi("MuiGrid",e)}const Uf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Vf=vi("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}`)),...Uf.map((e=>`grid-xs-${e}`)),...Uf.map((e=>`grid-sm-${e}`)),...Uf.map((e=>`grid-md-${e}`)),...Uf.map((e=>`grid-lg-${e}`)),...Uf.map((e=>`grid-xl-${e}`))]),Gf=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Kf(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Zf({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 Jf=$l("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})=>ct({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 Yr({theme:e},to({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${Vf.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=to({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Zf({breakpoints:e.breakpoints.values,values:t})),o=Yr({theme:e},t,((t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{marginTop:`-${Kf(i)}`,[`& > .${Vf.item}`]:{paddingTop:Kf(i)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${Vf.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=to({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Zf({breakpoints:e.breakpoints.values,values:t})),o=Yr({theme:e},t,((t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{width:`calc(100% + ${Kf(i)})`,marginLeft:`-${Kf(i)}`,[`& > .${Vf.item}`]:{paddingLeft:Kf(i)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${Vf.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=to({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} + ${Kf(n)})`;c={flexBasis:e,maxWidth:e}}}i=ct({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 Xf=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 da({root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...u]},Hf,t)},Yf=x.forwardRef((function(e,t){const n=Ul({props:e,name:"MuiGrid"}),{breakpoints:r}=_l(),o=si(n),{className:i,columns:a,columnSpacing:l,component:s="div",container:c=!1,direction:u="row",item:d=!1,rowSpacing:f,spacing:p=0,wrap:h="wrap",zeroMinWidth:m=!1}=o,g=ut(o,Gf),v=f||p,b=l||p,y=x.useContext(Wf),S=c?a||12:y,w={},E=ct({},g);r.keys.forEach((e=>{null!=g[e]&&(w[e]=g[e],delete E[e])}));const k=ct({},o,{columns:S,container:c,direction:u,item:d,rowSpacing:v,columnSpacing:b,wrap:h,zeroMinWidth:m,spacing:p},w,{breakpoints:r.keys}),C=Xf(k);return qr.jsx(Wf.Provider,{value:S,children:qr.jsx(Jf,ct({ownerState:k,className:pi(C.root,i),as:s,ref:t},E))})})),Qf=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ep(e){return`scale(${e}, ${e**2})`}const tp={entering:{opacity:1,transform:ep(1)},entered:{opacity:1,transform:"none"}},np="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),rp=x.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:f,style:p,timeout:h="auto",TransitionComponent:m=rs}=e,g=ut(e,Qf),v=Qi(),b=x.useRef(),y=_l(),S=x.useRef(null),w=Zi(S,xa(o),t),E=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},k=E(c),C=E(((e,t)=>{ic(e);const{duration:n,delay:r,easing:o}=ac({style:p,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:np?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),_=E(s),R=E(f),L=E((e=>{const{duration:t,delay:n,easing:r}=ac({style:p,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:np?o:.666*o,delay:np?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=ep(.75),u&&u(e)})),O=E(d);return qr.jsx(m,ct({appear:r,in:a,nodeRef:S,onEnter:C,onEntered:_,onEntering:k,onExit:L,onExited:O,onExiting:R,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>x.cloneElement(o,ct({style:ct({opacity:0,transform:ep(.75),visibility:"exited"!==e||a?void 0:"hidden"},tp[e],p,o.props.style),ref:w},t))}))}));function op(e){return gi("MuiIcon",e)}rp.muiSupportAuto=!0,vi("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ip=["baseClassName","className","color","component","fontSize"],ap=$l("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${no(n.color)}`],t[`fontSize${no(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]}))),lp=x.forwardRef((function(e,t){const n=Ul({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:i="inherit",component:a="span",fontSize:l="medium"}=n,s=ut(n,ip),c=ct({},n,{baseClassName:r,color:i,component:a,fontSize:l}),u=(e=>{const{color:t,fontSize:n,classes:r}=e;return da({root:["root","inherit"!==t&&`color${no(t)}`,`fontSize${no(n)}`]},op,r)})(c);return qr.jsx(ap,ct({as:a,className:pi(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t},s))}));function sp(e){return gi("MuiInputAdornment",e)}lp.muiName="Icon";const cp=vi("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var up;const dp=["children","className","component","disablePointerEvents","disableTypography","position","variant"],fp=$l("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${no(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>ct({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${cp.positionStart}&:not(.${cp.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),pp=x.forwardRef((function(e,t){const n=Ul({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:s,variant:c}=n,u=ut(n,dp),d=ld()||{};let f=c;c&&d.variant,d&&!f&&(f=d.variant);const p=ct({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:s,variant:f}),h=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return da({root:["root",n&&"disablePointerEvents",o&&`position${no(o)}`,a,r&&"hiddenLabel",i&&`size${no(i)}`]},sp,t)})(p);return qr.jsx(ad.Provider,{value:null,children:qr.jsx(fp,ct({as:i,ownerState:p,className:pi(h.root,o),ref:t},u,{children:"string"!=typeof r||l?qr.jsxs(x.Fragment,{children:["start"===s?up||(up=qr.jsx("span",{className:"notranslate",children:"​"})):null,r]}):qr.jsx(Sc,{color:"text.secondary",children:r})}))})})),hp=x.createContext({});function mp(e){return gi("MuiList",e)}vi("MuiList",["root","padding","dense","subheader"]);const gp=["children","className","component","dense","disablePadding","subheader"],vp=$l("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>ct({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),bp=x.forwardRef((function(e,t){const n=Ul({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,c=ut(n,gp),u=x.useMemo((()=>({dense:a})),[a]),d=ct({},n,{component:i,dense:a,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return da({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},mp,t)})(d);return qr.jsx(hp.Provider,{value:u,children:qr.jsxs(vp,ct({as:i,className:pi(f.root,o),ref:t,ownerState:d},c,{children:[s,r]}))})}));function yp(e){return gi("MuiListItem",e)}const xp=vi("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Sp=vi("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function wp(e){return gi("MuiListItemSecondaryAction",e)}vi("MuiListItemSecondaryAction",["root","disableGutters"]);const Ep=["className"],kp=$l("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>ct({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),Cp=x.forwardRef((function(e,t){const n=Ul({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=ut(n,Ep),i=ct({},n,{disableGutters:x.useContext(hp).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return da({root:["root",t&&"disableGutters"]},wp,n)})(i);return qr.jsx(kp,ct({className:pi(a.root,r),ownerState:i,ref:t},o))}));Cp.muiName="ListItemSecondaryAction";const _p=["className"],Rp=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Lp=$l("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})=>ct({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&ct({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Sp.root}`]:{paddingRight:48}},{[`&.${xp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${xp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ja.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${xp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ja.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${xp.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"}},[`&.${xp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ja.alpha(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})`:Ja.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),Op=$l("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Ip=x.forwardRef((function(e,t){const n=Ul({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:f}={},dense:p=!1,disabled:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:v=!1,focusVisibleClassName:b,secondaryAction:y,selected:S=!1,slotProps:w={},slots:E={}}=n,k=ut(n.ContainerProps,_p),C=ut(n,Rp),_=x.useContext(hp),R=x.useMemo((()=>({dense:p||_.dense||!1,alignItems:r,disableGutters:m})),[r,_.dense,p,m]),L=x.useRef(null);Ni((()=>{o&&L.current&&L.current.focus()}),[o]);const O=x.Children.toArray(a),I=O.length&&Fi(O[O.length-1],["ListItemSecondaryAction"]),T=ct({},n,{alignItems:r,autoFocus:o,button:i,dense:R.dense,disabled:h,disableGutters:m,disablePadding:g,divider:v,hasSecondaryAction:I,selected:S}),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 da({root:["root",o&&"dense",!a&&"gutters",!l&&"padding",s&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},yp,r)})(T),M=Zi(L,t),q=E.root||c.Root||Lp,D=w.root||u.root||{},N=ct({className:pi(P.root,D.className,l),disabled:h},C);let A=s||"li";return i&&(N.component=s||"div",N.focusVisibleClassName=pi(xp.focusVisible,b),A=Ls),I?(A=N.component||s?A:"div","li"===d&&("li"===A?A="div":"li"===N.component&&(N.component="div")),qr.jsx(hp.Provider,{value:R,children:qr.jsxs(Op,ct({as:d,className:pi(P.container,f),ref:M,ownerState:T},k,{children:[qr.jsx(q,ct({},D,!fa(q)&&{as:A,ownerState:ct({},T,D.ownerState)},N,{children:O})),O.pop()]}))})):qr.jsx(hp.Provider,{value:R,children:qr.jsxs(q,ct({},D,{as:A,ref:M},!fa(q)&&{ownerState:ct({},T,D.ownerState)},N,{children:[O,y&&qr.jsx(Cp,{children:y})]}))})}));function Tp(e){return gi("MuiListItemIcon",e)}const Pp=vi("MuiListItemIcon",["root","alignItemsFlexStart"]),Mp=["className"],qp=$l("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>ct({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Dp=x.forwardRef((function(e,t){const n=Ul({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=ut(n,Mp),i=ct({},n,{alignItems:x.useContext(hp).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return da({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Tp,n)})(i);return qr.jsx(qp,ct({className:pi(a.root,r),ownerState:i,ref:t},o))})),Np=vi("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Ap=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function zp(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function jp(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Fp(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 $p(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")&&Fp(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const Bp=x.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=ut(e,Ap),f=x.useRef(null),p=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ni((()=>{r&&f.current.focus()}),[r]),x.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${ca($i(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const h=Zi(f,t);let m=-1;x.Children.forEach(i,((e,t)=>{x.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))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=x.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),x.cloneElement(e,t)}return e}));return qr.jsx(bp,ct({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=f.current,n=e.key,r=$i(t).activeElement;if("ArrowDown"===n)e.preventDefault(),$p(t,r,s,l,zp);else if("ArrowUp"===n)e.preventDefault(),$p(t,r,s,l,jp);else if("Home"===n)e.preventDefault(),$p(t,null,s,l,zp);else if("End"===n)e.preventDefault(),$p(t,null,s,l,jp);else if(1===n.length){const o=p.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&&Fp(r,o);o.previousKeyMatched&&(s||$p(t,r,!1,l,zp,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:g}))}));function Wp(e){return gi("MuiPopover",e)}vi("MuiPopover",["root","paper"]);const Hp=["onEntering"],Up=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Vp=["slotProps"];function Gp(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Kp(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Zp(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Jp(e){return"function"==typeof e?e():e}const Xp=$l(Of,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Yp=$l(uc,{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}),Qp=x.forwardRef((function(e,t){var n,r,o;const i=Ul({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:f,container:p,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=rp,transitionDuration:E="auto",TransitionProps:{onEntering:k}={},disableScrollLock:C=!1}=i,_=ut(i.TransitionProps,Hp),R=ut(i,Up),L=null!=(n=null==y?void 0:y.paper)?n:v,O=x.useRef(),I=Zi(O,L.ref),T=ct({},i,{anchorOrigin:s,anchorReference:u,elevation:h,marginThreshold:m,externalPaperSlotProps:L,transformOrigin:S,TransitionComponent:w,transitionDuration:E,TransitionProps:_}),P=(e=>{const{classes:t}=e;return da({root:["root"],paper:["paper"]},Wp,t)})(T),M=x.useCallback((()=>{if("anchorPosition"===u)return c;const e=Jp(l),t=(e&&1===e.nodeType?e:$i(O.current).body).getBoundingClientRect();return{top:t.top+Gp(t,s.vertical),left:t.left+Kp(t,s.horizontal)}}),[l,s.horizontal,s.vertical,c,u]),q=x.useCallback((e=>({vertical:Gp(e,S.vertical),horizontal:Kp(e,S.horizontal)})),[S.horizontal,S.vertical]),D=x.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=q(t);if("none"===u)return{top:null,left:null,transformOrigin:Zp(n)};const r=M();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,c=Bi(Jp(l)),d=c.innerHeight-m,f=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(s>f){const e=s-f;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Zp(n)}}),[l,u,M,q,m]),[N,A]=x.useState(g),z=x.useCallback((()=>{const e=O.current;if(!e)return;const t=D(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,A(!0)}),[D]);x.useEffect((()=>(C&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z))),[l,C,z]);x.useEffect((()=>{g&&z()})),x.useImperativeHandle(a,(()=>g?{updatePosition:()=>{z()}}:null),[g,z]),x.useEffect((()=>{if(!g)return;const e=ji((()=>{z()})),t=Bi(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,z]);let j=E;"auto"!==E||w.muiSupportAuto||(j=void 0);const F=p||(l?$i(Jp(l)).body:void 0),$=null!=(r=null==b?void 0:b.root)?r:Xp,B=null!=(o=null==b?void 0:b.paper)?o:Yp,W=ya({elementType:B,externalSlotProps:ct({},L,{style:N?L.style:ct({},L.style,{opacity:0})}),additionalProps:{elevation:h,ref:I},ownerState:T,className:pi(P.paper,null==L?void 0:L.className)}),H=ya({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:R,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:T,className:pi(P.root,f)}),{slotProps:U}=H,V=ut(H,Vp);return qr.jsx($,ct({},V,!fa($)&&{slotProps:U,disableScrollLock:C},{children:qr.jsx(w,ct({appear:!0,in:g,onEntering:(e,t)=>{k&&k(e,t),z()},onExited:()=>{A(!1)},timeout:j},_,{children:qr.jsx(B,ct({},W,{children:d}))}))}))}));function eh(e){return gi("MuiMenuItem",e)}const th=vi("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),nh=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],rh=$l(Ls,{shouldForwardProp:e=>Fl(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>ct({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${th.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ja.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${th.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ja.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${th.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ja.alpha(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})`:Ja.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${th.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${th.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Tf.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Tf.inset}`]:{marginLeft:52},[`& .${Np.root}`]:{marginTop:0,marginBottom:0},[`& .${Np.inset}`]:{paddingLeft:36},[`& .${Pp.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&ct({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Pp.root} svg`]:{fontSize:"1.25rem"}})))),oh=x.forwardRef((function(e,t){const n=Ul({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,f=ut(n,nh),p=x.useContext(hp),h=x.useMemo((()=>({dense:i||p.dense||!1,disableGutters:l})),[p.dense,i,l]),m=x.useRef(null);Ni((()=>{r&&m.current&&m.current.focus()}),[r]);const g=ct({},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 ct({},a,da({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},eh,a))})(n),b=Zi(m,t);let y;return n.disabled||(y=void 0!==u?u:-1),qr.jsx(hp.Provider,{value:h,children:qr.jsx(rh,ct({ref:b,role:c,tabIndex:y,component:o,focusVisibleClassName:pi(v.focusVisible,s),className:pi(v.root,d)},f,{ownerState:g,classes:v}))})}));var ih;const ah=["children","classes","className","label","notched"],lh=$l("fieldset",{shouldForwardProp:Fl})({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%"}),sh=$l("legend",{shouldForwardProp:Fl})((({ownerState:e,theme:t})=>ct({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&ct({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const ch=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],uh=$l(md,{shouldForwardProp:e=>Fl(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:pd})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return ct({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${xd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${xd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${xd.focused} .${xd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${xd.error} .${xd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${xd.disabled} .${xd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&ct({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),dh=$l((function(e){const{className:t,label:n,notched:r}=e,o=ut(e,ah),i=null!=n&&""!==n,a=ct({},e,{notched:r,withLabel:i});return qr.jsx(lh,ct({"aria-hidden":!0,className:t,ownerState:a},o,{children:qr.jsx(sh,{ownerState:a,children:i?qr.jsx("span",{children:n}):ih||(ih=qr.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}})),fh=$l(gd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:hd})((({theme:e,ownerState:t})=>ct({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),ph=x.forwardRef((function(e,t){var n,r,o,i,a;const l=Ul({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:c=!1,inputComponent:u="input",label:d,multiline:f=!1,notched:p,slots:h={},type:m="text"}=l,g=ut(l,ch),v=(e=>{const{classes:t}=e;return ct({},t,da({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},yd,t))})(l),b=ld(),y=id({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=ct({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:c,hiddenLabel:y.hiddenLabel,multiline:f,size:y.size,type:m}),w=null!=(n=null!=(r=h.root)?r:s.Root)?n:uh,E=null!=(o=null!=(i=h.input)?i:s.Input)?o:fh;return qr.jsx(bd,ct({slots:{root:w,input:E},renderSuffix:e=>qr.jsx(dh,{ownerState:S,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=qr.jsxs(x.Fragment,{children:[d," ","*"]})):d,notched:void 0!==p?p:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:u,multiline:f,ref:t,type:m},g,{classes:ct({},v,{notchedOutline:null})}))}));ph.muiName="Input";var hh=nc(qr.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"),mh=nc(qr.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 gh=$l("span",{shouldForwardProp:Fl})({position:"relative",display:"flex"}),vh=$l(hh)({transform:"scale(1)"}),bh=$l(mh)((({theme:e,ownerState:t})=>ct({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 yh(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=ct({},e,{checked:t});return qr.jsxs(gh,{className:n.root,ownerState:o,children:[qr.jsx(vh,{fontSize:r,className:n.background,ownerState:o}),qr.jsx(bh,{fontSize:r,className:n.dot,ownerState:o})]})}const xh=x.createContext(void 0);function Sh(e){return gi("MuiRadio",e)}const wh=vi("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Eh=["checked","checkedIcon","color","icon","name","onChange","size","className"],kh=$l($d,{shouldForwardProp:e=>Fl(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${no(n.size)}`],t[`color${no(n.color)}`]]}})((({theme:e,ownerState:t})=>ct({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})`:Ja.alpha("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${wh.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${wh.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const Ch=qr.jsx(yh,{checked:!0}),_h=qr.jsx(yh,{}),Rh=x.forwardRef((function(e,t){var n,r;const o=Ul({props:e,name:"MuiRadio"}),{checked:i,checkedIcon:a=Ch,color:l="primary",icon:s=_h,name:c,onChange:u,size:d="medium",className:f}=o,p=ut(o,Eh),h=ct({},o,{color:l,size:d}),m=(e=>{const{classes:t,color:n,size:r}=e;return ct({},t,da({root:["root",`color${no(n)}`,"medium"!==r&&`size${no(r)}`]},Sh,t))})(h),g=x.useContext(xh);let v=i;const b=zi(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)),qr.jsx(kh,ct({type:"radio",icon:x.cloneElement(s,{fontSize:null!=(n=_h.props.fontSize)?n:d}),checkedIcon:x.cloneElement(a,{fontSize:null!=(r=Ch.props.fontSize)?r:d}),ownerState:h,classes:m,name:y,checked:v,onChange:b,ref:t,className:pi(m.root,f)},p))}));function Lh(e){return gi("MuiTooltip",e)}const Oh=vi("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Ih=["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 Th=$l(Qu,{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})=>ct({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Oh.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Oh.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Oh.arrow}`]:ct({},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"] .${Oh.arrow}`]:ct({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),Ph=$l("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${no(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return ct({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Ja.alpha(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},{[`.${Oh.popper}[data-popper-placement*="left"] &`]:ct({transformOrigin:"right center"},t.isRtl?ct({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):ct({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Oh.popper}[data-popper-placement*="right"] &`]:ct({transformOrigin:"left center"},t.isRtl?ct({marginRight:"14px"},t.touch&&{marginRight:"24px"}):ct({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Oh.popper}[data-popper-placement*="top"] &`]:ct({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Oh.popper}[data-popper-placement*="bottom"] &`]:ct({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),Mh=$l("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:Ja.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let qh=!1;const Dh=new Yi;let Nh={x:0,y:0};function Ah(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const zh=x.forwardRef((function(e,t){var n,r,o,i,a,l,s,c,u,d,f,p,h,m,g,v,b,y,S;const w=Ul({props:e,name:"MuiTooltip"}),{arrow:E=!1,children:k,components:C={},componentsProps:_={},describeChild:R=!1,disableFocusListener:L=!1,disableHoverListener:O=!1,disableInteractive:I=!1,disableTouchListener:T=!1,enterDelay:P=100,enterNextDelay:M=0,enterTouchDelay:q=700,followCursor:D=!1,id:N,leaveDelay:A=0,leaveTouchDelay:z=1500,onClose:j,onOpen:F,open:$,placement:B="bottom",PopperComponent:W,PopperProps:H={},slotProps:U={},slots:V={},title:G,TransitionComponent:K=rp,TransitionProps:Z}=w,J=ut(w,Ih),X=x.isValidElement(k)?k:qr.jsx("span",{children:k}),Y=_l(),Q=(()=>{const e=x.useContext(_a);return null!=e&&e})(),[ee,te]=x.useState(),[ne,re]=x.useState(null),oe=x.useRef(!1),ie=I||D,ae=Qi(),le=Qi(),se=Qi(),ce=Qi(),[ue,de]=Gi({controlled:$,default:!1,name:"Tooltip",state:"open"});let fe=ue;const pe=Vi(N),he=x.useRef(),me=Ki((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ce.clear()}));x.useEffect((()=>me),[me]);const ge=e=>{Dh.clear(),qh=!0,de(!0),F&&!fe&&F(e)},ve=Ki((e=>{Dh.start(800+A,(()=>{qh=!1})),de(!1),j&&fe&&j(e),ae.start(Y.transitions.duration.shortest,(()=>{oe.current=!1}))})),be=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),le.clear(),se.clear(),P||qh&&M?le.start(qh?M:P,(()=>{ge(e)})):ge(e))},ye=e=>{le.clear(),se.start(A,(()=>{ve(e)}))},{isFocusVisibleRef:xe,onBlur:Se,onFocus:we,ref:Ee}=sa(),[,ke]=x.useState(!1),Ce=e=>{Se(e),!1===xe.current&&(ke(!1),ye(e))},_e=e=>{ee||te(e.currentTarget),we(e),!0===xe.current&&(ke(!0),be(e))},Re=e=>{oe.current=!0;const t=X.props;t.onTouchStart&&t.onTouchStart(e)},Le=e=>{Re(e),se.clear(),ae.clear(),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(q,(()=>{document.body.style.WebkitUserSelect=he.current,be(e)}))},Oe=e=>{X.props.onTouchEnd&&X.props.onTouchEnd(e),me(),se.start(z,(()=>{ve(e)}))};x.useEffect((()=>{if(fe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}}),[ve,fe]);const Ie=Zi(xa(X),Ee,te,t);G||0===G||(fe=!1);const Te=x.useRef(),Pe={},Me="string"==typeof G;R?(Pe.title=fe||!Me||O?null:G,Pe["aria-describedby"]=fe?pe:null):(Pe["aria-label"]=Me?G:null,Pe["aria-labelledby"]=fe&&!Me?pe:null);const qe=ct({},Pe,J,X.props,{className:pi(J.className,X.props.className),onTouchStart:Re,ref:Ie},D?{onMouseMove:e=>{const t=X.props;t.onMouseMove&&t.onMouseMove(e),Nh={x:e.clientX,y:e.clientY},Te.current&&Te.current.update()}}:{}),De={};T||(qe.onTouchStart=Le,qe.onTouchEnd=Oe),O||(qe.onMouseOver=Ah(be,qe.onMouseOver),qe.onMouseLeave=Ah(ye,qe.onMouseLeave),ie||(De.onMouseOver=be,De.onMouseLeave=ye)),L||(qe.onFocus=Ah(_e,qe.onFocus),qe.onBlur=Ah(Ce,qe.onBlur),ie||(De.onFocus=_e,De.onBlur=Ce));const Ne=x.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=H.popperOptions)&&e.modifiers&&(t=t.concat(H.popperOptions.modifiers)),ct({},H.popperOptions,{modifiers:t})}),[ne,H]),Ae=ct({},w,{isRtl:Q,arrow:E,disableInteractive:ie,placement:B,PopperComponentProp:W,touch:oe.current}),ze=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return da({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${no(i.split("-")[0])}`],arrow:["arrow"]},Lh,t)})(Ae),je=null!=(n=null!=(r=V.popper)?r:C.Popper)?n:Th,Fe=null!=(o=null!=(i=null!=(a=V.transition)?a:C.Transition)?i:K)?o:rp,$e=null!=(l=null!=(s=V.tooltip)?s:C.Tooltip)?l:Ph,Be=null!=(c=null!=(u=V.arrow)?u:C.Arrow)?c:Mh,We=pa(je,ct({},H,null!=(d=U.popper)?d:_.popper,{className:pi(ze.popper,null==H?void 0:H.className,null==(f=null!=(p=U.popper)?p:_.popper)?void 0:f.className)}),Ae),He=pa(Fe,ct({},Z,null!=(h=U.transition)?h:_.transition),Ae),Ue=pa($e,ct({},null!=(m=U.tooltip)?m:_.tooltip,{className:pi(ze.tooltip,null==(g=null!=(v=U.tooltip)?v:_.tooltip)?void 0:g.className)}),Ae),Ve=pa(Be,ct({},null!=(b=U.arrow)?b:_.arrow,{className:pi(ze.arrow,null==(y=null!=(S=U.arrow)?S:_.arrow)?void 0:y.className)}),Ae);return qr.jsxs(x.Fragment,{children:[x.cloneElement(X,qe),qr.jsx(je,ct({as:null!=W?W:Qu,placement:B,anchorEl:D?{getBoundingClientRect:()=>({top:Nh.y,left:Nh.x,right:Nh.x,bottom:Nh.y,width:0,height:0})}:ee,popperRef:Te,open:!!ee&&fe,id:pe,transition:!0},De,We,{popperOptions:Ne,children:({TransitionProps:e})=>qr.jsx(Fe,ct({timeout:Y.transitions.duration.shorter},e,He,{children:qr.jsxs($e,ct({},Ue,{children:[G,E?qr.jsx(Be,ct({},Ve,{ref:re})):null]}))}))}))]})}));function jh(){const{useModelStore:e}=x.useContext(Vs).modelStore;return e()}function Fh(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=jh(),[o]=function(){const{useRpcRequestSessionModelStore:e}=x.useContext(Vs).modelStore;return e()}(),[i,a]=x.useState();for(var l=arguments.length,s=new Array(l>2?l-2:0),c=2;c<l;c++)s[c-2]=arguments[c];return x.useEffect((()=>{if(!t)return;(async()=>{let i=o.get(n);i||(i=t.createSessionObject(e),o.set(n,i));const l=await i;r.set(n,l),a(l)})()}),[t,...s]),[i]}const $h={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Bh(e){return Fh($h,e)}const Wh=e=>new Promise((t=>{setTimeout(t,e)})),Hh=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let i;switch(t.type){case"INVALID":i=f(f({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:f({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=f(f({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let a=n.get(r);return a||(a={}),a[o]=i,n.set(r,a),i};function Uh(e,t){const n=e?"".concat(e.id):null,[r]=function(){const{useRpcResultStore:e}=x.useContext(Vs).modelStore;return e()}(),[o,i]=x.useReducer(Hh,n?r.get(n):null),[a]=function(){const{useModelChangedStore:e}=x.useContext(Vs).modelStore;return e()}(),[l]=function(){const{useRpcRequestStore:e}=x.useContext(Vs).modelStore;return e()}();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{await Wh(0);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 x.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 Vh(e){const[t,{validating:n,canCancel:r,canRetry:o},i]=Uh(e,"getLayout");return null!=e&&e.pureLayout&&t?[e.pureLayout,{validating:n,canCancel:r,canRetry:o},i]:[t,{validating:n,canCancel:r,canRetry:o},i]}function Gh(e){return Uh(e,"getAppLayout")}function Kh(){const[e,t]=x.useState(),[n,r]=x.useState(),o=x.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 x.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 Zh(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Jh(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:o=[]}=e;const i=f({fontSize:Zh(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n);return S.createElement("i",{style:i},S.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 S.createElement(n,u({key:t},r))}))))}var Xh=e=>Jh((e=>f(f({},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 Yh=e=>Jh((e=>f(f({},e),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));const Qh=e=>f(f({},e),{},{viewBox:"0 0 12 16",shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]});var em=e=>Jh(Qh(e));var tm=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}}(),nm=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},rm=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=nm(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},nm(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),tm(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 f=a[0]-1;if(t(f))break;a[0]=f}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}(x.PureComponent);const om=["S","XS"],im=e=>e.reduce(((e,t)=>e.concat(t)));function am(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!om.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return im(t)}async function lm(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 sm="RowColumn",cm={row:"".concat(sm,"-row"),rowBorderBottom:"".concat(sm,"-rowBorderBottom"),column:"".concat(sm,"-column"),fieldRoot:"".concat(sm,"-fieldRoot"),cell:"".concat(sm,"-cell"),labelText:"".concat(sm,"-labelText"),labelDense:"".concat(sm,"-labelDense"),highlighted:"".concat(sm,"-highlighted"),checkboxLabel:"".concat(sm,"-checkboxLabel"),icon:"".concat(sm,"-icon"),S:"".concat(sm,"-S"),XS:"".concat(sm,"-XS"),A:"".concat(sm,"-A"),X:"".concat(sm,"-X"),frequencyCount:"".concat(sm,"-frequencyCount"),barContainer:"".concat(sm,"-barContainer"),bar:"".concat(sm,"-bar"),barSelected:"".concat(sm,"-barSelected"),barWithCheckbox:"".concat(sm,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(sm,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(sm,"-excludedTextWithCheckbox")},um=".".concat(cm.fieldRoot),dm=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function fm(e){var t;let{selectionState:n,selections:r,checkboxes:o=!1,doc:i=document,loaderRef:a}=e;const l=x.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});x.useEffect((()=>{var e;if(null===(e=a.current)||void 0===e||null===(e=e._listRef)||void 0===e||!e._outerRef)return;const t=e=>e.preventDefault(),n=e=>e.preventDefault(),r=e=>e.preventDefault(),o=a.current._listRef._outerRef;return o.addEventListener("gesturestart",t),o.addEventListener("gesturechange",n),o.addEventListener("gestureend",r),()=>{o.removeEventListener("gesturestart",t),o.removeEventListener("gesturechange",n),o.removeEventListener("gestureend",r)}}),[null===(t=a.current)||void 0===t||null===(t=t._listRef)||void 0===t?void 0:t._outerRef]);const s=async()=>{var e;return(null===(e=n.selectDisabled)||void 0===e||!e.call(n))&&(n.setSelectableValuesUpdating(),lm({selections:r,elemNumbers:l.current.elemNumbers,isSingleSelect:n.isSingleSelect,toggle:l.current.toggle}))},c=(e,t)=>{const r=function(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}));return t}));return im(t)}(n.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r})),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([e,t],r)},u=e=>{const{startElemNumber:t}=l.current;if(t===e)return;const r=c(l.current.startElemNumber,e);n.updateItems(r,!0,l.current.elemNumbers)},d=x.useCallback((e=>{if(n.selectDisabled())return;const t=+e.target.getAttribute("data-n"),r=!n.isSingleSelect&&dm(e.nativeEvent);l.current.elemNumbers=[t],l.current.toggle=r,r||n.clearItemStates(!0),n.updateItem(t),l.current.active=!1,s()}),[]),f=x.useCallback((e=>{if(0!==e.button||n.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),r=!n.isSingleSelect&&dm(e);l.current.isRange=!1,l.current.startElemNumber=t,l.current.elemNumbers=[t],l.current.toggle=r,l.current.active=!0,r||n.clearItemStates(!0),n.updateItem(t),n.isSingleSelect&&(l.current.active=!1,s()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),p=x.useCallback((e=>{if(0===e.button&&l.current.active){if(l.current.active=!1,l.current.isRange){const t=+e.currentTarget.getAttribute("data-n");u(t)}s()}}),[]),h=x.useCallback((e=>{0===e.button&&l.current.active&&(l.current.active=!1,s())}),[]),m=x.useCallback((e=>{if(!l.current.active)return;l.current.isRange||(l.current.isRange=!0,n.isSelected(l.current.startElemNumber)||(n.updateItem(l.current.startElemNumber,!0),l.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");u(t)}),[]),g=x.useCallback((e=>{var t,r;if(l.current.active||l.current.isRange||n.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void s();const o=Number(null===(t=e.touches[0].target)||void 0===t||null===(t=t.closest(um))||void 0===t?void 0:t.getAttribute("data-n")),i=Number(null===(r=e.touches[1].target)||void 0===r||null===(r=r.closest(um))||void 0===r?void 0:r.getAttribute("data-n"));if(Number.isNaN(o)||Number.isNaN(o))return void s();l.current.active=!0;c(o,i).length<7&&(l.current.touchRangeSmall=!0),l.current.elemNumbers=[],l.current.touchElemNumbers=[o,i]}),[]),v=x.useCallback((()=>{if(2!==l.current.touchElemNumbers.length)return;if(l.current.touchRangeSmall)return l.current.touchRangeSmall=!1,l.current.touchElemNumbers=[],void(l.current.active=!1);const[e,t]=l.current.touchElemNumbers;l.current.startElemNumber=e,u(t),l.current.touchElemNumbers=[],l.current.active=!1,l.current.toggle=!0,s()}),[]);x.useEffect((()=>(i.addEventListener("mouseup",h),()=>{i.removeEventListener("mouseup",h)})),[h]),x.useEffect((()=>{const e=()=>{n.clearItemStates(!1)},t=()=>{n.clearItemStates(!0),n.triggerStateChanged()};return r.on("clearItemStates",e),r.on("deactivated",e),r.on("cleared",t),()=>{r.removeListener("clearItemStates",e),r.removeListener("deactivated",e),r.removeListener("cleared",t)}}),[r]);const b={};return o?Object.assign(b,{onChange:d}):Object.assign(b,{onMouseUp:p,onMouseDown:f,onMouseEnter:m,onTouchStart:g,onTouchEnd:v}),{interactionEvents:b,select:async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(null!==(e=n.selectDisabled)&&void 0!==e&&e.call(n))return!1;const a=!n.isSingleSelect&&dm(null==i?void 0:i.nativeEvent);a||n.clearItemStates(!0);const l=[];return n.updateItems(t,o,l),n.setSelectableValuesUpdating(),lm({selections:r,elemNumbers:o?l:t,isSingleSelect:n.isSingleSelect,toggle:a})}}}const pm=e=>f(f({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var hm=e=>Jh(pm(e));const mm=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,gm=e=>{let{cell:t,checkboxes:n}=e;return((e=>e?"A"===e.qState:null)(t)||mm(t))&&n};const vm=e=>{let{column:t,histogram:n,cell:r,showGray:o}=e;if(!r)return[];const i=[t?cm.column:cm.row];n||i.push(cm.rowBorderBottom);const a=function(e){let t,{cell:n,showGray:r}=e;switch(n.qState){case"XS":t=r?cm.XS:cm.S;break;case"S":case"L":t=cm.S;break;case"A":t=!!r&&cm.A;break;case"X":case"XL":t=!!r&&cm.X;break;default:t=!1}return t}({cell:r,showGray:o});return a&&i.push(a),i},bm=9,ym=4,xm=7,Sm=12+2*(xm+1),wm=80,Em=10,km=150,Cm=56,_m=20,Rm="-",Lm=32,Om=29,Im=20,Tm=4,Pm=e=>e.filter((e=>!!e)).join(" ").trim(),Mm=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,"%")},qm=e=>e||Rm,Dm=["backgroundColor"],Nm=e=>{let{sizes:t,frequencyMode:n,isGridMode:r,freqHitsValue:o}=e;if("P"===n)return"".concat(t.freqMinWidth,"px");return r&&!o?"max-content":"25%"},Am=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},zm=e=>{let{theme:t,checkboxes:n,styles:r,selectionState:o}=e;if(n)return"selected"===o?{["& .".concat(cm.labelText)]:{color:r.selections.selected}}:{};const i=r.selections,a=i[o],l=i["".concat(o,"Contrast")];return{background:a,color:l,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0},["& .".concat(cm.labelText)]:{color:l},["& .".concat(cm.icon)]:{color:l}}},jm={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Fm=$l("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})((e=>{let{theme:t,checkboxes:n,isGridMode:r,isGridCol:o,dense:i,direction:a,sizes:l,frequencyMode:s,freqHitsValue:c,styles:u}=e;const d=u.content,{backgroundColor:h}=d,m=p(d,Dm),g=zm({theme:t,styles:u,checkboxes:n,selectionState:"selected"}),v=zm({theme:t,styles:u,checkboxes:n,selectionState:"excluded"}),b={height:"100%",transition:"width 0.2s",border:"".concat(1,"px solid"),borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},y={opacity:"30%"};return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(cm.row)]:f({flexWrap:"nowrap"},u.content),["& .".concat(cm.rowBorderBottom)]:{borderBottom:o?"none":"1px solid ".concat(t.palette.divider),borderLeft:o?"1px solid ".concat(t.palette.divider):"none"},["& .".concat(cm.column)]:f({flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider)},u.content),["& .".concat(cm.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:n?"52px":"26px",flexBasis:n?"auto":"max-content",paddingLeft:"".concat(bm,"px"),paddingRight:0},["& .".concat(cm.labelText)]:f(f({lineHeight:"24px",userSelect:"none",paddingRight:"1px"},jm),m),["& .".concat(cm.labelDense)]:{lineHeight:"18px"},["& .".concat(cm.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(cm.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":f(f({},jm),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(cm.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:m.color},["& .".concat(cm.S)]:f(f({},g),{},{border:r?"none":void 0}),["& .".concat(cm.XS)]:f(f({},zm({theme:t,styles:u,checkboxes:n,selectionState:"selectedExcluded"})),{},{border:r?"none":void 0}),["& .".concat(cm.A)]:f(f({},zm({theme:t,styles:u,checkboxes:n,selectionState:"alternative"})),{},{border:r?"none":void 0}),["& .".concat(cm.X)]:f(f({},v),{},{border:r?"none":void 0}),["& .".concat(cm.X,", & .").concat(cm.XS)]:{border:r?"none":void 0,["& .".concat(cm.barSelected," .bar-filled")]:f({},b)},["& .".concat(cm.frequencyCount)]:f(f({zIndex:3,justifyContent:"flex-end"},jm),{},{flex:"0 0 ".concat(Nm({sizes:l,frequencyMode:s,isGridMode:r,freqHitsValue:c})),minWidth:!r&&"P"!==s&&c?l.freqMinWidth:"max-content",maxWidth:Am({sizes:l,frequencyMode:s,isGridMode:r}),textAlign:"rtl"===a?"left":"right",paddingLeft:"rtl"!==a?"8px":0}),["&.".concat(cm.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(cm.bar)]:{height:i?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":f({},b)},["& .".concat(cm.barSelected)]:{"& .bar-filled":f({},y)},["& .".concat(cm.barWithCheckbox)]:{left:"rtl"===a?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(cm.barSelectedWithCheckbox)]:{"& .bar-filled":f(f({},y),{},{backgroundColor:u.selections.selected||"#BFE5D0",borderColor:u.selections.selected})},["& .".concat(cm.excludedTextWithCheckbox)]:{color:u.content.color,fontStyle:"italic"}}}));var $m=S.memo(Fm);const Bm="ListBoxCheckbox",Wm={cbIcon:"".concat(Bm,"-cbIcon"),cbIconChecked:"".concat(Bm,"-cbIconChecked"),cbIconExcluded:"".concat(Bm,"-cbIconExcluded"),cbIconAlternative:"".concat(Bm,"-cbIconAlternative"),checkbox:"".concat(Bm,"-checkbox"),dense:"".concat(Bm,"-dense")},Hm=$l(Yd,{shouldForwardProp:e=>"styles"!==e})((e=>{let{styles:t}=e;return{["& .".concat(Wm.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(Wm.cbIconChecked)]:{borderRadius:3,backgroundColor:t.selections.selected,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(Wm.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.excluded},["& .".concat(Wm.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.alternative},["&.".concat(Wm.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(Wm.dense)]:{padding:"4px 8px"}}})),Um=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return S.createElement("span",{className:e.cbIcon},n&&S.createElement("span",{className:t&&n?e.cbIconExcluded:""}))};function Vm(e){let{onChange:t,checked:n,label:r,dense:o,excluded:i,styles:a,showGray:l=!0,dataN:s}=e;return S.createElement(Hm,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[Wm.checkbox,o&&Wm.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":s},name:r,icon:Um(Wm,l,i),checkedIcon:S.createElement("span",{className:Wm.cbIconChecked}),styles:a})}const Gm={radioButton:"".concat("ListBoxRadioButton","-radioButton")},Km=$l(Rh,{shouldForwardProp:e=>!["dense","styles"].includes(e)})((e=>{let{checked:t,styles:n,dense:r}=e;return{["&.".concat(Gm.radioButton)]:{right:"5px",color:t?n.selections.selected:n.content.color,padding:r?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}}));function Zm(e){let{onChange:t,checked:n,label:r,dense:o,dataN:i,styles:a}=e;return S.createElement(Km,{checked:n,onChange:t,value:r,name:r,className:Gm.radioButton,inputProps:{"data-n":i},disableRipple:!0,size:o?"small":"medium",dense:o,styles:a})}function Jm(e){let{label:t,dense:n,showGray:r=!0,checkboxes:o,cell:i,valueTextAlign:a}=e;return S.createElement(Sc,{component:"span",variant:"body2",className:Pm([cm.labelText,n&&cm.labelDense,r&&gm({cell:i,checkboxes:o})&&cm.excludedTextWithCheckbox]),align:a,dir:"auto"},S.createElement("span",null,t))}function Xm(e){let{label:t,color:n,dense:r,showGray:o,checkboxes:i,cell:a,valueTextAlign:l}=e;return"string"==typeof t?S.createElement(Jm,{label:t,color:n,dense:r,showGray:o,checkboxes:i,cell:a,valueTextAlign:l}):t}function Ym(e){let{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:i,cell:a,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:f}=e;const p=S.createElement(Vm,{onChange:t,label:n,checked:o,dense:i,excluded:mm(a),isGridCol:l,showGray:s,dataN:r,styles:f}),h=S.createElement(Zm,{onChange:t,label:n,checked:o,dense:i,dataN:r,styles:f});return S.createElement(Bf,{control:c?h:p,className:cm.checkboxLabel,label:S.createElement(Xm,{label:n,dense:i,showGray:s,checkboxes:u,cell:a,valueTextAlign:d}),key:r})}function Qm(e){let{labels:t,dense:n,showGray:r,checkboxes:o}=e;const i=t.map(((e,t)=>{let[n,r]=e;return S.createElement("span",{id:t,className:r?cm.highlighted:""},n)}));return S.createElement(Jm,{label:i,dense:n,showGray:r,checkboxes:o})}function eg(e){let{onChange:t,labels:n,checkboxes:r,dense:o,showGray:i,qElemNumber:a,isSelected:l,cell:s,isGridCol:c,isSingleSelect:u,valueTextAlign:d,styles:f}=e;const p=S.createElement(Qm,{labels:n,dense:o,showGray:i,checkboxes:r});return r?S.createElement(Ym,{onChange:t,label:p,qElemNumber:a,isSelected:l,dense:o,cell:s,isGridCol:c,showGray:i,isSingleSelect:u,checkboxes:r,valueTextAlign:d,styles:f}):p}var tg=S.memo((function(e){let{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:i,cell:a,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:f}=e;return u?S.createElement(Ym,{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:i,cell:a,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:f}):S.createElement(Jm,{label:n,dense:i,showGray:!0,checkboxes:u,cell:a,valueTextAlign:d})}));function ng(e){let{qFrequency:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:i}=e;if(!(t&&n&&qm(t)!==Rm))return;const a=Mm({qFrequency:t,frequencyMax:i});return S.createElement(Nd,{className:Pm([cm.bar,r&&cm.barWithCheckbox,o&&(r?cm.barSelectedWithCheckbox:cm.barSelected)])},S.createElement(Nd,{className:"bar-filled",width:a}))}function rg(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;const i=qm(null==t?void 0:t.qFrequency);return S.createElement(Yf,{item:!0,style:{display:"flex",alignItems:"center"},className:cm.frequencyCount,"aria-label":i,title:i},S.createElement(Sc,{noWrap:!0,color:"inherit",variant:"body2",className:Pm([r&&cm.labelDense,cm.labelText,o&&gm({cell:t,checkboxes:n})&&cm.excludedTextWithCheckbox])},i))}function og(e){let{dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:o}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:o?"100%":"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const ig=$l(Yf,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:i,fillHeight:a}=e;const l="padding".concat("rtl"===i?"Left":"Right");return{["&.".concat(cm.fieldRoot)]:f(f({},og({dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:a})),{},{[l]:o?"8px":void 0})}}));const ag=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===ag.ARROW_UP||e===ag.ARROW_DOWN||e===ag.ARROW_LEFT||e===ag.ARROW_RIGHT});function lg(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function sg(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))||(null==e?void 0:e.closest(".qv-gs-listbox"))}function cg(e){let{containerRef:t,enabled:n}=e;const[r,o]=x.useState(!1),i={enabled:n,active:r,innerTabStops:!n||r,blur(e){var r;if(!n)return;o(!1);const i=sg(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)})),lg(t.current),e&&i&&(i.setAttribute("tabIndex",0),t.current.setAttribute("tabIndex",-1),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=null==e?void 0:e.querySelector("#listbox-unlock-button"),c=(null==e?void 0:e.querySelector(".listbox-cyclic-button"))||r||i||a||s||l;null==c||c.setAttribute("tabIndex",0),null==c||c.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm:not(:disabled)"),n=e||t;return null==n||n.setAttribute("tabIndex",0),null==n||n.focus(),n}};return i}const ug=e=>+e.getAttribute("data-n"),dg=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},fg=e=>{const t=null==e?void 0:e.querySelector(".value.last-focused"),n=null==e?void 0:e.querySelector(".value.selector"),r=null==e?void 0:e.querySelector(".value"),o=t||n||r;return null==o||o.setAttribute("tabIndex",0),null==o||o.focus(),lg(e),o},pg=e=>{const t=null==e?void 0:e.querySelector(".listbox-cyclic-button:not(:disabled)");return null==t||t.setAttribute("tabIndex",0),null==t||t.focus(),t},hg=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:r}=e,o=r.classList.contains("listbox-container"),i=n.closest(".listbox-container"),a=sg(i),l=1===(null==a?void 0:a.querySelectorAll(".listbox-container").length);if(o||l)t.blur(!0);else{lg(i),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}},mg=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===ag.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};const gg={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 vg(e){var t,n;let{index:r,rowIndex:o,columnIndex:i,style:a,data:l}=e;const{onChange:s,onClick:c,onMouseDown:u,onMouseUp:d,onMouseEnter:p,onTouchStart:h,onTouchEnd:m,pages:g,isLocked:v,column:b=!1,checkboxes:y=!1,textAlign:w,direction:E,layoutOptions:k={},freqIsAllowed:C,isSingleSelect:_,actions:R,frequencyMax:L="",histogram:O=!1,keyboard:I,showGray:T=!0,showTick:P=!0,columnCount:M=1,rowCount:q=1,dataOffset:D,deducedFrequencyMode:N,focusListItems:A,listCount:z,sizes:j,translator:F,showSearch:$,isModal:B,contentFontStyle:W,styles:H,fillHeight:U}=l,{dense:V=!1,dataLayout:G="singleColumn",layoutOrder:K}=k,{itemPadding:Z}=j;let J,X;const Y={max:null,currentIndex:null};if("number"==typeof o&&"number"==typeof i){"row"===K?(J=o*M+i,Y.max=q,Y.currentIndex=o):(J=i*q+o,Y.max=M,Y.currentIndex=i);const e=0;X=f(f({},a),{},{height:U?"100%":a.height,left:e+(0===i?a.left:Number(a.left)+i*e),top:0===o?a.top:Number(a.top)+o*e})}else J=r,Y.max=z,Y.currentIndex=r,X=f({},a);J+=D;const[Q,ee]=x.useState(null);x.useEffect((()=>{null!==Q&&(0===Y.currentIndex&&A.first&&(Q.focus(),A.setFirst(!1)),Y.currentIndex===Y.max-1&&A.last&&(Q.focus(),A.setLast(!1)))}),[Q,A.first,A.last]);const te=x.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:f,columnIndex:p,layoutOrder:h}=e;const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e===ag.ARROW_LEFT||e===ag.ARROW_RIGHT||"number"!=typeof f||"number"!=typeof p){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=mg({rowIndex:f,columnIndex:p,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:f}=e,{keyCode:p,shiftKey:h=!1,ctrlKey:b=!1,metaKey:y=!1}=f;switch(p){case ag.TAB:{const t=d.closest(".listbox-container"),n=void 0!==c?c():void 0;if(d.classList.add("last-focused"),null==s||!s.enabled){if(!n)return;return s.focusSelection(),e.preventDefault(),void e.stopPropagation()}if(h){dg(t)||pg(t)||(n?s.focusSelection():hg(e,s));break}s.focusSelection()||pg(t)||dg(t)||(d.blur(),hg(e,s));break}case ag.SHIFT:v(!0);break;case ag.SPACE:t([ug(d)],!1,e);break;case ag.ARROW_DOWN:case ag.ARROW_RIGHT:u=m(p,d,!0),h&&u&&(g&&(t([ug(d)],!0),v(!1)),t([ug(u)],!0));break;case ag.ARROW_UP:case ag.ARROW_LEFT:u=m(p,d,!1),h&&u&&(g&&(t([ug(d)],!0),v(!1)),t([ug(u)],!0));break;case ag.ENTER:if(o(),void 0===c)return;break;case ag.ESCAPE:if(void 0===c)return void i();if(!c())return;i();break;case ag.HOME:if(l.setFirst(!0),b){null==a||a("overflowStart");break}null==a||a("start");break;case ag.END:if(l.setLast(!0),b){null==a||a("overflowEnd");break}null==a||a("end");break;case ag.A:if(b||y){n();break}return;case ag.F:if(b||y){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(f(f({},R),{},{focusListItems:A,keyboard:I,isModal:B,rowCount:q,columnCount:M,rowIndex:o,columnIndex:i,layoutOrder:K})),[R,null==I?void 0:I.innerTabStops,q,M,o,i,K]),ne=x.useMemo((()=>function(e){let t,{pages:n,cellIndex:r}=e;const o=n.filter((e=>e.qArea.qTop<=r&&r<e.qArea.qTop+e.qArea.qHeight))[0];if(o){const e=o.qArea;r>=e.qTop&&r<e.qTop+e.qHeight&&([t]=o.qMatrix[r-e.qTop])}return t}({pages:g,cellIndex:J})),[g,J]),re="S"===(null==ne?void 0:ne.qState)||"XS"===(null==ne?void 0:ne.qState)||"L"===(null==ne?void 0:ne.qState)||"XL"===(null==ne?void 0:ne.qState),oe=x.useMemo((()=>vm({column:b,histogram:O,cell:ne,showGray:T})),[null==ne?void 0:ne.qState,O,V]),ie=x.useCallback((e=>{e.preventDefault()}),[y]),ae=x.useMemo((()=>ne&&function(e){let{direction:t,cell:n,textAlign:r}=e;const o=!["NaN",void 0].includes(null==n?void 0:n.qNum);let i;return i=!r||r.auto?o?"rtl"===t?"left":"right":{rtl:"right",ltr:"left"}[t]:(null==r?void 0:r.align)||"left",["left","center","right"].includes(i)?i:"left"}({direction:E,cell:ne,textAlign:w})),[E,ne,w]);if(!ne)return null;const le="grid"===G&&"column"===K,se=null!==(t=null==ne?void 0:ne.qText)&&void 0!==t?t:"";let ce;if(null!==(n=ne.qHighlightRanges)&&void 0!==n&&null!==(n=n.qRanges)&&void 0!==n&&n.length){const e=ne.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];ce=function(e,t){if(!t.length)return[];const n=t.reduce(((n,r,o)=>{const 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}(se,e)}const ue={alignItems:"center",display:"flex",fontSize:"8px"},de="rtl"===E,fe={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:de?8:y?0:void 0,paddingRight:y?0:de?8:0,justifyContent:ae,textAlign:ae},pe=0===r,he=re&&v,me=!y&&re&&!v,ge=!y&&P,ve=y||!P,be=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:i,maxIndex:a,showSearch:l}=e;const s=gg[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),f=t.get("CurrentSelections.Of",[i+1,a+1]);return u.unshift(d,f),u.join(". ").trim()}({translator:F,label:se,qState:ne.qState,currentIndex:Y.currentIndex,maxIndex:Y.max,showSearch:$}),ye=!de&&"right"===ae||de&&"left"===ae;return S.createElement($m,{className:cm.barContainer,checkboxes:y,style:X,styles:H,isGridCol:le,isGridMode:"grid"===G,dense:V,direction:E,sizes:j,frequencyMode:N,freqHitsValue:ye,contentFontStyle:W,"data-testid":"listbox.item"},S.createElement(ig,{role:"row","aria-label":be,"aria-selected":re,"aria-setsize":Y.max,"aria-rowindex":Y.currentIndex,ref:ee,container:!0,dataLayout:G,cellPaddingRight:ve,layoutOrder:K,itemPadding:Z,gap:0,className:Pm(["value",...oe]),classes:{root:cm.fieldRoot},onClick:c,onMouseDown:u,onMouseUp:d,onMouseEnter:p,onKeyDown:te,onTouchStart:h,onTouchEnd:m,onContextMenu:ie,tabIndex:pe&&I.innerTabStops?0:-1,"data-n":null==ne?void 0:ne.qElemNumber,direction:E,fillHeight:U},(null==ne?void 0:ne.qFrequency)&&S.createElement(ng,{qFrequency:null==ne?void 0:ne.qFrequency,histogram:O,checkboxes:y,isSelected:re,frequencyMax:L}),S.createElement(Yf,{item:!0,style:fe,className:Pm([cm.cell,cm.selectedCell]),title:"".concat(se)},ce?S.createElement(eg,{onChange:s,labels:ce,checkboxes:y,dense:V,showGray:T,qElemNumber:ne.qElemNumber,isSelected:re,cell:ne,isGridCol:le,isSingleSelect:_,valueTextAlign:ae,styles:H}):S.createElement(tg,{onChange:s,label:se,qElemNumber:ne.qElemNumber,isSelected:re,dense:V,cell:ne,isGridCol:le,showGray:T,isSingleSelect:_,checkboxes:y,valueTextAlign:ae,styles:H})),C&&S.createElement(rg,{cell:ne,checkboxes:y,dense:V,showGray:T}),ge&&S.createElement(Yf,{item:!0,className:cm.icon},he&&S.createElement(Yh,{style:ue,size:"small"}),me&&S.createElement(hm,{style:ue,size:"small"}))))}var bg=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function yg(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||bg(r)&&bg(o)))return!1;var r,o;return!0}function xg(e,t){var n;void 0===t&&(t=yg);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 Sg="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function wg(e){cancelAnimationFrame(e.id)}function Eg(e,t){var n=Sg();var r={id:requestAnimationFrame((function o(){Sg()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var kg=-1;function Cg(e){if(void 0===e&&(e=!1),-1===kg||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),kg=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return kg}var _g=null;function Rg(e){if(void 0===e&&(e=!1),null===_g||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?_g="positive-descending":(t.scrollLeft=1,_g=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),_g}return _g}var Lg=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Og(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,f=e.getRowStartIndexForOffset,p=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,is(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:is(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=xg((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=xg((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,f=r._getItemStyleCache(m&&l,m&&s,m&&c),p=e+":"+t;if(f.hasOwnProperty(p))o=f[p];else{var h=n(r.props,t,r._instanceProps),g="rtl"===s;f[p]=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=xg((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(Rg()){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&&wg(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Eg(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Gl(t,e),t.getDerivedStateFromProps=function(e,t){return Ig(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,f=i.rowCount,p=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=Cg();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,f-1)));var b=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>p?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(Rg()){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&&wg(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,f=e.itemKey,p=void 0===f?Lg:f,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,S=this.state.isScrolling,w=this._getHorizontalRangeToRender(),E=w[0],k=w[1],C=this._getVerticalRangeToRender(),_=C[0],R=C[1],L=[];if(r>0&&g)for(var O=_;O<=R;O++)for(var I=E;I<=k;I++)L.push(x.createElement(t,{columnIndex:I,data:d,isScrolling:b?S:void 0,key:p({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 x.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:ct({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},x.createElement(c||u||"div",{children:L,ref:s,style:{height:T,pointerEvents:S?"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],f=u[1],p=u[2],h=u[3];this._callOnItemsRendered(a,l,d,f,s,c,p,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,f=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var p=r(this.props,d,this._instanceProps),h=o(this.props,p,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,f),g=u&&"forward"!==c?1:Math.max(1,f);return[Math.max(0,p-m),Math.max(0,Math.min(t-1,h+g)),p,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=f(this.props,c,this._instanceProps),h=p(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}(x.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var Ig=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},Tg=function(e,t){return e};function Pg(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,is(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:is(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=xg((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=xg((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),f=o(r.props,e,r._instanceProps),p="horizontal"===a||"horizontal"===s,h="rtl"===a,m=p?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:p?0:d,height:p?"100%":f,width:p?f:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=xg((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(Rg()){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<a?"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&&wg(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Eg(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Gl(t,e),t.getDerivedStateFromProps=function(e,t){return Mg(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?Cg():0:s.scrollHeight>s.clientHeight?Cg():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(Rg()){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&&wg(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,f=void 0===d?Tg:d,p=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,S="horizontal"===o||"horizontal"===p,w=S?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),k=E[0],C=E[1],_=[];if(c>0)for(var R=k;R<=C;R++)_.push(x.createElement(t,{data:u,key:f(R,u),index:R,isScrolling:v?y:void 0,style:this._getItemStyle(R)}));var L=r(this.props,this._instanceProps);return x.createElement(h||m||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:ct({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},x.createElement(l||s||"div",{children:_,ref:a,style:{height:S?"100%":L,pointerEvents:y?"none":void 0,width:S?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),f=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+f)),c,u]},t}(x.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Mg=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},qg=Og({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 f=Math.round(d+(u-d)/2);return f<Math.ceil(s/2)?0:f>c+Math.floor(s/2)?c:f;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 f=Math.round(d+(u-d)/2);return f<Math.ceil(l/2)?0:f>c+Math.floor(l/2)?c:f;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}}),Dg=Pg({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,f="horizontal"===a||"horizontal"===u?d:l,p=Math.max(0,s*c-f),h=Math.min(p,t*c),m=Math.max(0,t*c-f+c+i);switch("smart"===n&&(n=r>=m-f&&r<=h+f?"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(f/2)?0:g>p+Math.floor(f/2)?p: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 Ng="#BBB",Ag="#f1f1f1",zg={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const jg=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,Fg=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,$g=(e,t,n,r)=>e===t*n+r+n;function Bg(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=jg(t,c),d=c?r.column:r.row,f=(c?o:i)>=d,p=$g(l,u,c?i:o,s),h=!!s&&Fg(t,c),m=f&&!p&&u>=d-1||h||a.state.show;a.set(m)}const{StyledFixedSizeList:Wg,StyledFixedSizeGrid:Hg}=function(){const e=e=>({scrollbarColor:"".concat(Ng," ").concat(Ag),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:Ag},"&::-webkit-scrollbar-thumb":{backgroundColor:Ng,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:yr(Dg,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(zg.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:yr(qg,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(zg.styledScrollbars)]:e(n)}}))}}();const Ug=(e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map((e=>n.measureText(e).width)));const r=n.measureText(e);return Math.ceil(r.width||0)},Vg=e=>{const t=x.useMemo((()=>"text"in e?e:{}),[e]);return x.useMemo((()=>Ug(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function Gg(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Kg(e){let{isGridMode:t,dense:n}=e;let r=n?Im:t?Lm:Om;return t&&(r+=Tm),r}function Zg(e){let{layout:t,width:n,height:r,listCount:o,count:i,freqIsAllowed:a,checkboxes:l,styles:s}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:f,dense:p,dataLayout:h}=c,{fontSize:m="12px",fontFamily:g="Source sans pro"}=(null==s?void 0:s.content)||{},v="".concat(m," ").concat(g),b=Vg({text:Gg(t),font:v}),y=Vg({text:Gg(5),font:v}),x=Vg({text:Gg(8),font:v}),S=a?y:0,w=l?_m:0;let E=Cm+S+w;!l&&E>=wm&&(E+=_m);let k,C,_,R,L=b+18+S+w;!l&&L>=wm&&(L+=_m),L=Math.min(km,Math.max(L,E));const O=Kg({isGridMode:"grid"===h,dense:p}),I=null!=r?r:8*O;if(u){let e=n;"row"===u?(k={overflowX:"hidden"},e+=2*Tm,({rowCount:R,columnWidth:_,columnCount:C}=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-Em;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),s=Math.max(s,1);const u=l/s;return{rowCount:Math.ceil(n/s),columnWidth:u,columnCount:s}}({maxVisibleColumns:f,listCount:o,containerWidth:e,columnAutoWidth:L,itemMinWidth:E}))):(k={overflowY:"hidden"},({rowCount:R,columnWidth:_,columnCount:C}=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),t=Math.max(t,1);const d=Math.ceil(o/t);return{columnWidth:Math.max(a,l/d,s),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:O,listCount:o,listHeight:I,columnAutoWidth:L,containerWidth:e,itemMinWidth:E})))}C=("singleColumn"===h?1:C)||1,R=("singleColumn"===h?i:R)||o;const T=c.dense?838e3:577e3;R=Math.min(R,T);const P=Math.floor(3355e4/_);C=Math.min(C,P)||1;const M=R*C,q=Math.min(o,M);return{columnCount:C,columnWidth:_,rowCount:R,overflowStyling:k,itemHeight:O,listHeight:I,listWidth:n,scrollBarWidth:Em,count:i,listCount:q,maxCount:{row:T,column:P},itemPadding:Tm,textWidth:b,freqMinWidth:y,freqMaxWidth:x}}const Jg=e=>{let{pages:t=[],minimumBatchSize:n,count:r}=e;const o=t.some((e=>e.qArea.qHeight<n)),i=Math.max(...t.map((e=>e.qArea.qTop+e.qArea.qHeight)));return o?i:r};const[Xg,Yg]=Zs({});function Qg(e){const t="".concat(e.id),[n]=Xg();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const ev=$l(Sc,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return f({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px"),whiteSpace:"normal"},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function tv(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:i}=x.useContext(Vs);return S.createElement(zh,{title:o?i.get(n):""},S.createElement(ev,{width:t,dense:r,component:"div",variant:"body1",py:"12px"},i.get(n)))}var nv,rv,ov={},iv={},av=o(oc);function lv(){return nv||(nv=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=av}(iv)),iv}function sv(){if(rv)return ov;rv=1;var e=Ua();Object.defineProperty(ov,"__esModule",{value:!0}),ov.default=void 0;var t=e(lv()),n=Mr();return ov.default=(0,t.default)((0,n.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"),ov}var cv=r(sv());const uv=$l(uc)((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}})),dv=$l("div")((()=>({paddingLeft:"6px",flexGrow:1}))),fv=$l("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),pv=$l(cv)((()=>({fontSize:"14px"})));function hv(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 S.createElement(uv,{left:l,style:{maxWidth:a}},S.createElement(dv,null,S.createElement(tv,{text:t,dense:r,width:s,tooltip:c})),S.createElement(fv,{dense:r},i&&S.createElement(mc,{"aria-label":"close",onClick:()=>n()},S.createElement(pv,null))))}const mv=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const gv=80;function vv(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>gv,{frequencyEnabled:i=!1}=(null==n?void 0:n.qListObject)||{},a=!["N",void 0].includes(r);return!(!o||!a&&!i)}const bv=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:"[".concat(e.replace(/\]/g,"]]"),"]"):e,yv=e=>{const t=bv(e);return"Max(AGGR(Count(".concat(t,"), ").concat(t,"))")},xv=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=x.useState(),[i,a]=x.useState(n);return x.useEffect((()=>{if(!n)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=yv(r);return(await t.evaluateEx(o)).qNumber})(t,e);o(n),a(!1)})()}),[n&&t]),{frequencyMax:n?r:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:i}};const Sv=["isLoadingData"],wv=100,Ev=$l("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function kv(e){var t,n;let{model:r,app:o,constraints:i,layout:a,selections:l,selectionState:s,direction:c,checkboxes:d,height:h,width:m,frequencyMode:g,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:w=!1,keyboard:E={},showGray:k=!0,scrollState:C,keyScroll:_={state:{},reset:()=>{}},currentScrollIndex:R={set:()=>{}},renderedCallback:L,onCtrlF:O,showSearch:I,isModal:T,styles:P}=e;const{translator:M}=x.useContext(Vs),[q,D]=x.useState(!1),N=!(!a||!a.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:A=d,histogram:z}=null!=a?a:{},j=x.useRef(null),F=x.useRef({queue:[],validPages:!1,dataOffset:0}),$=x.useRef({pages:[]}),{frequencyMax:B,awaitingFrequencyMax:W}=xv(o,a),H=function(e){let{local:t,loaderRef:n,model:r,fetchStart:o,scrollTimeout:i,postProcessPages:a,listData:l}=e;const[s,c]=x.useState(!1),[u,d]=x.useState([]);let[f]=x.useState(0);const p=(e,s)=>{const u=t.current.dataOffset;t.current.queue.push({start:e+u,stop:s+u});const p=!!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>f?n.start-f:0,qHeight:f,qLeft:0,qWidth:1},{qTop:n.start,qHeight:f,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)}),p?i:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(f=t),p}},pages:u,isLoading:s}}({local:F,loaderRef:j,model:r,fetchStart:b,scrollTimeout:0,postProcessPages:y,listData:$}),{isLoadingData:U}=H,V=p(H,Sv),{getStoreValue:G,setStoreValue:K}=Qg(r),Z=x.useCallback(V.loadMoreItems,[a]),[J,X]=x.useState({show:!1,dismissed:!1}),[Y,Q]=x.useState([]);null!=V&&V.pages&&s.update({setPages:Q,pages:V.pages,isSingleSelect:N,layout:a});const ee=null==a?void 0:a.qListObject.qDimensionInfo.qCardinal;(null!=V&&V.pages.length&&!W||0===ee)&&(null==L||L());const te=x.useCallback((e=>{if(null==Y||!Y.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=Y.filter((e=>t(e)))[0];return n&&t(n)}),[a,Y]),{interactionEvents:ne,select:re}=fm({selectionState:s,selections:l,checkboxes:A,doc:document,loaderRef:j}),{layoutOptions:oe={}}=a||{};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=f({},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"===_.state.scrollPosition;if(a&&a.qSelectionInfo.qInSelections||e)return void(e&&_.reset());F.current.dataOffset=0,le(0)}};v&&v.call(null,se),x.useEffect((()=>{C&&!q&&j.current&&(j.current._listRef.scrollToItem(C.initScrollPos),D(!0))}),[j.current]),x.useEffect((()=>{se()}),[a,F.current.dataOffset]);let ce=wv;const ue="grid"!==oe.dataLayout,de=null==a||null===(t=a.qListObject.qSize)||void 0===t?void 0:t.qcy,fe=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?Jg({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:Y,minimumBatchSize:ce,count:de,calculatePagesHeight:w});let pe=vv({itemWidth:m,layout:a,frequencyMode:g});const he=function(e){return e.some((e=>{let{qMatrix:t}=e;return t.some((e=>{var t;let[n]=e;return!(null===(t=n.qFrequency)||void 0===t||!t.match("%"))}))}))?"P":"-"}(Y),me=Zg({layout:a,width:m,height:h,listCount:fe,count:de,freqIsAllowed:pe,checkboxes:A,styles:P});me.columnWidth&&(pe=vv({itemWidth:me.columnWidth,layout:a,frequencyMode:g}));const{listCount:ge}=me;K("listCount",ge);const ve=G("inputText"),be=function(e){let{layout:t,searchInputText:n,listCount:r}=e;const{translator:o}=x.useContext(Vs),i=[];if(null!=n&&n.length){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(r),t=o.get(e,[r]);i.push(t)}const a=function(e){var t;let{layout:n,translatorDynamic:r}=e;const{qStateCounts:o={}}=(null==n||null===(t=n.qListObject)||void 0===t?void 0:t.qDimensionInfo)||{},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"}return r.get(a,[i])}({layout:t,translatorDynamic:o});i.push(a);const l=i.filter((e=>!(null==e||!e.length))).join(". ");return l}({layout:a,searchInputText:ve,listCount:ge}),ye=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=mv(i,o.listCount),t=i.qListObject.qDimensionInfo.qCardinal,l=!0}return{scrollIndex:t,offset:s,triggerRerender:l}}({position:e,isRow:ie,sizes:me,layout:a,offset:F.current.dataOffset});F.current.dataOffset=n,r&&s.triggerStateChanged(),le(t)};x.useEffect((()=>{const e=_.state;e.up?le(R.state.start-e.up):e.down?le(R.state.stop+e.down):e.scrollPosition&&ye(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&_.reset()}),[_.state.up,_.state.down,_.state.scrollPosition]);const{textAlign:xe}=(null==a?void 0:a.qListObject.qDimensionInfo)||{},[Se,we]=x.useState({first:!1,last:!1}),{List:Ee,Grid:ke}=function(e){let{layout:t,width:n,checkboxes:r,local:o,isVertical:i,pages:a,selectionState:l,interactionEvents:s,deducedFrequencyMode:c,histogram:d,isSingleSelect:p,select:h,selectAll:m,onCtrlF:g,textAlign:v,selections:b,keyboard:y,showGray:x,scrollState:w,direction:E,sizes:k,listCount:C,overflowDisclaimer:_,setScrollPosition:R,focusListItems:L,setCurrentScrollIndex:O,constraints:I,frequencyMax:T,freqIsAllowed:P,translator:M,showSearch:q,isModal:D,styles:N}=e;const{layoutOptions:A={}}=t||{},{columnWidth:z,listHeight:j,itemHeight:F,rowCount:$,columnCount:B}=k||{},W=("grid"===A.dataLayout?z:n)>wm,H={direction:"rtl"===E?"rtl":"ltr",useIsScrolling:!0,className:zg.styledScrollbars},U=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,V=j<=F,G=f(f({isLocked:U,column:!i,pages:a},U||l.selectDisabled()?{}:s),{},{checkboxes:r,layoutOptions:A,deducedFrequencyMode:c,freqIsAllowed:P,isSingleSelect:p,textAlign:v,sizes:k,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:d,keyboard:y,showGray:x,showTick:W,dataOffset:o.current.dataOffset,focusListItems:L,direction:E,translator:M,showSearch:q,isModal:D,styles:N,fillHeight:V});return{List:e=>{let{onItemsRendered:r,ref:i}=e;return o.current.listRef=i,S.createElement(Wg,u({},H,{dataTestid:"fixed-size-list",scrollDisabled:null==I?void 0:I.active,height:j,width:n,itemCount:C,itemData:f(f({},G),{},{listCount:C}),itemSize:F,onItemsRendered:e=>{var n;O({start:e.visibleStartIndex,stop:e.visibleStopIndex}),w&&w.setScrollPos(e.visibleStopIndex),Bg({renderProps:e,layoutOptions:A,maxCount:k.maxCount,columnCount:B,rowCount:$,overflowDisclaimer:_,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(f({},e))},ref:i}),vg)},Grid:e=>{let{onItemsRendered:r,ref:i}=e;const{overflowStyling:a,scrollBarWidth:l}=k,{layoutOrder:s}=A||{},c=Math.min(j,$*F+l);return o.current.listRef=i,S.createElement(Hg,u({},H,{dataTestid:"fixed-size-grid",scrollDisabled:null==I?void 0:I.active,height:c,width:n,columnCount:B,columnWidth:z,rowCount:$,rowHeight:F,style:f({},a),itemData:f(f({},G),{},{column:void 0,columnCount:B,rowCount:$}),onItemsRendered:e=>{var n;const i="row"===s;O({start:i?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:i?e.visibleRowStopIndex:e.visibleColumnStopIndex});const a=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,f,p,h;return n&&n.setScrollPos(u),"column"===r?(d=s*o,f=a,p=c*o,h=l):(d=s,f=a*i,p=c,h=l*i),{visibleStartIndex:d+f,visibleStopIndex:p+h}}({renderProps:e,scrollState:w,layoutOrder:s,rowCount:$,columnCount:B});Bg({renderProps:e,layoutOptions:A,maxCount:k.maxCount,columnCount:B,rowCount:$,overflowDisclaimer:_,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(a)},ref:i}),vg)}}}({direction:c,layout:a,width:m,checkboxes:A,deducedFrequencyMode:he,histogram:z,keyboard:E,showGray:k,interactionEvents:ne,select:re,selectAll:()=>{s.clearItemStates(!1),r.selectListObjectAll("/qListObjectDef")},onCtrlF:O,textAlign:xe,isVertical:ue,pages:Y,selectionState:s,isSingleSelect:N,selections:l,scrollState:C,local:F,sizes:me,listCount:ge,overflowDisclaimer:{state:J,set:e=>X((t=>f(f({},t),{},{show:e})))},setScrollPosition:ye,focusListItems:{first:Se.first,setFirst:e=>we((t=>f(f({},t),{},{first:e}))),last:Se.last,setLast:e=>we((t=>f(f({},t),{},{last:e})))},setCurrentScrollIndex:R.set,constraints:i,frequencyMax:B,freqIsAllowed:pe,translator:M,showSearch:I,isModal:T,styles:P}),{columnWidth:Ce,listHeight:_e,itemHeight:Re}=me||{};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:m,columnWidth:Ce,listHeight:_e,itemHeight:Re})),S.createElement(Ev,null,S.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},be),!ge&&ee>0&&S.createElement(tv,{width:m,text:"Listbox.NoMatchesForYourTerms"}),S.createElement(rm,{isItemLoaded:te,itemCount:ge||1,loadMoreItems:Z.with({minimumBatchSize:ce}),threshold:0,minimumBatchSize:ce,ref:j,role:"grid"},ue?Ee:ke),J.show&&!J.dismissed&&S.createElement(hv,{text:"Listbox.ItemsOverflow",dismiss:()=>X((e=>f(f({},e),{},{dismissed:!0}))),parentWidth:null==j||null===(n=j.current)||void 0===n||null===(n=n._listRef)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.width,dense:null==oe?void 0:oe.dense}))}const Cv=e=>f(f({},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"}}]}),_v=e=>f(f({},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"}}]}),Rv=e=>f(f({},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"}}]}),Lv=e=>f(f({},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 Ov=e=>{let{layout:t,model:n,translator:r,selectionState:o,isDirectQuery:i=!1,selections:a}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];const l="/qListObjectDef",s=()=>{a.isActive()||a.begin(l)};return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:Cv,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectAll(l)}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:Rv,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectPossible(l)}},!i&&{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:_v,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectAlternative(l)}},!i&&{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:Lv,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectExcluded(l)}}].filter(Boolean)};const Iv=e=>f(f({},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 Tv(e){const t=_l(),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 Pv={className:"njs-cell-action"},Mv=S.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const i=_l(),{hidden:a,disabled:l,style:s,hasSvgIconShape:c}=Tv(r);if(a)return null;const u=Number.parseInt(i.spacing(.5),10),d=r.keyboardAction||r.action,f=d?e=>["Enter"].includes(e.key)&&d():null,p=d?e=>[" ","Spacebar"].includes(e.key)&&d():null,h="actions-toolbar-".concat(r.key);return S.createElement(mc,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:f,onKeyUp:p,disabled:l,style:s,className:[Pv.className,h].join(" "),size:"large",disableRipple:!0,"aria-expanded":n,"aria-controls":"moreMenuList","data-testid":h},c&&Jh(r.getSvgIconShape()),o&&S.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),qv=e=>f(f({},e),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]});var Dv=e=>Jh(qv(e));const Nv=e=>f(f({},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 Av=e=>Jh(Nv(e));const zv="njs-action-toolbar-more",jv={icon:"".concat("More","-icon")},Fv=$l(Qp)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(jv.icon," *")]:{color:t.palette.text.primary}}}));function $v(e){let{item:t,autoFocus:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:i,hasSvgIconShape:a}=Tv(t);return o?null:S.createElement(oh,{autoFocus:n,title:t.label,onClick:()=>{t.action(),r()},disabled:i,tabindex:"0"},a&&S.createElement(Dp,{className:jv.icon},Jh(t.getSvgIconShape())),S.createElement(Sc,{noWrap:!0},t.label))}const Bv=S.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:o,popoverProps:i={},popoverPaperStyle:a={},onCloseOrActionClick:l=(()=>{}),disablePortal:s=!0}=e;const c=n.length>0,d=n.findIndex((e=>!e.disabled));return c&&S.createElement(Fv,u({},i,{onClose:l,ref:t,open:r,anchorEl:o.current,getContentAnchorEl:s?null:void 0,container:s?o.current:void 0,disablePortal:s,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:zv},paper:{style:f({pointerEvents:"auto",maxWidth:"250px"},a)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),S.createElement(Bp,{id:"moreMenuList"},n.map(((e,t)=>S.createElement($v,{key:t,item:e,autoFocus:t===d,onActionClick:l})))))})),Wv=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},Hv=e=>{const t=document.querySelector("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");if(!n.length)return;n[Math.min(Math.max(0,e),n.length-1)].focus()};const Uv="ActionsToolbar",Vv={item:"".concat(Uv,"-item"),itemSpacing:"".concat(Uv,"-itemSpacing")},Gv=$l(Qp)((e=>{let{theme:t}=e;return{["& .".concat(Vv.itemSpacing)]:{padding:t.spacing(0,.25)}}})),Kv={className:"njs-action-toolbar-popover"},Zv=S.forwardRef(((e,t)=>{let{className:n,ariaExpanded:r=!1,actions:o=[],addAnchor:i=!1,isRtl:a=!1}=e;return o.length>0?S.createElement(Yf,{item:!0,container:!0,gap:0,flexDirection:a?"row-reverse":"row",wrap:"nowrap",className:n},o.map(((e,n)=>S.createElement(Yf,{item:!0,key:e.key,className:"".concat(Vv.itemSpacing," ").concat(Vv.item)},S.createElement(Mv,{ariaExpanded:r,key:e.key,item:e,ref:0===n?t:null,addAnchor:i}))))):null})),Jv={pointerEvents:"none"};function Xv(e){var t,n;let{show:r=!0,actions:o=[],maxItems:i=3,selections:a={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:l,more:s={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{},disablePortal:!0},popover:c={show:!1,anchorEl:null},focusHandler:u=null,actionsRefMock:d=null,isRtl:p,autoConfirm:h=!1,layout:m}=e;const g=function(e){let{api:t,layout:n,onConfirm:r=(()=>{}),onCancel:o=(()=>{}),onKeyDeactivate:i=(()=>{})}=e;const{translator:a}=x.useContext(Vs);return[{key:"clear",type:"icon-button",label:a.get("Selection.Clear"),enabled:()=>t.canClear(n),action:()=>t.clear(),getSvgIconShape:Nv},{key:"cancel",type:"icon-button",label:a.get("Selection.Cancel"),enabled:()=>t.canCancel(n),action:()=>{o(),t.cancel()},keyboardAction:()=>{i(),o(),t.cancel()},getSvgIconShape:qv},{key:"confirm",type:"icon-button",label:a.get("Selection.Confirm"),enabled:()=>t.canConfirm(n),action:()=>{r(),t.confirm()},keyboardAction:()=>{i(),r(),t.confirm()},getSvgIconShape:pm}]}(f(f({},a),{},{layout:m})),{translator:v,keyboardNavigation:b}=x.useContext(Vs),[y,w]=x.useState(!1),E={vertical:12,horizontal:p?0:(null!==(t=null===(n=c.anchorEl)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)-7},k={vertical:"bottom",horizontal:p?-7:"right"},C=x.useRef(),_=x.useRef(),R=_l(),L=x.useMemo((()=>({margin:R.spacing(.5,0)}))),O=e=>{const t=C.current||d;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},I=x.useMemo((()=>function(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r,selections:o,isRtl:i}=e;return e=>{const{target:a,nativeEvent:l}=e,{keyCode:s}=l;switch(s){case ag.ARROW_LEFT:case ag.ARROW_DOWN:case ag.ARROW_RIGHT:case ag.ARROW_UP:if(a.classList.contains("njs-cell-action")){const e=Wv(a);let t=[ag.ARROW_LEFT,ag.ARROW_DOWN].includes(s);t=i?!t:t,Hv(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case ag.SPACE:e.preventDefault();break;case ag.TAB:t&&null!=n&&n.refocusContent&&(e.shiftKey&&r(!1)===e.target||!e.shiftKey&&r(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),n.refocusContent());break;case ag.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:b,focusHandler:u,getEnabledButton:O,selections:a,isRtl:p})),[b,u,O,a,p]);if(x.useEffect((()=>()=>{w(!1)}),[c.show,r,a.show]),x.useEffect((()=>{if(!u)return;u.on("focus_toolbar_first",(()=>{const e=O(!1);null==e||e.focus()})),u.on("focus_toolbar_last",(()=>{const e=O(!0);null==e||e.focus()}))}),[]),h)return;let T=s.enabled,P=s.actions;const M=s.alignTo||_,q=o.filter((e=>!e.hidden));if(q.length>i){const e=q.splice(-(q.length-i)-1);T=!0,P=[...e,...s.actions]}if(!a.show&&0===q.length&&!T)return null;const D={key:"more",label:v.get("Menu.More"),getSvgIconShape:Iv,hidden:!1,active:y,enabled:()=>T,action:()=>w(!y)},N=q.length>0,A=P.length>0,z=N&&a.show||A&&a.show,j=S.createElement(Yf,{ref:C,onKeyDown:I,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:p?"row-reverse":"row"}},(null==l?void 0:l.length)&&S.createElement(Zv,{className:"actions-toolbar-extra-actions",actions:l,isRtl:p}),N&&S.createElement(Zv,{actions:q}),A&&S.createElement(Zv,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:_,ariaExpanded:y,actions:[D],addAnchor:!0}),z&&S.createElement(Yf,{item:!0,className:Vv.itemSpacing,style:L},S.createElement(Df,{orientation:"vertical"})),a.show&&S.createElement(Zv,{className:"actions-toolbar-default-actions",actions:g,isRtl:p}),y&&S.createElement(Bv,{show:y,actions:P,alignTo:M,popoverProps:s.popoverProps,popoverPaperStyle:s.popoverPaperStyle,onCloseOrActionClick:()=>{w(!1)},disablePortal:s.disablePortal}));return c.show?S.createElement(Gv,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:c.show,anchorEl:c.anchorEl,anchorOrigin:E,transformOrigin:k,hideBackdrop:!0,style:Jv,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:Kv.className,style:{pointerEvents:"auto",padding:R.spacing(.5,.25)}}}},j):r&&j}var Yv=e=>Jh((e=>f(f({},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 Qv="/qListObjectDef",eb=e=>null==e?void 0:e.substring(0,64e3),tb=$l(ph,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})((e=>{let{styles:t,dense:n,isRtl:r}=e,o={};return n&&(o={fontSize:12,"& input":{paddingTop:"5px",paddingBottom:"5px",color:t.search.color,textAlign:r?"right":"left"}}),f({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:t.search.backgroundColor,backdropFilter:t.background.backgroundImage?t.search.backdropFilter:void 0,paddingLeft:0,paddingRight:0,flexDirection:r?"row-reverse":"row","& fieldset":{borderColor:"".concat(t.search.borderColor),borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:"".concat(t.search.highlightBorderColor," !important")},"& .MuiInputBase-root":f({},t.search),"& *":{color:t.search.color},"& input":{color:t.search.color,textAlign:r?"right":"left"}},o)})),nb=$l(mc)((()=>({border:0,padding:"8px",cursor:"pointer",lineHeight:"12px","&:hover":{backgroundColor:"transparent"},":focus-visible":{borderRadius:"4px",boxShadow:"inset 0 0 0 2px rgb(2, 117, 217)"}})));var rb=x.forwardRef((function(e,t){let{popoverOpen:n,selections:r,selectionState:o,model:i,keyboard:a,dense:l=!1,visible:s=!0,autoFocus:c=!0,beginSelectionOnFocus:u=!0,wildCardSearch:d=!1,searchEnabled:f,direction:p,hide:h,styles:m}=e;const{translator:g}=x.useContext(Vs),[v,b]=x.useState(""),[y,w]=x.useState(!1),E=x.useRef(),k=x.useRef(),C=g.get("Listbox.Clear.Search"),{getStoreValue:_,setStoreValue:R}=Qg(i),L="rtl"===p,O=async()=>{try{await i.abortListObjectSearch(Qv)}finally{b("")}};x.useEffect((()=>s?()=>O():()=>{}),[s]),x.useEffect((()=>(r.on("deactivated",O),()=>{r.removeListener&&r.removeListener("deactivated",O)})),[]),x.useEffect((()=>{if(y&&E.current){const e=v.length-1;E.current.setSelectionRange(e,e),w(!1)}}),[y,E.current]),x.useEffect((()=>{R("inputText",v)}),[v]);const I=async()=>{let e;const t=eb(v),n=await i.searchListObjectFor(Qv,t);return o.selectDisabled()?n:(n&&t.length&&_("listCount")>0&&(e=i.acceptListObjectSearch(Qv,!0),r.selectionsMade=!0,o.clearItemStates(!1),b("")),e)},T=()=>{var e;null===(e=E.current)||void 0===e||e.focus()},P=()=>{O(),T()};return x.useImperativeHandle(t,(()=>({focus(){T()}}))),s&&!1!==f?S.createElement(tb,{styles:m,dense:l,isRtl:L,startAdornment:S.createElement(pp,{position:"start",sx:{marginLeft:l?"8px":"".concat(bm,"px")}},S.createElement(Yv,{size:l?"small":"normal"})),endAdornment:S.createElement(pp,{position:"end",sx:{marginLeft:0}},""!==v&&S.createElement(nb,{tabIndex:0,ref:k,title:C,"aria-label":C,onClick:P,onKeyDown:e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.key){case"Enter":P();break;case"Tab":e.shiftKey?T():fg(t);break;default:return}e.preventDefault(),e.stopPropagation()}},S.createElement(Dv,{size:l?"small":"normal"}))),className:"search",inputRef:E,size:"small",fullWidth:!0,placeholder:g.get("Listbox.Search"),value:v,onFocus:()=>{d&&(b("**"),w(!0)),u&&!o.selectDisabled()&&!r.isModal()&&r.begin("/qListObjectDef")},onChange:async e=>{const t=eb(e.target.value);return b(t),t.length?i.searchListObjectFor(Qv,t):O()},onKeyDown:async e=>{const{currentTarget:t}=e,o=t.closest(".listbox-container");switch(e.key){case"Enter":I();break;case"Escape":if(fg(o),r.cancel(),n)return;break;case"Tab":e.shiftKey?pg(o)||a.focusSelection():k.current?k.current.focus():fg(o);break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;h&&(h(),fg(o));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:c,inputProps:{tabIndex:a.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":g.get("Listbox.Search.ScreenReaderInstructions")}}):null}));function ob(e){if(!e.session)return[];const{selectionStore:t}=x.useContext(Vs),[n]=t.useAppSelectionsStore(),r=e?e.id:null;let o=n.get(r);return x.useEffect((()=>{e&&!o&&(o=function(e){let{app:t,selectionStore:n}=e;const r="".concat(t.id),{modalObjectStore:o,appModalStore:i}=n,a=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{model:t,objectSelections:n}=o.get(r)||{};t&&(await t.endSelections(e),o.clear(r),n.emit("deactivated"))},l={begin:async e=>{var n;let{model:i,paths:l,accept:s=!0,objectSelections:c}=e;if(c===(null===(n=o.get(r))||void 0===n?void 0:n.objectSelections))return;a(s),o.set(r,{model:i,objectSelections:c});const u=Array.isArray(l)?l:[l],d=async e=>{try{await i.beginSelections(u),o.set(r,{model:i,objectSelections:c})}catch(n){6003!==n.code||e?o.clear(r):(await t.abortModal(s),d(!0))}};await d()},end:a};i.set(r,l);const s={model:t,isInModal:()=>!!o.get(r),isModal(e){var t;return e?(null===(t=o.get(r))||void 0===t?void 0:t.objectSelections)===e:!!o.get(r)},forward:()=>l.end().then((()=>t.forward())),back:()=>l.end().then((()=>t.back())),clear:()=>l.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return l.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return s}({app:e,selectionStore:t}),n.set(r,o),n.dispatch(!0))}),[e]),[o]}function ib(e){return Object.keys(O.prototype).forEach((t=>{e[t]=O.prototype[t]})),O.init(e),e}const ab=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({model:o,paths:e,accept:!0,objectSelections:l}))},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(l),goModal:e=>r.begin({model:o,paths:e,accept:!1,objectSelections:l}),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return ib(l),l},lb=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 sb(e,t,n,r){const o=Array.isArray(n)?n:[n],[i]=ob(e),[a]=Vh(t),{appModalStore:l}=x.useContext(Vs).selectionStore,s=l.get(e.id),[c,u]=x.useState();return x.useEffect((()=>{i&&t&&!c&&u(ab({appSelections:i,appModal:s,model:t}))}),[i,t]),x.useEffect((()=>{if(!c)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=lb({elements:o,objectSelections:c,options:r});return c.addListener("activated",e),c.addListener("deactivated",t),()=>{c.isActive()&&c.confirm(),c.removeListener("activated",e),c.removeListener("deactivated",t)}}),[c]),x.useEffect((()=>{c&&c.setLayout(a)}),[c,a]),[c]}function cb(){const e=f(f({itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{update(t){var n,r;let{setPages:o,pages:i,isSingleSelect:a,selectDisabled:l,layout:s}=t;this.setPages=o;const c=this.lastRowCount===s.qListObject.qSize.qcy,u=this.lastApprMaxGlyphCount===s.qListObject.qDimensionInfo.qApprMaxGlyphCount;c&&u||(this.lastRowCount=s.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=s.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==i&&void 0!==i&&(e.enginePages=null!=i?i:[],e.selectedInEngine=am(i),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=a,e.selectDisabled=l||e.selectDisabled,e.isDimCalculated=null!==(n=null==s||null===(r=s.qListObject)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.qIsCalculated)&&void 0!==n&&n},allowedToSelect:()=>!e.selectDisabled()&&!(e.isDimCalculated&&e.selectableValuesUpdating),setSelectableValuesUpdating(){e.selectableValuesUpdating=!0},useClientItemState:t=>e.ignoreSelectionState||t in e.itemStates,isSelected:t=>e.useClientItemState(t)?!!e.itemStates[t]:e.selectedInEngine.includes(t),getState(t){const{qElemNumber:n,qState:r}=t;return e.useClientItemState(n)?e.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(t,n,r){const o=e.isSelected(t);o&&!n?e.itemStates[t]=!1:o||(null==r||r.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages(t){const n=t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[f(f({},n),{},{qState:r}),...t.slice(1)]}));return f(f({},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 ub=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 db(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return ub(t,"qSelected",0)+ub(t,"qSelectedExcluded",0)+ub(t,"qLocked",0)+ub(t,"qLockedExcluded",0)>0}function fb(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function pb(e){if("object"==typeof e&&fb(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),r=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),n=parseInt(o[2],16),r=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),n=parseInt(o[2]+o[2],16),r=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+r}const hb={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function mb(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&"qcm-color"===a.type)({r:n,g:r,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(fb(e[0]))({r:n,g:r,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let l;if(l=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))n=parseInt(l[1],10),r=parseInt(l[2],10),o=parseInt(l[3],10);else if(l=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))n=parseInt(l[1],10),r=parseInt(l[2],10),o=parseInt(l[3],10),i=parseFloat(l[4]);else if(l=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(l[1],10)/255,n=parseInt(l[2],10),r=parseInt(l[3],10),o=parseInt(l[4],10);else if(l=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))n=parseInt(l[1],16),r=parseInt(l[2],16),o=parseInt(l[3],16),i=1;else if(l=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))n=parseInt(l[1]+l[1],16),r=parseInt(l[2]+l[2],16),o=parseInt(l[3]+l[3],16),i=1;else if(l=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(l[1]),t=parseFloat(l[3]),a=parseFloat(l[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const s=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=s*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}const f=a-.5*s;n=d[0]+f,r=d[1]+f,o=d[2]+f,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else if(l=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(l[1]),t=parseFloat(l[3]),a=parseFloat(l[5]);i=parseFloat(l[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const s=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=s*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}const f=a-.5*s;n=d[0]+f,r=d[1]+f,o=d[2]+f,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o)}else if(l=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(l[1]),t=parseFloat(l[3]),a=parseFloat(l[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const s=a*t;let c=e/60;const u=s*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}const f=a-s;n=d[0]+f,r=d[1]+f,o=d[2]+f,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in hb}(e)){const t=hb[e];({r:n,g:r,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+o+i)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(o),t.a=i,t}function gb(e){let t,n,r;if(fb(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const o="string"==typeof e?pb(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}function vb(e){let t,n,r=0;const o="string"==typeof e?mb(e):e,i=o.r/255,a=o.g/255,l=o.b/255,{a:s}=o,c=Math.max(i,a,l),u=Math.min(i,a,l),d=(c+u)/2;if(c===u)t=0,r=0;else{switch(n=c-u,t=d>.5?n/(2-c-u):n/(c+u),c){case i:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-i)/n+2;break;case l:r=(i-a)/n+4}r/=6}return{h:360*r,s:100*t,l:100*d,a:s}}function bb(e){let t,n,r=0;const o="string"==typeof e?mb(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),c=Math.min(i,a,l),u=s;if(s===c)t=0,r=0;else{switch(n=s-c,t=0===n?0:n/u,s){case i:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-i)/n+2;break;case l:r=(i-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}}function yb(e){if(fb(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?pb(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function xb(e,t){return fb(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:xb(mb(e))}function Sb(e){return fb(e)?1===e.a?yb(e):xb(e):Sb(mb(e))}const wb=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function Eb(e){return.2126*wb(e.r)+.7152*wb(e.g)+.0722*wb(e.b)}function kb(...e){const t=mb(...e);return t.invalid||Eb(t)<.4}function Cb(...e){const t=mb(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=vb(n)),n.spaces.hslaObject),o=e=>{const t=r(),{h:n,s:o,l:i,a:a}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=mb(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>kb(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=yb(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=xb(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=Sb(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=gb(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?mb(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),c=Math.min(i,a,l),u=(s+c)/2;if(s===c)t=0,r=0;else{switch(n=s-c,t=u>.5?n/(2-s-c):n/(s+c),s){case i:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-i)/n+2;break;case l:r=(i-a)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*u})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:o}=vb(e);return`hsla(${t}, ${n}, ${r}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=bb(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=bb(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>Cb(o(18*e)),getDarkenedColor:(e=1)=>Cb(o(18*-e))}}function _b(e,t){if(!e||!t)return;const n=Eb(e),r=Eb(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function Rb(e,t){const n=Cb("#FFFFFF"),r=Cb(e),o=Cb(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=_b(n,r),a=_b(o,r),l=i>a||i>4.5;return!l&&a>3?o.getHex():l?"#FFFFFF":"#000000"}var Lb,Ob;function Ib(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tb=function(){if(Ob)return Lb;Ob=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Lb=function e(){var t,n,r,s,c,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(s=l(t,n))&&(h&&s&&(i(s)||(c=o(s)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,s)})):void 0!==s&&a(d,{name:n,newValue:s}));return d},Lb}();function Pb(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Mb(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function qb(){}Ib(Tb);var Db=1/.7,Nb="\\s*([+-]?\\d+)\\s*",Ab="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",zb="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",jb=/^#([0-9a-f]{3,8})$/,Fb=new RegExp(`^rgb\\(${Nb},${Nb},${Nb}\\)$`),$b=new RegExp(`^rgb\\(${zb},${zb},${zb}\\)$`),Bb=new RegExp(`^rgba\\(${Nb},${Nb},${Nb},${Ab}\\)$`),Wb=new RegExp(`^rgba\\(${zb},${zb},${zb},${Ab}\\)$`),Hb=new RegExp(`^hsl\\(${Ab},${zb},${zb}\\)$`),Ub=new RegExp(`^hsla\\(${Ab},${zb},${zb},${Ab}\\)$`),Vb={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 Gb(){return this.rgb().formatHex()}function Kb(){return this.rgb().formatRgb()}function Zb(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=jb.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Jb(t):3===n?new ey(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Xb(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Xb(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=Fb.exec(e))?new ey(t[1],t[2],t[3],1):(t=$b.exec(e))?new ey(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Bb.exec(e))?Xb(t[1],t[2],t[3],t[4]):(t=Wb.exec(e))?Xb(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Hb.exec(e))?ay(t[1],t[2]/100,t[3]/100,1):(t=Ub.exec(e))?ay(t[1],t[2]/100,t[3]/100,t[4]):Vb.hasOwnProperty(e)?Jb(Vb[e]):"transparent"===e?new ey(NaN,NaN,NaN,0):null}function Jb(e){return new ey(e>>16&255,e>>8&255,255&e,1)}function Xb(e,t,n,r){return r<=0&&(e=t=n=NaN),new ey(e,t,n,r)}function Yb(e){return e instanceof qb||(e=Zb(e)),e?new ey((e=e.rgb()).r,e.g,e.b,e.opacity):new ey}function Qb(e,t,n,r){return 1===arguments.length?Yb(e):new ey(e,t,n,null==r?1:r)}function ey(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ty(){return`#${iy(this.r)}${iy(this.g)}${iy(this.b)}`}function ny(){const e=ry(this.opacity);return`${1===e?"rgb(":"rgba("}${oy(this.r)}, ${oy(this.g)}, ${oy(this.b)}${1===e?")":`, ${e})`}`}function ry(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function oy(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function iy(e){return((e=oy(e))<16?"0":"")+e.toString(16)}function ay(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new sy(e,t,n,r)}function ly(e){if(e instanceof sy)return new sy(e.h,e.s,e.l,e.opacity);if(e instanceof qb||(e=Zb(e)),!e)return new sy;if(e instanceof sy)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 sy(a,l,s,e.opacity)}function sy(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function cy(e){return(e=(e||0)%360)<0?e+360:e}function uy(e){return Math.max(0,Math.min(1,e||0))}function dy(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Pb(qb,Zb,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Gb,formatHex:Gb,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ly(this).formatHsl()},formatRgb:Kb,toString:Kb}),Pb(ey,Qb,Mb(qb,{brighter(e){return e=null==e?Db:Math.pow(Db,e),new ey(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ey(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ey(oy(this.r),oy(this.g),oy(this.b),ry(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:ty,formatHex:ty,formatHex8:function(){return`#${iy(this.r)}${iy(this.g)}${iy(this.b)}${iy(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ny,toString:ny})),Pb(sy,(function(e,t,n,r){return 1===arguments.length?ly(e):new sy(e,t,n,null==r?1:r)}),Mb(qb,{brighter(e){return e=null==e?Db:Math.pow(Db,e),new sy(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new sy(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 ey(dy(e>=240?e-240:e+120,o,r),dy(e,o,r),dy(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new sy(cy(this.h),uy(this.s),uy(this.l),ry(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=ry(this.opacity);return`${1===e?"hsl(":"hsla("}${cy(this.h)}, ${100*uy(this.s)}%, ${100*uy(this.l)}%${1===e?")":`, ${e})`}`}}));const fy=Math.PI/180,py=180/Math.PI,hy=4/29,my=6/29,gy=3*my*my;function vy(e){if(e instanceof by)return new by(e.l,e.a,e.b,e.opacity);if(e instanceof Ey)return ky(e);e instanceof ey||(e=Yb(e));var t,n,r=wy(e.r),o=wy(e.g),i=wy(e.b),a=yy((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=yy((.4360747*r+.3850649*o+.1430804*i)/.96422),n=yy((.0139322*r+.0971045*o+.7141733*i)/.82521)),new by(116*a-16,500*(t-a),200*(a-n),e.opacity)}function by(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function yy(e){return e>.008856451679035631?Math.pow(e,1/3):e/gy+hy}function xy(e){return e>my?e*e*e:gy*(e-hy)}function Sy(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function wy(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ey(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function ky(e){if(isNaN(e.h))return new by(e.l,0,0,e.opacity);var t=e.h*fy;return new by(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Pb(by,(function(e,t,n,r){return 1===arguments.length?vy(e):new by(e,t,n,null==r?1:r)}),Mb(qb,{brighter(e){return new by(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new by(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new ey(Sy(3.1338561*(t=.96422*xy(t))-1.6168667*(e=1*xy(e))-.4906146*(n=.82521*xy(n))),Sy(-.9787684*t+1.9161415*e+.033454*n),Sy(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Pb(Ey,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ey)return new Ey(e.h,e.c,e.l,e.opacity);if(e instanceof by||(e=vy(e)),0===e.a&&0===e.b)return new Ey(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*py;return new Ey(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ey(e,t,n,null==r?1:r)}),Mb(qb,{brighter(e){return new Ey(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ey(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ky(this).rgb()}}));var Cy=-.14861,_y=1.78277,Ry=-.29227,Ly=-.90649,Oy=1.97294,Iy=Oy*Ly,Ty=Oy*_y,Py=_y*Ry-Ly*Cy;function My(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof qy)return new qy(e.h,e.s,e.l,e.opacity);e instanceof ey||(e=Yb(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(Py*r+Iy*t-Ty*n)/(Py+Iy-Ty),i=r-o,a=(Oy*(n-o)-Ry*i)/Ly,l=Math.sqrt(a*a+i*i)/(Oy*o*(1-o)),s=l?Math.atan2(a,i)*py-120:NaN;return new qy(s<0?s+360:s,l,o,e.opacity)}(e):new qy(e,t,n,null==r?1:r)}function qy(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Pb(qy,My,Mb(qb,{brighter(e){return e=null==e?Db:Math.pow(Db,e),new qy(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new qy(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*fy,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new ey(255*(t+n*(Cy*r+_y*o)),255*(t+n*(Ry*r+Ly*o)),255*(t+n*(Oy*r)),this.opacity)}}));var Dy=e=>()=>e;function Ny(e,t){return function(n){return e+n*t}}function Ay(e,t){var n=t-e;return n?Ny(e,n):Dy(isNaN(e)?t:e)}function zy(e){return((e=Math.exp(e))+1/e)/2}function jy(e){return function t(n){function r(t,r){var o=e((t=My(t)).h,(r=My(r)).h),i=Ay(t.s,r.s),a=Ay(t.l,r.l),l=Ay(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,n)),t.opacity=l(e),t+""}}return n=+n,r.gamma=t,r}(1)}!function e(t){var n=function(e){return 1==(e=+e)?Ay:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Dy(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Qb(e)).r,(t=Qb(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Ay(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),function e(t,n,r){function o(e,o){var i,a,l=e[0],s=e[1],c=e[2],u=o[0],d=o[1],f=o[2],p=u-l,h=d-s,m=p*p+h*h;if(m<1e-12)a=Math.log(f/c)/t,i=function(e){return[l+e*p,s+e*h,c*Math.exp(t*e*a)]};else{var g=Math.sqrt(m),v=(f*f-c*c+r*m)/(2*c*n*g),b=(f*f-c*c-r*m)/(2*f*n*g),y=Math.log(Math.sqrt(v*v+1)-v),x=Math.log(Math.sqrt(b*b+1)-b);a=(x-y)/t,i=function(e){var r,o=e*a,i=zy(y),u=c/(n*g)*(i*(r=t*o+y,((r=Math.exp(2*r))-1)/(r+1))-function(e){return((e=Math.exp(e))-1/e)/2}(y));return[l+u*p,s+u*h,c*i/zy(t*o+y)]}}return i.duration=1e3*a*t/Math.SQRT2,i}return o.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},o}(Math.SQRT2,2,4),jy((function(e,t){var n=t-e;return n?Ny(e,n>180||n<-180?n-360*Math.round(n/360):n):Dy(isNaN(e)?t:e)})),jy(Ay);var Fy="center",$y="bottom";[{key:"NoDataExist",alignment:Fy,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Fy,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Fy,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Fy},{key:"DataRangeIncludingZero",alignment:$y},{key:"LimitedData",alignment:$y},{key:"NegativeOrZeroValues",alignment:$y}].reduce((function(e,t){return e[t.key]=t,e}),{});var By,Wy={exports:{}},Hy=By?Wy.exports:(By=1,Wy.exports=function(){function e(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(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 n(n){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?t(Object(o),!0).forEach((function(t){e(n,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},s=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t,n=r.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;for(t in e);return void 0===t||r.call(e,t)},c=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;if(a)return a(e,t).value}return e[t]},d=function e(){var t,n,r,o,i,a,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=u(d,n),d!==(o=u(t,n))&&(h&&o&&(s(o)||(i=l(o)))?(i?(i=!1,a=r&&l(r)?r:[]):a=r&&s(r)?r:{},c(d,{name:n,newValue:e(h,a,o)})):void 0!==o&&c(d,{name:n,newValue:o}));return d};function f(e,t,n,r){if(!e)return-1;const o=n.cache,i=e.origin?e.origin():null;i&&(e=i);let a=o.fields.indexOf(e),l=-1,s=-1;if(-1===a)for(let t=0;t<o.wrappedFields.length;t++)if(s=o.wrappedFields[t].attrDims.map((e=>e.instance)).indexOf(e),l=o.wrappedFields[t].attrExps.map((e=>e.instance)).indexOf(e),-1!==s||-1!==l){a=t;break}if(Array.isArray(r)&&r.some(((e,t)=>e!==t))){const e=r.indexOf(a);-1!==e&&(a=e)}return a-=t.qArea.qLeft,a<0||a>=t.qArea.qWidth?-1:s>=0?e=>e[a].qAttrDims.qValues[s]:l>=0?e=>e[a].qAttrExps.qValues[l]:e=>e[a]}function p(e,t,n){let{key:r}=n;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:r,field:e.field.key()}),o}function h(e){let{cache:t,f:n,mainCell:r,p:o,page:i,rowIdx:a,row:l,sourceKey:s,target:c,targetProp:u,columnOrder:h}=e,m=r;if(o.field&&o.field!==n){const e=f(o.field,i,{cache:t},h);if(-1===e)return;m=d({qRow:a},e(l))}c[u]=p(o,m,{key:s})}function m(e,t,n,r){const o=Array.isArray(e)?e:[e];let i=[];for(let e=0;e<o.length;e++)if(void 0!==o[e].field){const a=t.raw(),l=t.key(),s="object"==typeof o[e].field?o[e].field:t.field(o[e].field),{props:c,main:u}=r.normalizeConfig(o[e],t),m=Object.keys(c),g=!!o[e].trackBy,v=typeof o[e].trackBy,b={},y=[],x=[];for(let t=0;t<a.qDataPages.length;t++){const i=f(s,a.qDataPages[t],{cache:n},a.qColumnOrder);if(-1!==i)for(let f=0;f<a.qDataPages[t].qMatrix.length;f++){const S=a.qDataPages[t].qArea.qTop+f,w=d({qRow:S},i(a.qDataPages[t].qMatrix[f])),E=p(u,w,{key:l});if(!u.filter||u.filter(w)){for(let e=0;e<m.length;e++){const r=c[m[e]];let o=r.fields||[r];r.fields&&(E[m[e]]=[]);for(let i=0;i<o.length;i++)h({cache:n,f:s,mainCell:w,p:o[i],prop:m[e],page:a.qDataPages[t],rowIdx:S,row:a.qDataPages[t].qMatrix[f],sourceKey:l,target:r.fields?E[m[e]]:E,targetProp:r.fields?i:m[e],columnOrder:a.qColumnOrder});if(r.fields){const t=E[m[e]].map((e=>e.value)),n=E[m[e]].map((e=>e.label));E[m[e]]={value:"function"==typeof r.value?r.value(t):void 0!==r.value?r.value:t,label:"function"==typeof r.label?r.label(n):void 0!==r.label?String(r.label):String(E[m[e]].value)}}}g&&r.track({cfg:o[e],itemData:w,obj:E,target:y,tracker:b,trackType:v}),x.push(E)}}}const S=g?r.collect(y,{main:u,propsArr:m,props:c}):x;i=[...i,...S]}return i}function g(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function v(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=y)):void 0===t&&(t=b);for(var n,r,o,i,a,l=new w(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new w(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(S)}function b(e){return e.children}function y(e){return Array.isArray(e)?e[1]:null}function x(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function S(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function w(e){this.data=e,this.depth=this.height=0,this.parent=null}function E(e){return null==e?null:function(e){if("function"!=typeof e)throw new Error;return e}(e)}w.prototype=v.prototype={constructor:w,count:function(){return this.eachAfter(g)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return v(this).eachBefore(x)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}};var k={depth:-1},C={},_={};function R(e){return e.id}function L(e){return e.parentId}function O(){var e,t=R,n=L;function r(r){var o,i,a,l,s,c,u,d,f=Array.from(r),p=t,h=n,m=new Map;if(null!=e){const t=f.map(((t,n)=>function(e){let t=(e=`${e}`).length;return T(e,t-1)&&!T(e,t-2)&&(e=e.slice(0,-1)),"/"===e[0]?e:`/${e}`}(e(t,n,r)))),n=t.map(I),o=new Set(t).add("");for(const e of n)o.has(e)||(o.add(e),t.push(e),n.push(I(e)),f.push(_));p=(e,n)=>t[n],h=(e,t)=>n[t]}for(a=0,o=f.length;a<o;++a)i=f[a],c=f[a]=new w(i),null!=(u=p(i,a,r))&&(u+="")&&(d=c.id=u,m.set(d,m.has(d)?C:c)),null!=(u=h(i,a,r))&&(u+="")&&(c.parent=u);for(a=0;a<o;++a)if(u=(c=f[a]).parent){if(!(s=m.get(u)))throw new Error("missing: "+u);if(s===C)throw new Error("ambiguous: "+u);s.children?s.children.push(c):s.children=[c],c.parent=s}else{if(l)throw new Error("multiple roots");l=c}if(!l)throw new Error("no root");if(null!=e){for(;l.data===_&&1===l.children.length;)l=l.children[0],--o;for(let e=f.length-1;e>=0&&(c=f[e]).data===_;--e)c.data=null}if(l.parent=k,l.eachBefore((function(e){e.depth=e.parent.depth+1,--o})).eachBefore(S),l.parent=null,o>0)throw new Error("cycle");return l}return r.id=function(e){return arguments.length?(t=E(e),r):t},r.parentId=function(e){return arguments.length?(n=E(e),r):n},r.path=function(t){return arguments.length?(e=E(t),r):e},r}function I(e){let t=e.length;if(t<2)return"";for(;--t>1&&!T(e,t););return e.slice(0,t)}function T(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(0==(1&n))return!0}return!1}function P(e,t){"/"===e.charAt(0)&&(e=e.substring(1));const n=e.split("/");let r,o=t;for(let e=0;e<n.length;e++){if("*"===n[e]&&Array.isArray(o)){const t=[];r=n.slice(e+1).join("/");for(let e=0;e<o.length;e++){let n=P(r,o[e]);Array.isArray(n)?t.push(...n):t.push(n)}return t}if(!n[e]&&Array.isArray(o)){const t=new Array(o.length);r=n.slice(e+1).join("/");for(let e=0;e<o.length;e++)t[e]=P(r,o[e]);return t}n[e]in o&&(o=o[n[e]])}return o}function M(e,t,n){let r=[];if(!e||!e.length)return r;if(t<=0){const t=n>=0?[e[n]]:e;r=[...r,...t]}else for(let o=0;o<e.length;o++)e[o].children&&e[o].children.length&&(r=[...r,...M(e[o].children,t-1,n)]);return r}function q(e,t,n){if(e===t)return e=>e;if(e>t){const n=Math.max(0,Math.min(100,e-t));return e=>{let t=e;for(let e=0;e<n;++e)t=t.parent;return t}}if(t>e){const r=Math.max(0,Math.min(100,t-e));return e=>M(e.children,r-1,n)}return!1}const D=/^qDimensionInfo(?:\/(\d+))?/,N=/^\/?qMeasureInfo\/(\d+)/,A=/\/qAttrExprInfo\/(\d+)/,z=/\/qAttrDimInfo\/(\d+)/;function j(e){return(e.qColumnOrder&&e.qColumnOrder.length?e.qColumnOrder:e.qDimensionInfo.map(((e,t)=>t))).filter((t=>t<e.qDimensionInfo.length))}function F(e,t){let{cube:n}=t;if(!e)return-1;let r=e.origin&&e.origin()?e.origin().key():e.key(),o=!1,i=-1,a=-1,l=-1,s=-1,c=-1,u=-1,d=r;const f=n.qEffectiveInterColumnSortOrder,p=j(n);return D.test(d)&&(o=!0,i=+D.exec(d)[1],d=r.replace(D,"")),N.test(d)&&("K"===n.qMode?c=+N.exec(d)[1]:f&&-1!==f.indexOf(-1)?(c=+N.exec(d)[1],u=0):u=+N.exec(d)[1],d=d.replace(N,"")),d&&(z.exec(d)?l=+z.exec(d)[1]:A.exec(d)&&(a=+A.exec(d)[1])),s=o?"S"===n.qMode?p[i]:f?f.indexOf(i):i:f&&-1!==f.indexOf(-1)?f.indexOf(-1):n.qDimensionInfo.length-("K"===n.qMode?0:1),{fieldDepth:s+1,pseudoMeasureIndex:c,measureIdx:u,attrDimIdx:l,attrIdx:a}}function $(e,t){let n,r,o=q(e.fieldDepth,t.fieldDepth,t.pseudoMeasureIndex);return n=t.measureIdx>=0?e=>e.data.qValues[t.measureIdx]:e=>e.data,t.attrDimIdx>=0?r=e=>{var n;return null==e||null===(n=e.qAttrDims)||void 0===n?void 0:n.qValues[t.attrDimIdx]}:t.attrIdx>=0&&(r=e=>{var n;return null==e||null===(n=e.qAttrExps)||void 0===n?void 0:n.qValues[t.attrIdx]}),{nodeFn:o,attrFn:r,valueFn:n}}function B(e,t,n){let{key:r}=n;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:r,field:e.field.key()}),o}function W(e){let{propsArr:t,props:n,item:r,itemData:o,ret:i,sourceKey:a}=e;for(let e=0;e<t.length;e++){const l=n[t[e]],s=l.fields||[l];let c,u;l.fields&&(c=[],u=[]);for(let n=0;n<s.length;n++){const d=s[n];let f,p,h,m,g,v;if("primitive"===d.type?(h=d.value,v=String(d.value)):("function"==typeof d.value&&(f=e=>d.value(e,r)),"function"==typeof d.label&&(p=e=>d.label(e,r)),d.accessor?(m=d.accessor(r),Array.isArray(m)?(g=m.map(d.valueAccessor),d.attrAccessor&&(g=g.map(d.attrAccessor)),f&&(h=g.map(f),f=null),p&&(v=g.map(p),p=null),h=d.reduce?d.reduce(h):h,v=d.reduceLabel?d.reduceLabel(v,h):String(h)):(h=d.attrAccessor?d.attrAccessor(d.valueAccessor(m)):d.valueAccessor(m),v=h)):(h=o,v=o)),l.fields){const e=f?f(h):h;c.push(e),u.push(p&&null!=v?p(v):null!=v?v:String(e))}else{const n=f?f(h):h;i[t[e]]={value:n,label:p?p(v):null!=v?v:String(n)},d.field&&(i[t[e]].source={field:d.field.key(),key:a})}}c&&(i[t[e]]={value:"function"==typeof l.value?l.value(c,r):c,label:"function"==typeof l.label?l.label(u,r):u})}}const H=(e,t,n)=>{const r="K"===e.qMode?"/qStackedDataPages/*/qData":"/qTreeDataPages/*",o="K"===e.qMode?"qSubNodes":"qNodes",i=P(r,e);return i&&i[0]?(t.tree=v(i[0],n.children||(e=>e[o])),t.tree):null};const U=e=>{let{propsArr:t,props:n,cube:r,cache:o,itemDepthObject:i,f:a}=e;for(let e=0;e<t.length;e++){const o=n[t[e]],l=o.fields?o.fields:[o];for(let e=0;e<l.length;e++){const t=l[e];if(t.field!==a){const e=$(i,F(t.field,{cube:r}));t.accessor=e.nodeFn,t.valueAccessor=e.valueFn,t.attrAccessor=e.attrFn}}}};function V(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;const i=t.raw(),a=t.key(),l="S"===i.qMode?function(e){const t=e.raw().qDataPages.length?e.raw().qDataPages[0].qMatrix:[],r=function(e){const t=e.raw().qColumnOrder,n=e.fields();return t&&t.length===n.length?t:n.map(((e,t)=>t))}(e),o=e.fields(),i=e.fields().filter((e=>"dimension"===e.type())).map((e=>r.indexOf(o.indexOf(e)))),a=e.fields().filter((e=>"measure"===e.type())).map((e=>r.indexOf(o.indexOf(e)))),l={__root:{__id:"__root",qValues:[]}};for(let e=0;e<t.length;e++){const r=t[e];let o="__root",c=!1;for(let e=0;e<i.length;e++){var s;const t=r[i[e]],a="".concat(o,"__").concat(null!==(s=t.qElemNumber)&&void 0!==s?s:t.qElemNo);l[a]||(l[a]=n({__id:a,__parent:o,qValues:[]},t),c=!0),o=a}if(c)for(let e=0;e<a.length;e++){const t=r[a[e]];l[o].qValues.push(t)}}const c=Object.keys(l).map((e=>l[e]));return O().id((e=>e.__id)).parentId((e=>e.__parent))(c)}(t):H(i,r,e);if(!l)return null;const s=l.height,c=[];for(let a=0;a<=s;a++){let l=null;if(a>0)if("S"===i.qMode){let e=j(i)[a-1];l=r.fields[e]}else{let e=i.qEffectiveInterColumnSortOrder[a-1];a>i.qEffectiveInterColumnSortOrder.length&&(e=i.qDimensionInfo.length),l=r.fields[e]}const{props:s,main:u}=o.normalizeConfig(n(n({},e),{},{field:l?l.key():void 0}),t),d=Object.keys(s);c[a]={propsArr:d,props:s,main:u};const f=l?F(l,{cube:i}):{fieldDepth:0};U({propsArr:d,props:s,cube:i,cache:r,itemDepthObject:f,f:l})}const u=l.copy().descendants(),d=l.descendants();for(let e=0;e<d.length;e++){const t=c[d[e].depth].propsArr,n=c[d[e].depth].props,r=c[d[e].depth].main,o=u[e],i=o.data,l=B(r,i,{key:a});W({propsArr:t,props:n,item:o,itemData:i,ret:l,sourceKey:a}),d[e].data=l}return l}function G(e,t,n,r){const o=Array.isArray(e)?e:[e];let i=[];for(let a=0;a<o.length;a++)if(void 0!==o[a].field){const l=t.raw(),s=t.key();if(!H(l,n,e))continue;const c="object"==typeof o[a].field?o[a].field:t.field(o[a].field),{props:u,main:d}=r.normalizeConfig(o[a],t),f=Object.keys(u),p=F(c,{cube:l}),{nodeFn:h,attrFn:m,valueFn:g}=$({fieldDepth:0},p);U({propsArr:f,props:u,cube:l,cache:n,itemDepthObject:p,f:c});const v=!!o[a].trackBy,b=typeof o[a].trackBy,y={},x=[],S=h(n.tree),w=[];for(let e=0;e<S.length;e++){const t=S[e],n=m?m(g(t)):g(t);if(d.filter&&!d.filter(n))continue;const i=B(d,n,{key:s});W({propsArr:f,props:u,item:t,itemData:n,ret:i,sourceKey:s}),v&&r.track({cfg:o[a],itemData:n,obj:i,target:x,tracker:y,trackType:b}),w.push(i)}const E=v?r.collect(x,{main:d,propsArr:f,props:u}):w;i=[...i,...E]}return i}var K=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t;t=function(){return function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,c,u,d,f=e.length,p=e.search(/[0-9\-\+#]/),h=p>0?e.substring(0,p):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),v=f-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,f):"";if(n=(t="-"===(e=e.substring(p,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=l)&&(t=(+t).toFixed(l+1)),u=e[0].split(i),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],s=u[1]&&u[u.length-1].length){for(m="",v=(d=t[0]).length%s,f=d.length,y=0;y<f;y++)m+=d.charAt(y),!((y-v+1)%s)&&y<f-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},e.exports=t()}));function Z(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const J={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y","-3":"m","-6":"μ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"},X=/%\)?$/,Y=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,Q=/^\(oct\)/i,ee=/^\(dec\)/i,te=/^\(hex\)/i,ne=/^\(bin\)/i,re=/^\(rom\)/i,oe=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,ie=/#|0/g;function ae(e,t,n,r){return e=e.toString(t),n[1]===n[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(".")>10&&(e=e.slice(0,e.indexOf(".")+11)),e.replace(".",r||".")}function le(e,t,n){let r;return Y.test(t)?e=ae(e,Number(/\d{2}/.exec(t)[0]),t,n):Q.test(t)?e=ae(e,8,t,n):ee.test(t)?e=ae(e,10,t,n):te.test(t)?e=ae(e,16,t,n):ne.test(t)?e=ae(e,2,t,n):re.test(t)&&(r="",e<0&&(r="-",e=-e),e=0===(e=Math.floor(e))?"0":e<=5e5?r+(e=function(e,t){let n,r="",o=Number(String(e).slice(-3)),i=(e-o)/1e3,a=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),l=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();for(;o>0;)for(n=0;n<a.length;n++)if(a[n]<=o){r+=l[n],o-=a[n];break}for(n=0;n<i;n++)r="M".concat(r);return t[1]!==t[1].toUpperCase()&&(r=r.toLowerCase()),r}(e,t)):t+r+e.toExponential(0)),e}function se(e,t,n){const r=Z(e);return n?r:new RegExp(r||"",t)}function ce(e,t,n,r){let o,i,a,l,s,c,u,d,f,p=e.pattern;r&&(e.abbreviate=!0),f=function(e,t){return t&&(t=Z(t)),e&&(e=Z(e)),new RegExp("(?:[#0]+".concat(e,")?[#0]+(?:").concat(t,"[#0]+)?"))}(t,n),a=p.match(f),a=a?a[0]:"",l=a?p.substr(0,p.indexOf(a)):p,s=a?p.substring(p.indexOf(a)+a.length):"",a||(a=p?"#":"##########"),t&&t===n&&(o=a.split(n),i=o.pop(),a=o.join("")+n+i,t=""),c=t,t=/,/.test(n)?"¤":",",c&&(a=a.replace(se(c,"g"),t)),u=n,n=".",u&&(a=a.replace(se(u,"g"),n)),d=a.match(/#/g),d=d?d.length:0;const h=p.split(u);let m;h[1]&&(m=h[1].match(ie)),e.prefix=l||"",e.postfix=s||"",e.pattern=p,e.maxPrecision=m?m.length:2,e.percentage=X.test(p),e.numericPattern=a||"",e.numericRegex=new RegExp("".concat(se(t,null,!0),"|").concat(se(n,null,!0)),"g"),e.groupTemp=c,e.decTemp=u,e.t=t,e.d=n,e.temp=d}class ue{constructor(e,t,n,r,o){this.localeInfo=e,this.pattern=t,this.thousandDelimiter=n||",",this.decimalDelimiter=r||".",this.type=o||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return J;const n={};return e.qNumericalAbbreviation.split(t).forEach((e=>{let t=e.split(":");2===t.length&&(n[t[0]]=t[1])})),n}(e,this.patternSeparator),this.prepare()}clone(){const e=new ue(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return e.subtype=this.subtype,e}format(e,t,n,r){return this.prepare(t,n,r),this.formatValue(e)}prepare(e,t,n){let r;if(void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===n&&(n=this.decimalDelimiter),!e)return void(this._prepared={pattern:!1});this._prepared={positive:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},negative:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},zero:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""}},r=this._prepared,e=e.split(this.patternSeparator),r.positive.pattern=e[0],r.negative.pattern=e[1],r.zero.pattern=e[2],oe.test(e[0])&&(r.positive.isFunctional=!0),e[1]?oe.test(e[1])&&(r.negative.isFunctional=!0):r.negative=!1,e[2]?oe.test(e[2])&&(r.zero.isFunctional=!0):r.zero=!1;const o="U"===this.type;r.positive.isFunctional||ce(r.positive,t,n,o),r.negative&&!r.negative.isFunctional&&ce(r.negative,t,n,o),r.zero&&!r.zero.isFunctional&&ce(r.zero,t,n,o)}formatValue(e){let t,n,r,o,i,a,l,s,c,u=this._prepared,d="",f="",p=e;if(isNaN(e))return"".concat(p);if(e=+e,!1===u.pattern)return e.toString();if(0===e&&u.zero)return u=u.zero,u.pattern;if(e<0&&u.negative?(u=u.negative,e=-e):u=u.positive,i=u.d,a=u.t,u.isFunctional)e=le(e,u.pattern,i);else{if(u.percentage&&(e*=100),u.abbreviate){const t=Object.keys(this.abbreviations).map((e=>parseInt(e,10))).sort(((e,t)=>e-t));let r,o,i=t[0];for(l=0,n=Number(Number(e).toExponential().split("e")[1]);i<=n&&l<t.length;)l++,i=t[l];l>0&&(r=t[l-1]),r&&n>0&&r>0?o=r:(n<0&&r<0||!r)&&(i<0&&i-n<=u.maxPrecision?o=i:r<=n&&!(i>0&&-n<=u.maxPrecision)&&(o=r)),o&&(d=this.abbreviations[o],e/=10**o)}if(r=Math.abs(e),t=u.temp,s=u.numericPattern,c=s.split(i)[1],"I"===this.type&&(e=Math.round(e)),o=e,c||"#"!==s.slice(-1)[0])if(r>=1e15||r>0&&r<=1e-14)e=r?r.toExponential(15).replace(/\.?0+(?=e)/,""):"0";else{const t=Number((e+1e-15*(e<0?-1:1)).toFixed(Math.min(20,c?c.length:0)).split(".")[0]);let n=s.split(i)[0];if(n+=i,e=K(n,t)||"0",c){const t=Math.max(0,Math.min(14,c.length)),n=c.replace(/#+$/,"").length;let o=("I"===this.type?0:r%1+1e-15).toFixed(t).slice(2).replace(/0+$/,"");for(l=o.length;l<n;l++)o+="0";o&&(e+=i+o)}else 0===t&&(o=0)}else if(r>=10**t||r<1||r<1e-4)0===e?e="0":r<1e-4||r>=1e20?(e=(e=o.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),f=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",i));else{for(s+=i,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(r)/Math.log(10)))),l=0;l<t;l++)s+="#";e=K(s,e)}e=e.replace(u.numericRegex,(e=>e===a?u.groupTemp:e===i?u.decTemp:"")),o<0&&!/^-/.test(e)&&(e="-".concat(e))}return u.prefix+e+f+d+u.postfix}static getStaticFormatter(){return{prepare(){},formatValue:e=>"".concat(e)}}}function de(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:n=5e3,multipleArguments:r=!1,toKey:o=(e=>e)}=t;let i,a,l=Object.create(null),s=Object.create(null),c=0,u=0;return i=r?function(){return a=o(...arguments),i.has(a)?i.get(a):i.set(a,e(...arguments))}:t=>(a=o(t),i.has(a)?i.get(a):i.set(a,e(t))),i.set=(e,t)=>(c>=n&&(delete l[s[u]],delete s[u],c--,u++),l[e]=t,s[c]=e,c++,t),i.get=e=>l[e],i.has=e=>e in l,i.clear=()=>{l=Object.create(null),s=Object.create(null),c=0,u=0},i.size=()=>c,i}function fe(e,t,n,r,o){const i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new ue(...t)}(o,e,t,n,r),a=de(i.formatValue.bind(i),{toKey:e=>isNaN(e)?e:+e});function l(e){return a(e)}return l.format=function(e,t,n,r){return a.clear(),i.format(t,e,n,r)},l.pattern=function(e){return e&&(a.clear(),i.pattern=e,i.prepare()),i.pattern},l}const pe={DATE:"D",TIME:"T",DATE_TIME:"TS",INTERVAL:"IV"},he=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],me=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ge=["January","February","March","April","May","June","July","August","September","October","November","December"],ve=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function be(e,t){for(let n=e.length;n<t;n++)e="0".concat(e);return e}function ye(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}function xe(e,t){let n,r=function(e){const t=e,n=24*ye(t),r=60*ye(n),o=60*ye(r),i=1e3*ye(o);return{d:Math.floor(t),h:Math.floor(n),m:Math.floor(r),s:Math.floor(o),f:Math.round(i)}}(e),o=r.d,i=r.h,a=r.m,l=r.s,s=r.f,c=0;/w+|t+/gi.test(t)&&(n=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(n.getTime())&&(n=null)),/D+/gi.test(t)||(i+=24*o),/h+/gi.test(t)||(a+=60*i),/m+/gi.test(t)||(l+=60*a),/w+/gi.test(t)&&(c=n?n.getDay()-1:0,c<0&&(c=6));let u="";return n&&(u=n.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:c,date:o,h:i,m:a,s:l,f:s,t:u}}class Se{constructor(e,t,n){const r=e||{};r.qCalendarStrings||(r.qCalendarStrings={qLongDayNames:he,qDayNames:me,qLongMonthNames:ge,qMonthNames:ve}),this.localeInfo=r,this.locale_days=r.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=r.qCalendarStrings.qDayNames.slice(),this.locale_months=r.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=r.qCalendarStrings.qMonthNames.slice(),t||(t={[pe.TIME]:r.qTimeFmt||"hh:mm:ss",[pe.DATE]:r.qDateFmt||"YYYY-MM-DD",[pe.DATE_TIME]:r.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[n]),this.pattern=t}clone(){const e=new Se(this.localeInfo,this.pattern);return e.subtype=this.subtype,e}format(e,t){t||(t=this.pattern?this.pattern:"YYYY-MM-DD hh:mm:ss"),t=t.replace(/\[.+]|\[|]/g,"");const n=/t+/gi.test(t);let r;e instanceof Date?r=function(e,t){let n=e.getUTCHours(),r=e.getUTCDay()-1;return t&&(n%=12,n||(n=12)),r<0&&(r=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:r,date:e.getUTCDate(),h:n,m:e.getUTCMinutes(),s:e.getUTCSeconds(),f:e.getUTCMilliseconds(),t:e.getUTCHours()>=12?"pm":"am"}}(e,n):(e<0&&(e=-e,t="-".concat(t)),r=xe(e,t));const o=function(e,t){return{"Y+|y+":{Y:"".concat(Number("".concat(t.year).slice(-2))),YY:be("".concat(t.year).slice(-2),2),YYY:be("".concat(t.year).slice(-3),3),def:e=>be("".concat(t.year),e.length)},"M+":{M:t.month+1,MM:be("".concat(t.month+1),2),MMM:e.locale_months_abbr[t.month],def:e.locale_months[t.month]},"W+|w+":{W:t.day,WW:be("".concat(t.day),2),WWW:e.locale_days_abbr[t.day],def:e.locale_days[t.day]},"D+|d+":{D:t.date,def:e=>be("".concat(t.date),e.length)},"h+|H+":{h:t.h,def:e=>be("".concat(t.h),e.length)},"m+":{m:t.m,def:e=>be("".concat(t.m),e.length)},"s+|S+":{s:t.s,def:e=>be("".concat(t.s),e.length)},"f+|F+":{def(e){let n="".concat(t.f),r=e.length-n.length;if(r>0)for(let e=0;e<r;e++)n+="0";else r<0&&(n=n.slice(0,e.length));return n}},"t{1,2}|T{1,2}":{def(e){let n=t.t;return e[0].toUpperCase()===e[0]&&(n=n.toUpperCase()),n=n.slice(0,e.length),n}}}}(this,r),i=[];for(const e in o)Object.prototype.hasOwnProperty.call(o,e)&&i.push(e);const a=new RegExp(i.join("|"),"g");return t.replace(a,(e=>{let t,n,r;for(n in o)if(Object.prototype.hasOwnProperty.call(o,n)&&(t=new RegExp(n),t.test(e)))break;if(!t)return"";for(const t in o[n])if(t===e||t.toLowerCase()===e){r=o[n][t],void 0===r&&(r=o[n][t.toLowerCase()]);break}return void 0===r&&(r=o[n].def),"function"==typeof r&&(r=r(e)),r}))}}function we(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Se(...t)}const Ee=864e5;function ke(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",n=we(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),r=de(n.format.bind(n),{toKey:e=>"object"==typeof e&&"function"==typeof e.getTime?e.getTime():e});function o(e){return t!==pe.INTERVAL?function(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(Ee*(e-Math.floor(e)))))}(e):e}function i(e){return e=o(e),r(e)}return i.format=function(e,t){return r.clear(),t=o(t),n.format(t,e)},i.locale=function(o){return n=we(o,e,t),r=de(n.format.bind(n),{toKey:e=>"object"==typeof e?e.getTime():e}),this},i.qtype=function(e){return void 0!==e&&(t=e,r.clear()),t},i}function Ce(){let e,{meta:t,id:n,key:r,localeInfo:o,fieldExtractor:i,value:a,type:l,sourceField:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const c=a||("dimension"===l?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),u="dimension"===l?"first":"avg",d=function(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return ke(e.qNumFormat.qFmt,e.qNumFormat.qType,t);let n="#",r=t&&void 0!==t.qThousandSep?t.qThousandSep:",",o=t&&void 0!==t.qDecimalSep?t.qDecimalSep:".",i="U",a=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(n=e.qNumFormat.qFmt||n,r=e.qNumFormat.qThou||r,o=e.qNumFormat.qDec||o,i=e.qNumFormat.qType||i,a=a&&-1===["M"].indexOf(e.qNumFormat.qType)):a=!0,(a||"U"===i)&&(n="#".concat(o,"##"),i="U"),fe(n,r,o,i,t)}(t,o),f={id:()=>n,key:()=>r,raw:()=>t,title:()=>t.qFallbackTitle||t.label,type:()=>l,origin:()=>s,items:()=>(e||(e=i(f)),e),min:()=>t.qMin,max:()=>t.qMax,value:c,label:e=>(null==e?void 0:e.qText)||"",reduce:u,reduceLabel:"dimension"===l?"first":(e,t)=>d(t),formatter:()=>d,tags:()=>t.qTags};return f}function _e(e,t,n,r,o){return(t[e]||[]).map(((t,i)=>{const a="".concat(r?"".concat(r,"/"):"").concat(e,"/").concat(i),l={instance:Ce(d({id:"".concat(n?"".concat(n,"/"):"").concat(a),key:a,meta:t},o))};return l.attrDims=_e("qAttrDimInfo",t,n,a,d({},o,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),l.attrExps=_e("qAttrExprInfo",t,n,a,d({},o,{value:e=>null==e?void 0:e.qNum,type:"measure"})),l.measures=_e("qMeasureInfo",t,n,a,d({},o,{value:e=>null==e?void 0:e.qValue,type:"measure"})),l}))}function Re(){let{key:e,data:t,config:r={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},i=t;if(!i)throw new Error('Missing "data" input');if(!i.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const a=Re.util,l={cache:o,cube:i,localeInfo:r.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:r.virtualFields},s={key:()=>e,raw:()=>i,field:e=>function(e,t){let{cache:n}=t;if("number"==typeof e)return n.fields[e];const r=n.allFields;if("function"==typeof e){for(let t=0;t<r.length;t++)if(e(r[t]))return r[t];return!1}if("string"==typeof e){for(let t=0;t<r.length;t++)if(r[t].key()===e||r[t].title()===e)return r[t]}else if(e&&-1!==r.indexOf(e))return e;throw Error("Field not found: ".concat(e))}(e,l),fields:()=>o.fields.slice(),extract:e=>l.extractor(e,s,o,a),hierarchy:e=>l.hierarchy(e,s,o,a),_cache:()=>o};"K"===i.qMode||"T"===i.qMode||!i.qMode&&i.qNodesOnDim?(l.extractor=G,l.hierarchy=V,l.pages="K"===i.qMode?i.qStackedDataPages:i.qTreeDataPages):"S"===i.qMode?(l.extractor=m,l.pages=i.qDataPages,l.hierarchy=V):l.extractor=()=>[],l.fieldExtractor=e=>l.extractor({field:e},s,o,a);const c="S"===i.qMode?e=>e.qElemNumber:void 0,u="S"===i.qMode?e=>e.qNum:void 0;o.wrappedFields.push(..._e("qDimensionInfo",i,e,"",d({},l,{value:c,type:"dimension"}))),o.wrappedFields.push(..._e("qMeasureInfo",i,e,"",d({},l,{value:u,type:"measure"}))),o.fields=o.wrappedFields.map((e=>e.instance));const f=e=>{e.forEach((e=>{o.allFields.push(e.instance),f(e.measures),f(e.attrDims),f(e.attrExps)}))};return f(o.wrappedFields),(r.virtualFields||[]).forEach((t=>{const r=s.field(t.from),i=Ce(n({meta:r.raw(),id:"".concat(e,"/").concat(t.key),sourceField:r,fieldExtractor:e=>l.extractor({field:e},s,o,a),key:t.key,type:r.type(),localeInfo:l.localeInfo,value:r.value},t.override||{}));o.virtualFields.push(i)})),o.allFields.push(...o.virtualFields),s}const Le=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],Oe=/\/qDimensionInfo(?:\/(\d+))?/,Ie=/\/qMeasureInfo\/(\d+)/,Te=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,Pe=/\/qAttrExprInfo\/(\d+)/,Me=/\/?qHyperCube/,qe=/\/?qTreeData/,De=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),Ne=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function Ae(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=t.byCells,o=t.primarySource,i=[],a={},l=e.isActive();let s=!1;return e.brushes().forEach((e=>{const t=function(e,t){let n=e,r=-1,o=-1,i="",a=e=>e;Me.test(e)?(i="".concat(n.substr(0,n.indexOf("qHyperCube")+10)),a=De):qe.test(e)&&(i="".concat(n.substr(0,n.indexOf("qTreeData")+9)),a=Ne);let l=!0;if(Oe.test(e)&&(r=+Oe.exec(e)[1]),Ie.test(e)&&(o=+Ie.exec(e)[1]),Te.test(e)){o=-1,r=0;const e=+Te.exec(n)[2];isNaN(e)||(r=e,n=n.replace(/\/\d+$/,"")),l=!1}if(Pe.test(e)){const e=o;if(t){o=0;const a=P(i,t);o+=(a.qMeasureInfo||[]).length,r>-1?(o=a.qDimensionInfo.slice(0,r).reduce(((e,t)=>e+t.qAttrExprInfo.length),o),r=-1):(o=a.qDimensionInfo.reduce(((e,t)=>e+t.qAttrExprInfo.length),o),o=a.qMeasureInfo.slice(0,e).reduce(((e,t)=>e+t.qAttrExprInfo.length),o)),o+=+Pe.exec(n)[1]}else r>-1?(r=-1,o=+Pe.exec(n)[1]):o+=+Pe.exec(n)[1]+1}return Le.forEach((e=>{let[t,r]=e;n=n.replace(t,r)})),l&&(n=a(n)),n&&"/"!==n[0]&&(n="/".concat(n)),{measureIdx:o,dimensionIdx:r,path:n}}(e.id,n);if("range"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(s=!0,a.multiRangeSelectTreeDataValues||(a.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),n.forEach((e=>a.multiRangeSelectTreeDataValues.ranges.push({qMeasureIx:t.measureIdx,qDimensionIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}else{if("range"===e.type&&t.measureIdx>-1){const n=e.brush.ranges();n.length&&(s=!0,a.rangeSelectHyperCubeValues||(a.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),n.forEach((e=>a.rangeSelectHyperCubeValues.ranges.push({qMeasureIx:t.measureIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}if("range"===e.type&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(s=!0,a.selectHyperCubeContinuousRange||(a.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),n.forEach((e=>a.selectHyperCubeContinuousRange.ranges.push({qDimIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!1}}))))}if("value"===e.type&&t.dimensionIdx>-1)if(r)if(n&&n.qHyperCube&&("P"===n.qHyperCube.qMode||"T"===n.qHyperCube.qMode||"K"===n.qHyperCube.qMode)){const r=n.qHyperCube,i=r.qNoOfLeftDims,l=r.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(a.selectPivotCells||(a.selectPivotCells={path:t.path,cells:[]}),e.id===o||!o){const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));(0===i||l>=i)&&i>-1?n.forEach((e=>{a.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:l-i})})):n.forEach((e=>{a.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})})),s=!!a.selectPivotCells.cells.length}}else a.selectHyperCubeCells||(a.selectHyperCubeCells={path:t.path,cols:[]}),a.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==o&&(o||a.selectHyperCubeCells.values)||(a.selectHyperCubeCells.values=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e))),s=!!a.selectHyperCubeCells.values.length);else{const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));s=!!n.length,i.push({params:[t.path,t.dimensionIdx,n,!1],method:"selectHyperCubeValues"})}}})),!s&&l?[{method:"resetMadeSelections",params:[]}]:(a.rangeSelectHyperCubeValues&&i.push({method:"rangeSelectHyperCubeValues",params:[a.rangeSelectHyperCubeValues.path,a.rangeSelectHyperCubeValues.ranges,[],null===(c=t.orMode)||void 0===c||c]}),a.selectHyperCubeContinuousRange&&i.push({method:"selectHyperCubeContinuousRange",params:[a.selectHyperCubeContinuousRange.path,a.selectHyperCubeContinuousRange.ranges]}),a.selectHyperCubeCells&&i.push({method:"selectHyperCubeCells",params:[a.selectHyperCubeCells.path,a.selectHyperCubeCells.values,a.selectHyperCubeCells.cols]}),a.selectPivotCells&&i.push({method:"selectPivotCells",params:[a.selectPivotCells.path,a.selectPivotCells.cells]}),a.multiRangeSelectTreeDataValues&&i.push({method:"multiRangeSelectTreeDataValues",params:[a.multiRangeSelectTreeDataValues.path,a.multiRangeSelectTreeDataValues.ranges]}),i);var c}function ze(e){Re.util=e.data("matrix").util,e.data("q",Re),e.formatter("q-number",fe),e.formatter("q-time",ke)}return ze.qBrushHelper=Ae,ze.selections=Ae,ze}());Ib(Hy);const Uy=/,(?![^(]*\))/,Vy=/\s(?![^(]*\))/,Gy=/^[0-9]+[a-zA-Z%]+?$/,Ky=["none","inset","initial","inherit"],Zy=e=>{if(!e)return;const t=e.split(Vy).filter((e=>!Ky.includes(e.toLowerCase()))).at(-1),n=!t||(e=>"0"===e||Gy.test(e))(t)||Ky.includes(t.toLowerCase())?void 0:t;return n},Jy=e=>e?e.split(Uy).map((e=>e.trim())):[];function Xy(e,t,n,r){return n&&r?n.getStyle("object.".concat(r),e,t):n?n.getStyle("",e,t):void 0}function Yy(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e):void 0:Xy(t,n,r,o)}const Qy={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},ex={"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 tx(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 nx(e,t){const n=null==e?void 0:e.bgImage;if(n){let r="";if("media"===n.mode||"media"===e.useImage){const e=null==n?void 0:n.mediaUrl,{qUrl:o}=(null==e?void 0:e.qStaticContentUrl)||{};r=o?decodeURIComponent(o):void 0,r=tx(t,r)}"expression"===n.mode&&(r=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const o=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=ex[e.bgImage.position]),n}(e),i=function(e){var t;let n=Qy.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=Qy[r]),n}(e);return r?{url:r,pos:o,size:i}:void 0}}function rx(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):Yy(null==r?void 0:r.color,"","backgroundColor",t,n)}function ox(e,t,n){var r,o;const i=Xy("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&Ky.includes(e.toLowerCase()))return e.toLowerCase();const r=Jy(e);if(1!==r.length)return e;let o=n;if(!o){const n=Jy(t);if(1!==n.length)return e;o=Zy(n[0])}if(!o)return e;const i=Zy(r[0]);return i?e.replace(i,o):"".concat(e," ").concat(o)})((null==e||null===(r=e.shadow)||void 0===r?void 0:r.boxShadow)||i,i,Yy(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function ix(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"),fontSize:i.fontSize||n.getStyle("object.".concat(r),"title.".concat(t),"fontSize"),color:i.color&&"none"!==i.color.color?n.getColorPickerColor(i.color):n.getStyle("object.".concat(r),"title.".concat(t),"color"),backgroundColor:i.backgroundColor||n.getStyle("object.".concat(r),"title.".concat(t),"backgroundColor"),fontWeight:a.includes("bold")?"bold":"normal",fontStyle:a.includes("italic")?"italic":"normal",textDecoration:a.includes("underline")?"underline":"initial"}}const ax={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},lx=["theme","selections"];function sx(e){var t,n,r,o,i,a,l,s;let{app:c,themeApi:u,theme:d,components:p=[],checkboxes:h=!1}=e;const m=function(){const e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const n=null==t?void 0:t.key;lx.includes(n)&&(e[n]=t)})),e}(p),g=(e,t)=>u.getStyle("object.listBox",e,t),v=e=>(null==e?void 0:e.index)>0||null!=e&&e.color?u.getColorPickerColor(e):void 0,b=function(e){var t,n,r,o,i;let{getColorPickerColor:a,theme:l,getListboxStyle:s,overrides:c,checkboxes:u}=e;const d=null===(t=c.theme)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.fontColor,p=a(d)||s("content","color")||(null===(n=l.palette)||void 0===n?void 0:n.text.primary),h=!u&&(null===(r=null===(o=c.theme)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.useContrastColor)||void 0===r||r),m=(null===(i=c.selections)||void 0===i?void 0:i.colors)||{},g=e=>{var t,n;const r="selected"===e?"main":e,o="".concat(e,"Contrast"),i=a(m[e])||s("","dataColors.".concat(e))||"possible"===e&&s("","backgroundColor")||(null===(t=l.palette)||void 0===t||null===(t=t.selected)||void 0===t?void 0:t[r])||ax[e];return{[e]:i,[o]:h?Rb(i,p):p||(null===(n=l.palette)||void 0===n?void 0:n.selected["".concat(o,"Text}")])}};return f(f(f(f(f({},g("selected")),g("alternative")),g("excluded")),g("selectedExcluded")),g("possible"))}({getColorPickerColor:v,theme:d,getListboxStyle:g,overrides:m,checkboxes:h}),y=m.theme||{},x=v(null===(t=y.header)||void 0===t?void 0:t.fontColor)||g("title.main","color"),S=function(e){let t,{themeApi:n,themeOverrides:r}=e;const o=null==r?void 0:r.background;return o?(t=null!=o&&o.useExpression?rx({bgColor:o},n,"listBox"):n.getColorPickerColor(null==o?void 0:o.color),t):t}({themeApi:u,themeOverrides:y}),w=null!==(n=y.background)&&void 0!==n&&n.image?nx({bgImage:y.background.image},c):void 0,E=S||g("","backgroundColor")||d.palette.background.default,k=function(e,t){const n=Cb(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.getRGBA()}(E,g),C=function(e){return Rb("#fff",e("content","color"))}(g),_=(null===(r=y.header)||void 0===r?void 0:r.fontStyle)||{},R=(null===(o=y.content)||void 0===o?void 0:o.fontStyle)||{},L=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:E,backgroundImage:null==w||!w.url||null!=w&&w.url.startsWith("url(")?void 0:"url('".concat(w.url,"')"),backgroundRepeat:"no-repeat",backgroundSize:null==w?void 0:w.size,backgroundPosition:null==w?void 0:w.pos},header:{color:x,fontSize:(null===(i=y.header)||void 0===i?void 0:i.fontSize)||g("title.main","fontSize"),fontFamily:(null===(a=y.header)||void 0===a?void 0:a.fontFamily)||g("title.main","fontFamily"),fontWeight:L(_.bold,"bold","normal")||g("title.main","fontWeight")||"bold",textDecoration:_.underline?"underline":"initial",fontStyle:L(_.italic,"italic","normal")||g("title.main","fontStyle")||"initial"},content:{backgroundColor:h?void 0:b.possible,color:b.possibleContrast||g("content","color"),fontSize:(null===(l=y.content)||void 0===l?void 0:l.fontSize)||g("content","fontSize"),fontFamily:(null===(s=y.content)||void 0===s?void 0:s.fontFamily)||g("content","fontFamily"),fontWeight:L(R.bold,"bold","normal")||g("content","fontWeight")||"normal",textDecoration:R.underline?"underline":"initial",fontStyle:L(R.italic,"italic","normal")||g("content","fontStyle")||"initial"},search:{color:C,borderColor:d.palette.divider,highlightBorderColor:d.palette.custom.focusBorder,backgroundColor:k,backdropFilter:"blur(8px)"},selections:b}}function cx(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,components:u,checkboxes:d,selectDisabled:f=(()=>!1),sortCriteria:p=[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],direction:h="ltr"}=e;const m=Boolean(null==l?void 0:l.qLibraryId),g=o&&Boolean(t.current),[v,b]=x.useState(0),y=_l(),w=x.useRef(),[E]=Fh({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:s,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:p,qFieldDefs:m?void 0:[l]},qLibraryId:m?l.qLibraryId:void 0}},a,l,s),k=x.useCallback((()=>{E.lock("/qListObjectDef")}),[E]),C=x.useCallback((()=>{E.unlock("/qListObjectDef")}),[E]),{translator:_,themeApi:R,keyboardNavigation:L}=x.useContext(Vs),O=x.useRef(),I=x.useRef(),[T]=sb(a,E,I),[P]=Vh(E),[M]=x.useState((()=>cb({selectDisabled:f}))),q=cg({containerRef:I,enabled:L}),{checkboxes:D=d}=P||{},N=sx({themeApi:R,theme:y,components:u,checkboxes:D});if(x.useEffect((()=>{T&&g&&(T.isModal(E)||T.goModal("/qListObjectDef"))}),[T,g]),!E||!P||!_)return null;const A=!0===P.qListObject.qDimensionInfo.qLocked,z=(e,t)=>{const n="escapeKeyDown"!==t;T.noModal(n),i()},j=Ov({layout:P,model:E,translator:_,selectionState:M,selections:T}),F=db(P);return S.createElement(Qp,{className:"listbox-container",open:g,onClose:z,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?z():void 0,direction:h},S.createElement(Yf,{container:!0,direction:"column",gap:0,ref:I},S.createElement(Yf,{item:!0,container:!0,style:{direction:h,padding:y.spacing(1)}},S.createElement(Yf,{item:!0},A?S.createElement(mc,{onClick:C,disabled:!A,size:"large"},S.createElement(Yh,{title:_.get("Listbox.Unlock")})):S.createElement(mc,{onClick:k,disabled:!F,size:"large"},S.createElement(em,{title:_.get("Listbox.Lock")}))),S.createElement(Yf,{item:!0,xs:!0}),S.createElement(Yf,{item:!0},S.createElement(Xv,{layout:P,more:{enabled:!A,actions:j,alignTo:O,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:T,onConfirm:z,onCancel:()=>z(0,"escapeKeyDown")}}))),S.createElement(Yf,{item:!0,xs:!0},S.createElement("div",{ref:O}),S.createElement(Yf,{item:!0},S.createElement(rb,{ref:w,popoverOpen:g,styles:N,visible:!0,model:E,listCount:v,selections:T,selectionState:M,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:q.focusSelection},autoFocus:null==c||c,direction:h})),S.createElement(kv,{model:E,app:a,layout:P,selections:T,selectionState:M,direction:h,onSetListCount:e=>b(e),onCtrlF:()=>{w.current.focus()},styles:N,keyboard:q}))))}function ux(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:i=null,onClose:a=(()=>{})}=e;const{translator:l}=x.useContext(Vs),s=i||x.useRef(),c=_l(),[u,d]=x.useState(!1),f=e=>{e.currentTarget.contains(e.target)&&d(!u)},p=()=>{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,w=0===y&&0===h.qTotal;let E="";h.qTotal===y&&h.qTotal>1?E=l.get("CurrentSelections.All"):y>1&&h.qTotal?E=l.get("CurrentSelections.Of",[y,h.qTotal]):h.qSelectedFieldSelectionInfo&&(E=h.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==t.states[r]&&(E="".concat(t.states[r],": ").concat(E));const k=[{color:c.palette.selected.main,ratio:g},{color:c.palette.selected.alternative,ratio:v},{color:c.palette.selected.excluded,ratio:b}];k.forEach(((e,t)=>{e.offset=t?k[t-1].offset+k[t-1].ratio:0}));let C=null,_=null,R=null,L=null;return i||(C=S.createElement(Yf,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:h.qLocked?"0.3":""}},S.createElement(Sc,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.label),S.createElement(Sc,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},E)),h.qLocked?_=S.createElement(Yf,{item:!0},S.createElement(mc,{size:"large"},S.createElement(Yh,null))):h.qOneAndOnlyOne||(_=S.createElement(Yf,{item:!0},S.createElement(mc,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(h.qField,t.states[r])},size:"large"},S.createElement(Xh,null)))),R=S.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===w&&k.map((e=>S.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:"".concat(100*e.ratio,"%"),left:"".concat(100*e.offset,"%")}})))),L=S.createElement(Yf,{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,_,R,u&&S.createElement(cx,{alignTo:s,show:u,close:p,app:n.model,fieldName:h.qField,stateName:t.states[r]}))),i?S.createElement(cx,{alignTo:s,show:!0,close:p,app:n.model,fieldName:h.qField,stateName:t.states[r]}):L}var dx=e=>Jh((e=>f(f({},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 fx={item:"".concat("MultiState","-item")},px=$l(Yf)((e=>{let{theme:t}=e;return{["&.".concat(fx.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function hx(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[i,a]=x.useState(!!r),[l,s]=x.useState(-1),[c,u]=x.useState(r?r.current:null),d=r||x.useRef(),{translator:f}=x.useContext(Vs),p=f.get("Selection.ClearAllStates"),h=()=>{s(-1),o()};let m=null;r||(m=S.createElement(S.Fragment,null,S.createElement(Yf,{item:!0,xs:!0,zeroMinWidth:!0},S.createElement(Md,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},S.createElement(Sc,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.label))),S.createElement(Yf,{item:!0},S.createElement("div",{style:{width:"12px"}})),S.createElement(Yf,{item:!0},S.createElement(mc,{size:"large"},S.createElement(dx,null)))));const g=S.createElement(bp,{dense:!0},S.createElement(Ip,{title:p,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},S.createElement(zs,{variant:"contained",fullWidth:!0},p)),t.states.map(((e,r)=>S.createElement(Ip,{key:r,title:t.label,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),s(t)})(e,r)},S.createElement(Nd,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},S.createElement(ux,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),v=S.createElement(Qp,{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:S.createElement(px,{container:!0,gap:0,className:fx.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),d.current=e.currentTarget,a(!i))}},m,i&&v,l>-1&&S.createElement(cx,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}));return r&&l>-1?S.createElement(cx,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):b}const mx="More",gx={item:"".concat(mx,"-item"),badge:"".concat(mx,"-badge")},vx=$l(Yf)((e=>{let{theme:t}=e;return{["&.".concat(gx.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(gx.badge)]:{padding:t.spacing(0,1)}}}));function bx(e){let{items:t=[],api:n}=e;const r=_l(),[o,i]=x.useState(!1),[a,l]=x.useState(-1),[s,c]=x.useState(null),u=x.useRef(),d=()=>{l(-1)};let f=null;return a>-1&&(f=t[a].states.length>1?S.createElement(hx,{field:t[a],api:n,moreAlignTo:u,onClose:d}):S.createElement(ux,{field:t[a],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:d})),S.createElement(vx,{container:!0,gap:0,className:gx.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,i(!o))}},S.createElement(Yf,{item:!0},S.createElement(Nd,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},S.createElement(Sc,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),S.createElement(Yf,{item:!0},S.createElement(mc,{size:"large"},S.createElement(dx,null))),o&&S.createElement(Qp,{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"}}},S.createElement(bp,{dense:!0},t.map(((e,t)=>S.createElement(Ip,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),l(t)})(e,t)},S.createElement(Nd,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?S.createElement(hx,{field:e,api:n}):S.createElement(ux,{field:e,api:n}))))))),f)}const yx=120,xx=72;function Sx(e){let{api:t,app:n}=e;const r=_l(),[o]=Bh(n),[i]=Vh(o),[a,l]=x.useState({items:[],more:[]}),{modalObjectStore:s}=x.useContext(Vs).selectionStore,[c,u]=Kh(),[d,f]=x.useState(0);return x.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-xx,n=Math.floor(t/yx);f(n)}),[u]),x.useEffect((()=>{if(!(n&&o&&i&&d))return;const e=function(e){if(!e)return[];const t={};function n(e,n){e.qSelections.forEach((e=>{const r=e.qField;let o=t[r];var i;void 0===o&&(o={name:r,label:(null===(i=e.qDimensionReferences)||void 0===i||null===(i=i.find((e=>e.qLabel)))||void 0===i?void 0:i.qLabel)||e.qReadableName||r,states:[],selections:[]},t[r]=o),o.states.push(n),o.selections.push(e)}))}return e.qSelectionObject&&n(e.qSelectionObject,"$"),e.alternateStates&&e.alternateStates.forEach((e=>n(e.qSelectionObject,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{model:e}=s.get(n.id)||{};return"njsListbox"===(null==e?void 0:e.genericType)})()&&r.length+1===t.items.length){const e=t.items.filter((e=>!1===r.some((t=>e.name===t.name))))[0],{qField:n}=e.selections[0];e.selections=[{qField:n}];const o=t.items.indexOf(e);r.splice(o,0,e)}let o=[];return d<r.length&&(o=r.splice(d-r.length)),{items:r,more:o}}))}),[n,o,i,t.isInModal(),d]),S.createElement(Yf,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},a.items.map((e=>S.createElement(Yf,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(yx,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?S.createElement(hx,{field:e,api:t}):S.createElement(ux,{field:e,api:t})))),a.more.length>0&&S.createElement(Yf,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(xx,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},S.createElement(bx,{items:a.more,api:t})))}var wx=e=>Jh((e=>f(f({},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 Ex=e=>Jh((e=>f(f({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));const kx=(e,t,n)=>{const r=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}}))),o=(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::"),i=(n.qStateNames||[]).map((e=>e)).join("::");o!==i&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)};function Cx(e){let{api:t,app:n}=e;const{translator:r}=x.useContext(Vs),[o]=function(e){const[t]=Bh(e),[n]=Vh(t),[r]=Gh(e),[o,i]=x.useState(null);return x.useEffect((()=>{r&&t&&n&&kx(t,n,r)}),[r,t,n]),x.useEffect((()=>{if(!n)return;let e=!1,t=!1,r=!1;[n,...n.alternateStates||[]].forEach((n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,r=r||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),i({canGoBack:e,canGoForward:t,canClear:r})}),[n]),[o,t,n]}(n);return S.createElement(Yf,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},S.createElement(Yf,{item:!0},S.createElement(mc,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},S.createElement(wx,null))),S.createElement(Yf,{item:!0},S.createElement(mc,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},S.createElement(Ex,null))),S.createElement(Yf,{item:!0},S.createElement(mc,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},S.createElement(Av,null))))}const _x=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function Rx(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function Lx(){return _x.map(Rx).join("")}function Ox(e){let{app:t}=e;const n=_l(),[r]=ob(t);return r?S.createElement(Yf,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},S.createElement(Yf,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},S.createElement(Cx,{api:r,app:t})),S.createElement(Yf,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},S.createElement(Sx,{api:r,app:t}))):null}let Ix;Ix="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let Tx=null,Px=null;const Mx=Ix.clearTimeout,qx=Ix.setTimeout,Dx=Ix.cancelAnimationFrame||Ix.mozCancelAnimationFrame||Ix.webkitCancelAnimationFrame,Nx=Ix.requestAnimationFrame||Ix.mozRequestAnimationFrame||Ix.webkitRequestAnimationFrame;function Ax(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__&&Tx(this.__resizeRAF__),this.__resizeRAF__=Px((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=Ix.getComputedStyle(i);c&&"static"===c.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(s),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=s.createElement("div")).className="resize-triggers";const u=s.createElement("div");u.className="expand-trigger",u.appendChild(s.createElement("div"));const d=s.createElement("div");d.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",l,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(s)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==Dx||null==Nx?(Tx=Mx,Px=function(e){return qx(e,20)}):(Tx=function([e,t]){Dx(e),Mx(t)},Px=function(e){const t=Nx((function(){Mx(n),e()})),n=qx((function(){Dx(t),e()}),20);return[t,n]});class zx extends x.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),l=parseFloat(r.paddingBottom||"0"),s=this._parentNode.getBoundingClientRect(),c=s.height-a-l,u=s.width-o-i,d=this._parentNode.offsetHeight-a-l,f=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===f&&this.state.scaledWidth===u)||(this.setState({height:d,width:f,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=Ax(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:i=!1,nonce:a,onResize:l,style:s={},tagName:c="div",...u}=this.props,{height:d,scaledHeight:f,scaledWidth:p,width:h}=this.state,m={overflow:"visible"},g={};let v=!1;return r||(0===d&&(v=!0),m.height=0,g.height=d,g.scaledHeight=f),o||(0===h&&(v=!0),m.width=0,g.width=h,g.scaledWidth=p),i&&(v=!1),x.createElement(c,{ref:this._setRef,style:{...m,...s},...u},!v&&e(g))}}function jx(e){let{keyboard:t,hovering:n,updateKeyScroll:r,currentScrollIndex:o,isModal:i,constraints:a,selections:l}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,o=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const a=e.currentTarget.closest(".listbox-container"),s=i();switch(n){case ag.TAB:if(document.activeElement===a||!s&&!a.contains(document.activeElement))return;if(r){fg(a)||dg(a)||hg(e,t)}else{if(!(pg(a)||dg(a)||fg(a)))break}o();break;case ag.ENTER:case ag.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),o();break;case ag.ESCAPE:hg(e,t),l.isActive()&&l.cancel()}},handleOnMouseEnter:()=>{n.current=!0},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current||(()=>{const e=(null==a?void 0:a.select)||(null==a?void 0:a.active),t=i();return e||t})())return;const{keyCode:t,ctrlKey:l=!1,shiftKey:s=!1}=e;switch(t){case ag.ARROW_UP:r({up:1});break;case ag.ARROW_DOWN:r({down:1});break;case ag.PAGE_UP:r({up:o.stop-o.start});break;case ag.PAGE_DOWN:r({down:o.stop-o.start});break;case ag.HOME:r({scrollPosition:l&&s?"overflowStart":"start"});break;case ag.END:r({scrollPosition:l&&s?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const Fx=$l("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function $x(e){let{text:t}=e;const{translator:n}=x.useContext(Vs);return S.createElement(Fx,null,n.get(t))}const Bx={fontSize:"12px"},Wx=$l(Ls)((e=>{let{theme:t,isLoading:n}=e;return{position:"absolute",top:0,left:0,height:48,zIndex:2,background:t.palette.custom.disabledBackground,opacity:1,color:t.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:n?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:t.palette.custom.disabledContrastText},"& i":{padding:"".concat(xm,"px")}}})),Hx=$l(Yf,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((e=>{let{styles:t,isRtl:n}=e;return f(f({flexDirection:n?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},t.header),{},{"& *":{color:t.header.color}})})),Ux=$l(Sc)((e=>{let{styles:t}=e;return f(f({},t.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})}));function Vx(e){let{translator:t,toggleLock:n,keyboard:r,isLoading:o}=e;const i=t.get("SelectionToolbar.ClickToUnlock");return S.createElement(Wx,{title:i,tabIndex:r.enabled?0:-1,onClick:n,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:o},o?S.createElement(pf,{size:16,variant:"indeterminate",color:"primary"}):S.createElement(Yh,{disableRipple:!0,style:Bx}),!o&&S.createElement(Sc,{fontSize:"14px"},i))}var Gx=e=>Jh((e=>f(f({},e),{},{shapes:[{type:"path",attrs:{d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"}}]}))(e));var Kx=e=>Jh((e=>f(f({},e),{},{shapes:[{type:"path",attrs:{d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"}}]}))(e));var Zx=e=>Jh((e=>f(f({},e),{},{shapes:[{type:"path",attrs:{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"}}]}))(e));const Jx="H",Xx="C";var Yx={createDimensionIconData:e=>{let{dimInfo:t,app:n,selections:r,isPopover:o,active:i,keyboard:a}=e;switch(t.qGrouping){case Jx:return{icon:Kx,tooltip:"Listbox.DrillDown",onClick:void 0};case Xx:{const e=n&&i,l=()=>{o||r.confirm(),n.getDimension(t.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):console.log("engine api spec version doesn't have support for function stepCycle")})).catch((()=>null))};return{icon:e?Zx:Gx,tooltip:"Listbox.Cyclic",onClick:e?l:void 0,onKeyDown:e?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case ag.SPACE:case ag.ENTER:l();break;case ag.TAB:{if(!a.enabled)return;let n;n=e.shiftKey?a.focusSelection():dg(t)||fg(t),n||hg(e,a)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}}};const Qx=$l(zs)((()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0})));function eS(e){let{iconData:t,translator:n,iconStyle:r,disabled:o,keyboard:i}=e;if(!t)return;const{icon:a,tooltip:l,onClick:s,onKeyDown:c}=t,u=a,d=n.get(l);return s?S.createElement(Qx,{variant:"outlined",onClick:s,tabIndex:i.innerTabStops?0:-1,title:d,size:"large",disableRipple:!0,disabled:o,onKeyDown:c,className:"listbox-cyclic-button","data-testid":"listbox-cyclic-button"},S.createElement(u,{style:r})):S.createElement(u,{title:d,size:"large",style:f(f({},r),{},{padding:"".concat(xm,"px")})})}const tS=500;let nS=0;function rS(e){var t,n,r;let{layout:o,translator:i,styles:a,isRtl:l,showLock:s,showSearchIcon:c,constraints:d,onShowSearch:p,classes:h,containerRect:m,isPopover:g,showToolbar:v,showDetachedToolbarOnly:b,containerRef:y,model:w,selectionState:E,isDirectQuery:k,selections:C,keyboard:_,autoConfirm:R,app:L,disablePortal:O}=e;const[I,T]=x.useState(b),[P,M]=x.useState(null==o||null===(t=o.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked),[q,D]=x.useState(!1);x.useEffect((()=>{var e;M(null==o||null===(e=o.qListObject)||void 0===e||null===(e=e.qDimensionInfo)||void 0===e?void 0:e.qLocked)}),[null==o||null===(n=o.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qLocked]);const N=x.useRef(null),A=Yx.createDimensionIconData({dimInfo:null==o||null===(r=o.qListObject)||void 0===r?void 0:r.qDimensionInfo,app:L,selections:C,isPopover:g,active:!(null!=d&&d.active),keyboard:_}),z=s&&P,j=!s&&P,F=c||j||A,$=bm-(F?xm:0),B=l?bm-(F?xm:0):ym,W=(c?Sm:0)+(j?Sm:0)+(A?Sm:0),H=function(e){let{isLocked:t,setLocked:n,settingLockedState:r,model:o,setSettingLockedState:i}=e;return()=>{const e=new Date;if(e-nS<tS)return Promise.resolve();if(r)return()=>{};i(!0),nS=e;const a=t?o.unlock:o.lock;return n(!t),a.call(o,"/qListObjectDef").catch((()=>{n(t)})).finally((()=>{setTimeout((()=>{i(!1)}),0)}))}}({isLocked:P,setLocked:M,settingLockedState:q,setSettingLockedState:D,model:w}),U=Ov({layout:o,model:w,translator:i,selectionState:E,isDirectQuery:k,selections:C}),V=P||!s?void 0:[{key:"lock",type:void 0,label:i.get("SelectionToolbar.ClickToLock"),getSvgIconShape:Qh,enabled:()=>!q&&!E.selectDisabled()&&db(o),action:H}],G=null!=d&&d.active?S.createElement(Yv,{title:i.get("Listbox.Search"),size:"large",style:f(f({},Bx),{},{padding:"".concat(xm,"px")})}):S.createElement(mc,{onClick:p,tabIndex:-1,title:i.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},S.createElement(Yv,{style:Bx}));x.useEffect((()=>{if(!N.current||!m)return;const e=function(e){var t,n,r,o;let{containerRect:i,titleRef:a,iconsWidth:l,paddingLeft:s,paddingRight:c}=e;const u=s+c,d=i.width<(null!==(t=null==a||null===(n=a.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)+l+u+2+128,f=(null==a||null===(r=a.current)||void 0===r?void 0:r.scrollWidth)>(null==a||null===(o=a.current)||void 0===o?void 0:o.offsetWidth);return!(!d&&!f)}({containerRect:m,titleRef:N,iconsWidth:W,paddingLeft:$,paddingRight:B});T(b||e)}),[W,$,B,N.current,b,Object.entries(m||{}).sort().join(",")]);const K=function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:i,extraItems:a,selections:l,keyboard:s,autoConfirm:c,disablePortal:u}=e;return{autoConfirm:c,isDetached:t,show:n&&!t,popover:{show:n&&t,anchorEl:r.current},extraItems:a,more:{enabled:!o,actions:i,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"},disablePortal:u},selections:{show:n,api:l,onConfirm:()=>{null==s||s.focus()},onCancel:()=>{null==s||s.focus()}}}}({isDetached:!g&&I,showToolbar:v,containerRef:y,isLocked:P,extraItems:V,listboxSelectionToolbarItems:U,selections:C,keyboard:_,autoConfirm:R,disablePortal:O}),Z=S.createElement(Xv,u({isRtl:l,layout:o},K));if(b)return Z;const J=j?S.createElement(Yh,{size:"large",style:f(f({},Bx),{},{padding:"".concat(xm,"px")})}):void 0;return S.createElement(Hx,{item:!0,container:!0,styles:a,isRtl:l,marginY:1,paddingLeft:"".concat($,"px"),paddingRight:"".concat(B,"px"),className:"header-container"},z&&S.createElement(Vx,{isLoading:q,translator:i,toggleLock:H,keyboard:_}),F&&S.createElement(Yf,{item:!0,container:!0,alignItems:"center",width:W,className:"header-action-container"},J||c&&G,S.createElement(eS,{iconData:A,iconStyle:Bx,disabled:C.isActive()&&g,translator:i,keyboard:_})),S.createElement(Yf,{item:!0,xs:!0,minWidth:0,justifyContent:l?"flex-end":"flex-start",className:h.listBoxHeader},S.createElement(Ux,{variant:"h6",noWrap:!0,ref:N,title:o.title,styles:a},o.title)),S.createElement(Yf,{item:!0,display:"flex"},Z))}const oS="ListBoxInline",iS={listBoxHeader:"".concat(oS,"-listBoxHeader"),screenReaderOnly:"".concat(oS,"-screenReaderOnly"),listboxWrapper:"".concat(oS,"-listboxWrapper")},aS=$l(Yf,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((e=>{let{theme:t,containerPadding:n,isGridMode:r,styles:o}=e;return f(f({},o.background),{},{["& .".concat(iS.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(iS.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(iS.listboxWrapper)]:{padding:n},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:r?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}})}));const lS=S.memo((function(e){var t,n,r,o;let{options:i,layout:a}=e;const{app:l,direction:s,frequencyMode:c,checkboxes:u,search:d=!0,focusSearch:p=!1,rangeSelect:h=!0,model:m,selections:g,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:w,showGray:E=!0,scrollState:k,renderedCallback:C,toolbar:_=!0,isPopover:R=!1,showLock:L=!1,components:O,selectDisabled:I=(()=>!1),disablePortal:T=!0}=i,P=_l(),{translator:M,keyboardNavigation:q,themeApi:D,constraints:N}=x.useContext(Vs),{checkboxes:A=u}=a||{},z=sx({app:l,themeApi:D,theme:P,components:O,checkboxes:A}),j=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==l?void 0:l.layout}),F=x.useRef(),$=x.useRef(),[B,W]=Kh(),[H,U]=x.useState(!1),[V,G]=x.useState(!1),K=x.useRef(!1),[Z,J]=x.useState({down:0,up:0,scrollPosition:""}),X=e=>J((t=>f(f({},t),e))),[Y,Q]=x.useState({start:0,stop:0}),[ee]=ob(l),[te]=x.useState((()=>cb({selectDisabled:I}))),ne=cg({containerRef:F,enabled:q}),re=x.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:l,appSelections:ee})),[l,ee]),oe=null==a?void 0:a.qListObject.qDimensionInfo.qError,ie=oe&&N.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:ae,handleOnMouseEnter:le,handleOnMouseLeave:se,globalKeyDown:ce}=x.useMemo((()=>jx({keyboard:ne,hovering:K,updateKeyScroll:X,currentScrollIndex:Y,constraints:N,isModal:re,selections:g})),[ne,K,X,F,Y,l,ee,N,re]);x.useEffect((()=>(document.addEventListener("keydown",ce),()=>{document.removeEventListener("keydown",ce)})),[ce]),x.useEffect((()=>{!0===d&&G(!0);const e=()=>{U(!0)},t=()=>{U(!1),"toggle"===d&&G(!1)};return R&&(g.isActive()||(g.on("activated",e),g.on("deactivated",t)),U(R)),_&&g&&(g.isModal()||(g.on("activated",e),g.on("deactivated",t)),U(R||g.isActive())),()=>{g&&g.removeListener&&(g.removeListener("activated",e),g.removeListener("deactivated",t))}}),[_,g,R]);const{wildCardSearch:ue,searchEnabled:de,autoConfirm:fe=!1,layoutOptions:pe={}}=null!=a?a:{},he=null==a||null===(t=a.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked,me=!1!==de&&"toggle"===d&&!he,ge=(null==a||null===(n=a.title)||void 0===n?void 0:n.length)&&!1!==(null==a?void 0:a.showTitle),ve=_&&!ge&&!R,be=_&&ge||R,ye="rtl"===s;if(!m||!a||!M)return null;const xe=!0===d||"toggle"===d&&V&&!1!==de,Se=null!==(r=pe.dense)&&void 0!==r&&r,we=()=>{G(!V)},Ee=()=>{"toggle"===d?we():$.current.focus()},ke=xe&&("toggle"===d||p),Ce="grid"===(null==pe?void 0:pe.dataLayout),_e=function(e){let t,{isGridMode:n,dense:r,height:o,layoutOrder:i}=e;if(n){let e;e=Kg({isGridMode:n,dense:r})>o?"0px":"2px",t="row"===i?"".concat(e," 4px"):"".concat(e," 6px ").concat(e," 4px")}else t=void 0;return t}({isGridMode:Ce,dense:Se,height:null===(o=F.current)||void 0===o?void 0:o.clientHeight,layoutOrder:pe.layoutOrder});oe&&(null==C||C());const Re=be?Im+Em:0,Le=S.createElement(rS,{app:l,showSearchIcon:me,onShowSearch:we,isPopover:R,showToolbar:H,isDirectQuery:j,autoConfirm:fe,showDetachedToolbarOnly:ve,layout:a,translator:M,styles:z,isRtl:ye,showLock:L,constraints:N,classes:iS,containerRect:W,containerRef:F,model:m,selectionState:te,selections:g,keyboard:ne,disablePortal:T});return S.createElement(S.Fragment,null,ve&&Le,S.createElement(aS,{className:"listbox-container",container:!0,tabIndex:ne.enabled?-1:void 0,direction:"column",gap:0,containerPadding:_e,styles:z,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:ae,onMouseEnter:le,onMouseLeave:se,ref:e=>{F.current=e,B(e)},isGridMode:Ce,"aria-label":ne.active?M.get("Listbox.ScreenReaderInstructions"):""},be&&Le,S.createElement(Yf,{item:!0,container:!0,direction:"column",height:"100%",minHeight:Re,role:"region","aria-label":M.get("Listbox.ResultFilterLabel")},S.createElement(Yf,{item:!0},S.createElement(rb,{ref:$,selections:g,selectionState:te,model:m,dense:Se,keyboard:ne,visible:xe,search:d,autoFocus:ke,beginSelectionOnFocus:!R,wildCardSearch:ue,searchEnabled:de,direction:s,hide:me&&we,styles:z})),S.createElement(Yf,{item:!0,xs:!0,className:iS.listboxWrapper},oe?S.createElement($x,{text:ie}):S.createElement(zx,null,(e=>{let{height:t,width:n}=e;return S.createElement(kv,{model:m,app:l,constraints:N,layout:a,selections:g,selectionState:te,direction:s,frequencyMode:c,rangeSelect:h,checkboxes:A,height:t,width:n,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:w,keyboard:ne,showGray:E,scrollState:k,keyScroll:{state:Z,reset:()=>J({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:Y,set:Q},renderedCallback:C,onCtrlF:Ee,isModal:re,styles:z})}))))))}));function sS(e){let{options:t={}}=e;const{model:n}=t,[r]=Vh(n);return S.createElement(lS,{options:t,layout:r})}function cS(e){let{app:t,qId:n,options:r={}}=e;const[o,i]=x.useState(),[a]=jh(),{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 x.useEffect((()=>{let e=!1,r=()=>{};return async function(){const o=await Promise.resolve(l||async function(e){return a.get(e)||await t.getObject(e)}(n));if(!e){if(!a.get(o.id)){a.set(o.id,o);const e=()=>{a.clear(o.id)};o.once("closed",e),r=()=>{o.removeListener("closed",e)}}i(o)}}(),()=>{e=!0,r()}}),[]),o}const uS={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function dS(e){let t;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(e):t="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(e):t="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(e):t="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(e):t="R";break;default:t="N"}return t}const fS=["__DO_NOT_USE__"],pS=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1};return f(f(f({},p(e,fS)),n),t)},hS=x.forwardRef(((e,t)=>{let{app:n,fieldIdentifier:r,qId:o,stateName:i,element:a,initialOptions:l,renderedCallback:s}=e;const[c,u]=x.useState(l),{isExistingObject:d,hasExternalSelectionsApi:p}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:o,options:c});d||Object.assign(c,{frequencyMode:dS(c.frequencyMode)});const[h,m]=x.useState(0);x.useEffect((()=>{if(h)throw new Error("Source or selection Api can not change after a listbox has been mounted");m(h+1)}),[d,p]);const g=d?cS({app:n,qId:o,options:c}):function(e){var t;let{app:n,fieldIdentifier:r,stateName:o,options:i={}}=e;const[a,l]=x.useState(""),[s,c]=x.useState(!0),[u,d]=x.useState(),[f,p]=x.useState(),h=null!==(t=i.title)&&void 0!==t?t:f;let{histogram:m=!1,frequencyMode:g="N"}=i;a&&a.failedToFetchFieldDef&&(m=!1,g="N"),x.useEffect((()=>{const e=m||"N"!==g;r.qLibraryId&&e?async function(){try{const e=await n.getDimension(r.qLibraryId),t=await e.getLayout();p(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),p(r))}),[]);const{dense:v,checkboxes:b,listLayout:y,properties:S={}}=i,w={dense:v};"horizontal"===y&&(w.dataLayout="grid",w.layoutOrder="column",w.maxVisibleColumns={auto:!0},w.maxVisibleRows={auto:!1,maxRows:1});const E=x.useRef();E.current||(E.current=Lx());const k=pe(!0,{},uS,{qInfo:{qId:E.current},qListObjectDef:{qStateName:o,qFrequencyMode:m&&"N"===g?"V":g},histogram:m,checkboxes:b,layoutOptions:w,title:h});let C;if(pe(!0,k,S),r.qLibraryId?(k.qListObjectDef.qLibraryId=r.qLibraryId,C=r.qLibraryId):(k.qListObjectDef.qDef.qFieldDefs=[r],C=r),"P"!==g&&m)if(null!=a&&a.multiFieldDim)k.frequencyMax="fetch";else{const e=r.qLibraryId?a:C;k.frequencyMax={qValueExpression:yv(e)}}const[_]=Fh(k,s?null:n,C,o);return x.useEffect((()=>{_&&d(_)}),[_]),u}({app:n,fieldIdentifier:r,stateName:i,options:c}),v=x.useRef(a),b=p?c.selectionsApi:sb(n,g,[v,".njs-action-toolbar-more",".njs-action-toolbar-popover"],c)[0],y=x.useMemo((()=>f(f({},c),{},{selections:b,model:g,app:n,renderedCallback:s})),[c,b,g,n]);return x.useImperativeHandle(t,(()=>({setOptions:e=>u(e)})),[]),b&&g?S.createElement(sS,{options:y}):null}));const mS={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function gS(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:i={}}=e;const[a,l]=x.useState(!!i.show);return S.createElement(cx,{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,components:i.components,sortCriteria:i.sortCriteria,direction:i.direction})}function vS(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function bS(e,t){let n=0;for(let r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}const yS=e=>({qDef:{qFieldDefs:[e]}}),xS=e=>({qDef:{qDef:e}});function SS(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,i={dimensions:()=>t.qDimensions,measures:()=>t.qMeasures,addDimension(e){const r="string"==typeof e?yS(e):f(f({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||Lx(),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<i.maxDimensions()?(t.qDimensions.push(r),vS(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 bS(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?xS(e):f(f({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||Lx(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],t.qMeasures.length<i.maxMeasures()?(t.qMeasures.push(r),vS(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];bS(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<i.maxDimensions(),canAddMeasure:()=>t.qMeasures.length<i.maxMeasures()};return i}const wS=e=>({qDef:{qFieldDefs:[e]}});function ES(e){let{dc:t,def:n,properties:r}=e;t.qInitialDataFetch=t.qInitialDataFetch||[];const o=r,i={dimensions:()=>t.qLibraryId||t.qDef&&t.qDef.qFieldDefs&&0!==t.qDef.qFieldDefs.length?[t]:[],measures:()=>[],addDimension(e){const r="string"==typeof e?wS(e):f(f({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||Lx(),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===i.dimensions().length,canAddMeasure:()=>!1};return i}const kS=e=>({qDef:{qFieldDefs:[e]}}),CS=e=>{let t;return t="string"==typeof e?pe(!0,{},uS,{qListObjectDef:kS(e)}):e.qListObjectDef?pe(!0,{},uS,e):pe(!0,{},uS,{qListObjectDef:e}),t};function _S(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=CS(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||Lx(),!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 RS(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 LS(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")?ES:e.match("/qChildListDef")?_S:SS}(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"===RS(t)?await d.addMeasure(t):await d.addDimension(t)}}var OS={getValue:(e,t,n)=>{if(null==e||null==t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},setValue:(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==i[t]&&null!==i[t]||(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?i[o]=n:delete i[o]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object};var IS={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},move:function(e,t,n){if(n<0)throw Error("newIndex cannot be a negative value!");if(n>=e.length){let t=n-e.length+1;for(;t;)e.push(void 0),t--}const r=e.at(t);e.splice(t,1),e.splice(n,0,r)}};const TS=2**53-1;function PS(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function MS(e,t){const n=pe(!0,{},t,e);return OS.getValue(n,"qOtherTotalSpec.qOtherCounted")||OS.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),OS.getValue(n,"qOtherTotalSpec.qOtherLimit")||OS.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function qS(e,t){return pe(!0,{},t,e)}function DS(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var NS={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===OS.getValue(e,t)&&OS.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:PS,importCommonProperties:function(e,t,n){const r="masterobject"===OS.getValue(t,"properties.qInfo.qType")?"masterobject":OS.getValue(n,"qInfo.qType");OS.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},createDefaultDimension:MS,createDefaultMeasure:qS,resolveValue:DS,getHypercubePath:function(e){const t=OS.getValue(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function(e){let{exportFormat:t,newHyperCubeDef:n}=e;const r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();let i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(IS.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,IS.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=pe(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?OS.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||PS(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=pe(!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=DS(i.max,r.dimensions.length,TS),l=DS(i.min,r.dimensions.length,0);return{maxDimensions:DS(o.max,a,TS),minDimensions:DS(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(MS(a.dimensions[l],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(MS(a.dimensions[l],i));else if(a.dimensions.length)for(l=0;l<a.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(MS(a.dimensions[l],i));if(a.excludedDimensions.length)for(l=0;l<a.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(MS(a.excludedDimensions[l],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(MS(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(qS(a.measures[l],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(qS(a.measures[l],i));else if(a.measures.length)for(l=0;l<a.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(qS(a.measures[l],i));if(a.excludedMeasures.length)for(l=0;l<a.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(qS(a.excludedMeasures[l],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(qS(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=OS.getValue(t,r||"").qHyperCubeDef,o=[...e.qDimensions];e.qDimensions=[],o.forEach((r=>{e.qDimensions.push(r),n.dimensions.added(r,t)}))}},updateMeasuresOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.measures&&"function"==typeof n.measures.added){const e=OS.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var AS={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=OS.getValue(o,n||""),a=i.qHyperCubeDef,l=r.data[0];if(a.qInterColumnSortOrder||(a.qInterColumnSortOrder=[]),l.dimensions.push(...a.qDimensions),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qDimensions&&l.excludedDimensions.push(...a.qLayoutExclude.qHyperCubeDef.qDimensions),l.measures.push(...a.qMeasures),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qMeasures&&l.excludedMeasures.push(...a.qLayoutExclude.qHyperCubeDef.qMeasures),l.interColumnSortOrder=a.qInterColumnSortOrder.concat(),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();IS.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&&(NS.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!OS.isEmpty(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:i}=e;const a={qChildren:[]},l=NS.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),s=OS.getValue(n,i||"").qHyperCubeDef,c=OS.getValue(l,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:f,minMeasures:p}=NS.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=NS.getDefaultDimension(),defaultMeasure:m=NS.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,NS.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:f,minMeasures:p})&&NS.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:f,minMeasures:p,newHyperCubeDef:c}),NS.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),NS.addDefaultMeasures({exportFormat:t,maxMeasures:f,minMeasures:p,newHyperCubeDef:c,defaultMeasure:m}),NS.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),NS.copyPropertyIfExist("qMaxStackedCells",s,c),NS.copyPropertyIfExist("qNoOfLeftDims",s,c),NS.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),NS.copyPropertyOrSetDefault("qMode",s,c,"S"),NS.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),NS.copyPropertyOrSetDefault("qSortbyYValue",s,c),NS.copyPropertyOrSetDefault("qIndentMode",s,c),NS.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),NS.importCommonProperties(l,t,n),NS.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:i}),NS.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:i}),a.qProperty=l,a}(e)};const zS=e=>OS.getValue(e,"data.targets.0.propertyPath"),jS=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return AS.exportProperties})(zS(e))},FS=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return AS.importProperties})(zS(e))},$S=async e=>{let{halo:t,model:n,cellRef:r,newType:o,properties:i,viewDataMode:a=!1}=e;const l=i?{qProperty:i}:await n.getFullPropertyTree(),s=r.current.getQae(),c=jS(s);if(!c)throw new Error("Source chart does not support conversion");const u=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}),d=u.qae,p=FS(d);if(!p)throw new Error("Target chart does not support conversion");return p({exportFormat:c({propertyTree:l,hypercubePath:NS.getHypercubePath(s),viewDataMode:a}),initialProperties:f({qInfo:{qType:o},visualization:o},OS.getValue(d,"properties.initial",{})),dataDefinition:OS.getValue(d,"data.targets.0.",{}),hypercubePath:NS.getHypercubePath(d),viewDataMode:a})},BS={hypercube:AS};var WS=e=>Jh((e=>f(f({},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 HS(e){let{d:t}=e;const n=_l();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=S.createElement(Sc,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},S.createElement(lp,null,t.missing||t.error?S.createElement(WS,{style:i}):S.createElement(hm,{style:i})));return S.createElement(Yf,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},S.createElement(Yf,{item:!0},a),S.createElement(Yf,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},S.createElement(Sc,{noWrap:!0,component:"p"},S.createElement(Sc,{component:"span",variant:"subtitle2",color:r},t.description),S.createElement(Sc,{component:"span"}," "),S.createElement(Sc,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function US(e){let{data:t}=e;const n=_l();return S.createElement(Yf,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>S.createElement(HS,{d:e,key:t})));return r.length>0&&S.createElement(Yf,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},S.createElement(Sc,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function VS(e){let{title:t="Error",message:n="",data:r=[]}=e;return S.createElement(Yf,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},S.createElement(Yf,{item:!0},S.createElement(WS,{style:{fontSize:"38px"}})),S.createElement(Yf,{item:!0},S.createElement(Sc,{variant:"h6",align:"center","data-tid":"error-title"},t)),S.createElement(Yf,{item:!0},S.createElement(Sc,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),S.createElement(US,{data:r}))}const GS=["size"],KS="Progress",ZS={root:"".concat(KS,"-root"),front:"".concat(KS,"-front"),back:"".concat(KS,"-back")},JS=$l("div")((e=>{let{theme:t}=e;return{["&.".concat(ZS.root)]:{position:"relative",display:"inline-block"},["& .".concat(ZS.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(ZS.back)]:{color:t.palette.divider}}})),XS={small:16,medium:32,large:64,xlarge:128};function YS(e){let{size:t="medium"}=e,n=p(e,GS);const r=XS[t];return S.createElement(JS,{className:ZS.root},S.createElement(pf,u({variant:"determinate",value:100,className:ZS.back,size:r,thickness:3},n)),S.createElement(pf,u({variant:"indeterminate",disableShrink:!0,className:ZS.front,size:r,thickness:3},n)))}const QS=["cancel","translator"],ew=["retry","translator"],tw={stripes:"".concat("LongRunningQuery","-stripes")},nw=$l(Yf)((()=>({["& .".concat(tw.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 rw(e){let{cancel:t,translator:n}=e,r=p(e,QS);return S.createElement(S.Fragment,null,S.createElement(nw,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},S.createElement(Yf,{item:!0},S.createElement(YS,null)),S.createElement(Yf,{item:!0},S.createElement(Sc,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),S.createElement(Yf,u({item:!0},r),S.createElement(zs,{variant:"contained",onClick:t},n.get("Cancel"))))}function ow(e){let{retry:t,translator:n}=e,r=p(e,ew);return S.createElement(S.Fragment,null,S.createElement(Yf,{item:!0},S.createElement(WS,{style:{fontSize:"38px"}})),S.createElement(Yf,{item:!0},S.createElement(Sc,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),S.createElement(Yf,{item:!0},S.createElement(zs,u({variant:"contained",onClick:t},r),n.get("Retry"))))}function iw(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=x.useContext(Vs);return S.createElement(Yf,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:tw.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&S.createElement(rw,{cancel:r.cancel,translator:o,className:tw.cancel}),n&&S.createElement(ow,{retry:r.retry,translator:o,className:tw.retry}))}function aw(){return S.createElement(Yf,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},S.createElement(YS,{size:"large"}))}const lw={width:0,height:0},sw="Header",cw={containerStyle:"".concat(sw,"-containerStyle"),containerTitleStyle:"".concat(sw,"-containerTitleStyle")},uw=$l(Yf)((e=>{let{theme:t}=e;return{["&.".concat(cw.containerStyle)]:{flexGrow:0},["&.".concat(cw.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),dw="njs-cell-title",fw="njs-cell-sub-title";function pw(e){let{id:t,layout:n,sn:r,anchorEl:o,hovering:i,focusHandler:a,titleStyles:l={},isRtl:s,translator:c}=e;const u=n.showTitles&&!!n.title,d=n.showTitles&&!!n.subtitle,f=n.qSelectionInfo&&n.qSelectionInfo.qInSelections,[p,h]=x.useState([]);x.useEffect((()=>{r&&r.component&&r.component.isHooked&&r.component.observeActions((e=>{h([...e,...r&&r.selectionToolbar&&r.selectionToolbar.items||[]])}))}),[r]);const m=[cw.containerStyle,...u||d?[cw.containerTitleStyle]:[]],g=i||f,v=S.createElement(Xv,{show:!1,selections:{show:f,api:r.component.selections,onKeyDeactivate:a.refocusContent},actions:p,popover:{show:g,anchorEl:o},focusHandler:a,layout:n,isRtl:s});return S.createElement(uw,{item:!0,container:!0,wrap:"nowrap",className:m.join(" ")},S.createElement(Yf,{item:!0,zeroMinWidth:!0,xs:!0,dir:s?"rtl":"ltr"},S.createElement(Yf,{container:!0,wrap:"nowrap",direction:"column"},u?S.createElement(zh,{title:n.title},S.createElement(Sc,{id:"".concat(t,"_title"),variant:"h6",noWrap:!0,className:dw,style:l.main},n.title)):S.createElement("div",{id:"".concat(t,"_title"),style:lw,"aria-label":c.get("Accessibility.Object.NoTitle")}),d&&S.createElement(zh,{title:n.subtitle},S.createElement(Sc,{variant:"body2",noWrap:!0,className:fw,style:l.subTitle},n.subtitle)))),S.createElement(Yf,{item:!0},v))}const hw="condition",mw="search",gw="clear_selection",vw="matches_exactly",bw="starts_with",yw="ends_with",xw="beginning_of_word",Sw="general",ww="fixed_value",Ew=(e,t)=>{if(!Array.isArray(e))return[];const n=t.get("Object.FilterLabel.Exclude"),r=e.filter((e=>!1!==e.showInFooter));return r.map((e=>{var r;let o="";switch(e.type){case mw:o+=(e=>{var t,n,r;let o="",i="";switch(null===(t=e.options)||void 0===t?void 0:t.mode){case xw:o="*^",i="*";break;case yw:o="*";break;case bw:i="*";break;case vw:break;default:o="*",i="*"}const a=null!==(n=null===(r=e.options.values)||void 0===r?void 0:r[0])&&void 0!==n?n:"";return""!==a?'"'.concat(o).concat(a).concat(i,'"'):""})(e);break;case hw:o+=(e=>{var t,n,r,o,i,a,l;const{options:s}=e,c=(null==s?void 0:s.mode)===Sw,u=(null==s||null===(t=s.modifier)||void 0===t?void 0:t.type)===ww,d=null!=s&&null!==(n=s.modifier)&&void 0!==n&&n.operator?s.modifier.operator.split(" "):[];if(0===d.length||!u&&(null===(r=s.firstValue)||void 0===r||!r.aggregator||null===(o=s.firstValue)||void 0===o||!o.field)||u&&(null===(i=s.firstValue)||void 0===i||!i.fixedValue)||c&&(null===(a=s.conditionField)||void 0===a||!a.aggregator||null===(l=s.conditionField)||void 0===l||!l.field))return"";let f,p,h="=";var m,g,v;if(c&&u)f="".concat(null===(m=s.conditionField)||void 0===m?void 0:m.aggregator,"(").concat(bv(null===(g=s.conditionField)||void 0===g?void 0:g.field),")"),p="".concat(null===(v=s.firstValue)||void 0===v?void 0:v.fixedValue);else if(!c&&u){var b;f="",p="".concat(null===(b=s.firstValue)||void 0===b?void 0:b.fixedValue),h=""}else if(c||u){var y,x,S,w;f="".concat(null===(y=s.conditionField)||void 0===y?void 0:y.aggregator,"(").concat(bv(null===(x=s.conditionField)||void 0===x?void 0:x.field),")"),p="".concat(null===(S=s.firstValue)||void 0===S?void 0:S.aggregator,"(").concat(bv(null===(w=s.firstValue)||void 0===w?void 0:w.field),")")}else{var E,k;f="".concat(bv(e.field)),p="".concat(null===(E=s.firstValue)||void 0===E?void 0:E.aggregator,"(total ").concat(bv(null===(k=s.firstValue)||void 0===k?void 0:k.field),")")}const C="".concat(h).concat(f).concat(d[0]).concat(p);let _="";if(d.length>1){var R,L,O;if(!u&&(null===(R=s.secondValue)||void 0===R||!R.aggregator||null===(L=s.secondValue)||void 0===L||!L.field)||u&&(null===(O=s.secondValue)||void 0===O||!O.fixedValue))return"";let e,t;var I;if(c&&u)e="".concat(null===(I=s.secondValue)||void 0===I?void 0:I.fixedValue),t=" and ".concat(f);else if(!c&&u){var T;e="".concat(null===(T=s.secondValue)||void 0===T?void 0:T.fixedValue),t=""}else if(c||u){var P,M;e="".concat(null===(P=s.secondValue)||void 0===P?void 0:P.aggregator,"(").concat(bv(null===(M=s.secondValue)||void 0===M?void 0:M.field),")"),t=" and ".concat(f)}else{var q,D;e="".concat(null===(q=s.secondValue)||void 0===q?void 0:q.aggregator,"(total ").concat(bv(null===(D=s.secondValue)||void 0===D?void 0:D.field),")"),t=" and ".concat(f)}_="".concat(t).concat(d[1]).concat(e)}return'"'.concat(C).concat(_,'"')})(e);break;case gw:o+=t.get("Object.FilterLabel.All");break;default:o+=null!==(r=e.options)&&void 0!==r&&r.values?e.options.values.join(", "):t.get("Object.FilterLabel.Unknown")}return""!==o&&(o=o.replace(/^"|"$/g,""),e.exclude&&(o="".concat(n," ").concat(o))),{field:e.field,label:o}})).filter((e=>""!==e.label))},kw=(e,t)=>Ew(e,t).map((e=>"".concat(e.field,": ").concat(e.label))).join("; ");var Cw=e=>Jh((e=>f(f({},e),{},{shapes:[{type:"path",attrs:{d:"M14.07 0a1 1 0 0 1 .816 1.577L10 8.5v4.398a1 1 0 0 1-.532.884l-2.734 1.445A.5.5 0 0 1 6 14.785V8.5L1.112 1.577A1 1 0 0 1 1.93 0zm0 1H1.93L7 8.183v5.772l2-1.057V8.183z"}}]}))(e));function _w(e){let{styles:t,children:n}=e;return S.createElement(Sc,{noWrap:!0,variant:"body2",style:f(f({},t),{},{fontStyle:"italic"})},n)}function Rw(e){var t;let{layout:n,translator:r,filtersFootnoteString:o,footerStyle:i,isRtl:a}=e;const l=Ew(null!==(t=null==n?void 0:n.filters)&&void 0!==t?t:[],r),s={color:null==i?void 0:i.color,fontFamily:null==i?void 0:i.fontFamily,fontSize:null==i?void 0:i.fontSize,fontWeight:null==i?void 0:i.fontWeight};return S.createElement(zh,{title:o},S.createElement(Yf,{container:!0,wrap:"nowrap",sx:{backgroundColor:null==i?void 0:i.backgroundColor,padding:null==i?void 0:i.padding,borderTop:null==i?void 0:i.borderTop},"data-testid":"filters-footnote",justifyContent:a?"flex-end":"flex-start"},S.createElement(Yf,{item:!0,display:"flex"},S.createElement(Cw,{style:{fontSize:"12px",color:i.color,margin:"auto"}}),S.createElement(_w,{styles:f(f({},s),{},{marginLeft:"2px"})},r.get("Object.FiltersApplied"),"  ")),S.createElement(Yf,{item:!0,display:"flex"},l.map((e=>S.createElement(Yf,{container:!0,wrap:"nowrap",key:"".concat(e.field,"-").concat(e.label)},S.createElement(_w,{styles:f(f({},s),{},{fontWeight:"bold"})},"".concat(e.field,":")),S.createElement(_w,{styles:s},"   ",e.label,"  ")))))))}const Lw={itemStyle:"".concat("Footer","-itemStyle")},Ow=$l(Yf)((()=>({["& .".concat(Lw.itemStyle)]:{minWidth:0,width:"100%"}}))),Iw="njs-cell-footer";function Tw(e){var t,n,r;let{layout:o,titleStyles:i={},translator:a,flags:l,isCardTheme:s,isRtl:c}=e;const u=i.footer,d=(null==o||null===(t=o.filters)||void 0===t?void 0:t.length)>0&&(null==o||null===(n=o.qHyperCube)||void 0===n||null===(n=n.qMeasureInfo)||void 0===n?void 0:n.length)>0,f=kw(null!==(r=null==o?void 0:o.filters)&&void 0!==r?r:[],a),p=!(null!=o&&o.footnote)&&d&&f,h=null==l?void 0:l.isEnabled("VNA-13_CELLPADDING_FROM_THEME"),m=s?"1px":"6px";return o&&o.showTitles&&(o.footnote||p)?S.createElement(Ow,{container:!0},S.createElement(Yf,{item:!0,className:Lw.itemStyle,"data-testid":Iw,sx:{paddingTop:e=>h?m:e.spacing(1)}},o.footnote&&S.createElement(zh,{title:o.footnote},S.createElement(Sc,{noWrap:!0,variant:"body2",className:Iw,style:u,align:c?"right":"left"},o.footnote)),p&&S.createElement(Rw,{layout:o,translator:a,filtersFootnoteString:f,footerStyle:u,isRtl:c}))):null}class Pw{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 Mw="njs-viz";function qw(e){let{sn:t,snOptions:n,snPlugins:r,layout:o,appLayout:i,halo:a,cellId:l}=e;const{component:s}=t,{theme:c,language:u,constraints:d,interactions:p,keyboardNavigation:h}=x.useContext(Vs),[m]=x.useState((()=>new Pw)),[g,v]=x.useState(!1),[b,y]=x.useState(0),[w,E,k]=Kh(),[C,_]=x.useState(null),R=x.useCallback((e=>{e&&_(e)}),[]);return x.useEffect((()=>{if(C)return s.created({options:n}),s.mounted(C),v(!0),()=>{m.stop(),s.willUnmount()}}),[C,s]),x.useEffect((()=>{g&&C&&E&&(!s.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||m.schedule((()=>{const e=[];return d.passive||e.push("passive"),d.active||e.push("interact"),d.select||e.push("select"),d.edit||e.push("edit"),a.app&&a.app.session&&e.push("fetch"),Promise.resolve(s.render({layout:o,options:n,plugins:r,embed:a.public.nebbie,context:f({constraints:d,interactions:p,theme:a.public.theme,appLayout:i,keyboardNavigation:h},s.isHooked?{}:{logicalSize:t.logicalSize({layout:o}),localeInfo:(i||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===b&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),y(b+1))}))})))}),[E,n,r,C,k,o,i,c,u,d,p,g,h]),S.createElement("div",{ref:w,"data-render-count":b,style:{position:"relative",height:"100%"},className:Mw},S.createElement("div",{ref:R,id:"".concat(l,"_content"),style:{position:"absolute",width:"100%",height:"100%"}}))}const Dw={linechart:"lineChart",barchart:"barChart",combochart:"comboChart",scatterplot:"scatterPlot",piechart:"pieChart",straightable:"straightTable",pivottable:"pivotTable",table:"straightTable","pivot-table":"pivotTable",listbox:"listBox",referenceline:"referenceLine",datacolors:"dataColors","text-image":"textImage",boxplot:"boxPlot",map:"mapChart",mapchart:"mapChart",bulletchart:"bulletChart"},Nw=e=>{let{layout:t,theme:n,app:r,themeName:o,disableThemeBorder:i}=e;const a=x.useMemo((()=>{if(t&&n){const o=t.components?t.components.find((e=>"general"===e.key)):null,a=(e=t.visualization,Dw[e.toLowerCase()]?Dw[e.toLowerCase()]:e),l={main:ix(o,"main",n,a),footer:ix(o,"footer",n,a),subTitle:ix(o,"subTitle",n,a)},s=rx(o,n,a),c=nx(o,r),u=function(e,t,n,r){const o=Yy(null==e?void 0:e.borderColor,"","borderColor",t,n);let i=null==e?void 0:e.borderWidth;return!i&&!r&&(i=Xy("","borderWidth",t,n)),i&&o?"".concat(i," solid ").concat(o):void 0}(o,n,a,i),d=function(e,t,n){return(null==e?void 0:e.borderRadius)||Xy("","borderRadius",t,n)}(o,n,a);return{titleStyles:l,bgColor:s,bgImage:c,border:u,borderRadius:d,boxShadow:ox(o,n,a)}}var e;return{}}),[t,n,r,o,i]);return a};class Aw extends Error{constructor(e,t){super(e),this.originalError=t,this.name="RenderError"}}const zw=["action-button","sn-nav-menu","filterpane","sn-shape"],jw=[...zw,"pivot-table","table","sn-table","sn-pivot-table","kpi","sn-calendar","sn-filter-pane","sn-layout-container","sn-tabbed-container"],Fw=e=>-1===zw.indexOf(e),$w=e=>Fw(e)?"10px 10px 0":"10px 0 0",Bw=e=>{let{layout:t,isError:n,isCardTheme:r,titleStyles:o,translator:i}=e;if(r){var a,l,s;const e=(null==t?void 0:t.showTitles)&&!(null==t||!t.title),r=(null==t?void 0:t.showTitles)&&!(null==t||!t.subtitle),c=(null==t||null===(a=t.filters)||void 0===a?void 0:a.length)>0&&(null==t||null===(l=t.qHyperCube)||void 0===l||null===(l=l.qMeasureInfo)||void 0===l?void 0:l.length)>0,u=null==t?void 0:t.visualization,d=kw(null!==(s=null==t?void 0:t.filters)&&void 0!==s?s:[],i),f=!(null!=t&&t.footnote)&&c&&d,p=(null==t?void 0:t.showTitles)&&(!(null==t||!t.footnote)||f);let h;return e&&(o.main.padding=$w(u)),r&&(o.subTitle.padding=((e,t)=>{const n=Fw(e);return t?n?"0 10px":"0":$w(e)})(u,e)),p&&(-1===zw.indexOf(u)&&(o.footer.borderTop="1px solid #d9d9d9"),o.footer.padding="6px 10px"),(n||-1===jw.indexOf(u))&&(h="".concat(e||r?"0":"10px"," 10px ").concat(p?"0":"5px")),h}},Ww=new Map;[["auto-chart","Object.AutoChart"],["dummy-chart","Dummy"],["barchart","Object.BarChart"],["combochart","Object.ComboChart"],["container","Object.Container"],["distributionplot","Object.DistributionPlot"],["boxplot","Object.BoxPlot"],["filterpane","Object.FilterPane"],["gauge","Object.Gauge"],["histogram","Object.Histogram"],["kpi","Object.Kpi"],["linechart","Object.LineChart"],["listbox","Object.Listbox"],["piechart","Object.PieChart"],["pivot-table","Object.PivotTable"],["map","Object.Map"],["scatterplot","Object.ScatterPlot"],["sn-table","Object.StraightTable"],["text-image","Object.TextImage"],["treemap","Object.Treemap"],["waterfallchart","Object.WaterfallChart"],["mekkochart","Object.MekkoChart"],["action-button","Object.ActionButton"],["sn-nav-menu","Object.NavMenu"],["bulletchart","Object.BulletChart"],["sn-nlg-chart","Object.NlgChart"],["sn-analysis-autochart","Common.AnalysisTypes"],["sn-tabbed-container","Object.TabContainer"],["qlik-sankey-chart-ext","Object.SankeyChart"],["qlik-radar-chart","Object.RadarChart"],["qlik-funnel-chart-ext","Object.FunnelChart"],["sn-grid-chart","Object.GridChart"],["sn-layout-container","Object.LayoutContainer"]].forEach((e=>{let[t,n]=e;Ww.set(t,n)}));const Hw="njs-cell",Uw="njs-cell-body";const Vw=(e,t)=>{switch(t.type){case"LOADING":return f(f({},e),{},{loading:!0});case"LOADED":return f(f({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return f(f({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return f(f({},e),{},{longRunningQuery:!0});case"ERROR":return f(f({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function Gw(e){let{delay:t=750}=e;const[n,r]=x.useState(!1);return x.useEffect((()=>{const e=setTimeout((()=>r(!0)),t);return()=>clearTimeout(e)}),[]),n?S.createElement(aw,null):null}const Kw=e=>!e.qError||7005===e.qError.qErrorCode,Zw=(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}})),Jw=e=>e&&(Array.isArray(e)?e:[e])||[],Xw=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t),l=Zw(o,Jw(a.qDimensionInfo||a.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),s=Zw(i,Jw(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"));return{reqDimErrors:l,reqMeasErrors:s}},Yw=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(),f=u.measures.min(),p=u.resolveLayout(n),h=Jw(p.qDimensionInfo||p.qItems).filter(Kw),m=Jw(p.qMeasureInfo).filter(Kw);if(o+=d,i+=f,(h.length<d||m.length<f)&&(r=!0),p.qError){a=!0,l=7005===p.qError.qErrorCode;const t=l&&p.qCalcCondMsg?p.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 f=null;for(let n=0;n<o.length;++n){const a=o[n];if(!s&&i){const n=f||await r.getProperties();f=n;const o=Xw(e,t,n,a);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const p=u.filter((e=>!(e.missing||e.error))).length,h=e.get("Visualization.Incomplete.Dimensions",[p,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}]};function Qw(){return new O}const eE=x.forwardRef(((e,t)=>{var n,r;let{halo:o,model:i,initialSnOptions:a,initialSnPlugins:l,initialError:s,onMount:c,currentId:u,emitter:d,navigation:p,onError:h}=e;const{app:m,types:g}=o,{nebbie:v}=o.public,{theme:b,translator:y,language:w,keyboardNavigation:E,externalFocusManagement:k,disableCellPadding:C=!1,navigation:_}=x.useContext(Vs),[R]=x.useState(d||Qw),L=_l(),[O,I,T]=Kh(),[P,M]=x.useReducer(Vw,{loading:!1,loaded:!1,longRunningQuery:!1,error:(q=s)?{title:q.message}:null,sn:null,visualization:null});var q;const[D,N]=x.useState(i),[A,{validating:z,canCancel:j,canRetry:F},$]=Vh(D),[B]=Gh(m),[W,H,U]=Kh(),[V,G]=x.useState(a),[K,Z]=x.useState(l),J="njs-cell-".concat(u),[X]=sb(m,D,["#".concat(J),".njs-action-toolbar-popover"]),[Y,Q]=x.useState(!1),ee=x.useRef({enter:null,leave:null}),{titleStyles:te,bgColor:ne,bgImage:re,border:oe,borderRadius:ie,boxShadow:ae}=Nw({layout:A,theme:o.public.theme,app:o.app,themeName:b,disableThemeBorder:null==V?void 0:V.disableThemeBorder}),le=!("rtl"!==(null==V?void 0:V.direction)),se=x.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});x.useEffect((()=>{ib(se.current),se.current.blurCallback=e=>{se.current.onBlurHandler?se.current.onBlurHandler(e):(o.root.toggleFocusOfCells(),e&&U&&U.focus())},se.current.refocusContent=()=>{P.sn.component&&"function"==typeof P.sn.component.focus&&P.sn.component.focus()}}),[]);x.useEffect((()=>{if(s)return void c();if(!B||!A)return;if(P.visualization===A.visualization&&P.sn)return void(async e=>{const[t,n]=await Yw(y,A,e.generator.qae.data,D);M(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:P.sn,layout:A,model:D})})(P.sn);const e=g.getSupportedVersion(A.visualization,A.version);return(async(e,t)=>{M({type:"LOADING"}),await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:i,app:a,selections:l,nebbie:s,focusHandler:c,emitter:u,onMount:d,navigation:f}=e;try{const e=await(async e=>{let{types:t,name:n,version:r}=e;return await t.get({name:n,version:r}).supernova()})({types:n,name:r,version:o}),p=e.create({model:i,app:a,selections:l,nebbie:s,focusHandler:c,emitter:u,navigation:f});p&&(t({type:"LOADED",sn:p,visualization:r}),d())}catch(e){t(o?{type:"ERROR",error:{title:e.message,errorObject:e}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(r,"' that supports current object version. Did you forget to register ").concat(r,"?")}}),d()}})({dispatch:M,types:g,visualization:e,version:t,model:D,app:m,selections:X,nebbie:v,focusHandler:se.current,emitter:R,onMount:c,navigation:null!=p?p:_})})(A.visualization,e),()=>{}}),[g,P.sn,D,X,A,B,w]),x.useEffect((()=>{if(!z)return;const e=setTimeout((()=>M({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[z]),x.useImperativeHandle(t,(()=>({getQae:()=>P.sn.generator.qae,getExtensionDefinition:()=>P.sn.generator.definition.ext,support(e,t,n){if(A&&P.loaded&&!P.error){var r;const o=t||(null===(r=P.sn.generator.definition.ext)||void 0===r?void 0:r.support);if(o)return function(e,t,n){const r=t[e];return"function"==typeof r?r.call(null,n):"boolean"==typeof r&&r}(e,o,n||A)}return!1},toggleFocus(e){"function"==typeof P.sn.component.focus&&(e?P.sn.component.focus():P.sn.component.blur())},setOnBlurHandler(e){se.current.onBlurHandler=e},setSnOptions:G,setSnPlugins:Z,setModel:N,getImperativeHandle(){var e;return null!==(e=P.sn)&&void 0!==e&&e.component&&"function"==typeof P.sn.component.getImperativeHandle?P.sn.component.getImperativeHandle():{}},onContextMenu(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return null===(e=P.sn)||void 0===e?void 0:e.component.onContextMenu(...n)},async takeSnapshot(){const{width:e,height:t}=I;let n=JSON.parse(JSON.stringify(A));return"function"==typeof P.sn.component.setSnapshotData&&(n=await P.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:y.language(),theme:L.name,appLayout:B,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof o.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return o.config.snapshot.capture(e)}})),[P.sn,H,I,A,L.name,B]);let ce=null;if(P.loading&&!P.longRunningQuery)ce=S.createElement(Gw,null);else if(P.error){if(h){h(P.error.errorObject?P.error.errorObject:new Aw(P.error.title))}ce=S.createElement(VS,P.error)}else P.loaded&&(ce=S.createElement(qw,{key:A.visualization,sn:P.sn,halo:o,snOptions:V,snPlugins:K,layout:A,appLayout:B,cellId:u}));const ue=!(null===(n=o.public.theme)||void 0===n||!n.getStyle("","","_cards")),de=null===(r=o.public.galaxy)||void 0===r?void 0:r.flags;let fe,pe;C?(fe=!1,pe=void 0):null!=de&&de.isEnabled("VNA-13_CELLPADDING_FROM_THEME")?(fe=!1,pe=Bw({layout:A,isError:P.error,isCardTheme:ue,titleStyles:te,translator:y})):(fe=!0,pe=void 0);const he=Ww.get(null==A?void 0:A.visualization),me=y.get(he);return S.createElement(uc,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:ne||"unset",backgroundImage:re&&re.url?"url(".concat(re.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:re&&re.size,backgroundPosition:re&&re.pos,border:oe,borderRadius:ie,boxShadow:ae,boxSizing:"border-box"},elevation:0,square:!0,className:Hw,ref:O,id:J,onMouseEnter:()=>{ee.current.leave&&clearTimeout(ee.current.leave),ee.enter||(ee.current.enter=setTimeout((()=>{Q(!0),ee.current.enter=null}),250))},onMouseLeave:()=>{ee.current.enter&&clearTimeout(ee.current.enter),ee.current.leave||(ee.current.leave=setTimeout((()=>{Q(!1),ee.current.leave=null}),750))}},S.createElement(Yf,{container:!0,direction:"column",gap:0,style:f(f({position:"relative",width:"100%",height:"100%"},fe?{padding:L.spacing(1)}:{}),P.longRunningQuery?{opacity:"0.3"}:{}),"aria-labelledby":"".concat(u,"_title ").concat(u,"_type ").concat(u,"_content")},A&&S.createElement("div",{id:"".concat(u,"_type"),style:lw,"aria-label":null!=me?me:A.visualization}),T&&A&&P.sn&&S.createElement(pw,{layout:A,sn:P.sn,anchorEl:T,hovering:Y,focusHandler:se.current,titleStyles:te,isRtl:le,id:u,translator:y}," "),S.createElement(Yf,{tabIndex:E&&!k?0:-1,onKeyDown:E&&!k?e=>{["Enter"," ","Spacebar"].includes(e.key)&&o.root.toggleFocusOfCells(u)}:null,item:!0,xs:!0,className:Uw,style:f({height:"100%"},pe?{padding:pe}:{}),ref:W},ce),T&&A&&P.sn&&S.createElement(Tw,{layout:A,titleStyles:te,translator:y,flags:de,isCardTheme:ue,isRtl:le})),P.longRunningQuery&&S.createElement(iw,{canCancel:j,canRetry:F,api:$}))}));function tE(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function nE(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const r=[];return Object.keys(t).forEach((o=>{const i=t[o];"object"!=typeof n[o]||"object"!=typeof i||Array.isArray(i)?function(e,t){return tE(e)&&tE(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}(i,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...nE("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function rE(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 oE=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))},iE=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t);var aE,lE={exports:{}},sE=lE.exports;
126
124
  /**
127
125
  * @license
128
126
  * Lodash <https://lodash.com/>
@@ -130,5 +128,5 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,c,u,d,f=e.le
130
128
  * Released under MIT license <https://lodash.com/license>
131
129
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
132
130
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
133
- */var eE=(Xw||(Xw=1,function(e,t){(function(){var r,o="Expected a function",i="__lodash_hash_undefined__",a="__lodash_placeholder__",l=32,s=128,c=256,u=1/0,d=9007199254740991,f=NaN,p=4294967295,h=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",c]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",b="[object Date]",y="[object Error]",x="[object Function]",S="[object GeneratorFunction]",w="[object Map]",E="[object Number]",k="[object Object]",C="[object Promise]",_="[object RegExp]",R="[object Set]",L="[object String]",O="[object Symbol]",I="[object WeakMap]",T="[object ArrayBuffer]",P="[object DataView]",M="[object Float32Array]",N="[object Float64Array]",D="[object Int8Array]",q="[object Int16Array]",A="[object Int32Array]",z="[object Uint8Array]",j="[object Uint8ClampedArray]",F="[object Uint16Array]",$="[object Uint32Array]",B=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,U=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,G=RegExp(H.source),K=RegExp(V.source),Z=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,se=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ye=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,Se="\\ud800-\\udfff",we="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",ke="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",_e="\\ufe0e\\ufe0f",Re="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Le="['’]",Oe="["+Se+"]",Ie="["+Re+"]",Te="["+we+"]",Pe="\\d+",Me="["+Ee+"]",Ne="["+ke+"]",De="[^"+Se+Re+Pe+Ee+ke+Ce+"]",qe="\\ud83c[\\udffb-\\udfff]",Ae="[^"+Se+"]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",je="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+Ce+"]",$e="\\u200d",Be="(?:"+Ne+"|"+De+")",We="(?:"+Fe+"|"+De+")",Ue="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ve="(?:"+Te+"|"+qe+")?",Ge="["+_e+"]?",Ke=Ge+Ve+"(?:"+$e+"(?:"+[Ae,ze,je].join("|")+")"+Ge+Ve+")*",Ze="(?:"+[Me,ze,je].join("|")+")"+Ke,Je="(?:"+[Ae+Te+"?",Te,ze,je,Oe].join("|")+")",Xe=RegExp(Le,"g"),Qe=RegExp(Te,"g"),Ye=RegExp(qe+"(?="+qe+")|"+Je+Ke,"g"),et=RegExp([Fe+"?"+Ne+"+"+Ue+"(?="+[Ie,Fe,"$"].join("|")+")",We+"+"+He+"(?="+[Ie,Fe+Be,"$"].join("|")+")",Fe+"?"+Be+"+"+Ue,Fe+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,Ze].join("|"),"g"),tt=RegExp("["+$e+Se+we+_e+"]"),nt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ot=-1,it={};it[M]=it[N]=it[D]=it[q]=it[A]=it[z]=it[j]=it[F]=it[$]=!0,it[m]=it[g]=it[T]=it[v]=it[P]=it[b]=it[y]=it[x]=it[w]=it[E]=it[k]=it[_]=it[R]=it[L]=it[I]=!1;var at={};at[m]=at[g]=at[T]=at[P]=at[v]=at[b]=at[M]=at[N]=at[D]=at[q]=at[A]=at[w]=at[E]=at[k]=at[_]=at[R]=at[L]=at[O]=at[z]=at[j]=at[F]=at[$]=!0,at[y]=at[x]=at[I]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ct=parseInt,ut="object"==typeof n&&n&&n.Object===Object&&n,dt="object"==typeof self&&self&&self.Object===Object&&self,ft=ut||dt||Function("return this")(),pt=t&&!t.nodeType&&t,ht=pt&&e&&!e.nodeType&&e,mt=ht&&ht.exports===pt,gt=mt&&ut.process,vt=function(){try{var e=ht&&ht.require&&ht.require("util").types;return e||gt&&gt.binding&&gt.binding("util")}catch(e){}}(),bt=vt&&vt.isArrayBuffer,yt=vt&&vt.isDate,xt=vt&&vt.isMap,St=vt&&vt.isRegExp,wt=vt&&vt.isSet,Et=vt&&vt.isTypedArray;function kt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ct(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function _t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Rt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ot(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function It(e,t){return!(null==e||!e.length)&&Ft(e,t,0)>-1}function Tt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Mt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Nt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Dt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function qt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var At=Ut("length");function zt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function jt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ft(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):jt(e,Bt,n)}function $t(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Bt(e){return e!=e}function Wt(e,t){var n=null==e?0:e.length;return n?Gt(e,t)/n:f}function Ut(e){return function(t){return null==t?r:t[e]}}function Ht(e){return function(t){return null==e?r:e[t]}}function Vt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Gt(e,t){for(var n,o=-1,i=e.length;++o<i;){var a=t(e[o]);a!==r&&(n=n===r?a:n+a)}return n}function Kt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Zt(e){return e?e.slice(0,pn(e)+1).replace(re,""):e}function Jt(e){return function(t){return e(t)}}function Xt(e,t){return Pt(t,(function(t){return e[t]}))}function Qt(e,t){return e.has(t)}function Yt(e,t){for(var n=-1,r=e.length;++n<r&&Ft(t,e[n],0)>-1;);return n}function en(e,t){for(var n=e.length;n--&&Ft(t,e[n],0)>-1;);return n}var tn=Ht({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),nn=Ht({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rn(e){return"\\"+lt[e]}function on(e){return tt.test(e)}function an(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var l=e[n];l!==t&&l!==a||(e[n]=a,i[o++]=n)}return i}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function dn(e){return on(e)?function(e){for(var t=Ye.lastIndex=0;Ye.test(e);)++t;return t}(e):At(e)}function fn(e){return on(e)?function(e){return e.match(Ye)||[]}(e):function(e){return e.split("")}(e)}function pn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var hn=Ht({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),mn=function e(t){var n=(t=null==t?ft:mn.defaults(ft.Object(),t,mn.pick(ft,rt))).Array,oe=t.Date,Se=t.Error,we=t.Function,Ee=t.Math,ke=t.Object,Ce=t.RegExp,_e=t.String,Re=t.TypeError,Le=n.prototype,Oe=we.prototype,Ie=ke.prototype,Te=t["__core-js_shared__"],Pe=Oe.toString,Me=Ie.hasOwnProperty,Ne=0,De=function(){var e=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),qe=Ie.toString,Ae=Pe.call(ke),ze=ft._,je=Ce("^"+Pe.call(Me).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fe=mt?t.Buffer:r,$e=t.Symbol,Be=t.Uint8Array,We=Fe?Fe.allocUnsafe:r,Ue=ln(ke.getPrototypeOf,ke),He=ke.create,Ve=Ie.propertyIsEnumerable,Ge=Le.splice,Ke=$e?$e.isConcatSpreadable:r,Ze=$e?$e.iterator:r,Je=$e?$e.toStringTag:r,Ye=function(){try{var e=ui(ke,"defineProperty");return e({},"",{}),e}catch(e){}}(),tt=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,lt=oe&&oe.now!==ft.Date.now&&oe.now,ut=t.setTimeout!==ft.setTimeout&&t.setTimeout,dt=Ee.ceil,pt=Ee.floor,ht=ke.getOwnPropertySymbols,gt=Fe?Fe.isBuffer:r,vt=t.isFinite,At=Le.join,Ht=ln(ke.keys,ke),gn=Ee.max,vn=Ee.min,bn=oe.now,yn=t.parseInt,xn=Ee.random,Sn=Le.reverse,wn=ui(t,"DataView"),En=ui(t,"Map"),kn=ui(t,"Promise"),Cn=ui(t,"Set"),_n=ui(t,"WeakMap"),Rn=ui(ke,"create"),Ln=_n&&new _n,On={},In=qi(wn),Tn=qi(En),Pn=qi(kn),Mn=qi(Cn),Nn=qi(_n),Dn=$e?$e.prototype:r,qn=Dn?Dn.valueOf:r,An=Dn?Dn.toString:r;function zn(e){if(Ya(e)&&!Ba(e)&&!(e instanceof Bn)){if(e instanceof $n)return e;if(Me.call(e,"__wrapped__"))return Ai(e)}return new $n(e)}var jn=function(){function e(){}return function(t){if(!Qa(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Fn(){}function $n(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function Bn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Un(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Hn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Un(e);this.size=t.size}function Kn(e,t){var n=Ba(e),r=!n&&$a(e),o=!n&&!r&&Va(e),i=!n&&!r&&!o&&ll(e),a=n||r||o||i,l=a?Kt(e.length,_e):[],s=l.length;for(var c in e)!t&&!Me.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||vi(c,s))||l.push(c);return l}function Zn(e){var t=e.length;return t?e[Vr(0,t-1)]:r}function Jn(e,t){return Mi(Lo(e),ir(t,0,e.length))}function Xn(e){return Mi(Lo(e))}function Qn(e,t,n){(n!==r&&!za(e[t],n)||n===r&&!(t in e))&&rr(e,t,n)}function Yn(e,t,n){var o=e[t];Me.call(e,t)&&za(o,n)&&(n!==r||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(za(e[n][0],t))return n;return-1}function tr(e,t,n,r){return ur(e,(function(e,o,i){t(r,e,n(e),i)})),r}function nr(e,t){return e&&Oo(t,Ol(t),e)}function rr(e,t,n){"__proto__"==t&&Ye?Ye(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var o=-1,i=t.length,a=n(i),l=null==e;++o<i;)a[o]=l?r:kl(e,t[o]);return a}function ir(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function ar(e,t,n,o,i,a){var l,s=1&t,c=2&t,u=4&t;if(n&&(l=i?n(e,o,i,a):n(e)),l!==r)return l;if(!Qa(e))return e;var d=Ba(e);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Me.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return Lo(e,l)}else{var f=pi(e),p=f==x||f==S;if(Va(e))return wo(e,s);if(f==k||f==m||p&&!i){if(l=c||p?{}:mi(e),!s)return c?function(e,t){return Oo(e,fi(e),t)}(e,function(e,t){return e&&Oo(t,Il(t),e)}(l,e)):function(e,t){return Oo(e,di(e),t)}(e,nr(l,e))}else{if(!at[f])return i?e:{};l=function(e,t,n){var r,o=e.constructor;switch(t){case T:return Eo(e);case v:case b:return new o(+e);case P:return function(e,t){var n=t?Eo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case M:case N:case D:case q:case A:case z:case j:case F:case $:return ko(e,n);case w:return new o;case E:case L:return new o(e);case _:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case R:return new o;case O:return r=e,qn?ke(qn.call(r)):{}}}(e,f,s)}}a||(a=new Gn);var h=a.get(e);if(h)return h;a.set(e,l),ol(e)?e.forEach((function(r){l.add(ar(r,t,n,r,e,a))})):el(e)&&e.forEach((function(r,o){l.set(o,ar(r,t,n,o,e,a))}));var g=d?r:(u?c?ri:ni:c?Il:Ol)(e);return _t(g||e,(function(r,o){g&&(r=e[o=r]),Yn(l,o,ar(r,t,n,o,e,a))})),l}function lr(e,t,n){var o=n.length;if(null==e)return!o;for(e=ke(e);o--;){var i=n[o],a=t[i],l=e[i];if(l===r&&!(i in e)||!a(l))return!1}return!0}function sr(e,t,n){if("function"!=typeof e)throw new Re(o);return Oi((function(){e.apply(r,n)}),t)}function cr(e,t,n,r){var o=-1,i=It,a=!0,l=e.length,s=[],c=t.length;if(!l)return s;n&&(t=Pt(t,Jt(n))),r?(i=Tt,a=!1):t.length>=200&&(i=Qt,a=!1,t=new Vn(t));e:for(;++o<l;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var f=c;f--;)if(t[f]===d)continue e;s.push(u)}else i(t,d,r)||s.push(u)}return s}zn.templateSettings={escape:Z,evaluate:J,interpolate:X,variable:"",imports:{_:zn}},zn.prototype=Fn.prototype,zn.prototype.constructor=zn,$n.prototype=jn(Fn.prototype),$n.prototype.constructor=$n,Bn.prototype=jn(Fn.prototype),Bn.prototype.constructor=Bn,Wn.prototype.clear=function(){this.__data__=Rn?Rn(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(Rn){var n=t[e];return n===i?r:n}return Me.call(t,e)?t[e]:r},Wn.prototype.has=function(e){var t=this.__data__;return Rn?t[e]!==r:Me.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Rn&&t===r?i:t,this},Un.prototype.clear=function(){this.__data__=[],this.size=0},Un.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,0))},Un.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?r:t[n][1]},Un.prototype.has=function(e){return er(this.__data__,e)>-1},Un.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Hn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(En||Un),string:new Wn}},Hn.prototype.delete=function(e){var t=si(this,e).delete(e);return this.size-=t?1:0,t},Hn.prototype.get=function(e){return si(this,e).get(e)},Hn.prototype.has=function(e){return si(this,e).has(e)},Hn.prototype.set=function(e,t){var n=si(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Vn.prototype.add=Vn.prototype.push=function(e){return this.__data__.set(e,i),this},Vn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Un,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Un){var r=n.__data__;if(!En||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hn(r)}return n.set(e,t),this.size=n.size,this};var ur=Po(br),dr=Po(yr,!0);function fr(e,t){var n=!0;return ur(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function pr(e,t,n){for(var o=-1,i=e.length;++o<i;){var a=e[o],l=t(a);if(null!=l&&(s===r?l==l&&!al(l):n(l,s)))var s=l,c=a}return c}function hr(e,t){var n=[];return ur(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function mr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=gi),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?mr(l,t-1,n,r,o):Mt(o,l):r||(o[o.length]=l)}return o}var gr=Mo(),vr=Mo(!0);function br(e,t){return e&&gr(e,t,Ol)}function yr(e,t){return e&&vr(e,t,Ol)}function xr(e,t){return Ot(t,(function(t){return Za(e[t])}))}function Sr(e,t){for(var n=0,o=(t=bo(t,e)).length;null!=e&&n<o;)e=e[Di(t[n++])];return n&&n==o?e:r}function wr(e,t,n){var r=t(e);return Ba(e)?r:Mt(r,n(e))}function Er(e){return null==e?e===r?"[object Undefined]":"[object Null]":Je&&Je in ke(e)?function(e){var t=Me.call(e,Je),n=e[Je];try{e[Je]=r;var o=!0}catch(e){}var i=qe.call(e);return o&&(t?e[Je]=n:delete e[Je]),i}(e):function(e){return qe.call(e)}(e)}function kr(e,t){return e>t}function Cr(e,t){return null!=e&&Me.call(e,t)}function _r(e,t){return null!=e&&t in ke(e)}function Rr(e,t,o){for(var i=o?Tt:It,a=e[0].length,l=e.length,s=l,c=n(l),u=1/0,d=[];s--;){var f=e[s];s&&t&&(f=Pt(f,Jt(t))),u=vn(f.length,u),c[s]=!o&&(t||a>=120&&f.length>=120)?new Vn(s&&f):r}f=e[0];var p=-1,h=c[0];e:for(;++p<a&&d.length<u;){var m=f[p],g=t?t(m):m;if(m=o||0!==m?m:0,!(h?Qt(h,g):i(d,g,o))){for(s=l;--s;){var v=c[s];if(!(v?Qt(v,g):i(e[s],g,o)))continue e}h&&h.push(g),d.push(m)}}return d}function Lr(e,t,n){var o=null==(e=_i(e,t=bo(t,e)))?e:e[Di(Ki(t))];return null==o?r:kt(o,e,n)}function Or(e){return Ya(e)&&Er(e)==m}function Ir(e,t,n,o,i){return e===t||(null==e||null==t||!Ya(e)&&!Ya(t)?e!=e&&t!=t:function(e,t,n,o,i,a){var l=Ba(e),s=Ba(t),c=l?g:pi(e),u=s?g:pi(t),d=(c=c==m?k:c)==k,f=(u=u==m?k:u)==k,p=c==u;if(p&&Va(e)){if(!Va(t))return!1;l=!0,d=!1}if(p&&!d)return a||(a=new Gn),l||ll(e)?ei(e,t,n,o,i,a):function(e,t,n,r,o,i,a){switch(n){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!i(new Be(e),new Be(t)));case v:case b:case E:return za(+e,+t);case y:return e.name==t.name&&e.message==t.message;case _:case L:return e==t+"";case w:var l=an;case R:var s=1&r;if(l||(l=cn),e.size!=t.size&&!s)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=ei(l(e),l(t),r,o,i,a);return a.delete(e),u;case O:if(qn)return qn.call(e)==qn.call(t)}return!1}(e,t,c,n,o,i,a);if(!(1&n)){var h=d&&Me.call(e,"__wrapped__"),x=f&&Me.call(t,"__wrapped__");if(h||x){var S=h?e.value():e,C=x?t.value():t;return a||(a=new Gn),i(S,C,n,o,a)}}return!!p&&(a||(a=new Gn),function(e,t,n,o,i,a){var l=1&n,s=ni(e),c=s.length,u=ni(t),d=u.length;if(c!=d&&!l)return!1;for(var f=c;f--;){var p=s[f];if(!(l?p in t:Me.call(t,p)))return!1}var h=a.get(e),m=a.get(t);if(h&&m)return h==t&&m==e;var g=!0;a.set(e,t),a.set(t,e);for(var v=l;++f<c;){var b=e[p=s[f]],y=t[p];if(o)var x=l?o(y,b,p,t,e,a):o(b,y,p,e,t,a);if(!(x===r?b===y||i(b,y,n,o,a):x)){g=!1;break}v||(v="constructor"==p)}if(g&&!v){var S=e.constructor,w=t.constructor;S==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof S&&S instanceof S&&"function"==typeof w&&w instanceof w||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,n,o,i,a))}(e,t,n,o,Ir,i))}function Tr(e,t,n,o){var i=n.length,a=i,l=!o;if(null==e)return!a;for(e=ke(e);i--;){var s=n[i];if(l&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var c=(s=n[i])[0],u=e[c],d=s[1];if(l&&s[2]){if(u===r&&!(c in e))return!1}else{var f=new Gn;if(o)var p=o(u,d,c,e,t,f);if(!(p===r?Ir(d,u,3,o,f):p))return!1}}return!0}function Pr(e){return!(!Qa(e)||(t=e,De&&De in t))&&(Za(e)?je:me).test(qi(e));var t}function Mr(e){return"function"==typeof e?e:null==e?ts:"object"==typeof e?Ba(e)?jr(e[0],e[1]):zr(e):us(e)}function Nr(e){if(!wi(e))return Ht(e);var t=[];for(var n in ke(e))Me.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Dr(e){if(!Qa(e))return function(e){var t=[];if(null!=e)for(var n in ke(e))t.push(n);return t}(e);var t=wi(e),n=[];for(var r in e)("constructor"!=r||!t&&Me.call(e,r))&&n.push(r);return n}function qr(e,t){return e<t}function Ar(e,t){var r=-1,o=Ua(e)?n(e.length):[];return ur(e,(function(e,n,i){o[++r]=t(e,n,i)})),o}function zr(e){var t=ci(e);return 1==t.length&&t[0][2]?ki(t[0][0],t[0][1]):function(n){return n===e||Tr(n,e,t)}}function jr(e,t){return yi(e)&&Ei(t)?ki(Di(e),t):function(n){var o=kl(n,e);return o===r&&o===t?Cl(n,e):Ir(t,o,3)}}function Fr(e,t,n,o,i){e!==t&&gr(t,(function(a,l){if(i||(i=new Gn),Qa(a))!function(e,t,n,o,i,a,l){var s=Ri(e,n),c=Ri(t,n),u=l.get(c);if(u)Qn(e,n,u);else{var d=a?a(s,c,n+"",e,t,l):r,f=d===r;if(f){var p=Ba(c),h=!p&&Va(c),m=!p&&!h&&ll(c);d=c,p||h||m?Ba(s)?d=s:Ha(s)?d=Lo(s):h?(f=!1,d=wo(c,!0)):m?(f=!1,d=ko(c,!0)):d=[]:nl(c)||$a(c)?(d=s,$a(s)?d=ml(s):Qa(s)&&!Za(s)||(d=mi(c))):f=!1}f&&(l.set(c,d),i(d,c,o,a,l),l.delete(c)),Qn(e,n,d)}}(e,t,l,n,Fr,o,i);else{var s=o?o(Ri(e,l),a,l+"",e,t,i):r;s===r&&(s=a),Qn(e,l,s)}}),Il)}function $r(e,t){var n=e.length;if(n)return vi(t+=t<0?n:0,n)?e[t]:r}function Br(e,t,n){t=t.length?Pt(t,(function(e){return Ba(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e})):[ts];var r=-1;t=Pt(t,Jt(li()));var o=Ar(e,(function(e,n,o){var i=Pt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;++r<a;){var s=Co(o[r],i[r]);if(s)return r>=l?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Wr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],l=Sr(e,a);n(l,a)&&Xr(i,bo(a,e),l)}return i}function Ur(e,t,n,r){var o=r?$t:Ft,i=-1,a=t.length,l=e;for(e===t&&(t=Lo(t)),n&&(l=Pt(e,Jt(n)));++i<a;)for(var s=0,c=t[i],u=n?n(c):c;(s=o(l,u,s,r))>-1;)l!==e&&Ge.call(l,s,1),Ge.call(e,s,1);return e}function Hr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;vi(o)?Ge.call(e,o,1):co(e,o)}}return e}function Vr(e,t){return e+pt(xn()*(t-e+1))}function Gr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=pt(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return Ii(Ci(e,t,ts),e+"")}function Zr(e){return Zn(zl(e))}function Jr(e,t){var n=zl(e);return Mi(n,ir(t,0,n.length))}function Xr(e,t,n,o){if(!Qa(e))return e;for(var i=-1,a=(t=bo(t,e)).length,l=a-1,s=e;null!=s&&++i<a;){var c=Di(t[i]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=l){var d=s[c];(u=o?o(d,c,s):r)===r&&(u=Qa(d)?d:vi(t[i+1])?[]:{})}Yn(s,c,u),s=s[c]}return e}var Qr=Ln?function(e,t){return Ln.set(e,t),e}:ts,Yr=Ye?function(e,t){return Ye(e,"toString",{configurable:!0,enumerable:!1,value:Ql(t),writable:!0})}:ts;function eo(e){return Mi(zl(e))}function to(e,t,r){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=n(i);++o<i;)a[o]=e[o+t];return a}function no(e,t){var n;return ur(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ro(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!al(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return oo(e,t,ts,n)}function oo(e,t,n,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var l=(t=n(t))!=t,s=null===t,c=al(t),u=t===r;i<a;){var d=pt((i+a)/2),f=n(e[d]),p=f!==r,h=null===f,m=f==f,g=al(f);if(l)var v=o||m;else v=u?m&&(o||p):s?m&&p&&(o||!h):c?m&&p&&!h&&(o||!g):!h&&!g&&(o?f<=t:f<t);v?i=d+1:a=d}return vn(a,4294967294)}function io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],l=t?t(a):a;if(!n||!za(l,s)){var s=l;i[o++]=0===a?0:a}}return i}function ao(e){return"number"==typeof e?e:al(e)?f:+e}function lo(e){if("string"==typeof e)return e;if(Ba(e))return Pt(e,lo)+"";if(al(e))return An?An.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function so(e,t,n){var r=-1,o=It,i=e.length,a=!0,l=[],s=l;if(n)a=!1,o=Tt;else if(i>=200){var c=t?null:Ko(e);if(c)return cn(c);a=!1,o=Qt,s=new Vn}else s=t?[]:l;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var f=s.length;f--;)if(s[f]===d)continue e;t&&s.push(d),l.push(u)}else o(s,d,n)||(s!==l&&s.push(d),l.push(u))}return l}function co(e,t){return null==(e=_i(e,t=bo(t,e)))||delete e[Di(Ki(t))]}function uo(e,t,n,r){return Xr(e,t,n(Sr(e,t)),r)}function fo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?to(e,r?0:i,r?i+1:o):to(e,r?i+1:0,r?o:i)}function po(e,t){var n=e;return n instanceof Bn&&(n=n.value()),Nt(t,(function(e,t){return t.func.apply(t.thisArg,Mt([e],t.args))}),n)}function ho(e,t,r){var o=e.length;if(o<2)return o?so(e[0]):[];for(var i=-1,a=n(o);++i<o;)for(var l=e[i],s=-1;++s<o;)s!=i&&(a[i]=cr(a[i]||l,e[s],t,r));return so(mr(a,1),t,r)}function mo(e,t,n){for(var o=-1,i=e.length,a=t.length,l={};++o<i;){var s=o<a?t[o]:r;n(l,e[o],s)}return l}function go(e){return Ha(e)?e:[]}function vo(e){return"function"==typeof e?e:ts}function bo(e,t){return Ba(e)?e:yi(e,t)?[e]:Ni(gl(e))}var yo=Kr;function xo(e,t,n){var o=e.length;return n=n===r?o:n,!t&&n>=o?e:to(e,t,n)}var So=tt||function(e){return ft.clearTimeout(e)};function wo(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function Eo(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function ko(e,t){var n=t?Eo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Co(e,t){if(e!==t){var n=e!==r,o=null===e,i=e==e,a=al(e),l=t!==r,s=null===t,c=t==t,u=al(t);if(!s&&!u&&!a&&e>t||a&&l&&c&&!s&&!u||o&&l&&c||!n&&c||!i)return 1;if(!o&&!a&&!u&&e<t||u&&n&&i&&!o&&!a||s&&n&&i||!l&&i||!c)return-1}return 0}function _o(e,t,r,o){for(var i=-1,a=e.length,l=r.length,s=-1,c=t.length,u=gn(a-l,0),d=n(c+u),f=!o;++s<c;)d[s]=t[s];for(;++i<l;)(f||i<a)&&(d[r[i]]=e[i]);for(;u--;)d[s++]=e[i++];return d}function Ro(e,t,r,o){for(var i=-1,a=e.length,l=-1,s=r.length,c=-1,u=t.length,d=gn(a-s,0),f=n(d+u),p=!o;++i<d;)f[i]=e[i];for(var h=i;++c<u;)f[h+c]=t[c];for(;++l<s;)(p||i<a)&&(f[h+r[l]]=e[i++]);return f}function Lo(e,t){var r=-1,o=e.length;for(t||(t=n(o));++r<o;)t[r]=e[r];return t}function Oo(e,t,n,o){var i=!n;n||(n={});for(var a=-1,l=t.length;++a<l;){var s=t[a],c=o?o(n[s],e[s],s,n,e):r;c===r&&(c=e[s]),i?rr(n,s,c):Yn(n,s,c)}return n}function Io(e,t){return function(n,r){var o=Ba(n)?Ct:tr,i=t?t():{};return o(n,e,li(r,2),i)}}function To(e){return Kr((function(t,n){var o=-1,i=n.length,a=i>1?n[i-1]:r,l=i>2?n[2]:r;for(a=e.length>3&&"function"==typeof a?(i--,a):r,l&&bi(n[0],n[1],l)&&(a=i<3?r:a,i=1),t=ke(t);++o<i;){var s=n[o];s&&e(t,s,o,a)}return t}))}function Po(e,t){return function(n,r){if(null==n)return n;if(!Ua(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=ke(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Mo(e){return function(t,n,r){for(var o=-1,i=ke(t),a=r(t),l=a.length;l--;){var s=a[e?l:++o];if(!1===n(i[s],s,i))break}return t}}function No(e){return function(t){var n=on(t=gl(t))?fn(t):r,o=n?n[0]:t.charAt(0),i=n?xo(n,1).join(""):t.slice(1);return o[e]()+i}}function Do(e){return function(t){return Nt(Zl($l(t).replace(Xe,"")),e,"")}}function qo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=jn(e.prototype),r=e.apply(n,t);return Qa(r)?r:n}}function Ao(e){return function(t,n,o){var i=ke(t);if(!Ua(t)){var a=li(n,3);t=Ol(t),n=function(e){return a(i[e],e,i)}}var l=e(t,n,o);return l>-1?i[a?t[l]:l]:r}}function zo(e){return ti((function(t){var n=t.length,i=n,a=$n.prototype.thru;for(e&&t.reverse();i--;){var l=t[i];if("function"!=typeof l)throw new Re(o);if(a&&!s&&"wrapper"==ii(l))var s=new $n([],!0)}for(i=s?i:n;++i<n;){var c=ii(l=t[i]),u="wrapper"==c?oi(l):r;s=u&&xi(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?s[ii(u[0])].apply(s,u[3]):1==l.length&&xi(l)?s[c]():s.thru(l)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Ba(r))return s.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function jo(e,t,o,i,a,l,c,u,d,f){var p=t&s,h=1&t,m=2&t,g=24&t,v=512&t,b=m?r:qo(e);return function s(){for(var y=arguments.length,x=n(y),S=y;S--;)x[S]=arguments[S];if(g)var w=ai(s),E=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(x,w);if(i&&(x=_o(x,i,a,g)),l&&(x=Ro(x,l,c,g)),y-=E,g&&y<f){var k=sn(x,w);return Vo(e,t,jo,s.placeholder,o,x,k,u,d,f-y)}var C=h?o:this,_=m?C[e]:e;return y=x.length,u?x=function(e,t){for(var n=e.length,o=vn(t.length,n),i=Lo(e);o--;){var a=t[o];e[o]=vi(a,n)?i[a]:r}return e}(x,u):v&&y>1&&x.reverse(),p&&d<y&&(x.length=d),this&&this!==ft&&this instanceof s&&(_=b||qo(_)),_.apply(C,x)}}function Fo(e,t){return function(n,r){return function(e,t,n,r){return br(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function $o(e,t){return function(n,o){var i;if(n===r&&o===r)return t;if(n!==r&&(i=n),o!==r){if(i===r)return o;"string"==typeof n||"string"==typeof o?(n=lo(n),o=lo(o)):(n=ao(n),o=ao(o)),i=e(n,o)}return i}}function Bo(e){return ti((function(t){return t=Pt(t,Jt(li())),Kr((function(n){var r=this;return e(t,(function(e){return kt(e,r,n)}))}))}))}function Wo(e,t){var n=(t=t===r?" ":lo(t)).length;if(n<2)return n?Gr(t,e):t;var o=Gr(t,dt(e/dn(t)));return on(t)?xo(fn(o),0,e).join(""):o.slice(0,e)}function Uo(e){return function(t,o,i){return i&&"number"!=typeof i&&bi(t,o,i)&&(o=i=r),t=dl(t),o===r?(o=t,t=0):o=dl(o),function(e,t,r,o){for(var i=-1,a=gn(dt((t-e)/(r||1)),0),l=n(a);a--;)l[o?a:++i]=e,e+=r;return l}(t,o,i=i===r?t<o?1:-1:dl(i),e)}}function Ho(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=hl(t),n=hl(n)),e(t,n)}}function Vo(e,t,n,o,i,a,s,c,u,d){var f=8&t;t|=f?l:64,4&(t&=~(f?64:l))||(t&=-4);var p=[e,t,i,f?a:r,f?s:r,f?r:a,f?r:s,c,u,d],h=n.apply(r,p);return xi(e)&&Li(h,p),h.placeholder=o,Ti(h,e,t)}function Go(e){var t=Ee[e];return function(e,n){if(e=hl(e),(n=null==n?0:vn(fl(n),292))&&vt(e)){var r=(gl(e)+"e").split("e");return+((r=(gl(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ko=Cn&&1/cn(new Cn([,-0]))[1]==u?function(e){return new Cn(e)}:as;function Zo(e){return function(t){var n=pi(t);return n==w?an(t):n==R?un(t):function(e,t){return Pt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jo(e,t,i,u,d,f,p,h){var m=2&t;if(!m&&"function"!=typeof e)throw new Re(o);var g=u?u.length:0;if(g||(t&=-97,u=d=r),p=p===r?p:gn(fl(p),0),h=h===r?h:fl(h),g-=d?d.length:0,64&t){var v=u,b=d;u=d=r}var y=m?r:oi(e),x=[e,t,i,u,d,v,b,f,p,h];if(y&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,l=r==s&&8==n||r==s&&n==c&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!l)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var d=e[3];e[3]=d?_o(d,u,t[4]):u,e[4]=d?sn(e[3],a):t[4]}(u=t[5])&&(d=e[5],e[5]=d?Ro(d,u,t[6]):u,e[6]=d?sn(e[5],a):t[6]),(u=t[7])&&(e[7]=u),r&s&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(x,y),e=x[0],t=x[1],i=x[2],u=x[3],d=x[4],!(h=x[9]=x[9]===r?m?0:e.length:gn(x[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)S=8==t||16==t?function(e,t,o){var i=qo(e);return function a(){for(var l=arguments.length,s=n(l),c=l,u=ai(a);c--;)s[c]=arguments[c];var d=l<3&&s[0]!==u&&s[l-1]!==u?[]:sn(s,u);return(l-=d.length)<o?Vo(e,t,jo,a.placeholder,r,s,d,r,r,o-l):kt(this&&this!==ft&&this instanceof a?i:e,this,s)}}(e,t,h):t!=l&&33!=t||d.length?jo.apply(r,x):function(e,t,r,o){var i=1&t,a=qo(e);return function t(){for(var l=-1,s=arguments.length,c=-1,u=o.length,d=n(u+s),f=this&&this!==ft&&this instanceof t?a:e;++c<u;)d[c]=o[c];for(;s--;)d[c++]=arguments[++l];return kt(f,i?r:this,d)}}(e,t,i,u);else var S=function(e,t,n){var r=1&t,o=qo(e);return function t(){return(this&&this!==ft&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,i);return Ti((y?Qr:Li)(S,x),e,t)}function Xo(e,t,n,o){return e===r||za(e,Ie[n])&&!Me.call(o,n)?t:e}function Qo(e,t,n,o,i,a){return Qa(e)&&Qa(t)&&(a.set(t,e),Fr(e,t,r,Qo,a),a.delete(t)),e}function Yo(e){return nl(e)?r:e}function ei(e,t,n,o,i,a){var l=1&n,s=e.length,c=t.length;if(s!=c&&!(l&&c>s))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,h=2&n?new Vn:r;for(a.set(e,t),a.set(t,e);++f<s;){var m=e[f],g=t[f];if(o)var v=l?o(g,m,f,t,e,a):o(m,g,f,e,t,a);if(v!==r){if(v)continue;p=!1;break}if(h){if(!qt(t,(function(e,t){if(!Qt(h,t)&&(m===e||i(m,e,n,o,a)))return h.push(t)}))){p=!1;break}}else if(m!==g&&!i(m,g,n,o,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function ti(e){return Ii(Ci(e,r,Wi),e+"")}function ni(e){return wr(e,Ol,di)}function ri(e){return wr(e,Il,fi)}var oi=Ln?function(e){return Ln.get(e)}:as;function ii(e){for(var t=e.name+"",n=On[t],r=Me.call(On,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ai(e){return(Me.call(zn,"placeholder")?zn:e).placeholder}function li(){var e=zn.iteratee||ns;return e=e===ns?Mr:e,arguments.length?e(arguments[0],arguments[1]):e}function si(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function ci(e){for(var t=Ol(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ei(o)]}return t}function ui(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return Pr(n)?n:r}var di=ht?function(e){return null==e?[]:(e=ke(e),Ot(ht(e),(function(t){return Ve.call(e,t)})))}:ps,fi=ht?function(e){for(var t=[];e;)Mt(t,di(e)),e=Ue(e);return t}:ps,pi=Er;function hi(e,t,n){for(var r=-1,o=(t=bo(t,e)).length,i=!1;++r<o;){var a=Di(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Xa(o)&&vi(a,o)&&(Ba(e)||$a(e))}function mi(e){return"function"!=typeof e.constructor||wi(e)?{}:jn(Ue(e))}function gi(e){return Ba(e)||$a(e)||!!(Ke&&e&&e[Ke])}function vi(e,t){var n=typeof e;return!!(t=null==t?d:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function bi(e,t,n){if(!Qa(n))return!1;var r=typeof t;return!!("number"==r?Ua(n)&&vi(t,n.length):"string"==r&&t in n)&&za(n[t],e)}function yi(e,t){if(Ba(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!al(e))||Y.test(e)||!Q.test(e)||null!=t&&e in ke(t)}function xi(e){var t=ii(e),n=zn[t];if("function"!=typeof n||!(t in Bn.prototype))return!1;if(e===n)return!0;var r=oi(n);return!!r&&e===r[0]}(wn&&pi(new wn(new ArrayBuffer(1)))!=P||En&&pi(new En)!=w||kn&&pi(kn.resolve())!=C||Cn&&pi(new Cn)!=R||_n&&pi(new _n)!=I)&&(pi=function(e){var t=Er(e),n=t==k?e.constructor:r,o=n?qi(n):"";if(o)switch(o){case In:return P;case Tn:return w;case Pn:return C;case Mn:return R;case Nn:return I}return t});var Si=Te?Za:hs;function wi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ie)}function Ei(e){return e==e&&!Qa(e)}function ki(e,t){return function(n){return null!=n&&n[e]===t&&(t!==r||e in ke(n))}}function Ci(e,t,o){return t=gn(t===r?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=gn(r.length-t,0),l=n(a);++i<a;)l[i]=r[t+i];i=-1;for(var s=n(t+1);++i<t;)s[i]=r[i];return s[t]=o(l),kt(e,this,s)}}function _i(e,t){return t.length<2?e:Sr(e,to(t,0,-1))}function Ri(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Li=Pi(Qr),Oi=ut||function(e,t){return ft.setTimeout(e,t)},Ii=Pi(Yr);function Ti(e,t,n){var r=t+"";return Ii(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return _t(h,(function(n){var r="_."+n[0];t&n[1]&&!It(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(le):[]}(r),n)))}function Pi(e){var t=0,n=0;return function(){var o=bn(),i=16-(o-n);if(n=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Mi(e,t){var n=-1,o=e.length,i=o-1;for(t=t===r?o:t;++n<t;){var a=Vr(n,i),l=e[a];e[a]=e[n],e[n]=l}return e.length=t,e}var Ni=function(e){var t=Pa(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(ue,"$1"):n||e)})),t}));function Di(e){if("string"==typeof e||al(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function qi(e){if(null!=e){try{return Pe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ai(e){if(e instanceof Bn)return e.clone();var t=new $n(e.__wrapped__,e.__chain__);return t.__actions__=Lo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zi=Kr((function(e,t){return Ha(e)?cr(e,mr(t,1,Ha,!0)):[]})),ji=Kr((function(e,t){var n=Ki(t);return Ha(n)&&(n=r),Ha(e)?cr(e,mr(t,1,Ha,!0),li(n,2)):[]})),Fi=Kr((function(e,t){var n=Ki(t);return Ha(n)&&(n=r),Ha(e)?cr(e,mr(t,1,Ha,!0),r,n):[]}));function $i(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:fl(n);return o<0&&(o=gn(r+o,0)),jt(e,li(t,3),o)}function Bi(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return n!==r&&(i=fl(n),i=n<0?gn(o+i,0):vn(i,o-1)),jt(e,li(t,3),i,!0)}function Wi(e){return null!=e&&e.length?mr(e,1):[]}function Ui(e){return e&&e.length?e[0]:r}var Hi=Kr((function(e){var t=Pt(e,go);return t.length&&t[0]===e[0]?Rr(t):[]})),Vi=Kr((function(e){var t=Ki(e),n=Pt(e,go);return t===Ki(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Rr(n,li(t,2)):[]})),Gi=Kr((function(e){var t=Ki(e),n=Pt(e,go);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?Rr(n,r,t):[]}));function Ki(e){var t=null==e?0:e.length;return t?e[t-1]:r}var Zi=Kr(Ji);function Ji(e,t){return e&&e.length&&t&&t.length?Ur(e,t):e}var Xi=ti((function(e,t){var n=null==e?0:e.length,r=or(e,t);return Hr(e,Pt(t,(function(e){return vi(e,n)?+e:e})).sort(Co)),r}));function Qi(e){return null==e?e:Sn.call(e)}var Yi=Kr((function(e){return so(mr(e,1,Ha,!0))})),ea=Kr((function(e){var t=Ki(e);return Ha(t)&&(t=r),so(mr(e,1,Ha,!0),li(t,2))})),ta=Kr((function(e){var t=Ki(e);return t="function"==typeof t?t:r,so(mr(e,1,Ha,!0),r,t)}));function na(e){if(!e||!e.length)return[];var t=0;return e=Ot(e,(function(e){if(Ha(e))return t=gn(e.length,t),!0})),Kt(t,(function(t){return Pt(e,Ut(t))}))}function ra(e,t){if(!e||!e.length)return[];var n=na(e);return null==t?n:Pt(n,(function(e){return kt(t,r,e)}))}var oa=Kr((function(e,t){return Ha(e)?cr(e,t):[]})),ia=Kr((function(e){return ho(Ot(e,Ha))})),aa=Kr((function(e){var t=Ki(e);return Ha(t)&&(t=r),ho(Ot(e,Ha),li(t,2))})),la=Kr((function(e){var t=Ki(e);return t="function"==typeof t?t:r,ho(Ot(e,Ha),r,t)})),sa=Kr(na),ca=Kr((function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,ra(e,n)}));function ua(e){var t=zn(e);return t.__chain__=!0,t}function da(e,t){return t(e)}var fa=ti((function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,i=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Bn&&vi(n)?((o=o.slice(n,+n+(t?1:0))).__actions__.push({func:da,args:[i],thisArg:r}),new $n(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(r),e}))):this.thru(i)})),pa=Io((function(e,t,n){Me.call(e,n)?++e[n]:rr(e,n,1)})),ha=Ao($i),ma=Ao(Bi);function ga(e,t){return(Ba(e)?_t:ur)(e,li(t,3))}function va(e,t){return(Ba(e)?Rt:dr)(e,li(t,3))}var ba=Io((function(e,t,n){Me.call(e,n)?e[n].push(t):rr(e,n,[t])})),ya=Kr((function(e,t,r){var o=-1,i="function"==typeof t,a=Ua(e)?n(e.length):[];return ur(e,(function(e){a[++o]=i?kt(t,e,r):Lr(e,t,r)})),a})),xa=Io((function(e,t,n){rr(e,n,t)}));function Sa(e,t){return(Ba(e)?Pt:Ar)(e,li(t,3))}var wa=Io((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Ea=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&bi(e,t[0],t[1])?t=[]:n>2&&bi(t[0],t[1],t[2])&&(t=[t[0]]),Br(e,mr(t,1),[])})),ka=lt||function(){return ft.Date.now()};function Ca(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,Jo(e,s,r,r,r,r,t)}function _a(e,t){var n;if("function"!=typeof t)throw new Re(o);return e=fl(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Ra=Kr((function(e,t,n){var r=1;if(n.length){var o=sn(n,ai(Ra));r|=l}return Jo(e,r,t,n,o)})),La=Kr((function(e,t,n){var r=3;if(n.length){var o=sn(n,ai(La));r|=l}return Jo(t,r,e,n,o)}));function Oa(e,t,n){var i,a,l,s,c,u,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new Re(o);function m(t){var n=i,o=a;return i=a=r,d=t,s=e.apply(o,n)}function g(e){var n=e-u;return u===r||n>=t||n<0||p&&e-d>=l}function v(){var e=ka();if(g(e))return b(e);c=Oi(v,function(e){var n=t-(e-u);return p?vn(n,l-(e-d)):n}(e))}function b(e){return c=r,h&&i?m(e):(i=a=r,s)}function y(){var e=ka(),n=g(e);if(i=arguments,a=this,u=e,n){if(c===r)return function(e){return d=e,c=Oi(v,t),f?m(e):s}(u);if(p)return So(c),c=Oi(v,t),m(u)}return c===r&&(c=Oi(v,t)),s}return t=hl(t)||0,Qa(n)&&(f=!!n.leading,l=(p="maxWait"in n)?gn(hl(n.maxWait)||0,t):l,h="trailing"in n?!!n.trailing:h),y.cancel=function(){c!==r&&So(c),d=0,i=u=a=c=r},y.flush=function(){return c===r?s:b(ka())},y}var Ia=Kr((function(e,t){return sr(e,1,t)})),Ta=Kr((function(e,t,n){return sr(e,hl(t)||0,n)}));function Pa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Re(o);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Pa.Cache||Hn),n}function Ma(e){if("function"!=typeof e)throw new Re(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Pa.Cache=Hn;var Na=yo((function(e,t){var n=(t=1==t.length&&Ba(t[0])?Pt(t[0],Jt(li())):Pt(mr(t,1),Jt(li()))).length;return Kr((function(r){for(var o=-1,i=vn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return kt(e,this,r)}))})),Da=Kr((function(e,t){var n=sn(t,ai(Da));return Jo(e,l,r,t,n)})),qa=Kr((function(e,t){var n=sn(t,ai(qa));return Jo(e,64,r,t,n)})),Aa=ti((function(e,t){return Jo(e,c,r,r,r,t)}));function za(e,t){return e===t||e!=e&&t!=t}var ja=Ho(kr),Fa=Ho((function(e,t){return e>=t})),$a=Or(function(){return arguments}())?Or:function(e){return Ya(e)&&Me.call(e,"callee")&&!Ve.call(e,"callee")},Ba=n.isArray,Wa=bt?Jt(bt):function(e){return Ya(e)&&Er(e)==T};function Ua(e){return null!=e&&Xa(e.length)&&!Za(e)}function Ha(e){return Ya(e)&&Ua(e)}var Va=gt||hs,Ga=yt?Jt(yt):function(e){return Ya(e)&&Er(e)==b};function Ka(e){if(!Ya(e))return!1;var t=Er(e);return t==y||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!nl(e)}function Za(e){if(!Qa(e))return!1;var t=Er(e);return t==x||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==fl(e)}function Xa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function Qa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ya(e){return null!=e&&"object"==typeof e}var el=xt?Jt(xt):function(e){return Ya(e)&&pi(e)==w};function tl(e){return"number"==typeof e||Ya(e)&&Er(e)==E}function nl(e){if(!Ya(e)||Er(e)!=k)return!1;var t=Ue(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pe.call(n)==Ae}var rl=St?Jt(St):function(e){return Ya(e)&&Er(e)==_},ol=wt?Jt(wt):function(e){return Ya(e)&&pi(e)==R};function il(e){return"string"==typeof e||!Ba(e)&&Ya(e)&&Er(e)==L}function al(e){return"symbol"==typeof e||Ya(e)&&Er(e)==O}var ll=Et?Jt(Et):function(e){return Ya(e)&&Xa(e.length)&&!!it[Er(e)]},sl=Ho(qr),cl=Ho((function(e,t){return e<=t}));function ul(e){if(!e)return[];if(Ua(e))return il(e)?fn(e):Lo(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=pi(e);return(t==w?an:t==R?cn:zl)(e)}function dl(e){return e?(e=hl(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fl(e){var t=dl(e),n=t%1;return t==t?n?t-n:t:0}function pl(e){return e?ir(fl(e),0,p):0}function hl(e){if("number"==typeof e)return e;if(al(e))return f;if(Qa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=he.test(e);return n||ge.test(e)?ct(e.slice(2),n?2:8):pe.test(e)?f:+e}function ml(e){return Oo(e,Il(e))}function gl(e){return null==e?"":lo(e)}var vl=To((function(e,t){if(wi(t)||Ua(t))Oo(t,Ol(t),e);else for(var n in t)Me.call(t,n)&&Yn(e,n,t[n])})),bl=To((function(e,t){Oo(t,Il(t),e)})),yl=To((function(e,t,n,r){Oo(t,Il(t),e,r)})),xl=To((function(e,t,n,r){Oo(t,Ol(t),e,r)})),Sl=ti(or),wl=Kr((function(e,t){e=ke(e);var n=-1,o=t.length,i=o>2?t[2]:r;for(i&&bi(t[0],t[1],i)&&(o=1);++n<o;)for(var a=t[n],l=Il(a),s=-1,c=l.length;++s<c;){var u=l[s],d=e[u];(d===r||za(d,Ie[u])&&!Me.call(e,u))&&(e[u]=a[u])}return e})),El=Kr((function(e){return e.push(r,Qo),kt(Pl,r,e)}));function kl(e,t,n){var o=null==e?r:Sr(e,t);return o===r?n:o}function Cl(e,t){return null!=e&&hi(e,t,_r)}var _l=Fo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=qe.call(t)),e[t]=n}),Ql(ts)),Rl=Fo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=qe.call(t)),Me.call(e,t)?e[t].push(n):e[t]=[n]}),li),Ll=Kr(Lr);function Ol(e){return Ua(e)?Kn(e):Nr(e)}function Il(e){return Ua(e)?Kn(e,!0):Dr(e)}var Tl=To((function(e,t,n){Fr(e,t,n)})),Pl=To((function(e,t,n,r){Fr(e,t,n,r)})),Ml=ti((function(e,t){var n={};if(null==e)return n;var r=!1;t=Pt(t,(function(t){return t=bo(t,e),r||(r=t.length>1),t})),Oo(e,ri(e),n),r&&(n=ar(n,7,Yo));for(var o=t.length;o--;)co(n,t[o]);return n})),Nl=ti((function(e,t){return null==e?{}:function(e,t){return Wr(e,t,(function(t,n){return Cl(e,n)}))}(e,t)}));function Dl(e,t){if(null==e)return{};var n=Pt(ri(e),(function(e){return[e]}));return t=li(t),Wr(e,n,(function(e,n){return t(e,n[0])}))}var ql=Zo(Ol),Al=Zo(Il);function zl(e){return null==e?[]:Xt(e,Ol(e))}var jl=Do((function(e,t,n){return t=t.toLowerCase(),e+(n?Fl(t):t)}));function Fl(e){return Kl(gl(e).toLowerCase())}function $l(e){return(e=gl(e))&&e.replace(be,tn).replace(Qe,"")}var Bl=Do((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Wl=Do((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ul=No("toLowerCase"),Hl=Do((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Vl=Do((function(e,t,n){return e+(n?" ":"")+Kl(t)})),Gl=Do((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Kl=No("toUpperCase");function Zl(e,t,n){return e=gl(e),(t=n?r:t)===r?function(e){return nt.test(e)}(e)?function(e){return e.match(et)||[]}(e):function(e){return e.match(se)||[]}(e):e.match(t)||[]}var Jl=Kr((function(e,t){try{return kt(e,r,t)}catch(e){return Ka(e)?e:new Se(e)}})),Xl=ti((function(e,t){return _t(t,(function(t){t=Di(t),rr(e,t,Ra(e[t],e))})),e}));function Ql(e){return function(){return e}}var Yl=zo(),es=zo(!0);function ts(e){return e}function ns(e){return Mr("function"==typeof e?e:ar(e,1))}var rs=Kr((function(e,t){return function(n){return Lr(n,e,t)}})),os=Kr((function(e,t){return function(n){return Lr(e,n,t)}}));function is(e,t,n){var r=Ol(t),o=xr(t,r);null!=n||Qa(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=xr(t,Ol(t)));var i=!(Qa(n)&&"chain"in n&&!n.chain),a=Za(e);return _t(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Lo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Mt([this.value()],arguments))})})),e}function as(){}var ls=Bo(Pt),ss=Bo(Lt),cs=Bo(qt);function us(e){return yi(e)?Ut(Di(e)):function(e){return function(t){return Sr(t,e)}}(e)}var ds=Uo(),fs=Uo(!0);function ps(){return[]}function hs(){return!1}var ms,gs=$o((function(e,t){return e+t}),0),vs=Go("ceil"),bs=$o((function(e,t){return e/t}),1),ys=Go("floor"),xs=$o((function(e,t){return e*t}),1),Ss=Go("round"),ws=$o((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new Re(o);return e=fl(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Ca,zn.assign=vl,zn.assignIn=bl,zn.assignInWith=yl,zn.assignWith=xl,zn.at=Sl,zn.before=_a,zn.bind=Ra,zn.bindAll=Xl,zn.bindKey=La,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ba(e)?e:[e]},zn.chain=ua,zn.chunk=function(e,t,o){t=(o?bi(e,t,o):t===r)?1:gn(fl(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,l=0,s=n(dt(i/t));a<i;)s[l++]=to(e,a,a+=t);return s},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Mt(Ba(r)?Lo(r):[r],mr(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=li();return e=t?Pt(e,(function(e){if("function"!=typeof e[1])throw new Re(o);return[n(e[0]),e[1]]})):[],Kr((function(n){for(var r=-1;++r<t;){var o=e[r];if(kt(o[0],this,n))return kt(o[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=Ol(e);return function(n){return lr(n,e,t)}}(ar(e,1))},zn.constant=Ql,zn.countBy=pa,zn.create=function(e,t){var n=jn(e);return null==t?n:nr(n,t)},zn.curry=function e(t,n,o){var i=Jo(t,8,r,r,r,r,r,n=o?r:n);return i.placeholder=e.placeholder,i},zn.curryRight=function e(t,n,o){var i=Jo(t,16,r,r,r,r,r,n=o?r:n);return i.placeholder=e.placeholder,i},zn.debounce=Oa,zn.defaults=wl,zn.defaultsDeep=El,zn.defer=Ia,zn.delay=Ta,zn.difference=zi,zn.differenceBy=ji,zn.differenceWith=Fi,zn.drop=function(e,t,n){var o=null==e?0:e.length;return o?to(e,(t=n||t===r?1:fl(t))<0?0:t,o):[]},zn.dropRight=function(e,t,n){var o=null==e?0:e.length;return o?to(e,0,(t=o-(t=n||t===r?1:fl(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?fo(e,li(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?fo(e,li(t,3),!0):[]},zn.fill=function(e,t,n,o){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&bi(e,t,n)&&(n=0,o=i),function(e,t,n,o){var i=e.length;for((n=fl(n))<0&&(n=-n>i?0:i+n),(o=o===r||o>i?i:fl(o))<0&&(o+=i),o=n>o?0:pl(o);n<o;)e[n++]=t;return e}(e,t,n,o)):[]},zn.filter=function(e,t){return(Ba(e)?Ot:hr)(e,li(t,3))},zn.flatMap=function(e,t){return mr(Sa(e,t),1)},zn.flatMapDeep=function(e,t){return mr(Sa(e,t),u)},zn.flatMapDepth=function(e,t,n){return n=n===r?1:fl(n),mr(Sa(e,t),n)},zn.flatten=Wi,zn.flattenDeep=function(e){return null!=e&&e.length?mr(e,u):[]},zn.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===r?1:fl(t)):[]},zn.flip=function(e){return Jo(e,512)},zn.flow=Yl,zn.flowRight=es,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},zn.functions=function(e){return null==e?[]:xr(e,Ol(e))},zn.functionsIn=function(e){return null==e?[]:xr(e,Il(e))},zn.groupBy=ba,zn.initial=function(e){return null!=e&&e.length?to(e,0,-1):[]},zn.intersection=Hi,zn.intersectionBy=Vi,zn.intersectionWith=Gi,zn.invert=_l,zn.invertBy=Rl,zn.invokeMap=ya,zn.iteratee=ns,zn.keyBy=xa,zn.keys=Ol,zn.keysIn=Il,zn.map=Sa,zn.mapKeys=function(e,t){var n={};return t=li(t,3),br(e,(function(e,r,o){rr(n,t(e,r,o),e)})),n},zn.mapValues=function(e,t){var n={};return t=li(t,3),br(e,(function(e,r,o){rr(n,r,t(e,r,o))})),n},zn.matches=function(e){return zr(ar(e,1))},zn.matchesProperty=function(e,t){return jr(e,ar(t,1))},zn.memoize=Pa,zn.merge=Tl,zn.mergeWith=Pl,zn.method=rs,zn.methodOf=os,zn.mixin=is,zn.negate=Ma,zn.nthArg=function(e){return e=fl(e),Kr((function(t){return $r(t,e)}))},zn.omit=Ml,zn.omitBy=function(e,t){return Dl(e,Ma(li(t)))},zn.once=function(e){return _a(2,e)},zn.orderBy=function(e,t,n,o){return null==e?[]:(Ba(t)||(t=null==t?[]:[t]),Ba(n=o?r:n)||(n=null==n?[]:[n]),Br(e,t,n))},zn.over=ls,zn.overArgs=Na,zn.overEvery=ss,zn.overSome=cs,zn.partial=Da,zn.partialRight=qa,zn.partition=wa,zn.pick=Nl,zn.pickBy=Dl,zn.property=us,zn.propertyOf=function(e){return function(t){return null==e?r:Sr(e,t)}},zn.pull=Zi,zn.pullAll=Ji,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Ur(e,t,li(n,2)):e},zn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Ur(e,t,r,n):e},zn.pullAt=Xi,zn.range=ds,zn.rangeRight=fs,zn.rearg=Aa,zn.reject=function(e,t){return(Ba(e)?Ot:hr)(e,Ma(li(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=li(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Hr(e,o),n},zn.rest=function(e,t){if("function"!=typeof e)throw new Re(o);return Kr(e,t=t===r?t:fl(t))},zn.reverse=Qi,zn.sampleSize=function(e,t,n){return t=(n?bi(e,t,n):t===r)?1:fl(t),(Ba(e)?Jn:Jr)(e,t)},zn.set=function(e,t,n){return null==e?e:Xr(e,t,n)},zn.setWith=function(e,t,n,o){return o="function"==typeof o?o:r,null==e?e:Xr(e,t,n,o)},zn.shuffle=function(e){return(Ba(e)?Xn:eo)(e)},zn.slice=function(e,t,n){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&bi(e,t,n)?(t=0,n=o):(t=null==t?0:fl(t),n=n===r?o:fl(n)),to(e,t,n)):[]},zn.sortBy=Ea,zn.sortedUniq=function(e){return e&&e.length?io(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?io(e,li(t,2)):[]},zn.split=function(e,t,n){return n&&"number"!=typeof n&&bi(e,t,n)&&(t=n=r),(n=n===r?p:n>>>0)?(e=gl(e))&&("string"==typeof t||null!=t&&!rl(t))&&!(t=lo(t))&&on(e)?xo(fn(e),0,n):e.split(t,n):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Re(o);return t=null==t?0:gn(fl(t),0),Kr((function(n){var r=n[t],o=xo(n,0,t);return r&&Mt(o,r),kt(e,this,o)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?to(e,1,t):[]},zn.take=function(e,t,n){return e&&e.length?to(e,0,(t=n||t===r?1:fl(t))<0?0:t):[]},zn.takeRight=function(e,t,n){var o=null==e?0:e.length;return o?to(e,(t=o-(t=n||t===r?1:fl(t)))<0?0:t,o):[]},zn.takeRightWhile=function(e,t){return e&&e.length?fo(e,li(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?fo(e,li(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Re(o);return Qa(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Oa(e,t,{leading:r,maxWait:t,trailing:i})},zn.thru=da,zn.toArray=ul,zn.toPairs=ql,zn.toPairsIn=Al,zn.toPath=function(e){return Ba(e)?Pt(e,Di):al(e)?[e]:Lo(Ni(gl(e)))},zn.toPlainObject=ml,zn.transform=function(e,t,n){var r=Ba(e),o=r||Va(e)||ll(e);if(t=li(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Qa(e)&&Za(i)?jn(Ue(e)):{}}return(o?_t:br)(e,(function(e,r,o){return t(n,e,r,o)})),n},zn.unary=function(e){return Ca(e,1)},zn.union=Yi,zn.unionBy=ea,zn.unionWith=ta,zn.uniq=function(e){return e&&e.length?so(e):[]},zn.uniqBy=function(e,t){return e&&e.length?so(e,li(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?so(e,r,t):[]},zn.unset=function(e,t){return null==e||co(e,t)},zn.unzip=na,zn.unzipWith=ra,zn.update=function(e,t,n){return null==e?e:uo(e,t,vo(n))},zn.updateWith=function(e,t,n,o){return o="function"==typeof o?o:r,null==e?e:uo(e,t,vo(n),o)},zn.values=zl,zn.valuesIn=function(e){return null==e?[]:Xt(e,Il(e))},zn.without=oa,zn.words=Zl,zn.wrap=function(e,t){return Da(vo(t),e)},zn.xor=ia,zn.xorBy=aa,zn.xorWith=la,zn.zip=sa,zn.zipObject=function(e,t){return mo(e||[],t||[],Yn)},zn.zipObjectDeep=function(e,t){return mo(e||[],t||[],Xr)},zn.zipWith=ca,zn.entries=ql,zn.entriesIn=Al,zn.extend=bl,zn.extendWith=yl,is(zn,zn),zn.add=gs,zn.attempt=Jl,zn.camelCase=jl,zn.capitalize=Fl,zn.ceil=vs,zn.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=hl(n))==n?n:0),t!==r&&(t=(t=hl(t))==t?t:0),ir(hl(e),t,n)},zn.clone=function(e){return ar(e,4)},zn.cloneDeep=function(e){return ar(e,5)},zn.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:r)},zn.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:r)},zn.conformsTo=function(e,t){return null==t||lr(e,t,Ol(t))},zn.deburr=$l,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=bs,zn.endsWith=function(e,t,n){e=gl(e),t=lo(t);var o=e.length,i=n=n===r?o:ir(fl(n),0,o);return(n-=t.length)>=0&&e.slice(n,i)==t},zn.eq=za,zn.escape=function(e){return(e=gl(e))&&K.test(e)?e.replace(V,nn):e},zn.escapeRegExp=function(e){return(e=gl(e))&&ne.test(e)?e.replace(te,"\\$&"):e},zn.every=function(e,t,n){var o=Ba(e)?Lt:fr;return n&&bi(e,t,n)&&(t=r),o(e,li(t,3))},zn.find=ha,zn.findIndex=$i,zn.findKey=function(e,t){return zt(e,li(t,3),br)},zn.findLast=ma,zn.findLastIndex=Bi,zn.findLastKey=function(e,t){return zt(e,li(t,3),yr)},zn.floor=ys,zn.forEach=ga,zn.forEachRight=va,zn.forIn=function(e,t){return null==e?e:gr(e,li(t,3),Il)},zn.forInRight=function(e,t){return null==e?e:vr(e,li(t,3),Il)},zn.forOwn=function(e,t){return e&&br(e,li(t,3))},zn.forOwnRight=function(e,t){return e&&yr(e,li(t,3))},zn.get=kl,zn.gt=ja,zn.gte=Fa,zn.has=function(e,t){return null!=e&&hi(e,t,Cr)},zn.hasIn=Cl,zn.head=Ui,zn.identity=ts,zn.includes=function(e,t,n,r){e=Ua(e)?e:zl(e),n=n&&!r?fl(n):0;var o=e.length;return n<0&&(n=gn(o+n,0)),il(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ft(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:fl(n);return o<0&&(o=gn(r+o,0)),Ft(e,t,o)},zn.inRange=function(e,t,n){return t=dl(t),n===r?(n=t,t=0):n=dl(n),function(e,t,n){return e>=vn(t,n)&&e<gn(t,n)}(e=hl(e),t,n)},zn.invoke=Ll,zn.isArguments=$a,zn.isArray=Ba,zn.isArrayBuffer=Wa,zn.isArrayLike=Ua,zn.isArrayLikeObject=Ha,zn.isBoolean=function(e){return!0===e||!1===e||Ya(e)&&Er(e)==v},zn.isBuffer=Va,zn.isDate=Ga,zn.isElement=function(e){return Ya(e)&&1===e.nodeType&&!nl(e)},zn.isEmpty=function(e){if(null==e)return!0;if(Ua(e)&&(Ba(e)||"string"==typeof e||"function"==typeof e.splice||Va(e)||ll(e)||$a(e)))return!e.length;var t=pi(e);if(t==w||t==R)return!e.size;if(wi(e))return!Nr(e).length;for(var n in e)if(Me.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return Ir(e,t)},zn.isEqualWith=function(e,t,n){var o=(n="function"==typeof n?n:r)?n(e,t):r;return o===r?Ir(e,t,r,n):!!o},zn.isError=Ka,zn.isFinite=function(e){return"number"==typeof e&&vt(e)},zn.isFunction=Za,zn.isInteger=Ja,zn.isLength=Xa,zn.isMap=el,zn.isMatch=function(e,t){return e===t||Tr(e,t,ci(t))},zn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,Tr(e,t,ci(t),n)},zn.isNaN=function(e){return tl(e)&&e!=+e},zn.isNative=function(e){if(Si(e))throw new Se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=tl,zn.isObject=Qa,zn.isObjectLike=Ya,zn.isPlainObject=nl,zn.isRegExp=rl,zn.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=d},zn.isSet=ol,zn.isString=il,zn.isSymbol=al,zn.isTypedArray=ll,zn.isUndefined=function(e){return e===r},zn.isWeakMap=function(e){return Ya(e)&&pi(e)==I},zn.isWeakSet=function(e){return Ya(e)&&"[object WeakSet]"==Er(e)},zn.join=function(e,t){return null==e?"":At.call(e,t)},zn.kebabCase=Bl,zn.last=Ki,zn.lastIndexOf=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var i=o;return n!==r&&(i=(i=fl(n))<0?gn(o+i,0):vn(i,o-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):jt(e,Bt,i,!0)},zn.lowerCase=Wl,zn.lowerFirst=Ul,zn.lt=sl,zn.lte=cl,zn.max=function(e){return e&&e.length?pr(e,ts,kr):r},zn.maxBy=function(e,t){return e&&e.length?pr(e,li(t,2),kr):r},zn.mean=function(e){return Wt(e,ts)},zn.meanBy=function(e,t){return Wt(e,li(t,2))},zn.min=function(e){return e&&e.length?pr(e,ts,qr):r},zn.minBy=function(e,t){return e&&e.length?pr(e,li(t,2),qr):r},zn.stubArray=ps,zn.stubFalse=hs,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=xs,zn.nth=function(e,t){return e&&e.length?$r(e,fl(t)):r},zn.noConflict=function(){return ft._===this&&(ft._=ze),this},zn.noop=as,zn.now=ka,zn.pad=function(e,t,n){e=gl(e);var r=(t=fl(t))?dn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Wo(pt(o),n)+e+Wo(dt(o),n)},zn.padEnd=function(e,t,n){e=gl(e);var r=(t=fl(t))?dn(e):0;return t&&r<t?e+Wo(t-r,n):e},zn.padStart=function(e,t,n){e=gl(e);var r=(t=fl(t))?dn(e):0;return t&&r<t?Wo(t-r,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),yn(gl(e).replace(re,""),t||0)},zn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&bi(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=dl(e),t===r?(t=e,e=0):t=dl(t)),e>t){var o=e;e=t,t=o}if(n||e%1||t%1){var i=xn();return vn(e+i*(t-e+st("1e-"+((i+"").length-1))),t)}return Vr(e,t)},zn.reduce=function(e,t,n){var r=Ba(e)?Nt:Vt,o=arguments.length<3;return r(e,li(t,4),n,o,ur)},zn.reduceRight=function(e,t,n){var r=Ba(e)?Dt:Vt,o=arguments.length<3;return r(e,li(t,4),n,o,dr)},zn.repeat=function(e,t,n){return t=(n?bi(e,t,n):t===r)?1:fl(t),Gr(gl(e),t)},zn.replace=function(){var e=arguments,t=gl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,n){var o=-1,i=(t=bo(t,e)).length;for(i||(i=1,e=r);++o<i;){var a=null==e?r:e[Di(t[o])];a===r&&(o=i,a=n),e=Za(a)?a.call(e):a}return e},zn.round=Ss,zn.runInContext=e,zn.sample=function(e){return(Ba(e)?Zn:Zr)(e)},zn.size=function(e){if(null==e)return 0;if(Ua(e))return il(e)?dn(e):e.length;var t=pi(e);return t==w||t==R?e.size:Nr(e).length},zn.snakeCase=Hl,zn.some=function(e,t,n){var o=Ba(e)?qt:no;return n&&bi(e,t,n)&&(t=r),o(e,li(t,3))},zn.sortedIndex=function(e,t){return ro(e,t)},zn.sortedIndexBy=function(e,t,n){return oo(e,t,li(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ro(e,t);if(r<n&&za(e[r],t))return r}return-1},zn.sortedLastIndex=function(e,t){return ro(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return oo(e,t,li(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ro(e,t,!0)-1;if(za(e[n],t))return n}return-1},zn.startCase=Vl,zn.startsWith=function(e,t,n){return e=gl(e),n=null==n?0:ir(fl(n),0,e.length),t=lo(t),e.slice(n,n+t.length)==t},zn.subtract=ws,zn.sum=function(e){return e&&e.length?Gt(e,ts):0},zn.sumBy=function(e,t){return e&&e.length?Gt(e,li(t,2)):0},zn.template=function(e,t,n){var o=zn.templateSettings;n&&bi(e,t,n)&&(t=r),e=gl(e),t=yl({},t,o,Xo);var i,a,l=yl({},t.imports,o.imports,Xo),s=Ol(l),c=Xt(l,s),u=0,d=t.interpolate||ye,f="__p += '",p=Ce((t.escape||ye).source+"|"+d.source+"|"+(d===X?de:ye).source+"|"+(t.evaluate||ye).source+"|$","g"),h="//# sourceURL="+(Me.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ot+"]")+"\n";e.replace(p,(function(t,n,r,o,l,s){return r||(r=o),f+=e.slice(u,s).replace(xe,rn),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),l&&(a=!0,f+="';\n"+l+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=s+t.length,t})),f+="';\n";var m=Me.call(t,"variable")&&t.variable;if(m){if(ce.test(m))throw new Se("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(B,""):f).replace(W,"$1").replace(U,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Jl((function(){return we(s,h+"return "+f).apply(r,c)}));if(g.source=f,Ka(g))throw g;return g},zn.times=function(e,t){if((e=fl(e))<1||e>d)return[];var n=p,r=vn(e,p);t=li(t),e-=p;for(var o=Kt(r,t);++n<e;)t(n);return o},zn.toFinite=dl,zn.toInteger=fl,zn.toLength=pl,zn.toLower=function(e){return gl(e).toLowerCase()},zn.toNumber=hl,zn.toSafeInteger=function(e){return e?ir(fl(e),-9007199254740991,d):0===e?e:0},zn.toString=gl,zn.toUpper=function(e){return gl(e).toUpperCase()},zn.trim=function(e,t,n){if((e=gl(e))&&(n||t===r))return Zt(e);if(!e||!(t=lo(t)))return e;var o=fn(e),i=fn(t);return xo(o,Yt(o,i),en(o,i)+1).join("")},zn.trimEnd=function(e,t,n){if((e=gl(e))&&(n||t===r))return e.slice(0,pn(e)+1);if(!e||!(t=lo(t)))return e;var o=fn(e);return xo(o,0,en(o,fn(t))+1).join("")},zn.trimStart=function(e,t,n){if((e=gl(e))&&(n||t===r))return e.replace(re,"");if(!e||!(t=lo(t)))return e;var o=fn(e);return xo(o,Yt(o,fn(t))).join("")},zn.truncate=function(e,t){var n=30,o="...";if(Qa(t)){var i="separator"in t?t.separator:i;n="length"in t?fl(t.length):n,o="omission"in t?lo(t.omission):o}var a=(e=gl(e)).length;if(on(e)){var l=fn(e);a=l.length}if(n>=a)return e;var s=n-dn(o);if(s<1)return o;var c=l?xo(l,0,s).join(""):e.slice(0,s);if(i===r)return c+o;if(l&&(s+=c.length-s),rl(i)){if(e.slice(s).search(i)){var u,d=c;for(i.global||(i=Ce(i.source,gl(fe.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var f=u.index;c=c.slice(0,f===r?s:f)}}else if(e.indexOf(lo(i),s)!=s){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+o},zn.unescape=function(e){return(e=gl(e))&&G.test(e)?e.replace(H,hn):e},zn.uniqueId=function(e){var t=++Ne;return gl(e)+t},zn.upperCase=Gl,zn.upperFirst=Kl,zn.each=ga,zn.eachRight=va,zn.first=Ui,is(zn,(ms={},br(zn,(function(e,t){Me.call(zn.prototype,t)||(ms[t]=e)})),ms),{chain:!1}),zn.VERSION="4.17.21",_t(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),_t(["drop","take"],(function(e,t){Bn.prototype[e]=function(n){n=n===r?1:gn(fl(n),0);var o=this.__filtered__&&!t?new Bn(this):this.clone();return o.__filtered__?o.__takeCount__=vn(n,o.__takeCount__):o.__views__.push({size:vn(n,p),type:e+(o.__dir__<0?"Right":"")}),o},Bn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),_t(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Bn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:li(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),_t(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Bn.prototype[e]=function(){return this[n](1).value()[0]}})),_t(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Bn.prototype[e]=function(){return this.__filtered__?new Bn(this):this[n](1)}})),Bn.prototype.compact=function(){return this.filter(ts)},Bn.prototype.find=function(e){return this.filter(e).head()},Bn.prototype.findLast=function(e){return this.reverse().find(e)},Bn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new Bn(this):this.map((function(n){return Lr(n,e,t)}))})),Bn.prototype.reject=function(e){return this.filter(Ma(li(e)))},Bn.prototype.slice=function(e,t){e=fl(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Bn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=fl(t))<0?n.dropRight(-t):n.take(t-e)),n)},Bn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Bn.prototype.toArray=function(){return this.take(p)},br(Bn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=zn[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(zn.prototype[t]=function(){var t=this.__wrapped__,l=o?[1]:arguments,s=t instanceof Bn,c=l[0],u=s||Ba(t),d=function(e){var t=i.apply(zn,Mt([e],l));return o&&f?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(s=u=!1);var f=this.__chain__,p=!!this.__actions__.length,h=a&&!f,m=s&&!p;if(!a&&u){t=m?t:new Bn(this);var g=e.apply(t,l);return g.__actions__.push({func:da,args:[d],thisArg:r}),new $n(g,f)}return h&&m?e.apply(this,l):(g=this.thru(d),h?o?g.value()[0]:g.value():g)})})),_t(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Le[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ba(o)?o:[],e)}return this[n]((function(n){return t.apply(Ba(n)?n:[],e)}))}})),br(Bn.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Me.call(On,r)||(On[r]=[]),On[r].push({name:t,func:n})}})),On[jo(r,2).name]=[{name:"wrapper",func:r}],Bn.prototype.clone=function(){var e=new Bn(this.__wrapped__);return e.__actions__=Lo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Lo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Lo(this.__views__),e},Bn.prototype.reverse=function(){if(this.__filtered__){var e=new Bn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Bn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ba(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=vn(t,e+a);break;case"takeRight":e=gn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,l=i.end,s=l-a,c=r?l:a-1,u=this.__iteratees__,d=u.length,f=0,p=vn(s,this.__takeCount__);if(!n||!r&&o==s&&p==s)return po(e,this.__actions__);var h=[];e:for(;s--&&f<p;){for(var m=-1,g=e[c+=t];++m<d;){var v=u[m],b=v.iteratee,y=v.type,x=b(g);if(2==y)g=x;else if(!x){if(1==y)continue e;break e}}h[f++]=g}return h},zn.prototype.at=fa,zn.prototype.chain=function(){return ua(this)},zn.prototype.commit=function(){return new $n(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===r&&(this.__values__=ul(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,n=this;n instanceof Fn;){var o=Ai(n);o.__index__=0,o.__values__=r,t?i.__wrapped__=o:t=o;var i=o;n=n.__wrapped__}return i.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Bn){var t=e;return this.__actions__.length&&(t=new Bn(this)),(t=t.reverse()).__actions__.push({func:da,args:[Qi],thisArg:r}),new $n(t,this.__chain__)}return this.thru(Qi)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return po(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,Ze&&(zn.prototype[Ze]=function(){return this}),zn}();ht?((ht.exports=mn)._=mn,pt._=mn):ft._=mn}).call(Yw)}(Qw,Qw.exports)),Qw.exports);function tE(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const nE=1e3,rE=1e3,oE=[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],iE=(e,t)=>e&&e.find((e=>{var n;return(null===(n=e.qDef)||void 0===n?void 0:n.cId)===t}))||null,aE=e=>{var t,n;return f(f({},e),{},{qDef:f(f({},e.qDef),{},{cId:null!==(t=null===(n=e.qDef)||void 0===n?void 0:n.cId)&&void 0!==t?t:yx()})})},lE=e=>{var t;return f(f({},aE(e)),{},{qOtherTotalSpec:null!==(t=e.qOtherTotalSpec)&&void 0!==t?t:{}})},sE=(e,t,n)=>{const r=t;e.forEach(((e,t)=>{const o=e.qTags,i={qSortByLoadOrder:1};"function"==typeof n.dimensionDefinition.autoSort?n.dimensionDefinition.autoSort(r,n.properties,o,i,n):(i.qSortByNumeric=1,i.qSortByAscii=1),r.qDef.qSortCriterias?r.qDef.qSortCriterias[t]=i:r.qDef.qSortCriterias=[i]}))},cE=new Error("Not supported in this object, need to implement in subclass."),uE=e=>{if(!e)return[];return[...e].map((e=>{var t;return null!==(t=e.qDef)&&void 0!==t&&t.autoSort&&void 0!==e.autoSort?f(f({},e),{},{qDef:f(f({},e.qDef),{},{autoSort:e.autoSort}),autoSort:void 0}):e}))},dE=(e,t)=>{if(e)return t&&xS(e,t)?xS(e,t).qHyperCube:e.qHyperCube};function fE(e,t){return e.filter(((e,n)=>t.includes(n)))}function pE(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r=e.getAlternativeDimensions(),o=null!=n?n:r.length;return r.splice(o,0,t),Promise.resolve(t)}function hE(e,t,n){SS.indexAdded(e.hcProperties.qInterColumnSortOrder,null!=n?n:t.length-1)}function mE(e,t){return"function"==typeof e.dimensionDefinition.move?Promise.resolve(e.dimensionDefinition.move.call(e,t,e.properties,e)).then((()=>t)):Promise.resolve(t)}function gE(e,t){return e.getAlternativeDimensions().length+t.length>=nE}function vE(e,t){const n=e.getAlternativeDimensions();return t||e.maxDimensions()<=n.length&&n.length<nE}async function bE(e,t,n,r,o,i){await e.autoSortDimension(t),SS.indexAdded(e.hcProperties.qInterColumnSortOrder,n+i),r.push(t),o.push(t),"function"==typeof e.dimensionDefinition.add&&e.dimensionDefinition.add.call(e,t,e.properties,e)}function yE(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r=e.getAlternativeMeasures(),o=null!=n?n:r.length;return r.splice(o,0,t),Promise.resolve(t)}function xE(e,t){SS.indexAdded(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t.length-1)}function SE(e,t,n){return n||e.maxMeasures()<=t.length&&t.length<rE}function wE(e,t,n,r){const o=e-n.length;let[i]=n.splice(n.length-1,1);return r.splice(0,0,i),[i]=r.splice(o+1,1),n.splice(t,0,i),Promise.resolve(i)}class EE{constructor(e){var t,n;const r=e||{};this.dimensionDefinition=r.dimensionDefinition||{max:0},this.measureDefinition=r.measureDefinition||{max:0},this.dimensionProperties=null!==(t=r.dimensionProperties)&&void 0!==t?t:{},this.measureProperties=null!==(n=r.measureProperties)&&void 0!==n?n:{},this.globalChangeListeners=r.globalChangeListeners,this.app=r.app}setProperties(e){var t;this.properties=e,this.isAnalysisType=null===(t=this.properties)||void 0===t||null===(t=t.metaData)||void 0===t?void 0:t.isAnalysisType}setGlobalChangeListeners(e){this.globalChangeListeners=e}setLayout(e){this.layout=e}static type(){throw new Error("Must override this method")}static getDimensions(){return[]}getDimension(e){var t;const n=this.getDimensions(),r=this.getAlternativeDimensions();return null!==(t=iE(n,e))&&void 0!==t?t:iE(r,e)}static getAlternativeDimensions(){throw new Error("Method not implemented.")}static addDimension(){throw cE}static addDimensions(){throw cE}static removeDimension(){throw cE}static removeDimensions(){throw cE}static autoSortDimension(){throw cE}static replaceDimension(){throw cE}static getSorting(){throw cE}createLibraryDimension(e,t){var n,r;const o=eE.merge({},this.dimensionProperties||{},t||{});return o.qDef=null!==(n=o.qDef)&&void 0!==n?n:{},o.qOtherTotalSpec=null!==(r=o.qOtherTotalSpec)&&void 0!==r?r:{},o.qLibraryId=e,o.qDef.autoSort=!0,o.qDef.qSortCriterias=oE,delete o.qDef.qFieldDefs,delete o.qDef.qFieldLabels,o}createFieldDimension(e,t,n){var r,o;const i=eE.merge({},this.dimensionProperties||{},n||{});return i.qDef=null!==(r=i.qDef)&&void 0!==r?r:{},i.qOtherTotalSpec=null!==(o=i.qOtherTotalSpec)&&void 0!==o?o:{},e||(i.qDef.qFieldDefs=[],i.qDef.qFieldLabels=[],i.qDef.qSortCriterias=[]),i.qDef.qFieldDefs=[e],i.qDef.qFieldLabels=t?[t]:[""],i.qDef.qSortCriterias=oE,i.qDef.autoSort=!0,i}addFieldDimension(e,t,n){const r=this.createFieldDimension(e,t,n);return this.addDimension(r)}addFieldDimensions(e){const t=e.map((e=>{let{field:t,label:n,defaults:r}=e;return this.createFieldDimension(t,n,r)}));return this.addDimensions(t)}addLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n)}addLibraryDimensions(e){const t=e.map((e=>{let{id:t,defaults:n}=e;return this.createLibraryDimension(t,n)}));return this.addDimensions(t)}async addAltLibraryDimensions(e){const t=e.map((e=>{let{id:t}=e;return this.createLibraryDimension(t)}));return this.addDimensions(t,!0)}async addAltFieldDimensions(e){const t=e.map((e=>{let{field:t}=e;return this.createFieldDimension(t)}));return this.addDimensions(t,!0)}addAlternativeFieldDimension(e,t,n){const r=this.createFieldDimension(e,t,n);return this.addDimension(r,!0)}addAlternativeLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n,!0)}minDimensions(){return"function"==typeof this.dimensionDefinition.min?this.dimensionDefinition.min.call(null,this.properties,this):this.dimensionDefinition.min||0}maxDimensions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const t=this.getMeasures().length-e;if("function"==typeof this.dimensionDefinition.max){var n;const e=tE("PS_21371_ANALYSIS_TYPES")?[t,this.properties]:[t];return null===(n=this.dimensionDefinition.max)||void 0===n?void 0:n.apply(null,e)}return Number.isNaN(+this.dimensionDefinition.max)?1e4:this.dimensionDefinition.max}canAddDimension(){return this.getDimensions().length<this.maxDimensions()}getMeasure(e){var t;const n=this.getMeasures(),r=this.getAlternativeMeasures();return null!==(t=iE(n,e))&&void 0!==t?t:iE(r,e)}static getMeasures(){return[]}static getAlternativeMeasures(){throw new Error("Method not implemented.")}static addMeasure(){throw cE}static addMeasures(){throw cE}static removeMeasure(){throw cE}static removeMeasures(){throw cE}static autoSortMeasure(){throw cE}static replaceMeasure(){throw cE}createExpressionMeasure(e,t,n){var r,o;const i=eE.merge({},this.measureProperties||{},n||{});return i.qDef=null!==(r=i.qDef)&&void 0!==r?r:{},i.qDef.qNumFormat=null!==(o=i.qDef.qNumFormat)&&void 0!==o?o:{},i.qDef.qDef=e,i.qDef.qLabel=t,i.qDef.autoSort=!0,i}addExpressionMeasure(e,t,n){const r=this.createExpressionMeasure(e,t,n);return this.addMeasure(r)}addExpressionMeasures(e){const t=e.map((e=>{let{expression:t,label:n,defaults:r}=e;return this.createExpressionMeasure(t,n,r)}));return this.addMeasures(t)}createLibraryMeasure(e,t){var n,r;const o=eE.merge({},this.measureProperties||{},t||{});return o.qDef=null!==(n=o.qDef)&&void 0!==n?n:{},o.qDef.qNumFormat=null!==(r=o.qDef.qNumFormat)&&void 0!==r?r:{},tE("MASTER_measureURE_FORMAT")&&(e=>{const t=e;t.quarantine={qNumFormat:t.qNumFormat||{},isCustomFormatted:t.isCustomFormatted||!1},t.qNumFormat=null,t.isCustomFormatted=void 0})(o.qDef),o.qLibraryId=e,o.qDef.autoSort=!0,delete o.qDef.qDef,delete o.qDef.qLabel,o}addLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n)}addLibraryMeasures(e){const t=e.map((e=>{let{id:t,defaults:n}=e;return this.createLibraryMeasure(t,n)}));return this.addMeasures(t)}addAltLibraryMeasures(e){const t=e.map((e=>{let{id:t}=e;return this.createLibraryMeasure(t)}));return this.addMeasures(t,!0)}addAltExpressionMeasures(e){const t=e.map((e=>{let{expression:t}=e;return this.createExpressionMeasure(t)}));return this.addMeasures(t,!0)}addAlternativeExpressionMeasure(e,t,n){const r=this.createExpressionMeasure(e,t,n);return this.addMeasure(r,!0)}addAlternativeLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n,!0)}minMeasures(){return"function"==typeof this.measureDefinition.min?this.measureDefinition.min.call(null,this.properties,this):this.measureDefinition.min||0}maxMeasures(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if("function"==typeof this.measureDefinition.max){const t=this.getDimensions().length-e,n=tE("PS_21371_ANALYSIS_TYPES")?[t,this.properties]:[t];return this.measureDefinition.max.apply(null,n)}return Number.isNaN(+this.measureDefinition.max)?1e4:this.measureDefinition.max}canAddMeasure(){return this.getMeasures().length<this.maxMeasures()}updateGlobalChangeListeners(e){this.globalChangeListeners&&(this.globalChangeListeners||[]).forEach((t=>{t&&"function"==typeof t&&t(this.properties,this,{layout:e})}))}}function kE(e,t,n){const r=e.getDimensions();return r.splice(n,0,t),e.autoSortDimension(t).then((async()=>(hE(e,r,n),await function(e,t){return t&&"function"==typeof e.dimensionDefinition.add?Promise.resolve(e.dimensionDefinition.add.call(null,t,e.properties,e)).then((()=>t)):Promise.resolve(t)}(e,t),t)))}function CE(e,t,n){const r=e.getMeasures(),o=null!=n?n:r.length;return r.length<e.maxMeasures()?(r.splice(o,0,t),e.autoSortMeasure(t).then((()=>(xE(e,r),function(e,t){return t&&"function"==typeof e.measureDefinition.add?Promise.resolve(e.measureDefinition.add.call(null,t,e.properties,e)):Promise.resolve()}(e,t).then((()=>t)))))):t}async function _E(e,t){!function(e,t){SS.indexRemoved(e.hcProperties.qInterColumnSortOrder,t)}(e,t),await function(e,t){const[n]=e.getDimensions().splice(t,1);return n&&"function"==typeof e.dimensionDefinition.remove?Promise.resolve(e.dimensionDefinition.remove.call(null,n,e.properties,e,t)):Promise.resolve()}(e,t)}async function RE(e,t){!function(e,t){SS.indexRemoved(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t)}(e,t),await function(e,t){const[n]=e.getMeasures().splice(t,1);return n&&"function"==typeof e.measureDefinition.remove?Promise.resolve(e.measureDefinition.remove.call(null,n,e.properties,e,t)):Promise.resolve()}(e,t)}function LE(e,t){const[n]=e.getAlternativeDimensions().splice(t,1);if(n&&"function"==typeof e.dimensionDefinition.remove)return n.isAlternative=!0,Promise.resolve(e.dimensionDefinition.remove.call(null,n,e.properties,e,t)).then((()=>{delete n.isAlternative}))}function OE(e,t,n){const r=e.getMeasures(),o=null!=n?n:r.length;return r.length<e.maxMeasures()?(r.splice(o,0,t),xE(e,r),function(e,t){return"function"==typeof e.measureDefinition.move?Promise.resolve(e.measureDefinition.move.call(null,t,e.properties,e,!0)).then((()=>t)):Promise.resolve(t)}(e,t)):Promise.resolve(t)}class IE extends EE{constructor(e){super(e),this.path=e.path}setProperties(e){return e?(super.setProperties(e),this.hcProperties=this.path?xS.getValue(e,"".concat(this.path,".qHyperCubeDef")):e.qHyperCubeDef,this.hcProperties?(function(e){var t,n,r,o,i,a,l;const s=e;s.hcProperties.qDimensions=null!==(t=s.getDimensions())&&void 0!==t?t:[],s.hcProperties.qMeasures=null!==(n=s.getMeasures())&&void 0!==n?n:[],s.hcProperties.qInterColumnSortOrder=null!==(r=s.hcProperties.qInterColumnSortOrder)&&void 0!==r?r:[],s.hcProperties.qLayoutExclude=null!==(o=s.hcProperties.qLayoutExclude)&&void 0!==o?o:{qHyperCubeDef:{qDimensions:[],qMeasures:[]}},s.hcProperties.qLayoutExclude.qHyperCubeDef=null!==(i=s.hcProperties.qLayoutExclude.qHyperCubeDef)&&void 0!==i?i:{qDimensions:[],qMeasures:[]},s.hcProperties.qLayoutExclude.qHyperCubeDef.qDimensions=null!==(a=s.getAlternativeDimensions())&&void 0!==a?a:[],s.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=null!==(l=s.getAlternativeMeasures())&&void 0!==l?l:[]}(this),function(e){const t=e;t.hcProperties.isHCEnabled&&0===t.hcProperties.qDynamicScript.length&&"S"===t.hcProperties.qMode&&(t.hcProperties.qDynamicScript=[])}(this),this.hcProperties.qDimensions=uE(this.hcProperties.qDimensions),this.hcProperties.qMeasures=uE(this.hcProperties.qMeasures),{}):{}):{}}getDimensions(){return this.hcProperties?this.hcProperties.qDimensions:[]}getAlternativeDimensions(){var e,t;return null!==(e=null===(t=this.hcProperties)||void 0===t||null===(t=t.qLayoutExclude)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qDimensions)&&void 0!==e?e:[]}getDimensionLayout(e){return this.getDimensionLayouts().filter((t=>e===t.cId))[0]}getDimensionLayouts(){const e=dE(this.layout,this.path);return e?e.qDimensionInfo:[]}addDimension(e,t,n){const r=lE(e);return vE(this,t)?pE(this,r,n):function(e,t,n){const r=e.getDimensions(),o=null!=n?n:r.length;return r.length<e.maxDimensions()?kE(e,t,o):Promise.resolve(t)}(this,r,n)}async addDimensions(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.getDimensions(),r=n.length,o=[];let i=0;var a,s=!1,c=!1;try{for(var u,d=l(e);s=!(u=await d.next()).done;s=!1){const e=u.value;{if(gE(this,n))return o;const a=lE(e);if(vE(this,t)){const e=await pE(this,a);o.push(e)}else n.length<this.maxDimensions()&&(await bE(this,a,r,n,o,i),i++)}}}catch(e){c=!0,a=e}finally{try{s&&null!=d.return&&await d.return()}finally{if(c)throw a}}return o}removeDimension(e,t){t&&LE(this,e),_E(this,e)}async removeDimensions(e,t){const n=this.getAlternativeDimensions(),r=this.getDimensions();if(0===e.length)return[];let o=[];const i=[...e].sort(((e,t)=>t-e));if(t&&n.length>0){o=fE(n,e);var a,s=!1,c=!1;try{for(var u,d=l(i);s=!(u=await d.next()).done;s=!1){const e=u.value;await LE(this,e)}}catch(e){c=!0,a=e}finally{try{s&&null!=d.return&&await d.return()}finally{if(c)throw a}}}else if(r.length>0){o=fE(r,e);var f,p=!1,h=!1;try{for(var m,g=l(i);p=!(m=await g.next()).done;p=!1){const e=m.value;await _E(this,e)}}catch(e){h=!0,f=e}finally{try{p&&null!=g.return&&await g.return()}finally{if(h)throw f}}}return o}replaceDimension(e,t){return this.autoSortDimension(t).then((()=>function(e,t,n){if(!n)return;const r=e.getDimensions(),o=r[t],i=f(f({},n),{},{qDef:f(f({},n.qDef),{},{cId:yx()})});return r[t]=i,i&&"function"==typeof e.dimensionDefinition.replace&&e.dimensionDefinition.replace.call(null,i,o,t,e.properties,e),i}(this,e,t)))}reinsertDimension(e,t,n){const r=aE(e);return vE(this,t)?pE(this,r,n).then((()=>{mE(this,r)})):function(e,t,n){const r=e.getDimensions(),o=null!=n?n:r.length;return r.length<e.maxDimensions()?(r.splice(o,0,t),hE(e,r),mE(e,t)):Promise.resolve(t)}(this,r,n)}moveDimension(e,t){const n=this.getDimensions(),r=this.getAlternativeDimensions();return e<n.length&&t<n.length?Promise.resolve(SS.move(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,r){const o=t-n.length;let[i]=r.splice(0,1);return n.push(i),[i]=n.splice(e,1),r.splice(o,0,i),Promise.resolve(i)}(e,t,n,r):e>=n.length&&t<n.length?Promise.resolve(wE(e,t,n,r)):Promise.resolve(function(e,t,n,r){const o=e-n.length,i=t-n.length;SS.move(r,o,i)}(e,t,n,r))}autoSortDimension(e){return e.qLibraryId?function(e,t){return e.app.getDimensionList().then((n=>{const r=(null==t?void 0:t.qLibraryId)&&(o=t.qLibraryId,(i=n)&&i.find((e=>e.qInfo.qId===o))||null);var o,i;return r&&sE(r.qData.info,t,e),t}))}(this,e):function(e,t){return e.app.getFieldList().then((n=>{var r;const o=(null==t||null===(r=t.qDef)||void 0===r?void 0:r.qFieldDefs)&&((e,t)=>{const n=(e=>{const t=[];return e.forEach((e=>{t.push((e=>{const t=e;return t.isDateField=(e=>{var t,n;return(null==e?void 0:e.qDerivedFieldData)&&((null==e||null===(t=e.qTags)||void 0===t?void 0:t.indexOf("$date"))>-1||(null==e||null===(n=e.qTags)||void 0===n?void 0:n.indexOf("$timestamp"))>-1)})(t),t.isGeoField=(e=>e.qTags.indexOf("$geoname")>-1)(t),t})(e));const n=(e=>{const t=[];return e.qDerivedFieldData?(e.qDerivedFieldData.qDerivedFieldLists.forEach((n=>{n.qFieldDefs.forEach((r=>{var o;t.push({qName:r.qName,displayName:(o=r.qName,o?o.split(".autoCalendar").join(""):""),qSrcTables:e.qSrcTables,qTags:r.qTags,isDerived:!0,isDerivedFromDate:e.isDateField,sourceField:e.qName,derivedDefinitionName:n.qDerivedDefinitionName})}))})),t):t})(e);t.push(...n)})),t})(t.slice(0)),r=(e=>{let t=e;t=t.trim(),"="===t.charAt(0)&&(t=t.substring(1),t=t.trim());const n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=t.substring(1,n),t=t.trim()),t})(e);return n&&((e,t)=>t&&t.find((t=>t.qName===e))||null)(r,n)||null})(t.qDef.qFieldDefs[0],n);return o&&sE([o],t,e),t}))}(this,e)}getMeasures(){return this.hcProperties?this.hcProperties.qMeasures:[]}getAlternativeMeasures(){var e,t;return null!==(e=null===(t=this.hcProperties)||void 0===t||null===(t=t.qLayoutExclude)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)&&void 0!==e?e:[]}getMeasureLayouts(){const e=dE(this.layout,this.path);return e?e.qMeasureInfo:[]}getMeasureLayout(e){return this.getMeasureLayouts().filter((t=>e===t.cId))[0]}addMeasure(e,t,n){const r=this.getAlternativeMeasure(),o=aE(e);return SE(this,r,t)?yE(this,o,n):CE(this,o,n)}autoSortMeasure(e){const t=e;return t.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},Promise.resolve(t)}addMeasures(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.getMeasures(),r=[];let o=0;return e.forEach((async e=>{if(function(e,t){return e.getAlternativeMeasures().length+t.length>=rE}(this,n))return!1;const i=aE(e);return SE(this,n,t)?(yE(this,i),r.push(i)):n.length<this.maxMeasures()&&(await function(e,t,n,r,o){const i=e.getDimensions(),a=f({},t);return a.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},SS.indexAdded(e.hcProperties.qInterColumnSortOrder,i.length+n.length+o),n.push(a),r.push(a),"function"==typeof e.measureDefinition.add&&e.measureDefinition.add.call(null,a,e.properties,e),Promise.resolve(r)}(this,i,n,r,o),o++),!0})),r}removeMeasure(e,t){t&&function(e,t){e.getAlternativeMeasures().splice(t,1)}(this,e),RE(this,e)}async removeMeasures(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures();if(0===e.length)return[];let o=[];if(t&&r.length>0)o=fE(r,e),function(e,t){const n=e,r=function(e,t){return e.filter(((e,n)=>!t.includes(n)))}(n.getAlternativeMeasures(),t);n.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=r}(this,e);else if(n.length>0){o=fE(n,e);const t=[...e].sort(((e,t)=>t-e));var i,a=!1,s=!1;try{for(var c,u=l(t);a=!(c=await u.next()).done;a=!1){const e=c.value;await RE(this,e)}}catch(e){s=!0,i=e}finally{try{a&&null!=u.return&&await u.return()}finally{if(s)throw i}}}return o}replaceMeasure(e,t){return this.autoSortMeasure(t).then((()=>function(e,t,n){const r=e.getMeasures(),o=r[t],i=f(f({},n),{},{qDef:f(f({},n.qDef),{},{cId:yx()})});return r[t]=i,i&&"function"==typeof e.measureDefinition.replace&&e.dimensionDefinition.replace.call(null,i,o,t,e.properties,e),i}(this,e,t)))}reinsertMeasure(e,t,n){const r=this.getAlternativeMeasures(),o=aE(e);return SE(this,r,t)?yE(this,o,n):OE(this,o,n)}moveMeasure(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures();return e<n.length&&t<n.length?Promise.resolve(SS.move(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,r){const o=t-n.length;let[i]=r.splice(0,1);return n.push(i),[i]=n.splice(e,1),r.splice(o,0,i),Promise.resolve(i)}(e,t,n,r):e>=n.length&&t<n.length?wE(e,t,n,r):Promise.resolve(function(e,t,n,r){const o=e-n.length,i=t-n.length;SS.move(r,o,i)}(e,t,n,r))}setSorting(e){e&&e.length===this.hcProperties.qInterColumnSortOrder.length&&(this.hcProperties.qInterColumnSortOrder=e)}getSorting(){return this.hcProperties.qInterColumnSortOrder}changeSorting(e,t){xS.move(this.hcProperties.qInterColumnSortOrder,e,t)}IsHCInStraightMode(){return"S"===this.hcProperties.qMode}setHCEnabled(e){this.hcProperties&&(this.hcProperties.isHCEnabled=e)}getDynamicScripts(){var e;return(null===(e=this.hcProperties)||void 0===e?void 0:e.qDynamicScript)||[]}}const TE=pe.bind(null,!0),PE={},{isArray:ME}=Array;function NE(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function DE(e){return void 0===e}function qE(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function AE(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]=DE(e[r||t])?i:e[t],e=e[r||t]})),e}function zE(e,t){let n=!0;if(NE(e)&&NE(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{zE(e[r],t[r])||(n=!1)})),n);if(ME(e)&&ME(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!zE(e[n],t[n]))return!1;return!0}return e===t}PE.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?TE({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);zE(i,a)||qE(t,o)||(DE(a)?r.push({op:"add",path:l,value:i}):NE(i)&&NE(a)?r=r.concat(PE.generate(a,i,l)):ME(i)&&ME(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]&&DE(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(zE(t,o))return r;if(!DE(t[0])&&DE(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(PE.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=>{DE(t[o])&&!qE(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},PE.apply=function(e,t){t.forEach((t=>{let n=AE(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(ME(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(ME(o)&&ME(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(NE(o)&&NE(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!qE(a,e)&&delete a[e]})),TE(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=AE(e,t.from);ME(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(ME(n)?n.splice(+r,1):delete n[r]);var a}))},PE.clone=function(e){return TE({},e)},PE.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},PE.updateObject=function(e,t){Object.keys(e).length?PE.apply(e,PE.generate(e,t)):TE(e,t)};const jE=e=>t=>{const n=(r=f(f({},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(O.prototype).forEach((e=>{r[e]=O.prototype[e]})),O.init(r),r);var r;return n};let FE,$E;function BE(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 WE(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null},contraintsWarning:!0}}function UE(e){VE(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 HE(e){if(e.__hooks.obsolete)return Promise.resolve();$E=-1,FE=e,FE.__hooks.initiated&&FE.__hooks.list.length;try{FE.fn.call(null)}catch(e){console.error(e)}FE.__hooks.initiated=!0;const t=FE.__hooks;return JE(FE),$E=void 0,FE=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){VE(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){VE(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 VE(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 GE(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 KE(e,t,n,r){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n,r))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function ZE(e){return e.__hooks.imperativeHandle}function JE(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function XE(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,JE(e))}function QE(e){if(void 0===FE)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=FE.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function YE(e){QE(++$E);return FE.context[e]}function ek(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function tk(e){return{__hooked:!0,fn:e,initiate:WE,run:HE,teardown:UE,runSnaps:GE,runMenu:KE,focus:lk,blur:sk,observeActions:XE,getImperativeHandle:ZE,updateRectOnNextRun:ek}}function nk(e){const t=QE(++$E);if(!t.value){t.component=FE;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,HE(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function rk(e,t){const n=QE(++$E);BE(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===FE.__hooks.pendingEffects.indexOf(n)&&FE.__hooks.pendingEffects.push(n))}function ok(e,t){const n=QE(++$E);BE(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],FE.__hooks.pendingLayoutEffects.push(n))}function ik(e,t){const n=QE(++$E);return BE(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function ak(){return YE("element")}function lk(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 sk(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 ck={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},uk=Object.keys(ck),dk=e=>(Object.keys(O.prototype).forEach((t=>{e[t]=O.prototype[t]})),O.init(e),e);function fk(e,t){const n=f({},ck);dk(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==uk.indexOf(t)?n[t]=e.component[t].bind(r):r[t]=e.component[t]}));const o=function(e){let{sn:t,component:n}=e;const r={},o=[],i=jE(n);return((t.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=i(e);r[e.key]=t,o.push(t)})),(t.definition.actions||[]).forEach((e=>{const t=i(e);r[e.key]=t})),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:r}),i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(r,{model:t.model,app:t.app,global:i,selections:t.selections,actions:o.actions}),Object.assign(n,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[n,o]}function pk(e,t,n){"function"==typeof e.component&&(e.component=tk(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 i={},a=["appLayout","constraints","interactions"],l={},s={};t.model&&t.model.session||(l.select=!0,l.edit=!0,s.select=!1,s.edit=!1);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,navigation:t.navigation,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,externalFocusManagement:t.externalFocusManagement||!1,focusHandler:t.focusHandler,constraints:l,interactions: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)}a.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(f(f({},r[e]),l))),"interactions"===e&&(t=JSON.stringify(f(f({},r[e]),s))),t!==i[e]&&(n=!0,i[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==i.themeName&&(n=!0,i.themeName=this.context.theme.name()),this.context.translator.language()!==i.language&&(n=!0,i.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,r){return e.component.runMenu(this,t,n,r)},focus(){const t=e.component.getImperativeHandle(this);t&&"function"==typeof t.focus?t.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 a.forEach((e=>{i[e]=JSON.stringify(c.context[e])})),i.themeName=c.context.theme?c.context.theme.name():void 0,i.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):fk(e,t),i=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];try{e.qae.properties.onChange.call({model:t.model},...r)}catch(e){}return t.model.__snInterceptor.setProperties.call(this,...r)},t.model.applyPatches=function(n,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const i=PE.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));PE.apply(o,a);try{e.qae.properties.onChange.call({model:t.model},o)}catch(e){}const l=PE.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.__snInterceptor&&(t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor)},i.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){i.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const hk=()=>{};function mk(e,t){return void 0===e?()=>t:()=>e}function gk(e){const t=e||{};return{min:"function"==typeof t.min?t.min:mk(t.min,0),max:"function"==typeof t.max?t.max:mk(t.max,1e3),added:t.added||t.add||hk,description:t.description||hk,moved:t.moved||t.move||hk,removed:t.removed||t.remove||hk,replaced:t.replaced||t.replace||hk,isDefined:()=>!!e}}const vk=(e,t,n)=>{const r=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<r.length;++e)if(""!==r[e]){if(void 0===o[r[e]])return n;o=o[r[e]]}return o};function bk(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=>vk(e,n,{}),dimensions:gk(e.dimensions),measures:gk(e.measures)}}function yk(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.properties||{};t.properties&&(t.properties.initial||t.properties.onChange)&&(n=t.properties.initial,e=t.properties.onChange);return{properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(bk)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function xk(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:yk(n.qae),component:n.component||{},create:e=>pk(r,e,t),definition:t.flags.isEnabled("NEBULA_DATA_HANDLERS")?{dataHandler:e=>new IE(e)}:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}const Sk=(e,t,n)=>{if(!e)return Promise.resolve();let r=PE.generate(t,n);return pe(!0,t,n),r&&r.length?(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,r,!0):e.applyPatches(r,!0)):Promise.resolve()},wk=()=>{};function Ek(){var e;let t,n,r,{model:o,halo:i,navigation:a,initialError:l,onDestroy:s=(async()=>{}),onRender:c=(()=>{}),onError:u=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=wk,p=null,h=null,m=null,g=null,v=!1;const b=new Promise((e=>{m=e})),y=new Promise((e=>{g=e})),x=e=>()=>{null==e||e(),g(),c(),v=!0};let w={},E=[];const k=new O;let C={};null!==(e=i.context)&&void 0!==e&&e.enablePrivateExperimental&&(C={support(e){var t;return!(!h||!v)&&p.current.support(e,null===(t=n)||void 0===t?void 0:t.support,r)},getPropertyPanelDefinition:()=>!(!h||!v)&&(n?n.definition:p.current.getExtensionDefinition().definition),toggleFocus(e){p.current.toggleFocus(e)},setOnBlurHandler(e){p.current.setOnBlurHandler(e)},onContextMenu(){return p.current.onContextMenu(...arguments)}});const _=f(f({id:o.id,model:o,async destroy(){await s(),d(),d=wk},async convertTo(e){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){const n=await o.getLayout();if(Zw(n)&&!t){const t=await PS({halo:i,model:o,cellRef:p,newType:e});return await Jw(o,t.qProperty),t}const r=await o.getEffectiveProperties(),a=await PS({halo:i,model:o,cellRef:p,newType:e,properties:r}),l=a.qProperty;return await Sk(o,r,l),a}return await PS({halo:i,model:o,cellRef:p,newType:e})},async toggleDataView(e){let a;if(t||!1===e)t&&!0!==e&&(a=o,await i.app.destroySessionObject(t),t=void 0,n=void 0,r=void 0);else{let e=i.context.dataViewType;const l=await o.getEffectiveProperties();if(!i.types.getSupportedVersion(e)){if(!i.types.getSupportedVersion("table"))throw new Error("No data view type registered");e="table"}const s=await PS({halo:i,model:o,cellRef:p,newType:e,properties:l,viewDataMode:!0});a=await i.app.createSessionObject(s.qProperty),t=a.id,n=p.current.getExtensionDefinition(),r=await o.getLayout()}a&&p.current.setModel(a)},get viewDataToggled(){return void 0!==t},addListener(e,t){k.addListener(e,t)},removeListener(e,t){k.removeListener(e,t)},getImperativeHandle:async()=>(await y,p.current.getImperativeHandle()),takeSnapshot:async()=>(await y,p.current.takeSnapshot())},C),{},{__DO_NOT_USE__:{mount(e){if(h)throw new Error("Already mounted");if(!(e instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return h=e,[d,p]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:i,onMount:a,emitter:l,initialError:s,navigation:c,onError:u}=e;const{root:d}=t,f=S.createRef(),p=yx(),h=Zl.createPortal(S.createElement(Hw,{ref:f,halo:t,model:r,currentId:p,initialSnOptions:o,initialSnPlugins:i,initialError:s,onMount:a,emitter:l,navigation:c,onError:u}),n,p),m=()=>{d.remove(h),r.removeListener("closed",m)};return r.on("closed",m),d.addCell(p,f),(async()=>{try{await d.add(h,m)}catch(e){m(),a(),u(e)}})(),[m,f]}({halo:i,element:e,model:o,initialSnOptions:w,initialSnPlugins:E,initialError:l,onMount:m,emitter:k,navigation:a,onError:u}),b},async applyProperties(e){const t=Gw("/",e,await o.getEffectiveProperties());if(t.length)return o.applyPatches(t,!0)},options(e){(async e=>{const t=e.onInitialRender;h?(async()=>{await b,p.current.setSnOptions(f(f(f({},w),e),{onInitialRender:x(t)}))})():w=f(f(f({},w),e),{onInitialRender:x(t)})})(e)},plugins(e){(async e=>{Kw(e),h?(async()=>{await b,p.current.setSnPlugins(e)})():E=e})(e)},exportImage:()=>p.current.exportImage(),takeSnapshot:()=>p.current.takeSnapshot(),getModel:()=>o,convert:{async toType(e){const t=await o.getEffectiveProperties(),n=await PS({halo:i,model:o,cellRef:p,newType:e,properties:t}),r=n.qProperty;return await Sk(o,t,r),n},async revert(){await o.clearSoftPatches()}}}});return _}async function kk(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:a,onError:l}=t,s=Ek({model:e,halo:n,navigation:r,initialError:o,onDestroy:i,onRender:a,onError:l});return t.options&&s.__DO_NOT_USE__.options(t.options),t.plugins&&s.__DO_NOT_USE__.plugins(t.plugins),t.element&&await s.__DO_NOT_USE__.mount(t.element),s}async function Ck(e,t,n,r){let{type:o,version:i,fields:a,properties:l,extendProperties:s}=e,c={};const u=[],{modelStore:d}=r;try{const e=t.types.get({name:o,version:i});c=await e.initialProperties(l,s);const n=await e.supernova();a&&await yS({sn:n,properties:c,fields:a,children:u},t),l&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},c)}catch(e){c=n?null:{qInfo:{qType:o},visualization:o}}if(!n){const e=await t.app.createObject(c);return u.length>0&&await e.setFullPropertyTree({qProperty:c,qChildren:u}),d.set(e.id,e),e}return c}const _k="njs-sheet";function Rk(e,t,n){return e.bounds?e.bounds:{y:e.row/n*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/n*100}}const Lk=x.forwardRef(((e,t)=>{var n;let{model:r,halo:o,initialSnOptions:i,initialSnPlugins:a,initialError:l,onMount:s,unmount:c,navigation:u,onError:d}=e;const{root:p}=o,[h,m]=x.useState(r),[g]=Vh(h),{theme:v,modelStore:b}=x.useContext(Vs),[y,w]=x.useState([]),[E,k]=x.useState(void 0),[C,_]=x.useState(void 0),[R,L]=x.useState(""),O=x.useRef({cellCount:0,cellsRendered:0,initialRender:!1});null==u||null===(n=u.setCurrentSheetId)||void 0===n||n.call(u,h.id),x.useEffect((()=>{if(g){const e=JSON.stringify(g.cells);if(e===R)return;L(e);const t=async()=>{y.forEach((e=>{p.removeCell(e.currentId)}));const e=g.cells;O.cellCount=e.length,O.cellsRendered=0;const t=()=>{O.cellsRendered++,O.cellsRendered!==O.cellCount||O.initialRender||(O.initialRender=!0,i.onInitialRender())},{columns:n,rows:r}=g,a=await Promise.all(e.map((async e=>{let a;const l=new Promise((e=>{a=e})),s=y.find((t=>t.id===e.name));if(s)return s.bounds=Rk(e,n,r),delete s.mountedPromise,s;const c=await async function(e,t,n){let{id:r,options:o,plugins:i,element:a}=e;const{modelStore:l,rpcRequestModelStore:s}=n,c="".concat(r);let u=s.get(c);u||(u=t.app.getObject(r),s.set(c,u));const d=await u;return l.set(c,d),kk(d,{options:o,plugins:i,element:a},t)}({id:e.name},o,b);return{model:c.model,id:e.name,bounds:Rk(e,n,r),cellRef:S.createRef(),currentId:yx(),mounted:a,mountedPromise:l,options:f(f({},i),{onInitialRender:t})}})));a.forEach((e=>p.addCell(e.currentId,e.cellRef))),w(a)};t()}}),[g]),x.useEffect((()=>{const e=()=>{h.removeListener("closed",e),c()};return h.on("closed",e),()=>h.removeListener("closed",e)}),[h]);const I=x.useMemo((()=>y?y.map((e=>function(e,t,n,r,o,i,a,l){var s;const{x:c,y:u,width:d,height:f}=e.bounds,p={left:"".concat(c,"%"),top:"".concat(u,"%"),width:"".concat(d,"%"),height:"".concat(f,"%"),position:"absolute"},h=null===(s=t.public.galaxy)||void 0===s?void 0:s.flags;return null!=h&&h.isEnabled("VNA-13_CELLPADDING_FROM_THEME")&&(p.boxSizing="border-box",p.padding="4px"),S.createElement("div",{style:p,key:e.model.id},S.createElement(Hw,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:i,navigation:a,onError:l}))}(e,o,e.options,a,l,e.mounted,u,d))):[]),[y]);x.useEffect((()=>{const e=null!=g&&g.components?g.components.find((e=>"general"===e.key)):null;k(Ky(e,o.public.theme)),_(Gy(e,o.app))}),[g,o.public.theme,o.app,v]),x.useImperativeHandle(t,(()=>({setModel:m})),[]);const T=!g||void 0===g.height||Number.isNaN(g.height)?"100%":"".concat(Number(g.height),"%"),P=y.map((e=>e.mountedPromise)),M=P.filter((e=>!!e));return M.length&&Promise.all(P).then((()=>{s()})),S.createElement("div",{className:_k,style:{width:"100%",height:T,position:"relative",backgroundColor:E,backgroundImage:C&&C.url?"url(".concat(C.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:C&&C.size,backgroundPosition:C&&C.pos}},I)}));const Ok=()=>{};function Ik(){let{model:e,halo:t,navigation:n,initialError:r,onDestroy:o=(async()=>{}),onRender:i=(()=>{}),onError:a=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=Ok,s=null,c=null,u=null,d=null;const p=new Promise((e=>{u=e})),h=new Promise((e=>{d=e})),m=e=>()=>{null==e||e(),d(),i()};let g={},v=[];const b={id:e.id,model:e,navigation:n,getImperativeHandle:async()=>(await h,s.current.getImperativeHandle()),async destroy(){await o(),l(),l=Ok},__DO_NOT_USE__:{mount(o){if(c)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return c=o,[l,s]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:i,onMount:a,initialError:l,navigation:s,onError:c}=e;const{root:u}=t,d=S.createRef();let f;const p=()=>{u.remove(f)};return f=Zl.createPortal(S.createElement(Lk,{ref:d,halo:t,model:r,initialSnOptions:o,initialSnPlugins:i,initialError:l,onMount:a,unmount:p,navigation:s,onError:c}),n,r.id),s.setSheetRef(d),u.add(f,p),[p,d]}({halo:t,element:o,model:e,initialSnOptions:g,initialSnPlugins:v,initialError:r,onMount:u,navigation:n,onError:a}),p},async applyProperties(t){const n=Gw("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;c?(async()=>{await p,s.current.setSnOptions(f(f(f({},g),e),{onInitialRender:m(t)}))})():g=f(f(f({},g),e),{onInitialRender:m(t)})})(e)},plugins(e){(async e=>{Kw(e),c?(async()=>{await p,s.current.setSnPlugins(e)})():v=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return b}async function Tk(e,t,n){let{id:r,options:o,plugins:i,element:a,onRender:l,onError:s,navigation:c}=e;const{modelStore:u,rpcRequestModelStore:d}=n,f="".concat(r);let p=d.get(f);p||(p=t.app.getObject(r),d.set(f,p));const h=await p;u.set(f,h);const m=c||("sheet"===h.genericType?function(e,t,n){var r;const{galaxy:o}=e.public;var i;if(null!==(r=o.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&r.navigation)return null===(i=o.anything)||void 0===i||null===(i=i.sense)||void 0===i?void 0:i.navigation;const a={model:n},l={goToSheet:async n=>{var r,o;if(!a.sheetRef)return;const{modelStore:i,rpcRequestModelStore:s}=t,c="".concat(n);let u,d=s.get(c);d||(d=e.app.getObject(n),s.set(c,d));try{if(u=await d,"sheet"!==u.genericType)return}catch(e){return}i.set(c,u),null===(r=a.sheetRef)||void 0===r||null===(r=r.current)||void 0===r||null===(o=r.setModel)||void 0===o||o.call(r,u),a.model=u,l.emit("sheetChanged")},setSheetRef:e=>{a.sheetRef=e},getCurrentSheetId:()=>!!a.model&&a.model.id};return ib(l),l}(t,n,h):void 0);return"sheet"===h.genericType?async function(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:a,onError:l}=t,s=Ik({model:e,halo:n,navigation:r,initialError:o,onDestroy:i,onRender:a,onError:l});return t.options&&s.__DO_NOT_USE__.options(t.options),t.plugins&&s.__DO_NOT_USE__.plugins(t.plugins),t.element&&await s.__DO_NOT_USE__.mount(t.element),s}(h,{options:o,plugins:i,element:a,onRender:l,onError:s},t,m):kk(h,{options:o,plugins:i,element:a,onRender:l,onError:s},t,m)}var Pk,Mk,Nk,Dk;function qk(){if(Dk)return Nk;Dk=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Nk=n=>n?"object"!=typeof n?e:n:t}var Ak,zk,jk,Fk,$k,Bk,Wk,Uk,Hk,Vk,Gk,Kk,Zk,Jk,Xk,Qk,Yk,eC,tC,nC,rC,oC,iC,aC,lC,sC,cC,uC,dC,fC,pC,hC={exports:{}};function mC(){if(zk)return Ak;zk=1;const e=Number.MAX_SAFE_INTEGER||9007199254740991;return Ak={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}function gC(){if(Fk)return jk;Fk=1;const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error("SEMVER",...t)}:()=>{};return jk=e}function vC(){return $k||($k=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=mC(),i=gC(),a=(t=e.exports={}).re=[],l=t.safeRe=[],s=t.src=[],c=t.safeSrc=[],u=t.t={};let d=0;const f="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[f,r]],h=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split("".concat(t,"*")).join("".concat(t,"{0,").concat(n,"}")).split("".concat(t,"+")).join("".concat(t,"{1,").concat(n,"}"));return e})(t),o=d++;i(e,o,t),u[e]=o,s[o]=t,c[o]=r,a[o]=new RegExp(t,n?"g":void 0),l[o]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(f,"*")),h("MAINVERSION","(".concat(s[u.NUMERICIDENTIFIER],")\\.")+"(".concat(s[u.NUMERICIDENTIFIER],")\\.")+"(".concat(s[u.NUMERICIDENTIFIER],")")),h("MAINVERSIONLOOSE","(".concat(s[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[u.NUMERICIDENTIFIERLOOSE],")")),h("PRERELEASEIDENTIFIER","(?:".concat(s[u.NONNUMERICIDENTIFIER],"|").concat(s[u.NUMERICIDENTIFIER],")")),h("PRERELEASEIDENTIFIERLOOSE","(?:".concat(s[u.NONNUMERICIDENTIFIER],"|").concat(s[u.NUMERICIDENTIFIERLOOSE],")")),h("PRERELEASE","(?:-(".concat(s[u.PRERELEASEIDENTIFIER],"(?:\\.").concat(s[u.PRERELEASEIDENTIFIER],")*))")),h("PRERELEASELOOSE","(?:-?(".concat(s[u.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(s[u.PRERELEASEIDENTIFIERLOOSE],")*))")),h("BUILDIDENTIFIER","".concat(f,"+")),h("BUILD","(?:\\+(".concat(s[u.BUILDIDENTIFIER],"(?:\\.").concat(s[u.BUILDIDENTIFIER],")*))")),h("FULLPLAIN","v?".concat(s[u.MAINVERSION]).concat(s[u.PRERELEASE],"?").concat(s[u.BUILD],"?")),h("FULL","^".concat(s[u.FULLPLAIN],"$")),h("LOOSEPLAIN","[v=\\s]*".concat(s[u.MAINVERSIONLOOSE]).concat(s[u.PRERELEASELOOSE],"?").concat(s[u.BUILD],"?")),h("LOOSE","^".concat(s[u.LOOSEPLAIN],"$")),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE","".concat(s[u.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),h("XRANGEIDENTIFIER","".concat(s[u.NUMERICIDENTIFIER],"|x|X|\\*")),h("XRANGEPLAIN","[v=\\s]*(".concat(s[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIER],")")+"(?:".concat(s[u.PRERELEASE],")?").concat(s[u.BUILD],"?")+")?)?"),h("XRANGEPLAINLOOSE","[v=\\s]*(".concat(s[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(s[u.PRERELEASELOOSE],")?").concat(s[u.BUILD],"?")+")?)?"),h("XRANGE","^".concat(s[u.GTLT],"\\s*").concat(s[u.XRANGEPLAIN],"$")),h("XRANGELOOSE","^".concat(s[u.GTLT],"\\s*").concat(s[u.XRANGEPLAINLOOSE],"$")),h("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")),h("COERCE","".concat(s[u.COERCEPLAIN],"(?:$|[^\\d])")),h("COERCEFULL",s[u.COERCEPLAIN]+"(?:".concat(s[u.PRERELEASE],")?")+"(?:".concat(s[u.BUILD],")?")+"(?:$|[^\\d])"),h("COERCERTL",s[u.COERCE],!0),h("COERCERTLFULL",s[u.COERCEFULL],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM","(\\s*)".concat(s[u.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",h("TILDE","^".concat(s[u.LONETILDE]).concat(s[u.XRANGEPLAIN],"$")),h("TILDELOOSE","^".concat(s[u.LONETILDE]).concat(s[u.XRANGEPLAINLOOSE],"$")),h("LONECARET","(?:\\^)"),h("CARETTRIM","(\\s*)".concat(s[u.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",h("CARET","^".concat(s[u.LONECARET]).concat(s[u.XRANGEPLAIN],"$")),h("CARETLOOSE","^".concat(s[u.LONECARET]).concat(s[u.XRANGEPLAINLOOSE],"$")),h("COMPARATORLOOSE","^".concat(s[u.GTLT],"\\s*(").concat(s[u.LOOSEPLAIN],")$|^$")),h("COMPARATOR","^".concat(s[u.GTLT],"\\s*(").concat(s[u.FULLPLAIN],")$|^$")),h("COMPARATORTRIM","(\\s*)".concat(s[u.GTLT],"\\s*(").concat(s[u.LOOSEPLAIN],"|").concat(s[u.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE","^\\s*(".concat(s[u.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(s[u.XRANGEPLAIN],")")+"\\s*$"),h("HYPHENRANGELOOSE","^\\s*(".concat(s[u.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(s[u.XRANGEPLAINLOOSE],")")+"\\s*$"),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(hC,hC.exports)),hC.exports}function bC(){if(Hk)return Uk;Hk=1;const e=gC(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=mC(),{safeRe:r,t:o}=vC(),i=qk(),{compareIdentifiers:a}=function(){if(Wk)return Bk;Wk=1;const e=/^[0-9]+$/,t=(t,n)=>{const r=e.test(t),o=e.test(n);return r&&o&&(t=+t,n=+n),t===n?0:r&&!o?-1:o&&!r?1:t<n?-1:1};return Bk={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)},Bk}();class l{constructor(a,s){if(s=i(s),a instanceof l){if(a.loose===!!s.loose&&a.includePrerelease===!!s.includePrerelease)return a;a=a.version}else if("string"!=typeof a)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof a,'".'));if(a.length>t)throw new TypeError("version is longer than ".concat(t," characters"));e("SemVer",a,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;const c=a.trim().match(s.loose?r[o.LOOSE]:r[o.FULL]);if(!c)throw new TypeError("Invalid Version: ".concat(a));if(this.raw=a,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<n)return t}return e})):this.prerelease=[],this.build=c[5]?c[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(t){if(e("SemVer.compare",this.version,this.options,t),!(t instanceof l)){if("string"==typeof t&&t===this.version)return 0;t=new l(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),a(this.major,e.major)||a(this.minor,e.minor)||a(this.patch,e.patch)}comparePre(t){if(t instanceof l||(t=new l(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],o=t.prerelease[n];if(e("prerelease compare",n,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 a(r,o)}while(++n)}compareBuild(t){t instanceof l||(t=new l(t,this.options));let n=0;do{const r=this.build[n],o=t.build[n];if(e("build compare",n,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 a(r,o)}while(++n)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e="-".concat(t).match(this.options.loose?r[o.PRERELEASELOOSE]:r[o.PRERELEASE]);if(!e||e[1]!==t)throw new Error("invalid identifier: ".concat(t))}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error("version ".concat(this.raw," is not a prerelease"));this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===a(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error("invalid increment argument: ".concat(e))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}}return Uk=l}function yC(){if(Gk)return Vk;Gk=1;const e=bC();return Vk=(t,n,r)=>new e(t,r).compare(new e(n,r)),Vk}function xC(){if(lC)return aC;lC=1;const e=function(){if(Zk)return Kk;Zk=1;const e=yC();return Kk=(t,n,r)=>0===e(t,n,r),Kk}(),t=function(){if(Xk)return Jk;Xk=1;const e=yC();return Jk=(t,n,r)=>0!==e(t,n,r),Jk}(),n=function(){if(Yk)return Qk;Yk=1;const e=yC();return Qk=(t,n,r)=>e(t,n,r)>0,Qk}(),r=function(){if(tC)return eC;tC=1;const e=yC();return eC=(t,n,r)=>e(t,n,r)>=0,eC}(),o=function(){if(rC)return nC;rC=1;const e=yC();return nC=(t,n,r)=>e(t,n,r)<0,nC}(),i=function(){if(iC)return oC;iC=1;const e=yC();return oC=(t,n,r)=>e(t,n,r)<=0,oC}();return aC=(a,l,s,c)=>{switch(l){case"===":return"object"==typeof a&&(a=a.version),"object"==typeof s&&(s=s.version),a===s;case"!==":return"object"==typeof a&&(a=a.version),"object"==typeof s&&(s=s.version),a!==s;case"":case"=":case"==":return e(a,s,c);case"!=":return t(a,s,c);case">":return n(a,s,c);case">=":return r(a,s,c);case"<":return o(a,s,c);case"<=":return i(a,s,c);default:throw new TypeError("Invalid operator: ".concat(l))}},aC}function SC(){if(dC)return uC;dC=1;const e=/\s+/g;class t{constructor(n,i){if(i=r(i),n instanceof t)return n.loose===!!i.loose&&n.includePrerelease===!!i.includePrerelease?n:new t(n.raw,i);if(n instanceof o)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease,this.raw=n.trim().replace(e," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&f)|(this.options.loose&&p))+":"+e,r=n.get(t);if(r)return r;const a=this.options.loose,m=a?l[s.HYPHENRANGELOOSE]:l[s.HYPHENRANGE];e=e.replace(m,R(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(l[s.COMPARATORTRIM],c),i("comparator trim",e),e=e.replace(l[s.TILDETRIM],u),i("tilde trim",e),e=e.replace(l[s.CARETTRIM],d),i("caret trim",e);let g=e.split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>_(e,this.options)));a&&(g=g.filter((e=>(i("loose invalid filter",e,this.options),!!e.match(l[s.COMPARATORLOOSE]))))),i("range list",g);const b=new Map,y=g.map((e=>new o(e,this.options)));for(const e of y){if(h(e))return[e];b.set(e.value,e)}b.size>1&&b.has("")&&b.delete("");const x=[...b.values()];return n.set(t,x),x}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>g(t,n)&&e.set.some((e=>g(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(L(this.set[t],e,this.options))return!0;return!1}}uC=t;const n=new(Mk?Pk:(Mk=1,Pk=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}})),r=qk(),o=function(){if(cC)return sC;cC=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){const n=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],i=t.match(n);if(!i)throw new TypeError("Invalid comparator: ".concat(t));this.operator=void 0!==i[1]?i[1]:"","="===this.operator&&(this.operator=""),i[2]?this.semver=new l(i[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new l(t,this.options)}catch(e){return!1}return i(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new s(e.value,r).test(this.value):""===e.operator?""===e.value||new s(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(i(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(i(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}sC=t;const n=qk(),{safeRe:r,t:o}=vC(),i=xC(),a=gC(),l=bC(),s=SC();return sC}(),i=gC(),a=bC(),{safeRe:l,t:s,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=vC(),{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:p}=mC(),h=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},v=(e,t)=>(i("comp",e,t),e=S(e,t),i("caret",e),e=y(e,t),i("tildes",e),e=E(e,t),i("xrange",e),e=C(e,t),i("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,y=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{const n=t.loose?l[s.TILDELOOSE]:l[s.TILDE];return e.replace(n,((t,n,r,o,a)=>{let l;return i("tilde",e,t,n,r,o,a),b(n)?l="":b(r)?l=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):b(o)?l=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):a?(i("replaceTilde pr",a),l=">=".concat(n,".").concat(r,".").concat(o,"-").concat(a," <").concat(n,".").concat(+r+1,".0-0")):l=">=".concat(n,".").concat(r,".").concat(o," <").concat(n,".").concat(+r+1,".0-0"),i("tilde return",l),l}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{i("caret",e,t);const n=t.loose?l[s.CARETLOOSE]:l[s.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,a,l)=>{let s;return i("caret",e,t,n,o,a,l),b(n)?s="":b(o)?s=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):b(a)?s="0"===n?">=".concat(n,".").concat(o,".0").concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".0").concat(r," <").concat(+n+1,".0.0-0"):l?(i("replaceCaret pr",l),s="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(a,"-").concat(l," <").concat(n,".").concat(o,".").concat(+a+1,"-0"):">=".concat(n,".").concat(o,".").concat(a,"-").concat(l," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(a,"-").concat(l," <").concat(+n+1,".0.0-0")):(i("no pr"),s="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(a).concat(r," <").concat(n,".").concat(o,".").concat(+a+1,"-0"):">=".concat(n,".").concat(o,".").concat(a).concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(a," <").concat(+n+1,".0.0-0")),i("caret return",s),s}))},E=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>k(e,t))).join(" ")),k=(e,t)=>{e=e.trim();const n=t.loose?l[s.XRANGELOOSE]:l[s.XRANGE];return e.replace(n,((n,r,o,a,l,s)=>{i("xRange",e,n,r,o,a,l,s);const c=b(o),u=c||b(a),d=u||b(l),f=d;return"="===r&&f&&(r=""),s=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(u&&(a=0),l=0,">"===r?(r=">=",u?(o=+o+1,a=0,l=0):(a=+a+1,l=0)):"<="===r&&(r="<",u?o=+o+1:a=+a+1),"<"===r&&(s="-0"),n="".concat(r+o,".").concat(a,".").concat(l).concat(s)):u?n=">=".concat(o,".0.0").concat(s," <").concat(+o+1,".0.0-0"):d&&(n=">=".concat(o,".").concat(a,".0").concat(s," <").concat(o,".").concat(+a+1,".0-0")),i("xRange return",n),n}))},C=(e,t)=>(i("replaceStars",e,t),e.trim().replace(l[s.STAR],"")),_=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),R=e=>(t,n,r,o,i,a,l,s,c,u,d,f)=>(n=b(r)?"":b(o)?">=".concat(r,".0.0").concat(e?"-0":""):b(i)?">=".concat(r,".").concat(o,".0").concat(e?"-0":""):a?">=".concat(n):">=".concat(n).concat(e?"-0":""),s=b(c)?"":b(u)?"<".concat(+c+1,".0.0-0"):b(d)?"<".concat(c,".").concat(+u+1,".0-0"):f?"<=".concat(c,".").concat(u,".").concat(d,"-").concat(f):e?"<".concat(c,".").concat(u,".").concat(+d+1,"-0"):"<=".concat(s),"".concat(n," ").concat(s).trim()),L=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(i(e[n].semver),e[n].semver!==o.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return uC}var wC=function(){if(pC)return fC;pC=1;const e=SC();return fC=(t,n,r)=>{try{n=new e(n,r)}catch(e){return!1}return n.test(t)},fC}(),EC=r(wC);const kC={};function CC(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:i}=o,a={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&i&&i.deps&&i.deps.properties)||EC(e,i.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!kC[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);kC[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 Lw("Failed to load visualization: '".concat(n,"'"),e)}))}return kC[i]}(a.name,a.version,t,o.load).then((e=>(n=n||xk(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=f({qInfo:{qType:a.name},visualization:a.name,version:a.version,showTitles:!0},JSON.parse(r));return t?(pe(!0,n,e),n):f(f({},n),e)}))}};return a}function _C(e,t){const n={};let r=null;return{get:e=>n[e],register:(o,i)=>{if(n[o])throw new Error("Supernova '".concat(e,"@").concat(o,"' already registered."));n[o]=CC({name:e,version:o},t,i),r=null},getMatchingVersionFromProperties:e=>{r||(r=function(e){const t=e.filter((e=>"undefined"===e));return[...t,...e.filter((e=>"undefined"!==e)).map((e=>e.split(".").map((e=>parseInt(e,10))))).sort(((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2])).map((e=>e.join(".")))]}(Object.keys(n)));for(let t=r.length-1;t>=0;t--){if(n[r[t]].supportsPropertiesVersion(e))return r[t]}return null},versions:n}}function RC(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=_C(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>{if(r[e])return r[e].getMatchingVersionFromProperties(t)},get(e){const{name:t}=e;let{version:n}=e;if(r[t]){if(!r[t].versions[n]){n=Object.keys(r[t].versions)[0]}}else this.register({name:t,version:n});return r[t].get(n)||o.get(e)},getList:()=>Object.keys(r).map((e=>({name:e,versions:Object.keys(r[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{r[e]&&(r[e]=void 0),function(e){Object.keys(kC).forEach((t=>{t.split("__")[0]===e&&(kC[t]=void 0)}))}(e)}}}const LC={context:{},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0,CLIENT_IM_3365:!0},snapshot:{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()))}};LC.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table",navigation:{}};const OC=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f(f({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},IC=function(){return[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]].filter(((e,t,n)=>n.indexOf(e)===t))};var TC=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=R(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let i=f(f({},t.context),{},{translator:n.translator});const[a,l]=Xs({app:e,context:i}),s=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=$e();return{setTheme:async o=>{let i=e.filter((e=>e.id===o))[0],a="dark"===o?"dark":"light";if(!i&&t&&(i={load:t}),i&&i.load)try{const e=await Promise.race([i.load(o),Be(We,{__timedOut:!0})]);e.__timedOut||(a="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(a))}catch(e){}else r.internalAPI.setTheme({type:a},o),n.setMuiThemeName(a)},externalAPI:r.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:a});i.themeApi=s.externalAPI;const c={galaxy:{translator:n.translator,theme:s.externalAPI,flags:tE(t.flags),deviceType:Ue(t.context.deviceType),hostConfig:t.hostConfig,anything:t.anything},theme:s.externalAPI,translator:n.translator,nebbie:null},u={app:e,root:a,config:t,public:c,context:i,types:null},d=RC({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),h=null,m=null;const g={render:async e=>(await p,e.id?Tk(e,u,l):async function(e,t,n){let{type:r,version:o,fields:i,properties:a,options:l,plugins:s,element:c,extendProperties:u,navigation:d,onRender:f,onError:p}=e,h={};const m=[],{modelStore:g,subscribe:v}=n;let b;try{const e=t.types.get({name:r,version:o});h=await e.initialProperties(a,u);const n=await e.supernova();i&&await yS({sn:n,properties:h,fields:i,children:m},t),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},h)}catch(e){b=e,h={qInfo:{qType:r},visualization:r}}const y=await t.app.createSessionObject(h);m.length>0&&await y.setFullPropertyTree({qProperty:h,qChildren:m}),g.set(y.id,y);const x=v(y);return kk(y,{options:l,plugins:s,element:c,onRender:f,onError:p},t,d,b,(async()=>{await t.app.destroySessionObject(y.id),x()}))}(e,u,l)),destroy:async()=>{a.destroy()},create:async e=>Ck(e,u,!1,l),generateProperties:async e=>Ck(e,u,!0,l),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==i[n]&&(t||(t={}),t[n]=e[n])})),t&&(i=f(f(f({},i),t),{},{translator:n.translator}),t.theme&&(p=s.setTheme(t.theme),await p),t.language&&u.public.translator.language(t.language),a.context(i))},selections:async()=>(h||(h={mount(t){m||(m=function(e){let{element:t,app:n}=e;return Zl.createPortal(S.createElement(xx,{app:n}),t,yx())}({element:t,app:e}),a.add(m))},unmount(){m&&(a.remove(m),m=null)}}),h),field:async t=>{let n;const r="string"==typeof t?t:t.qLibraryId;if(t.qId)n=t.qId;else if(!r)throw new Error("Field identifier or object id must be provided");const o={fieldName:r,async mount(i){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i)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 s=()=>o.emit("selectionActivated"),c=()=>o.emit("selectionDeactivated");return new Promise((r=>{[this._instance,this._ref]=function(e){let{element:t,app:n,fieldIdentifier:r,qId:o,stateName:i="$",options:a={},renderedCallback:l}=e;const s=S.createRef();return[Zl.createPortal(S.createElement(iS,{ref:s,app:n,element:t,fieldIdentifier:r,qId:o,stateName:i,initialOptions:a,renderedCallback:l}),t,yx()),s]}({element:i,app:e,fieldIdentifier:t,qId:n,options:oS(f({onSelectionActivated:s,onSelectionDeactivated:c},l)),stateName:l.stateName||"$",renderedCallback:r}),a.add(this._instance)}))},unmount(){this._instance&&(a.remove(this._instance),this._instance=null,this._ref=null)},__DO_NOT_USE__:{options(e){var t;const n=()=>o.emit("selectionActivated"),r=()=>o.emit("selectionDeactivated");if(null!==(t=o._ref)&&void 0!==t&&t.current){const t=oS(f({onSelectionActivated:n,onSelectionDeactivated:r},e));o._ref.current.setOptions(t)}}}};return ib(o),o},getRegisteredTypes:d.getList,__DO_NOT_USE__:{types:d,popover(t,n,r){g._popoverInstance&&(a.remove(g._popoverInstance),g._popoverInstance=null);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=f({},aS);return pe(!0,t,e),t}(f({onPopoverClose:()=>g.emit("fieldPopoverClose")},r));g._popoverInstance=S.createElement(lS,{element:t,key:yx(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),a.add(g._popoverInstance)}}};return u.public.nebbie=g,u.types=d,ib(g),g}return r.createConfiguration=n=>e(((e,t)=>({context:OC(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:f({},t.snapshot||e.snapshot),types:IC(e.types,t.types),themes:IC(e.themes,t.themes),flags:OC(e.flags,t.flags),hostConfig:t.hostConfig||e.hostConfig,anything:OC(e.anything,t.anything)}))(t,n)),r.config=t,r}(LC);function PC(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const MC=globalThis.crypto||{getRandomValues:()=>123456};function NC(e){return t=>{const n=pe({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^MC.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=n._mock;let o=n;return r&&(delete n._mock,o=pe({},n,r)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(n),getEffectiveProperties:()=>Promise.resolve(n),removeListener:()=>{},id:n.qInfo.qId,properties:n,session:e})}}const DC=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},qC=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=DC(e,{defaultValue:t,args:i});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},AC=["id","session"],zC=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function jC(e){return!zC.includes(e)}function FC(e){const t=DC(e.getLayout);return t.qInfo&&t.qInfo.qId}function $C(e,t){return e.reduce(((e,n)=>f(f({},e),function(e,t){let n=FC(e);const{delay:r}=t,{id:o,session:i}=e,a=p(e,AC);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]:f(f({id:n,session:DC(i,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{}},Object.entries(a).reduce(((e,t)=>{let[n,o]=t;return f(f({},e),{},{[n]:qC(o,{async:jC(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function BC(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!FC(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function WC(){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(BC);const n=$C(e,t);return async e=>Promise.resolve(n[e])}function UC(){return()=>Promise.resolve({id:"app-layout"})}const HC={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new PC,r=new NC(n),o=new WC(e,t),i=new UC,a={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,destroySessionObject:async()=>{},getObject:o,getAppLayout:i,getListObject:async e=>{var t;return o(null===(t=e.qInfo)||void 0===t?void 0:t.qId)}};return Promise.resolve(a)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},VC={generator:xk,hook:tk,theme:$e,locale:E};e.EnigmaMocker=HC,e.__DO_NOT_USE__=VC,e.conversion=MS,e.embed=TC,e.onContextMenu=function(e){const t=QE(++$E);t.value||(t.value=1,FE.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=QE(++$E);t.value||(t.value=1,FE.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=nk({action(){n._config.action.call(null)}});return n.component||(n.component=FE,FE.__hooks.actions.list.push(n)),ik((()=>{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=YE("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return YE("appLayout")},e.useConstraints=function(){return YE("constraints")},e.useDeviceType=function(){return YE("deviceType")},e.useEffect=rk,e.useElement=ak,e.useEmbed=function(){return YE("nebbie")},e.useEmitter=function(){return YE("emitter")},e.useGlobal=function(){const e=YE("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=QE(++$E);if(n.imperative||(n.imperative=!0),BE(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],FE.__hooks.imperativeHandle=r}},e.useInteractionState=function(){return YE("interactions")},e.useKeyboard=function(){const e=YE("keyboardNavigation"),t=YE("focusHandler");if(!FE.__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&&(sk(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(FE);FE.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),lk(this))}.bind(FE);FE.__hooks.accessibility.focusFunction=n;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(FE);FE.__hooks.accessibility.focusSelectionFunction=r}const n=FE.__hooks.accessibility.focusFunction,r=FE.__hooks.accessibility.exitFunction,o=FE.__hooks.accessibility.focusSelectionFunction,[i,a]=nk({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return FE.__hooks.accessibility.setter=a,FE.__hooks.accessibility.enabled=e,rk((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i},e.useLayout=function(){return YE("layout")},e.useMemo=ik,e.useModel=function(){const e=YE("model");return e&&e.session?e:void 0},e.useNavigation=function(){return YE("navigation")},e.useOptions=function(){return YE("options")},e.usePlugins=function(){return YE("plugins")},e.usePromise=function(e,t){const[n,r]=nk((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=QE(++$E);return o.component||(o.component=FE),ok((()=>{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=ak(),t=FE.__hooks.resizer,[n,r]=nk((()=>{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()),ok((()=>{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.useRef=function(e){return ik((()=>({current:e})),[])},e.useRenderState=function(){QE(++$E);const e=FE.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return YE("selections")},e.useStaleLayout=function(){const e=YE("layout"),[t]=nk({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=nk,e.useTheme=function(){return YE("theme")},e.useTranslator=function(){return YE("translator")}}));
131
+ */var cE=(aE||(aE=1,function(e,t){(function(){var r,o="Expected a function",i="__lodash_hash_undefined__",a="__lodash_placeholder__",l=32,s=128,c=256,u=1/0,d=9007199254740991,f=NaN,p=4294967295,h=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",c]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",b="[object Date]",y="[object Error]",x="[object Function]",S="[object GeneratorFunction]",w="[object Map]",E="[object Number]",k="[object Object]",C="[object Promise]",_="[object RegExp]",R="[object Set]",L="[object String]",O="[object Symbol]",I="[object WeakMap]",T="[object ArrayBuffer]",P="[object DataView]",M="[object Float32Array]",q="[object Float64Array]",D="[object Int8Array]",N="[object Int16Array]",A="[object Int32Array]",z="[object Uint8Array]",j="[object Uint8ClampedArray]",F="[object Uint16Array]",$="[object Uint32Array]",B=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,U=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,G=RegExp(U.source),K=RegExp(V.source),Z=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Y=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,se=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ye=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,Se="\\ud800-\\udfff",we="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",ke="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",_e="\\ufe0e\\ufe0f",Re="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Le="['’]",Oe="["+Se+"]",Ie="["+Re+"]",Te="["+we+"]",Pe="\\d+",Me="["+Ee+"]",qe="["+ke+"]",De="[^"+Se+Re+Pe+Ee+ke+Ce+"]",Ne="\\ud83c[\\udffb-\\udfff]",Ae="[^"+Se+"]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",je="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+Ce+"]",$e="\\u200d",Be="(?:"+qe+"|"+De+")",We="(?:"+Fe+"|"+De+")",He="(?:['’](?:d|ll|m|re|s|t|ve))?",Ue="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ve="(?:"+Te+"|"+Ne+")?",Ge="["+_e+"]?",Ke=Ge+Ve+"(?:"+$e+"(?:"+[Ae,ze,je].join("|")+")"+Ge+Ve+")*",Ze="(?:"+[Me,ze,je].join("|")+")"+Ke,Je="(?:"+[Ae+Te+"?",Te,ze,je,Oe].join("|")+")",Xe=RegExp(Le,"g"),Ye=RegExp(Te,"g"),Qe=RegExp(Ne+"(?="+Ne+")|"+Je+Ke,"g"),et=RegExp([Fe+"?"+qe+"+"+He+"(?="+[Ie,Fe,"$"].join("|")+")",We+"+"+Ue+"(?="+[Ie,Fe+Be,"$"].join("|")+")",Fe+"?"+Be+"+"+He,Fe+"+"+Ue,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,Ze].join("|"),"g"),tt=RegExp("["+$e+Se+we+_e+"]"),nt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ot=-1,it={};it[M]=it[q]=it[D]=it[N]=it[A]=it[z]=it[j]=it[F]=it[$]=!0,it[m]=it[g]=it[T]=it[v]=it[P]=it[b]=it[y]=it[x]=it[w]=it[E]=it[k]=it[_]=it[R]=it[L]=it[I]=!1;var at={};at[m]=at[g]=at[T]=at[P]=at[v]=at[b]=at[M]=at[q]=at[D]=at[N]=at[A]=at[w]=at[E]=at[k]=at[_]=at[R]=at[L]=at[O]=at[z]=at[j]=at[F]=at[$]=!0,at[y]=at[x]=at[I]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ct=parseInt,ut="object"==typeof n&&n&&n.Object===Object&&n,dt="object"==typeof self&&self&&self.Object===Object&&self,ft=ut||dt||Function("return this")(),pt=t&&!t.nodeType&&t,ht=pt&&e&&!e.nodeType&&e,mt=ht&&ht.exports===pt,gt=mt&&ut.process,vt=function(){try{var e=ht&&ht.require&&ht.require("util").types;return e||gt&&gt.binding&&gt.binding("util")}catch(e){}}(),bt=vt&&vt.isArrayBuffer,yt=vt&&vt.isDate,xt=vt&&vt.isMap,St=vt&&vt.isRegExp,wt=vt&&vt.isSet,Et=vt&&vt.isTypedArray;function kt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ct(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function _t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Rt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ot(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function It(e,t){return!(null==e||!e.length)&&Ft(e,t,0)>-1}function Tt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Mt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function qt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Dt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Nt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var At=Ht("length");function zt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function jt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ft(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):jt(e,Bt,n)}function $t(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Bt(e){return e!=e}function Wt(e,t){var n=null==e?0:e.length;return n?Gt(e,t)/n:f}function Ht(e){return function(t){return null==t?r:t[e]}}function Ut(e){return function(t){return null==e?r:e[t]}}function Vt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Gt(e,t){for(var n,o=-1,i=e.length;++o<i;){var a=t(e[o]);a!==r&&(n=n===r?a:n+a)}return n}function Kt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Zt(e){return e?e.slice(0,pn(e)+1).replace(re,""):e}function Jt(e){return function(t){return e(t)}}function Xt(e,t){return Pt(t,(function(t){return e[t]}))}function Yt(e,t){return e.has(t)}function Qt(e,t){for(var n=-1,r=e.length;++n<r&&Ft(t,e[n],0)>-1;);return n}function en(e,t){for(var n=e.length;n--&&Ft(t,e[n],0)>-1;);return n}var tn=Ut({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),nn=Ut({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rn(e){return"\\"+lt[e]}function on(e){return tt.test(e)}function an(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var l=e[n];l!==t&&l!==a||(e[n]=a,i[o++]=n)}return i}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function dn(e){return on(e)?function(e){for(var t=Qe.lastIndex=0;Qe.test(e);)++t;return t}(e):At(e)}function fn(e){return on(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.split("")}(e)}function pn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var hn=Ut({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),mn=function e(t){var n=(t=null==t?ft:mn.defaults(ft.Object(),t,mn.pick(ft,rt))).Array,oe=t.Date,Se=t.Error,we=t.Function,Ee=t.Math,ke=t.Object,Ce=t.RegExp,_e=t.String,Re=t.TypeError,Le=n.prototype,Oe=we.prototype,Ie=ke.prototype,Te=t["__core-js_shared__"],Pe=Oe.toString,Me=Ie.hasOwnProperty,qe=0,De=function(){var e=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ne=Ie.toString,Ae=Pe.call(ke),ze=ft._,je=Ce("^"+Pe.call(Me).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fe=mt?t.Buffer:r,$e=t.Symbol,Be=t.Uint8Array,We=Fe?Fe.allocUnsafe:r,He=ln(ke.getPrototypeOf,ke),Ue=ke.create,Ve=Ie.propertyIsEnumerable,Ge=Le.splice,Ke=$e?$e.isConcatSpreadable:r,Ze=$e?$e.iterator:r,Je=$e?$e.toStringTag:r,Qe=function(){try{var e=ui(ke,"defineProperty");return e({},"",{}),e}catch(e){}}(),tt=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,lt=oe&&oe.now!==ft.Date.now&&oe.now,ut=t.setTimeout!==ft.setTimeout&&t.setTimeout,dt=Ee.ceil,pt=Ee.floor,ht=ke.getOwnPropertySymbols,gt=Fe?Fe.isBuffer:r,vt=t.isFinite,At=Le.join,Ut=ln(ke.keys,ke),gn=Ee.max,vn=Ee.min,bn=oe.now,yn=t.parseInt,xn=Ee.random,Sn=Le.reverse,wn=ui(t,"DataView"),En=ui(t,"Map"),kn=ui(t,"Promise"),Cn=ui(t,"Set"),_n=ui(t,"WeakMap"),Rn=ui(ke,"create"),Ln=_n&&new _n,On={},In=Ni(wn),Tn=Ni(En),Pn=Ni(kn),Mn=Ni(Cn),qn=Ni(_n),Dn=$e?$e.prototype:r,Nn=Dn?Dn.valueOf:r,An=Dn?Dn.toString:r;function zn(e){if(Qa(e)&&!Ba(e)&&!(e instanceof Bn)){if(e instanceof $n)return e;if(Me.call(e,"__wrapped__"))return Ai(e)}return new $n(e)}var jn=function(){function e(){}return function(t){if(!Ya(t))return{};if(Ue)return Ue(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Fn(){}function $n(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function Bn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Un(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Un;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Hn(e);this.size=t.size}function Kn(e,t){var n=Ba(e),r=!n&&$a(e),o=!n&&!r&&Va(e),i=!n&&!r&&!o&&ll(e),a=n||r||o||i,l=a?Kt(e.length,_e):[],s=l.length;for(var c in e)!t&&!Me.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||vi(c,s))||l.push(c);return l}function Zn(e){var t=e.length;return t?e[Vr(0,t-1)]:r}function Jn(e,t){return Mi(Lo(e),ir(t,0,e.length))}function Xn(e){return Mi(Lo(e))}function Yn(e,t,n){(n!==r&&!za(e[t],n)||n===r&&!(t in e))&&rr(e,t,n)}function Qn(e,t,n){var o=e[t];Me.call(e,t)&&za(o,n)&&(n!==r||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(za(e[n][0],t))return n;return-1}function tr(e,t,n,r){return ur(e,(function(e,o,i){t(r,e,n(e),i)})),r}function nr(e,t){return e&&Oo(t,Ol(t),e)}function rr(e,t,n){"__proto__"==t&&Qe?Qe(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var o=-1,i=t.length,a=n(i),l=null==e;++o<i;)a[o]=l?r:kl(e,t[o]);return a}function ir(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function ar(e,t,n,o,i,a){var l,s=1&t,c=2&t,u=4&t;if(n&&(l=i?n(e,o,i,a):n(e)),l!==r)return l;if(!Ya(e))return e;var d=Ba(e);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Me.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return Lo(e,l)}else{var f=pi(e),p=f==x||f==S;if(Va(e))return wo(e,s);if(f==k||f==m||p&&!i){if(l=c||p?{}:mi(e),!s)return c?function(e,t){return Oo(e,fi(e),t)}(e,function(e,t){return e&&Oo(t,Il(t),e)}(l,e)):function(e,t){return Oo(e,di(e),t)}(e,nr(l,e))}else{if(!at[f])return i?e:{};l=function(e,t,n){var r,o=e.constructor;switch(t){case T:return Eo(e);case v:case b:return new o(+e);case P:return function(e,t){var n=t?Eo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case M:case q:case D:case N:case A:case z:case j:case F:case $:return ko(e,n);case w:return new o;case E:case L:return new o(e);case _:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case R:return new o;case O:return r=e,Nn?ke(Nn.call(r)):{}}}(e,f,s)}}a||(a=new Gn);var h=a.get(e);if(h)return h;a.set(e,l),ol(e)?e.forEach((function(r){l.add(ar(r,t,n,r,e,a))})):el(e)&&e.forEach((function(r,o){l.set(o,ar(r,t,n,o,e,a))}));var g=d?r:(u?c?ri:ni:c?Il:Ol)(e);return _t(g||e,(function(r,o){g&&(r=e[o=r]),Qn(l,o,ar(r,t,n,o,e,a))})),l}function lr(e,t,n){var o=n.length;if(null==e)return!o;for(e=ke(e);o--;){var i=n[o],a=t[i],l=e[i];if(l===r&&!(i in e)||!a(l))return!1}return!0}function sr(e,t,n){if("function"!=typeof e)throw new Re(o);return Oi((function(){e.apply(r,n)}),t)}function cr(e,t,n,r){var o=-1,i=It,a=!0,l=e.length,s=[],c=t.length;if(!l)return s;n&&(t=Pt(t,Jt(n))),r?(i=Tt,a=!1):t.length>=200&&(i=Yt,a=!1,t=new Vn(t));e:for(;++o<l;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var f=c;f--;)if(t[f]===d)continue e;s.push(u)}else i(t,d,r)||s.push(u)}return s}zn.templateSettings={escape:Z,evaluate:J,interpolate:X,variable:"",imports:{_:zn}},zn.prototype=Fn.prototype,zn.prototype.constructor=zn,$n.prototype=jn(Fn.prototype),$n.prototype.constructor=$n,Bn.prototype=jn(Fn.prototype),Bn.prototype.constructor=Bn,Wn.prototype.clear=function(){this.__data__=Rn?Rn(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(Rn){var n=t[e];return n===i?r:n}return Me.call(t,e)?t[e]:r},Wn.prototype.has=function(e){var t=this.__data__;return Rn?t[e]!==r:Me.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Rn&&t===r?i:t,this},Hn.prototype.clear=function(){this.__data__=[],this.size=0},Hn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,0))},Hn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?r:t[n][1]},Hn.prototype.has=function(e){return er(this.__data__,e)>-1},Hn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Un.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(En||Hn),string:new Wn}},Un.prototype.delete=function(e){var t=si(this,e).delete(e);return this.size-=t?1:0,t},Un.prototype.get=function(e){return si(this,e).get(e)},Un.prototype.has=function(e){return si(this,e).has(e)},Un.prototype.set=function(e,t){var n=si(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Vn.prototype.add=Vn.prototype.push=function(e){return this.__data__.set(e,i),this},Vn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Hn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Hn){var r=n.__data__;if(!En||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Un(r)}return n.set(e,t),this.size=n.size,this};var ur=Po(br),dr=Po(yr,!0);function fr(e,t){var n=!0;return ur(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function pr(e,t,n){for(var o=-1,i=e.length;++o<i;){var a=e[o],l=t(a);if(null!=l&&(s===r?l==l&&!al(l):n(l,s)))var s=l,c=a}return c}function hr(e,t){var n=[];return ur(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function mr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=gi),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?mr(l,t-1,n,r,o):Mt(o,l):r||(o[o.length]=l)}return o}var gr=Mo(),vr=Mo(!0);function br(e,t){return e&&gr(e,t,Ol)}function yr(e,t){return e&&vr(e,t,Ol)}function xr(e,t){return Ot(t,(function(t){return Za(e[t])}))}function Sr(e,t){for(var n=0,o=(t=bo(t,e)).length;null!=e&&n<o;)e=e[Di(t[n++])];return n&&n==o?e:r}function wr(e,t,n){var r=t(e);return Ba(e)?r:Mt(r,n(e))}function Er(e){return null==e?e===r?"[object Undefined]":"[object Null]":Je&&Je in ke(e)?function(e){var t=Me.call(e,Je),n=e[Je];try{e[Je]=r;var o=!0}catch(e){}var i=Ne.call(e);return o&&(t?e[Je]=n:delete e[Je]),i}(e):function(e){return Ne.call(e)}(e)}function kr(e,t){return e>t}function Cr(e,t){return null!=e&&Me.call(e,t)}function _r(e,t){return null!=e&&t in ke(e)}function Rr(e,t,o){for(var i=o?Tt:It,a=e[0].length,l=e.length,s=l,c=n(l),u=1/0,d=[];s--;){var f=e[s];s&&t&&(f=Pt(f,Jt(t))),u=vn(f.length,u),c[s]=!o&&(t||a>=120&&f.length>=120)?new Vn(s&&f):r}f=e[0];var p=-1,h=c[0];e:for(;++p<a&&d.length<u;){var m=f[p],g=t?t(m):m;if(m=o||0!==m?m:0,!(h?Yt(h,g):i(d,g,o))){for(s=l;--s;){var v=c[s];if(!(v?Yt(v,g):i(e[s],g,o)))continue e}h&&h.push(g),d.push(m)}}return d}function Lr(e,t,n){var o=null==(e=_i(e,t=bo(t,e)))?e:e[Di(Ki(t))];return null==o?r:kt(o,e,n)}function Or(e){return Qa(e)&&Er(e)==m}function Ir(e,t,n,o,i){return e===t||(null==e||null==t||!Qa(e)&&!Qa(t)?e!=e&&t!=t:function(e,t,n,o,i,a){var l=Ba(e),s=Ba(t),c=l?g:pi(e),u=s?g:pi(t),d=(c=c==m?k:c)==k,f=(u=u==m?k:u)==k,p=c==u;if(p&&Va(e)){if(!Va(t))return!1;l=!0,d=!1}if(p&&!d)return a||(a=new Gn),l||ll(e)?ei(e,t,n,o,i,a):function(e,t,n,r,o,i,a){switch(n){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!i(new Be(e),new Be(t)));case v:case b:case E:return za(+e,+t);case y:return e.name==t.name&&e.message==t.message;case _:case L:return e==t+"";case w:var l=an;case R:var s=1&r;if(l||(l=cn),e.size!=t.size&&!s)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=ei(l(e),l(t),r,o,i,a);return a.delete(e),u;case O:if(Nn)return Nn.call(e)==Nn.call(t)}return!1}(e,t,c,n,o,i,a);if(!(1&n)){var h=d&&Me.call(e,"__wrapped__"),x=f&&Me.call(t,"__wrapped__");if(h||x){var S=h?e.value():e,C=x?t.value():t;return a||(a=new Gn),i(S,C,n,o,a)}}return!!p&&(a||(a=new Gn),function(e,t,n,o,i,a){var l=1&n,s=ni(e),c=s.length,u=ni(t),d=u.length;if(c!=d&&!l)return!1;for(var f=c;f--;){var p=s[f];if(!(l?p in t:Me.call(t,p)))return!1}var h=a.get(e),m=a.get(t);if(h&&m)return h==t&&m==e;var g=!0;a.set(e,t),a.set(t,e);for(var v=l;++f<c;){var b=e[p=s[f]],y=t[p];if(o)var x=l?o(y,b,p,t,e,a):o(b,y,p,e,t,a);if(!(x===r?b===y||i(b,y,n,o,a):x)){g=!1;break}v||(v="constructor"==p)}if(g&&!v){var S=e.constructor,w=t.constructor;S==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof S&&S instanceof S&&"function"==typeof w&&w instanceof w||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,n,o,i,a))}(e,t,n,o,Ir,i))}function Tr(e,t,n,o){var i=n.length,a=i,l=!o;if(null==e)return!a;for(e=ke(e);i--;){var s=n[i];if(l&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var c=(s=n[i])[0],u=e[c],d=s[1];if(l&&s[2]){if(u===r&&!(c in e))return!1}else{var f=new Gn;if(o)var p=o(u,d,c,e,t,f);if(!(p===r?Ir(d,u,3,o,f):p))return!1}}return!0}function Pr(e){return!(!Ya(e)||(t=e,De&&De in t))&&(Za(e)?je:me).test(Ni(e));var t}function Mr(e){return"function"==typeof e?e:null==e?ts:"object"==typeof e?Ba(e)?jr(e[0],e[1]):zr(e):us(e)}function qr(e){if(!wi(e))return Ut(e);var t=[];for(var n in ke(e))Me.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Dr(e){if(!Ya(e))return function(e){var t=[];if(null!=e)for(var n in ke(e))t.push(n);return t}(e);var t=wi(e),n=[];for(var r in e)("constructor"!=r||!t&&Me.call(e,r))&&n.push(r);return n}function Nr(e,t){return e<t}function Ar(e,t){var r=-1,o=Ha(e)?n(e.length):[];return ur(e,(function(e,n,i){o[++r]=t(e,n,i)})),o}function zr(e){var t=ci(e);return 1==t.length&&t[0][2]?ki(t[0][0],t[0][1]):function(n){return n===e||Tr(n,e,t)}}function jr(e,t){return yi(e)&&Ei(t)?ki(Di(e),t):function(n){var o=kl(n,e);return o===r&&o===t?Cl(n,e):Ir(t,o,3)}}function Fr(e,t,n,o,i){e!==t&&gr(t,(function(a,l){if(i||(i=new Gn),Ya(a))!function(e,t,n,o,i,a,l){var s=Ri(e,n),c=Ri(t,n),u=l.get(c);if(u)Yn(e,n,u);else{var d=a?a(s,c,n+"",e,t,l):r,f=d===r;if(f){var p=Ba(c),h=!p&&Va(c),m=!p&&!h&&ll(c);d=c,p||h||m?Ba(s)?d=s:Ua(s)?d=Lo(s):h?(f=!1,d=wo(c,!0)):m?(f=!1,d=ko(c,!0)):d=[]:nl(c)||$a(c)?(d=s,$a(s)?d=ml(s):Ya(s)&&!Za(s)||(d=mi(c))):f=!1}f&&(l.set(c,d),i(d,c,o,a,l),l.delete(c)),Yn(e,n,d)}}(e,t,l,n,Fr,o,i);else{var s=o?o(Ri(e,l),a,l+"",e,t,i):r;s===r&&(s=a),Yn(e,l,s)}}),Il)}function $r(e,t){var n=e.length;if(n)return vi(t+=t<0?n:0,n)?e[t]:r}function Br(e,t,n){t=t.length?Pt(t,(function(e){return Ba(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e})):[ts];var r=-1;t=Pt(t,Jt(li()));var o=Ar(e,(function(e,n,o){var i=Pt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;++r<a;){var s=Co(o[r],i[r]);if(s)return r>=l?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Wr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],l=Sr(e,a);n(l,a)&&Xr(i,bo(a,e),l)}return i}function Hr(e,t,n,r){var o=r?$t:Ft,i=-1,a=t.length,l=e;for(e===t&&(t=Lo(t)),n&&(l=Pt(e,Jt(n)));++i<a;)for(var s=0,c=t[i],u=n?n(c):c;(s=o(l,u,s,r))>-1;)l!==e&&Ge.call(l,s,1),Ge.call(e,s,1);return e}function Ur(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;vi(o)?Ge.call(e,o,1):co(e,o)}}return e}function Vr(e,t){return e+pt(xn()*(t-e+1))}function Gr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=pt(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return Ii(Ci(e,t,ts),e+"")}function Zr(e){return Zn(zl(e))}function Jr(e,t){var n=zl(e);return Mi(n,ir(t,0,n.length))}function Xr(e,t,n,o){if(!Ya(e))return e;for(var i=-1,a=(t=bo(t,e)).length,l=a-1,s=e;null!=s&&++i<a;){var c=Di(t[i]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=l){var d=s[c];(u=o?o(d,c,s):r)===r&&(u=Ya(d)?d:vi(t[i+1])?[]:{})}Qn(s,c,u),s=s[c]}return e}var Yr=Ln?function(e,t){return Ln.set(e,t),e}:ts,Qr=Qe?function(e,t){return Qe(e,"toString",{configurable:!0,enumerable:!1,value:Yl(t),writable:!0})}:ts;function eo(e){return Mi(zl(e))}function to(e,t,r){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=n(i);++o<i;)a[o]=e[o+t];return a}function no(e,t){var n;return ur(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ro(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!al(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return oo(e,t,ts,n)}function oo(e,t,n,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var l=(t=n(t))!=t,s=null===t,c=al(t),u=t===r;i<a;){var d=pt((i+a)/2),f=n(e[d]),p=f!==r,h=null===f,m=f==f,g=al(f);if(l)var v=o||m;else v=u?m&&(o||p):s?m&&p&&(o||!h):c?m&&p&&!h&&(o||!g):!h&&!g&&(o?f<=t:f<t);v?i=d+1:a=d}return vn(a,4294967294)}function io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],l=t?t(a):a;if(!n||!za(l,s)){var s=l;i[o++]=0===a?0:a}}return i}function ao(e){return"number"==typeof e?e:al(e)?f:+e}function lo(e){if("string"==typeof e)return e;if(Ba(e))return Pt(e,lo)+"";if(al(e))return An?An.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function so(e,t,n){var r=-1,o=It,i=e.length,a=!0,l=[],s=l;if(n)a=!1,o=Tt;else if(i>=200){var c=t?null:Ko(e);if(c)return cn(c);a=!1,o=Yt,s=new Vn}else s=t?[]:l;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var f=s.length;f--;)if(s[f]===d)continue e;t&&s.push(d),l.push(u)}else o(s,d,n)||(s!==l&&s.push(d),l.push(u))}return l}function co(e,t){return null==(e=_i(e,t=bo(t,e)))||delete e[Di(Ki(t))]}function uo(e,t,n,r){return Xr(e,t,n(Sr(e,t)),r)}function fo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?to(e,r?0:i,r?i+1:o):to(e,r?i+1:0,r?o:i)}function po(e,t){var n=e;return n instanceof Bn&&(n=n.value()),qt(t,(function(e,t){return t.func.apply(t.thisArg,Mt([e],t.args))}),n)}function ho(e,t,r){var o=e.length;if(o<2)return o?so(e[0]):[];for(var i=-1,a=n(o);++i<o;)for(var l=e[i],s=-1;++s<o;)s!=i&&(a[i]=cr(a[i]||l,e[s],t,r));return so(mr(a,1),t,r)}function mo(e,t,n){for(var o=-1,i=e.length,a=t.length,l={};++o<i;){var s=o<a?t[o]:r;n(l,e[o],s)}return l}function go(e){return Ua(e)?e:[]}function vo(e){return"function"==typeof e?e:ts}function bo(e,t){return Ba(e)?e:yi(e,t)?[e]:qi(gl(e))}var yo=Kr;function xo(e,t,n){var o=e.length;return n=n===r?o:n,!t&&n>=o?e:to(e,t,n)}var So=tt||function(e){return ft.clearTimeout(e)};function wo(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function Eo(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function ko(e,t){var n=t?Eo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Co(e,t){if(e!==t){var n=e!==r,o=null===e,i=e==e,a=al(e),l=t!==r,s=null===t,c=t==t,u=al(t);if(!s&&!u&&!a&&e>t||a&&l&&c&&!s&&!u||o&&l&&c||!n&&c||!i)return 1;if(!o&&!a&&!u&&e<t||u&&n&&i&&!o&&!a||s&&n&&i||!l&&i||!c)return-1}return 0}function _o(e,t,r,o){for(var i=-1,a=e.length,l=r.length,s=-1,c=t.length,u=gn(a-l,0),d=n(c+u),f=!o;++s<c;)d[s]=t[s];for(;++i<l;)(f||i<a)&&(d[r[i]]=e[i]);for(;u--;)d[s++]=e[i++];return d}function Ro(e,t,r,o){for(var i=-1,a=e.length,l=-1,s=r.length,c=-1,u=t.length,d=gn(a-s,0),f=n(d+u),p=!o;++i<d;)f[i]=e[i];for(var h=i;++c<u;)f[h+c]=t[c];for(;++l<s;)(p||i<a)&&(f[h+r[l]]=e[i++]);return f}function Lo(e,t){var r=-1,o=e.length;for(t||(t=n(o));++r<o;)t[r]=e[r];return t}function Oo(e,t,n,o){var i=!n;n||(n={});for(var a=-1,l=t.length;++a<l;){var s=t[a],c=o?o(n[s],e[s],s,n,e):r;c===r&&(c=e[s]),i?rr(n,s,c):Qn(n,s,c)}return n}function Io(e,t){return function(n,r){var o=Ba(n)?Ct:tr,i=t?t():{};return o(n,e,li(r,2),i)}}function To(e){return Kr((function(t,n){var o=-1,i=n.length,a=i>1?n[i-1]:r,l=i>2?n[2]:r;for(a=e.length>3&&"function"==typeof a?(i--,a):r,l&&bi(n[0],n[1],l)&&(a=i<3?r:a,i=1),t=ke(t);++o<i;){var s=n[o];s&&e(t,s,o,a)}return t}))}function Po(e,t){return function(n,r){if(null==n)return n;if(!Ha(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=ke(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Mo(e){return function(t,n,r){for(var o=-1,i=ke(t),a=r(t),l=a.length;l--;){var s=a[e?l:++o];if(!1===n(i[s],s,i))break}return t}}function qo(e){return function(t){var n=on(t=gl(t))?fn(t):r,o=n?n[0]:t.charAt(0),i=n?xo(n,1).join(""):t.slice(1);return o[e]()+i}}function Do(e){return function(t){return qt(Zl($l(t).replace(Xe,"")),e,"")}}function No(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=jn(e.prototype),r=e.apply(n,t);return Ya(r)?r:n}}function Ao(e){return function(t,n,o){var i=ke(t);if(!Ha(t)){var a=li(n,3);t=Ol(t),n=function(e){return a(i[e],e,i)}}var l=e(t,n,o);return l>-1?i[a?t[l]:l]:r}}function zo(e){return ti((function(t){var n=t.length,i=n,a=$n.prototype.thru;for(e&&t.reverse();i--;){var l=t[i];if("function"!=typeof l)throw new Re(o);if(a&&!s&&"wrapper"==ii(l))var s=new $n([],!0)}for(i=s?i:n;++i<n;){var c=ii(l=t[i]),u="wrapper"==c?oi(l):r;s=u&&xi(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?s[ii(u[0])].apply(s,u[3]):1==l.length&&xi(l)?s[c]():s.thru(l)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Ba(r))return s.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function jo(e,t,o,i,a,l,c,u,d,f){var p=t&s,h=1&t,m=2&t,g=24&t,v=512&t,b=m?r:No(e);return function s(){for(var y=arguments.length,x=n(y),S=y;S--;)x[S]=arguments[S];if(g)var w=ai(s),E=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(x,w);if(i&&(x=_o(x,i,a,g)),l&&(x=Ro(x,l,c,g)),y-=E,g&&y<f){var k=sn(x,w);return Vo(e,t,jo,s.placeholder,o,x,k,u,d,f-y)}var C=h?o:this,_=m?C[e]:e;return y=x.length,u?x=function(e,t){for(var n=e.length,o=vn(t.length,n),i=Lo(e);o--;){var a=t[o];e[o]=vi(a,n)?i[a]:r}return e}(x,u):v&&y>1&&x.reverse(),p&&d<y&&(x.length=d),this&&this!==ft&&this instanceof s&&(_=b||No(_)),_.apply(C,x)}}function Fo(e,t){return function(n,r){return function(e,t,n,r){return br(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function $o(e,t){return function(n,o){var i;if(n===r&&o===r)return t;if(n!==r&&(i=n),o!==r){if(i===r)return o;"string"==typeof n||"string"==typeof o?(n=lo(n),o=lo(o)):(n=ao(n),o=ao(o)),i=e(n,o)}return i}}function Bo(e){return ti((function(t){return t=Pt(t,Jt(li())),Kr((function(n){var r=this;return e(t,(function(e){return kt(e,r,n)}))}))}))}function Wo(e,t){var n=(t=t===r?" ":lo(t)).length;if(n<2)return n?Gr(t,e):t;var o=Gr(t,dt(e/dn(t)));return on(t)?xo(fn(o),0,e).join(""):o.slice(0,e)}function Ho(e){return function(t,o,i){return i&&"number"!=typeof i&&bi(t,o,i)&&(o=i=r),t=dl(t),o===r?(o=t,t=0):o=dl(o),function(e,t,r,o){for(var i=-1,a=gn(dt((t-e)/(r||1)),0),l=n(a);a--;)l[o?a:++i]=e,e+=r;return l}(t,o,i=i===r?t<o?1:-1:dl(i),e)}}function Uo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=hl(t),n=hl(n)),e(t,n)}}function Vo(e,t,n,o,i,a,s,c,u,d){var f=8&t;t|=f?l:64,4&(t&=~(f?64:l))||(t&=-4);var p=[e,t,i,f?a:r,f?s:r,f?r:a,f?r:s,c,u,d],h=n.apply(r,p);return xi(e)&&Li(h,p),h.placeholder=o,Ti(h,e,t)}function Go(e){var t=Ee[e];return function(e,n){if(e=hl(e),(n=null==n?0:vn(fl(n),292))&&vt(e)){var r=(gl(e)+"e").split("e");return+((r=(gl(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ko=Cn&&1/cn(new Cn([,-0]))[1]==u?function(e){return new Cn(e)}:as;function Zo(e){return function(t){var n=pi(t);return n==w?an(t):n==R?un(t):function(e,t){return Pt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jo(e,t,i,u,d,f,p,h){var m=2&t;if(!m&&"function"!=typeof e)throw new Re(o);var g=u?u.length:0;if(g||(t&=-97,u=d=r),p=p===r?p:gn(fl(p),0),h=h===r?h:fl(h),g-=d?d.length:0,64&t){var v=u,b=d;u=d=r}var y=m?r:oi(e),x=[e,t,i,u,d,v,b,f,p,h];if(y&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,l=r==s&&8==n||r==s&&n==c&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!l)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var d=e[3];e[3]=d?_o(d,u,t[4]):u,e[4]=d?sn(e[3],a):t[4]}(u=t[5])&&(d=e[5],e[5]=d?Ro(d,u,t[6]):u,e[6]=d?sn(e[5],a):t[6]),(u=t[7])&&(e[7]=u),r&s&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(x,y),e=x[0],t=x[1],i=x[2],u=x[3],d=x[4],!(h=x[9]=x[9]===r?m?0:e.length:gn(x[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)S=8==t||16==t?function(e,t,o){var i=No(e);return function a(){for(var l=arguments.length,s=n(l),c=l,u=ai(a);c--;)s[c]=arguments[c];var d=l<3&&s[0]!==u&&s[l-1]!==u?[]:sn(s,u);return(l-=d.length)<o?Vo(e,t,jo,a.placeholder,r,s,d,r,r,o-l):kt(this&&this!==ft&&this instanceof a?i:e,this,s)}}(e,t,h):t!=l&&33!=t||d.length?jo.apply(r,x):function(e,t,r,o){var i=1&t,a=No(e);return function t(){for(var l=-1,s=arguments.length,c=-1,u=o.length,d=n(u+s),f=this&&this!==ft&&this instanceof t?a:e;++c<u;)d[c]=o[c];for(;s--;)d[c++]=arguments[++l];return kt(f,i?r:this,d)}}(e,t,i,u);else var S=function(e,t,n){var r=1&t,o=No(e);return function t(){return(this&&this!==ft&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,i);return Ti((y?Yr:Li)(S,x),e,t)}function Xo(e,t,n,o){return e===r||za(e,Ie[n])&&!Me.call(o,n)?t:e}function Yo(e,t,n,o,i,a){return Ya(e)&&Ya(t)&&(a.set(t,e),Fr(e,t,r,Yo,a),a.delete(t)),e}function Qo(e){return nl(e)?r:e}function ei(e,t,n,o,i,a){var l=1&n,s=e.length,c=t.length;if(s!=c&&!(l&&c>s))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,h=2&n?new Vn:r;for(a.set(e,t),a.set(t,e);++f<s;){var m=e[f],g=t[f];if(o)var v=l?o(g,m,f,t,e,a):o(m,g,f,e,t,a);if(v!==r){if(v)continue;p=!1;break}if(h){if(!Nt(t,(function(e,t){if(!Yt(h,t)&&(m===e||i(m,e,n,o,a)))return h.push(t)}))){p=!1;break}}else if(m!==g&&!i(m,g,n,o,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function ti(e){return Ii(Ci(e,r,Wi),e+"")}function ni(e){return wr(e,Ol,di)}function ri(e){return wr(e,Il,fi)}var oi=Ln?function(e){return Ln.get(e)}:as;function ii(e){for(var t=e.name+"",n=On[t],r=Me.call(On,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ai(e){return(Me.call(zn,"placeholder")?zn:e).placeholder}function li(){var e=zn.iteratee||ns;return e=e===ns?Mr:e,arguments.length?e(arguments[0],arguments[1]):e}function si(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function ci(e){for(var t=Ol(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ei(o)]}return t}function ui(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return Pr(n)?n:r}var di=ht?function(e){return null==e?[]:(e=ke(e),Ot(ht(e),(function(t){return Ve.call(e,t)})))}:ps,fi=ht?function(e){for(var t=[];e;)Mt(t,di(e)),e=He(e);return t}:ps,pi=Er;function hi(e,t,n){for(var r=-1,o=(t=bo(t,e)).length,i=!1;++r<o;){var a=Di(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Xa(o)&&vi(a,o)&&(Ba(e)||$a(e))}function mi(e){return"function"!=typeof e.constructor||wi(e)?{}:jn(He(e))}function gi(e){return Ba(e)||$a(e)||!!(Ke&&e&&e[Ke])}function vi(e,t){var n=typeof e;return!!(t=null==t?d:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function bi(e,t,n){if(!Ya(n))return!1;var r=typeof t;return!!("number"==r?Ha(n)&&vi(t,n.length):"string"==r&&t in n)&&za(n[t],e)}function yi(e,t){if(Ba(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!al(e))||Q.test(e)||!Y.test(e)||null!=t&&e in ke(t)}function xi(e){var t=ii(e),n=zn[t];if("function"!=typeof n||!(t in Bn.prototype))return!1;if(e===n)return!0;var r=oi(n);return!!r&&e===r[0]}(wn&&pi(new wn(new ArrayBuffer(1)))!=P||En&&pi(new En)!=w||kn&&pi(kn.resolve())!=C||Cn&&pi(new Cn)!=R||_n&&pi(new _n)!=I)&&(pi=function(e){var t=Er(e),n=t==k?e.constructor:r,o=n?Ni(n):"";if(o)switch(o){case In:return P;case Tn:return w;case Pn:return C;case Mn:return R;case qn:return I}return t});var Si=Te?Za:hs;function wi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ie)}function Ei(e){return e==e&&!Ya(e)}function ki(e,t){return function(n){return null!=n&&n[e]===t&&(t!==r||e in ke(n))}}function Ci(e,t,o){return t=gn(t===r?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=gn(r.length-t,0),l=n(a);++i<a;)l[i]=r[t+i];i=-1;for(var s=n(t+1);++i<t;)s[i]=r[i];return s[t]=o(l),kt(e,this,s)}}function _i(e,t){return t.length<2?e:Sr(e,to(t,0,-1))}function Ri(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Li=Pi(Yr),Oi=ut||function(e,t){return ft.setTimeout(e,t)},Ii=Pi(Qr);function Ti(e,t,n){var r=t+"";return Ii(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return _t(h,(function(n){var r="_."+n[0];t&n[1]&&!It(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(le):[]}(r),n)))}function Pi(e){var t=0,n=0;return function(){var o=bn(),i=16-(o-n);if(n=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Mi(e,t){var n=-1,o=e.length,i=o-1;for(t=t===r?o:t;++n<t;){var a=Vr(n,i),l=e[a];e[a]=e[n],e[n]=l}return e.length=t,e}var qi=function(e){var t=Pa(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(ue,"$1"):n||e)})),t}));function Di(e){if("string"==typeof e||al(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ni(e){if(null!=e){try{return Pe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ai(e){if(e instanceof Bn)return e.clone();var t=new $n(e.__wrapped__,e.__chain__);return t.__actions__=Lo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zi=Kr((function(e,t){return Ua(e)?cr(e,mr(t,1,Ua,!0)):[]})),ji=Kr((function(e,t){var n=Ki(t);return Ua(n)&&(n=r),Ua(e)?cr(e,mr(t,1,Ua,!0),li(n,2)):[]})),Fi=Kr((function(e,t){var n=Ki(t);return Ua(n)&&(n=r),Ua(e)?cr(e,mr(t,1,Ua,!0),r,n):[]}));function $i(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:fl(n);return o<0&&(o=gn(r+o,0)),jt(e,li(t,3),o)}function Bi(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return n!==r&&(i=fl(n),i=n<0?gn(o+i,0):vn(i,o-1)),jt(e,li(t,3),i,!0)}function Wi(e){return null!=e&&e.length?mr(e,1):[]}function Hi(e){return e&&e.length?e[0]:r}var Ui=Kr((function(e){var t=Pt(e,go);return t.length&&t[0]===e[0]?Rr(t):[]})),Vi=Kr((function(e){var t=Ki(e),n=Pt(e,go);return t===Ki(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Rr(n,li(t,2)):[]})),Gi=Kr((function(e){var t=Ki(e),n=Pt(e,go);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?Rr(n,r,t):[]}));function Ki(e){var t=null==e?0:e.length;return t?e[t-1]:r}var Zi=Kr(Ji);function Ji(e,t){return e&&e.length&&t&&t.length?Hr(e,t):e}var Xi=ti((function(e,t){var n=null==e?0:e.length,r=or(e,t);return Ur(e,Pt(t,(function(e){return vi(e,n)?+e:e})).sort(Co)),r}));function Yi(e){return null==e?e:Sn.call(e)}var Qi=Kr((function(e){return so(mr(e,1,Ua,!0))})),ea=Kr((function(e){var t=Ki(e);return Ua(t)&&(t=r),so(mr(e,1,Ua,!0),li(t,2))})),ta=Kr((function(e){var t=Ki(e);return t="function"==typeof t?t:r,so(mr(e,1,Ua,!0),r,t)}));function na(e){if(!e||!e.length)return[];var t=0;return e=Ot(e,(function(e){if(Ua(e))return t=gn(e.length,t),!0})),Kt(t,(function(t){return Pt(e,Ht(t))}))}function ra(e,t){if(!e||!e.length)return[];var n=na(e);return null==t?n:Pt(n,(function(e){return kt(t,r,e)}))}var oa=Kr((function(e,t){return Ua(e)?cr(e,t):[]})),ia=Kr((function(e){return ho(Ot(e,Ua))})),aa=Kr((function(e){var t=Ki(e);return Ua(t)&&(t=r),ho(Ot(e,Ua),li(t,2))})),la=Kr((function(e){var t=Ki(e);return t="function"==typeof t?t:r,ho(Ot(e,Ua),r,t)})),sa=Kr(na),ca=Kr((function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,ra(e,n)}));function ua(e){var t=zn(e);return t.__chain__=!0,t}function da(e,t){return t(e)}var fa=ti((function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,i=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Bn&&vi(n)?((o=o.slice(n,+n+(t?1:0))).__actions__.push({func:da,args:[i],thisArg:r}),new $n(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(r),e}))):this.thru(i)})),pa=Io((function(e,t,n){Me.call(e,n)?++e[n]:rr(e,n,1)})),ha=Ao($i),ma=Ao(Bi);function ga(e,t){return(Ba(e)?_t:ur)(e,li(t,3))}function va(e,t){return(Ba(e)?Rt:dr)(e,li(t,3))}var ba=Io((function(e,t,n){Me.call(e,n)?e[n].push(t):rr(e,n,[t])})),ya=Kr((function(e,t,r){var o=-1,i="function"==typeof t,a=Ha(e)?n(e.length):[];return ur(e,(function(e){a[++o]=i?kt(t,e,r):Lr(e,t,r)})),a})),xa=Io((function(e,t,n){rr(e,n,t)}));function Sa(e,t){return(Ba(e)?Pt:Ar)(e,li(t,3))}var wa=Io((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Ea=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&bi(e,t[0],t[1])?t=[]:n>2&&bi(t[0],t[1],t[2])&&(t=[t[0]]),Br(e,mr(t,1),[])})),ka=lt||function(){return ft.Date.now()};function Ca(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,Jo(e,s,r,r,r,r,t)}function _a(e,t){var n;if("function"!=typeof t)throw new Re(o);return e=fl(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Ra=Kr((function(e,t,n){var r=1;if(n.length){var o=sn(n,ai(Ra));r|=l}return Jo(e,r,t,n,o)})),La=Kr((function(e,t,n){var r=3;if(n.length){var o=sn(n,ai(La));r|=l}return Jo(t,r,e,n,o)}));function Oa(e,t,n){var i,a,l,s,c,u,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new Re(o);function m(t){var n=i,o=a;return i=a=r,d=t,s=e.apply(o,n)}function g(e){var n=e-u;return u===r||n>=t||n<0||p&&e-d>=l}function v(){var e=ka();if(g(e))return b(e);c=Oi(v,function(e){var n=t-(e-u);return p?vn(n,l-(e-d)):n}(e))}function b(e){return c=r,h&&i?m(e):(i=a=r,s)}function y(){var e=ka(),n=g(e);if(i=arguments,a=this,u=e,n){if(c===r)return function(e){return d=e,c=Oi(v,t),f?m(e):s}(u);if(p)return So(c),c=Oi(v,t),m(u)}return c===r&&(c=Oi(v,t)),s}return t=hl(t)||0,Ya(n)&&(f=!!n.leading,l=(p="maxWait"in n)?gn(hl(n.maxWait)||0,t):l,h="trailing"in n?!!n.trailing:h),y.cancel=function(){c!==r&&So(c),d=0,i=u=a=c=r},y.flush=function(){return c===r?s:b(ka())},y}var Ia=Kr((function(e,t){return sr(e,1,t)})),Ta=Kr((function(e,t,n){return sr(e,hl(t)||0,n)}));function Pa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Re(o);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Pa.Cache||Un),n}function Ma(e){if("function"!=typeof e)throw new Re(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Pa.Cache=Un;var qa=yo((function(e,t){var n=(t=1==t.length&&Ba(t[0])?Pt(t[0],Jt(li())):Pt(mr(t,1),Jt(li()))).length;return Kr((function(r){for(var o=-1,i=vn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return kt(e,this,r)}))})),Da=Kr((function(e,t){var n=sn(t,ai(Da));return Jo(e,l,r,t,n)})),Na=Kr((function(e,t){var n=sn(t,ai(Na));return Jo(e,64,r,t,n)})),Aa=ti((function(e,t){return Jo(e,c,r,r,r,t)}));function za(e,t){return e===t||e!=e&&t!=t}var ja=Uo(kr),Fa=Uo((function(e,t){return e>=t})),$a=Or(function(){return arguments}())?Or:function(e){return Qa(e)&&Me.call(e,"callee")&&!Ve.call(e,"callee")},Ba=n.isArray,Wa=bt?Jt(bt):function(e){return Qa(e)&&Er(e)==T};function Ha(e){return null!=e&&Xa(e.length)&&!Za(e)}function Ua(e){return Qa(e)&&Ha(e)}var Va=gt||hs,Ga=yt?Jt(yt):function(e){return Qa(e)&&Er(e)==b};function Ka(e){if(!Qa(e))return!1;var t=Er(e);return t==y||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!nl(e)}function Za(e){if(!Ya(e))return!1;var t=Er(e);return t==x||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==fl(e)}function Xa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function Ya(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Qa(e){return null!=e&&"object"==typeof e}var el=xt?Jt(xt):function(e){return Qa(e)&&pi(e)==w};function tl(e){return"number"==typeof e||Qa(e)&&Er(e)==E}function nl(e){if(!Qa(e)||Er(e)!=k)return!1;var t=He(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pe.call(n)==Ae}var rl=St?Jt(St):function(e){return Qa(e)&&Er(e)==_},ol=wt?Jt(wt):function(e){return Qa(e)&&pi(e)==R};function il(e){return"string"==typeof e||!Ba(e)&&Qa(e)&&Er(e)==L}function al(e){return"symbol"==typeof e||Qa(e)&&Er(e)==O}var ll=Et?Jt(Et):function(e){return Qa(e)&&Xa(e.length)&&!!it[Er(e)]},sl=Uo(Nr),cl=Uo((function(e,t){return e<=t}));function ul(e){if(!e)return[];if(Ha(e))return il(e)?fn(e):Lo(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=pi(e);return(t==w?an:t==R?cn:zl)(e)}function dl(e){return e?(e=hl(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fl(e){var t=dl(e),n=t%1;return t==t?n?t-n:t:0}function pl(e){return e?ir(fl(e),0,p):0}function hl(e){if("number"==typeof e)return e;if(al(e))return f;if(Ya(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ya(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=he.test(e);return n||ge.test(e)?ct(e.slice(2),n?2:8):pe.test(e)?f:+e}function ml(e){return Oo(e,Il(e))}function gl(e){return null==e?"":lo(e)}var vl=To((function(e,t){if(wi(t)||Ha(t))Oo(t,Ol(t),e);else for(var n in t)Me.call(t,n)&&Qn(e,n,t[n])})),bl=To((function(e,t){Oo(t,Il(t),e)})),yl=To((function(e,t,n,r){Oo(t,Il(t),e,r)})),xl=To((function(e,t,n,r){Oo(t,Ol(t),e,r)})),Sl=ti(or),wl=Kr((function(e,t){e=ke(e);var n=-1,o=t.length,i=o>2?t[2]:r;for(i&&bi(t[0],t[1],i)&&(o=1);++n<o;)for(var a=t[n],l=Il(a),s=-1,c=l.length;++s<c;){var u=l[s],d=e[u];(d===r||za(d,Ie[u])&&!Me.call(e,u))&&(e[u]=a[u])}return e})),El=Kr((function(e){return e.push(r,Yo),kt(Pl,r,e)}));function kl(e,t,n){var o=null==e?r:Sr(e,t);return o===r?n:o}function Cl(e,t){return null!=e&&hi(e,t,_r)}var _l=Fo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),e[t]=n}),Yl(ts)),Rl=Fo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),Me.call(e,t)?e[t].push(n):e[t]=[n]}),li),Ll=Kr(Lr);function Ol(e){return Ha(e)?Kn(e):qr(e)}function Il(e){return Ha(e)?Kn(e,!0):Dr(e)}var Tl=To((function(e,t,n){Fr(e,t,n)})),Pl=To((function(e,t,n,r){Fr(e,t,n,r)})),Ml=ti((function(e,t){var n={};if(null==e)return n;var r=!1;t=Pt(t,(function(t){return t=bo(t,e),r||(r=t.length>1),t})),Oo(e,ri(e),n),r&&(n=ar(n,7,Qo));for(var o=t.length;o--;)co(n,t[o]);return n})),ql=ti((function(e,t){return null==e?{}:function(e,t){return Wr(e,t,(function(t,n){return Cl(e,n)}))}(e,t)}));function Dl(e,t){if(null==e)return{};var n=Pt(ri(e),(function(e){return[e]}));return t=li(t),Wr(e,n,(function(e,n){return t(e,n[0])}))}var Nl=Zo(Ol),Al=Zo(Il);function zl(e){return null==e?[]:Xt(e,Ol(e))}var jl=Do((function(e,t,n){return t=t.toLowerCase(),e+(n?Fl(t):t)}));function Fl(e){return Kl(gl(e).toLowerCase())}function $l(e){return(e=gl(e))&&e.replace(be,tn).replace(Ye,"")}var Bl=Do((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Wl=Do((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Hl=qo("toLowerCase"),Ul=Do((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Vl=Do((function(e,t,n){return e+(n?" ":"")+Kl(t)})),Gl=Do((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Kl=qo("toUpperCase");function Zl(e,t,n){return e=gl(e),(t=n?r:t)===r?function(e){return nt.test(e)}(e)?function(e){return e.match(et)||[]}(e):function(e){return e.match(se)||[]}(e):e.match(t)||[]}var Jl=Kr((function(e,t){try{return kt(e,r,t)}catch(e){return Ka(e)?e:new Se(e)}})),Xl=ti((function(e,t){return _t(t,(function(t){t=Di(t),rr(e,t,Ra(e[t],e))})),e}));function Yl(e){return function(){return e}}var Ql=zo(),es=zo(!0);function ts(e){return e}function ns(e){return Mr("function"==typeof e?e:ar(e,1))}var rs=Kr((function(e,t){return function(n){return Lr(n,e,t)}})),os=Kr((function(e,t){return function(n){return Lr(e,n,t)}}));function is(e,t,n){var r=Ol(t),o=xr(t,r);null!=n||Ya(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=xr(t,Ol(t)));var i=!(Ya(n)&&"chain"in n&&!n.chain),a=Za(e);return _t(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Lo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Mt([this.value()],arguments))})})),e}function as(){}var ls=Bo(Pt),ss=Bo(Lt),cs=Bo(Nt);function us(e){return yi(e)?Ht(Di(e)):function(e){return function(t){return Sr(t,e)}}(e)}var ds=Ho(),fs=Ho(!0);function ps(){return[]}function hs(){return!1}var ms,gs=$o((function(e,t){return e+t}),0),vs=Go("ceil"),bs=$o((function(e,t){return e/t}),1),ys=Go("floor"),xs=$o((function(e,t){return e*t}),1),Ss=Go("round"),ws=$o((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new Re(o);return e=fl(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Ca,zn.assign=vl,zn.assignIn=bl,zn.assignInWith=yl,zn.assignWith=xl,zn.at=Sl,zn.before=_a,zn.bind=Ra,zn.bindAll=Xl,zn.bindKey=La,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ba(e)?e:[e]},zn.chain=ua,zn.chunk=function(e,t,o){t=(o?bi(e,t,o):t===r)?1:gn(fl(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,l=0,s=n(dt(i/t));a<i;)s[l++]=to(e,a,a+=t);return s},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Mt(Ba(r)?Lo(r):[r],mr(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=li();return e=t?Pt(e,(function(e){if("function"!=typeof e[1])throw new Re(o);return[n(e[0]),e[1]]})):[],Kr((function(n){for(var r=-1;++r<t;){var o=e[r];if(kt(o[0],this,n))return kt(o[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=Ol(e);return function(n){return lr(n,e,t)}}(ar(e,1))},zn.constant=Yl,zn.countBy=pa,zn.create=function(e,t){var n=jn(e);return null==t?n:nr(n,t)},zn.curry=function e(t,n,o){var i=Jo(t,8,r,r,r,r,r,n=o?r:n);return i.placeholder=e.placeholder,i},zn.curryRight=function e(t,n,o){var i=Jo(t,16,r,r,r,r,r,n=o?r:n);return i.placeholder=e.placeholder,i},zn.debounce=Oa,zn.defaults=wl,zn.defaultsDeep=El,zn.defer=Ia,zn.delay=Ta,zn.difference=zi,zn.differenceBy=ji,zn.differenceWith=Fi,zn.drop=function(e,t,n){var o=null==e?0:e.length;return o?to(e,(t=n||t===r?1:fl(t))<0?0:t,o):[]},zn.dropRight=function(e,t,n){var o=null==e?0:e.length;return o?to(e,0,(t=o-(t=n||t===r?1:fl(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?fo(e,li(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?fo(e,li(t,3),!0):[]},zn.fill=function(e,t,n,o){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&bi(e,t,n)&&(n=0,o=i),function(e,t,n,o){var i=e.length;for((n=fl(n))<0&&(n=-n>i?0:i+n),(o=o===r||o>i?i:fl(o))<0&&(o+=i),o=n>o?0:pl(o);n<o;)e[n++]=t;return e}(e,t,n,o)):[]},zn.filter=function(e,t){return(Ba(e)?Ot:hr)(e,li(t,3))},zn.flatMap=function(e,t){return mr(Sa(e,t),1)},zn.flatMapDeep=function(e,t){return mr(Sa(e,t),u)},zn.flatMapDepth=function(e,t,n){return n=n===r?1:fl(n),mr(Sa(e,t),n)},zn.flatten=Wi,zn.flattenDeep=function(e){return null!=e&&e.length?mr(e,u):[]},zn.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===r?1:fl(t)):[]},zn.flip=function(e){return Jo(e,512)},zn.flow=Ql,zn.flowRight=es,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},zn.functions=function(e){return null==e?[]:xr(e,Ol(e))},zn.functionsIn=function(e){return null==e?[]:xr(e,Il(e))},zn.groupBy=ba,zn.initial=function(e){return null!=e&&e.length?to(e,0,-1):[]},zn.intersection=Ui,zn.intersectionBy=Vi,zn.intersectionWith=Gi,zn.invert=_l,zn.invertBy=Rl,zn.invokeMap=ya,zn.iteratee=ns,zn.keyBy=xa,zn.keys=Ol,zn.keysIn=Il,zn.map=Sa,zn.mapKeys=function(e,t){var n={};return t=li(t,3),br(e,(function(e,r,o){rr(n,t(e,r,o),e)})),n},zn.mapValues=function(e,t){var n={};return t=li(t,3),br(e,(function(e,r,o){rr(n,r,t(e,r,o))})),n},zn.matches=function(e){return zr(ar(e,1))},zn.matchesProperty=function(e,t){return jr(e,ar(t,1))},zn.memoize=Pa,zn.merge=Tl,zn.mergeWith=Pl,zn.method=rs,zn.methodOf=os,zn.mixin=is,zn.negate=Ma,zn.nthArg=function(e){return e=fl(e),Kr((function(t){return $r(t,e)}))},zn.omit=Ml,zn.omitBy=function(e,t){return Dl(e,Ma(li(t)))},zn.once=function(e){return _a(2,e)},zn.orderBy=function(e,t,n,o){return null==e?[]:(Ba(t)||(t=null==t?[]:[t]),Ba(n=o?r:n)||(n=null==n?[]:[n]),Br(e,t,n))},zn.over=ls,zn.overArgs=qa,zn.overEvery=ss,zn.overSome=cs,zn.partial=Da,zn.partialRight=Na,zn.partition=wa,zn.pick=ql,zn.pickBy=Dl,zn.property=us,zn.propertyOf=function(e){return function(t){return null==e?r:Sr(e,t)}},zn.pull=Zi,zn.pullAll=Ji,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,li(n,2)):e},zn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,r,n):e},zn.pullAt=Xi,zn.range=ds,zn.rangeRight=fs,zn.rearg=Aa,zn.reject=function(e,t){return(Ba(e)?Ot:hr)(e,Ma(li(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=li(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Ur(e,o),n},zn.rest=function(e,t){if("function"!=typeof e)throw new Re(o);return Kr(e,t=t===r?t:fl(t))},zn.reverse=Yi,zn.sampleSize=function(e,t,n){return t=(n?bi(e,t,n):t===r)?1:fl(t),(Ba(e)?Jn:Jr)(e,t)},zn.set=function(e,t,n){return null==e?e:Xr(e,t,n)},zn.setWith=function(e,t,n,o){return o="function"==typeof o?o:r,null==e?e:Xr(e,t,n,o)},zn.shuffle=function(e){return(Ba(e)?Xn:eo)(e)},zn.slice=function(e,t,n){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&bi(e,t,n)?(t=0,n=o):(t=null==t?0:fl(t),n=n===r?o:fl(n)),to(e,t,n)):[]},zn.sortBy=Ea,zn.sortedUniq=function(e){return e&&e.length?io(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?io(e,li(t,2)):[]},zn.split=function(e,t,n){return n&&"number"!=typeof n&&bi(e,t,n)&&(t=n=r),(n=n===r?p:n>>>0)?(e=gl(e))&&("string"==typeof t||null!=t&&!rl(t))&&!(t=lo(t))&&on(e)?xo(fn(e),0,n):e.split(t,n):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Re(o);return t=null==t?0:gn(fl(t),0),Kr((function(n){var r=n[t],o=xo(n,0,t);return r&&Mt(o,r),kt(e,this,o)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?to(e,1,t):[]},zn.take=function(e,t,n){return e&&e.length?to(e,0,(t=n||t===r?1:fl(t))<0?0:t):[]},zn.takeRight=function(e,t,n){var o=null==e?0:e.length;return o?to(e,(t=o-(t=n||t===r?1:fl(t)))<0?0:t,o):[]},zn.takeRightWhile=function(e,t){return e&&e.length?fo(e,li(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?fo(e,li(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Re(o);return Ya(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Oa(e,t,{leading:r,maxWait:t,trailing:i})},zn.thru=da,zn.toArray=ul,zn.toPairs=Nl,zn.toPairsIn=Al,zn.toPath=function(e){return Ba(e)?Pt(e,Di):al(e)?[e]:Lo(qi(gl(e)))},zn.toPlainObject=ml,zn.transform=function(e,t,n){var r=Ba(e),o=r||Va(e)||ll(e);if(t=li(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Ya(e)&&Za(i)?jn(He(e)):{}}return(o?_t:br)(e,(function(e,r,o){return t(n,e,r,o)})),n},zn.unary=function(e){return Ca(e,1)},zn.union=Qi,zn.unionBy=ea,zn.unionWith=ta,zn.uniq=function(e){return e&&e.length?so(e):[]},zn.uniqBy=function(e,t){return e&&e.length?so(e,li(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?so(e,r,t):[]},zn.unset=function(e,t){return null==e||co(e,t)},zn.unzip=na,zn.unzipWith=ra,zn.update=function(e,t,n){return null==e?e:uo(e,t,vo(n))},zn.updateWith=function(e,t,n,o){return o="function"==typeof o?o:r,null==e?e:uo(e,t,vo(n),o)},zn.values=zl,zn.valuesIn=function(e){return null==e?[]:Xt(e,Il(e))},zn.without=oa,zn.words=Zl,zn.wrap=function(e,t){return Da(vo(t),e)},zn.xor=ia,zn.xorBy=aa,zn.xorWith=la,zn.zip=sa,zn.zipObject=function(e,t){return mo(e||[],t||[],Qn)},zn.zipObjectDeep=function(e,t){return mo(e||[],t||[],Xr)},zn.zipWith=ca,zn.entries=Nl,zn.entriesIn=Al,zn.extend=bl,zn.extendWith=yl,is(zn,zn),zn.add=gs,zn.attempt=Jl,zn.camelCase=jl,zn.capitalize=Fl,zn.ceil=vs,zn.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=hl(n))==n?n:0),t!==r&&(t=(t=hl(t))==t?t:0),ir(hl(e),t,n)},zn.clone=function(e){return ar(e,4)},zn.cloneDeep=function(e){return ar(e,5)},zn.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:r)},zn.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:r)},zn.conformsTo=function(e,t){return null==t||lr(e,t,Ol(t))},zn.deburr=$l,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=bs,zn.endsWith=function(e,t,n){e=gl(e),t=lo(t);var o=e.length,i=n=n===r?o:ir(fl(n),0,o);return(n-=t.length)>=0&&e.slice(n,i)==t},zn.eq=za,zn.escape=function(e){return(e=gl(e))&&K.test(e)?e.replace(V,nn):e},zn.escapeRegExp=function(e){return(e=gl(e))&&ne.test(e)?e.replace(te,"\\$&"):e},zn.every=function(e,t,n){var o=Ba(e)?Lt:fr;return n&&bi(e,t,n)&&(t=r),o(e,li(t,3))},zn.find=ha,zn.findIndex=$i,zn.findKey=function(e,t){return zt(e,li(t,3),br)},zn.findLast=ma,zn.findLastIndex=Bi,zn.findLastKey=function(e,t){return zt(e,li(t,3),yr)},zn.floor=ys,zn.forEach=ga,zn.forEachRight=va,zn.forIn=function(e,t){return null==e?e:gr(e,li(t,3),Il)},zn.forInRight=function(e,t){return null==e?e:vr(e,li(t,3),Il)},zn.forOwn=function(e,t){return e&&br(e,li(t,3))},zn.forOwnRight=function(e,t){return e&&yr(e,li(t,3))},zn.get=kl,zn.gt=ja,zn.gte=Fa,zn.has=function(e,t){return null!=e&&hi(e,t,Cr)},zn.hasIn=Cl,zn.head=Hi,zn.identity=ts,zn.includes=function(e,t,n,r){e=Ha(e)?e:zl(e),n=n&&!r?fl(n):0;var o=e.length;return n<0&&(n=gn(o+n,0)),il(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ft(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:fl(n);return o<0&&(o=gn(r+o,0)),Ft(e,t,o)},zn.inRange=function(e,t,n){return t=dl(t),n===r?(n=t,t=0):n=dl(n),function(e,t,n){return e>=vn(t,n)&&e<gn(t,n)}(e=hl(e),t,n)},zn.invoke=Ll,zn.isArguments=$a,zn.isArray=Ba,zn.isArrayBuffer=Wa,zn.isArrayLike=Ha,zn.isArrayLikeObject=Ua,zn.isBoolean=function(e){return!0===e||!1===e||Qa(e)&&Er(e)==v},zn.isBuffer=Va,zn.isDate=Ga,zn.isElement=function(e){return Qa(e)&&1===e.nodeType&&!nl(e)},zn.isEmpty=function(e){if(null==e)return!0;if(Ha(e)&&(Ba(e)||"string"==typeof e||"function"==typeof e.splice||Va(e)||ll(e)||$a(e)))return!e.length;var t=pi(e);if(t==w||t==R)return!e.size;if(wi(e))return!qr(e).length;for(var n in e)if(Me.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return Ir(e,t)},zn.isEqualWith=function(e,t,n){var o=(n="function"==typeof n?n:r)?n(e,t):r;return o===r?Ir(e,t,r,n):!!o},zn.isError=Ka,zn.isFinite=function(e){return"number"==typeof e&&vt(e)},zn.isFunction=Za,zn.isInteger=Ja,zn.isLength=Xa,zn.isMap=el,zn.isMatch=function(e,t){return e===t||Tr(e,t,ci(t))},zn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,Tr(e,t,ci(t),n)},zn.isNaN=function(e){return tl(e)&&e!=+e},zn.isNative=function(e){if(Si(e))throw new Se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=tl,zn.isObject=Ya,zn.isObjectLike=Qa,zn.isPlainObject=nl,zn.isRegExp=rl,zn.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=d},zn.isSet=ol,zn.isString=il,zn.isSymbol=al,zn.isTypedArray=ll,zn.isUndefined=function(e){return e===r},zn.isWeakMap=function(e){return Qa(e)&&pi(e)==I},zn.isWeakSet=function(e){return Qa(e)&&"[object WeakSet]"==Er(e)},zn.join=function(e,t){return null==e?"":At.call(e,t)},zn.kebabCase=Bl,zn.last=Ki,zn.lastIndexOf=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var i=o;return n!==r&&(i=(i=fl(n))<0?gn(o+i,0):vn(i,o-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):jt(e,Bt,i,!0)},zn.lowerCase=Wl,zn.lowerFirst=Hl,zn.lt=sl,zn.lte=cl,zn.max=function(e){return e&&e.length?pr(e,ts,kr):r},zn.maxBy=function(e,t){return e&&e.length?pr(e,li(t,2),kr):r},zn.mean=function(e){return Wt(e,ts)},zn.meanBy=function(e,t){return Wt(e,li(t,2))},zn.min=function(e){return e&&e.length?pr(e,ts,Nr):r},zn.minBy=function(e,t){return e&&e.length?pr(e,li(t,2),Nr):r},zn.stubArray=ps,zn.stubFalse=hs,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=xs,zn.nth=function(e,t){return e&&e.length?$r(e,fl(t)):r},zn.noConflict=function(){return ft._===this&&(ft._=ze),this},zn.noop=as,zn.now=ka,zn.pad=function(e,t,n){e=gl(e);var r=(t=fl(t))?dn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Wo(pt(o),n)+e+Wo(dt(o),n)},zn.padEnd=function(e,t,n){e=gl(e);var r=(t=fl(t))?dn(e):0;return t&&r<t?e+Wo(t-r,n):e},zn.padStart=function(e,t,n){e=gl(e);var r=(t=fl(t))?dn(e):0;return t&&r<t?Wo(t-r,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),yn(gl(e).replace(re,""),t||0)},zn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&bi(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=dl(e),t===r?(t=e,e=0):t=dl(t)),e>t){var o=e;e=t,t=o}if(n||e%1||t%1){var i=xn();return vn(e+i*(t-e+st("1e-"+((i+"").length-1))),t)}return Vr(e,t)},zn.reduce=function(e,t,n){var r=Ba(e)?qt:Vt,o=arguments.length<3;return r(e,li(t,4),n,o,ur)},zn.reduceRight=function(e,t,n){var r=Ba(e)?Dt:Vt,o=arguments.length<3;return r(e,li(t,4),n,o,dr)},zn.repeat=function(e,t,n){return t=(n?bi(e,t,n):t===r)?1:fl(t),Gr(gl(e),t)},zn.replace=function(){var e=arguments,t=gl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,n){var o=-1,i=(t=bo(t,e)).length;for(i||(i=1,e=r);++o<i;){var a=null==e?r:e[Di(t[o])];a===r&&(o=i,a=n),e=Za(a)?a.call(e):a}return e},zn.round=Ss,zn.runInContext=e,zn.sample=function(e){return(Ba(e)?Zn:Zr)(e)},zn.size=function(e){if(null==e)return 0;if(Ha(e))return il(e)?dn(e):e.length;var t=pi(e);return t==w||t==R?e.size:qr(e).length},zn.snakeCase=Ul,zn.some=function(e,t,n){var o=Ba(e)?Nt:no;return n&&bi(e,t,n)&&(t=r),o(e,li(t,3))},zn.sortedIndex=function(e,t){return ro(e,t)},zn.sortedIndexBy=function(e,t,n){return oo(e,t,li(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ro(e,t);if(r<n&&za(e[r],t))return r}return-1},zn.sortedLastIndex=function(e,t){return ro(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return oo(e,t,li(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ro(e,t,!0)-1;if(za(e[n],t))return n}return-1},zn.startCase=Vl,zn.startsWith=function(e,t,n){return e=gl(e),n=null==n?0:ir(fl(n),0,e.length),t=lo(t),e.slice(n,n+t.length)==t},zn.subtract=ws,zn.sum=function(e){return e&&e.length?Gt(e,ts):0},zn.sumBy=function(e,t){return e&&e.length?Gt(e,li(t,2)):0},zn.template=function(e,t,n){var o=zn.templateSettings;n&&bi(e,t,n)&&(t=r),e=gl(e),t=yl({},t,o,Xo);var i,a,l=yl({},t.imports,o.imports,Xo),s=Ol(l),c=Xt(l,s),u=0,d=t.interpolate||ye,f="__p += '",p=Ce((t.escape||ye).source+"|"+d.source+"|"+(d===X?de:ye).source+"|"+(t.evaluate||ye).source+"|$","g"),h="//# sourceURL="+(Me.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ot+"]")+"\n";e.replace(p,(function(t,n,r,o,l,s){return r||(r=o),f+=e.slice(u,s).replace(xe,rn),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),l&&(a=!0,f+="';\n"+l+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=s+t.length,t})),f+="';\n";var m=Me.call(t,"variable")&&t.variable;if(m){if(ce.test(m))throw new Se("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(B,""):f).replace(W,"$1").replace(H,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Jl((function(){return we(s,h+"return "+f).apply(r,c)}));if(g.source=f,Ka(g))throw g;return g},zn.times=function(e,t){if((e=fl(e))<1||e>d)return[];var n=p,r=vn(e,p);t=li(t),e-=p;for(var o=Kt(r,t);++n<e;)t(n);return o},zn.toFinite=dl,zn.toInteger=fl,zn.toLength=pl,zn.toLower=function(e){return gl(e).toLowerCase()},zn.toNumber=hl,zn.toSafeInteger=function(e){return e?ir(fl(e),-9007199254740991,d):0===e?e:0},zn.toString=gl,zn.toUpper=function(e){return gl(e).toUpperCase()},zn.trim=function(e,t,n){if((e=gl(e))&&(n||t===r))return Zt(e);if(!e||!(t=lo(t)))return e;var o=fn(e),i=fn(t);return xo(o,Qt(o,i),en(o,i)+1).join("")},zn.trimEnd=function(e,t,n){if((e=gl(e))&&(n||t===r))return e.slice(0,pn(e)+1);if(!e||!(t=lo(t)))return e;var o=fn(e);return xo(o,0,en(o,fn(t))+1).join("")},zn.trimStart=function(e,t,n){if((e=gl(e))&&(n||t===r))return e.replace(re,"");if(!e||!(t=lo(t)))return e;var o=fn(e);return xo(o,Qt(o,fn(t))).join("")},zn.truncate=function(e,t){var n=30,o="...";if(Ya(t)){var i="separator"in t?t.separator:i;n="length"in t?fl(t.length):n,o="omission"in t?lo(t.omission):o}var a=(e=gl(e)).length;if(on(e)){var l=fn(e);a=l.length}if(n>=a)return e;var s=n-dn(o);if(s<1)return o;var c=l?xo(l,0,s).join(""):e.slice(0,s);if(i===r)return c+o;if(l&&(s+=c.length-s),rl(i)){if(e.slice(s).search(i)){var u,d=c;for(i.global||(i=Ce(i.source,gl(fe.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var f=u.index;c=c.slice(0,f===r?s:f)}}else if(e.indexOf(lo(i),s)!=s){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+o},zn.unescape=function(e){return(e=gl(e))&&G.test(e)?e.replace(U,hn):e},zn.uniqueId=function(e){var t=++qe;return gl(e)+t},zn.upperCase=Gl,zn.upperFirst=Kl,zn.each=ga,zn.eachRight=va,zn.first=Hi,is(zn,(ms={},br(zn,(function(e,t){Me.call(zn.prototype,t)||(ms[t]=e)})),ms),{chain:!1}),zn.VERSION="4.17.21",_t(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),_t(["drop","take"],(function(e,t){Bn.prototype[e]=function(n){n=n===r?1:gn(fl(n),0);var o=this.__filtered__&&!t?new Bn(this):this.clone();return o.__filtered__?o.__takeCount__=vn(n,o.__takeCount__):o.__views__.push({size:vn(n,p),type:e+(o.__dir__<0?"Right":"")}),o},Bn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),_t(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Bn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:li(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),_t(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Bn.prototype[e]=function(){return this[n](1).value()[0]}})),_t(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Bn.prototype[e]=function(){return this.__filtered__?new Bn(this):this[n](1)}})),Bn.prototype.compact=function(){return this.filter(ts)},Bn.prototype.find=function(e){return this.filter(e).head()},Bn.prototype.findLast=function(e){return this.reverse().find(e)},Bn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new Bn(this):this.map((function(n){return Lr(n,e,t)}))})),Bn.prototype.reject=function(e){return this.filter(Ma(li(e)))},Bn.prototype.slice=function(e,t){e=fl(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Bn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=fl(t))<0?n.dropRight(-t):n.take(t-e)),n)},Bn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Bn.prototype.toArray=function(){return this.take(p)},br(Bn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=zn[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(zn.prototype[t]=function(){var t=this.__wrapped__,l=o?[1]:arguments,s=t instanceof Bn,c=l[0],u=s||Ba(t),d=function(e){var t=i.apply(zn,Mt([e],l));return o&&f?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(s=u=!1);var f=this.__chain__,p=!!this.__actions__.length,h=a&&!f,m=s&&!p;if(!a&&u){t=m?t:new Bn(this);var g=e.apply(t,l);return g.__actions__.push({func:da,args:[d],thisArg:r}),new $n(g,f)}return h&&m?e.apply(this,l):(g=this.thru(d),h?o?g.value()[0]:g.value():g)})})),_t(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Le[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ba(o)?o:[],e)}return this[n]((function(n){return t.apply(Ba(n)?n:[],e)}))}})),br(Bn.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Me.call(On,r)||(On[r]=[]),On[r].push({name:t,func:n})}})),On[jo(r,2).name]=[{name:"wrapper",func:r}],Bn.prototype.clone=function(){var e=new Bn(this.__wrapped__);return e.__actions__=Lo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Lo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Lo(this.__views__),e},Bn.prototype.reverse=function(){if(this.__filtered__){var e=new Bn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Bn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ba(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=vn(t,e+a);break;case"takeRight":e=gn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,l=i.end,s=l-a,c=r?l:a-1,u=this.__iteratees__,d=u.length,f=0,p=vn(s,this.__takeCount__);if(!n||!r&&o==s&&p==s)return po(e,this.__actions__);var h=[];e:for(;s--&&f<p;){for(var m=-1,g=e[c+=t];++m<d;){var v=u[m],b=v.iteratee,y=v.type,x=b(g);if(2==y)g=x;else if(!x){if(1==y)continue e;break e}}h[f++]=g}return h},zn.prototype.at=fa,zn.prototype.chain=function(){return ua(this)},zn.prototype.commit=function(){return new $n(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===r&&(this.__values__=ul(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,n=this;n instanceof Fn;){var o=Ai(n);o.__index__=0,o.__values__=r,t?i.__wrapped__=o:t=o;var i=o;n=n.__wrapped__}return i.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Bn){var t=e;return this.__actions__.length&&(t=new Bn(this)),(t=t.reverse()).__actions__.push({func:da,args:[Yi],thisArg:r}),new $n(t,this.__chain__)}return this.thru(Yi)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return po(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,Ze&&(zn.prototype[Ze]=function(){return this}),zn}();ht?((ht.exports=mn)._=mn,pt._=mn):ft._=mn}).call(sE)}(lE,lE.exports)),lE.exports);function uE(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const dE=1e3,fE=1e3,pE=[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],hE=(e,t)=>e&&e.find((e=>{var n;return(null===(n=e.qDef)||void 0===n?void 0:n.cId)===t}))||null,mE=e=>{var t,n;return f(f({},e),{},{qDef:f(f({},e.qDef),{},{cId:null!==(t=null===(n=e.qDef)||void 0===n?void 0:n.cId)&&void 0!==t?t:Lx()})})},gE=e=>{var t;return f(f({},mE(e)),{},{qOtherTotalSpec:null!==(t=e.qOtherTotalSpec)&&void 0!==t?t:{}})},vE=(e,t,n)=>{const r=t;e.forEach(((e,t)=>{const o=e.qTags,i={qSortByLoadOrder:1};"function"==typeof n.dimensionDefinition.autoSort?n.dimensionDefinition.autoSort(r,n.properties,o,i,n):(i.qSortByNumeric=1,i.qSortByAscii=1),r.qDef.qSortCriterias?r.qDef.qSortCriterias[t]=i:r.qDef.qSortCriterias=[i]}))},bE=new Error("Not supported in this object, need to implement in subclass."),yE=e=>{if(!e)return[];return[...e].map((e=>{var t;return null!==(t=e.qDef)&&void 0!==t&&t.autoSort&&void 0!==e.autoSort?f(f({},e),{},{qDef:f(f({},e.qDef),{},{autoSort:e.autoSort}),autoSort:void 0}):e}))},xE=(e,t)=>{if(e)return t&&OS(e,t)?OS(e,t).qHyperCube:e.qHyperCube};function SE(e,t){return e.filter(((e,n)=>t.includes(n)))}function wE(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r=e.getAlternativeDimensions(),o=null!=n?n:r.length;return r.splice(o,0,t),Promise.resolve(t)}function EE(e,t,n){IS.indexAdded(e.hcProperties.qInterColumnSortOrder,null!=n?n:t.length-1)}function kE(e,t){return"function"==typeof e.dimensionDefinition.move?Promise.resolve(e.dimensionDefinition.move.call(e,t,e.properties,e)).then((()=>t)):Promise.resolve(t)}function CE(e,t){return e.getAlternativeDimensions().length+t.length>=dE}function _E(e,t){const n=e.getAlternativeDimensions();return t||e.maxDimensions()<=n.length&&n.length<dE}async function RE(e,t,n,r,o,i){await e.autoSortDimension(t),IS.indexAdded(e.hcProperties.qInterColumnSortOrder,n+i),r.push(t),o.push(t),"function"==typeof e.dimensionDefinition.add&&e.dimensionDefinition.add.call(e,t,e.properties,e)}function LE(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r=e.getAlternativeMeasures(),o=null!=n?n:r.length;return r.splice(o,0,t),Promise.resolve(t)}function OE(e,t){IS.indexAdded(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t.length-1)}function IE(e,t,n){return n||e.maxMeasures()<=t.length&&t.length<fE}function TE(e,t,n,r){const o=e-n.length;let[i]=n.splice(n.length-1,1);return r.splice(0,0,i),[i]=r.splice(o+1,1),n.splice(t,0,i),Promise.resolve(i)}class PE{constructor(e){var t,n;const r=e||{};this.dimensionDefinition=r.dimensionDefinition||{max:0},this.measureDefinition=r.measureDefinition||{max:0},this.dimensionProperties=null!==(t=r.dimensionProperties)&&void 0!==t?t:{},this.measureProperties=null!==(n=r.measureProperties)&&void 0!==n?n:{},this.globalChangeListeners=r.globalChangeListeners,this.app=r.app}setProperties(e){var t;this.properties=e,this.isAnalysisType=null===(t=this.properties)||void 0===t||null===(t=t.metaData)||void 0===t?void 0:t.isAnalysisType}setGlobalChangeListeners(e){this.globalChangeListeners=e}setLayout(e){this.layout=e}static type(){throw new Error("Must override this method")}static getDimensions(){return[]}getDimension(e){var t;const n=this.getDimensions(),r=this.getAlternativeDimensions();return null!==(t=hE(n,e))&&void 0!==t?t:hE(r,e)}static getAlternativeDimensions(){throw new Error("Method not implemented.")}static addDimension(){throw bE}static addDimensions(){throw bE}static removeDimension(){throw bE}static removeDimensions(){throw bE}static autoSortDimension(){throw bE}static replaceDimension(){throw bE}static getSorting(){throw bE}createLibraryDimension(e,t){var n,r;const o=cE.merge({},this.dimensionProperties||{},t||{});return o.qDef=null!==(n=o.qDef)&&void 0!==n?n:{},o.qOtherTotalSpec=null!==(r=o.qOtherTotalSpec)&&void 0!==r?r:{},o.qLibraryId=e,o.qDef.autoSort=!0,o.qDef.qSortCriterias=pE,delete o.qDef.qFieldDefs,delete o.qDef.qFieldLabels,o}createFieldDimension(e,t,n){var r,o;const i=cE.merge({},this.dimensionProperties||{},n||{});return i.qDef=null!==(r=i.qDef)&&void 0!==r?r:{},i.qOtherTotalSpec=null!==(o=i.qOtherTotalSpec)&&void 0!==o?o:{},e||(i.qDef.qFieldDefs=[],i.qDef.qFieldLabels=[],i.qDef.qSortCriterias=[]),i.qDef.qFieldDefs=[e],i.qDef.qFieldLabels=t?[t]:[""],i.qDef.qSortCriterias=pE,i.qDef.autoSort=!0,i}addFieldDimension(e,t,n){const r=this.createFieldDimension(e,t,n);return this.addDimension(r)}addFieldDimensions(e){const t=e.map((e=>{let{field:t,label:n,defaults:r}=e;return this.createFieldDimension(t,n,r)}));return this.addDimensions(t)}addLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n)}addLibraryDimensions(e){const t=e.map((e=>{let{id:t,defaults:n}=e;return this.createLibraryDimension(t,n)}));return this.addDimensions(t)}async addAltLibraryDimensions(e){const t=e.map((e=>{let{id:t}=e;return this.createLibraryDimension(t)}));return this.addDimensions(t,!0)}async addAltFieldDimensions(e){const t=e.map((e=>{let{field:t}=e;return this.createFieldDimension(t)}));return this.addDimensions(t,!0)}addAlternativeFieldDimension(e,t,n){const r=this.createFieldDimension(e,t,n);return this.addDimension(r,!0)}addAlternativeLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n,!0)}minDimensions(){return"function"==typeof this.dimensionDefinition.min?this.dimensionDefinition.min.call(null,this.properties,this):this.dimensionDefinition.min||0}maxDimensions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const t=this.getMeasures().length-e;if("function"==typeof this.dimensionDefinition.max){var n;const e=uE("PS_21371_ANALYSIS_TYPES")?[t,this.properties]:[t];return null===(n=this.dimensionDefinition.max)||void 0===n?void 0:n.apply(null,e)}return Number.isNaN(+this.dimensionDefinition.max)?1e4:this.dimensionDefinition.max}canAddDimension(){return this.getDimensions().length<this.maxDimensions()}getMeasure(e){var t;const n=this.getMeasures(),r=this.getAlternativeMeasures();return null!==(t=hE(n,e))&&void 0!==t?t:hE(r,e)}static getMeasures(){return[]}static getAlternativeMeasures(){throw new Error("Method not implemented.")}static addMeasure(){throw bE}static addMeasures(){throw bE}static removeMeasure(){throw bE}static removeMeasures(){throw bE}static autoSortMeasure(){throw bE}static replaceMeasure(){throw bE}createExpressionMeasure(e,t,n){var r,o;const i=cE.merge({},this.measureProperties||{},n||{});return i.qDef=null!==(r=i.qDef)&&void 0!==r?r:{},i.qDef.qNumFormat=null!==(o=i.qDef.qNumFormat)&&void 0!==o?o:{},i.qDef.qDef=e,i.qDef.qLabel=t,i.qDef.autoSort=!0,i}addExpressionMeasure(e,t,n){const r=this.createExpressionMeasure(e,t,n);return this.addMeasure(r)}addExpressionMeasures(e){const t=e.map((e=>{let{expression:t,label:n,defaults:r}=e;return this.createExpressionMeasure(t,n,r)}));return this.addMeasures(t)}createLibraryMeasure(e,t){var n,r;const o=cE.merge({},this.measureProperties||{},t||{});return o.qDef=null!==(n=o.qDef)&&void 0!==n?n:{},o.qDef.qNumFormat=null!==(r=o.qDef.qNumFormat)&&void 0!==r?r:{},uE("MASTER_measureURE_FORMAT")&&(e=>{const t=e;t.quarantine={qNumFormat:t.qNumFormat||{},isCustomFormatted:t.isCustomFormatted||!1},t.qNumFormat=null,t.isCustomFormatted=void 0})(o.qDef),o.qLibraryId=e,o.qDef.autoSort=!0,delete o.qDef.qDef,delete o.qDef.qLabel,o}addLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n)}addLibraryMeasures(e){const t=e.map((e=>{let{id:t,defaults:n}=e;return this.createLibraryMeasure(t,n)}));return this.addMeasures(t)}addAltLibraryMeasures(e){const t=e.map((e=>{let{id:t}=e;return this.createLibraryMeasure(t)}));return this.addMeasures(t,!0)}addAltExpressionMeasures(e){const t=e.map((e=>{let{expression:t}=e;return this.createExpressionMeasure(t)}));return this.addMeasures(t,!0)}addAlternativeExpressionMeasure(e,t,n){const r=this.createExpressionMeasure(e,t,n);return this.addMeasure(r,!0)}addAlternativeLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n,!0)}minMeasures(){return"function"==typeof this.measureDefinition.min?this.measureDefinition.min.call(null,this.properties,this):this.measureDefinition.min||0}maxMeasures(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if("function"==typeof this.measureDefinition.max){const t=this.getDimensions().length-e,n=uE("PS_21371_ANALYSIS_TYPES")?[t,this.properties]:[t];return this.measureDefinition.max.apply(null,n)}return Number.isNaN(+this.measureDefinition.max)?1e4:this.measureDefinition.max}canAddMeasure(){return this.getMeasures().length<this.maxMeasures()}updateGlobalChangeListeners(e){this.globalChangeListeners&&(this.globalChangeListeners||[]).forEach((t=>{t&&"function"==typeof t&&t(this.properties,this,{layout:e})}))}}function ME(e,t,n){const r=e.getDimensions();return r.splice(n,0,t),e.autoSortDimension(t).then((async()=>(EE(e,r,n),await function(e,t){return t&&"function"==typeof e.dimensionDefinition.add?Promise.resolve(e.dimensionDefinition.add.call(null,t,e.properties,e)).then((()=>t)):Promise.resolve(t)}(e,t),t)))}function qE(e,t,n){const r=e.getMeasures(),o=null!=n?n:r.length;return r.length<e.maxMeasures()?(r.splice(o,0,t),e.autoSortMeasure(t).then((()=>(OE(e,r),function(e,t){return t&&"function"==typeof e.measureDefinition.add?Promise.resolve(e.measureDefinition.add.call(null,t,e.properties,e)):Promise.resolve()}(e,t).then((()=>t)))))):t}async function DE(e,t){!function(e,t){IS.indexRemoved(e.hcProperties.qInterColumnSortOrder,t)}(e,t),await function(e,t){const[n]=e.getDimensions().splice(t,1);return n&&"function"==typeof e.dimensionDefinition.remove?Promise.resolve(e.dimensionDefinition.remove.call(null,n,e.properties,e,t)):Promise.resolve()}(e,t)}async function NE(e,t){!function(e,t){IS.indexRemoved(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t)}(e,t),await function(e,t){const[n]=e.getMeasures().splice(t,1);return n&&"function"==typeof e.measureDefinition.remove?Promise.resolve(e.measureDefinition.remove.call(null,n,e.properties,e,t)):Promise.resolve()}(e,t)}function AE(e,t){const[n]=e.getAlternativeDimensions().splice(t,1);if(n&&"function"==typeof e.dimensionDefinition.remove)return n.isAlternative=!0,Promise.resolve(e.dimensionDefinition.remove.call(null,n,e.properties,e,t)).then((()=>{delete n.isAlternative}))}function zE(e,t,n){const r=e.getMeasures(),o=null!=n?n:r.length;return r.length<e.maxMeasures()?(r.splice(o,0,t),OE(e,r),function(e,t){return"function"==typeof e.measureDefinition.move?Promise.resolve(e.measureDefinition.move.call(null,t,e.properties,e,!0)).then((()=>t)):Promise.resolve(t)}(e,t)):Promise.resolve(t)}class jE extends PE{constructor(e){super(e),this.path=e.path}setProperties(e){return e?(super.setProperties(e),this.hcProperties=this.path?OS.getValue(e,"".concat(this.path,".qHyperCubeDef")):e.qHyperCubeDef,this.hcProperties?(function(e){var t,n,r,o,i,a,l;const s=e;s.hcProperties.qDimensions=null!==(t=s.getDimensions())&&void 0!==t?t:[],s.hcProperties.qMeasures=null!==(n=s.getMeasures())&&void 0!==n?n:[],s.hcProperties.qInterColumnSortOrder=null!==(r=s.hcProperties.qInterColumnSortOrder)&&void 0!==r?r:[],s.hcProperties.qLayoutExclude=null!==(o=s.hcProperties.qLayoutExclude)&&void 0!==o?o:{qHyperCubeDef:{qDimensions:[],qMeasures:[]}},s.hcProperties.qLayoutExclude.qHyperCubeDef=null!==(i=s.hcProperties.qLayoutExclude.qHyperCubeDef)&&void 0!==i?i:{qDimensions:[],qMeasures:[]},s.hcProperties.qLayoutExclude.qHyperCubeDef.qDimensions=null!==(a=s.getAlternativeDimensions())&&void 0!==a?a:[],s.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=null!==(l=s.getAlternativeMeasures())&&void 0!==l?l:[]}(this),function(e){const t=e;t.hcProperties.isHCEnabled&&0===t.hcProperties.qDynamicScript.length&&"S"===t.hcProperties.qMode&&(t.hcProperties.qDynamicScript=[])}(this),this.hcProperties.qDimensions=yE(this.hcProperties.qDimensions),this.hcProperties.qMeasures=yE(this.hcProperties.qMeasures),{}):{}):{}}getDimensions(){return this.hcProperties?this.hcProperties.qDimensions:[]}getAlternativeDimensions(){var e,t;return null!==(e=null===(t=this.hcProperties)||void 0===t||null===(t=t.qLayoutExclude)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qDimensions)&&void 0!==e?e:[]}getDimensionLayout(e){return this.getDimensionLayouts().filter((t=>e===t.cId))[0]}getDimensionLayouts(){const e=xE(this.layout,this.path);return e?e.qDimensionInfo:[]}addDimension(e,t,n){const r=gE(e);return _E(this,t)?wE(this,r,n):function(e,t,n){const r=e.getDimensions(),o=null!=n?n:r.length;return r.length<e.maxDimensions()?ME(e,t,o):Promise.resolve(t)}(this,r,n)}async addDimensions(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.getDimensions(),r=n.length,o=[];let i=0;var a,s=!1,c=!1;try{for(var u,d=l(e);s=!(u=await d.next()).done;s=!1){const e=u.value;{if(CE(this,n))return o;const a=gE(e);if(_E(this,t)){const e=await wE(this,a);o.push(e)}else n.length<this.maxDimensions()&&(await RE(this,a,r,n,o,i),i++)}}}catch(e){c=!0,a=e}finally{try{s&&null!=d.return&&await d.return()}finally{if(c)throw a}}return o}removeDimension(e,t){t&&AE(this,e),DE(this,e)}async removeDimensions(e,t){const n=this.getAlternativeDimensions(),r=this.getDimensions();if(0===e.length)return[];let o=[];const i=[...e].sort(((e,t)=>t-e));if(t&&n.length>0){o=SE(n,e);var a,s=!1,c=!1;try{for(var u,d=l(i);s=!(u=await d.next()).done;s=!1){const e=u.value;await AE(this,e)}}catch(e){c=!0,a=e}finally{try{s&&null!=d.return&&await d.return()}finally{if(c)throw a}}}else if(r.length>0){o=SE(r,e);var f,p=!1,h=!1;try{for(var m,g=l(i);p=!(m=await g.next()).done;p=!1){const e=m.value;await DE(this,e)}}catch(e){h=!0,f=e}finally{try{p&&null!=g.return&&await g.return()}finally{if(h)throw f}}}return o}replaceDimension(e,t){return this.autoSortDimension(t).then((()=>function(e,t,n){if(!n)return;const r=e.getDimensions(),o=r[t],i=f(f({},n),{},{qDef:f(f({},n.qDef),{},{cId:Lx()})});return r[t]=i,i&&"function"==typeof e.dimensionDefinition.replace&&e.dimensionDefinition.replace.call(null,i,o,t,e.properties,e),i}(this,e,t)))}reinsertDimension(e,t,n){const r=mE(e);return _E(this,t)?wE(this,r,n).then((()=>{kE(this,r)})):function(e,t,n){const r=e.getDimensions(),o=null!=n?n:r.length;return r.length<e.maxDimensions()?(r.splice(o,0,t),EE(e,r),kE(e,t)):Promise.resolve(t)}(this,r,n)}moveDimension(e,t){const n=this.getDimensions(),r=this.getAlternativeDimensions();return e<n.length&&t<n.length?Promise.resolve(IS.move(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,r){const o=t-n.length;let[i]=r.splice(0,1);return n.push(i),[i]=n.splice(e,1),r.splice(o,0,i),Promise.resolve(i)}(e,t,n,r):e>=n.length&&t<n.length?Promise.resolve(TE(e,t,n,r)):Promise.resolve(function(e,t,n,r){const o=e-n.length,i=t-n.length;IS.move(r,o,i)}(e,t,n,r))}autoSortDimension(e){return e.qLibraryId?function(e,t){return e.app.getDimensionList().then((n=>{const r=(null==t?void 0:t.qLibraryId)&&(o=t.qLibraryId,(i=n)&&i.find((e=>e.qInfo.qId===o))||null);var o,i;return r&&vE(r.qData.info,t,e),t}))}(this,e):function(e,t){return e.app.getFieldList().then((n=>{var r;const o=(null==t||null===(r=t.qDef)||void 0===r?void 0:r.qFieldDefs)&&((e,t)=>{const n=(e=>{const t=[];return e.forEach((e=>{t.push((e=>{const t=e;return t.isDateField=(e=>{var t,n;return(null==e?void 0:e.qDerivedFieldData)&&((null==e||null===(t=e.qTags)||void 0===t?void 0:t.indexOf("$date"))>-1||(null==e||null===(n=e.qTags)||void 0===n?void 0:n.indexOf("$timestamp"))>-1)})(t),t.isGeoField=(e=>e.qTags.indexOf("$geoname")>-1)(t),t})(e));const n=(e=>{const t=[];return e.qDerivedFieldData?(e.qDerivedFieldData.qDerivedFieldLists.forEach((n=>{n.qFieldDefs.forEach((r=>{var o;t.push({qName:r.qName,displayName:(o=r.qName,o?o.split(".autoCalendar").join(""):""),qSrcTables:e.qSrcTables,qTags:r.qTags,isDerived:!0,isDerivedFromDate:e.isDateField,sourceField:e.qName,derivedDefinitionName:n.qDerivedDefinitionName})}))})),t):t})(e);t.push(...n)})),t})(t.slice(0)),r=(e=>{let t=e;t=t.trim(),"="===t.charAt(0)&&(t=t.substring(1),t=t.trim());const n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=t.substring(1,n),t=t.trim()),t})(e);return n&&((e,t)=>t&&t.find((t=>t.qName===e))||null)(r,n)||null})(t.qDef.qFieldDefs[0],n);return o&&vE([o],t,e),t}))}(this,e)}getMeasures(){return this.hcProperties?this.hcProperties.qMeasures:[]}getAlternativeMeasures(){var e,t;return null!==(e=null===(t=this.hcProperties)||void 0===t||null===(t=t.qLayoutExclude)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)&&void 0!==e?e:[]}getMeasureLayouts(){const e=xE(this.layout,this.path);return e?e.qMeasureInfo:[]}getMeasureLayout(e){return this.getMeasureLayouts().filter((t=>e===t.cId))[0]}addMeasure(e,t,n){const r=this.getAlternativeMeasure(),o=mE(e);return IE(this,r,t)?LE(this,o,n):qE(this,o,n)}autoSortMeasure(e){const t=e;return t.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},Promise.resolve(t)}addMeasures(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.getMeasures(),r=[];let o=0;return e.forEach((async e=>{if(function(e,t){return e.getAlternativeMeasures().length+t.length>=fE}(this,n))return!1;const i=mE(e);return IE(this,n,t)?(LE(this,i),r.push(i)):n.length<this.maxMeasures()&&(await function(e,t,n,r,o){const i=e.getDimensions(),a=f({},t);return a.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},IS.indexAdded(e.hcProperties.qInterColumnSortOrder,i.length+n.length+o),n.push(a),r.push(a),"function"==typeof e.measureDefinition.add&&e.measureDefinition.add.call(null,a,e.properties,e),Promise.resolve(r)}(this,i,n,r,o),o++),!0})),r}removeMeasure(e,t){t&&function(e,t){e.getAlternativeMeasures().splice(t,1)}(this,e),NE(this,e)}async removeMeasures(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures();if(0===e.length)return[];let o=[];if(t&&r.length>0)o=SE(r,e),function(e,t){const n=e,r=function(e,t){return e.filter(((e,n)=>!t.includes(n)))}(n.getAlternativeMeasures(),t);n.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=r}(this,e);else if(n.length>0){o=SE(n,e);const t=[...e].sort(((e,t)=>t-e));var i,a=!1,s=!1;try{for(var c,u=l(t);a=!(c=await u.next()).done;a=!1){const e=c.value;await NE(this,e)}}catch(e){s=!0,i=e}finally{try{a&&null!=u.return&&await u.return()}finally{if(s)throw i}}}return o}replaceMeasure(e,t){return this.autoSortMeasure(t).then((()=>function(e,t,n){const r=e.getMeasures(),o=r[t],i=f(f({},n),{},{qDef:f(f({},n.qDef),{},{cId:Lx()})});return r[t]=i,i&&"function"==typeof e.measureDefinition.replace&&e.dimensionDefinition.replace.call(null,i,o,t,e.properties,e),i}(this,e,t)))}reinsertMeasure(e,t,n){const r=this.getAlternativeMeasures(),o=mE(e);return IE(this,r,t)?LE(this,o,n):zE(this,o,n)}moveMeasure(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures();return e<n.length&&t<n.length?Promise.resolve(IS.move(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,r){const o=t-n.length;let[i]=r.splice(0,1);return n.push(i),[i]=n.splice(e,1),r.splice(o,0,i),Promise.resolve(i)}(e,t,n,r):e>=n.length&&t<n.length?TE(e,t,n,r):Promise.resolve(function(e,t,n,r){const o=e-n.length,i=t-n.length;IS.move(r,o,i)}(e,t,n,r))}setSorting(e){e&&e.length===this.hcProperties.qInterColumnSortOrder.length&&(this.hcProperties.qInterColumnSortOrder=e)}getSorting(){return this.hcProperties.qInterColumnSortOrder}changeSorting(e,t){OS.move(this.hcProperties.qInterColumnSortOrder,e,t)}IsHCInStraightMode(){return"S"===this.hcProperties.qMode}setHCEnabled(e){this.hcProperties&&(this.hcProperties.isHCEnabled=e)}getDynamicScripts(){var e;return(null===(e=this.hcProperties)||void 0===e?void 0:e.qDynamicScript)||[]}}const FE=pe.bind(null,!0),$E={},{isArray:BE}=Array;function WE(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function HE(e){return void 0===e}function UE(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function VE(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]=HE(e[r||t])?i:e[t],e=e[r||t]})),e}function GE(e,t){let n=!0;if(WE(e)&&WE(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{GE(e[r],t[r])||(n=!1)})),n);if(BE(e)&&BE(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!GE(e[n],t[n]))return!1;return!0}return e===t}$E.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?FE({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);GE(i,a)||UE(t,o)||(HE(a)?r.push({op:"add",path:l,value:i}):WE(i)&&WE(a)?r=r.concat($E.generate(a,i,l)):BE(i)&&BE(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]&&HE(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(GE(t,o))return r;if(!HE(t[0])&&HE(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($E.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=>{HE(t[o])&&!UE(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},$E.apply=function(e,t){t.forEach((t=>{let n=VE(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(BE(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(BE(o)&&BE(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(WE(o)&&WE(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!UE(a,e)&&delete a[e]})),FE(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=VE(e,t.from);BE(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(BE(n)?n.splice(+r,1):delete n[r]);var a}))},$E.clone=function(e){return FE({},e)},$E.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},$E.updateObject=function(e,t){Object.keys(e).length?$E.apply(e,$E.generate(e,t)):FE(e,t)};const KE=e=>t=>{const n=(r=f(f({},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(O.prototype).forEach((e=>{r[e]=O.prototype[e]})),O.init(r),r);var r;return n};let ZE,JE;function XE(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 YE(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null},contraintsWarning:!0}}function QE(e){tk(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 ek(e){if(e.__hooks.obsolete)return Promise.resolve();JE=-1,ZE=e,ZE.__hooks.initiated&&ZE.__hooks.list.length;try{ZE.fn.call(null)}catch(e){console.error(e)}ZE.__hooks.initiated=!0;const t=ZE.__hooks;return ik(ZE),JE=void 0,ZE=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){tk(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){tk(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 tk(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 nk(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 rk(e,t,n,r){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n,r))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function ok(e){return e.__hooks.imperativeHandle}function ik(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function ak(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,ik(e))}function lk(e){if(void 0===ZE)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=ZE.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function sk(e){lk(++JE);return ZE.context[e]}function ck(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function uk(e){return{__hooked:!0,fn:e,initiate:YE,run:ek,teardown:QE,runSnaps:nk,runMenu:rk,focus:gk,blur:vk,observeActions:ak,getImperativeHandle:ok,updateRectOnNextRun:ck}}function dk(e){const t=lk(++JE);if(!t.value){t.component=ZE;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,ek(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function fk(e,t){const n=lk(++JE);XE(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===ZE.__hooks.pendingEffects.indexOf(n)&&ZE.__hooks.pendingEffects.push(n))}function pk(e,t){const n=lk(++JE);XE(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],ZE.__hooks.pendingLayoutEffects.push(n))}function hk(e,t){const n=lk(++JE);return XE(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function mk(){return sk("element")}function gk(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 vk(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 bk={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},yk=Object.keys(bk),xk=e=>(Object.keys(O.prototype).forEach((t=>{e[t]=O.prototype[t]})),O.init(e),e);function Sk(e,t){const n=f({},bk);xk(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==yk.indexOf(t)?n[t]=e.component[t].bind(r):r[t]=e.component[t]}));const o=function(e){let{sn:t,component:n}=e;const r={},o=[],i=KE(n);return((t.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=i(e);r[e.key]=t,o.push(t)})),(t.definition.actions||[]).forEach((e=>{const t=i(e);r[e.key]=t})),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:r}),i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(r,{model:t.model,app:t.app,global:i,selections:t.selections,actions:o.actions}),Object.assign(n,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[n,o]}function wk(e,t,n){"function"==typeof e.component&&(e.component=uk(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 i={},a=["appLayout","constraints","interactions"],l={},s={};t.model&&t.model.session||(l.select=!0,l.edit=!0,s.select=!1,s.edit=!1);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,navigation:t.navigation,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,externalFocusManagement:t.externalFocusManagement||!1,focusHandler:t.focusHandler,constraints:l,interactions: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)}a.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(f(f({},r[e]),l))),"interactions"===e&&(t=JSON.stringify(f(f({},r[e]),s))),t!==i[e]&&(n=!0,i[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==i.themeName&&(n=!0,i.themeName=this.context.theme.name()),this.context.translator.language()!==i.language&&(n=!0,i.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,r){return e.component.runMenu(this,t,n,r)},focus(){const t=e.component.getImperativeHandle(this);t&&"function"==typeof t.focus?t.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 a.forEach((e=>{i[e]=JSON.stringify(c.context[e])})),i.themeName=c.context.theme?c.context.theme.name():void 0,i.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):Sk(e,t),i=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];try{e.qae.properties.onChange.call({model:t.model},...r)}catch(e){}return t.model.__snInterceptor.setProperties.call(this,...r)},t.model.applyPatches=function(n,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const i=$E.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));$E.apply(o,a);try{e.qae.properties.onChange.call({model:t.model},o)}catch(e){}const l=$E.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.__snInterceptor&&(t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor)},i.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){i.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const Ek=()=>{};function kk(e,t){return void 0===e?()=>t:()=>e}function Ck(e){const t=e||{};return{min:"function"==typeof t.min?t.min:kk(t.min,0),max:"function"==typeof t.max?t.max:kk(t.max,1e3),added:t.added||t.add||Ek,description:t.description||Ek,moved:t.moved||t.move||Ek,removed:t.removed||t.remove||Ek,replaced:t.replaced||t.replace||Ek,isDefined:()=>!!e}}const _k=(e,t,n)=>{const r=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<r.length;++e)if(""!==r[e]){if(void 0===o[r[e]])return n;o=o[r[e]]}return o};function Rk(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=>_k(e,n,{}),dimensions:Ck(e.dimensions),measures:Ck(e.measures)}}function Lk(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.properties||{};t.properties&&(t.properties.initial||t.properties.onChange)&&(n=t.properties.initial,e=t.properties.onChange);return{properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(Rk)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function Ok(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:Lk(n.qae),component:n.component||{},create:e=>wk(r,e,t),definition:t.flags.isEnabled("NEBULA_DATA_HANDLERS")?{dataHandler:e=>new jE(e)}:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}const Ik=(e,t,n)=>{if(!e)return Promise.resolve();let r=$E.generate(t,n);return pe(!0,t,n),r&&r.length?(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,r,!0):e.applyPatches(r,!0)):Promise.resolve()},Tk=()=>{};function Pk(){var e;let t,n,r,{model:o,halo:i,navigation:a,initialError:l,onDestroy:s=(async()=>{}),onRender:c=(()=>{}),onError:u=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=Tk,p=null,h=null,m=null,g=null,v=!1;const b=new Promise((e=>{m=e})),y=new Promise((e=>{g=e})),x=e=>()=>{null==e||e(),g(),c(),v=!0};let w={},E=[];const k=new O;let C={};null!==(e=i.context)&&void 0!==e&&e.enablePrivateExperimental&&(C={support(e){var t;return!(!h||!v)&&p.current.support(e,null===(t=n)||void 0===t?void 0:t.support,r)},getPropertyPanelDefinition:()=>!(!h||!v)&&(n?n.definition:p.current.getExtensionDefinition().definition),toggleFocus(e){p.current.toggleFocus(e)},setOnBlurHandler(e){p.current.setOnBlurHandler(e)},onContextMenu(){return p.current.onContextMenu(...arguments)}});const _=f(f({id:o.id,model:o,async destroy(){await s(),d(),d=Tk},async convertTo(e){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){const n=await o.getLayout();if(oE(n)&&!t){const t=await $S({halo:i,model:o,cellRef:p,newType:e});return await iE(o,t.qProperty),t}const r=await o.getEffectiveProperties(),a=await $S({halo:i,model:o,cellRef:p,newType:e,properties:r}),l=a.qProperty;return await Ik(o,r,l),a}return await $S({halo:i,model:o,cellRef:p,newType:e})},async toggleDataView(e){let a;if(t||!1===e)t&&!0!==e&&(a=o,await i.app.destroySessionObject(t),t=void 0,n=void 0,r=void 0);else{let e=i.context.dataViewType;const l=await o.getEffectiveProperties();if(!i.types.getSupportedVersion(e)){if(!i.types.getSupportedVersion("table"))throw new Error("No data view type registered");e="table"}const s=await $S({halo:i,model:o,cellRef:p,newType:e,properties:l,viewDataMode:!0});a=await i.app.createSessionObject(s.qProperty),t=a.id,n=p.current.getExtensionDefinition(),r=await o.getLayout()}a&&p.current.setModel(a)},get viewDataToggled(){return void 0!==t},addListener(e,t){k.addListener(e,t)},removeListener(e,t){k.removeListener(e,t)},getImperativeHandle:async()=>(await y,p.current.getImperativeHandle()),takeSnapshot:async()=>(await y,p.current.takeSnapshot())},C),{},{__DO_NOT_USE__:{mount(e){if(h)throw new Error("Already mounted");if(!(e instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return h=e,[d,p]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:i,onMount:a,emitter:l,initialError:s,navigation:c,onError:u}=e;const{root:d}=t,f=S.createRef(),p=Lx(),h=Zl.createPortal(S.createElement(eE,{ref:f,halo:t,model:r,currentId:p,initialSnOptions:o,initialSnPlugins:i,initialError:s,onMount:a,emitter:l,navigation:c,onError:u}),n,p),m=()=>{d.remove(h),r.removeListener("closed",m)};return r.on("closed",m),d.addCell(p,f),(async()=>{try{await d.add(h,m)}catch(e){m(),a(),u(e)}})(),[m,f]}({halo:i,element:e,model:o,initialSnOptions:w,initialSnPlugins:E,initialError:l,onMount:m,emitter:k,navigation:a,onError:u}),b},async applyProperties(e){const t=nE("/",e,await o.getEffectiveProperties());if(t.length)return o.applyPatches(t,!0)},options(e){(async e=>{const t=e.onInitialRender;h?(async()=>{await b,p.current.setSnOptions(f(f(f({},w),e),{onInitialRender:x(t)}))})():w=f(f(f({},w),e),{onInitialRender:x(t)})})(e)},plugins(e){(async e=>{rE(e),h?(async()=>{await b,p.current.setSnPlugins(e)})():E=e})(e)},exportImage:()=>p.current.exportImage(),takeSnapshot:()=>p.current.takeSnapshot(),getModel:()=>o,convert:{async toType(e){const t=await o.getEffectiveProperties(),n=await $S({halo:i,model:o,cellRef:p,newType:e,properties:t}),r=n.qProperty;return await Ik(o,t,r),n},async revert(){await o.clearSoftPatches()}}}});return _}async function Mk(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:a,onError:l}=t,s=Pk({model:e,halo:n,navigation:r,initialError:o,onDestroy:i,onRender:a,onError:l});return t.options&&s.__DO_NOT_USE__.options(t.options),t.plugins&&s.__DO_NOT_USE__.plugins(t.plugins),t.element&&await s.__DO_NOT_USE__.mount(t.element),s}async function qk(e,t,n,r){let{type:o,version:i,fields:a,properties:l,extendProperties:s}=e,c={};const u=[],{modelStore:d}=r;try{const e=t.types.get({name:o,version:i});c=await e.initialProperties(l,s);const n=await e.supernova();a&&await LS({sn:n,properties:c,fields:a,children:u},t),l&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},c)}catch(e){c=n?null:{qInfo:{qType:o},visualization:o}}if(!n){const e=await t.app.createObject(c);return u.length>0&&await e.setFullPropertyTree({qProperty:c,qChildren:u}),d.set(e.id,e),e}return c}const Dk="njs-sheet";function Nk(e,t,n){return e.bounds?e.bounds:{y:e.row/n*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/n*100}}const Ak=x.forwardRef(((e,t)=>{var n;let{model:r,halo:o,initialSnOptions:i,initialSnPlugins:a,initialError:l,onMount:s,unmount:c,navigation:u,onError:d}=e;const{root:p}=o,[h,m]=x.useState(r),[g]=Vh(h),{theme:v,modelStore:b}=x.useContext(Vs),[y,w]=x.useState([]),[E,k]=x.useState(void 0),[C,_]=x.useState(void 0),[R,L]=x.useState(""),O=x.useRef({cellCount:0,cellsRendered:0,initialRender:!1});null==u||null===(n=u.setCurrentSheetId)||void 0===n||n.call(u,h.id),x.useEffect((()=>{if(g){const e=JSON.stringify(g.cells);if(e===R)return;L(e);const t=async()=>{y.forEach((e=>{p.removeCell(e.currentId)}));const e=g.cells;O.cellCount=e.length,O.cellsRendered=0;const t=()=>{O.cellsRendered++,O.cellsRendered!==O.cellCount||O.initialRender||(O.initialRender=!0,i.onInitialRender())},{columns:n,rows:r}=g,a=await Promise.all(e.map((async e=>{let a;const l=new Promise((e=>{a=e})),s=y.find((t=>t.id===e.name));if(s)return s.bounds=Nk(e,n,r),delete s.mountedPromise,s;const c=await async function(e,t,n){let{id:r,options:o,plugins:i,element:a}=e;const{modelStore:l,rpcRequestModelStore:s}=n,c="".concat(r);let u=s.get(c);u||(u=t.app.getObject(r),s.set(c,u));const d=await u;return l.set(c,d),Mk(d,{options:o,plugins:i,element:a},t)}({id:e.name},o,b);return{model:c.model,id:e.name,bounds:Nk(e,n,r),cellRef:S.createRef(),currentId:Lx(),mounted:a,mountedPromise:l,options:f(f({},i),{onInitialRender:t})}})));a.forEach((e=>p.addCell(e.currentId,e.cellRef))),w(a)};t()}}),[g]),x.useEffect((()=>{const e=()=>{h.removeListener("closed",e),c()};return h.on("closed",e),()=>h.removeListener("closed",e)}),[h]);const I=x.useMemo((()=>y?y.map((e=>function(e,t,n,r,o,i,a,l){var s;const{x:c,y:u,width:d,height:f}=e.bounds,p={left:"".concat(c,"%"),top:"".concat(u,"%"),width:"".concat(d,"%"),height:"".concat(f,"%"),position:"absolute"},h=null===(s=t.public.galaxy)||void 0===s?void 0:s.flags;return null!=h&&h.isEnabled("VNA-13_CELLPADDING_FROM_THEME")&&(p.boxSizing="border-box",p.padding="4px"),S.createElement("div",{style:p,key:e.model.id},S.createElement(eE,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:i,navigation:a,onError:l}))}(e,o,e.options,a,l,e.mounted,u,d))):[]),[y]);x.useEffect((()=>{const e=null!=g&&g.components?g.components.find((e=>"general"===e.key)):null;k(rx(e,o.public.theme)),_(nx(e,o.app))}),[g,o.public.theme,o.app,v]),x.useImperativeHandle(t,(()=>({setModel:m})),[]);const T=!g||void 0===g.height||Number.isNaN(g.height)?"100%":"".concat(Number(g.height),"%"),P=y.map((e=>e.mountedPromise)),M=P.filter((e=>!!e));return M.length&&Promise.all(P).then((()=>{s()})),S.createElement("div",{className:Dk,style:{width:"100%",height:T,position:"relative",backgroundColor:E,backgroundImage:C&&C.url?"url(".concat(C.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:C&&C.size,backgroundPosition:C&&C.pos}},I)}));const zk=()=>{};function jk(){let{model:e,halo:t,navigation:n,initialError:r,onDestroy:o=(async()=>{}),onRender:i=(()=>{}),onError:a=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=zk,s=null,c=null,u=null,d=null;const p=new Promise((e=>{u=e})),h=new Promise((e=>{d=e})),m=e=>()=>{null==e||e(),d(),i()};let g={},v=[];const b={id:e.id,model:e,navigation:n,getImperativeHandle:async()=>(await h,s.current.getImperativeHandle()),async destroy(){await o(),l(),l=zk},__DO_NOT_USE__:{mount(o){if(c)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return c=o,[l,s]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:i,onMount:a,initialError:l,navigation:s,onError:c}=e;const{root:u}=t,d=S.createRef();let f;const p=()=>{u.remove(f)};return f=Zl.createPortal(S.createElement(Ak,{ref:d,halo:t,model:r,initialSnOptions:o,initialSnPlugins:i,initialError:l,onMount:a,unmount:p,navigation:s,onError:c}),n,r.id),s.setSheetRef(d),u.add(f,p),[p,d]}({halo:t,element:o,model:e,initialSnOptions:g,initialSnPlugins:v,initialError:r,onMount:u,navigation:n,onError:a}),p},async applyProperties(t){const n=nE("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;c?(async()=>{await p,s.current.setSnOptions(f(f(f({},g),e),{onInitialRender:m(t)}))})():g=f(f(f({},g),e),{onInitialRender:m(t)})})(e)},plugins(e){(async e=>{rE(e),c?(async()=>{await p,s.current.setSnPlugins(e)})():v=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return b}async function Fk(e,t,n){let{id:r,options:o,plugins:i,element:a,onRender:l,onError:s,navigation:c}=e;const{modelStore:u,rpcRequestModelStore:d}=n,f="".concat(r);let p=d.get(f);p||(p=t.app.getObject(r),d.set(f,p));const h=await p;u.set(f,h);const m=c||("sheet"===h.genericType?function(e,t,n){var r;const{galaxy:o}=e.public;var i;if(null!==(r=o.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&r.navigation)return null===(i=o.anything)||void 0===i||null===(i=i.sense)||void 0===i?void 0:i.navigation;const a={model:n},l={goToSheet:async n=>{var r,o;if(!a.sheetRef)return;const{modelStore:i,rpcRequestModelStore:s}=t,c="".concat(n);let u,d=s.get(c);d||(d=e.app.getObject(n),s.set(c,d));try{if(u=await d,"sheet"!==u.genericType)return}catch(e){return}i.set(c,u),null===(r=a.sheetRef)||void 0===r||null===(r=r.current)||void 0===r||null===(o=r.setModel)||void 0===o||o.call(r,u),a.model=u,l.emit("sheetChanged")},setSheetRef:e=>{a.sheetRef=e},getCurrentSheetId:()=>!!a.model&&a.model.id};return ib(l),l}(t,n,h):void 0);return"sheet"===h.genericType?async function(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:a,onError:l}=t,s=jk({model:e,halo:n,navigation:r,initialError:o,onDestroy:i,onRender:a,onError:l});return t.options&&s.__DO_NOT_USE__.options(t.options),t.plugins&&s.__DO_NOT_USE__.plugins(t.plugins),t.element&&await s.__DO_NOT_USE__.mount(t.element),s}(h,{options:o,plugins:i,element:a,onRender:l,onError:s},t,m):Mk(h,{options:o,plugins:i,element:a,onRender:l,onError:s},t,m)}var $k,Bk,Wk,Hk;function Uk(){if(Hk)return Wk;Hk=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Wk=n=>n?"object"!=typeof n?e:n:t}var Vk,Gk,Kk,Zk,Jk,Xk,Yk,Qk,eC,tC,nC,rC,oC,iC,aC,lC,sC,cC,uC,dC,fC,pC,hC,mC,gC,vC,bC,yC,xC,SC,wC,EC={exports:{}};function kC(){if(Gk)return Vk;Gk=1;const e=Number.MAX_SAFE_INTEGER||9007199254740991;return Vk={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}function CC(){if(Zk)return Kk;Zk=1;const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error("SEMVER",...t)}:()=>{};return Kk=e}function _C(){return Jk||(Jk=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=kC(),i=CC(),a=(t=e.exports={}).re=[],l=t.safeRe=[],s=t.src=[],c=t.safeSrc=[],u=t.t={};let d=0;const f="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[f,r]],h=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split("".concat(t,"*")).join("".concat(t,"{0,").concat(n,"}")).split("".concat(t,"+")).join("".concat(t,"{1,").concat(n,"}"));return e})(t),o=d++;i(e,o,t),u[e]=o,s[o]=t,c[o]=r,a[o]=new RegExp(t,n?"g":void 0),l[o]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(f,"*")),h("MAINVERSION","(".concat(s[u.NUMERICIDENTIFIER],")\\.")+"(".concat(s[u.NUMERICIDENTIFIER],")\\.")+"(".concat(s[u.NUMERICIDENTIFIER],")")),h("MAINVERSIONLOOSE","(".concat(s[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[u.NUMERICIDENTIFIERLOOSE],")")),h("PRERELEASEIDENTIFIER","(?:".concat(s[u.NONNUMERICIDENTIFIER],"|").concat(s[u.NUMERICIDENTIFIER],")")),h("PRERELEASEIDENTIFIERLOOSE","(?:".concat(s[u.NONNUMERICIDENTIFIER],"|").concat(s[u.NUMERICIDENTIFIERLOOSE],")")),h("PRERELEASE","(?:-(".concat(s[u.PRERELEASEIDENTIFIER],"(?:\\.").concat(s[u.PRERELEASEIDENTIFIER],")*))")),h("PRERELEASELOOSE","(?:-?(".concat(s[u.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(s[u.PRERELEASEIDENTIFIERLOOSE],")*))")),h("BUILDIDENTIFIER","".concat(f,"+")),h("BUILD","(?:\\+(".concat(s[u.BUILDIDENTIFIER],"(?:\\.").concat(s[u.BUILDIDENTIFIER],")*))")),h("FULLPLAIN","v?".concat(s[u.MAINVERSION]).concat(s[u.PRERELEASE],"?").concat(s[u.BUILD],"?")),h("FULL","^".concat(s[u.FULLPLAIN],"$")),h("LOOSEPLAIN","[v=\\s]*".concat(s[u.MAINVERSIONLOOSE]).concat(s[u.PRERELEASELOOSE],"?").concat(s[u.BUILD],"?")),h("LOOSE","^".concat(s[u.LOOSEPLAIN],"$")),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE","".concat(s[u.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),h("XRANGEIDENTIFIER","".concat(s[u.NUMERICIDENTIFIER],"|x|X|\\*")),h("XRANGEPLAIN","[v=\\s]*(".concat(s[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIER],")")+"(?:".concat(s[u.PRERELEASE],")?").concat(s[u.BUILD],"?")+")?)?"),h("XRANGEPLAINLOOSE","[v=\\s]*(".concat(s[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(s[u.PRERELEASELOOSE],")?").concat(s[u.BUILD],"?")+")?)?"),h("XRANGE","^".concat(s[u.GTLT],"\\s*").concat(s[u.XRANGEPLAIN],"$")),h("XRANGELOOSE","^".concat(s[u.GTLT],"\\s*").concat(s[u.XRANGEPLAINLOOSE],"$")),h("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")),h("COERCE","".concat(s[u.COERCEPLAIN],"(?:$|[^\\d])")),h("COERCEFULL",s[u.COERCEPLAIN]+"(?:".concat(s[u.PRERELEASE],")?")+"(?:".concat(s[u.BUILD],")?")+"(?:$|[^\\d])"),h("COERCERTL",s[u.COERCE],!0),h("COERCERTLFULL",s[u.COERCEFULL],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM","(\\s*)".concat(s[u.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",h("TILDE","^".concat(s[u.LONETILDE]).concat(s[u.XRANGEPLAIN],"$")),h("TILDELOOSE","^".concat(s[u.LONETILDE]).concat(s[u.XRANGEPLAINLOOSE],"$")),h("LONECARET","(?:\\^)"),h("CARETTRIM","(\\s*)".concat(s[u.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",h("CARET","^".concat(s[u.LONECARET]).concat(s[u.XRANGEPLAIN],"$")),h("CARETLOOSE","^".concat(s[u.LONECARET]).concat(s[u.XRANGEPLAINLOOSE],"$")),h("COMPARATORLOOSE","^".concat(s[u.GTLT],"\\s*(").concat(s[u.LOOSEPLAIN],")$|^$")),h("COMPARATOR","^".concat(s[u.GTLT],"\\s*(").concat(s[u.FULLPLAIN],")$|^$")),h("COMPARATORTRIM","(\\s*)".concat(s[u.GTLT],"\\s*(").concat(s[u.LOOSEPLAIN],"|").concat(s[u.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE","^\\s*(".concat(s[u.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(s[u.XRANGEPLAIN],")")+"\\s*$"),h("HYPHENRANGELOOSE","^\\s*(".concat(s[u.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(s[u.XRANGEPLAINLOOSE],")")+"\\s*$"),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(EC,EC.exports)),EC.exports}function RC(){if(eC)return Qk;eC=1;const e=CC(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=kC(),{safeRe:r,t:o}=_C(),i=Uk(),{compareIdentifiers:a}=function(){if(Yk)return Xk;Yk=1;const e=/^[0-9]+$/,t=(t,n)=>{const r=e.test(t),o=e.test(n);return r&&o&&(t=+t,n=+n),t===n?0:r&&!o?-1:o&&!r?1:t<n?-1:1};return Xk={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)},Xk}();class l{constructor(a,s){if(s=i(s),a instanceof l){if(a.loose===!!s.loose&&a.includePrerelease===!!s.includePrerelease)return a;a=a.version}else if("string"!=typeof a)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof a,'".'));if(a.length>t)throw new TypeError("version is longer than ".concat(t," characters"));e("SemVer",a,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;const c=a.trim().match(s.loose?r[o.LOOSE]:r[o.FULL]);if(!c)throw new TypeError("Invalid Version: ".concat(a));if(this.raw=a,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<n)return t}return e})):this.prerelease=[],this.build=c[5]?c[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(t){if(e("SemVer.compare",this.version,this.options,t),!(t instanceof l)){if("string"==typeof t&&t===this.version)return 0;t=new l(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),a(this.major,e.major)||a(this.minor,e.minor)||a(this.patch,e.patch)}comparePre(t){if(t instanceof l||(t=new l(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],o=t.prerelease[n];if(e("prerelease compare",n,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 a(r,o)}while(++n)}compareBuild(t){t instanceof l||(t=new l(t,this.options));let n=0;do{const r=this.build[n],o=t.build[n];if(e("build compare",n,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 a(r,o)}while(++n)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e="-".concat(t).match(this.options.loose?r[o.PRERELEASELOOSE]:r[o.PRERELEASE]);if(!e||e[1]!==t)throw new Error("invalid identifier: ".concat(t))}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error("version ".concat(this.raw," is not a prerelease"));this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===a(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error("invalid increment argument: ".concat(e))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}}return Qk=l}function LC(){if(nC)return tC;nC=1;const e=RC();return tC=(t,n,r)=>new e(t,r).compare(new e(n,r)),tC}function OC(){if(gC)return mC;gC=1;const e=function(){if(oC)return rC;oC=1;const e=LC();return rC=(t,n,r)=>0===e(t,n,r),rC}(),t=function(){if(aC)return iC;aC=1;const e=LC();return iC=(t,n,r)=>0!==e(t,n,r),iC}(),n=function(){if(sC)return lC;sC=1;const e=LC();return lC=(t,n,r)=>e(t,n,r)>0,lC}(),r=function(){if(uC)return cC;uC=1;const e=LC();return cC=(t,n,r)=>e(t,n,r)>=0,cC}(),o=function(){if(fC)return dC;fC=1;const e=LC();return dC=(t,n,r)=>e(t,n,r)<0,dC}(),i=function(){if(hC)return pC;hC=1;const e=LC();return pC=(t,n,r)=>e(t,n,r)<=0,pC}();return mC=(a,l,s,c)=>{switch(l){case"===":return"object"==typeof a&&(a=a.version),"object"==typeof s&&(s=s.version),a===s;case"!==":return"object"==typeof a&&(a=a.version),"object"==typeof s&&(s=s.version),a!==s;case"":case"=":case"==":return e(a,s,c);case"!=":return t(a,s,c);case">":return n(a,s,c);case">=":return r(a,s,c);case"<":return o(a,s,c);case"<=":return i(a,s,c);default:throw new TypeError("Invalid operator: ".concat(l))}},mC}function IC(){if(xC)return yC;xC=1;const e=/\s+/g;class t{constructor(n,i){if(i=r(i),n instanceof t)return n.loose===!!i.loose&&n.includePrerelease===!!i.includePrerelease?n:new t(n.raw,i);if(n instanceof o)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease,this.raw=n.trim().replace(e," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&f)|(this.options.loose&&p))+":"+e,r=n.get(t);if(r)return r;const a=this.options.loose,m=a?l[s.HYPHENRANGELOOSE]:l[s.HYPHENRANGE];e=e.replace(m,R(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(l[s.COMPARATORTRIM],c),i("comparator trim",e),e=e.replace(l[s.TILDETRIM],u),i("tilde trim",e),e=e.replace(l[s.CARETTRIM],d),i("caret trim",e);let g=e.split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>_(e,this.options)));a&&(g=g.filter((e=>(i("loose invalid filter",e,this.options),!!e.match(l[s.COMPARATORLOOSE]))))),i("range list",g);const b=new Map,y=g.map((e=>new o(e,this.options)));for(const e of y){if(h(e))return[e];b.set(e.value,e)}b.size>1&&b.has("")&&b.delete("");const x=[...b.values()];return n.set(t,x),x}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>g(t,n)&&e.set.some((e=>g(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(L(this.set[t],e,this.options))return!0;return!1}}yC=t;const n=new(Bk?$k:(Bk=1,$k=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}})),r=Uk(),o=function(){if(bC)return vC;bC=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){const n=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],i=t.match(n);if(!i)throw new TypeError("Invalid comparator: ".concat(t));this.operator=void 0!==i[1]?i[1]:"","="===this.operator&&(this.operator=""),i[2]?this.semver=new l(i[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new l(t,this.options)}catch(e){return!1}return i(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new s(e.value,r).test(this.value):""===e.operator?""===e.value||new s(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(i(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(i(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}vC=t;const n=Uk(),{safeRe:r,t:o}=_C(),i=OC(),a=CC(),l=RC(),s=IC();return vC}(),i=CC(),a=RC(),{safeRe:l,t:s,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=_C(),{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:p}=kC(),h=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},v=(e,t)=>(i("comp",e,t),e=S(e,t),i("caret",e),e=y(e,t),i("tildes",e),e=E(e,t),i("xrange",e),e=C(e,t),i("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,y=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{const n=t.loose?l[s.TILDELOOSE]:l[s.TILDE];return e.replace(n,((t,n,r,o,a)=>{let l;return i("tilde",e,t,n,r,o,a),b(n)?l="":b(r)?l=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):b(o)?l=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):a?(i("replaceTilde pr",a),l=">=".concat(n,".").concat(r,".").concat(o,"-").concat(a," <").concat(n,".").concat(+r+1,".0-0")):l=">=".concat(n,".").concat(r,".").concat(o," <").concat(n,".").concat(+r+1,".0-0"),i("tilde return",l),l}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{i("caret",e,t);const n=t.loose?l[s.CARETLOOSE]:l[s.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,a,l)=>{let s;return i("caret",e,t,n,o,a,l),b(n)?s="":b(o)?s=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):b(a)?s="0"===n?">=".concat(n,".").concat(o,".0").concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".0").concat(r," <").concat(+n+1,".0.0-0"):l?(i("replaceCaret pr",l),s="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(a,"-").concat(l," <").concat(n,".").concat(o,".").concat(+a+1,"-0"):">=".concat(n,".").concat(o,".").concat(a,"-").concat(l," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(a,"-").concat(l," <").concat(+n+1,".0.0-0")):(i("no pr"),s="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(a).concat(r," <").concat(n,".").concat(o,".").concat(+a+1,"-0"):">=".concat(n,".").concat(o,".").concat(a).concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(a," <").concat(+n+1,".0.0-0")),i("caret return",s),s}))},E=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>k(e,t))).join(" ")),k=(e,t)=>{e=e.trim();const n=t.loose?l[s.XRANGELOOSE]:l[s.XRANGE];return e.replace(n,((n,r,o,a,l,s)=>{i("xRange",e,n,r,o,a,l,s);const c=b(o),u=c||b(a),d=u||b(l),f=d;return"="===r&&f&&(r=""),s=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(u&&(a=0),l=0,">"===r?(r=">=",u?(o=+o+1,a=0,l=0):(a=+a+1,l=0)):"<="===r&&(r="<",u?o=+o+1:a=+a+1),"<"===r&&(s="-0"),n="".concat(r+o,".").concat(a,".").concat(l).concat(s)):u?n=">=".concat(o,".0.0").concat(s," <").concat(+o+1,".0.0-0"):d&&(n=">=".concat(o,".").concat(a,".0").concat(s," <").concat(o,".").concat(+a+1,".0-0")),i("xRange return",n),n}))},C=(e,t)=>(i("replaceStars",e,t),e.trim().replace(l[s.STAR],"")),_=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),R=e=>(t,n,r,o,i,a,l,s,c,u,d,f)=>(n=b(r)?"":b(o)?">=".concat(r,".0.0").concat(e?"-0":""):b(i)?">=".concat(r,".").concat(o,".0").concat(e?"-0":""):a?">=".concat(n):">=".concat(n).concat(e?"-0":""),s=b(c)?"":b(u)?"<".concat(+c+1,".0.0-0"):b(d)?"<".concat(c,".").concat(+u+1,".0-0"):f?"<=".concat(c,".").concat(u,".").concat(d,"-").concat(f):e?"<".concat(c,".").concat(u,".").concat(+d+1,"-0"):"<=".concat(s),"".concat(n," ").concat(s).trim()),L=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(i(e[n].semver),e[n].semver!==o.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return yC}var TC=function(){if(wC)return SC;wC=1;const e=IC();return SC=(t,n,r)=>{try{n=new e(n,r)}catch(e){return!1}return n.test(t)},SC}(),PC=r(TC);const MC={};function qC(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:i}=o,a={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&i&&i.deps&&i.deps.properties)||PC(e,i.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!MC[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);MC[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 Aw("Failed to load visualization: '".concat(n,"'"),e)}))}return MC[i]}(a.name,a.version,t,o.load).then((e=>(n=n||Ok(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=f({qInfo:{qType:a.name},visualization:a.name,version:a.version,showTitles:!0},JSON.parse(r));return t?(pe(!0,n,e),n):f(f({},n),e)}))}};return a}function DC(e,t){const n={};let r=null;return{get:e=>n[e],register:(o,i)=>{if(n[o])throw new Error("Supernova '".concat(e,"@").concat(o,"' already registered."));n[o]=qC({name:e,version:o},t,i),r=null},getMatchingVersionFromProperties:e=>{r||(r=function(e){const t=e.filter((e=>"undefined"===e));return[...t,...e.filter((e=>"undefined"!==e)).map((e=>e.split(".").map((e=>parseInt(e,10))))).sort(((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2])).map((e=>e.join(".")))]}(Object.keys(n)));for(let t=r.length-1;t>=0;t--){if(n[r[t]].supportsPropertiesVersion(e))return r[t]}return null},versions:n}}function NC(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=DC(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>{if(r[e])return r[e].getMatchingVersionFromProperties(t)},get(e){const{name:t}=e;let{version:n}=e;if(r[t]){if(!r[t].versions[n]){n=Object.keys(r[t].versions)[0]}}else this.register({name:t,version:n});return r[t].get(n)||o.get(e)},getList:()=>Object.keys(r).map((e=>({name:e,versions:Object.keys(r[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{r[e]&&(r[e]=void 0),function(e){Object.keys(MC).forEach((t=>{t.split("__")[0]===e&&(MC[t]=void 0)}))}(e)}}}const AC={context:{},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0,CLIENT_IM_3365:!0},snapshot:{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()))}},zC={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table",navigation:void 0};AC.context=zC;const jC=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f(f({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},FC=function(){return[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]].filter(((e,t,n)=>n.indexOf(e)===t))};var $C=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=R(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let i=f(f({},t.context),{},{translator:n.translator});const[a,l]=Xs({app:e,context:i}),s=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=$e();return{setTheme:async o=>{let i=e.filter((e=>e.id===o))[0],a="dark"===o?"dark":"light";if(!i&&t&&(i={load:t}),i&&i.load)try{const e=await Promise.race([i.load(o),Be(We,{__timedOut:!0})]);e.__timedOut||(a="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(a))}catch(e){}else r.internalAPI.setTheme({type:a},o),n.setMuiThemeName(a)},externalAPI:r.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:a});i.themeApi=s.externalAPI;const c={galaxy:{translator:n.translator,theme:s.externalAPI,flags:uE(t.flags),deviceType:He(t.context.deviceType),hostConfig:t.hostConfig,anything:t.anything},theme:s.externalAPI,translator:n.translator,nebbie:null},u={app:e,root:a,config:t,public:c,context:i,types:null},d=NC({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),h=null,m=null;const g={render:async e=>(await p,e.id?Fk(e,u,l):async function(e,t,n){let{type:r,version:o,fields:i,properties:a,options:l,plugins:s,element:c,extendProperties:u,navigation:d,onRender:f,onError:p}=e,h={};const m=[],{modelStore:g,subscribe:v}=n;let b;try{const e=t.types.get({name:r,version:o});h=await e.initialProperties(a,u);const n=await e.supernova();i&&await LS({sn:n,properties:h,fields:i,children:m},t),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},h)}catch(e){b=e,h={qInfo:{qType:r},visualization:r}}const y=await t.app.createSessionObject(h);m.length>0&&await y.setFullPropertyTree({qProperty:h,qChildren:m}),g.set(y.id,y);const x=v(y);return Mk(y,{options:l,plugins:s,element:c,onRender:f,onError:p},t,d,b,(async()=>{await t.app.destroySessionObject(y.id),x()}))}(e,u,l)),destroy:async()=>{a.destroy()},create:async e=>qk(e,u,!1,l),generateProperties:async e=>qk(e,u,!0,l),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==i[n]&&(t||(t={}),t[n]=e[n])})),t&&(i=f(f(f({},i),t),{},{translator:n.translator}),t.theme&&(p=s.setTheme(t.theme),await p),t.language&&u.public.translator.language(t.language),a.context(i))},selections:async()=>(h||(h={mount(t){m||(m=function(e){let{element:t,app:n}=e;return Zl.createPortal(S.createElement(Ox,{app:n}),t,Lx())}({element:t,app:e}),a.add(m))},unmount(){m&&(a.remove(m),m=null)}}),h),field:async t=>{let n;const r="string"==typeof t?t:t.qLibraryId;if(t.qId)n=t.qId;else if(!r)throw new Error("Field identifier or object id must be provided");const o={fieldName:r,async mount(i){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i)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 s=()=>o.emit("selectionActivated"),c=()=>o.emit("selectionDeactivated");return new Promise((r=>{[this._instance,this._ref]=function(e){let{element:t,app:n,fieldIdentifier:r,qId:o,stateName:i="$",options:a={},renderedCallback:l}=e;const s=S.createRef();return[Zl.createPortal(S.createElement(hS,{ref:s,app:n,element:t,fieldIdentifier:r,qId:o,stateName:i,initialOptions:a,renderedCallback:l}),t,Lx()),s]}({element:i,app:e,fieldIdentifier:t,qId:n,options:pS(f({onSelectionActivated:s,onSelectionDeactivated:c},l)),stateName:l.stateName||"$",renderedCallback:r}),a.add(this._instance)}))},unmount(){this._instance&&(a.remove(this._instance),this._instance=null,this._ref=null)},__DO_NOT_USE__:{options(e){var t;const n=()=>o.emit("selectionActivated"),r=()=>o.emit("selectionDeactivated");if(null!==(t=o._ref)&&void 0!==t&&t.current){const t=pS(f({onSelectionActivated:n,onSelectionDeactivated:r},e));o._ref.current.setOptions(t)}}}};return ib(o),o},getRegisteredTypes:d.getList,__DO_NOT_USE__:{types:d,popover(t,n,r){g._popoverInstance&&(a.remove(g._popoverInstance),g._popoverInstance=null);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=f({},mS);return pe(!0,t,e),t}(f({onPopoverClose:()=>g.emit("fieldPopoverClose")},r));g._popoverInstance=S.createElement(gS,{element:t,key:Lx(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),a.add(g._popoverInstance)}}};return u.public.nebbie=g,u.types=d,ib(g),g}return r.createConfiguration=n=>e(((e,t)=>({context:jC(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:f({},t.snapshot||e.snapshot),types:FC(e.types,t.types),themes:FC(e.themes,t.themes),flags:jC(e.flags,t.flags),hostConfig:t.hostConfig||e.hostConfig,anything:jC(e.anything,t.anything)}))(t,n)),r.config=t,r}(AC);function BC(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const WC=globalThis.crypto||{getRandomValues:()=>123456};function HC(e){return t=>{const n=pe({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^WC.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=n._mock;let o=n;return r&&(delete n._mock,o=pe({},n,r)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(n),getEffectiveProperties:()=>Promise.resolve(n),removeListener:()=>{},id:n.qInfo.qId,properties:n,session:e})}}const UC=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},VC=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=UC(e,{defaultValue:t,args:i});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},GC=["id","session"],KC=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function ZC(e){return!KC.includes(e)}function JC(e){const t=UC(e.getLayout);return t.qInfo&&t.qInfo.qId}function XC(e,t){return e.reduce(((e,n)=>f(f({},e),function(e,t){let n=JC(e);const{delay:r}=t,{id:o,session:i}=e,a=p(e,GC);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]:f(f({id:n,session:UC(i,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{}},Object.entries(a).reduce(((e,t)=>{let[n,o]=t;return f(f({},e),{},{[n]:VC(o,{async:ZC(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function YC(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!JC(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function QC(){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(YC);const n=XC(e,t);return async e=>Promise.resolve(n[e])}function e_(){return()=>Promise.resolve({id:"app-layout"})}const t_={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new BC,r=new HC(n),o=new QC(e,t),i=new e_,a={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,destroySessionObject:async()=>{},getObject:o,getAppLayout:i,getListObject:async e=>{var t;return o(null===(t=e.qInfo)||void 0===t?void 0:t.qId)}};return Promise.resolve(a)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},n_={generator:Ok,hook:uk,theme:$e,locale:E};e.EnigmaMocker=t_,e.__DO_NOT_USE__=n_,e.conversion=BS,e.embed=$C,e.onContextMenu=function(e){const t=lk(++JE);t.value||(t.value=1,ZE.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=lk(++JE);t.value||(t.value=1,ZE.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=dk({action(){n._config.action.call(null)}});return n.component||(n.component=ZE,ZE.__hooks.actions.list.push(n)),hk((()=>{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=sk("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return sk("appLayout")},e.useConstraints=function(){return sk("constraints")},e.useDeviceType=function(){return sk("deviceType")},e.useEffect=fk,e.useElement=mk,e.useEmbed=function(){return sk("nebbie")},e.useEmitter=function(){return sk("emitter")},e.useGlobal=function(){const e=sk("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=lk(++JE);if(n.imperative||(n.imperative=!0),XE(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],ZE.__hooks.imperativeHandle=r}},e.useInteractionState=function(){return sk("interactions")},e.useKeyboard=function(){const e=sk("keyboardNavigation"),t=sk("focusHandler");if(!ZE.__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&&(vk(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(ZE);ZE.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),gk(this))}.bind(ZE);ZE.__hooks.accessibility.focusFunction=n;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(ZE);ZE.__hooks.accessibility.focusSelectionFunction=r}const n=ZE.__hooks.accessibility.focusFunction,r=ZE.__hooks.accessibility.exitFunction,o=ZE.__hooks.accessibility.focusSelectionFunction,[i,a]=dk({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return ZE.__hooks.accessibility.setter=a,ZE.__hooks.accessibility.enabled=e,fk((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i},e.useLayout=function(){return sk("layout")},e.useMemo=hk,e.useModel=function(){const e=sk("model");return e&&e.session?e:void 0},e.useNavigation=function(){return sk("navigation")},e.useOptions=function(){return sk("options")},e.usePlugins=function(){return sk("plugins")},e.usePromise=function(e,t){const[n,r]=dk((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=lk(++JE);return o.component||(o.component=ZE),pk((()=>{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=mk(),t=ZE.__hooks.resizer,[n,r]=dk((()=>{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()),pk((()=>{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.useRef=function(e){return hk((()=>({current:e})),[])},e.useRenderState=function(){lk(++JE);const e=ZE.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return sk("selections")},e.useStaleLayout=function(){const e=sk("layout"),[t]=dk({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=dk,e.useTheme=function(){return sk("theme")},e.useTranslator=function(){return sk("translator")}}));
134
132
  //# sourceMappingURL=stardust.js.map