@nebula.js/stardust 3.1.0-alpha.0 → 3.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/esm/dev.js +1938 -3253
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +4 -4
- package/core/esm/index.js.map +1 -1
- package/core/package.json +4 -4
- package/dist/stardust.dev.js +6327 -8460
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +14 -14
- package/dist/stardust.js.map +1 -1
- package/package.json +15 -15
- package/types/index.d.ts +43 -43
package/core/esm/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v3.1.0-alpha.
|
|
2
|
+
* @nebula.js/stardust v3.1.0-alpha.2
|
|
3
3
|
* Copyright (c) 2022 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import*as e from"react";import t,{useState as n,useEffect as r,useReducer as o,forwardRef as i,useMemo as a,useImperativeHandle as s,useCallback as l,useLayoutEffect as c,createElement as u,PureComponent as p,useRef as d,useContext as f}from"react";import h from"react-dom";import{CacheProvider as m,ThemeContext as g}from"@emotion/react";import{Checkbox as y,Radio as b,Grid as v,Typography as E,FormControlLabel as C,IconButton as x,Popover as L,MenuList as S,MenuItem as w,ListItemIcon as O,Divider as q,OutlinedInput as R,InputAdornment as I,Badge as k,List as _,ListItem as A,Button as T,Box as D,Icon as P,CircularProgress as N,Paper as M}from"@mui/material";import j from"@emotion/styled";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function z(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function F(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 B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){H(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function H(e,t,n){return 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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U.apply(this,arguments)}function W(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}!function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new R(r||[]);return i._invoke=function(e,t,n){var r=p;return function(o,i){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return k()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var l=u(e,t,n);if("normal"===l.type){if(r=n.done?h:d,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var p="suspendedStart",d="suspendedYield",f="executing",h="completed",m={};function g(){}function y(){}function b(){}var v={};l(v,i,(function(){return this}));var E=Object.getPrototypeOf,C=E&&E(E(I([])));C&&C!==n&&r.call(C,i)&&(v=C);var x=b.prototype=g.prototype=Object.create(v);function L(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,w(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=u(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function q(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function I(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:k}}function k(){return{value:t,done:!0}}return y.prototype=b,l(x,"constructor",b),l(b,"constructor",y),y.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},L(S.prototype),l(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},L(x),l(x,s,"Generator"),l(x,i,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=I,R.prototype={constructor:R,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(q),!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 s.type="throw",s.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],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),q(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;q(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});const $=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,((e,t)=>void 0!==n[t]?n[t]:e))};function V(){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?$(i,o):i}};return o}const G=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=V({initial:e,fallback:t});return{translator:n}};var K={Cancel:{id:"Cancel",locale:{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},CurrentSelections_All:{id:"CurrentSelections.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},CurrentSelections_Of:{id:"CurrentSelections.Of",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},Listbox_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_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_Unlock:{id:"Listbox.Unlock",locale:{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},Menu_More:{id:"Menu.More",locale:{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},Navigate_Back:{id:"Navigate.Back",locale:{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},Navigate_Forward:{id:"Navigate.Forward",locale:{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},OK:{id:"OK",locale:{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},Object_Update_Active:{id:"Object.Update.Active",locale:{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},Object_Update_Cancelled:{id:"Object.Update.Cancelled",locale:{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},Retry:{id:"Retry",locale:{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},Selection_Cancel:{id:"Selection.Cancel",locale:{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},Selection_Clear:{id:"Selection.Clear",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},Selection_ClearAll:{id:"Selection.ClearAll",locale:{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},Selection_ClearAllStates:{id:"Selection.ClearAllStates",locale:{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},Selection_Confirm:{id:"Selection.Confirm",locale:{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},Selection_Menu:{id:"Selection.Menu",locale:{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":'Меню "Выборка"',"sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},Selection_SelectAll:{id:"Selection.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},Selection_SelectAlternative:{id:"Selection.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},Selection_SelectExcluded:{id:"Selection.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},Selection_SelectPossible:{id:"Selection.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},Visualization_Incomplete:{id:"Visualization.Incomplete",locale:{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},Visualization_Incomplete_Dimensions:{id:"Visualization.Incomplete.Dimensions",locale:{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},Visualization_Incomplete_Measures:{id:"Visualization.Incomplete.Measures",locale:{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},Visualization_Invalid_Dimension:{id:"Visualization.Invalid.Dimension",locale:{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},Visualization_Invalid_Measure:{id:"Visualization.Invalid.Measure",locale:{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},Visualization_LayoutError:{id:"Visualization.LayoutError",locale:{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},Visualization_UnfulfilledCalculationCondition:{id:"Visualization.UnfulfilledCalculationCondition",locale:{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}},Listbox_ScreenReaderInstructions:{id:"Listbox.ScreenReaderInstructions",locale:{"en-US":"Activating the elements below will cause content on the page to be updated"}},Listbox_Search_ScreenReaderInstructions:{id:"Listbox.Search.ScreenReaderInstructions",locale:{"en-US":"The following search field filters results below as you type"}},Listbox_ResultFilterLabel:{id:"Listbox.ResultFilterLabel",locale:{"en-US":"Search Results Filter"}}};function Z(e){const t=G({initial:e});return Object.keys(K).forEach((e=>{t.translator.add(K[e])})),{translator:t.translator}}var X={};function J(){J.init.call(this)}X.isObject=function(e){return"object"==typeof e&&null!==e},X.isNumber=function(e){return"number"==typeof e},X.isUndefined=function(e){return void 0===e},X.isFunction=function(e){return"function"==typeof e};var Y=J;function Q(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ee(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function te(){}J.EventEmitter=J,J.prototype._events=void 0,J.prototype._maxListeners=void 0,J.defaultMaxListeners=10,J.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},J.prototype.setMaxListeners=function(e){if(!X.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},J.prototype.emit=function(e){var t,n,r,o,i,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],X.isUndefined(n))return!1;if(X.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(X.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},J.prototype.addListener=function(e,t){var n;if(!X.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,X.isFunction(t.listener)?t.listener:t),this._events[e]?X.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,X.isObject(this._events[e])&&!this._events[e].warned)&&((n=X.isUndefined(this._maxListeners)?J.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,X.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),X.isFunction(console.trace)&&console.trace()));return this},J.prototype.on=J.prototype.addListener,J.prototype.once=function(e,t){if(!X.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},J.prototype.removeListener=function(e,t){var n,r,o,i;if(!X.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||X.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(X.isObject(n)){for(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},J.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],X.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},J.prototype.listeners=function(e){return this._events&&this._events[e]?X.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},J.listenerCount=function(e,t){return e._events&&e._events[t]?X.isFunction(e._events[t])?1:e._events[t].length:0};var ne=1/.7,re="\\s*([+-]?\\d+)\\s*",oe="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ie="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ae=/^#([0-9a-f]{3,8})$/,se=new RegExp("^rgb\\("+[re,re,re]+"\\)$"),le=new RegExp("^rgb\\("+[ie,ie,ie]+"\\)$"),ce=new RegExp("^rgba\\("+[re,re,re,oe]+"\\)$"),ue=new RegExp("^rgba\\("+[ie,ie,ie,oe]+"\\)$"),pe=new RegExp("^hsl\\("+[oe,ie,ie]+"\\)$"),de=new RegExp("^hsla\\("+[oe,ie,ie,oe]+"\\)$"),fe={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 he(){return this.rgb().formatHex()}function me(){return this.rgb().formatRgb()}function ge(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ae.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ye(t):3===n?new Ce(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?be(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?be(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=se.exec(e))?new Ce(t[1],t[2],t[3],1):(t=le.exec(e))?new Ce(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ce.exec(e))?be(t[1],t[2],t[3],t[4]):(t=ue.exec(e))?be(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=pe.exec(e))?we(t[1],t[2]/100,t[3]/100,1):(t=de.exec(e))?we(t[1],t[2]/100,t[3]/100,t[4]):fe.hasOwnProperty(e)?ye(fe[e]):"transparent"===e?new Ce(NaN,NaN,NaN,0):null}function ye(e){return new Ce(e>>16&255,e>>8&255,255&e,1)}function be(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ce(e,t,n,r)}function ve(e){return e instanceof te||(e=ge(e)),e?new Ce((e=e.rgb()).r,e.g,e.b,e.opacity):new Ce}function Ee(e,t,n,r){return 1===arguments.length?ve(e):new Ce(e,t,n,null==r?1:r)}function Ce(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function xe(){return"#"+Se(this.r)+Se(this.g)+Se(this.b)}function Le(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function Se(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function we(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new qe(e,t,n,r)}function Oe(e){if(e instanceof qe)return new qe(e.h,e.s,e.l,e.opacity);if(e instanceof te||(e=ge(e)),!e)return new qe;if(e instanceof qe)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,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new qe(a,s,l,e.opacity)}function qe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Re(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Q(te,ge,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:he,formatHex:he,formatHsl:function(){return Oe(this).formatHsl()},formatRgb:me,toString:me}),Q(Ce,Ee,ee(te,{brighter:function(e){return e=null==e?ne:Math.pow(ne,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:xe,formatHex:xe,formatRgb:Le,toString:Le})),Q(qe,(function(e,t,n,r){return 1===arguments.length?Oe(e):new qe(e,t,n,null==r?1:r)}),ee(te,{brighter:function(e){return e=null==e?ne:Math.pow(ne,e),new qe(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new qe(this.h,this.s,this.l*e,this.opacity)},rgb:function(){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 Ce(Re(e>=240?e-240:e+120,o,r),Re(e,o,r),Re(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var Ie=Object.prototype.hasOwnProperty,ke=Object.prototype.toString,_e=Object.defineProperty,Ae=Object.getOwnPropertyDescriptor,Te=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ke.call(e)},De=function(e){if(!e||"[object Object]"!==ke.call(e))return!1;var t,n=Ie.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Ie.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Ie.call(e,t)},Pe=function(e,t){_e&&"__proto__"===t.name?_e(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Ne=function(e,t){if("__proto__"===t){if(!Ie.call(e,t))return;if(Ae)return Ae(e,t).value}return e[t]},Me=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=Ne(s,n),s!==(o=Ne(t,n))&&(u&&o&&(De(o)||(i=Te(o)))?(i?(i=!1,a=r&&Te(r)?r:[]):a=r&&De(r)?r:{},Pe(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&Pe(s,{name:n,newValue:o}));return s},je={fontSize:"13px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},scales:[{name:"Sequential Gradient",translation:"properties.colorScheme.sequential",type:"gradient",propertyValue:"sg",scale:["#26a0a7","#c7ea8b"]},{name:"Sequential Classes",translation:"properties.colorScheme.sequentialC",propertyValue:"sc",type:"class",scale:["#26a0a7","#c7ea8b"]},{name:"Diverging gradient",translation:"properties.colorScheme.diverging",propertyValue:"dg",type:"gradient",scale:["#26a0a7","#c3ea8c","#ec983d"]},{name:"Diverging Classes",translation:"properties.colorScheme.divergingC",propertyValue:"dc",type:"class",scale:["#26a0a7","#c3ea8c","#ec983d"]}],palettes:{data:[{name:"12 Colors",translation:"properties.colorNumberOfColors.12",propertyValue:"12",type:"pyramid",scale:[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],ui:[{name:"Palette",colors:["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}},ze={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"light",color:"@B35"},Fe={_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"};class Be{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=ge(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([ge(e),ge(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],s=i[1];if(e===this.min)return s;if(e===this.max)return a;const l=function(e,t,n){return Ee(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,s,r-o);return l}}function He(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Ue(e,t,n){const r=[],o=new Be(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 We(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=He(1/t*o,t,n);i=e.getColor(r);break}}r.push(ge(i).formatHex())}return r}function $e(e,t,n){const r=Ue(e,n,!0),o=Ue(We(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(We(o,e,t));return i}function Ve(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 Ge(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 Ke(e,t,n,r){let o;if(""===e)o=Ve(null,n);else{o=Ve(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=Ge(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function Ze(e,t){const n=e.split(".");return{getStyle:(e,r)=>Ke(e,r,n.concat(),t)}}function Xe(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?Xe(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function Je(e){const t=ge(e).rgb(),{r:n,g:r,b:o}=t,[i,a,s]=[n,r,o].map((e=>e/255)),[l,c,u]=[i,a,s].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*l+.7152*c+.0722*u).toFixed(5)}function Ye(e,t){return+((Math.max(e,t)+.05)/(Math.min(e,t)+.05)).toFixed(5)}Ze.resolveRawTheme=e=>{const t=Me(!0,{},e);return Xe(t,t._variables),t.scales&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#d2d2d2";e.forEach((e=>{if("class"===e.type){const n=$e(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}(t.scales,t.dataColors&&t.dataColors.nullColor),t};function Qe(){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]=Ze(t,e)),r[t].getStyle(n,o)),validateColor(){const e=ge(...arguments);return e?e.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?Fe:ze,r=Me(!0,{},je,n),o=Me(!0,{},r,{scales:null,palettes:{data:null,ui:null}},e);return o.palettes.data&&o.palettes.data.length||(o.palettes.data=r.palettes.data),o.palettes.ui&&o.palettes.ui.length||(o.palettes.ui=r.palettes.ui),o.scales&&o.scales.length||(o.scales=r.scales),t(o)}(i,Ze.resolveRawTheme),r={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})})),t},dataPalettes(){const t=[];return e.palettes.data.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})})),t},uiPalettes(){const t=[];return e.palettes.ui.forEach((e=>{t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:e.colors})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e){return e.index<0||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)}}}(e);const s=o.getStyle("","","color"),l=Je(s);n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(Je);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const i=Je(o),a=r.map((e=>Ye(i,e))),s=e[a.indexOf(Math.max(...a))];t[o]=s,n++}return t[o]}}}([s,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(Y.prototype).forEach((e=>{o[e]=Y.prototype[e]})),Y.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const et=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)}));function tt(){let{themes:e=[],root:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Qe(),r=async r=>{const o=e.filter((e=>e.id===r))[0];let i="dark"===r?"dark":"light";if(o&&o.load)try{const e=await Promise.race([o.load(),et(5e3,{__timedOut:!0})]);e.__timedOut||(i="dark"===e.type?"dark":"light",n.internalAPI.setTheme(e,r),t.setMuiThemeName(i))}catch(e){}else n.internalAPI.setTheme({type:i},r),t.setMuiThemeName(i)};return{setTheme:r,externalAPI:n.externalAPI}}function nt(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"}function rt(){return rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rt.apply(this,arguments)}function ot(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var it=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),at="-ms-",st="-moz-",lt="-webkit-",ct=Math.abs,ut=String.fromCharCode,pt=Object.assign;function dt(e){return e.trim()}function ft(e,t,n){return e.replace(t,n)}function ht(e,t){return e.indexOf(t)}function mt(e,t){return 0|e.charCodeAt(t)}function gt(e,t,n){return e.slice(t,n)}function yt(e){return e.length}function bt(e){return e.length}function vt(e,t){return t.push(e),e}var Et=1,Ct=1,xt=0,Lt=0,St=0,wt="";function Ot(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Et,column:Ct,length:a,return:""}}function qt(e,t){return pt(Ot("",null,null,"",null,null,0),e,{length:-e.length},t)}function Rt(){return St=Lt>0?mt(wt,--Lt):0,Ct--,10===St&&(Ct=1,Et--),St}function It(){return St=Lt<xt?mt(wt,Lt++):0,Ct++,10===St&&(Ct=1,Et++),St}function kt(){return mt(wt,Lt)}function _t(){return Lt}function At(e,t){return gt(wt,e,t)}function Tt(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 Dt(e){return Et=Ct=1,xt=yt(wt=e),Lt=0,[]}function Pt(e){return wt="",e}function Nt(e){return dt(At(Lt-1,zt(91===e?e+2:40===e?e+1:e)))}function Mt(e){for(;(St=kt())&&St<33;)It();return Tt(e)>2||Tt(St)>3?"":" "}function jt(e,t){for(;--t&&It()&&!(St<48||St>102||St>57&&St<65||St>70&&St<97););return At(e,_t()+(t<6&&32==kt()&&32==It()))}function zt(e){for(;It();)switch(St){case e:return Lt;case 34:case 39:34!==e&&39!==e&&zt(St);break;case 40:41===e&&zt(e);break;case 92:It()}return Lt}function Ft(e,t){for(;It()&&e+St!==57&&(e+St!==84||47!==kt()););return"/*"+At(t,Lt-1)+"*"+ut(47===e?e:It())}function Bt(e){for(;!Tt(kt());)It();return At(e,Lt)}function Ht(e){return Pt(Ut("",null,null,null,[""],e=Dt(e),0,[0],e))}function Ut(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,p=a,d=0,f=0,h=0,m=1,g=1,y=1,b=0,v="",E=o,C=i,x=r,L=v;g;)switch(h=b,b=It()){case 40:if(108!=h&&58==L.charCodeAt(p-1)){-1!=ht(L+=ft(Nt(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:L+=Nt(b);break;case 9:case 10:case 13:case 32:L+=Mt(h);break;case 92:L+=jt(_t()-1,7);continue;case 47:switch(kt()){case 42:case 47:vt($t(Ft(It(),_t()),t,n),l);break;default:L+="/"}break;case 123*m:s[c++]=yt(L)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:f>0&&yt(L)-p&&vt(f>32?Vt(L+";",r,n,p-1):Vt(ft(L," ","")+";",r,n,p-2),l);break;case 59:L+=";";default:if(vt(x=Wt(L,t,n,c,u,o,s,v,E=[],C=[],p),i),123===b)if(0===u)Ut(L,t,x,x,E,i,p,s,C);else switch(d){case 100:case 109:case 115:Ut(e,x,x,r&&vt(Wt(e,x,x,0,0,o,s,v,o,E=[],p),C),o,C,p,s,r?E:C);break;default:Ut(L,x,x,x,[""],C,0,s,C)}}c=u=f=0,m=y=1,v=L="",p=a;break;case 58:p=1+yt(L),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Rt())continue;switch(L+=ut(b),b*m){case 38:y=u>0?1:(L+="\f",-1);break;case 44:s[c++]=(yt(L)-1)*y,y=1;break;case 64:45===kt()&&(L+=Nt(It())),d=kt(),u=p=yt(v=L+=Bt(_t())),b++;break;case 45:45===h&&2==yt(L)&&(m=0)}}return i}function Wt(e,t,n,r,o,i,a,s,l,c,u){for(var p=o-1,d=0===o?i:[""],f=bt(d),h=0,m=0,g=0;h<r;++h)for(var y=0,b=gt(e,p+1,p=ct(m=a[h])),v=e;y<f;++y)(v=dt(m>0?d[y]+" "+b:ft(b,/&\f/g,d[y])))&&(l[g++]=v);return Ot(e,t,n,0===o?"rule":s,l,c,u)}function $t(e,t,n){return Ot(e,t,n,"comm",ut(St),gt(e,2,-2),0)}function Vt(e,t,n,r){return Ot(e,t,n,"decl",gt(e,0,r),gt(e,r+1,-1),r)}function Gt(e,t){switch(function(e,t){return(((t<<2^mt(e,0))<<2^mt(e,1))<<2^mt(e,2))<<2^mt(e,3)}(e,t)){case 5103:return lt+"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 lt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return lt+e+st+e+at+e+e;case 6828:case 4268:return lt+e+at+e+e;case 6165:return lt+e+at+"flex-"+e+e;case 5187:return lt+e+ft(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return lt+e+at+"flex-item-"+ft(e,/flex-|-self/,"")+e;case 4675:return lt+e+at+"flex-line-pack"+ft(e,/align-content|flex-|-self/,"")+e;case 5548:return lt+e+at+ft(e,"shrink","negative")+e;case 5292:return lt+e+at+ft(e,"basis","preferred-size")+e;case 6060:return lt+"box-"+ft(e,"-grow","")+lt+e+at+ft(e,"grow","positive")+e;case 4554:return lt+ft(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return ft(ft(ft(e,/(zoom-|grab)/,lt+"$1"),/(image-set)/,lt+"$1"),e,"")+e;case 5495:case 3959:return ft(e,/(image-set\([^]*)/,lt+"$1$`$1");case 4968:return ft(ft(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+lt+e+e;case 4095:case 3583:case 4068:case 2532:return ft(e,/(.+)-inline(.+)/,lt+"$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(yt(e)-1-t>6)switch(mt(e,t+1)){case 109:if(45!==mt(e,t+4))break;case 102:return ft(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+st+(108==mt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ht(e,"stretch")?Gt(ft(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==mt(e,t+1))break;case 6444:switch(mt(e,yt(e)-3-(~ht(e,"!important")&&10))){case 107:return ft(e,":",":"+lt)+e;case 101:return ft(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+lt+(45===mt(e,14)?"inline-":"")+"box$3$1"+lt+"$2$3$1"+at+"$2box$3")+e}break;case 5936:switch(mt(e,t+11)){case 114:return lt+e+at+ft(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lt+e+at+ft(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lt+e+at+ft(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return lt+e+at+e+e}return e}function Kt(e,t){for(var n="",r=bt(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Zt(e,t,n,r){switch(e.type){case"@import":case"decl":return e.return=e.return||e.value;case"comm":return"";case"@keyframes":return e.return=e.value+"{"+Kt(e.children,r)+"}";case"rule":e.value=e.props.join(",")}return yt(n=Kt(e.children,r))?e.return=e.value+"{"+n+"}":""}function Xt(e){var t=bt(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}var Jt=function(e,t,n){for(var r=0,o=0;r=o,o=kt(),38===r&&12===o&&(t[n]=1),!Tt(o);)It();return At(e,Lt)},Yt=function(e,t){return Pt(function(e,t){var n=-1,r=44;do{switch(Tt(r)){case 0:38===r&&12===kt()&&(t[n]=1),e[n]+=Jt(Lt-1,t,n);break;case 2:e[n]+=Nt(r);break;case 4:if(44===r){e[++n]=58===kt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=ut(r)}}while(r=It());return e}(Dt(e),t))},Qt=new WeakMap,en=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)||Qt.get(n))&&!r){Qt.set(e,!0);for(var o=[],i=Yt(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},tn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},nn="undefined"!=typeof document,rn=nn?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(){var e={};return function(t){return e[t]}}))})),on=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=Gt(e.value,e.length);break;case"@keyframes":return Kt([qt(e,{value:ft(e.value,"@","@"+lt)})],r);case"rule":if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Kt([qt(e,{props:[ft(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Kt([qt(e,{props:[ft(t,/:(plac\w+)/,":-webkit-input-$1")]}),qt(e,{props:[ft(t,/:(plac\w+)/,":-moz-$1")]}),qt(e,{props:[ft(t,/:(plac\w+)/,at+"input-$1")]})],r)}return""}))}}],an=function(e){var t=e.key;if(nn&&"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||on,a={},s=[];nn&&(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;s.push(e)})));var l,c=[en,tn];if(nn){var u,p=[Zt,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],d=Xt(c.concat(i,p));o=function(e,t,n,r){u=n,Kt(Ht(e?e+"{"+t.styles+"}":t.styles),d),r&&(y.inserted[t.name]=!0)}}else{var f=[Zt],h=Xt(c.concat(i,f)),m=rn(i)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=Kt(Ht(e?e+"{"+t.styles+"}":t.styles),h)),m[n]};o=function(e,t,n,r){var o=t.name,i=g(e,t);return void 0===y.compat?(r&&(y.inserted[o]=!0),i):r?void(y.inserted[o]=i):i}}var y={key:t,sheet:new it({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 y.sheet.hydrate(s),y},sn={exports:{}},ln={},cn=t,un=Symbol.for("react.element"),pn=Symbol.for("react.fragment"),dn=Object.prototype.hasOwnProperty,fn=cn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,hn={key:!0,ref:!0,__self:!0,__source:!0};function mn(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)dn.call(t,r)&&!hn.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:un,type:e,key:i,ref:a,props:o,_owner:fn.current}}ln.Fragment=pn,ln.jsx=mn,ln.jsxs=mn,sn.exports=ln;const gn=an({key:"css",prepend:!0});function yn(e){const{injectFirst:t,children:n}=e;return t?sn.exports.jsx(m,{value:gn,children:n}):n}
|
|
8
|
-
/** @license MUI v5.10.
|
|
7
|
+
import*as e from"react";import t,{useState as n,useEffect as r,useReducer as o,forwardRef as i,useMemo as a,useImperativeHandle as s,useCallback as l,useLayoutEffect as c,createElement as u,PureComponent as p,useRef as d,useContext as f}from"react";import h from"react-dom";import{CacheProvider as m,ThemeContext as g}from"@emotion/react";import{Checkbox as y,Radio as b,Grid as v,Typography as E,FormControlLabel as C,IconButton as x,Popover as L,MenuList as S,MenuItem as w,ListItemIcon as O,Divider as q,OutlinedInput as R,InputAdornment as k,Badge as I,List as _,ListItem as T,Button as A,Box as D,Icon as P,CircularProgress as N,Paper as M}from"@mui/material";import j from"@emotion/styled";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function z(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function F(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 B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){H(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function H(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function 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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U.apply(this,arguments)}function W(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}!function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),s=new k(r||[]);return o(a,"_invoke",{value:w(e,n,s)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d="suspendedStart",f="executing",h="completed",m={};function g(){}function y(){}function b(){}var v={};c(v,a,(function(){return this}));var E=Object.getPrototypeOf,C=E&&E(E(I([])));C&&C!==n&&r.call(C,a)&&(v=C);var x=b.prototype=g.prototype=Object.create(v);function L(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,s){var l=p(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.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 w(e,t,n){var r=d;return function(o,i){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var l=p(e,t,n);if("normal"===l.type){if(r=n.done?h:"suspendedYield",l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,n.method="throw",n.arg=l.arg)}}}function O(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,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=p(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function q(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 R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(q,this),this.reset(!0)}function I(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}return{next:_}}function _(){return{value:t,done:!0}}return y.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},L(S.prototype),c(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},L(x),c(x,l,"Generator"),c(x,a,(function(){return this})),c(x,"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=I,k.prototype={constructor:k,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(R),!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 s.type="throw",s.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],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),R(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;R(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});const $=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,((e,t)=>void 0!==n[t]?n[t]:e))};function V(){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?$(i,o):i}};return o}const G=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=V({initial:e,fallback:t});return{translator:n}};var K={Cancel:{id:"Cancel",locale:{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},CurrentSelections_All:{id:"CurrentSelections.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},CurrentSelections_Of:{id:"CurrentSelections.Of",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},Listbox_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_ResultFilterLabel:{id:"Listbox.ResultFilterLabel",locale:{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},Listbox_ScreenReaderInstructions:{id:"Listbox.ScreenReaderInstructions",locale:{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L'attivazione degli elementi sottostanti causerà l'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},Listbox_Search:{id:"Listbox.Search",locale:{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},Listbox_Search_ScreenReaderInstructions:{id:"Listbox.Search.ScreenReaderInstructions",locale:{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},Listbox_Unlock:{id:"Listbox.Unlock",locale:{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},Menu_More:{id:"Menu.More",locale:{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},Navigate_Back:{id:"Navigate.Back",locale:{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},Navigate_Forward:{id:"Navigate.Forward",locale:{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},OK:{id:"OK",locale:{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},Object_Update_Active:{id:"Object.Update.Active",locale:{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},Object_Update_Cancelled:{id:"Object.Update.Cancelled",locale:{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},Retry:{id:"Retry",locale:{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},Selection_Cancel:{id:"Selection.Cancel",locale:{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},Selection_Clear:{id:"Selection.Clear",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},Selection_ClearAll:{id:"Selection.ClearAll",locale:{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},Selection_ClearAllStates:{id:"Selection.ClearAllStates",locale:{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},Selection_Confirm:{id:"Selection.Confirm",locale:{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},Selection_Menu:{id:"Selection.Menu",locale:{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":'Меню "Выборка"',"sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},Selection_SelectAll:{id:"Selection.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},Selection_SelectAlternative:{id:"Selection.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},Selection_SelectExcluded:{id:"Selection.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},Selection_SelectPossible:{id:"Selection.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},Visualization_Incomplete:{id:"Visualization.Incomplete",locale:{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},Visualization_Incomplete_Dimensions:{id:"Visualization.Incomplete.Dimensions",locale:{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},Visualization_Incomplete_Measures:{id:"Visualization.Incomplete.Measures",locale:{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},Visualization_Invalid_Dimension:{id:"Visualization.Invalid.Dimension",locale:{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},Visualization_Invalid_Measure:{id:"Visualization.Invalid.Measure",locale:{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},Visualization_LayoutError:{id:"Visualization.LayoutError",locale:{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},Visualization_UnfulfilledCalculationCondition:{id:"Visualization.UnfulfilledCalculationCondition",locale:{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}};function Z(e){const t=G({initial:e});return Object.keys(K).forEach((e=>{t.translator.add(K[e])})),{translator:t.translator}}var X={};function J(){J.init.call(this)}X.isObject=function(e){return"object"==typeof e&&null!==e},X.isNumber=function(e){return"number"==typeof e},X.isUndefined=function(e){return void 0===e},X.isFunction=function(e){return"function"==typeof e};var Y=J;function Q(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ee(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function te(){}J.EventEmitter=J,J.prototype._events=void 0,J.prototype._maxListeners=void 0,J.defaultMaxListeners=10,J.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},J.prototype.setMaxListeners=function(e){if(!X.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},J.prototype.emit=function(e){var t,n,r,o,i,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],X.isUndefined(n))return!1;if(X.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(X.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},J.prototype.addListener=function(e,t){var n;if(!X.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,X.isFunction(t.listener)?t.listener:t),this._events[e]?X.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,X.isObject(this._events[e])&&!this._events[e].warned)&&((n=X.isUndefined(this._maxListeners)?J.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,X.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),X.isFunction(console.trace)&&console.trace()));return this},J.prototype.on=J.prototype.addListener,J.prototype.once=function(e,t){if(!X.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},J.prototype.removeListener=function(e,t){var n,r,o,i;if(!X.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||X.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(X.isObject(n)){for(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},J.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],X.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},J.prototype.listeners=function(e){return this._events&&this._events[e]?X.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},J.listenerCount=function(e,t){return e._events&&e._events[t]?X.isFunction(e._events[t])?1:e._events[t].length:0};var ne=1/.7,re="\\s*([+-]?\\d+)\\s*",oe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ae=/^#([0-9a-f]{3,8})$/,se=new RegExp(`^rgb\\(${re},${re},${re}\\)$`),le=new RegExp(`^rgb\\(${ie},${ie},${ie}\\)$`),ce=new RegExp(`^rgba\\(${re},${re},${re},${oe}\\)$`),ue=new RegExp(`^rgba\\(${ie},${ie},${ie},${oe}\\)$`),pe=new RegExp(`^hsl\\(${oe},${ie},${ie}\\)$`),de=new RegExp(`^hsla\\(${oe},${ie},${ie},${oe}\\)$`),fe={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 he(){return this.rgb().formatHex()}function me(){return this.rgb().formatRgb()}function ge(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ae.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ye(t):3===n?new Ce(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?be(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?be(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=se.exec(e))?new Ce(t[1],t[2],t[3],1):(t=le.exec(e))?new Ce(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ce.exec(e))?be(t[1],t[2],t[3],t[4]):(t=ue.exec(e))?be(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=pe.exec(e))?qe(t[1],t[2]/100,t[3]/100,1):(t=de.exec(e))?qe(t[1],t[2]/100,t[3]/100,t[4]):fe.hasOwnProperty(e)?ye(fe[e]):"transparent"===e?new Ce(NaN,NaN,NaN,0):null}function ye(e){return new Ce(e>>16&255,e>>8&255,255&e,1)}function be(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ce(e,t,n,r)}function ve(e){return e instanceof te||(e=ge(e)),e?new Ce((e=e.rgb()).r,e.g,e.b,e.opacity):new Ce}function Ee(e,t,n,r){return 1===arguments.length?ve(e):new Ce(e,t,n,null==r?1:r)}function Ce(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function xe(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}`}function Le(){const e=Se(this.opacity);return`${1===e?"rgb(":"rgba("}${we(this.r)}, ${we(this.g)}, ${we(this.b)}${1===e?")":`, ${e})`}`}function Se(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function we(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oe(e){return((e=we(e))<16?"0":"")+e.toString(16)}function qe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ke(e,t,n,r)}function Re(e){if(e instanceof ke)return new ke(e.h,e.s,e.l,e.opacity);if(e instanceof te||(e=ge(e)),!e)return new ke;if(e instanceof ke)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,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new ke(a,s,l,e.opacity)}function ke(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ie(e){return(e=(e||0)%360)<0?e+360:e}function _e(e){return Math.max(0,Math.min(1,e||0))}function Te(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Q(te,ge,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:he,formatHex:he,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Re(this).formatHsl()},formatRgb:me,toString:me}),Q(Ce,Ee,ee(te,{brighter(e){return e=null==e?ne:Math.pow(ne,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ce(we(this.r),we(this.g),we(this.b),Se(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:xe,formatHex:xe,formatHex8:function(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}${Oe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Le,toString:Le})),Q(ke,(function(e,t,n,r){return 1===arguments.length?Re(e):new ke(e,t,n,null==r?1:r)}),ee(te,{brighter(e){return e=null==e?ne:Math.pow(ne,e),new ke(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ke(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 Ce(Te(e>=240?e-240:e+120,o,r),Te(e,o,r),Te(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ke(Ie(this.h),_e(this.s),_e(this.l),Se(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=Se(this.opacity);return`${1===e?"hsl(":"hsla("}${Ie(this.h)}, ${100*_e(this.s)}%, ${100*_e(this.l)}%${1===e?")":`, ${e})`}`}}));var Ae=Object.prototype.hasOwnProperty,De=Object.prototype.toString,Pe=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,Me=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===De.call(e)},je=function(e){if(!e||"[object Object]"!==De.call(e))return!1;var t,n=Ae.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Ae.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Ae.call(e,t)},ze=function(e,t){Pe&&"__proto__"===t.name?Pe(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Fe=function(e,t){if("__proto__"===t){if(!Ae.call(e,t))return;if(Ne)return Ne(e,t).value}return e[t]},Be=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=Fe(s,n),s!==(o=Fe(t,n))&&(u&&o&&(je(o)||(i=Me(o)))?(i?(i=!1,a=r&&Me(r)?r:[]):a=r&&je(r)?r:{},ze(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&ze(s,{name:n,newValue:o}));return s},He={fontSize:"13px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},scales:[{name:"Sequential Gradient",translation:"properties.colorScheme.sequential",type:"gradient",propertyValue:"sg",scale:["#26a0a7","#c7ea8b"]},{name:"Sequential Classes",translation:"properties.colorScheme.sequentialC",propertyValue:"sc",type:"class",scale:["#26a0a7","#c7ea8b"]},{name:"Diverging gradient",translation:"properties.colorScheme.diverging",propertyValue:"dg",type:"gradient",scale:["#26a0a7","#c3ea8c","#ec983d"]},{name:"Diverging Classes",translation:"properties.colorScheme.divergingC",propertyValue:"dc",type:"class",scale:["#26a0a7","#c3ea8c","#ec983d"]}],palettes:{data:[{name:"12 Colors",translation:"properties.colorNumberOfColors.12",propertyValue:"12",type:"pyramid",scale:[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],ui:[{name:"Palette",colors:["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}},Ue={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"light",color:"@B35"},We={_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"};class $e{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=ge(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([ge(e),ge(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],s=i[1];if(e===this.min)return s;if(e===this.max)return a;const l=function(e,t,n){return Ee(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,s,r-o);return l}}function Ve(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Ge(e,t,n){const r=[],o=new $e(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 Ke(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=Ve(1/t*o,t,n);i=e.getColor(r);break}}r.push(ge(i).formatHex())}return r}function Ze(e,t,n){const r=Ge(e,n,!0),o=Ge(Ke(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(Ke(o,e,t));return i}function Xe(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 Je(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 Ye(e,t,n,r){let o;if(""===e)o=Xe(null,n);else{o=Xe(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=Je(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)=>Ye(e,r,n.concat(),t)}}function et(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?et(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function tt(e){const t=ge(e).rgb(),{r:n,g:r,b:o}=t,[i,a,s]=[n,r,o].map((e=>e/255)),[l,c,u]=[i,a,s].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*l+.7152*c+.0722*u).toFixed(5)}function nt(e,t){return+((Math.max(e,t)+.05)/(Math.min(e,t)+.05)).toFixed(5)}Qe.resolveRawTheme=e=>{const t=Be(!0,{},e);return et(t,t._variables),t.scales&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#d2d2d2";e.forEach((e=>{if("class"===e.type){const n=Ze(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}(t.scales,t.dataColors&&t.dataColors.nullColor),t};function rt(){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=ge(...arguments);return e?e.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?We:Ue,r=Be(!0,{},He,n),o=Be(!0,{},r,{scales:null,palettes:{data:null,ui:null}},e);return o.palettes.data&&o.palettes.data.length||(o.palettes.data=r.palettes.data),o.palettes.ui&&o.palettes.ui.length||(o.palettes.ui=r.palettes.ui),o.scales&&o.scales.length||(o.scales=r.scales),t(o)}(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=>{t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:e.colors})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e){return e.index<0||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)}}}(e);const s=o.getStyle("","","color"),l=tt(s);n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(tt);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const i=tt(o),a=r.map((e=>nt(i,e))),s=e[a.indexOf(Math.max(...a))];t[o]=s,n++}return t[o]}}}([s,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(Y.prototype).forEach((e=>{o[e]=Y.prototype[e]})),Y.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const ot=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)}));function it(){let{themes:e=[],root:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=rt(),r=async r=>{const o=e.filter((e=>e.id===r))[0];let i="dark"===r?"dark":"light";if(o&&o.load)try{const e=await Promise.race([o.load(),ot(5e3,{__timedOut:!0})]);e.__timedOut||(i="dark"===e.type?"dark":"light",n.internalAPI.setTheme(e,r),t.setMuiThemeName(i))}catch(e){}else n.internalAPI.setTheme({type:i},r),t.setMuiThemeName(i)};return{setTheme:r,externalAPI:n.externalAPI}}function at(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"}function st(){return st=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},st.apply(this,arguments)}function lt(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var ct=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),ut="-ms-",pt="-moz-",dt="-webkit-",ft=Math.abs,ht=String.fromCharCode,mt=Object.assign;function gt(e){return e.trim()}function yt(e,t,n){return e.replace(t,n)}function bt(e,t){return e.indexOf(t)}function vt(e,t){return 0|e.charCodeAt(t)}function Et(e,t,n){return e.slice(t,n)}function Ct(e){return e.length}function xt(e){return e.length}function Lt(e,t){return t.push(e),e}var St=1,wt=1,Ot=0,qt=0,Rt=0,kt="";function It(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:St,column:wt,length:a,return:""}}function _t(e,t){return mt(It("",null,null,"",null,null,0),e,{length:-e.length},t)}function Tt(){return Rt=qt>0?vt(kt,--qt):0,wt--,10===Rt&&(wt=1,St--),Rt}function At(){return Rt=qt<Ot?vt(kt,qt++):0,wt++,10===Rt&&(wt=1,St++),Rt}function Dt(){return vt(kt,qt)}function Pt(){return qt}function Nt(e,t){return Et(kt,e,t)}function Mt(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 jt(e){return St=wt=1,Ot=Ct(kt=e),qt=0,[]}function zt(e){return kt="",e}function Ft(e){return gt(Nt(qt-1,Ut(91===e?e+2:40===e?e+1:e)))}function Bt(e){for(;(Rt=Dt())&&Rt<33;)At();return Mt(e)>2||Mt(Rt)>3?"":" "}function Ht(e,t){for(;--t&&At()&&!(Rt<48||Rt>102||Rt>57&&Rt<65||Rt>70&&Rt<97););return Nt(e,Pt()+(t<6&&32==Dt()&&32==At()))}function Ut(e){for(;At();)switch(Rt){case e:return qt;case 34:case 39:34!==e&&39!==e&&Ut(Rt);break;case 40:41===e&&Ut(e);break;case 92:At()}return qt}function Wt(e,t){for(;At()&&e+Rt!==57&&(e+Rt!==84||47!==Dt()););return"/*"+Nt(t,qt-1)+"*"+ht(47===e?e:At())}function $t(e){for(;!Mt(Dt());)At();return Nt(e,qt)}function Vt(e){return zt(Gt("",null,null,null,[""],e=jt(e),0,[0],e))}function Gt(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,p=a,d=0,f=0,h=0,m=1,g=1,y=1,b=0,v="",E=o,C=i,x=r,L=v;g;)switch(h=b,b=At()){case 40:if(108!=h&&58==vt(L,p-1)){-1!=bt(L+=yt(Ft(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:L+=Ft(b);break;case 9:case 10:case 13:case 32:L+=Bt(h);break;case 92:L+=Ht(Pt()-1,7);continue;case 47:switch(Dt()){case 42:case 47:Lt(Zt(Wt(At(),Pt()),t,n),l);break;default:L+="/"}break;case 123*m:s[c++]=Ct(L)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:f>0&&Ct(L)-p&&Lt(f>32?Xt(L+";",r,n,p-1):Xt(yt(L," ","")+";",r,n,p-2),l);break;case 59:L+=";";default:if(Lt(x=Kt(L,t,n,c,u,o,s,v,E=[],C=[],p),i),123===b)if(0===u)Gt(L,t,x,x,E,i,p,s,C);else switch(99===d&&110===vt(L,3)?100:d){case 100:case 109:case 115:Gt(e,x,x,r&&Lt(Kt(e,x,x,0,0,o,s,v,o,E=[],p),C),o,C,p,s,r?E:C);break;default:Gt(L,x,x,x,[""],C,0,s,C)}}c=u=f=0,m=y=1,v=L="",p=a;break;case 58:p=1+Ct(L),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Tt())continue;switch(L+=ht(b),b*m){case 38:y=u>0?1:(L+="\f",-1);break;case 44:s[c++]=(Ct(L)-1)*y,y=1;break;case 64:45===Dt()&&(L+=Ft(At())),d=Dt(),u=p=Ct(v=L+=$t(Pt())),b++;break;case 45:45===h&&2==Ct(L)&&(m=0)}}return i}function Kt(e,t,n,r,o,i,a,s,l,c,u){for(var p=o-1,d=0===o?i:[""],f=xt(d),h=0,m=0,g=0;h<r;++h)for(var y=0,b=Et(e,p+1,p=ft(m=a[h])),v=e;y<f;++y)(v=gt(m>0?d[y]+" "+b:yt(b,/&\f/g,d[y])))&&(l[g++]=v);return It(e,t,n,0===o?"rule":s,l,c,u)}function Zt(e,t,n){return It(e,t,n,"comm",ht(Rt),Et(e,2,-2),0)}function Xt(e,t,n,r){return It(e,t,n,"decl",Et(e,0,r),Et(e,r+1,-1),r)}function Jt(e,t){for(var n="",r=xt(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Yt(e,t,n,r){switch(e.type){case"@import":case"decl":return e.return=e.return||e.value;case"comm":return"";case"@keyframes":return e.return=e.value+"{"+Jt(e.children,r)+"}";case"rule":e.value=e.props.join(",")}return Ct(n=Jt(e.children,r))?e.return=e.value+"{"+n+"}":""}function Qt(e){var t=xt(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}var en=function(e,t,n){for(var r=0,o=0;r=o,o=Dt(),38===r&&12===o&&(t[n]=1),!Mt(o);)At();return Nt(e,qt)},tn=function(e,t){return zt(function(e,t){var n=-1,r=44;do{switch(Mt(r)){case 0:38===r&&12===Dt()&&(t[n]=1),e[n]+=en(qt-1,t,n);break;case 2:e[n]+=Ft(r);break;case 4:if(44===r){e[++n]=58===Dt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=ht(r)}}while(r=At());return e}(jt(e),t))},nn=new WeakMap,rn=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)||nn.get(n))&&!r){nn.set(e,!0);for(var o=[],i=tn(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},on=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function an(e,t){switch(function(e,t){return 45^vt(e,0)?(((t<<2^vt(e,0))<<2^vt(e,1))<<2^vt(e,2))<<2^vt(e,3):0}(e,t)){case 5103:return dt+"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 dt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return dt+e+pt+e+ut+e+e;case 6828:case 4268:return dt+e+ut+e+e;case 6165:return dt+e+ut+"flex-"+e+e;case 5187:return dt+e+yt(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return dt+e+ut+"flex-item-"+yt(e,/flex-|-self/,"")+e;case 4675:return dt+e+ut+"flex-line-pack"+yt(e,/align-content|flex-|-self/,"")+e;case 5548:return dt+e+ut+yt(e,"shrink","negative")+e;case 5292:return dt+e+ut+yt(e,"basis","preferred-size")+e;case 6060:return dt+"box-"+yt(e,"-grow","")+dt+e+ut+yt(e,"grow","positive")+e;case 4554:return dt+yt(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return yt(yt(yt(e,/(zoom-|grab)/,dt+"$1"),/(image-set)/,dt+"$1"),e,"")+e;case 5495:case 3959:return yt(e,/(image-set\([^]*)/,dt+"$1$`$1");case 4968:return yt(yt(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+dt+e+e;case 4095:case 3583:case 4068:case 2532:return yt(e,/(.+)-inline(.+)/,dt+"$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(Ct(e)-1-t>6)switch(vt(e,t+1)){case 109:if(45!==vt(e,t+4))break;case 102:return yt(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+pt+(108==vt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~bt(e,"stretch")?an(yt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==vt(e,t+1))break;case 6444:switch(vt(e,Ct(e)-3-(~bt(e,"!important")&&10))){case 107:return yt(e,":",":"+dt)+e;case 101:return yt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dt+(45===vt(e,14)?"inline-":"")+"box$3$1"+dt+"$2$3$1"+ut+"$2box$3")+e}break;case 5936:switch(vt(e,t+11)){case 114:return dt+e+ut+yt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dt+e+ut+yt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dt+e+ut+yt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dt+e+ut+e+e}return e}var sn="undefined"!=typeof document,ln=sn?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(){var e={};return function(t){return e[t]}}))})),cn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=an(e.value,e.length);break;case"@keyframes":return Jt([_t(e,{value:yt(e.value,"@","@"+dt)})],r);case"rule":if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Jt([_t(e,{props:[yt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Jt([_t(e,{props:[yt(t,/:(plac\w+)/,":-webkit-input-$1")]}),_t(e,{props:[yt(t,/:(plac\w+)/,":-moz-$1")]}),_t(e,{props:[yt(t,/:(plac\w+)/,ut+"input-$1")]})],r)}return""}))}}],un=function(e){var t=e.key;if(sn&&"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={},s=[];sn&&(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;s.push(e)})));var l,c=[rn,on];if(sn){var u,p=[Yt,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],d=Qt(c.concat(i,p));o=function(e,t,n,r){u=n,Jt(Vt(e?e+"{"+t.styles+"}":t.styles),d),r&&(y.inserted[t.name]=!0)}}else{var f=[Yt],h=Qt(c.concat(i,f)),m=ln(i)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=Jt(Vt(e?e+"{"+t.styles+"}":t.styles),h)),m[n]};o=function(e,t,n,r){var o=t.name,i=g(e,t);return void 0===y.compat?(r&&(y.inserted[o]=!0),i):r?void(y.inserted[o]=i):i}}var y={key:t,sheet:new ct({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 y.sheet.hydrate(s),y},pn={exports:{}},dn={},fn=t,hn=Symbol.for("react.element"),mn=Symbol.for("react.fragment"),gn=Object.prototype.hasOwnProperty,yn=fn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,bn={key:!0,ref:!0,__self:!0,__source:!0};function vn(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)gn.call(t,r)&&!bn.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:hn,type:e,key:i,ref:a,props:o,_owner:yn.current}}dn.Fragment=mn,dn.jsx=vn,dn.jsxs=vn,pn.exports=dn;const En=un({key:"css",prepend:!0});function Cn(e){const{injectFirst:t,children:n}=e;return t?pn.exports.jsx(m,{value:En,children:n}):n}
|
|
8
|
+
/** @license MUI v5.10.16
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/function bn(){return bn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bn.apply(this,arguments)}function vn(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function En(e,t,n={clone:!0}){const r=n.clone?bn({},e):e;return vn(e)&&vn(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(vn(t[o])&&o in e&&vn(e[o])?r[o]=En(e[o],t[o],n):r[o]=t[o])})),r}function Cn(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."}function xn(e){if("string"!=typeof e)throw new Error(Cn(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Ln=e=>e;var Sn=(()=>{let e=Ln;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ln}}})();const wn={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function On(){return On=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},On.apply(this,arguments)}function qn(e,t){return t?En(e,t,{clone:!1}):e}const Rn={xs:0,sm:600,md:900,lg:1200,xl:1536},In={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Rn[e]}px)`};function kn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||In;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||In;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Rn).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function _n(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 An(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:_n(e,n)||r,t&&(o=t(o)),o}function Tn(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=_n(e.theme,r)||{};return kn(e,i,(e=>{let r=An(a,o,e);return e===r&&"string"==typeof e&&(r=An(a,o,`${t}${"default"===e?"":xn(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}function Dn(...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]?qn(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}const Pn={m:"margin",p:"padding"},Nn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Mn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},jn=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Mn[e])return[e];e=Mn[e]}const[t,n]=e.split(""),r=Pn[t],o=Nn[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),zn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd","p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Fn(e,t,n,r){var o;const i=null!=(o=_n(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 Bn(e){return Fn(e,"spacing",8)}function Hn(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 Un(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Hn(t,n),e)),{})}(jn(n),r);return kn(e,e[n],o)}function Wn(e){return function(e,t){const n=Bn(e.theme);return Object.keys(e).map((r=>Un(e,t,r,n))).reduce(qn,{})}(e,zn)}function $n(e){return"number"!=typeof e?e:`${e}px solid`}Wn.propTypes={},Wn.filterProps=zn;const Vn=Tn({prop:"border",themeKey:"borders",transform:$n}),Gn=Tn({prop:"borderTop",themeKey:"borders",transform:$n}),Kn=Tn({prop:"borderRight",themeKey:"borders",transform:$n}),Zn=Tn({prop:"borderBottom",themeKey:"borders",transform:$n}),Xn=Tn({prop:"borderLeft",themeKey:"borders",transform:$n}),Jn=Tn({prop:"borderColor",themeKey:"palette"}),Yn=Tn({prop:"borderTopColor",themeKey:"palette"}),Qn=Tn({prop:"borderRightColor",themeKey:"palette"}),er=Tn({prop:"borderBottomColor",themeKey:"palette"}),tr=Tn({prop:"borderLeftColor",themeKey:"palette"}),nr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Fn(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Hn(t,e)});return kn(e,e.borderRadius,n)}return null};nr.propTypes={},nr.filterProps=["borderRadius"];var rr=Dn(Vn,Gn,Kn,Zn,Xn,Jn,Yn,Qn,er,tr,nr);var or=Dn(Tn({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),Tn({prop:"display"}),Tn({prop:"overflow"}),Tn({prop:"textOverflow"}),Tn({prop:"visibility"}),Tn({prop:"whiteSpace"}));var ir=Dn(Tn({prop:"flexBasis"}),Tn({prop:"flexDirection"}),Tn({prop:"flexWrap"}),Tn({prop:"justifyContent"}),Tn({prop:"alignItems"}),Tn({prop:"alignContent"}),Tn({prop:"order"}),Tn({prop:"flex"}),Tn({prop:"flexGrow"}),Tn({prop:"flexShrink"}),Tn({prop:"alignSelf"}),Tn({prop:"justifyItems"}),Tn({prop:"justifySelf"}));const ar=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Fn(e.theme,"spacing",8),n=e=>({gap:Hn(t,e)});return kn(e,e.gap,n)}return null};ar.propTypes={},ar.filterProps=["gap"];const sr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Fn(e.theme,"spacing",8),n=e=>({columnGap:Hn(t,e)});return kn(e,e.columnGap,n)}return null};sr.propTypes={},sr.filterProps=["columnGap"];const lr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Fn(e.theme,"spacing",8),n=e=>({rowGap:Hn(t,e)});return kn(e,e.rowGap,n)}return null};lr.propTypes={},lr.filterProps=["rowGap"];var cr=Dn(ar,sr,lr,Tn({prop:"gridColumn"}),Tn({prop:"gridRow"}),Tn({prop:"gridAutoFlow"}),Tn({prop:"gridAutoColumns"}),Tn({prop:"gridAutoRows"}),Tn({prop:"gridTemplateColumns"}),Tn({prop:"gridTemplateRows"}),Tn({prop:"gridTemplateAreas"}),Tn({prop:"gridArea"}));var ur=Dn(Tn({prop:"color",themeKey:"palette"}),Tn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),Tn({prop:"backgroundColor",themeKey:"palette"}));var pr=Dn(Tn({prop:"position"}),Tn({prop:"zIndex",themeKey:"zIndex"}),Tn({prop:"top"}),Tn({prop:"right"}),Tn({prop:"bottom"}),Tn({prop:"left"}));var dr=Tn({prop:"boxShadow",themeKey:"shadows"});function fr(e){return e<=1&&0!==e?100*e+"%":e}const hr=Tn({prop:"width",transform:fr}),mr=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||Rn[t]||fr(t)}};return kn(e,e.maxWidth,t)}return null};mr.filterProps=["maxWidth"];const gr=Tn({prop:"minWidth",transform:fr}),yr=Tn({prop:"height",transform:fr}),br=Tn({prop:"maxHeight",transform:fr}),vr=Tn({prop:"minHeight",transform:fr});Tn({prop:"size",cssProperty:"width",transform:fr}),Tn({prop:"size",cssProperty:"height",transform:fr});var Er=Dn(hr,mr,gr,yr,br,vr,Tn({prop:"boxSizing"}));const Cr=Tn({prop:"fontFamily",themeKey:"typography"}),xr=Tn({prop:"fontSize",themeKey:"typography"}),Lr=Tn({prop:"fontStyle",themeKey:"typography"}),Sr=Tn({prop:"fontWeight",themeKey:"typography"}),wr=Tn({prop:"letterSpacing"}),Or=Tn({prop:"textTransform"}),qr=Tn({prop:"lineHeight"}),Rr=Tn({prop:"textAlign"});var Ir=Dn(Tn({prop:"typography",cssProperty:!1,themeKey:"typography"}),Cr,xr,Lr,Sr,wr,qr,Rr,Or);const kr={borders:rr.filterProps,display:or.filterProps,flexbox:ir.filterProps,grid:cr.filterProps,positions:pr.filterProps,palette:ur.filterProps,shadows:dr.filterProps,sizing:Er.filterProps,spacing:Wn.filterProps,typography:Ir.filterProps},_r={borders:rr,display:or,flexbox:ir,grid:cr,positions:pr,palette:ur,shadows:dr,sizing:Er,spacing:Wn,typography:Ir};Object.keys(kr).reduce(((e,t)=>(kr[t].forEach((n=>{e[n]=_r[t]})),e)),{});const Ar=function(e=_r){const t=Object.keys(e).reduce(((t,n)=>(e[n].filterProps.forEach((r=>{t[r]=e[n]})),t)),{});function n(e,n,r){const o={[e]:n,theme:r},i=t[e];return i?i(o):{[e]:n}}return function e(r){const{sx:o,theme:i={}}=r||{};if(!o)return null;function a(r){let o=r;if("function"==typeof r)o=r(i);else if("object"!=typeof r)return r;if(!o)return null;const a=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),s=Object.keys(a);let l=a;return Object.keys(o).forEach((r=>{const a=(s=o[r],c=i,"function"==typeof s?s(c):s);var s,c;if(null!=a)if("object"==typeof a)if(t[r])l=qn(l,n(r,a,i));else{const t=kn({theme:i},a,(e=>({[r]: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))}(t,a)?l=qn(l,t):l[r]=e({sx:a,theme:i})}else l=qn(l,n(r,a,i))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(a):a(o)}}();Ar.filterProps=["sx"];var Tr=Ar;function Dr(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}const Pr=["values","unit","step"];function Nr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Dr(e,Pr),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>On({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(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 On({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var Mr={borderRadius:4};function jr(e=8){if(e.mui)return e;const t=Bn({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}const zr=["breakpoints","palette","spacing","shape"];function Fr(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Dr(e,zr),s=Nr(n),l=jr(o);let c=En({breakpoints:s,direction:"ltr",components:{},palette:On({mode:"light"},r),spacing:l,shape:On({},Mr,i)},a);return c=t.reduce(((e,t)=>En(e,t)),c),c}function Br(){return Br=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Br.apply(this,arguments)}var Hr=e.createContext(null);function Ur(){return e.useContext(Hr)}var Wr="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function $r(t){const{children:n,theme:r}=t,o=Ur(),i=e.useMemo((()=>{const e=null===o?r:function(e,t){if("function"==typeof t)return t(e);return Br({},e,t)}(o,r);return null!=e&&(e[Wr]=null!==o),e}),[r,o]);return sn.exports.jsx(Hr.Provider,{value:i,children:n})}function Vr(e=null){const t=Ur();return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Gr=Fr();function Kr(e=Gr){return Vr(e)}const Zr=["variant"];function Xr(e){return 0===e.length}function Jr(e){const{variant:t}=e,n=Dr(e,Zr);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?Xr(r)?e[t]:xn(e[t]):`${Xr(r)?t:xn(t)}${xn(e[t].toString())}`})),r}const Yr=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],Qr=["theme"],eo=["theme"];function to(e){return 0===Object.keys(e).length}function no(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const ro=Fr();function oo(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function io(e){if(e.type)return e;if("#"===e.charAt(0))return io(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Cn(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Cn(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function ao(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 so(e){let t="hsl"===(e=io(e)).type||"hsla"===e.type?io(function(e){e=io(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),ao({type:s,values:l})}(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 lo(e){const t=Kr();return sn.exports.jsx(g.Provider,{value:"object"==typeof t?t:{},children:e.children})}function co(e){const{children:t,theme:n}=e;return sn.exports.jsx($r,{theme:n,children:sn.exports.jsx(lo,{children:t})})}const uo=["defaultProps","mixins","overrides","palette","props","styleOverrides"],po=["type","mode"];var fo={black:"#000",white:"#fff"};var ho={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var mo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var go={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var yo={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var bo={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var vo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Eo={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const Co=["mode","contrastThreshold","tonalOffset"],xo={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:fo.white,default:fo.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}},Lo={text:{primary:fo.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:fo.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 So(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=io(e),t=oo(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 ao(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=io(e),t=oo(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 ao(e)}(e.main,i)))}function wo(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ot(e,Co),i=e.primary||function(e="light"){return"dark"===e?{main:bo[200],light:bo[50],dark:bo[400]}:{main:bo[700],light:bo[400],dark:bo[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:mo[200],light:mo[50],dark:mo[400]}:{main:mo[500],light:mo[300],dark:mo[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:go[500],light:go[300],dark:go[700]}:{main:go[700],light:go[400],dark:go[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:vo[400],light:vo[300],dark:vo[700]}:{main:vo[700],light:vo[500],dark:vo[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Eo[400],light:Eo[300],dark:Eo[700]}:{main:Eo[800],light:Eo[500],dark:Eo[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:yo[400],light:yo[300],dark:yo[700]}:{main:"#ed6c02",light:yo[500],dark:yo[900]}}(t);function p(e){const t=function(e,t){const n=so(e),r=so(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Lo.text.primary)>=n?Lo.text.primary:xo.text.primary;return t}const d=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=rt({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Cn(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Cn(12,t?` (${t})`:"",JSON.stringify(e.main)));return So(e,"light",o,r),So(e,"dark",i,r),e.contrastText||(e.contrastText=p(e.main)),e},f={dark:Lo,light:xo};return En(rt({common:rt({},fo),mode:t,primary:d({color:i,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:u,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:c,name:"success"}),grey:ho,contrastThreshold:n,getContrastText:p,augmentColor:d,tonalOffset:r},f[t]),o)}const Oo=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const qo={textTransform:"uppercase"},Ro='"Roboto", "Helvetica", "Arial", sans-serif';function Io(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Ro,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:p}=n,d=ot(n,Oo),f=o/14,h=p||(e=>e/c*f+"rem"),m=(e,t,n,o,i)=>{return rt({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Ro?{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(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,qo),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,qo)};return En(rt({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),d,{clone:!1})}function ko(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var _o=["none",ko(0,2,1,-1,0,1,1,0,0,1,3,0),ko(0,3,1,-2,0,2,2,0,0,1,5,0),ko(0,3,3,-2,0,3,4,0,0,1,8,0),ko(0,2,4,-1,0,4,5,0,0,1,10,0),ko(0,3,5,-1,0,5,8,0,0,1,14,0),ko(0,3,5,-1,0,6,10,0,0,1,18,0),ko(0,4,5,-2,0,7,10,1,0,2,16,1),ko(0,5,5,-3,0,8,10,1,0,3,14,2),ko(0,5,6,-3,0,9,12,1,0,3,16,2),ko(0,6,6,-3,0,10,14,1,0,4,18,3),ko(0,6,7,-4,0,11,15,1,0,4,20,3),ko(0,7,8,-4,0,12,17,2,0,5,22,4),ko(0,7,8,-4,0,13,19,2,0,5,24,4),ko(0,7,9,-4,0,14,21,2,0,5,26,4),ko(0,8,9,-5,0,15,22,2,0,6,28,5),ko(0,8,10,-5,0,16,24,2,0,6,30,5),ko(0,8,11,-5,0,17,26,2,0,6,32,5),ko(0,9,11,-5,0,18,28,2,0,7,34,6),ko(0,9,12,-6,0,19,29,2,0,7,36,6),ko(0,10,13,-6,0,20,31,3,0,8,38,7),ko(0,10,13,-6,0,21,33,3,0,8,40,7),ko(0,10,14,-6,0,22,35,3,0,8,42,7),ko(0,11,14,-7,0,23,36,3,0,9,44,8),ko(0,11,15,-7,0,24,38,3,0,9,46,8)];const Ao=["duration","easing","delay"],To={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)"},Do={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Po(e){return`${Math.round(e)}ms`}function No(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Mo(e){const t=rt({},To,e.easing),n=rt({},Do,e.duration);return rt({getAutoHeightDuration:No,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return ot(r,Ao),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Po(o)} ${i} ${"string"==typeof a?a:Po(a)}`)).join(",")}},e,{easing:t,duration:n})}var jo={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const zo=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Fo(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=ot(e,zo);if(e.vars)throw new Error(Cn(18));const s=wo(r),l=Fr(e);let c=En(l,{mixins:(u=l.breakpoints,p=n,rt({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},p)),palette:s,shadows:_o.slice(),typography:Io(s,i),transitions:Mo(o),zIndex:rt({},jo)});var u,p;return c=En(c,a),c=t.reduce(((e,t)=>En(e,t)),c),c}var Bo=Fo();function Ho(){return Kr(Bo)}const Uo=function(e={}){const{defaultTheme:t=ro,rootShouldForwardProp:n=no,slotShouldForwardProp:r=no,styleFunctionSx:o=Tr}=e,i=e=>{const n=to(e.theme)?t:e.theme;return o(On({},e,{theme:n}))};return i.__mui_systemSx=!0,(e,o={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:a,slot:s,skipVariantsResolver:l,skipSx:c,overridesResolver:u}=o,p=Dr(o,Yr),d=void 0!==l?l:s&&"Root"!==s||!1,f=c||!1;let h=no;"Root"===s?h=n:s?h=r:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const m=function(e,t){return j(e,t)}(e,On({shouldForwardProp:h,label:undefined},p)),g=(e,...n)=>{const r=n?n.map((e=>"function"==typeof e&&e.__emotion_real!==e?n=>{let{theme:r}=n,o=Dr(n,Qr);return e(On({theme:to(r)?t:r},o))}:e)):[];let o=e;a&&u&&r.push((e=>{const n=to(e.theme)?t:e.theme,r=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(a,n);if(r){const t={};return Object.entries(r).forEach((([r,o])=>{t[r]="function"==typeof o?o(On({},e,{theme:n})):o})),u(e,t)}return null})),a&&!d&&r.push((e=>{const n=to(e.theme)?t:e.theme;return((e,t,n,r)=>{var o,i;const{ownerState:a={}}=e,s=[],l=null==n||null==(o=n.components)||null==(i=o[r])?void 0:i.variants;return l&&l.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{a[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&s.push(t[Jr(n.props)])})),s})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=Jr(e.props);r[t]=e.style})),r})(a,n),n,a)})),f||r.push(i);const s=r.length-n.length;if(Array.isArray(e)&&s>0){const t=new Array(s).fill("");o=[...e,...t],o.raw=[...e.raw,...t]}else"function"==typeof e&&e.__emotion_real!==e&&(o=n=>{let{theme:r}=n,o=Dr(n,eo);return e(On({theme:to(r)?t:r},o))});return m(o,...r)};return m.withConfig&&(g.withConfig=m.withConfig),g}}({defaultTheme:Bo,rootShouldForwardProp:e=>no(e)&&"classes"!==e});var Wo=Uo;function $o(){return $o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$o.apply(this,arguments)}function Vo(e,t){return Vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vo(e,t)}function Go(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Ko=function(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=function(e,t,n="Mui"){const r=wn[t];return r?`${n}-${r}`:`${Sn.generate(e)}-${t}`}(e,t,n)})),r}("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Zo={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 Xo="#009845",Jo="#3F8AB3",Yo="#ffffff",Qo="#404040",ei="#333333",ti="#1A1A1A",ni={mode:"light",palette:{primary:{main:Qo,contrastText:Yo},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Qo,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{active:Qo,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:Yo,default:Yo,lightest:Yo,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:Jo,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:Xo,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:Yo,alternativeContrastText:Qo,excludedContrastText:Qo},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)"}}},ri={mode:"dark",palette:{primary:{main:ei,contrastText:Yo},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Yo,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:Yo,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:Qo,lighter:ei,darker:"#262626",darkest:ti},custom:{focusBorder:Jo,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:Xo,alternative:ei,excluded:ti,mainContrastText:Yo,alternativeContrastText:Yo,excludedContrastText:Yo},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)"}}},oi={},ii=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","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},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(Ko.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(Ko.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(Ko.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(Ko.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function ai(e){let t=ni,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=ri));const r=JSON.stringify(t);if(oi[r])return oi[r];const o={palette:B(B({type:t.mode},Zo.palette),t.palette),typography:B({},Zo.typography),shadows:Zo.shadows,props:B({},Zo.props),shape:B({},Zo.shape)};return oi[r]=Fo(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={}}=e,s=rt({},ot(e,uo),{components:{}});Object.keys(t).forEach((e=>{const n=s.components[e]||{};n.defaultProps=t[e],s.components[e]=n})),Object.keys(i).forEach((e=>{const t=s.components[e]||{};t.defaultProps=i[e],s.components[e]=t})),Object.keys(a).forEach((e=>{const t=s.components[e]||{};t.styleOverrides=a[e],s.components[e]=t})),Object.keys(r).forEach((e=>{const t=s.components[e]||{};t.styleOverrides=r[e],s.components[e]=t})),s.spacing=jr(e.spacing);const l=Nr(e.breakpoints||{}),c=s.spacing;s.mixins=rt({gutters:(e={})=>rt({paddingLeft:c(2),paddingRight:c(2)},e,{[l.up("sm")]:rt({paddingLeft:c(3),paddingRight:c(3)},e[l.up("sm")])})},n);const{type:u,mode:p}=o,d=ot(o,po),f=p||u||"light";return s.palette=rt({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},d),s}(B(B({},o),{},{overrides:ii(o)}))),oi[r].name=n,oi[r]}Sn.configure((e=>"njs-".concat("1c8e","-").concat(e.replace("Mui",""))));var si=t.createContext({language:null,theme:null,translator:null,constraints:{}}),li=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const o=e,i=[],a={get:e=>o[e],set:(e,n)=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));return o[e]=n,t({type:"SET",value:n}),n},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));o[e]=null},dispatch:e=>{i.forEach((t=>t(e?{}:o)))}},s=()=>{const[,e]=n(o);return r((()=>(i.push(e),()=>{const t=i.indexOf(e);i.splice(t,1)})),[e]),[a]};return[s,a]};const[ci,ui]=li({}),[pi,di]=li({}),[fi,hi]=li({}),[mi,gi]=li({}),[yi,bi]=li({}),[,vi]=li({}),Ei=e=>{let{type:t,value:n}=e;const r=vi.get(n.id);vi.set(n.id,{});const o=()=>{di.clear(n.id),bi.set(n.id,{}),bi.dispatch(!0)},i=()=>{n.removeListener("changed",o),ui.clear(n.id),di.clear(n.id),hi.clear(n.id),gi.clear(n.id),bi.clear(n.id),vi.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{i()})));return i},[Ci,xi]=li({},Ei),Li=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let i;switch(t.type){case"INVALID":i=B(B({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:B({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=B(B({},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 Si(e,t){const n=e?"".concat(e.id):null,[i]=ci(),[a,s]=o(Li,n?i.get(n):null),[l]=yi(),[c]=pi();let u;n&&(u=c.get(n),u||(u={},c.set(n,u)));const p=async r=>{let o=u[t];if(!o||o&&o.rpcRetry){o={rpc:e[t](),rpcRetry:!1},u[t]=o,s({type:"INVALID",method:t,key:n,model:e,rpcResultStore:i,canCancel:!0})}try{const r=await o.rpc;s({type:"VALID",result:r,key:n,method:t,model:e,rpcResultStore:i})}catch(e){15!==e.code||r||(o.rpcRetry||(o.rpcRetry=!0),p(!0))}},d={cancel:async()=>{const r=e.session.getObjectApi({handle:-1});await r.cancelRequest(u[t].rpc.requestId),s({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:i})},retry:()=>{u[t].rpcRetry=!0,p()}};return r((()=>{e&&p()}),[e,l.get(e&&e.id),n,t]),[a&&a.result,{validating:a&&a.validating,canCancel:a&&a.canCancel,canRetry:a&&a.canRetry},d]}function wi(e){return Si(e,"getLayout")}function Oi(e){return Si(e,"getAppLayout")}function qi(e,t){const o=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[i]=Ci(),[a]=fi(),[s,l]=n();let c;o&&(c=a.get(o));for(var u=arguments.length,p=new Array(u>2?u-2:0),d=2;d<u;d++)p[d-2]=arguments[d];return r((()=>{if(!t)return;(async()=>{if(!c){const n=t.createSessionObject(e);c=n,a.set(o,c)}const n=await c;i.set(o,n),l(n)})()}),[t,...p]),[s]}const Ri={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Ii(e){return qi(Ri,e)}function ki(e){const[t]=Ii(e),[o]=wi(t),[i]=Oi(e),[a,s]=n(null);return r((()=>{i&&t&&o&&((e,t,n)=>{const r=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})));(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::")!==(n.qStateNames||[]).map((e=>e)).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)})(t,o,i)}),[i,t,o]),r((()=>{if(!o)return;let e=!1,t=!1,n=!1;[o,...o.alternateStates||[]].forEach((r=>{e=e||r.qSelectionObject&&r.qSelectionObject.qBackCount>0,t=t||r.qSelectionObject&&r.qSelectionObject.qForwardCount>0,n=n||(r.qSelectionObject&&r.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),s({canGoBack:e,canGoForward:t,canClear:n})}),[o]),[a,t,o]}const[_i,Ai]=li({}),[Ti,Di]=li({}),[Pi,Ni]=li({}),[Mi,ji]=li({});function zi(e){if(!e.session)return[];const[t,n,o]=ki(e),[i]=_i(),a=e?e.id:null;let s=i.get(a);return r((()=>{e&&n&&o&&t&&!s&&(s=function(e){let{app:t,currentSelectionsLayout:n,navState:r}=e;const o="".concat(t.id),i=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=ji.get(o);t&&(await t.endSelections(e),ji.clear(o),Ni.get(t.id).emit("deactivated"))},a={begin:async function(e,n){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===ji.get(o))return;i(r),ji.set(o,e);const a=Array.isArray(n)?n:[n],s=async n=>{try{await e.beginSelections(a),ji.set(o,e)}catch(e){6003!==e.code||n?ji.clear(o):(await t.abortModal(r),s(!0))}};await s()},end:i};Di.set(o,a);const s={model:t,isInModal:()=>!!ji.get(o),isModal:e=>e?ji.get(o)===e:!!ji.get(o),canGoForward:()=>r.canGoForward,canGoBack:()=>r.canGoBack,canClear:()=>r.canClear,layout:()=>n,forward:()=>a.end().then((()=>t.forward())),back:()=>a.end().then((()=>t.back())),clear:()=>a.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return a.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return s}({app:e,currentSelectionsLayout:o,navState:t}),i.set(a,s),i.dispatch(!0))}),[e,n,o,t]),[s,t]}const Fi=i(((e,r)=>{let{initialContext:o,app:i}=e;const[l]=zi(i),[c,u]=n(o),[p,d]=n(),{theme:f}=a((()=>({theme:ai(p)})),[p]),[h,m]=n([]);return s(r,(()=>({addComponent(e){m([...h,e])},removeComponent(e){const t=h.indexOf(e);-1!==t&&(h.splice(t,1),m([...h]))},setMuiThemeName:d,setContext:u,getAppSelections:()=>l}))),t.createElement(yn,{injectFirst:!0},t.createElement(co,{theme:f},t.createElement(si.Provider,{value:c},h)))}));function Bi(e){let n,{app:r,context:o}=e;const i=new Promise((e=>{n=e})),a=t.createRef(),s=document.createElement("div");s.style.display="none",s.setAttribute("data-nebulajs-version","3.1.0-alpha.0"),s.setAttribute("data-app-id",r.id),document.body.appendChild(s),h.render(t.createElement(Fi,{ref:a,app:r,initialContext:o}),s,n);const l={};return[{toggleFocusOfCells(e){Object.keys(l).forEach((t=>{l[t].current.toggleFocus(t===e)}))},cells:l,addCell(e,t){l[e]=t},add(e){(async()=>{await i,a.current.addComponent(e)})()},remove(e){(async()=>{await i,a.current.removeComponent(e)})()},setMuiThemeName(e){(async()=>{await i,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await i,a.current.setContext(e)})()},getAppSelections:async()=>(await i,a.current.getAppSelections())},a,i]}function Hi(){const[e,t]=n(),[r,o]=n(),i=l((e=>{e&&t(e)}),[]),a=()=>{const{left:t,top:n,width:r,height:i}=e.getBoundingClientRect();o({left:t,top:n,width:r,height:i})};return c((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(a);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return a(),window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}}}),[e]),[i,r,e]}function Ui(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Wi(e){let{size:n,style:r={},viewBox:o="0 0 16 16",shapes:i=[]}=e;const a=B({fontSize:Ui(n),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},r);return t.createElement("i",{style:a},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:o,fill:"currentColor"},i.map(((e,n)=>{let{type:r,attrs:o}=e;return t.createElement(r,U({key:n},o))}))))}var $i=e=>Wi((e=>B(B({},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 Vi=e=>Wi((e=>B(B({},e),{},{shapes:[{type:"path",attrs:{d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"}}]}))(e));var Gi=e=>Wi((e=>B(B({},e),{},{shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]}))(e)),Ki=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Zi(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||Ki(r)&&Ki(o)))return!1;var r,o;return!0}function Xi(e,t){var n;void 0===t&&(t=Zi);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var Ji="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Yi(e){cancelAnimationFrame(e.id)}var Qi=null;function ea(e){if(void 0===e&&(e=!1),null===Qi||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?Qi="positive-descending":(t.scrollLeft=1,Qi=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Qi}return Qi}var ta=function(e,t){return e};function na(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){var t,p;function f(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,Go(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Go(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Xi((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=Xi((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,s=i.itemSize,l=i.layout,u=r._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var p=n(r.props,e,r._instanceProps),d=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?p:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:p,height:f?"100%":d,width:f?d:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=Xi((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(ea()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){var e,t,n,o;null!==r._resetIsScrollingTimeoutId&&Yi(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=(e=r._resetIsScrolling,t=150,n=Ji(),o={id:requestAnimationFrame((function r(){Ji()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}))},o)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}p=e,(t=f).prototype=Object.create(p.prototype),t.prototype.constructor=t,Vo(t,p),f.getDerivedStateFromProps=function(e,t){return ra(e,t),d(e),null};var h=f.prototype;return h.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)},h.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props.itemCount,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1)),this.scrollTo(i(this.props,e,t,r,this._instanceProps))},h.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()},h.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(ea()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},h.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Yi(this._resetIsScrollingTimeoutId)},h.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,c=e.itemCount,p=e.itemData,d=e.itemKey,f=void 0===d?ta:d,h=e.layout,m=e.outerElementType,g=e.outerTagName,y=e.style,b=e.useIsScrolling,v=e.width,E=this.state.isScrolling,C="horizontal"===o||"horizontal"===h,x=C?this._onScrollHorizontal:this._onScrollVertical,L=this._getRangeToRender(),S=L[0],w=L[1],O=[];if(c>0)for(var q=S;q<=w;q++)O.push(u(t,{data:p,key:f(q,p),index:q,isScrolling:b?E:void 0,style:this._getItemStyle(q)}));var R=r(this.props,this._instanceProps);return u(m||g||"div",{className:n,onScroll:x,ref:this._outerRefSetter,style:$o({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},u(s||l||"div",{children:O,ref:a,style:{height:C?"100%":R,pointerEvents:E?"none":void 0,width:C?R:"100%"}}))},h._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,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},h._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,l=r.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,l,this._instanceProps),u=s(this.props,c,l,this._instanceProps),p=o&&"backward"!==i?1:Math.max(1,n),d=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-p),Math.max(0,Math.min(t-1,u+d)),c,u]},f}(p),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var ra=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},oa=na({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){var o=e.direction,i=e.height,a=e.itemCount,s=e.itemSize,l=e.layout,c=e.width,u="horizontal"===o||"horizontal"===l?c:i,p=Math.max(0,a*s-u),d=Math.min(p,t*s),f=Math.max(0,t*s-u+s);switch("smart"===n&&(n=r>=f-u&&r<=d+u?"auto":"center"),n){case"start":return d;case"end":return f;case"center":var h=Math.round(f+(d-f)/2);return h<Math.ceil(u/2)?0:h>p+Math.floor(u/2)?p:h;default:return r>=f&&r<=d?r:r<f?f:d}},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,s=e.layout,l=e.width,c=t*a,u="horizontal"===r||"horizontal"===s?l:o,p=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+p-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});var ia=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},aa=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}}(),sa=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},la=function(e){function t(){var e,n,r;ia(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=sa(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},sa(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,p),aa(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,s=n.threshold,l=void 0===s?15:s,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.startIndex,i=e.stopIndex,a=[],s=null,l=null,c=o;c<=i;c++)t(c)?null!==l&&(a.push(s,l),s=l=null):(l=c,null===s&&(s=c));if(null!==l){for(var u=Math.min(Math.max(l,s+r-1),n-1),p=l+1;p<=u&&!t(p);p++)l=p;a.push(s,l)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var d=a[0]-1;if(t(d))break;a[0]=d}return a}({isItemLoaded:r,itemCount:o,minimumBatchSize:a,startIndex:Math.max(0,e-l),stopIndex:Math.min(o-1,t+l)});(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}();const ca=["S","XS"],ua=e=>e.reduce(((e,t)=>e.concat(t)));function pa(e){return ca.includes(e)}function da(e){return Array.isArray(e)?Array.from(new Set(e)):void 0}async function fa(e){let{selections:t,elemNumbers:n,isSingleSelect:r=!1}=e,o=Promise.resolve(!1);if(!n.some((e=>Number.isNaN(e)))){const e=n;o=t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,!r]}).then((e=>!1!==e)).catch((()=>!1))}return o}function ha(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)}function ma(e){let{layout:t,selections:o,pages:i=[],checkboxes:a=!1,selectDisabled:s,doc:c=document,isSingleSelect:u=!1}=e;const[p,d]=n(i),[f,h]=n(!1),[m,g]=n(!1),[y,b]=n(u),[v,E]=n([]),[C,x]=n(!1),[L,S]=n([]),w=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 ua(t)}(i);r((()=>{b(u)}),[u]);const O=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(s())return;g(!0);const n=t?e.filter((e=>!v.includes(e))):e;await fa({selections:o,elemNumbers:n,isSingleSelect:y}),g(!1),S([])},q=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s()||S((n=>{const r=da([...n,...e]),o=t?r.filter((e=>!v.includes(e))):r;return t?ha(r,w):o}))},R=e=>{(e.ctrlKey||e.metaKey)&&(b(!0),e.currentTarget.focus(),e.preventDefault())},I=l((e=>{if(m||s())return;const t=+e.currentTarget.getAttribute("data-n");S([t]),R(e)}),[m,s]),k=l((e=>{if(m||s())return;x(!1),h(!0);const t=+e.currentTarget.getAttribute("data-n");S([t]),R(e)}),[m,s]),_=l((e=>{const t=+e.currentTarget.getAttribute("data-n");y||!f||m||1===L.length&&L[0]===t||q([t])}),[f,m,L,v,C,s]),A=l((()=>{h(!1),g(!1),x(!1),b(u)}),[u]),T=l((e=>{if(y||!f||m||s())return;x(!0);const t=+e.currentTarget.getAttribute("data-n");q([t],!0)}),[f,m,C,L,v,s,t&&t.qListObject.qDimensionInfo.qIsOneAndOnlyOne]);r((()=>{const e=!f;L&&L.length&&!m&&e&&t&&O(L,C)}),[L,f,s()]),r((()=>(c.addEventListener("mouseup",A),()=>{c.removeEventListener("mouseup",A)})),[A]),r((()=>{if(m||f)return;const e=function(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return!!pa(t.qState)&&t.qElemNumber}));return t.filter((e=>!1!==e))}));return ua(t)}(i);E(e)}),[i]),r((()=>{if(m||!i||!a&&!f)return;const e=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e=>t.length<=1&&pa(e)?"A":"S",o=e.map((e=>{const o=e.qMatrix.map((e=>{const[o]=e,i=t.includes(o.qElemNumber);let a;return a=n?i?"S":"A":i?r(o.qState):o.qState,[B(B({},o),{},{qState:a}),e.slice(1)]}));return B(B({},e),{},{qMatrix:o})}));return o}(i,L,y);d(e)}),[L]);const D={};return a?Object.assign(D,{onClick:I}):Object.assign(D,{onMouseUp:_,onMouseDown:k,onMouseEnter:T}),{instantPages:p,interactionEvents:D,select:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];x(!1),h(!0),q(e,t||C);const n=O(e,t||C);return h(!1),n}}}const ga=e=>B(B({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var ya=e=>Wi(ga(e));const ba="ListBoxCheckbox",va={cbIcon:"".concat(ba,"-cbIcon"),cbIconChecked:"".concat(ba,"-cbIconChecked"),cbIconExcluded:"".concat(ba,"-cbIconExcluded"),cbIconAlternative:"".concat(ba,"-cbIconAlternative"),checkbox:"".concat(ba,"-checkbox"),dense:"".concat(ba,"-dense")},Ea=Wo(y)((e=>{let{theme:t}=e;return{["& .".concat(va.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(va.cbIconChecked)]:{borderRadius:3,backgroundColor:t.palette.selected.main,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(va.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.excluded},["& .".concat(va.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.alternative},["&.".concat(va.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(va.dense)]:{padding:"4px 8px"}}})),Ca=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.createElement("span",{className:e.cbIcon},r&&t.createElement("span",{className:n&&r?e.cbIconExcluded:""}))};function xa(e){let{checked:n,label:r,dense:o,excluded:i,showGray:a=!0}=e;return t.createElement(Ea,{edge:"start",checked:n,disableRipple:!0,className:[va.checkbox,o&&va.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r},name:r,icon:Ca(va,a,i),checkedIcon:t.createElement("span",{className:va.cbIconChecked})})}const La={denseRadioButton:"".concat("ListBoxRadioButton","-denseRadioButton"),radioButton:"".concat("ListBoxRadioButton","-radioButton")},Sa=Wo(b)((()=>({["&.".concat(La.radioButton)]:{right:"5px"}})));function wa(e){let{checked:n,label:r,dense:o}=e;return t.createElement(Sa,{checked:n,value:r,name:r,className:La.radioButton,style:{backgroundColor:"transparent"},disableRipple:!0,size:o?"small":"medium",sx:o&&{padding:"0px 0px 0px 12px"}})}const Oa=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===Oa.ARROW_UP||e===Oa.ARROW_DOWN||e===Oa.ARROW_LEFT||e===Oa.ARROW_RIGHT});function qa(e){let{setKeyboardActive:t}=e;return e=>{const{keyCode:n}=e.nativeEvent;switch(n){case Oa.ENTER:case Oa.SPACE:if(!e.target.classList.contains("listbox-container"))return;(e=>{const n=e.querySelector(".search input, .value.selector, .value, .ActionsToolbar-* button");t(!0),n&&n.focus()})(e.currentTarget);break;case Oa.ESCAPE:r=e.currentTarget,t(!1),r.focus();break;default:return}var r;e.preventDefault()}}const Ra="RowColumn",Ia={row:"".concat(Ra,"-row"),rowBorderBottom:"".concat(Ra,"-rowBorderBottom"),column:"".concat(Ra,"-column"),fieldRoot:"".concat(Ra,"-fieldRoot"),cell:"".concat(Ra,"-cell"),labelText:"".concat(Ra,"-labelText"),labelDense:"".concat(Ra,"-labelDense"),highlighted:"".concat(Ra,"-highlighted"),checkboxLabel:"".concat(Ra,"-checkboxLabel"),icon:"".concat(Ra,"-icon"),S:"".concat(Ra,"-S"),XS:"".concat(Ra,"-XS"),A:"".concat(Ra,"-A"),X:"".concat(Ra,"-X"),frequencyCount:"".concat(Ra,"-frequencyCount"),barContainer:"".concat(Ra,"-barContainer"),bar:"".concat(Ra,"-bar"),barSelected:"".concat(Ra,"-barSelected"),barWithCheckbox:"".concat(Ra,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(Ra,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(Ra,"-excludedTextWithCheckbox")},ka={width:"100%",overflow:"hidden",textOverflow:"ellipsis"},_a=e=>{let{theme:t}=e;return{background:t.palette.selected.main,color:t.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px rgba(0, 0, 0, 0.3)",outline:"none"},"& $cell":{paddingRight:0}}},Aa=Wo("div")((e=>{let{theme:t}=e;return{["& .".concat(Ia.row)]:{flexWrap:"nowrap",color:t.palette.text.primary},["& .".concat(Ia.rowBorderBottom)]:{borderBottom:"1px solid ".concat(t.palette.divider)},["& .".concat(Ia.column)]:{flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider),color:t.palette.text.primary},["& .".concat(Ia.fieldRoot)]:{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(Ia.cell)]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"9px",paddingRight:"9px"},["& .".concat(Ia.labelText)]:B({flexBasis:"max-content",lineHeight:"16px",userSelect:"none",whiteSpace:"pre"},ka),["& .".concat(Ia.labelDense)]:{fontSize:12},["& .".concat(Ia.highlighted)]:{overflow:"visible",width:"100%","& > span":{width:"100%",backgroundColor:"#FFC72A"}},["& .".concat(Ia.checkboxLabel)]:{margin:0,width:"100%",height:"100%","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":B(B({},ka),{},{display:"flex",alignItems:"center",paddingLeft:0})},["& .".concat(Ia.icon)]:{display:"flex",padding:t.spacing(1,1,1,0)},["& .".concat(Ia.S)]:B({},_a({theme:t})),["& .".concat(Ia.XS)]:B(B({},_a({theme:t})),{},{background:t.palette.selected.excluded,color:t.palette.selected.mainContrastText}),["& .".concat(Ia.A)]:{background:t.palette.selected.alternative,color:t.palette.selected.alternativeContrastText},["& .".concat(Ia.X)]:{background:t.palette.selected.excluded,color:t.palette.selected.excludedContrastText},["& .".concat(Ia.frequencyCount)]:{paddingLeft:"8px",paddingRight:"8px"},["&.".concat(Ia.barContainer)]:{height:"100%",display:"inline-block"},["& .".concat(Ia.bar)]:{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",height:"16px",position:"absolute",zIndex:"-1",alignSelf:"center",left:"".concat(4,"px"),transition:"width 0.2s",backgroundColor:"#FAFAFA"},["& .".concat(Ia.barSelected)]:{opacity:"30%",zIndex:"0",background:t.palette.background.lighter},["& .".concat(Ia.barWithCheckbox)]:{left:"".concat(29,"px")},["& .".concat(Ia.barSelectedWithCheckbox)]:{background:"#BFE5D0",borderColor:"#BFE5D0"},["& .".concat(Ia.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));function Ta(e){let{index:o,style:i,data:a}=e;const{onClick:s,onMouseDown:c,onMouseUp:u,onMouseEnter:p,pages:d,isLocked:f,column:h=!1,checkboxes:m=!1,dense:g=!1,frequencyMode:y="N",isSingleSelect:b,actions:x,frequencyMax:L="",histogram:S=!1,keyboard:w,showGray:O=!0}=a,q=l(function(e){let{select:t,confirm:n,cancel:r}=e;const o=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e&&e.parentElement[t?"nextElementSibling":"previousElementSibling"];return n&&n.querySelector("[role]")};let i=!1;const a=e=>{i=e};return e=>{let s;const{keyCode:l,shiftKey:c=!1}=e.nativeEvent;switch(l){case Oa.SHIFT:a(!0);break;case Oa.SPACE:t([+e.currentTarget.getAttribute("data-n")]);break;case Oa.ARROW_DOWN:case Oa.ARROW_RIGHT:s=o(e.currentTarget,!0),c&&s&&(i&&(t([+e.currentTarget.getAttribute("data-n")],!0),a(!1)),t([+s.getAttribute("data-n")],!0));break;case Oa.ARROW_UP:case Oa.ARROW_LEFT:s=o(e.currentTarget,!1),c&&s&&(i&&(t([+e.currentTarget.getAttribute("data-n")],!0),a(!1)),t([+s.getAttribute("data-n")],!0));break;case Oa.ENTER:n();break;case Oa.ESCAPE:return void r();default:return}s&&s.focus(),e.preventDefault(),e.stopPropagation()}}(x),[x]),[R,I]=n(!1),[k,_]=n(),[A,T]=n([]);r((()=>{if(!d)return;let e;const t=d.filter((e=>e.qArea.qTop<=o&&o<e.qArea.qTop+e.qArea.qHeight))[0];if(t){const n=t.qArea;o>=n.qTop&&o<n.qTop+n.qHeight&&([e]=t.qMatrix[o-n.qTop])}_(e)}),[d]);const D=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,P=e=>e?"A"===e.qState:null;r((()=>{if(!k)return;const e="S"===k.qState||"XS"===k.qState||"L"===k.qState;I(e);const t=[h?Ia.column:Ia.row];S&&g||t.push(Ia.rowBorderBottom),m||("XS"===k.qState?t.push(O?Ia.XS:Ia.S):"S"===k.qState||"L"===k.qState?t.push(Ia.S):O&&P(k)?t.push(Ia.A):O&&D(k)&&t.push(Ia.X)),T(t)}),[k&&k.qState]);const N=e=>e.filter((e=>!!e)).join(" ").trim(),M=()=>(P(k)||D(k))&&m,j=e=>{let{lbl:n,ix:r,color:o,highlighted:i=!1}=e;return t.createElement(E,{component:"span",variant:"body2",key:r,className:N([Ia.labelText,i&&Ia.highlighted,g&&Ia.labelDense,O&&M()&&Ia.excludedTextWithCheckbox]),color:o},t.createElement("span",{style:{whiteSpace:"pre"}},n))},z=e=>{let{lbl:n,color:r,qElemNumber:o}=e;const i=t.createElement(xa,{label:n,checked:R,dense:g,excluded:D(k),showGray:O}),a=t.createElement(wa,{label:n,checked:R,dense:g}),s="string"==typeof n?j({lbl:n,color:r,highlighted:!1}):n;return t.createElement(C,{color:r,control:b?a:i,className:Ia.checkboxLabel,label:s,key:o})},F=k?k.qText:"",B=()=>k?k.qFrequency?k.qFrequency:"0":"",H=k&&k.qHighlightRanges&&k.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[],U=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,s=t[o].qCharPos+t[o].qCharCount;return a&&s<e.length&&n.push([e.slice(s),!1]),n}),[]);return n}(F,H),W=m?z:j,$={alignItems:"center",display:"flex"},V=R&&f,G=!m&&R&&!f,K={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,padding:m?0:void 0},Z=0===o;return t.createElement(Aa,{className:Ia.barContainer},t.createElement(v,{container:!0,gap:0,className:N(["value",...A]),classes:{root:Ia.fieldRoot},style:i,onClick:s,onMouseDown:c,onMouseUp:u,onMouseEnter:p,onKeyDown:q,onContextMenu:e=>{m&&s(e),e.preventDefault()},role:h?"column":"row",tabIndex:!Z||w.enabled&&!w.active?-1:0,"data-n":k&&k.qElemNumber},k&&S&&"0"!==B()&&t.createElement("div",{className:N([Ia.bar,m&&Ia.barWithCheckbox,R&&(m?Ia.barSelectedWithCheckbox:Ia.barSelected)]),style:{width:(e=>{const t=String(e),n="%"===t.substring(t.length-1),r=parseFloat(n?t:e),o=m?"(".concat(29,"px + ").concat(6,"px)"):"".concat(10,"px");return"calc(".concat(n?r:r/L*100,"% - ").concat(o,")")})(k.qFrequency)}}),t.createElement(v,{item:!0,style:K,className:N([Ia.cell,Ia.selectedCell]),title:"".concat(F)},0===H.length?W({lbl:F,color:"inherit"}):(e=>{let{lbls:t}=e;const n=t.map(((e,t)=>{let[n,r]=e;return j({ix:t,highlighted:r,lbl:n})}));return m?z({lbl:n}):n})({lbls:U})),"N"!==y&&t.createElement(v,{item:!0,style:{display:"flex",alignItems:"center"},className:Ia.frequencyCount},t.createElement(E,{noWrap:!0,color:"inherit",variant:"body2",className:N([g&&Ia.labelDense,Ia.labelText,O&&M()&&Ia.excludedTextWithCheckbox])},B())),(V||G)&&t.createElement(v,{item:!0,className:Ia.icon},V&&t.createElement(Vi,{style:$,size:"small"}),G&&t.createElement(ya,{style:$,size:"small"}))))}const Da={styledScrollbars:"".concat("ListBox","-styledScrollbars")},Pa=Wo(oa)((()=>({["&.".concat(Da.styledScrollbars)]:{scrollbarColor:"".concat("#BBB"," ").concat("#f1f1f1"),"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:"#f1f1f1"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#BBB",borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}}})));function Na(e){let{model:o,selections:i,direction:a,height:s,width:c,listLayout:u="vertical",frequencyMode:p="N",histogram:f=!1,checkboxes:h=!1,update:m,fetchStart:g,postProcessPages:y,calculatePagesHeight:b=!1,dense:v=!1,keyboard:E={},showGray:C=!0,scrollState:x,selectDisabled:L=(()=>!1),setCount:S}=e;const[w]=wi(o),O=!(!w||!w.qListObject.qDimensionInfo.qIsOneAndOnlyOne),[q,R]=n(null),[I,k]=n(!1),{instantPages:_=[],interactionEvents:A,select:T}=ma({layout:w,selections:i,pages:q,checkboxes:h,selectDisabled:L,doc:document,isSingleSelect:O}),D=d(null),P=d({queue:[],validPages:!1}),N=d({pages:[]}),M=l((e=>{if(!q||!P.current.validPages)return!1;P.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)}),[w,q]),j=l(((e,t)=>{P.current.queue.push({start:e,stop:t});!!D.current&&D.current._listRef.state.isScrolling;return P.current.queue.length>10&&P.current.queue.shift(),clearTimeout(P.current.timeout),k(!0),new Promise((e=>{P.current.timeout=setTimeout((()=>{const t=P.current.queue.slice(-1)[0],n=o.getListObjectData("/qListObjectDef",[{qTop:t.start>100?t.start-100:0,qHeight:100,qLeft:0,qWidth:1},{qTop:t.start,qHeight:100,qLeft:0,qWidth:1}]).then((t=>{const n=y?y(t):t;P.current.validPages=!0,N.current.pages=n,R(n),k(!1),e()}));g&&g(n)}),0)}))}),[w]),z=()=>{if(P.current.queue=[],P.current.validPages=!1,D.current){if(D.current.resetloadMoreItemsCache(!0),w&&w.qSelectionInfo.qInSelections)return;D.current._listRef.scrollToItem(0)}};m&&m.call(null,z),r((()=>{z(),"function"==typeof S&&w&&S(w.qListObject.qSize.qcy)}),[w,w&&w.qListObject.qSize.qcy]),r((()=>{_&&!I&&R(_)}),[_]);const[F,H]=n(!1);if(r((()=>{x&&!F&&D.current&&(D.current._listRef.scrollToItem(x.initScrollPos),H(!0))}),[D.current]),!w)return null;const U="horizontal"!==u,W=w.qListObject.qSize.qcy,$=q&&q.length&&b?(e=>{const t=e.some((e=>e.qArea.qHeight<100)),n=Math.max(...e.map((e=>e.qArea.qTop+e.qArea.qHeight)));return t?n:W})(q):W,{itemSize:V,listHeight:G}=function(e){let{isVertical:t,checkboxes:n,dense:r,height:o}=e,i=n?40:33;r&&(i=20);const a=t?i:200;return{itemSize:a,listHeight:o||8*a}}({isVertical:U,checkboxes:h,dense:v,height:s}),K=w&&w.qListObject.qDimensionInfo.qLocked,{frequencyMax:Z}=w;return t.createElement(la,{isItemLoaded:M,itemCount:$||1,loadMoreItems:j,threshold:0,minimumBatchSize:100,ref:D},(e=>{let{onItemsRendered:n,ref:r}=e;return P.current.listRef=r,t.createElement(Pa,{direction:"rtl"===a?"rtl":"ltr","data-testid":"fixed-size-list",useIsScrolling:!0,height:G,width:c,itemCount:$,layout:u,className:Da.styledScrollbars,itemData:B(B({isLocked:K,column:!U,pages:q},K||L()?{}:A),{},{checkboxes:h,dense:v,frequencyMode:p,isSingleSelect:O,actions:{select:T,confirm:()=>i&&i.confirm.call(i),cancel:()=>i&&i.cancel.call(i)},frequencyMax:Z,histogram:f,keyboard:E,showGray:C}),itemSize:V,onItemsRendered:e=>{x&&x.setScrollPos(e.visibleStopIndex),n(B({},e))},ref:r},Ta)}))}const Ma=e=>B(B({},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"}}]}),ja=e=>B(B({},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"}}]}),za=e=>B(B({},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"}}]}),Fa=e=>B(B({},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 Ba=e=>{let{layout:t,model:n,translator:r}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:Ma,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{n.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:za,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{n.selectListObjectPossible("/qListObjectDef")}},{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:ja,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{n.selectListObjectAlternative("/qListObjectDef")}},{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:Fa,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{n.selectListObjectExcluded("/qListObjectDef")}}]};const Ha=e=>B(B({},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 Ua(e){const t=Ho(),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 Wa="njs-cell-action",$a=t.forwardRef(((e,n)=>{let{ariaExpanded:r=!1,item:o,addAnchor:i=!1}=e;const a=Ho(),{hidden:s,disabled:l,style:c,hasSvgIconShape:u}=Ua(o);if(s)return null;const p=o.keyboardAction?e=>["Enter"," ","Spacebar"].includes(e.key)&&o.keyboardAction():null;return t.createElement(x,{ref:i?null:n,title:o.label,onClick:o.action,onKeyDown:p,disabled:l,style:c,className:Wa,size:"large","aria-expanded":r,"aria-controls":"moreMenuList"},u&&Wi(o.getSvgIconShape()),i&&t.createElement("div",{ref:n,style:{bottom:-a.spacing(.5),right:0,position:"absolute",width:"100%",height:0}}))})),Va=e=>B(B({},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"}}]}),Ga=e=>B(B({},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 Ka=e=>Wi(Ga(e));const Za={icon:"".concat("More","-icon")},Xa=Wo(L)((e=>{let{theme:t}=e;return{["& .".concat(Za.icon)]:{color:t.palette.text.primary}}}));function Ja(e){let{item:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:i,hasSvgIconShape:a}=Ua(n);return o?null:t.createElement(w,{title:n.label,onClick:()=>{n.action(),r()},disabled:i,tabindex:"0"},a&&t.createElement(O,{className:Za.icon},Wi(n.getSvgIconShape())),t.createElement(E,{noWrap:!0},n.label))}const Ya=t.forwardRef(((e,n)=>{let{actions:r=[],show:o=!0,alignTo:i,popoverProps:a={},popoverPaperStyle:s={},onCloseOrActionClick:l=(()=>{})}=e;return r.length>0&&t.createElement(Xa,U({},a,{onClose:l,ref:n,open:o,anchorEl:i.current,getContentAnchorEl:null,container:i.current,disablePortal:!0,hideBackdrop:!0,style:{pointerEvents:"none"},transitionDuration:0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:B({pointerEvents:"auto",maxWidth:"250px"},s)}}),t.createElement(S,{id:"moreMenuList"},r.map(((e,n)=>t.createElement(Ja,{key:n,item:e,onActionClick:l})))))})),Qa={itemSpacing:"".concat("ActionsToolbar","-itemSpacing"),firstItemSpacing:"".concat("ActionsToolbar","-firstItemSpacing"),lastItemSpacing:"".concat("ActionsToolbar","-lastItemSpacing")},es=Wo(L)((e=>{let{theme:t}=e;return{["& .".concat(Qa.itemSpacing)]:{padding:t.spacing(0,.5)},["& .".concat(Qa.firstItemSpacing)]:{padding:t.spacing(0,.5,0,0)},["& .".concat(Qa.lastItemSpacing)]:{padding:t.spacing(0,0,0,.5)}}})),ts="njs-action-toolbar-popover",ns=t.forwardRef(((e,n)=>{let{ariaExpanded:r=!1,actions:o=[],first:i=!1,last:a=!1,addAnchor:s=!1}=e;return o.length>0?t.createElement(v,{item:!0,container:!0,gap:0,wrap:"nowrap"},o.map(((e,l)=>{let c=[];const u=i&&0===l,p=a&&o.length-1===l;return u&&!p&&(c=[Qa.firstItemSpacing]),p&&!u&&(c=[...c,Qa.lastItemSpacing]),u||p||0!==c.length||(c=[Qa.itemSpacing]),t.createElement(v,{item:!0,key:e.key,className:c.join(" ").trim()},t.createElement($a,{ariaExpanded:r,key:e.key,item:e,ref:0===l?n:null,addAnchor:s}))}))):null})),rs={pointerEvents:"none"},os={vertical:"top",horizontal:"right"},is={vertical:"bottom",horizontal:"right"};function as(e){let{show:o=!0,actions:i=[],maxItems:s=3,selections:l={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:c={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:u={show:!1,anchorEl:null},focusHandler:p=null,actionsRefMock:h=null}=e;const m=function(e){let{api:t,onConfirm:n=(()=>{}),onCancel:r=(()=>{}),onKeyDeactivate:o=(()=>{})}=e;const{translator:i}=f(si);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:Ga},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(),action:()=>{r(),t.cancel()},keyboardAction:e=>{o(e),r(),t.cancel()},getSvgIconShape:Va},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(),action:()=>{n(),t.confirm()},keyboardAction:e=>{o(e),n(),t.confirm()},getSvgIconShape:ga}]}(l),{translator:g,keyboardNavigation:y}=f(si),[b,E]=n(!1),[C,x]=n(c.enabled),[L,S]=n(c.actions),[w,O]=n(c.alignTo),R=d(),I=d(),k=Ho(),_=a((()=>({margin:k.spacing(.5,0)}))),A=e=>{const t=I.current||h;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]};r((()=>()=>E(!1)),[u.show]),r((()=>{x(c.enabled)}),[c.enabled]),r((()=>{if(!p)return;p.on("focus_toolbar_first",(()=>{const e=A(!1);e&&e.focus()})),p.on("focus_toolbar_last",(()=>{const e=A(!0);e&&e.focus()}))}),[]);const T=a((()=>i.filter((e=>!e.hidden))),[i]);if(!l.show&&0===T.length)return null;const D={key:"more",label:g.get("Menu.More"),getSvgIconShape:Ha,hidden:!1,enabled:()=>C,action:()=>E(!b)};if(T.length>s){const e=T.splice(-(T.length-s)-1);x(!0),S([...e,...c.actions]),O(R)}const P=y&&p&&p.refocusContent?e=>{if("Tab"!==e.key)return;(e.shiftKey&&A(!1)===e.target||!e.shiftKey&&A(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),p.refocusContent())}:null,N=T.length>0,M=L.length>0,j=N&&l.show||M&&l.show,z=t.createElement(v,{ref:I,onKeyDown:P,container:!0,gap:0,wrap:"nowrap"},N&&t.createElement(ns,{actions:T,first:!0,last:!M&&!l.show}),M&&t.createElement(ns,{ref:R,ariaExpanded:b,actions:[D],first:!N,last:!l.show,addAnchor:!0}),j&&t.createElement(v,{item:!0,className:Qa.itemSpacing,style:_},t.createElement(q,{orientation:"vertical"})),l.show&&t.createElement(ns,{actions:m,first:!N&&!M,last:!0}),b&&t.createElement(Ya,{show:b,actions:L,alignTo:w,popoverProps:c.popoverProps,popoverPaperStyle:c.popoverPaperStyle,onCloseOrActionClick:()=>{E(!1)}}));return u.show?t.createElement(es,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:u.show,anchorEl:u.anchorEl,anchorOrigin:os,transformOrigin:is,hideBackdrop:!0,style:rs,PaperProps:{className:ts,style:{pointerEvents:"auto",padding:k.spacing(1,1)}}},z):o&&z}var ss=e=>Wi((e=>B(B({},e),{},{shapes:[{type:"path",attrs:{d:"M15.7873809,13.80959 C16.1870614,14.209868 15.9872212,15.1104934 15.4876205,15.5107714 C15.08794,15.9110493 14.1886588,16.2112578 13.7889782,15.8109798 L11.0911347,13.1091035 L10.9912145,12.5086866 L10.2917736,11.8082001 C9.19265216,12.5086866 7.89369045,13.0090341 6.49480859,13.0090341 C2.89768383,13.0090341 0,10.1070188 0,6.50451703 C0,2.90201529 2.89768383,0 6.49480859,0 C10.0919334,0 12.9896172,2.90201529 12.9896172,6.50451703 C12.9896172,7.90548992 12.4900165,9.20639333 11.7905756,10.3071577 L12.4900165,11.0076442 L13.0895373,11.1077137 L15.7873809,13.80959 Z M11.2909749,6.50451703 C11.2909749,5.20361362 10.7913743,4.00277971 9.89209309,3.00208478 C8.9928119,2.10145935 7.79377031,1.60111188 6.49480859,1.60111188 C5.19584688,1.60111188 3.99680529,2.10145935 2.99760397,3.00208478 C2.09832278,4.00277971 1.59872212,5.20361362 1.59872212,6.50451703 C1.59872212,7.80542043 2.09832278,9.00625434 2.99760397,9.90687978 C3.89688516,10.8075052 5.09592674,11.3078527 6.49480859,11.3078527 C7.79377031,11.4079222 8.9928119,10.9075747 9.89209309,9.90687978 C10.7913743,9.00625434 11.2909749,7.80542043 11.2909749,6.50451703 Z"}}]}))(e));function ls(e){let{selections:o,model:i,keyboard:a,dense:s=!1,visible:l=!0}=e;const{translator:c}=f(si),[u,p]=n(""),d=Ho(),h=async()=>{if(o.isModal())try{await i.abortListObjectSearch("/qListObjectDef")}finally{p("")}};r((()=>{l||h()}),[l]),r((()=>(o.on("deactivated",h),()=>{o.removeListener&&o.removeListener("deactivated",h)})),[]);return l?t.createElement(R,{startAdornment:t.createElement(I,{position:"start"},t.createElement(ss,{size:s?"small":"normal"})),className:"search",sx:[{border:"none",borderRadius:0,"& fieldset":{border:"1px solid ".concat(d.palette.divider),borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"}},s&&{fontSize:12,paddingLeft:d.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}],size:"small",fullWidth:!0,placeholder:c.get("Listbox.Search"),value:u,onFocus:()=>{o.isModal()||o.begin(["/qListObjectDef"])},onChange:async e=>(p(e.target.value),e.target.value.length?i.searchListObjectFor("/qListObjectDef",e.target.value):h()),onKeyDown:e=>{let t;switch(e.key){case"Enter":t=i.acceptListObjectSearch("/qListObjectDef",!0),p("");break;case"Escape":t=o.isActive()&&o.cancel(),e.preventDefault(),e.stopPropagation()}return t},inputProps:{tabIndex:!a||a.enabled&&!a.active?-1:0}}):null}function cs(e){return Object.keys(Y.prototype).forEach((t=>{e[t]=Y.prototype[t]})),Y.init(e),e}function us(e,t){const[n]=zi(e),[o]=wi(t),i=t?t.id:null,[a]=Ti(),[s]=Pi(),l=a.get(e.id);let c=s.get(i);return r((()=>{n&&t&&!c&&(c=function(e){let t,{appSelections:n,appModal:r,model:o}=e,i=!1,a=!1;const s={id:o.id,setLayout(e){t=e},begin(e){const t=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",t),t.isPrevented()?Promise.resolve():(i=!0,this.emit("activated"),r.begin(o,e,!0))},clear(){return a=!1,this.emit("cleared"),t.qListObject?o.clearSelections("/qListObjectDef"):o.resetMadeSelections()},confirm(){return a=!1,i=!1,this.emit("confirmed"),this.emit("deactivated"),r.end(!0)},cancel(){return a=!1,i=!1,this.emit("canceled"),this.emit("deactivated"),r.end(!1)},async select(e){const t=this.begin([e.params[0]]);if(!n.isModal())return!1;await t;const r=await o[e.method](...e.params);return a="resetMadeSelections"!==e.method,!!r||(o.resetMadeSelections(),!1)},canClear:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked&&!t.qListObject.qDimensionInfo.qIsOneAndOnlyOne:a,canConfirm:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:a,canCancel:()=>!(t&&t.qListObject&&t.qListObject.qDimensionInfo&&t.qListObject.qDimensionInfo.qLocked),isActive:()=>i,isModal:()=>n.isModal(o),goModal:e=>r.begin(o,e,!1),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return cs(s),s}({appSelections:n,appModal:l,model:t}),s.set(i,c),s.dispatch(!0))}),[n,t]),r((()=>{c&&c.setLayout(o)}),[c,o]),[c]}function ps(e){let{alignTo:n,show:o,close:i,app:a,fieldName:s,stateName:c="$"}=e;const u=o&&Boolean(n.current),p=Ho(),[h]=qi({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:c,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:[s]}}},a,s,c),m=l((()=>{h.lock("/qListObjectDef")}),[h]),g=l((()=>{h.unlock("/qListObjectDef")}),[h]),{translator:y}=f(si),b=d(),[E]=us(a,h),[C]=wi(h);if(r((()=>{E&&u&&(E.isModal(h)||E.goModal("/qListObjectDef"))}),[E,u]),!h||!C||!y)return null;const S=!0===C.qListObject.qDimensionInfo.qLocked,w=(e,t)=>{const n="escapeKeyDown"!==t;E.noModal(n),i()},O=Ba({layout:C,model:h,translator:y}),q=C.qListObject.qDimensionInfo.qStateCounts,R=q.qSelected+q.qSelectedExcluded+q.qLocked+q.qLockedExcluded>0;return t.createElement(L,{open:u,onClose:w,anchorEl:n.current,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"250px"}}},t.createElement(v,{container:!0,direction:"column",gap:0},t.createElement(v,{item:!0,container:!0,style:{padding:p.spacing(1)}},t.createElement(v,{item:!0},S?t.createElement(x,{onClick:g,disabled:!S,size:"large"},t.createElement(Vi,{title:y.get("Listbox.Unlock")})):t.createElement(x,{onClick:m,disabled:!R,size:"large"},t.createElement(Gi,{title:y.get("Listbox.Lock")}))),t.createElement(v,{item:!0,xs:!0}),t.createElement(v,{item:!0},t.createElement(as,{more:{enabled:!S,actions:O,alignTo:b,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:E,onConfirm:w,onCancel:()=>w(0,"escapeKeyDown")}}))),t.createElement(v,{item:!0,xs:!0},t.createElement("div",{ref:b}),t.createElement(ls,{selections:E,model:h,visible:!0}),t.createElement(Na,{model:h,selections:E,direction:"ltr"}))))}function ds(e){let{field:r,api:o,stateIx:i=0,skipHandleShowListBoxPopover:a=!1,moreAlignTo:s=null,onClose:l=(()=>{})}=e;const{translator:c}=f(si),u=s||d(),p=Ho(),[h,m]=n(!1),g=e=>{e.currentTarget.contains(e.target)&&m(!h)},y=()=>{m(!1),l()},b=r.selections[i];void 0===b.qTotal&&(b.qTotal=0);const C=b.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},L=(C.qSelected+C.qLocked)/b.qTotal,S=C.qAlternative/b.qTotal,w=(C.qExcluded+C.qLockedExcluded+C.qSelectedExcluded)/b.qTotal,O=C.qSelected+C.qSelectedExcluded+C.qLocked+C.qLockedExcluded,q=0===O&&0===b.qTotal;let R="";b.qTotal===O&&b.qTotal>1?R=c.get("CurrentSelections.All"):O>1&&b.qTotal?R=c.get("CurrentSelections.Of",[O,b.qTotal]):b.qSelectedFieldSelectionInfo&&(R=b.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==r.states[i]&&(R="".concat(r.states[i],": ").concat(R));const I=[{color:p.palette.selected.main,ratio:L},{color:p.palette.selected.alternative,ratio:S},{color:p.palette.selected.excluded,ratio:w}];I.forEach(((e,t)=>{e.offset=t?I[t-1].offset+I[t-1].ratio:0}));let k=null,_=null,A=null,T=null;return s||(k=t.createElement(v,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:b.qLocked?"0.3":""}},t.createElement(E,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},b.qField),t.createElement(E,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},R)),b.qLocked?_=t.createElement(v,{item:!0},t.createElement(x,{size:"large"},t.createElement(Vi,null))):b.qOneAndOnlyOne||(_=t.createElement(v,{item:!0},t.createElement(x,{title:c.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),o.clearField(b.qField,r.states[i])},size:"large"},t.createElement($i,null)))),A=t.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===q&&I.map((e=>t.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,"%")}})))),T=t.createElement(v,{container:!0,gap:1,ref:u,sx:{backgroundColor:p.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:p.palette.action.hover}},onClick:!1===a&&g||null},k,_,A,h&&t.createElement(ps,{alignTo:u,show:h,close:y,app:o.model,fieldName:b.qField,stateName:r.states[i]}))),s?t.createElement(ps,{alignTo:u,show:!0,close:y,app:o.model,fieldName:b.qField,stateName:r.states[i]}):T}var fs=e=>Wi((e=>B(B({},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 hs={item:"".concat("MultiState","-item")},ms=Wo(v)((e=>{let{theme:t}=e;return{["&.".concat(hs.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function gs(e){let{field:r,api:o,moreAlignTo:i=null,onClose:a=(()=>{})}=e;const[s,l]=n(!!i),[c,u]=n(-1),[p,h]=n(i?i.current:null),m=i||d(),{translator:g}=f(si),y=g.get("Selection.ClearAllStates"),b=()=>{u(-1),a()};let C=null;i||(C=t.createElement(t.Fragment,null,t.createElement(v,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(k,{style:{padding:"0px 8px"},color:"secondary",badgeContent:r.states.length},t.createElement(E,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},r.name))),t.createElement(v,{item:!0},t.createElement("div",{style:{width:"12px"}})),t.createElement(v,{item:!0},t.createElement(x,{size:"large"},t.createElement(fs,null)))));const S=t.createElement(_,{dense:!0},t.createElement(A,{title:y,onClick:()=>{r.states.forEach((e=>o.clearField(r.name,e)))}},t.createElement(T,{variant:"contained",fullWidth:!0},y)),r.states.map(((e,n)=>t.createElement(A,{key:n,title:r.name,onClick:e=>((e,t)=>{e.stopPropagation(),l(!1),u(t)})(e,n)},t.createElement(D,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},t.createElement(ds,{field:r,api:o,stateIx:n,skipHandleShowListBoxPopover:!0})))))),w=t.createElement(L,{open:s,onClose:()=>{l(!1),a()},anchorEl:p,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},S),O=i?w:t.createElement(ms,{container:!0,gap:0,className:hs.item,onClick:e=>{e.currentTarget.contains(e.target)&&(h(e.currentTarget),m.current=e.currentTarget,l(!s))}},C,s&&w,c>-1&&t.createElement(ps,{alignTo:m,show:c>-1,close:b,app:o.model,fieldName:r.selections[c].qField,stateName:r.states[c]}));return i&&c>-1?t.createElement(ps,{alignTo:m,show:c>-1,close:b,app:o.model,fieldName:r.selections[c].qField,stateName:r.states[c]}):O}const ys={item:"".concat("More","-item"),badge:"".concat("More","-badge")},bs=Wo(v)((e=>{let{theme:t}=e;return{["&.".concat(ys.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(ys.badge)]:{padding:t.spacing(0,1)}}}));function vs(e){let{items:r=[],api:o}=e;const i=Ho(),[a,s]=n(!1),[l,c]=n(-1),[u,p]=n(null),f=d(),h=()=>{c(-1)};let m=null;return l>-1&&(m=r[l].states.length>1?t.createElement(gs,{field:r[l],api:o,moreAlignTo:f,onClose:h}):t.createElement(ds,{field:r[l],api:o,skipHandleShowListBoxPopover:!0,moreAlignTo:f,onClose:h})),t.createElement(bs,{container:!0,gap:0,className:ys.item,onClick:e=>{e.currentTarget.contains(e.target)&&(p(e.currentTarget),f.current=e.currentTarget,s(!a))}},t.createElement(v,{item:!0},t.createElement(D,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText}},t.createElement(E,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",r.length))),t.createElement(v,{item:!0},t.createElement(x,{size:"large"},t.createElement(fs,null))),a&&t.createElement(L,{open:a,onClose:()=>{s(!1)},anchorEl:u,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},t.createElement(_,{dense:!0},r.map(((e,n)=>t.createElement(A,{key:n,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),c(t)})(e,n)},t.createElement(D,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?t.createElement(gs,{field:e,api:o}):t.createElement(ds,{field:e,api:o}))))))),m)}function Es(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"$";e.qSelections.forEach((e=>{const r=e.qField,o=t[r]=t[r]||{name:r,states:[],selections:[]};-1===o.states.indexOf(n)&&(o.states.push(n),o.selections.push(e))}))}function Cs(e){let{api:o,app:i}=e;const a=Ho(),[s]=Ii(i),[l]=wi(s),[c,u]=n({items:[],more:[]}),[p]=Mi(),[d,f]=Hi(),[h,m]=n(0);return r((()=>{if(!f)return;const{width:e}=f,t=Math.floor(e)-72,n=Math.floor(t/120);m(n)}),[f]),r((()=>{if(!(i&&s&&l&&h))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&Es(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>Es(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e]))}(l);u((t=>{const n=e;if((()=>{const e=p.get(i.id);return e&&"njsListbox"===e.genericType})()&&n.length+1===t.items.length){const e=t.items.filter((e=>!1===n.some((t=>e.name===t.name))))[0],{qField:r}=e.selections[0];e.selections=[{qField:r}];const o=t.items.indexOf(e);n.splice(o,0,e)}let r=[];return h<n.length&&(r=n.splice(h-n.length)),{items:n,more:r}}))}),[i,s,l,o.isInModal(),h]),t.createElement(v,{ref:d,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},c.items.map((e=>t.createElement(v,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(120,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},e.states.length>1?t.createElement(gs,{field:e,api:o}):t.createElement(ds,{field:e,api:o})))),c.more.length>0&&t.createElement(v,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(72,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},t.createElement(vs,{items:c.more,api:o})))}var xs=e=>Wi((e=>B(B({},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 Ls=e=>Wi((e=>B(B({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));function Ss(e){let{api:n,app:r}=e;const{translator:o}=f(si),[i]=ki(r);return t.createElement(v,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},t.createElement(v,{item:!0},t.createElement(x,{style:{marginRight:"8px"},disabled:!i||!i.canGoBack,title:o.get("Navigate.Back"),onClick:()=>n.back(),size:"large"},t.createElement(xs,null))),t.createElement(v,{item:!0},t.createElement(x,{style:{marginRight:"8px"},disabled:!i||!i.canGoForward,title:o.get("Navigate.Forward"),onClick:()=>n.forward(),size:"large"},t.createElement(Ls,null))),t.createElement(v,{item:!0},t.createElement(x,{disabled:!i||!i.canClear,title:o.get("Selection.ClearAll"),onClick:()=>n.clear(),size:"large"},t.createElement(Ka,null))))}function ws(e){let{app:n}=e;const r=Ho(),[o]=zi(n);return o?t.createElement(v,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:r.palette.background.paper,minHeight:"40px"}},t.createElement(v,{item:!0,style:{borderRight:"1px solid ".concat(r.palette.divider)}},t.createElement(Ss,{api:o,app:n})),t.createElement(v,{item:!0,xs:!0,style:{backgroundColor:r.palette.background.darker,overflow:"hidden"}},t.createElement(Cs,{api:o,app:n}))):null}function Os(e){let{element:n,app:r}=e;return h.createPortal(t.createElement(ws,{app:r}),n)}var qs=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Rs=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}}(),Is=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ks=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},_s=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},As=void 0;As="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;var Ts=null,Ds=null,Ps=As.clearTimeout,Ns=As.setTimeout,Ms=As.cancelAnimationFrame||As.mozCancelAnimationFrame||As.webkitCancelAnimationFrame,js=As.requestAnimationFrame||As.mozRequestAnimationFrame||As.webkitRequestAnimationFrame;function zs(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0,a=void 0,s=void 0,l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;a(this),this.__resizeRAF__&&Ts(this.__resizeRAF__),this.__resizeRAF__=Ds((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}};var c=!1,u="";r="animationstart";var p="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(c=!0),!1===c)for(var h=0;h<p.length;h++)if(void 0!==f.style[p[h]+"AnimationName"]){u="-"+p[h].toLowerCase()+"-",r=d[h],c=!0;break}t="@"+u+"keyframes "+(n="resizeanim")+" { from { opacity: 0; } to { opacity: 0; } } ",o=u+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(l)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){var u=i.ownerDocument,p=As.getComputedStyle(i);p&&"static"===p.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){var r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',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)}}(u),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=u.createElement("div")).className="resize-triggers";var d=u.createElement("div");d.className="expand-trigger",d.appendChild(u.createElement("div"));var f=u.createElement("div");f.className="contract-trigger",i.__resizeTriggers__.appendChild(d),i.__resizeTriggers__.appendChild(f),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!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(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!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==Ms||null==js?(Ts=Ps,Ds=function(e){return Ns(e,20)}):(Ts=function(e){var t=_s(e,2),n=t[0],r=t[1];Ms(n),Ps(r)},Ds=function(e){var t=js((function(){Ps(n),e()})),n=Ns((function(){Ms(t),e()}),20);return[t,n]});var Fs=function(e){function t(){var e,n,r;qs(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=ks(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={height:r.props.defaultHeight||0,width:r.props.defaultWidth||0},r._onResize=function(){var e=r.props,t=e.disableHeight,n=e.disableWidth,o=e.onResize;if(r._parentNode){var i=r._parentNode.offsetHeight||0,a=r._parentNode.offsetWidth||0,s=window.getComputedStyle(r._parentNode)||{},l=parseInt(s.paddingLeft,10)||0,c=parseInt(s.paddingRight,10)||0,u=parseInt(s.paddingTop,10)||0,p=parseInt(s.paddingBottom,10)||0,d=i-u-p,f=a-l-c;(!t&&r.state.height!==d||!n&&r.state.width!==f)&&(r.setState({height:i-u-p,width:a-l-c}),o({height:i,width:a}))}},r._setRef=function(e){r._autoSizer=e},ks(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,p),Rs(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=zs(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.disableHeight,o=e.disableWidth,i=e.style,a=this.state,s=a.height,l=a.width,c={overflow:"visible"},p={},d=!1;return r||(0===s&&(d=!0),c.height=0,p.height=s),o||(0===l&&(d=!0),c.width=0,p.width=l),u("div",{className:n,ref:this._setRef,style:Is({},c,i)},!d&&t(p))}}]),t}();Fs.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};const Bs={listBoxHeader:"".concat("ListBoxInline","-listBoxHeader"),screenReaderOnly:"".concat("ListBoxInline","-screenReaderOnly")},Hs=Wo(v)((()=>({["& .".concat(Bs.listBoxHeader)]:{alignSelf:"center",display:"inline-flex"},["& .".concat(Bs.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"}})));function Us(e){let{options:o={}}=e;const{direction:i,frequencyMode:a,histogram:s=!1,listLayout:c,search:u=!0,focusSearch:p=!1,toolbar:h=!0,rangeSelect:m=!0,checkboxes:g=!1,model:y,selections:b,update:C,fetchStart:L,dense:S=!1,selectDisabled:w=(()=>!1),postProcessPages:O,calculatePagesHeight:q,showGray:R=!0,scrollState:I,setCount:k,shouldConfirmOnBlur:_}=o,A=Ho(),T=l((()=>{y.lock("/qListObjectDef")}),[y]),D=l((()=>{y.unlock("/qListObjectDef")}),[y]),{translator:P,keyboardNavigation:N}=f(si),M=d(),[j,z]=(()=>{const[e,t]=n({}),r=l((e=>{t({current:e})}),[t]);return[e,r]})(),[F]=wi(y),[B,H]=n(!1),[U,W]=n(!1),[$,V]=n(!1),G=qa({setKeyboardActive:V}),K={enabled:N,active:$};r((()=>{const e=()=>{H(!0)},t=()=>{H(!1),"toggle"===u&&W(!1)};return b&&(b.isModal()||(b.on("deactivated",t),b.on("activated",e)),H(b.isActive())),()=>{b&&b.removeListener&&(b.removeListener("deactivated",e),b.removeListener("activated",t))}}),[b]);const Z=d(null);if(function(e,t,o){const[i,a]=n(!1),s=d(i),l=e=>{s.current=e,a(e)};r((()=>{if(!o)return;const n=n=>{const r=e.current&&e.current.contains(n.target),o=s.current;r||o?r&&l(!1):(t&&t.confirm.call(t),l(!0))};return document.addEventListener("mousedown",n),document.addEventListener("keydown",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("keydown",n)}}),[e,t,o])}(Z,b,_),r((()=>{if(j&&j.current&&(u&&p||"toggle"===u&&U)){const e=j.current.querySelector("input");e&&e.focus()}}),[j&&j.current,U,u,p]),!y||!F||!P)return null;const X=!0===F.qListObject.qDimensionInfo.qLocked,J=h?Ba({layout:F,model:y,translator:P}):[],Y=F.qListObject.qDimensionInfo.qStateCounts,Q=Y.qSelected+Y.qSelectedExcluded+Y.qLocked+Y.qLockedExcluded>0,ee=(!0===u||"toggle"===u&&U)&&!w(),te=49+(ee?S?27:40:0)+(S?39:49),ne=()=>{W(!U)};return t.createElement(Hs,{className:"listbox-container",container:!0,tabIndex:K.enabled&&!K.active?0:-1,direction:"column",gap:0,style:{height:"100%",minHeight:"".concat(te,"px"),flexFlow:"column nowrap"},onKeyDown:G,ref:Z},h&&t.createElement(v,{item:!0,container:!0,style:{padding:A.spacing(1)}},t.createElement(v,{item:!0},X?t.createElement(x,{tabIndex:-1,onClick:D,disabled:!X,size:"large"},t.createElement(Vi,{title:P.get("Listbox.Unlock")})):"toggle"!==u||Q?t.createElement(x,{onClick:T,tabIndex:-1,disabled:!Q,size:"large"},t.createElement(Gi,null)):t.createElement(x,{onClick:ne,tabIndex:-1,title:P.get("Listbox.Search"),size:"large"},t.createElement(ss,null))),t.createElement(v,{item:!0,className:Bs.listBoxHeader},t.createElement(E,{variant:"h6",noWrap:!0},F.title||F.qListObject.qDimensionInfo.qFallbackTitle)),t.createElement(v,{item:!0,xs:!0}),t.createElement(v,{item:!0},t.createElement(as,{more:{enabled:!X,actions:J,alignTo:M,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:B,api:b,onConfirm:()=>{},onCancel:()=>{}}}))),t.createElement(v,{item:!0,container:!0,direction:"column",style:{height:"100%",minHeight:"".concat(te,"px")},role:"region","aria-label":P.get("Listbox.ResultFilterLabel")},t.createElement(v,{item:!0,ref:z},t.createElement("div",{className:Bs.screenReaderOnly},P.get("Listbox.Search.ScreenReaderInstructions")),t.createElement(ls,{selections:b,model:y,dense:S,keyboard:K,visible:ee,searchContainerRef:z})),t.createElement(v,{item:!0,xs:!0},t.createElement("div",{ref:M}),t.createElement("div",{className:Bs.screenReaderOnly},P.get("Listbox.ScreenReaderInstructions")),t.createElement(Fs,null,(e=>{let{height:n,width:r}=e;return t.createElement(Na,{model:y,selections:b,direction:i,listLayout:c,frequencyMode:a,histogram:s,rangeSelect:m,checkboxes:g,height:n,width:r,update:C,fetchStart:L,postProcessPages:O,calculatePagesHeight:q,dense:S,selectDisabled:w,keyboard:K,showGray:R,scrollState:I,setCount:k})})))))}const Ws="ON_THE_FLY",$s="EXISTING",Vs="INTERNAL",Gs="EXTERNAL";function Ks(e){let{app:o,fieldIdentifier:i,qId:a,stateName:s,options:l}=e;const{objectSource:c,selectionsApi:u}=function(e){let{qId:t,options:n}=e;const r={};return r.objectSource=t||n.sessionModel?$s:Ws,r.selectionsApi=n.selectionsApi?Gs:Vs,r}({qId:a,options:l}),[p,d]=n(0);r((()=>{if(p)throw new Error("Source or selection Api can not change after a listbox has been mounted");d(p+1)}),[c,u]);const f=c===$s?function(e){let{app:t,qId:o,options:i={}}=e;const[a,s]=n(),[l]=Ci(),{sessionModel:c}=i;return r((()=>{c?s(c):async function(){const e=l.get(o);if(e)s(e);else{const e=await t.getObject(o);l.set(e.id,e),s(e)}}()}),[]),a}({app:o,qId:a,options:l}):function(e){let{app:t,fieldIdentifier:o,stateName:i,options:a={}}=e;const[s,l]=n(""),[c,u]=n(!0),[p,d]=n();r((()=>{const e=a.histogram||"N"!==a.frequencyMode;o.qLibraryId&&e?async function(){try{const e=await t.getDimension(o.qLibraryId),n=await e.getLayout();l(n.qDim.qFieldDefs?n.qDim.qFieldDefs[0]:""),u(!1)}catch(e){throw u(!1),l({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}():u(!1)}),[]);const{title:f,properties:h={}}=a;let{frequencyMode:m,histogram:g=!1}=a;switch(s&&s.failedToFetchFieldDef&&(g=!1,m="N"),!0){case["none","N","NX_FREQUENCY_NONE"].includes(m):m="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(m):m="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(m):m="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(m):m="R";break;default:m="N"}const y={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:i,qShowAlternatives:!0,qFrequencyMode:g&&"N"===m?"V":m,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},title:f};let b;if(Me(!0,y,h),o.qLibraryId?(y.qListObjectDef.qLibraryId=o.qLibraryId,b=o.qLibraryId):(y.qListObjectDef.qDef.qFieldDefs=[o],b=o),"N"!==m||g){const e=o.qLibraryId?s:b;y.frequencyMax={qValueExpression:"Max(AGGR(Count([".concat(e,"]), [").concat(e,"]))")}}const[v]=qi(y,c?null:t,b,i);return r((()=>{v&&d(v)}),[v]),p}({app:o,fieldIdentifier:i,stateName:s,options:l}),h=u===Gs?l.selectionsApi:us(o,f)[0];if(!h||!f)return null;const m=B(B({},l),{},{selections:h,model:f});return t.createElement(Us,{options:m})}function Zs(e){let{element:n,app:r,fieldIdentifier:o,qId:i,stateName:a="$",options:s={}}=e;return h.createPortal(t.createElement(Ks,{app:r,fieldIdentifier:o,qId:i,stateName:a,options:s}),n)}const Xs=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function Js(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function Ys(){return Xs.map(Js).join("")}function Qs(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function el(e,t){let n=0;for(let r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function tl(e){let{sn:t,properties:n,fields:r}=e;if(!r.length)return;const o=t.qae.data.targets[0];if(!o)return;const{propertyPath:i}=o,a=i.split("/");let s=n;for(let e=0;e<a.length;e++){const t=a[e];s=t?s[t]:s}const l=function(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?(e=>({qDef:{qFieldDefs:[e]}}))(e):B(B({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||Ys(),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),Qs(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 el(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?(e=>({qDef:{qDef:e}}))(e):B(B({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||Ys(),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),Qs(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];el(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}({dc:s,def:o,properties:n});r.forEach((e=>{const t=function(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}(e);"measure"===t?l.addMeasure(e):l.addDimension(e)}))}var nl=(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},rl=(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]},ol=e=>0===Object.keys(e).length&&e.constructor===Object;var il={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}};function al(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function sl(e,t){const n=Me(!0,{},t,e);return nl(n,"qOtherTotalSpec.qOtherCounted")||rl(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),nl(n,"qOtherTotalSpec.qOtherLimit")||rl(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function ll(e,t){return Me(!0,{},t,e)}function cl(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var ul={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===nl(e,t)&&rl(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:al,importCommonProperties:function(e,t,n){const r="masterobject"===nl(t,"properties.qInfo.qType")?"masterobject":nl(n,"qInfo.qType");rl(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:sl,createDefaultMeasure:ll,resolveValue:cl,getHypercubePath:function(e){const t=nl(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?(il.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,il.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=Me(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?rl(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||al(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=Me(!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=cl(i.max,r.dimensions.length,9007199254740991),s=cl(i.min,r.dimensions.length,0);return{maxDimensions:cl(o.max,a,9007199254740991),minDimensions:cl(o.min,s,0),maxMeasures:a,minMeasures:s}},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 s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.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 s;if(n>0)for(s=0;s<a.dimensions.length;++s)o.qDimensions.length<n?o.qDimensions.push(sl(a.dimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(sl(a.dimensions[s],i));else if(a.dimensions.length)for(s=0;s<a.dimensions.length;++s)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(sl(a.dimensions[s],i));if(a.excludedDimensions.length)for(s=0;s<a.excludedDimensions.length;++s)o.qDimensions.length<r?o.qDimensions.push(sl(a.excludedDimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(sl(a.excludedDimensions[s],i))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:i}=e;const a=t.data[0];let s;if(n>0)for(s=0;s<a.measures.length;++s)o.qMeasures.length<n?o.qMeasures.push(ll(a.measures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(ll(a.measures[s],i));else if(a.measures.length)for(s=0;s<a.measures.length;++s)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(ll(a.measures[s],i));if(a.excludedMeasures.length)for(s=0;s<a.excludedMeasures.length;++s)o.qMeasures.length<r?o.qMeasures.push(ll(a.excludedMeasures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(ll(a.excludedMeasures[s],i))},updateDimensionsOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.dimensions&&"function"==typeof n.dimensions.added){const e=nl(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=nl(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var pl={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=nl(o,n||""),a=i.qHyperCubeDef,s=r.data[0];if(a.qInterColumnSortOrder||(a.qInterColumnSortOrder=[]),s.dimensions.push(...a.qDimensions),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qDimensions&&s.excludedDimensions.push(...a.qLayoutExclude.qHyperCubeDef.qDimensions),s.measures.push(...a.qMeasures),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qMeasures&&s.excludedMeasures.push(...a.qLayoutExclude.qHyperCubeDef.qMeasures),s.interColumnSortOrder=a.qInterColumnSortOrder.concat(),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();il.isOrderedSubset(e,s.interColumnSortOrder)&&(s.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&&(ul.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!ol(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:[]},s=ul.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),l=nl(n,i||"").qHyperCubeDef,c=nl(s,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:p,maxMeasures:d,minMeasures:f}=ul.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=ul.getDefaultDimension(),defaultMeasure:m=ul.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,ul.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:p,maxMeasures:d,minMeasures:f})&&ul.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:p,maxMeasures:d,minMeasures:f,newHyperCubeDef:c}),ul.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:p,newHyperCubeDef:c,defaultDimension:h}),ul.addDefaultMeasures({exportFormat:t,maxMeasures:d,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),ul.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),ul.copyPropertyIfExist("qMaxStackedCells",l,c),ul.copyPropertyIfExist("qNoOfLeftDims",l,c),ul.copyPropertyOrSetDefault("qInitialDataFetch",l,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),ul.copyPropertyOrSetDefault("qMode",l,c,"S"),ul.copyPropertyOrSetDefault("qReductionMode",l,c,"N"),ul.copyPropertyOrSetDefault("qSortbyYValue",l,c),ul.copyPropertyOrSetDefault("qIndentMode",l,c),ul.copyPropertyOrSetDefault("qShowTotalsAbove",l,c),ul.importCommonProperties(s,t,n),ul.updateDimensionsOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),ul.updateMeasuresOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),a.qProperty=s,a}(e)};const dl=e=>nl(e,"data.targets.0.propertyPath"),fl=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return pl.exportProperties})(dl(e))},hl=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return pl.importProperties})(dl(e))},ml=async e=>{let{halo:t,model:n,cellRef:r,newType:o}=e;const i=await n.getFullPropertyTree(),a=r.current.getQae(),s=fl(a),l=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}),c=l.qae;return hl(c)({exportFormat:s({propertyTree:i,hypercubePath:ul.getHypercubePath(a)}),initialProperties:B({qInfo:{qType:o},visualization:o},nl(c,"properties.initial",{})),dataDefinition:nl(c,"data.targets.0.",{}),hypercubePath:ul.getHypercubePath(c)})},gl={hypercube:pl};var yl=e=>Wi((e=>B(B({},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 bl(e){let{d:n}=e;const r=Ho();let o="inherit",i=r.palette.success.main;n.missing?i=r.palette.warning.main:n.error&&(o="error",i=r.palette.error.main);const a={color:i},s=t.createElement(E,{style:{lineHeight:"30px",paddingRight:r.spacing(1)}},t.createElement(P,null,n.missing||n.error?t.createElement(yl,{style:a}):t.createElement(ya,{style:a})));return t.createElement(v,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},t.createElement(v,{item:!0},s),t.createElement(v,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},t.createElement(E,{noWrap:!0,component:"p"},t.createElement(E,{component:"span",variant:"subtitle2",color:o},n.description),t.createElement(E,{component:"span"}," "),t.createElement(E,{component:"span",variant:"subtitle2",color:n.error?"error":"inherit",style:{fontWeight:400}},n.label))))}function vl(e){let{data:n}=e;const r=Ho();return t.createElement(v,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},n.map(((e,n)=>{const o=e.descriptions.map(((e,n)=>t.createElement(bl,{d:e,key:n})));return o.length>0&&t.createElement(v,{container:!0,item:!0,key:n,direction:"column",style:{paddingBottom:r.spacing(2)}},t.createElement(E,{noWrap:!0,key:n,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function El(e){let{title:n="Error",message:r="",data:o=[]}=e;return t.createElement(v,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},t.createElement(v,{item:!0},t.createElement(yl,{style:{fontSize:"38px"}})),t.createElement(v,{item:!0},t.createElement(E,{variant:"h6",align:"center","data-tid":"error-title"},n)),t.createElement(v,{item:!0},t.createElement(E,{variant:"subtitle1",align:"center","data-tid":"error-message"},r)),t.createElement(vl,{data:o}))}const Cl=["size"],xl={root:"".concat("Progress","-root"),front:"".concat("Progress","-front"),back:"".concat("Progress","-back")},Ll=Wo("div")((e=>{let{theme:t}=e;return{["&.".concat(xl.root)]:{position:"relative",display:"inline-block"},["& .".concat(xl.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(xl.back)]:{color:t.palette.divider}}})),Sl={small:16,medium:32,large:64,xlarge:128};function wl(e){let{size:n="medium"}=e,r=W(e,Cl);const o=Sl[n];return t.createElement(Ll,{className:xl.root},t.createElement(N,U({variant:"determinate",value:100,className:xl.back,size:o,thickness:3},r)),t.createElement(N,U({variant:"indeterminate",disableShrink:!0,className:xl.front,size:o,thickness:3},r)))}const Ol=["cancel","translator"],ql=["retry","translator"],Rl={stripes:"".concat("LongRunningQuery","-stripes")},Il=Wo(v)((()=>({["& .".concat(Rl.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 kl(e){let{cancel:n,translator:r}=e,o=W(e,Ol);return t.createElement(t.Fragment,null,t.createElement(Il,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},t.createElement(v,{item:!0},t.createElement(wl,null)),t.createElement(v,{item:!0},t.createElement(E,{variant:"h6",align:"center","data-tid":"update-active"},r.get("Object.Update.Active")))),t.createElement(v,U({item:!0},o),t.createElement(T,{variant:"contained",onClick:n},r.get("Cancel"))))}function _l(e){let{retry:n,translator:r}=e,o=W(e,ql);return t.createElement(t.Fragment,null,t.createElement(v,{item:!0},t.createElement(yl,{style:{fontSize:"38px"}})),t.createElement(v,{item:!0},t.createElement(E,{variant:"h6",align:"center","data-tid":"update-cancelled"},r.get("Object.Update.Cancelled"))),t.createElement(v,{item:!0},t.createElement(T,U({variant:"contained",onClick:n},o),r.get("Retry"))))}function Al(e){let{canCancel:n,canRetry:r,api:o}=e;const{translator:i}=f(si);return t.createElement(v,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:Rl.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},n&&t.createElement(kl,{cancel:o.cancel,translator:i,className:Rl.cancel}),r&&t.createElement(_l,{retry:o.retry,translator:i,className:Rl.retry}))}function Tl(){return t.createElement(v,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t.createElement(wl,{size:"large"}))}const Dl={containerStyle:"".concat("Header","-containerStyle"),containerTitleStyle:"".concat("Header","-containerTitleStyle")},Pl=Wo(v)((e=>{let{theme:t}=e;return{["&.".concat(Dl.containerStyle)]:{flexGrow:0},["&.".concat(Dl.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),Nl="njs-cell-title",Ml="njs-cell-sub-title";function jl(e){let{layout:o,sn:i,anchorEl:a,hovering:s,focusHandler:l}=e;const c=o.showTitles&&!!o.title,u=o.showTitles&&!!o.subtitle,p=o.qSelectionInfo&&o.qSelectionInfo.qInSelections,[d,f]=n([]),[h,m]=Hi(),[g,y]=n(!1);r((()=>{i&&i.component&&i.component.isHooked&&i.component.observeActions((e=>{f([...e,...i&&i.selectionToolbar&&i.selectionToolbar.items||[]])}))}),[i]),r((()=>{if(!m)return;const{width:e}=m;y(e<221)}),[m]);const b=c||u,C=[Dl.containerStyle,...b?[Dl.containerTitleStyle]:[]],x=(s||p)&&(g||!b),L=b&&!x&&!g,S=t.createElement(as,{show:L,selections:{show:p,api:i.component.selections,onKeyDeactivate:l.refocusContent},actions:d,popover:{show:x,anchorEl:a},focusHandler:l});return t.createElement(Pl,{ref:h,item:!0,container:!0,wrap:"nowrap",className:C.join(" ")},t.createElement(v,{item:!0,zeroMinWidth:!0,xs:!0},t.createElement(v,{container:!0,wrap:"nowrap",direction:"column"},c&&t.createElement(E,{variant:"h6",noWrap:!0,className:Nl},o.title),u&&t.createElement(E,{variant:"body2",noWrap:!0,className:Ml},o.subtitle))),t.createElement(v,{item:!0},S))}const zl={itemStyle:"".concat("Footer","-itemStyle")},Fl=Wo(v)((e=>{let{theme:t}=e;return{["& .".concat(zl.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),Bl="njs-cell-footer";function Hl(e){let{layout:n}=e;return n&&n.showTitles&&n.footnote?t.createElement(Fl,{container:!0},t.createElement(v,{item:!0,className:zl.itemStyle},t.createElement(E,{noWrap:!0,variant:"body2",className:Bl},n.footnote))):null}class Ul{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 Wl="njs-viz";function $l(e){let{sn:o,snOptions:i,snPlugins:a,layout:s,appLayout:c,halo:u}=e;const{component:p}=o,{theme:d,language:h,constraints:m,keyboardNavigation:g}=f(si),[y]=n((()=>new Ul)),[b,v]=n(!1),[E,C]=n(0),[x,L,S]=Hi(),[w,O]=n(null),q=l((e=>{e&&O(e)}),[]);return r((()=>{if(w)return p.created({options:i}),p.mounted(w),v(!0),()=>{y.stop(),p.willUnmount()}}),[w,p]),r((()=>{b&&w&&L&&(!p.isHooked&&s&&s.qSelectionInfo&&s.qSelectionInfo.qInSelections||y.schedule((()=>{const e=[];return m.passive||e.push("passive"),m.active||e.push("interact"),m.select||e.push("select"),u.app&&u.app.session&&e.push("fetch"),Promise.resolve(p.render({layout:s,options:i,plugins:a,embed:u.public.nebbie,context:B({constraints:m,theme:u.public.theme,appLayout:c,keyboardNavigation:g},p.isHooked?{}:{logicalSize:o.logicalSize({layout:s}),localeInfo:(c||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===E&&"function"==typeof i.onInitialRender&&i.onInitialRender.call(null),C(E+1))}))})))}),[L,i,a,w,S,s,c,d,h,m,b,g]),t.createElement("div",{ref:x,"data-render-count":E,style:{position:"relative",height:"100%"},className:Wl},t.createElement("div",{ref:q,style:{position:"absolute",width:"100%",height:"100%"}}))}const Vl={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},Gl={"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 Kl(e,t){return t?function(e){var t;let n,r,o,i;if(null!=e&&null!==(t=e.session)&&void 0!==t&&t.config)return n=e.session.config,r=new URL(n.url),i="wss:"===r.protocol,o=i?"https://":"http://",o+r.host}(e)+t:void 0}const Zl=(e,t)=>{const n=null==e?void 0:e.bgImage;if(n){let i="";var r,o;if("media"===n.mode)i=null!=n&&null!==(r=n.mediaUrl)&&void 0!==r&&null!==(o=r.qStaticContentUrl)&&void 0!==o&&o.qUrl?decodeURIComponent(n.mediaUrl.qStaticContentUrl.qUrl):void 0,i=Kl(t,i);"expression"===n.mode&&(i=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const a=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=Gl[e.bgImage.position]),n}(e),s=function(e){var t;let n=Vl.originalSize;return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.sizing&&(n=Vl[e.bgImage.sizing]),n}(e);return i?{url:i,pos:a,size:s}:void 0}},Xl="njs-cell",Jl=(e,t)=>{switch(t.type){case"LOADING":return B(B({},e),{},{loading:!0});case"LOADED":return B(B({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return B(B({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return B(B({},e),{},{longRunningQuery:!0});case"ERROR":return B(B({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function Yl(e){let{delay:o=750}=e;const[i,a]=n(!1);return r((()=>{const e=setTimeout((()=>a(!0)),o);return()=>clearTimeout(e)}),[]),i?t.createElement(Tl,null):null}const Ql=e=>!e.qError||7005===e.qError.qErrorCode,ec=(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,s=i&&!a&&t[e].qError,l=a&&t[e].qCalcCondMsg,c="".concat(s?r:a?l||o:i&&t[e].qFallbackTitle||""),u=n(e);return{description:u?"".concat(u).concat(c.length?":":""):null,label:c,missing:t&&!i&&!s&&e>=t.length||a,error:s}})),tc=e=>e&&(Array.isArray(e)?e:[e])||[],nc=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t);return{reqDimErrors:ec(o,tc(a.qDimensionInfo),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:ec(i,tc(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},rc=async(e,t,n,r)=>{let{targets:o}=n;const{hasUnfulfilledErrors:i,aggMinD:a,aggMinM:s,hasLayoutErrors:l,layoutErrors:c}=((e,t,n)=>{let r=!1,o=0,i=0,a=!1,s=!1;const l=[];for(let c=0;c<t.length;++c){const u=t[c],p=u.dimensions.min(),d=u.measures.min(),f=u.resolveLayout(n),h=tc(f.qDimensionInfo).filter(Ql),m=tc(f.qMeasureInfo).filter(Ql);if(o+=p,i+=d,(h.length<p||m.length<d)&&(r=!0),f.qError){a=!0,s=7005===f.qError.qErrorCode;const t=s&&f.qCalcCondMsg?f.qCalcCondMsg:s?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");l.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:i,hasLayoutErrors:a,layoutErrors:l}})(e,o,t),u=[],p=[];let d=null;for(let n=0;n<o.length;++n){const a=o[n];if(!l&&i){const n=d||await r.getProperties();d=n;const o=nc(e,t,n,a);u.push(...o.reqDimErrors),p.push(...o.reqMeasErrors)}}const f=u.filter((e=>!(e.missing||e.error))).length,h=e.get("Visualization.Incomplete.Dimensions",[f,a]),m=p.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,s]),y=[{title:h,descriptions:[...u]},{title:g,descriptions:[...p]}],b=l?c:y;return[l||i,{title:l?c[0].title:e.get("Visualization.Incomplete"),data:b}]},oc=i(((e,i)=>{let{halo:a,model:l,initialSnOptions:c,initialSnPlugins:u,initialError:p,onMount:h,currentId:m}=e;const{app:g,types:y}=a,{nebbie:b}=a.public,{disableCellPadding:E=!1}=a.context||{},{translator:C,language:x,keyboardNavigation:L}=f(si),S=Ho(),[w,O,q]=Hi(),[R,I]=o(Jl,{loading:!1,loaded:!1,longRunningQuery:!1,error:(k=p)?{title:k.message}:null,sn:null,visualization:null});var k;const[_,{validating:A,canCancel:T,canRetry:D},P]=wi(l),[N]=Oi(g),[j,z,F]=Hi(),[H,U]=n(c),[W,$]=n(u),[V]=us(g,l),[G,K]=n(!1),Z=d({enter:null,leave:null}),[X,J]=n(void 0),[Y,Q]=n(void 0),ee=d({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});r((()=>{cs(ee.current)}),[]),r((()=>{const e=null!=_&&_.components?_.components.find((e=>"general"===e.key)):null;J(((e,t)=>{const n=null==e?void 0:e.bgColor;if(n&&t)return n.useColorExpression?t.validateColor(n.colorExpression):n.color&&"none"!==n.color.color?t.getColorPickerColor(n.color):void 0})(e,a.public.theme)),Q(Zl(e,a.app))}),[_,a.public.theme,a.app]),ee.current.blurCallback=e=>{a.root.toggleFocusOfCells(),e&&F&&F.focus()},ee.current.refocusContent=()=>{R.sn.component&&"function"==typeof R.sn.component.focus&&R.sn.component.focus()};r((()=>{if(p||!N||!_)return;if(R.visualization===_.visualization&&R.sn)return void(async e=>{const[t,n]=await rc(C,_,e.generator.qae.data,l);I(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:R.sn,layout:_,model:l})})(R.sn);const e=y.getSupportedVersion(_.visualization,_.version);if(e)return(async(e,t)=>{I({type:"LOADING"});const n=await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:i,app:a,selections:s,nebbie:l,focusHandler:c}=e;try{const e=await(async e=>{let{types:t,name:n,version:r}=e;return await t.get({name:n,version:r}).supernova()})({types:n,name:r,version:o});return e.create({model:i,app:a,selections:s,nebbie:l,focusHandler:c})}catch(e){t({type:"ERROR",error:{title:e.message}})}})({dispatch:I,types:y,visualization:e,version:t,model:l,app:g,selections:V,nebbie:b,focusHandler:ee.current});n&&(I({type:"LOADED",sn:n,visualization:e}),h())})(_.visualization,e),()=>{};I({type:"ERROR",error:{title:"Could not find a version of '".concat(_.visualization,"' that supports current object version. Did you forget to register ").concat(_.visualization,"?")}})}),[y,R.sn,l,V,_,N,x]),r((()=>{if(!A)return;const e=setTimeout((()=>I({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[A]),s(i,(()=>({getQae:()=>R.sn.generator.qae,toggleFocus(e){"function"==typeof R.sn.component.focus&&(e?R.sn.component.focus():R.sn.component.blur())},setSnOptions:U,setSnPlugins:$,async takeSnapshot(){const{width:e,height:t}=O;let n=JSON.parse(JSON.stringify(_));return"function"==typeof R.sn.component.setSnapshotData&&(n=await R.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:C.language(),theme:S.name,appLayout:N,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof a.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return a.config.snapshot.capture(e)}})),[R.sn,z,O,_,S.name,N]);let te=null;return R.loading&&!R.longRunningQuery?te=t.createElement(Yl,null):R.error?te=t.createElement(El,R.error):R.loaded&&(te=t.createElement($l,{key:_.visualization,sn:R.sn,halo:a,snOptions:H,snPlugins:W,layout:_,appLayout:N})),t.createElement(M,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:X,backgroundImage:Y&&Y.url?"url(".concat(Y.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:Y&&Y.size,backgroundPosition:Y&&Y.pos},elevation:0,square:!0,className:Xl,ref:w,onMouseEnter:()=>{Z.current.leave&&clearTimeout(Z.current.leave),Z.enter||(Z.current.enter=setTimeout((()=>{K(!0),Z.current.enter=null}),250))},onMouseLeave:()=>{Z.current.enter&&clearTimeout(Z.current.enter),Z.current.leave||(Z.current.leave=setTimeout((()=>{K(!1),Z.current.leave=null}),750))}},t.createElement(v,{container:!0,direction:"column",gap:0,style:B(B({position:"relative",width:"100%",height:"100%"},E?{}:{padding:S.spacing(1)}),R.longRunningQuery?{opacity:"0.3"}:{})},q&&_&&R.sn&&t.createElement(jl,{layout:_,sn:R.sn,anchorEl:q,hovering:G,focusHandler:ee.current}," "),t.createElement(v,{tabIndex:L?0:-1,onKeyDown:L?e=>{["Enter"," ","Spacebar"].includes(e.key)&&a.root.toggleFocusOfCells(m)}:null,item:!0,xs:!0,style:{height:"100%"},ref:j},te),t.createElement(Hl,{layout:_})),R.longRunningQuery&&t.createElement(Al,{canCancel:T,canRetry:D,api:P}))}));function ic(e){let{halo:n,element:r,model:o,initialSnOptions:i,initialSnPlugins:a,onMount:s,initialError:l}=e;const{root:c}=n,u=t.createRef(),p=Ys(),d=h.createPortal(t.createElement(oc,{ref:u,halo:n,model:o,currentId:p,initialSnOptions:i,initialSnPlugins:a,initialError:l,onMount:s}),r,o.id),f=()=>{c.remove(d),o.removeListener("closed",f)};return o.on("closed",f),c.add(d),c.addCell(p,u),[f,u]}function ac(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function sc(e,t){return ac(e)&&ac(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}function lc(){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)?sc(i,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...lc("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function cc(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 uc=()=>{};function pc(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=uc,i=null,a=null,s=null;const l=new Promise((e=>{s=e}));let c={},u=[];const p=async e=>{a?(async()=>{await l,i.current.setSnOptions(B(B({},c),e))})():c=B(B({},c),e)},d=async e=>{cc(e),a?(async()=>{await l,i.current.setSnPlugins(e)})():u=e},f={id:e.id,async destroy(){await r(),o(),o=uc},async convertTo(n){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await ml({halo:t,model:e,cellRef:i,newType:n});return r&&(e.__snInterceptor?await e.__snInterceptor.setProperties.call(e,o.qProperty):await e.setProperties(o.qProperty)),o},__DO_NOT_USE__:{mount(r){if(a)throw new Error("Already mounted");return a=r,[o,i]=ic({halo:t,element:r,model:e,initialSnOptions:c,initialSnPlugins:u,initialError:n,onMount:s}),l},async applyProperties(t){const n=lc("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){p(e)},plugins(e){d(e)},exportImage:()=>i.current.exportImage(),takeSnapshot:()=>i.current.takeSnapshot(),getModel:()=>e}};return f}async function dc(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const i=pc({model:e,halo:n,initialError:r,onDestroy:o});return t.options&&i.__DO_NOT_USE__.options(t.options),t.plugins&&i.__DO_NOT_USE__.plugins(t.plugins),t.element&&await i.__DO_NOT_USE__.mount(t.element),i}async function fc(e,t){let n,{type:r,version:o,fields:i,properties:a,options:s,plugins:l,element:c}=e,u={};try{const e=t.types.get({name:r,version:o});u=await e.initialProperties(a);const n=await e.supernova();i&&tl({sn:n,properties:u,fields:i}),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},u)}catch(e){n=e,u={qInfo:{qType:r},visualization:r}}const p=await t.app.createSessionObject(u);xi.set(p.id,p);const d=(e=>{const t=Ei({type:"SET",value:e});return()=>{t(),xi.clear(e.id)}})(p);return dc(p,{options:s,plugins:l,element:c},t,n,(async()=>{await t.app.destroySessionObject(p.id),d()}))}async function hc(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let s=gi.get(a);s||(s=t.app.getObject(n),gi.set(a,s));const l=await s;return xi.set(a,l),dc(l,{options:r,plugins:o,element:i},t)}function mc(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const gc=Me.bind(null,!0),yc={},{isArray:bc}=Array;function vc(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Ec(e){return void 0===e}function Cc(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function xc(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]=Ec(e[r||t])?i:e[t],e=e[r||t]})),e}function Lc(e,t){let n=!0;if(vc(e)&&vc(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{Lc(e[r],t[r])||(n=!1)})),n);if(bc(e)&&bc(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Lc(e[n],t[n]))return!1;return!0}return e===t}yc.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?gc({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);Lc(i,a)||Cc(t,o)||(Ec(a)?r.push({op:"add",path:s,value:i}):vc(i)&&vc(a)?r=r.concat(yc.generate(a,i,s)):bc(i)&&bc(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]&&Ec(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(Lc(t,o))return r;if(!Ec(t[0])&&Ec(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(yc.generate(o[e],t[i],"".concat(n,"/").concat(e)));for(let e=0,s=t.length;e<s;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,s)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((o=>{Ec(t[o])&&!Cc(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},yc.apply=function(e,t){t.forEach((t=>{let n=xc(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(bc(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(bc(o)&&bc(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(vc(o)&&vc(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Cc(a,e)&&delete a[e]})),gc(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=xc(e,t.from);bc(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(bc(n)?n.splice(+r,1):delete n[r]);var a}))},yc.clone=function(e){return gc({},e)},yc.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},yc.updateObject=function(e,t){Object.keys(e).length?yc.apply(e,yc.generate(e,t)):gc(e,t)};const Sc=e=>t=>{const n=(r=B(B({},t),{},{action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0}),Object.keys(Y.prototype).forEach((e=>{r[e]=Y.prototype[e]})),Y.init(r),r);var r;return n};let wc,Oc;function qc(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 Rc(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null}}}function Ic(e){_c(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 kc(e){if(e.__hooks.obsolete)return Promise.resolve();Oc=-1,wc=e,wc.__hooks.initiated&&wc.__hooks.list.length;try{wc.fn.call(null)}catch(e){console.error(e)}wc.__hooks.initiated=!0;const t=wc.__hooks;return Pc(wc),Oc=void 0,wc=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){_c(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){_c(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 _c(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 Ac(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 Tc(e,t,n){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function Dc(e){return e.__hooks.imperativeHandle}function Pc(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function Nc(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,Pc(e))}function Mc(e){if(void 0===wc)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=wc.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function jc(e){Mc(++Oc);return wc.context[e]}function zc(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function Fc(e){return{__hooked:!0,fn:e,initiate:Rc,run:kc,teardown:Ic,runSnaps:Ac,runMenu:Tc,focus:hu,blur:mu,observeActions:Nc,getImperativeHandle:Dc,updateRectOnNextRun:zc}}function Bc(e){const t=Mc(++Oc);if(!t.value){t.component=wc;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,kc(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function Hc(e,t){const n=Mc(++Oc);qc(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===wc.__hooks.pendingEffects.indexOf(n)&&wc.__hooks.pendingEffects.push(n))}function Uc(e,t){const n=Mc(++Oc);qc(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],wc.__hooks.pendingLayoutEffects.push(n))}function Wc(e,t){const n=Mc(++Oc);return qc(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function $c(e,t){const[n,r]=Bc((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=Mc(++Oc);return o.component||(o.component=wc),Uc((()=>{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]}function Vc(){return jc("element")}function Gc(){const e=Vc(),t=wc.__hooks.resizer,[n,r]=Bc((()=>{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()),Uc((()=>{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}function Kc(){return jc("layout")}function Zc(){const e=jc("layout"),[t]=Bc({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function Xc(){return jc("appLayout")}function Jc(){const e=jc("model");return e&&e.session?e:void 0}function Yc(){const e=jc("app");return e&&e.session?e:void 0}function Qc(){const e=jc("global");return e&&e.session?e:void 0}function eu(){return jc("selections")}function tu(){return jc("theme")}function nu(){return jc("nebbie")}function ru(){return jc("translator")}function ou(){return jc("deviceType")}function iu(){return jc("plugins")}function au(e,t){const[n]=Bc({action(){n._config.action.call(null)}});return n.component||(n.component=wc,wc.__hooks.actions.list.push(n)),Wc((()=>{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}function su(){return jc("constraints")}function lu(){return jc("options")}function cu(e,t){const n=Mc(++Oc);if(n.imperative||(n.imperative=!0),qc(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],wc.__hooks.imperativeHandle=r}}function uu(e){const t=Mc(++Oc);t.value||(t.value=1,wc.__hooks.snaps.push(t)),t.fn=e}function pu(e){const t=Mc(++Oc);t.value||(t.value=1,wc.__hooks.menus.push(t)),t.fn=e}function du(){Mc(++Oc);const e=wc.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function fu(){const e=jc("keyboardNavigation"),t=jc("focusHandler");if(!wc.__hooks.accessibility.exitFunction){const e=function(e){const n=this.__hooks.accessibility;n.enabled&&n.active&&(mu(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(wc);wc.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),hu(this))}.bind(wc);wc.__hooks.accessibility.focusFunction=n;const r=function(e){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(wc);wc.__hooks.accessibility.focusSelectionFunction=r}const n=wc.__hooks.accessibility.focusFunction,r=wc.__hooks.accessibility.exitFunction,o=wc.__hooks.accessibility.focusSelectionFunction,[i,a]=Bc({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return wc.__hooks.accessibility.setter=a,wc.__hooks.accessibility.enabled=e,Hc((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i}function hu(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 mu(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 gu={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},yu=Object.keys(gu);function bu(e,t){const n=B({},gu);var r;r=n,Object.keys(Y.prototype).forEach((e=>{r[e]=Y.prototype[e]})),Y.init(r);const o={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==yu.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]}));const i=function(e){let{sn:t,component:n}=e;const r={},o=[],i=Sc(n);return((t.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=i(e);r[e.key]=t,o.push(t)})),(t.definition.actions||[]).forEach((e=>{const t=i(e);r[e.key]=t})),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:o}),a=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:a,selections:t.selections,actions:i.actions}),Object.assign(n,{actions:i.actions,model:t.model,app:t.app,selections:t.selections}),[n,i]}function vu(e,t,n){"function"==typeof e.component&&(e.component=Fc(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"],s={};t.model&&t.model.session||(s.select=!0);const l={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,deviceType:n.deviceType,theme:void 0,translator:n.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:s,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(l,{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(B(B({},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=l.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n){return e.component.runMenu(this,t,n)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return a.forEach((e=>{i[e]=JSON.stringify(l.context[e])})),i.themeName=l.context.theme?l.context.theme.name():void 0,i.language=l.context.translator?l.context.translator.language():void 0,Object.assign(l,{selections:t.selections}),[l,null]}(e,t,n):bu(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];return e.qae.properties.onChange.call({model:t.model},...r),t.model.__snInterceptor.setProperties.call(this,...r)},t.model.applyPatches=function(n,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const i=yc.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));yc.apply(o,a),e.qae.properties.onChange.call({model:t.model},o);const s=yc.generate(i,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,s,r)}))},t.model.__snInterceptor.teardown=()=>{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 Eu=()=>{};function Cu(e,t){return void 0===e?()=>t:()=>e}function xu(e){const t=e||{};return{min:"function"==typeof t.min?t.min:Cu(t.min,0),max:"function"==typeof t.max?t.max:Cu(t.max,1e3),added:t.added||t.add||Eu,description:t.description||Eu,moved:t.moved||t.move||Eu,removed:t.removed||t.remove||Eu,replaced:t.replaced||t.replace||Eu,isDefined:()=>!!e}}function Lu(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(e," at ").concat(t,". Valid paths include /qHyperCubeDef or /qListObjectDef, e.g. data/qHyperCubeDef"))}return{propertyPath:t,layoutPath:n,resolveLayout:e=>((e,t,n)=>{const r=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<r.length;++e)if(""!==r[e]){if(void 0===o[r[e]])return n;o=o[r[e]]}return o})(e,n,{}),dimensions:xu(e.dimensions),measures:xu(e.measures)}}function Su(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.properties||{};t.properties&&(t.properties.initial||t.properties.onChange)&&(n=t.properties.initial,e=t.properties.onChange);const r={properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(Lu)},exportProperties:t.exportProperties,importProperties:t.importProperties};return r}function wu(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:Su(n.qae),component:n.component||{},create:e=>vu(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}var Ou={exports:{}};!function(e,t){var n;t=e.exports=p,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=Number.MAX_SAFE_INTEGER||9007199254740991,o=t.re=[],i=t.src=[],a=t.tokens={},s=0;function l(e){a[e]=s++}l("NUMERICIDENTIFIER"),i[a.NUMERICIDENTIFIER]="0|[1-9]\\d*",l("NUMERICIDENTIFIERLOOSE"),i[a.NUMERICIDENTIFIERLOOSE]="[0-9]+",l("NONNUMERICIDENTIFIER"),i[a.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",l("MAINVERSION"),i[a.MAINVERSION]="("+i[a.NUMERICIDENTIFIER]+")\\.("+i[a.NUMERICIDENTIFIER]+")\\.("+i[a.NUMERICIDENTIFIER]+")",l("MAINVERSIONLOOSE"),i[a.MAINVERSIONLOOSE]="("+i[a.NUMERICIDENTIFIERLOOSE]+")\\.("+i[a.NUMERICIDENTIFIERLOOSE]+")\\.("+i[a.NUMERICIDENTIFIERLOOSE]+")",l("PRERELEASEIDENTIFIER"),i[a.PRERELEASEIDENTIFIER]="(?:"+i[a.NUMERICIDENTIFIER]+"|"+i[a.NONNUMERICIDENTIFIER]+")",l("PRERELEASEIDENTIFIERLOOSE"),i[a.PRERELEASEIDENTIFIERLOOSE]="(?:"+i[a.NUMERICIDENTIFIERLOOSE]+"|"+i[a.NONNUMERICIDENTIFIER]+")",l("PRERELEASE"),i[a.PRERELEASE]="(?:-("+i[a.PRERELEASEIDENTIFIER]+"(?:\\."+i[a.PRERELEASEIDENTIFIER]+")*))",l("PRERELEASELOOSE"),i[a.PRERELEASELOOSE]="(?:-?("+i[a.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+i[a.PRERELEASEIDENTIFIERLOOSE]+")*))",l("BUILDIDENTIFIER"),i[a.BUILDIDENTIFIER]="[0-9A-Za-z-]+",l("BUILD"),i[a.BUILD]="(?:\\+("+i[a.BUILDIDENTIFIER]+"(?:\\."+i[a.BUILDIDENTIFIER]+")*))",l("FULL"),l("FULLPLAIN"),i[a.FULLPLAIN]="v?"+i[a.MAINVERSION]+i[a.PRERELEASE]+"?"+i[a.BUILD]+"?",i[a.FULL]="^"+i[a.FULLPLAIN]+"$",l("LOOSEPLAIN"),i[a.LOOSEPLAIN]="[v=\\s]*"+i[a.MAINVERSIONLOOSE]+i[a.PRERELEASELOOSE]+"?"+i[a.BUILD]+"?",l("LOOSE"),i[a.LOOSE]="^"+i[a.LOOSEPLAIN]+"$",l("GTLT"),i[a.GTLT]="((?:<|>)?=?)",l("XRANGEIDENTIFIERLOOSE"),i[a.XRANGEIDENTIFIERLOOSE]=i[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",l("XRANGEIDENTIFIER"),i[a.XRANGEIDENTIFIER]=i[a.NUMERICIDENTIFIER]+"|x|X|\\*",l("XRANGEPLAIN"),i[a.XRANGEPLAIN]="[v=\\s]*("+i[a.XRANGEIDENTIFIER]+")(?:\\.("+i[a.XRANGEIDENTIFIER]+")(?:\\.("+i[a.XRANGEIDENTIFIER]+")(?:"+i[a.PRERELEASE]+")?"+i[a.BUILD]+"?)?)?",l("XRANGEPLAINLOOSE"),i[a.XRANGEPLAINLOOSE]="[v=\\s]*("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:"+i[a.PRERELEASELOOSE]+")?"+i[a.BUILD]+"?)?)?",l("XRANGE"),i[a.XRANGE]="^"+i[a.GTLT]+"\\s*"+i[a.XRANGEPLAIN]+"$",l("XRANGELOOSE"),i[a.XRANGELOOSE]="^"+i[a.GTLT]+"\\s*"+i[a.XRANGEPLAINLOOSE]+"$",l("COERCE"),i[a.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",l("COERCERTL"),o[a.COERCERTL]=new RegExp(i[a.COERCE],"g"),l("LONETILDE"),i[a.LONETILDE]="(?:~>?)",l("TILDETRIM"),i[a.TILDETRIM]="(\\s*)"+i[a.LONETILDE]+"\\s+",o[a.TILDETRIM]=new RegExp(i[a.TILDETRIM],"g");l("TILDE"),i[a.TILDE]="^"+i[a.LONETILDE]+i[a.XRANGEPLAIN]+"$",l("TILDELOOSE"),i[a.TILDELOOSE]="^"+i[a.LONETILDE]+i[a.XRANGEPLAINLOOSE]+"$",l("LONECARET"),i[a.LONECARET]="(?:\\^)",l("CARETTRIM"),i[a.CARETTRIM]="(\\s*)"+i[a.LONECARET]+"\\s+",o[a.CARETTRIM]=new RegExp(i[a.CARETTRIM],"g");l("CARET"),i[a.CARET]="^"+i[a.LONECARET]+i[a.XRANGEPLAIN]+"$",l("CARETLOOSE"),i[a.CARETLOOSE]="^"+i[a.LONECARET]+i[a.XRANGEPLAINLOOSE]+"$",l("COMPARATORLOOSE"),i[a.COMPARATORLOOSE]="^"+i[a.GTLT]+"\\s*("+i[a.LOOSEPLAIN]+")$|^$",l("COMPARATOR"),i[a.COMPARATOR]="^"+i[a.GTLT]+"\\s*("+i[a.FULLPLAIN]+")$|^$",l("COMPARATORTRIM"),i[a.COMPARATORTRIM]="(\\s*)"+i[a.GTLT]+"\\s*("+i[a.LOOSEPLAIN]+"|"+i[a.XRANGEPLAIN]+")",o[a.COMPARATORTRIM]=new RegExp(i[a.COMPARATORTRIM],"g");l("HYPHENRANGE"),i[a.HYPHENRANGE]="^\\s*("+i[a.XRANGEPLAIN]+")\\s+-\\s+("+i[a.XRANGEPLAIN]+")\\s*$",l("HYPHENRANGELOOSE"),i[a.HYPHENRANGELOOSE]="^\\s*("+i[a.XRANGEPLAINLOOSE]+")\\s+-\\s+("+i[a.XRANGEPLAINLOOSE]+")\\s*$",l("STAR"),i[a.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c<s;c++)n(c,i[c]),o[c]||(o[c]=new RegExp(i[c]));function u(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?o[a.LOOSE]:o[a.FULL]).test(e))return null;try{return new p(e,t)}catch(e){return null}}function p(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof p))return new p(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<r)return t}return e})):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}t.parse=u,t.valid=function(e,t){var n=u(e,t);return n?n.version:null},t.clean=function(e,t){var n=u(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=p,p.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},p.prototype.toString=function(){return this.version},p.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof p||(e=new p(e,this.options)),this.compareMain(e)||this.comparePre(e)},p.prototype.compareMain=function(e){return e instanceof p||(e=new p(e,this.options)),f(this.major,e.major)||f(this.minor,e.minor)||f(this.patch,e.patch)},p.prototype.comparePre=function(e){if(e instanceof p||(e=new p(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return f(r,o)}while(++t)},p.prototype.compareBuild=function(e){e instanceof p||(e=new p(e,this.options));var t=0;do{var r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return f(r,o)}while(++t)},p.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new p(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(y(e,t))return null;var n=u(e),r=u(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var i="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return o+a;return i},t.compareIdentifiers=f;var d=/^[0-9]+$/;function f(e,t){var n=d.test(e),r=d.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function h(e,t,n){return new p(e,n).compare(new p(t,n))}function m(e,t,n){return h(e,t,n)>0}function g(e,t,n){return h(e,t,n)<0}function y(e,t,n){return 0===h(e,t,n)}function b(e,t,n){return 0!==h(e,t,n)}function v(e,t,n){return h(e,t,n)>=0}function E(e,t,n){return h(e,t,n)<=0}function C(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return y(e,n,r);case"!=":return b(e,n,r);case">":return m(e,n,r);case">=":return v(e,n,r);case"<":return g(e,n,r);case"<=":return E(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function x(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof x){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof x))return new x(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===L?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new p(e,t).major},t.minor=function(e,t){return new p(e,t).minor},t.patch=function(e,t){return new p(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new p(e,n),o=new p(t,n);return r.compare(o)||r.compareBuild(o)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=m,t.lt=g,t.eq=y,t.neq=b,t.gte=v,t.lte=E,t.cmp=C,t.Comparator=x;var L={};function S(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof S)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new S(e.raw,t);if(e instanceof x)return new S(e.value,t);if(!(this instanceof S))return new S(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function w(e,t){for(var n=!0,r=e.slice(),o=r.pop();n&&r.length;)n=r.every((function(e){return o.intersects(e,t)})),o=r.pop();return n}function O(e){return!e||"x"===e.toLowerCase()||"*"===e}function q(e,t,n,r,o,i,a,s,l,c,u,p,d){return((t=O(n)?"":O(r)?">="+n+".0.0":O(o)?">="+n+"."+r+".0":">="+t)+" "+(s=O(l)?"":O(c)?"<"+(+l+1)+".0.0":O(u)?"<"+l+"."+(+c+1)+".0":p?"<="+l+"."+c+"."+u+"-"+p:"<="+s)).trim()}function R(e,t,r){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(o=0;o<e.length;o++)if(n(e[o].semver),e[o].semver!==L&&e[o].semver.prerelease.length>0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function I(e,t,n){try{t=new S(t,n)}catch(e){return!1}return t.test(e)}function k(e,t,n,r){var o,i,a,s,l;switch(e=new p(e,r),t=new S(t,r),n){case">":o=m,i=E,a=g,s=">",l=">=";break;case"<":o=g,i=v,a=m,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(I(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],d=null,f=null;if(u.forEach((function(e){e.semver===L&&(e=new x(">=0.0.0")),d=d||e,f=f||e,o(e.semver,d.semver,r)?d=e:a(e.semver,f.semver,r)&&(f=e)})),d.operator===s||d.operator===l)return!1;if((!f.operator||f.operator===s)&&i(e,f.semver))return!1;if(f.operator===l&&a(e,f.semver))return!1}return!0}x.prototype.parse=function(e){var t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new p(n[2],this.options.loose):this.semver=L},x.prototype.toString=function(){return this.value},x.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===L||e===L)return!0;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}return C(e,this.operator,this.semver,this.options)},x.prototype.intersects=function(e,t){if(!(e instanceof x))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new S(e.value,t),I(this.value,n,t));if(""===e.operator)return""===e.value||(n=new S(this.value,t),I(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=C(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=C(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&a||s||l},t.Range=S,S.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},S.prototype.toString=function(){return this.range},S.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[a.HYPHENRANGELOOSE]:o[a.HYPHENRANGE];e=e.replace(r,q),n("hyphen replace",e),e=e.replace(o[a.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,o[a.COMPARATORTRIM]),e=(e=(e=e.replace(o[a.TILDETRIM],"$1~")).replace(o[a.CARETTRIM],"$1^")).split(/\s+/).join(" ");var i=t?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?o[a.CARETLOOSE]:o[a.CARET];return e.replace(r,(function(t,r,o,i,a){var s;return n("caret",e,t,r,o,i,a),O(r)?s="":O(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":O(i)?s="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),s="0"===r?"0"===o?">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===o?">="+r+"."+o+"."+i+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+" <"+(+r+1)+".0.0"),n("caret return",s),s}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?o[a.TILDELOOSE]:o[a.TILDE];return e.replace(r,(function(t,r,o,i,a){var s;return n("tilde",e,t,r,o,i,a),O(r)?s="":O(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":O(i)?s=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":a?(n("replaceTilde pr",a),s=">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0"):s=">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0",n("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?o[a.XRANGELOOSE]:o[a.XRANGE];return e.replace(r,(function(r,o,i,a,s,l){n("xRange",e,r,o,i,a,s,l);var c=O(i),u=c||O(a),p=u||O(s),d=p;return"="===o&&d&&(o=""),l=t.includePrerelease?"-0":"",c?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&d?(u&&(a=0),s=0,">"===o?(o=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===o&&(o="<",u?i=+i+1:a=+a+1),r=o+i+"."+a+"."+s+l):u?r=">="+i+".0.0"+l+" <"+(+i+1)+".0.0"+l:p&&(r=">="+i+"."+a+".0"+l+" <"+i+"."+(+a+1)+".0"+l),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[a.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(i)}))),s=s.map((function(e){return new x(e,this.options)}),this)},S.prototype.intersects=function(e,t){if(!(e instanceof S))throw new TypeError("a Range is required");return this.set.some((function(n){return w(n,t)&&e.set.some((function(e){return w(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new S(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},S.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(R(this.set[t],e,this.options))return!0;return!1},t.satisfies=I,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var i=new S(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&-1!==o.compare(e)||(o=new p(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,o=null;try{var i=new S(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&1!==o.compare(e)||(o=new p(r=e,n)))})),r},t.minVersion=function(e,t){e=new S(e,t);var n=new p("0.0.0");if(e.test(n))return n;if(n=new p("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r){e.set[r].forEach((function(e){var t=new p(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!m(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new S(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return k(e,t,"<",n)},t.gtr=function(e,t,n){return k(e,t,">",n)},t.outside=k,t.prerelease=function(e,t){var n=u(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new S(e,n),t=new S(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof p)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=o[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),o[a.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;o[a.COERCERTL].lastIndex=-1}else n=e.match(o[a.COERCE]);if(null===n)return null;return u(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(Ou,Ou.exports);const qu={};async function Ru(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!qu[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}),s=Promise.resolve(a);qu[i]=s.then((e=>{if(!e)throw new Error("load() of visualization '".concat(n,"' resolved to an invalid object"));return e})).catch((e=>{throw new Error("Failed to load visualization: '".concat(n,"'"))}))}return qu[i]}function Iu(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]=function(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)||Ou.exports.satisfies(e,i.deps.properties),supernova:()=>Ru(a.name,a.version,t,o.load).then((e=>(n=n||wu(e,t.public.galaxy),r=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e){return this.supernova().then((()=>B(B({qInfo:{qType:a.name},visualization:a.name,version:a.version,showTitles:!0},JSON.parse(r)),e)))}};return a}({name:e,version:o},t,i),r=null},getMatchingVersionFromProperties:e=>{var t;r||(t=Object.keys(n),r=[...t.filter((e=>"undefined"===e)),...t.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(".")))]);for(let t=r.length-1;t>=0;t--){if(n[r[t]].supportsPropertiesVersion(e))return r[t]}return null},versions:n}}function ku(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=Iu(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>r[e]?r[e].getMatchingVersionFromProperties(t):null,get(e){const{name:t}=e;let{version:n}=e;if(r[t]){if(!r[t].versions[n]){n=Object.keys(r[t].versions)[0]}}else this.register({name:t,version:n});return r[t].get(n)||o.get(e)},getList:()=>Object.keys(r).map((e=>({name:e,versions:Object.keys(r[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{r[e]&&(r[e]=void 0),function(e){Object.keys(qu).forEach((t=>{t.split("__")[0]===e&&(qu[t]=void 0)}))}(e)}}}const _u=["__DO_NOT_USE__"],Au=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return B(B({},e),t)},Tu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[...e,...t].filter(((e,t,n)=>n.indexOf(e)===t))},Du=(e,t)=>({context:Au(e.context,t.context),load:t.load||e.load,snapshot:B({},t.snapshot||e.snapshot),types:Tu(e.types,t.types),themes:Tu(e.themes,t.themes),flags:Au(e.flags,t.flags),anything:Au(e.anything,t.anything)}),Pu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n=W(e,_u),r={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1},o=B(B(B({},n),r),t);return o};var Nu=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Z(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let i=B(B({},t.context),{},{translator:n.translator});const[a]=Bi({app:e,context:i}),s=tt({themes:t.themes,root:a}),l={galaxy:{translator:n.translator,flags:mc(t.flags),deviceType:nt(t.context.deviceType),anything:t.anything},theme:s.externalAPI,translator:n.translator,nebbie:null},c={app:e,root:a,config:t,public:l,context:i,types:null},u=ku({halo:c});t.types.forEach((e=>u.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let p=s.setTheme(t.context.theme),d=null,f=null;const h={render:async e=>(await p,e.id?hc(e,c):fc(e,c)),context:async e=>{let t;["theme","language","constraints","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==i[n]&&(t||(t={}),t[n]=e[n])})),t&&(i=B(B(B({},i),t),{},{translator:n.translator}),c.context=i,t.theme&&(p=s.setTheme(t.theme),await p),t.language&&c.public.translator.language(t.language),a.context(i))},selections:async()=>(d||(d={mount(t){f||(f=Os({element:t,app:e}),a.add(f))},unmount(){f&&(a.remove(f),f=null)}}),d),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,mount(o){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!o)throw new Error("Element for ".concat(r||n," not provided"));if(this._instance)throw new Error("Field or object ".concat(r||n," already mounted"));this._instance=Zs({element:o,app:e,fieldIdentifier:t,qId:n,options:Pu(i),stateName:i.stateName||"$"}),a.add(this._instance)},unmount(){this._instance&&(a.remove(this._instance),this._instance=null)}};return o},getRegisteredTypes:u.getList,__DO_NOT_USE__:{types:u}};return c.public.nebbie=h,c.types=u,h}return r.createConfiguration=n=>e(Du(t,n)),r.config=t,r}({context:{theme:"light",language:"en-US",deviceType:"auto",constraints:{},keyboardNavigation:!1,disableCellPadding:!1},load:()=>{},types:[],themes:[],anything:{},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()))}}),Mu={exports:{}},ju={exports:{}};ju.exports=function(){function e(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}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(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===a.call(e)},u=function(e){if(!e||"[object Object]"!==a.call(e))return!1;var t,n=i.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&i.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||i.call(e,t)},p=function(e,t){s&&"__proto__"===t.name?s(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},d=function(e,t){if("__proto__"===t){if(!i.call(e,t))return;if(l)return l(e,t).value}return e[t]},f=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,f=arguments.length,h=!1;for("boolean"==typeof s&&(h=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<f;++l)if(null!=(t=arguments[l]))for(n in t)r=d(s,n),s!==(o=d(t,n))&&(h&&o&&(u(o)||(i=c(o)))?(i?(i=!1,a=r&&c(r)?r:[]):a=r&&u(r)?r:{},p(s,{name:n,newValue:e(h,a,o)})):void 0!==o&&p(s,{name:n,newValue:o}));return s};const h=globalThis.crypto||{getRandomValues:()=>123456};function m(){return e=>{const t=f({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^h.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=t._mock;let o=t;return r&&(delete t._mock,o=f({},t,r)),Promise.resolve(n({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId},t))}}const g=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},y=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 s=g(e,{defaultValue:t,args:i});return n?new Promise((e=>{setTimeout((()=>e(s)),r)})):s}},b=["id","session"],v=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function E(e){return!v.includes(e)}function C(e){const t=g(e.getLayout);return t.qInfo&&t.qInfo.qId}function x(e,t){return e.reduce(((e,r)=>n(n({},e),function(e,t){let r=C(e);const{delay:i}=t,{id:a,session:s}=e,l=o(e,b);if(a&&r&&a!==r)throw new Error("Generic object has multiple IDs, qInfo.qId: ".concat(r,", id: ").concat(a));return r=r||a||"object - ".concat(+Date.now()),{[r]:n({id:r,session:g(s,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(l).reduce(((e,t)=>{let[r,o]=t;return n(n({},e),{},{[r]:y(o,{async:E(r),delay:i})})}),{}))}}(r,t))),{})}function L(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!C(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function S(){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(L);const n=x(e,t);return async e=>Promise.resolve(n[e])}function w(){return()=>Promise.resolve({id:"app-layout"})}const O={fromGenericObjects(t){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new e,o=new m,i=new S(t,n),a=new w,s={id:"app - ".concat(+Date.now()),session:r,createSessionObject:o,getObject:i,getAppLayout:a};return Promise.resolve(s)}(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}};return O}();var zu=z(Mu.exports=ju.exports);const Fu={generator:wu,hook:Fc,theme:Qe,locale:G};export{zu as EnigmaMocker,Fu as __DO_NOT_USE__,gl as conversion,Nu as embed,pu as onContextMenu,uu as onTakeSnapshot,au as useAction,Yc as useApp,Xc as useAppLayout,su as useConstraints,ou as useDeviceType,Hc as useEffect,Vc as useElement,nu as useEmbed,Qc as useGlobal,cu as useImperativeHandle,fu as useKeyboard,Kc as useLayout,Wc as useMemo,Jc as useModel,lu as useOptions,iu as usePlugins,$c as usePromise,Gc as useRect,du as useRenderState,eu as useSelections,Zc as useStaleLayout,Bc as useState,tu as useTheme,ru as useTranslator};
|
|
12
|
+
*/function xn(){return xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xn.apply(this,arguments)}function Ln(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function Sn(e,t,n={clone:!0}){const r=n.clone?xn({},e):e;return Ln(e)&&Ln(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Ln(t[o])&&o in e&&Ln(e[o])?r[o]=Sn(e[o],t[o],n):r[o]=t[o])})),r}function wn(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."}function On(e){if("string"!=typeof e)throw new Error(wn(7));return e.charAt(0).toUpperCase()+e.slice(1)}const qn=e=>e;var Rn=(()=>{let e=qn;return{configure(t){e=t},generate:t=>e(t),reset(){e=qn}}})();const kn={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function In(){return In=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},In.apply(this,arguments)}function _n(e,t){return t?Sn(e,t,{clone:!1}):e}const Tn={xs:0,sm:600,md:900,lg:1200,xl:1536},An={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Tn[e]}px)`};function Dn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||An;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||An;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Tn).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Pn(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 Nn(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Pn(e,n)||r,t&&(o=t(o,r)),o}function Mn(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=Pn(e.theme,r)||{};return Dn(e,i,(e=>{let r=Nn(a,o,e);return e===r&&"string"==typeof e&&(r=Nn(a,o,`${t}${"default"===e?"":On(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}function jn(...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]?_n(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}const zn={m:"margin",p:"padding"},Fn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Bn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Hn=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Bn[e])return[e];e=Bn[e]}const[t,n]=e.split(""),r=zn[t],o=Fn[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Un=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd","p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Wn(e,t,n,r){var o;const i=null!=(o=Pn(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 $n(e){return Wn(e,"spacing",8)}function Vn(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 Gn(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Vn(t,n),e)),{})}(Hn(n),r);return Dn(e,e[n],o)}function Kn(e){return function(e,t){const n=$n(e.theme);return Object.keys(e).map((r=>Gn(e,t,r,n))).reduce(_n,{})}(e,Un)}function Zn(e){return"number"!=typeof e?e:`${e}px solid`}Kn.propTypes={},Kn.filterProps=Un;const Xn=Mn({prop:"border",themeKey:"borders",transform:Zn}),Jn=Mn({prop:"borderTop",themeKey:"borders",transform:Zn}),Yn=Mn({prop:"borderRight",themeKey:"borders",transform:Zn}),Qn=Mn({prop:"borderBottom",themeKey:"borders",transform:Zn}),er=Mn({prop:"borderLeft",themeKey:"borders",transform:Zn}),tr=Mn({prop:"borderColor",themeKey:"palette"}),nr=Mn({prop:"borderTopColor",themeKey:"palette"}),rr=Mn({prop:"borderRightColor",themeKey:"palette"}),or=Mn({prop:"borderBottomColor",themeKey:"palette"}),ir=Mn({prop:"borderLeftColor",themeKey:"palette"}),ar=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Wn(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Vn(t,e)});return Dn(e,e.borderRadius,n)}return null};ar.propTypes={},ar.filterProps=["borderRadius"];var sr=jn(Xn,Jn,Yn,Qn,er,tr,nr,rr,or,ir,ar);var lr=jn(Mn({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),Mn({prop:"display"}),Mn({prop:"overflow"}),Mn({prop:"textOverflow"}),Mn({prop:"visibility"}),Mn({prop:"whiteSpace"}));var cr=jn(Mn({prop:"flexBasis"}),Mn({prop:"flexDirection"}),Mn({prop:"flexWrap"}),Mn({prop:"justifyContent"}),Mn({prop:"alignItems"}),Mn({prop:"alignContent"}),Mn({prop:"order"}),Mn({prop:"flex"}),Mn({prop:"flexGrow"}),Mn({prop:"flexShrink"}),Mn({prop:"alignSelf"}),Mn({prop:"justifyItems"}),Mn({prop:"justifySelf"}));const ur=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Wn(e.theme,"spacing",8),n=e=>({gap:Vn(t,e)});return Dn(e,e.gap,n)}return null};ur.propTypes={},ur.filterProps=["gap"];const pr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Wn(e.theme,"spacing",8),n=e=>({columnGap:Vn(t,e)});return Dn(e,e.columnGap,n)}return null};pr.propTypes={},pr.filterProps=["columnGap"];const dr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Wn(e.theme,"spacing",8),n=e=>({rowGap:Vn(t,e)});return Dn(e,e.rowGap,n)}return null};dr.propTypes={},dr.filterProps=["rowGap"];var fr=jn(ur,pr,dr,Mn({prop:"gridColumn"}),Mn({prop:"gridRow"}),Mn({prop:"gridAutoFlow"}),Mn({prop:"gridAutoColumns"}),Mn({prop:"gridAutoRows"}),Mn({prop:"gridTemplateColumns"}),Mn({prop:"gridTemplateRows"}),Mn({prop:"gridTemplateAreas"}),Mn({prop:"gridArea"}));function hr(e,t){return"grey"===t?t:e}var mr=jn(Mn({prop:"color",themeKey:"palette",transform:hr}),Mn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:hr}),Mn({prop:"backgroundColor",themeKey:"palette",transform:hr}));var gr=jn(Mn({prop:"position"}),Mn({prop:"zIndex",themeKey:"zIndex"}),Mn({prop:"top"}),Mn({prop:"right"}),Mn({prop:"bottom"}),Mn({prop:"left"}));var yr=Mn({prop:"boxShadow",themeKey:"shadows"});function br(e){return e<=1&&0!==e?100*e+"%":e}const vr=Mn({prop:"width",transform:br}),Er=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||Tn[t]||br(t)}};return Dn(e,e.maxWidth,t)}return null};Er.filterProps=["maxWidth"];const Cr=Mn({prop:"minWidth",transform:br}),xr=Mn({prop:"height",transform:br}),Lr=Mn({prop:"maxHeight",transform:br}),Sr=Mn({prop:"minHeight",transform:br});Mn({prop:"size",cssProperty:"width",transform:br}),Mn({prop:"size",cssProperty:"height",transform:br});var wr=jn(vr,Er,Cr,xr,Lr,Sr,Mn({prop:"boxSizing"}));const Or=Mn({prop:"fontFamily",themeKey:"typography"}),qr=Mn({prop:"fontSize",themeKey:"typography"}),Rr=Mn({prop:"fontStyle",themeKey:"typography"}),kr=Mn({prop:"fontWeight",themeKey:"typography"}),Ir=Mn({prop:"letterSpacing"}),_r=Mn({prop:"textTransform"}),Tr=Mn({prop:"lineHeight"}),Ar=Mn({prop:"textAlign"});var Dr=jn(Mn({prop:"typography",cssProperty:!1,themeKey:"typography"}),Or,qr,Rr,kr,Ir,Tr,Ar,_r);const Pr={borders:sr.filterProps,display:lr.filterProps,flexbox:cr.filterProps,grid:fr.filterProps,positions:gr.filterProps,palette:mr.filterProps,shadows:yr.filterProps,sizing:wr.filterProps,spacing:Kn.filterProps,typography:Dr.filterProps},Nr={borders:sr,display:lr,flexbox:cr,grid:fr,positions:gr,palette:mr,shadows:yr,sizing:wr,spacing:Kn,typography:Dr};Object.keys(Pr).reduce(((e,t)=>(Pr[t].forEach((n=>{e[n]=Nr[t]})),e)),{});const Mr=function(e=Nr){const t=Object.keys(e).reduce(((t,n)=>(e[n].filterProps.forEach((r=>{t[r]=e[n]})),t)),{});function n(e,n,r){const o={[e]:n,theme:r},i=t[e];return i?i(o):{[e]:n}}return function e(r){const{sx:o,theme:i={}}=r||{};if(!o)return null;function a(r){let o=r;if("function"==typeof r)o=r(i);else if("object"!=typeof r)return r;if(!o)return null;const a=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),s=Object.keys(a);let l=a;return Object.keys(o).forEach((r=>{const a=(s=o[r],c=i,"function"==typeof s?s(c):s);var s,c;if(null!=a)if("object"==typeof a)if(t[r])l=_n(l,n(r,a,i));else{const t=Dn({theme:i},a,(e=>({[r]: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))}(t,a)?l=_n(l,t):l[r]=e({sx:a,theme:i})}else l=_n(l,n(r,a,i))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(a):a(o)}}();Mr.filterProps=["sx"];var jr=Mr;function zr(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}const Fr=["values","unit","step"];function Br(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=zr(e,Fr),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>In({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(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 In({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var Hr={borderRadius:4};function Ur(e=8){if(e.mui)return e;const t=$n({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}const Wr=["breakpoints","palette","spacing","shape"];function $r(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=zr(e,Wr),s=Br(n),l=Ur(o);let c=Sn({breakpoints:s,direction:"ltr",components:{},palette:In({mode:"light"},r),spacing:l,shape:In({},Hr,i)},a);return c=t.reduce(((e,t)=>Sn(e,t)),c),c}function Vr(){return Vr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vr.apply(this,arguments)}var Gr=e.createContext(null);function Kr(){return e.useContext(Gr)}var Zr="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Xr(t){const{children:n,theme:r}=t,o=Kr(),i=e.useMemo((()=>{const e=null===o?r:function(e,t){if("function"==typeof t)return t(e);return Vr({},e,t)}(o,r);return null!=e&&(e[Zr]=null!==o),e}),[r,o]);return pn.exports.jsx(Gr.Provider,{value:i,children:n})}function Jr(e=null){const t=Kr();return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Yr=$r();function Qr(e=Yr){return Jr(e)}const eo=["variant"];function to(e){return 0===e.length}function no(e){const{variant:t}=e,n=zr(e,eo);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?to(r)?e[t]:On(e[t]):`${to(r)?t:On(t)}${On(e[t].toString())}`})),r}const ro=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],oo=["theme"],io=["theme"];function ao(e){return 0===Object.keys(e).length}function so(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const lo=$r();function co(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function uo(e){if(e.type)return e;if("#"===e.charAt(0))return uo(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(wn(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(wn(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function po(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 fo(e){let t="hsl"===(e=uo(e)).type||"hsla"===e.type?uo(function(e){e=uo(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),po({type:s,values:l})}(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))}const ho={};function mo(e){const t=Qr();return pn.exports.jsx(g.Provider,{value:"object"==typeof t?t:ho,children:e.children})}function go(e){const{children:t,theme:n}=e;return pn.exports.jsx(Xr,{theme:n,children:pn.exports.jsx(mo,{children:t})})}const yo=["defaultProps","mixins","overrides","palette","props","styleOverrides"],bo=["type","mode"];var vo={black:"#000",white:"#fff"};var Eo={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var Co={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var xo={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var Lo={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var So={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var wo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Oo={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const qo=["mode","contrastThreshold","tonalOffset"],Ro={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:vo.white,default:vo.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}},ko={text:{primary:vo.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:vo.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 Io(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=uo(e),t=co(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 po(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=uo(e),t=co(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 po(e)}(e.main,i)))}function _o(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=lt(e,qo),i=e.primary||function(e="light"){return"dark"===e?{main:So[200],light:So[50],dark:So[400]}:{main:So[700],light:So[400],dark:So[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Co[200],light:Co[50],dark:Co[400]}:{main:Co[500],light:Co[300],dark:Co[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:xo[500],light:xo[300],dark:xo[700]}:{main:xo[700],light:xo[400],dark:xo[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:wo[400],light:wo[300],dark:wo[700]}:{main:wo[700],light:wo[500],dark:wo[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Oo[400],light:Oo[300],dark:Oo[700]}:{main:Oo[800],light:Oo[500],dark:Oo[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Lo[400],light:Lo[300],dark:Lo[700]}:{main:"#ed6c02",light:Lo[500],dark:Lo[900]}}(t);function p(e){const t=function(e,t){const n=fo(e),r=fo(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,ko.text.primary)>=n?ko.text.primary:Ro.text.primary;return t}const d=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=st({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(wn(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(wn(12,t?` (${t})`:"",JSON.stringify(e.main)));return Io(e,"light",o,r),Io(e,"dark",i,r),e.contrastText||(e.contrastText=p(e.main)),e},f={dark:ko,light:Ro};return Sn(st({common:st({},vo),mode:t,primary:d({color:i,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:u,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:c,name:"success"}),grey:Eo,contrastThreshold:n,getContrastText:p,augmentColor:d,tonalOffset:r},f[t]),o)}const To=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ao={textTransform:"uppercase"},Do='"Roboto", "Helvetica", "Arial", sans-serif';function Po(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Do,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:p}=n,d=lt(n,To),f=o/14,h=p||(e=>e/c*f+"rem"),m=(e,t,n,o,i)=>{return st({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Do?{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(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,Ao),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Ao)};return Sn(st({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),d,{clone:!1})}function No(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var Mo=["none",No(0,2,1,-1,0,1,1,0,0,1,3,0),No(0,3,1,-2,0,2,2,0,0,1,5,0),No(0,3,3,-2,0,3,4,0,0,1,8,0),No(0,2,4,-1,0,4,5,0,0,1,10,0),No(0,3,5,-1,0,5,8,0,0,1,14,0),No(0,3,5,-1,0,6,10,0,0,1,18,0),No(0,4,5,-2,0,7,10,1,0,2,16,1),No(0,5,5,-3,0,8,10,1,0,3,14,2),No(0,5,6,-3,0,9,12,1,0,3,16,2),No(0,6,6,-3,0,10,14,1,0,4,18,3),No(0,6,7,-4,0,11,15,1,0,4,20,3),No(0,7,8,-4,0,12,17,2,0,5,22,4),No(0,7,8,-4,0,13,19,2,0,5,24,4),No(0,7,9,-4,0,14,21,2,0,5,26,4),No(0,8,9,-5,0,15,22,2,0,6,28,5),No(0,8,10,-5,0,16,24,2,0,6,30,5),No(0,8,11,-5,0,17,26,2,0,6,32,5),No(0,9,11,-5,0,18,28,2,0,7,34,6),No(0,9,12,-6,0,19,29,2,0,7,36,6),No(0,10,13,-6,0,20,31,3,0,8,38,7),No(0,10,13,-6,0,21,33,3,0,8,40,7),No(0,10,14,-6,0,22,35,3,0,8,42,7),No(0,11,14,-7,0,23,36,3,0,9,44,8),No(0,11,15,-7,0,24,38,3,0,9,46,8)];const jo=["duration","easing","delay"],zo={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)"},Fo={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Bo(e){return`${Math.round(e)}ms`}function Ho(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Uo(e){const t=st({},zo,e.easing),n=st({},Fo,e.duration);return st({getAutoHeightDuration:Ho,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return lt(r,jo),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Bo(o)} ${i} ${"string"==typeof a?a:Bo(a)}`)).join(",")}},e,{easing:t,duration:n})}var Wo={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const $o=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Vo(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=lt(e,$o);if(e.vars)throw new Error(wn(18));const s=_o(r),l=$r(e);let c=Sn(l,{mixins:(u=l.breakpoints,p=n,st({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},p)),palette:s,shadows:Mo.slice(),typography:Po(s,i),transitions:Uo(o),zIndex:st({},Wo)});var u,p;return c=Sn(c,a),c=t.reduce(((e,t)=>Sn(e,t)),c),c}var Go=Vo();function Ko(){return Qr(Go)}const Zo=function(e={}){const{defaultTheme:t=lo,rootShouldForwardProp:n=so,slotShouldForwardProp:r=so,styleFunctionSx:o=jr}=e,i=e=>{const n=ao(e.theme)?t:e.theme;return o(In({},e,{theme:n}))};return i.__mui_systemSx=!0,(e,o={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:a,slot:s,skipVariantsResolver:l,skipSx:c,overridesResolver:u}=o,p=zr(o,ro),d=void 0!==l?l:s&&"Root"!==s||!1,f=c||!1;let h=so;"Root"===s?h=n:s?h=r:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const m=function(e,t){return j(e,t)}(e,In({shouldForwardProp:h,label:undefined},p)),g=(e,...n)=>{const r=n?n.map((e=>"function"==typeof e&&e.__emotion_real!==e?n=>{let{theme:r}=n,o=zr(n,oo);return e(In({theme:ao(r)?t:r},o))}:e)):[];let o=e;a&&u&&r.push((e=>{const n=ao(e.theme)?t:e.theme,r=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(a,n);if(r){const t={};return Object.entries(r).forEach((([r,o])=>{t[r]="function"==typeof o?o(In({},e,{theme:n})):o})),u(e,t)}return null})),a&&!d&&r.push((e=>{const n=ao(e.theme)?t:e.theme;return((e,t,n,r)=>{var o,i;const{ownerState:a={}}=e,s=[],l=null==n||null==(o=n.components)||null==(i=o[r])?void 0:i.variants;return l&&l.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{a[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&s.push(t[no(n.props)])})),s})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=no(e.props);r[t]=e.style})),r})(a,n),n,a)})),f||r.push(i);const s=r.length-n.length;if(Array.isArray(e)&&s>0){const t=new Array(s).fill("");o=[...e,...t],o.raw=[...e.raw,...t]}else"function"==typeof e&&e.__emotion_real!==e&&(o=n=>{let{theme:r}=n,o=zr(n,io);return e(In({theme:ao(r)?t:r},o))});return m(o,...r)};return m.withConfig&&(g.withConfig=m.withConfig),g}}({defaultTheme:Go,rootShouldForwardProp:e=>so(e)&&"classes"!==e});var Xo=Zo;function Jo(){return Jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jo.apply(this,arguments)}function Yo(e,t){return Yo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yo(e,t)}function Qo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var ei=function(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=function(e,t,n="Mui"){const r=kn[t];return r?`${n}-${r}`:`${Rn.generate(e)}-${t}`}(e,t,n)})),r}("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),ti={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 ni="#009845",ri="#3F8AB3",oi="#ffffff",ii="#404040",ai="#333333",si="#1A1A1A",li={mode:"light",palette:{primary:{main:ii,contrastText:oi},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:ii,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{active:ii,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:oi,default:oi,lightest:oi,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:ri,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:ni,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:oi,alternativeContrastText:ii,excludedContrastText:ii},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)"}}},ci={mode:"dark",palette:{primary:{main:ai,contrastText:oi},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:oi,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:oi,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:ii,lighter:ai,darker:"#262626",darkest:si},custom:{focusBorder:ri,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:ni,alternative:ai,excluded:si,mainContrastText:oi,alternativeContrastText:oi,excludedContrastText:oi},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)"}}},ui={},pi=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","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},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(ei.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(ei.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(ei.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(ei.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function di(e){let t=li,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=ci));const r=JSON.stringify(t);if(ui[r])return ui[r];const o={palette:B(B({type:t.mode},ti.palette),t.palette),typography:B({},ti.typography),shadows:ti.shadows,props:B({},ti.props),shape:B({},ti.shape)};return ui[r]=Vo(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={}}=e,s=st({},lt(e,yo),{components:{}});Object.keys(t).forEach((e=>{const n=s.components[e]||{};n.defaultProps=t[e],s.components[e]=n})),Object.keys(i).forEach((e=>{const t=s.components[e]||{};t.defaultProps=i[e],s.components[e]=t})),Object.keys(a).forEach((e=>{const t=s.components[e]||{};t.styleOverrides=a[e],s.components[e]=t})),Object.keys(r).forEach((e=>{const t=s.components[e]||{};t.styleOverrides=r[e],s.components[e]=t})),s.spacing=Ur(e.spacing);const l=Br(e.breakpoints||{}),c=s.spacing;s.mixins=st({gutters:(e={})=>st({paddingLeft:c(2),paddingRight:c(2)},e,{[l.up("sm")]:st({paddingLeft:c(3),paddingRight:c(3)},e[l.up("sm")])})},n);const{type:u,mode:p}=o,d=lt(o,bo),f=p||u||"light";return s.palette=st({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},d),s}(B(B({},o),{},{overrides:pi(o)}))),ui[r].name=n,ui[r]}Rn.configure((e=>"njs-".concat("de86","-").concat(e.replace("Mui",""))));var fi=t.createContext({language:null,theme:null,translator:null,constraints:{}}),hi=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const o=e,i=[],a={get:e=>o[e],set:(e,n)=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));return o[e]=n,t({type:"SET",value:n}),n},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));o[e]=null},dispatch:e=>{i.forEach((t=>t(e?{}:o)))}},s=()=>{const[,e]=n(o);return r((()=>(i.push(e),()=>{const t=i.indexOf(e);i.splice(t,1)})),[e]),[a]};return[s,a]};const[mi,gi]=hi({}),[yi,bi]=hi({}),[vi,Ei]=hi({}),[Ci,xi]=hi({}),[Li,Si]=hi({}),[,wi]=hi({}),Oi=e=>{let{type:t,value:n}=e;const r=wi.get(n.id);wi.set(n.id,{});const o=()=>{bi.clear(n.id),Si.set(n.id,{}),Si.dispatch(!0)},i=()=>{n.removeListener("changed",o),gi.clear(n.id),bi.clear(n.id),Ei.clear(n.id),xi.clear(n.id),Si.clear(n.id),wi.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{i()})));return i},[qi,Ri]=hi({},Oi),ki=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let i;switch(t.type){case"INVALID":i=B(B({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:B({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=B(B({},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 Ii(e,t){const n=e?"".concat(e.id):null,[i]=mi(),[a,s]=o(ki,n?i.get(n):null),[l]=Li(),[c]=yi();let u;n&&(u=c.get(n),u||(u={},c.set(n,u)));const p=async r=>{let o=u[t];if(!o||o&&o.rpcRetry){o={rpc:e[t](),rpcRetry:!1},u[t]=o,s({type:"INVALID",method:t,key:n,model:e,rpcResultStore:i,canCancel:!0})}try{const r=await o.rpc;s({type:"VALID",result:r,key:n,method:t,model:e,rpcResultStore:i})}catch(e){15!==e.code||r||(o.rpcRetry||(o.rpcRetry=!0),p(!0))}},d={cancel:async()=>{const r=e.session.getObjectApi({handle:-1});await r.cancelRequest(u[t].rpc.requestId),s({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:i})},retry:()=>{u[t].rpcRetry=!0,p()}};return r((()=>{e&&p()}),[e,l.get(e&&e.id),n,t]),[a&&a.result,{validating:a&&a.validating,canCancel:a&&a.canCancel,canRetry:a&&a.canRetry},d]}function _i(e){return Ii(e,"getLayout")}function Ti(e){return Ii(e,"getAppLayout")}function Ai(e,t){const o=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[i]=qi(),[a]=vi(),[s,l]=n();let c;o&&(c=a.get(o));for(var u=arguments.length,p=new Array(u>2?u-2:0),d=2;d<u;d++)p[d-2]=arguments[d];return r((()=>{if(!t)return;(async()=>{if(!c){const n=t.createSessionObject(e);c=n,a.set(o,c)}const n=await c;i.set(o,n),l(n)})()}),[t,...p]),[s]}const Di={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Pi(e){return Ai(Di,e)}function Ni(e){const[t]=Pi(e),[o]=_i(t),[i]=Ti(e),[a,s]=n(null);return r((()=>{i&&t&&o&&((e,t,n)=>{const r=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})));(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::")!==(n.qStateNames||[]).map((e=>e)).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)})(t,o,i)}),[i,t,o]),r((()=>{if(!o)return;let e=!1,t=!1,n=!1;[o,...o.alternateStates||[]].forEach((r=>{e=e||r.qSelectionObject&&r.qSelectionObject.qBackCount>0,t=t||r.qSelectionObject&&r.qSelectionObject.qForwardCount>0,n=n||(r.qSelectionObject&&r.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),s({canGoBack:e,canGoForward:t,canClear:n})}),[o]),[a,t,o]}const[Mi,ji]=hi({}),[zi,Fi]=hi({}),[Bi,Hi]=hi({}),[Ui,Wi]=hi({});function $i(e){if(!e.session)return[];const[t,n,o]=Ni(e),[i]=Mi(),a=e?e.id:null;let s=i.get(a);return r((()=>{e&&n&&o&&t&&!s&&(s=function(e){let{app:t,currentSelectionsLayout:n,navState:r}=e;const o="".concat(t.id),i=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=Wi.get(o);t&&(await t.endSelections(e),Wi.clear(o),Hi.get(t.id).emit("deactivated"))},a={begin:async function(e,n){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===Wi.get(o))return;i(r),Wi.set(o,e);const a=Array.isArray(n)?n:[n],s=async n=>{try{await e.beginSelections(a),Wi.set(o,e)}catch(e){6003!==e.code||n?Wi.clear(o):(await t.abortModal(r),s(!0))}};await s()},end:i};Fi.set(o,a);const s={model:t,isInModal:()=>!!Wi.get(o),isModal:e=>e?Wi.get(o)===e:!!Wi.get(o),canGoForward:()=>r.canGoForward,canGoBack:()=>r.canGoBack,canClear:()=>r.canClear,layout:()=>n,forward:()=>a.end().then((()=>t.forward())),back:()=>a.end().then((()=>t.back())),clear:()=>a.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return a.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return s}({app:e,currentSelectionsLayout:o,navState:t}),i.set(a,s),i.dispatch(!0))}),[e,n,o,t]),[s,t]}const Vi=i(((e,r)=>{let{initialContext:o,app:i}=e;const[l]=$i(i),[c,u]=n(o),[p,d]=n(),{theme:f}=a((()=>({theme:di(p)})),[p]),[h,m]=n([]);return s(r,(()=>({addComponent(e){m([...h,e])},removeComponent(e){const t=h.indexOf(e);-1!==t&&(h.splice(t,1),m([...h]))},setMuiThemeName:d,setContext:u,getAppSelections:()=>l}))),t.createElement(Cn,{injectFirst:!0},t.createElement(go,{theme:f},t.createElement(fi.Provider,{value:c},h)))}));function Gi(e){let n,{app:r,context:o}=e;const i=new Promise((e=>{n=e})),a=t.createRef(),s=document.createElement("div");s.style.display="none",s.setAttribute("data-nebulajs-version","3.1.0-alpha.2"),s.setAttribute("data-app-id",r.id),document.body.appendChild(s),h.render(t.createElement(Vi,{ref:a,app:r,initialContext:o}),s,n);const l={};return[{toggleFocusOfCells(e){Object.keys(l).forEach((t=>{l[t].current.toggleFocus(t===e)}))},cells:l,addCell(e,t){l[e]=t},add(e){(async()=>{await i,a.current.addComponent(e)})()},remove(e){(async()=>{await i,a.current.removeComponent(e)})()},setMuiThemeName(e){(async()=>{await i,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await i,a.current.setContext(e)})()},getAppSelections:async()=>(await i,a.current.getAppSelections())},a,i]}function Ki(){const[e,t]=n(),[r,o]=n(),i=l((e=>{e&&t(e)}),[]),a=()=>{const{left:t,top:n,width:r,height:i}=e.getBoundingClientRect();o({left:t,top:n,width:r,height:i})};return c((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(a);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return a(),window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}}}),[e]),[i,r,e]}function Zi(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Xi(e){let{size:n,style:r={},viewBox:o="0 0 16 16",shapes:i=[]}=e;const a=B({fontSize:Zi(n),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},r);return t.createElement("i",{style:a},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:o,fill:"currentColor"},i.map(((e,n)=>{let{type:r,attrs:o}=e;return t.createElement(r,U({key:n},o))}))))}var Ji=e=>Xi((e=>B(B({},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 Yi=e=>Xi((e=>B(B({},e),{},{shapes:[{type:"path",attrs:{d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"}}]}))(e));var Qi=e=>Xi((e=>B(B({},e),{},{shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]}))(e)),ea=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ta(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||ea(r)&&ea(o)))return!1;var r,o;return!0}function na(e,t){var n;void 0===t&&(t=ta);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var ra="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function oa(e){cancelAnimationFrame(e.id)}var ia=-1;function aa(e){if(void 0===e&&(e=!1),-1===ia||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),ia=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return ia}var sa=null;function la(e){if(void 0===e&&(e=!1),null===sa||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?sa="positive-descending":(t.scrollLeft=1,sa=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),sa}return sa}var ca=function(e,t){return e};function ua(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){var t,p;function f(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,Qo(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Qo(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=na((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=na((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,s=i.itemSize,l=i.layout,u=r._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var p=n(r.props,e,r._instanceProps),d=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?p:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:p,height:f?"100%":d,width:f?d:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=na((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(la()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){var e,t,n,o;null!==r._resetIsScrollingTimeoutId&&oa(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=(e=r._resetIsScrolling,t=150,n=ra(),o={id:requestAnimationFrame((function r(){ra()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}))},o)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}p=e,(t=f).prototype=Object.create(p.prototype),t.prototype.constructor=t,Yo(t,p),f.getDerivedStateFromProps=function(e,t){return pa(e,t),d(e),null};var h=f.prototype;return h.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)},h.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 s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?aa():0:l.scrollHeight>l.clientHeight?aa():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},h.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()},h.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(la()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},h.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&oa(this._resetIsScrollingTimeoutId)},h.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,c=e.itemCount,p=e.itemData,d=e.itemKey,f=void 0===d?ca:d,h=e.layout,m=e.outerElementType,g=e.outerTagName,y=e.style,b=e.useIsScrolling,v=e.width,E=this.state.isScrolling,C="horizontal"===o||"horizontal"===h,x=C?this._onScrollHorizontal:this._onScrollVertical,L=this._getRangeToRender(),S=L[0],w=L[1],O=[];if(c>0)for(var q=S;q<=w;q++)O.push(u(t,{data:p,key:f(q,p),index:q,isScrolling:b?E:void 0,style:this._getItemStyle(q)}));var R=r(this.props,this._instanceProps);return u(m||g||"div",{className:n,onScroll:x,ref:this._outerRefSetter,style:Jo({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},u(s||l||"div",{children:O,ref:a,style:{height:C?"100%":R,pointerEvents:E?"none":void 0,width:C?R:"100%"}}))},h._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,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},h._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,l=r.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,l,this._instanceProps),u=s(this.props,c,l,this._instanceProps),p=o&&"backward"!==i?1:Math.max(1,n),d=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-p),Math.max(0,Math.min(t-1,u+d)),c,u]},f}(p),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var pa=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},da=ua({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,s=e.height,l=e.itemCount,c=e.itemSize,u=e.layout,p=e.width,d="horizontal"===a||"horizontal"===u?p:s,f=Math.max(0,l*c-d),h=Math.min(f,t*c),m=Math.max(0,t*c-d+c+i);switch("smart"===n&&(n=r>=m-d&&r<=h+d?"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(d/2)?0:g>f+Math.floor(d/2)?f:g;default:return r>=m&&r<=h?r:r<m?m:h}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,i=e.itemCount,a=e.itemSize,s=e.layout,l=e.width,c=t*a,u="horizontal"===r||"horizontal"===s?l:o,p=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+p-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});var fa=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ha=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}}(),ma=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},ga=function(e){function t(){var e,n,r;fa(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=ma(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},ma(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,p),ha(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,s=n.threshold,l=void 0===s?15:s,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.startIndex,i=e.stopIndex,a=[],s=null,l=null,c=o;c<=i;c++)t(c)?null!==l&&(a.push(s,l),s=l=null):(l=c,null===s&&(s=c));if(null!==l){for(var u=Math.min(Math.max(l,s+r-1),n-1),p=l+1;p<=u&&!t(p);p++)l=p;a.push(s,l)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var d=a[0]-1;if(t(d))break;a[0]=d}return a}({isItemLoaded:r,itemCount:o,minimumBatchSize:a,startIndex:Math.max(0,e-l),stopIndex:Math.min(o-1,t+l)});(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}();const ya=["S","XS"],ba=e=>e.reduce(((e,t)=>e.concat(t)));function va(e){return ya.includes(e)}function Ea(e){return Array.isArray(e)?Array.from(new Set(e)):void 0}async function Ca(e){let{selections:t,elemNumbers:n,isSingleSelect:r=!1}=e,o=Promise.resolve(!1);if(!n.some((e=>Number.isNaN(e)))){const e=n;o=t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,!r]}).then((e=>!1!==e)).catch((()=>!1))}return o}function xa(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)}function La(e){let{layout:t,selections:o,pages:i=[],checkboxes:a=!1,selectDisabled:s,doc:c=document,isSingleSelect:u=!1}=e;const[p,d]=n(i),[f,h]=n(!1),[m,g]=n(!1),[y,b]=n(u),[v,E]=n([]),[C,x]=n(!1),[L,S]=n([]),w=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 ba(t)}(i);r((()=>{b(u)}),[u]);const O=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(s())return;g(!0);const n=t?e.filter((e=>!v.includes(e))):e;await Ca({selections:o,elemNumbers:n,isSingleSelect:y}),g(!1),S([])},q=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s()||S((n=>{const r=Ea([...n,...e]),o=t?r.filter((e=>!v.includes(e))):r;return t?xa(r,w):o}))},R=e=>{(e.ctrlKey||e.metaKey)&&(b(!0),e.currentTarget.focus(),e.preventDefault())},k=l((e=>{if(m||s())return;const t=+e.currentTarget.getAttribute("data-n");S([t]),R(e)}),[m,s]),I=l((e=>{if(m||s())return;x(!1),h(!0);const t=+e.currentTarget.getAttribute("data-n");S([t]),R(e)}),[m,s]),_=l((e=>{const t=+e.currentTarget.getAttribute("data-n");y||!f||m||1===L.length&&L[0]===t||q([t])}),[f,m,L,v,C,s]),T=l((()=>{h(!1),g(!1),x(!1),b(u)}),[u]),A=l((e=>{if(y||!f||m||s())return;x(!0);const t=+e.currentTarget.getAttribute("data-n");q([t],!0)}),[f,m,C,L,v,s,t&&t.qListObject.qDimensionInfo.qIsOneAndOnlyOne]);r((()=>{const e=!f;L&&L.length&&!m&&e&&t&&O(L,C)}),[L,f,s()]),r((()=>(c.addEventListener("mouseup",T),()=>{c.removeEventListener("mouseup",T)})),[T]),r((()=>{if(m||f)return;const e=function(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return!!va(t.qState)&&t.qElemNumber}));return t.filter((e=>!1!==e))}));return ba(t)}(i);E(e)}),[i]),r((()=>{if(m||!i||!a&&!f)return;const e=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e=>t.length<=1&&va(e)?"A":"S",o=e.map((e=>{const o=e.qMatrix.map((e=>{const[o]=e,i=t.includes(o.qElemNumber);let a;return a=n?i?"S":"A":i?r(o.qState):o.qState,[B(B({},o),{},{qState:a}),e.slice(1)]}));return B(B({},e),{},{qMatrix:o})}));return o}(i,L,y);d(e)}),[L]);const D={};return a?Object.assign(D,{onClick:k}):Object.assign(D,{onMouseUp:_,onMouseDown:I,onMouseEnter:A}),{instantPages:p,interactionEvents:D,select:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];x(!1),h(!0),q(e,t||C);const n=O(e,t||C);return h(!1),n}}}const Sa=e=>B(B({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var wa=e=>Xi(Sa(e));const Oa="ListBoxCheckbox",qa={cbIcon:"".concat(Oa,"-cbIcon"),cbIconChecked:"".concat(Oa,"-cbIconChecked"),cbIconExcluded:"".concat(Oa,"-cbIconExcluded"),cbIconAlternative:"".concat(Oa,"-cbIconAlternative"),checkbox:"".concat(Oa,"-checkbox"),dense:"".concat(Oa,"-dense")},Ra=Xo(y)((e=>{let{theme:t}=e;return{["& .".concat(qa.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(qa.cbIconChecked)]:{borderRadius:3,backgroundColor:t.palette.selected.main,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(qa.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.excluded},["& .".concat(qa.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.alternative},["&.".concat(qa.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(qa.dense)]:{padding:"4px 8px"}}})),ka=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.createElement("span",{className:e.cbIcon},r&&t.createElement("span",{className:n&&r?e.cbIconExcluded:""}))};function Ia(e){let{checked:n,label:r,dense:o,excluded:i,showGray:a=!0}=e;return t.createElement(Ra,{edge:"start",checked:n,disableRipple:!0,className:[qa.checkbox,o&&qa.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r},name:r,icon:ka(qa,a,i),checkedIcon:t.createElement("span",{className:qa.cbIconChecked})})}const _a={denseRadioButton:"".concat("ListBoxRadioButton","-denseRadioButton"),radioButton:"".concat("ListBoxRadioButton","-radioButton")},Ta=Xo(b)((()=>({["&.".concat(_a.radioButton)]:{right:"5px"}})));function Aa(e){let{checked:n,label:r,dense:o}=e;return t.createElement(Ta,{checked:n,value:r,name:r,className:_a.radioButton,style:{backgroundColor:"transparent"},disableRipple:!0,size:o?"small":"medium",sx:o&&{padding:"0px 0px 0px 12px"}})}const Da=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===Da.ARROW_UP||e===Da.ARROW_DOWN||e===Da.ARROW_LEFT||e===Da.ARROW_RIGHT});function Pa(e){let{setKeyboardActive:t}=e;return e=>{const{keyCode:n}=e.nativeEvent;switch(n){case Da.ENTER:case Da.SPACE:if(!e.target.classList.contains("listbox-container"))return;(e=>{const n=e.querySelector(".search input, .value.selector, .value, .ActionsToolbar-* button");t(!0),n&&n.focus()})(e.currentTarget);break;case Da.ESCAPE:r=e.currentTarget,t(!1),r.focus();break;default:return}var r;e.preventDefault()}}const Na="RowColumn",Ma={row:"".concat(Na,"-row"),rowBorderBottom:"".concat(Na,"-rowBorderBottom"),column:"".concat(Na,"-column"),fieldRoot:"".concat(Na,"-fieldRoot"),cell:"".concat(Na,"-cell"),labelText:"".concat(Na,"-labelText"),labelDense:"".concat(Na,"-labelDense"),highlighted:"".concat(Na,"-highlighted"),checkboxLabel:"".concat(Na,"-checkboxLabel"),icon:"".concat(Na,"-icon"),S:"".concat(Na,"-S"),XS:"".concat(Na,"-XS"),A:"".concat(Na,"-A"),X:"".concat(Na,"-X"),frequencyCount:"".concat(Na,"-frequencyCount"),barContainer:"".concat(Na,"-barContainer"),bar:"".concat(Na,"-bar"),barSelected:"".concat(Na,"-barSelected"),barWithCheckbox:"".concat(Na,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(Na,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(Na,"-excludedTextWithCheckbox")},ja={width:"100%",overflow:"hidden",textOverflow:"ellipsis"},za=e=>{let{theme:t}=e;return{background:t.palette.selected.main,color:t.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px rgba(0, 0, 0, 0.3)",outline:"none"},"& $cell":{paddingRight:0}}},Fa=Xo("div")((e=>{let{theme:t}=e;return{["& .".concat(Ma.row)]:{flexWrap:"nowrap",color:t.palette.text.primary},["& .".concat(Ma.rowBorderBottom)]:{borderBottom:"1px solid ".concat(t.palette.divider)},["& .".concat(Ma.column)]:{flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider),color:t.palette.text.primary},["& .".concat(Ma.fieldRoot)]:{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(Ma.cell)]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"9px",paddingRight:"9px"},["& .".concat(Ma.labelText)]:B({flexBasis:"max-content",lineHeight:"16px",userSelect:"none",whiteSpace:"pre"},ja),["& .".concat(Ma.labelDense)]:{fontSize:12},["& .".concat(Ma.highlighted)]:{overflow:"visible",width:"100%","& > span":{width:"100%",backgroundColor:"#FFC72A"}},["& .".concat(Ma.checkboxLabel)]:{margin:0,width:"100%",height:"100%","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":B(B({},ja),{},{display:"flex",alignItems:"center",paddingLeft:0})},["& .".concat(Ma.icon)]:{display:"flex",padding:t.spacing(1,1,1,0)},["& .".concat(Ma.S)]:B({},za({theme:t})),["& .".concat(Ma.XS)]:B(B({},za({theme:t})),{},{background:t.palette.selected.excluded,color:t.palette.selected.mainContrastText}),["& .".concat(Ma.A)]:{background:t.palette.selected.alternative,color:t.palette.selected.alternativeContrastText},["& .".concat(Ma.X)]:{background:t.palette.selected.excluded,color:t.palette.selected.excludedContrastText},["& .".concat(Ma.frequencyCount)]:{paddingLeft:"8px",paddingRight:"8px"},["&.".concat(Ma.barContainer)]:{height:"100%",display:"inline-block"},["& .".concat(Ma.bar)]:{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",height:"16px",position:"absolute",zIndex:"-1",alignSelf:"center",left:"".concat(4,"px"),transition:"width 0.2s",backgroundColor:"#FAFAFA"},["& .".concat(Ma.barSelected)]:{opacity:"30%",zIndex:"0",background:t.palette.background.lighter},["& .".concat(Ma.barWithCheckbox)]:{left:"".concat(29,"px")},["& .".concat(Ma.barSelectedWithCheckbox)]:{background:"#BFE5D0",borderColor:"#BFE5D0"},["& .".concat(Ma.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));function Ba(e){let{index:o,style:i,data:a}=e;const{onClick:s,onMouseDown:c,onMouseUp:u,onMouseEnter:p,pages:d,isLocked:f,column:h=!1,checkboxes:m=!1,dense:g=!1,frequencyMode:y="N",isSingleSelect:b,actions:x,frequencyMax:L="",histogram:S=!1,keyboard:w,showGray:O=!0}=a,q=l(function(e){let{select:t,confirm:n,cancel:r}=e;const o=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e&&e.parentElement[t?"nextElementSibling":"previousElementSibling"];return n&&n.querySelector("[role]")};let i=!1;const a=e=>{i=e};return e=>{let s;const{keyCode:l,shiftKey:c=!1}=e.nativeEvent;switch(l){case Da.SHIFT:a(!0);break;case Da.SPACE:t([+e.currentTarget.getAttribute("data-n")]);break;case Da.ARROW_DOWN:case Da.ARROW_RIGHT:s=o(e.currentTarget,!0),c&&s&&(i&&(t([+e.currentTarget.getAttribute("data-n")],!0),a(!1)),t([+s.getAttribute("data-n")],!0));break;case Da.ARROW_UP:case Da.ARROW_LEFT:s=o(e.currentTarget,!1),c&&s&&(i&&(t([+e.currentTarget.getAttribute("data-n")],!0),a(!1)),t([+s.getAttribute("data-n")],!0));break;case Da.ENTER:n();break;case Da.ESCAPE:return void r();default:return}s&&s.focus(),e.preventDefault(),e.stopPropagation()}}(x),[x]),[R,k]=n(!1),[I,_]=n(),[T,A]=n([]);r((()=>{if(!d)return;let e;const t=d.filter((e=>e.qArea.qTop<=o&&o<e.qArea.qTop+e.qArea.qHeight))[0];if(t){const n=t.qArea;o>=n.qTop&&o<n.qTop+n.qHeight&&([e]=t.qMatrix[o-n.qTop])}_(e)}),[d]);const D=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,P=e=>e?"A"===e.qState:null;r((()=>{if(!I)return;const e="S"===I.qState||"XS"===I.qState||"L"===I.qState;k(e);const t=[h?Ma.column:Ma.row];S&&g||t.push(Ma.rowBorderBottom),m||("XS"===I.qState?t.push(O?Ma.XS:Ma.S):"S"===I.qState||"L"===I.qState?t.push(Ma.S):O&&P(I)?t.push(Ma.A):O&&D(I)&&t.push(Ma.X)),A(t)}),[I&&I.qState]);const N=e=>e.filter((e=>!!e)).join(" ").trim(),M=()=>(P(I)||D(I))&&m,j=e=>{let{lbl:n,ix:r,color:o,highlighted:i=!1}=e;return t.createElement(E,{component:"span",variant:"body2",key:r,className:N([Ma.labelText,i&&Ma.highlighted,g&&Ma.labelDense,O&&M()&&Ma.excludedTextWithCheckbox]),color:o},t.createElement("span",{style:{whiteSpace:"pre"}},n))},z=e=>{let{lbl:n,color:r,qElemNumber:o}=e;const i=t.createElement(Ia,{label:n,checked:R,dense:g,excluded:D(I),showGray:O}),a=t.createElement(Aa,{label:n,checked:R,dense:g}),s="string"==typeof n?j({lbl:n,color:r,highlighted:!1}):n;return t.createElement(C,{color:r,control:b?a:i,className:Ma.checkboxLabel,label:s,key:o})},F=I?I.qText:"",B=()=>I?I.qFrequency?I.qFrequency:"0":"",H=I&&I.qHighlightRanges&&I.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[],U=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,s=t[o].qCharPos+t[o].qCharCount;return a&&s<e.length&&n.push([e.slice(s),!1]),n}),[]);return n}(F,H),W=m?z:j,$={alignItems:"center",display:"flex"},V=R&&f,G=!m&&R&&!f,K={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,padding:m?0:void 0},Z=0===o;return t.createElement(Fa,{className:Ma.barContainer},t.createElement(v,{container:!0,gap:0,className:N(["value",...T]),classes:{root:Ma.fieldRoot},style:i,onClick:s,onMouseDown:c,onMouseUp:u,onMouseEnter:p,onKeyDown:q,onContextMenu:e=>{m&&s(e),e.preventDefault()},role:h?"column":"row",tabIndex:!Z||w.enabled&&!w.active?-1:0,"data-n":I&&I.qElemNumber},I&&S&&"0"!==B()&&t.createElement("div",{className:N([Ma.bar,m&&Ma.barWithCheckbox,R&&(m?Ma.barSelectedWithCheckbox:Ma.barSelected)]),style:{width:(e=>{const t=String(e),n="%"===t.substring(t.length-1),r=parseFloat(n?t:e),o=m?"(".concat(29,"px + ").concat(6,"px)"):"".concat(10,"px");return"calc(".concat(n?r:r/L*100,"% - ").concat(o,")")})(I.qFrequency)}}),t.createElement(v,{item:!0,style:K,className:N([Ma.cell,Ma.selectedCell]),title:"".concat(F)},0===H.length?W({lbl:F,color:"inherit"}):(e=>{let{lbls:t}=e;const n=t.map(((e,t)=>{let[n,r]=e;return j({ix:t,highlighted:r,lbl:n})}));return m?z({lbl:n}):n})({lbls:U})),"N"!==y&&t.createElement(v,{item:!0,style:{display:"flex",alignItems:"center"},className:Ma.frequencyCount},t.createElement(E,{noWrap:!0,color:"inherit",variant:"body2",className:N([g&&Ma.labelDense,Ma.labelText,O&&M()&&Ma.excludedTextWithCheckbox])},B())),(V||G)&&t.createElement(v,{item:!0,className:Ma.icon},V&&t.createElement(Yi,{style:$,size:"small"}),G&&t.createElement(wa,{style:$,size:"small"}))))}const Ha={styledScrollbars:"".concat("ListBox","-styledScrollbars")},Ua=Xo(da)((()=>({["&.".concat(Ha.styledScrollbars)]:{scrollbarColor:"".concat("#BBB"," ").concat("#f1f1f1"),"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:"#f1f1f1"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#BBB",borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}}})));function Wa(e){var o,i;let{model:a,selections:s,direction:c,height:u,width:p,listLayout:f="vertical",frequencyMode:h="N",histogram:m=!1,checkboxes:g=!1,update:y,fetchStart:b,postProcessPages:v,calculatePagesHeight:E=!1,keyboard:C={},showGray:x=!0,scrollState:L,selectDisabled:S=(()=>!1),onSetListCount:w=(()=>{}),setCount:O}=e;const[q]=_i(a),R=!(!q||!q.qListObject.qDimensionInfo.qIsOneAndOnlyOne),[k,I]=n(null),[_,T]=n(!1),{instantPages:A=[],interactionEvents:D,select:P}=La({layout:q,selections:s,pages:k,checkboxes:g,selectDisabled:S,doc:document,isSingleSelect:R}),N=d(null),M=d({queue:[],validPages:!1}),j=d({pages:[]}),z=l((e=>{if(!k||!M.current.validPages)return!1;M.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=k.filter((e=>t(e)))[0];return n&&t(n)}),[q,k]),F=l(((e,t)=>{M.current.queue.push({start:e,stop:t});!!N.current&&N.current._listRef.state.isScrolling;return M.current.queue.length>10&&M.current.queue.shift(),clearTimeout(M.current.timeout),T(!0),new Promise((e=>{M.current.timeout=setTimeout((()=>{const t=M.current.queue.slice(-1)[0],n=a.getListObjectData("/qListObjectDef",[{qTop:t.start>100?t.start-100:0,qHeight:100,qLeft:0,qWidth:1},{qTop:t.start,qHeight:100,qLeft:0,qWidth:1}]).then((t=>{const n=v?v(t):t;M.current.validPages=!0,j.current.pages=n,I(n),T(!1),e()}));b&&b(n)}),0)}))}),[q]),H=()=>{if(M.current.queue=[],M.current.validPages=!1,N.current){if(N.current.resetloadMoreItemsCache(!0),q&&q.qSelectionInfo.qInSelections)return;N.current._listRef.scrollToItem(0)}};y&&y.call(null,H),r((()=>{H(),"function"==typeof O&&q&&O(q.qListObject.qSize.qcy)}),[q,q&&q.qListObject.qSize.qcy]),r((()=>{A&&!_&&I(A)}),[A]);const[U,W]=n(!1);if(r((()=>{L&&!U&&N.current&&(N.current._listRef.scrollToItem(L.initScrollPos),W(!0))}),[N.current]),!q)return null;const $="horizontal"!==f,V=q.qListObject.qSize.qcy,G=k&&k.length&&E?(e=>{const t=e.some((e=>e.qArea.qHeight<100)),n=Math.max(...e.map((e=>e.qArea.qTop+e.qArea.qHeight)));return t?n:V})(k):V;null==w||w(G);const K=null!==(o=null===(i=q.layoutOptions)||void 0===i?void 0:i.dense)&&void 0!==o&&o,{itemSize:Z,listHeight:X}=function(e){let{isVertical:t,checkboxes:n,dense:r,height:o}=e,i=n?40:33;r&&(i=20);const a=t?i:200;return{itemSize:a,listHeight:o||8*a}}({isVertical:$,checkboxes:g,dense:K,height:u}),J=q&&q.qListObject.qDimensionInfo.qLocked,{frequencyMax:Y}=q;return t.createElement(ga,{isItemLoaded:z,itemCount:G||1,loadMoreItems:F,threshold:0,minimumBatchSize:100,ref:N},(e=>{let{onItemsRendered:n,ref:r}=e;return M.current.listRef=r,t.createElement(Ua,{direction:"rtl"===c?"rtl":"ltr","data-testid":"fixed-size-list",useIsScrolling:!0,height:X,width:p,itemCount:G,layout:f,className:Ha.styledScrollbars,itemData:B(B({isLocked:J,column:!$,pages:k},J||S()?{}:D),{},{checkboxes:g,dense:K,frequencyMode:h,isSingleSelect:R,actions:{select:P,confirm:()=>s&&s.confirm.call(s),cancel:()=>s&&s.cancel.call(s)},frequencyMax:Y,histogram:m,keyboard:C,showGray:x}),itemSize:Z,onItemsRendered:e=>{L&&L.setScrollPos(e.visibleStopIndex),n(B({},e))},ref:r},Ba)}))}const $a=e=>B(B({},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"}}]}),Va=e=>B(B({},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"}}]}),Ga=e=>B(B({},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"}}]}),Ka=e=>B(B({},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 Za=e=>{let{layout:t,model:n,translator:r}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:$a,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{n.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:Ga,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{n.selectListObjectPossible("/qListObjectDef")}},{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:Va,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{n.selectListObjectAlternative("/qListObjectDef")}},{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:Ka,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{n.selectListObjectExcluded("/qListObjectDef")}}]};const Xa=e=>B(B({},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 Ja(e){const t=Ko(),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 Ya="njs-cell-action",Qa=t.forwardRef(((e,n)=>{let{ariaExpanded:r=!1,item:o,addAnchor:i=!1}=e;const a=Ko(),{hidden:s,disabled:l,style:c,hasSvgIconShape:u}=Ja(o);if(s)return null;const p=Number.parseInt(a.spacing(.5),10),d=o.keyboardAction?e=>["Enter"," ","Spacebar"].includes(e.key)&&o.keyboardAction():null;return t.createElement(x,{ref:i?null:n,title:o.label,onClick:o.action,onKeyDown:d,disabled:l,style:c,className:Ya,size:"large","aria-expanded":r,"aria-controls":"moreMenuList"},u&&Xi(o.getSvgIconShape()),i&&t.createElement("div",{ref:n,style:{bottom:-p,right:0,position:"absolute",width:"100%",height:0}}))})),es=e=>B(B({},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"}}]}),ts=e=>B(B({},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 ns=e=>Xi(ts(e));const rs={icon:"".concat("More","-icon")},os=Xo(L)((e=>{let{theme:t}=e;return{["& .".concat(rs.icon)]:{color:t.palette.text.primary}}}));function is(e){let{item:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:i,hasSvgIconShape:a}=Ja(n);return o?null:t.createElement(w,{title:n.label,onClick:()=>{n.action(),r()},disabled:i,tabindex:"0"},a&&t.createElement(O,{className:rs.icon},Xi(n.getSvgIconShape())),t.createElement(E,{noWrap:!0},n.label))}const as=t.forwardRef(((e,n)=>{let{actions:r=[],show:o=!0,alignTo:i,popoverProps:a={},popoverPaperStyle:s={},onCloseOrActionClick:l=(()=>{})}=e;return r.length>0&&t.createElement(os,U({},a,{onClose:l,ref:n,open:o,anchorEl:i.current,getContentAnchorEl:null,container:i.current,disablePortal:!0,hideBackdrop:!0,style:{pointerEvents:"none"},transitionDuration:0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:B({pointerEvents:"auto",maxWidth:"250px"},s)}}),t.createElement(S,{id:"moreMenuList"},r.map(((e,n)=>t.createElement(is,{key:n,item:e,onActionClick:l})))))})),ss={itemSpacing:"".concat("ActionsToolbar","-itemSpacing"),firstItemSpacing:"".concat("ActionsToolbar","-firstItemSpacing"),lastItemSpacing:"".concat("ActionsToolbar","-lastItemSpacing")},ls=Xo(L)((e=>{let{theme:t}=e;return{["& .".concat(ss.itemSpacing)]:{padding:t.spacing(0,.5)},["& .".concat(ss.firstItemSpacing)]:{padding:t.spacing(0,.5,0,0)},["& .".concat(ss.lastItemSpacing)]:{padding:t.spacing(0,0,0,.5)}}})),cs="njs-action-toolbar-popover",us=t.forwardRef(((e,n)=>{let{ariaExpanded:r=!1,actions:o=[],first:i=!1,last:a=!1,addAnchor:s=!1}=e;return o.length>0?t.createElement(v,{item:!0,container:!0,gap:0,wrap:"nowrap"},o.map(((e,l)=>{let c=[];const u=i&&0===l,p=a&&o.length-1===l;return u&&!p&&(c=[ss.firstItemSpacing]),p&&!u&&(c=[...c,ss.lastItemSpacing]),u||p||0!==c.length||(c=[ss.itemSpacing]),t.createElement(v,{item:!0,key:e.key,className:c.join(" ").trim()},t.createElement(Qa,{ariaExpanded:r,key:e.key,item:e,ref:0===l?n:null,addAnchor:s}))}))):null})),ps={pointerEvents:"none"},ds={vertical:"top",horizontal:"right"},fs={vertical:"bottom",horizontal:"right"};function hs(e){let{show:o=!0,actions:i=[],maxItems:s=3,selections:l={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:c={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:u={show:!1,anchorEl:null},focusHandler:p=null,actionsRefMock:h=null}=e;const m=function(e){let{api:t,onConfirm:n=(()=>{}),onCancel:r=(()=>{}),onKeyDeactivate:o=(()=>{})}=e;const{translator:i}=f(fi);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:ts},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(),action:()=>{r(),t.cancel()},keyboardAction:e=>{o(e),r(),t.cancel()},getSvgIconShape:es},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(),action:()=>{n(),t.confirm()},keyboardAction:e=>{o(e),n(),t.confirm()},getSvgIconShape:Sa}]}(l),{translator:g,keyboardNavigation:y}=f(fi),[b,E]=n(!1),[C,x]=n(c.enabled),[L,S]=n(c.actions),[w,O]=n(c.alignTo),R=d(),k=d(),I=Ko(),_=a((()=>({margin:I.spacing(.5,0)}))),T=e=>{const t=k.current||h;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]};r((()=>()=>E(!1)),[u.show]),r((()=>{x(c.enabled)}),[c.enabled]),r((()=>{if(!p)return;p.on("focus_toolbar_first",(()=>{const e=T(!1);e&&e.focus()})),p.on("focus_toolbar_last",(()=>{const e=T(!0);e&&e.focus()}))}),[]);const A=a((()=>i.filter((e=>!e.hidden))),[i]);if(!l.show&&0===A.length)return null;const D={key:"more",label:g.get("Menu.More"),getSvgIconShape:Xa,hidden:!1,enabled:()=>C,action:()=>E(!b)};if(A.length>s){const e=A.splice(-(A.length-s)-1);x(!0),S([...e,...c.actions]),O(R)}const P=y&&p&&p.refocusContent?e=>{if("Tab"!==e.key)return;(e.shiftKey&&T(!1)===e.target||!e.shiftKey&&T(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),p.refocusContent())}:null,N=A.length>0,M=L.length>0,j=N&&l.show||M&&l.show,z=t.createElement(v,{ref:k,onKeyDown:P,container:!0,gap:0,wrap:"nowrap"},N&&t.createElement(us,{actions:A,first:!0,last:!M&&!l.show}),M&&t.createElement(us,{ref:R,ariaExpanded:b,actions:[D],first:!N,last:!l.show,addAnchor:!0}),j&&t.createElement(v,{item:!0,className:ss.itemSpacing,style:_},t.createElement(q,{orientation:"vertical"})),l.show&&t.createElement(us,{actions:m,first:!N&&!M,last:!0}),b&&t.createElement(as,{show:b,actions:L,alignTo:w,popoverProps:c.popoverProps,popoverPaperStyle:c.popoverPaperStyle,onCloseOrActionClick:()=>{E(!1)}}));return u.show?t.createElement(ls,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:u.show,anchorEl:u.anchorEl,anchorOrigin:ds,transformOrigin:fs,hideBackdrop:!0,style:ps,PaperProps:{className:cs,style:{pointerEvents:"auto",padding:I.spacing(1,1)}}},z):o&&z}var ms=e=>Xi((e=>B(B({},e),{},{shapes:[{type:"path",attrs:{d:"M15.7873809,13.80959 C16.1870614,14.209868 15.9872212,15.1104934 15.4876205,15.5107714 C15.08794,15.9110493 14.1886588,16.2112578 13.7889782,15.8109798 L11.0911347,13.1091035 L10.9912145,12.5086866 L10.2917736,11.8082001 C9.19265216,12.5086866 7.89369045,13.0090341 6.49480859,13.0090341 C2.89768383,13.0090341 0,10.1070188 0,6.50451703 C0,2.90201529 2.89768383,0 6.49480859,0 C10.0919334,0 12.9896172,2.90201529 12.9896172,6.50451703 C12.9896172,7.90548992 12.4900165,9.20639333 11.7905756,10.3071577 L12.4900165,11.0076442 L13.0895373,11.1077137 L15.7873809,13.80959 Z M11.2909749,6.50451703 C11.2909749,5.20361362 10.7913743,4.00277971 9.89209309,3.00208478 C8.9928119,2.10145935 7.79377031,1.60111188 6.49480859,1.60111188 C5.19584688,1.60111188 3.99680529,2.10145935 2.99760397,3.00208478 C2.09832278,4.00277971 1.59872212,5.20361362 1.59872212,6.50451703 C1.59872212,7.80542043 2.09832278,9.00625434 2.99760397,9.90687978 C3.89688516,10.8075052 5.09592674,11.3078527 6.49480859,11.3078527 C7.79377031,11.4079222 8.9928119,10.9075747 9.89209309,9.90687978 C10.7913743,9.00625434 11.2909749,7.80542043 11.2909749,6.50451703 Z"}}]}))(e));const gs="/qListObjectDef";function ys(e){let{selections:o,model:i,keyboard:a,listCount:s,dense:l=!1,visible:c=!0}=e;const{translator:u}=f(fi),[p,d]=n(""),h=Ko(),m=async()=>{if(o.isModal())try{await i.abortListObjectSearch(gs)}finally{d("")}};r((()=>{c||m()}),[c]),r((()=>(o.on("deactivated",m),()=>{o.removeListener&&o.removeListener("deactivated",m)})),[]);const g=async()=>{let e;return await i.searchListObjectFor(gs,p)&&p.length&&s>0&&(e=i.acceptListObjectSearch(gs,!0),o.selectionsMade=!0,d("")),e};return c?t.createElement(R,{startAdornment:t.createElement(k,{position:"start"},t.createElement(ms,{size:l?"small":"normal"})),className:"search",sx:[{border:"none",borderRadius:0,"& fieldset":{border:"1px solid ".concat(h.palette.divider),borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"}},l&&{fontSize:12,paddingLeft:h.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}],size:"small",fullWidth:!0,placeholder:u.get("Listbox.Search"),value:p,onFocus:()=>{o.isModal()||o.begin(["/qListObjectDef"])},onChange:async e=>(d(e.target.value),e.target.value.length?i.searchListObjectFor(gs,e.target.value):m()),onKeyDown:async e=>{let t;switch(e.key){case"Enter":t=await g();break;case"Escape":t=o.isActive()&&o.cancel(),e.preventDefault(),e.stopPropagation()}return t},inputProps:{tabIndex:!a||a.enabled&&!a.active?-1:0}}):null}function bs(e){return Object.keys(Y.prototype).forEach((t=>{e[t]=Y.prototype[t]})),Y.init(e),e}const vs=e=>{let t,{appSelections:n,appModal:r,model:o}=e,i=!1,a=!1;const s={id:o.id,setLayout(e){t=e},begin(e){const t=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",t),t.isPrevented()?Promise.resolve():(i=!0,this.emit("activated"),r.begin(o,e,!0))},clear(){return a=!1,this.emit("cleared"),t.qListObject?o.clearSelections("/qListObjectDef"):o.resetMadeSelections()},confirm(){return a=!1,i=!1,this.emit("confirmed"),this.emit("deactivated"),r.end(!0)},cancel(){return a=!1,i=!1,this.emit("canceled"),this.emit("deactivated"),r.end(!1)},async select(e){const t=this.begin([e.params[0]]);if(!n.isModal())return!1;await t;const r=await o[e.method](...e.params);return a="resetMadeSelections"!==e.method,!!r||(o.resetMadeSelections(),!1)},canClear:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked&&!t.qListObject.qDimensionInfo.qIsOneAndOnlyOne:a,canConfirm:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:a,canCancel:()=>!(t&&t.qListObject&&t.qListObject.qDimensionInfo)||!t.qListObject.qDimensionInfo.qLocked,isActive:()=>i,isModal:()=>n.isModal(o),goModal:e=>r.begin(o,e,!1),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return bs(s),s},Es=e=>{let{elements:t,objectSelections:n}=e;const r=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(){document.addEventListener("mousedown",r)},deactivateClickOut(){document.removeEventListener("mousedown",r)}}};function Cs(e,t,n){const o=Array.isArray(n)?n:[n],[i]=$i(e),[a]=_i(t),s=t?t.id:null,[l]=zi(),[c]=Bi(),u=l.get(e.id);let p=c.get(s);return r((()=>{i&&t&&!p&&(p=vs({appSelections:i,appModal:u,model:t}),c.set(s,p),c.dispatch(!0))}),[i,t]),r((()=>{if(!p)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=Es({elements:o,objectSelections:p});return p.addListener("activated",e),p.addListener("deactivated",t),()=>{p.removeListener("activated",e),p.removeListener("deactivated",t)}}),[p]),r((()=>{p&&p.setLayout(a)}),[p,a]),[p]}const xs=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 Ls(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return xs(t,"qSelected",0)+xs(t,"qSelectedExcluded",0)+xs(t,"qLocked",0)+xs(t,"qLockedExcluded",0)>0}function Ss(e){let{alignTo:o,show:i,close:a,app:s,fieldName:c,stateName:u="$"}=e;const p=i&&Boolean(o.current),[h,m]=n(0),g=Ko(),[y]=Ai({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:u,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:[c]}}},s,c,u),b=l((()=>{y.lock("/qListObjectDef")}),[y]),E=l((()=>{y.unlock("/qListObjectDef")}),[y]),{translator:C}=f(fi),S=d(),w=d(),[O]=Cs(s,y,w),[q]=_i(y);if(r((()=>{O&&p&&(O.isModal(y)||O.goModal("/qListObjectDef"))}),[O,p]),!y||!q||!C)return null;const R=!0===q.qListObject.qDimensionInfo.qLocked,k=(e,t)=>{const n="escapeKeyDown"!==t;O.noModal(n),a()},I=Za({layout:q,model:y,translator:C}),_=Ls(q);return t.createElement(L,{open:p,onClose:k,anchorEl:o.current,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"250px"}}},t.createElement(v,{container:!0,direction:"column",gap:0,ref:w},t.createElement(v,{item:!0,container:!0,style:{padding:g.spacing(1)}},t.createElement(v,{item:!0},R?t.createElement(x,{onClick:E,disabled:!R,size:"large"},t.createElement(Yi,{title:C.get("Listbox.Unlock")})):t.createElement(x,{onClick:b,disabled:!_,size:"large"},t.createElement(Qi,{title:C.get("Listbox.Lock")}))),t.createElement(v,{item:!0,xs:!0}),t.createElement(v,{item:!0},t.createElement(hs,{more:{enabled:!R,actions:I,alignTo:S,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:O,onConfirm:k,onCancel:()=>k(0,"escapeKeyDown")}}))),t.createElement(v,{item:!0,xs:!0},t.createElement("div",{ref:S}),t.createElement(ys,{selections:O,model:y,listCount:h,visible:!0}),t.createElement(Wa,{model:y,selections:O,direction:"ltr",onSetListCount:e=>m(e)}))))}function ws(e){let{field:r,api:o,stateIx:i=0,skipHandleShowListBoxPopover:a=!1,moreAlignTo:s=null,onClose:l=(()=>{})}=e;const{translator:c}=f(fi),u=s||d(),p=Ko(),[h,m]=n(!1),g=e=>{e.currentTarget.contains(e.target)&&m(!h)},y=()=>{m(!1),l()},b=r.selections[i];void 0===b.qTotal&&(b.qTotal=0);const C=b.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},L=(C.qSelected+C.qLocked)/b.qTotal,S=C.qAlternative/b.qTotal,w=(C.qExcluded+C.qLockedExcluded+C.qSelectedExcluded)/b.qTotal,O=C.qSelected+C.qSelectedExcluded+C.qLocked+C.qLockedExcluded,q=0===O&&0===b.qTotal;let R="";b.qTotal===O&&b.qTotal>1?R=c.get("CurrentSelections.All"):O>1&&b.qTotal?R=c.get("CurrentSelections.Of",[O,b.qTotal]):b.qSelectedFieldSelectionInfo&&(R=b.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==r.states[i]&&(R="".concat(r.states[i],": ").concat(R));const k=[{color:p.palette.selected.main,ratio:L},{color:p.palette.selected.alternative,ratio:S},{color:p.palette.selected.excluded,ratio:w}];k.forEach(((e,t)=>{e.offset=t?k[t-1].offset+k[t-1].ratio:0}));let I=null,_=null,T=null,A=null;return s||(I=t.createElement(v,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:b.qLocked?"0.3":""}},t.createElement(E,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},b.qField),t.createElement(E,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},R)),b.qLocked?_=t.createElement(v,{item:!0},t.createElement(x,{size:"large"},t.createElement(Yi,null))):b.qOneAndOnlyOne||(_=t.createElement(v,{item:!0},t.createElement(x,{title:c.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),o.clearField(b.qField,r.states[i])},size:"large"},t.createElement(Ji,null)))),T=t.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===q&&k.map((e=>t.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,"%")}})))),A=t.createElement(v,{container:!0,gap:1,ref:u,sx:{backgroundColor:p.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:p.palette.action.hover}},onClick:!1===a&&g||null},I,_,T,h&&t.createElement(Ss,{alignTo:u,show:h,close:y,app:o.model,fieldName:b.qField,stateName:r.states[i]}))),s?t.createElement(Ss,{alignTo:u,show:!0,close:y,app:o.model,fieldName:b.qField,stateName:r.states[i]}):A}var Os=e=>Xi((e=>B(B({},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 qs={item:"".concat("MultiState","-item")},Rs=Xo(v)((e=>{let{theme:t}=e;return{["&.".concat(qs.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function ks(e){let{field:r,api:o,moreAlignTo:i=null,onClose:a=(()=>{})}=e;const[s,l]=n(!!i),[c,u]=n(-1),[p,h]=n(i?i.current:null),m=i||d(),{translator:g}=f(fi),y=g.get("Selection.ClearAllStates"),b=()=>{u(-1),a()};let C=null;i||(C=t.createElement(t.Fragment,null,t.createElement(v,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(I,{style:{padding:"0px 8px"},color:"secondary",badgeContent:r.states.length},t.createElement(E,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},r.name))),t.createElement(v,{item:!0},t.createElement("div",{style:{width:"12px"}})),t.createElement(v,{item:!0},t.createElement(x,{size:"large"},t.createElement(Os,null)))));const S=t.createElement(_,{dense:!0},t.createElement(T,{title:y,onClick:()=>{r.states.forEach((e=>o.clearField(r.name,e)))}},t.createElement(A,{variant:"contained",fullWidth:!0},y)),r.states.map(((e,n)=>t.createElement(T,{key:n,title:r.name,onClick:e=>((e,t)=>{e.stopPropagation(),l(!1),u(t)})(e,n)},t.createElement(D,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},t.createElement(ws,{field:r,api:o,stateIx:n,skipHandleShowListBoxPopover:!0})))))),w=t.createElement(L,{open:s,onClose:()=>{l(!1),a()},anchorEl:p,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},S),O=i?w:t.createElement(Rs,{container:!0,gap:0,className:qs.item,onClick:e=>{e.currentTarget.contains(e.target)&&(h(e.currentTarget),m.current=e.currentTarget,l(!s))}},C,s&&w,c>-1&&t.createElement(Ss,{alignTo:m,show:c>-1,close:b,app:o.model,fieldName:r.selections[c].qField,stateName:r.states[c]}));return i&&c>-1?t.createElement(Ss,{alignTo:m,show:c>-1,close:b,app:o.model,fieldName:r.selections[c].qField,stateName:r.states[c]}):O}const Is={item:"".concat("More","-item"),badge:"".concat("More","-badge")},_s=Xo(v)((e=>{let{theme:t}=e;return{["&.".concat(Is.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(Is.badge)]:{padding:t.spacing(0,1)}}}));function Ts(e){let{items:r=[],api:o}=e;const i=Ko(),[a,s]=n(!1),[l,c]=n(-1),[u,p]=n(null),f=d(),h=()=>{c(-1)};let m=null;return l>-1&&(m=r[l].states.length>1?t.createElement(ks,{field:r[l],api:o,moreAlignTo:f,onClose:h}):t.createElement(ws,{field:r[l],api:o,skipHandleShowListBoxPopover:!0,moreAlignTo:f,onClose:h})),t.createElement(_s,{container:!0,gap:0,className:Is.item,onClick:e=>{e.currentTarget.contains(e.target)&&(p(e.currentTarget),f.current=e.currentTarget,s(!a))}},t.createElement(v,{item:!0},t.createElement(D,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText}},t.createElement(E,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",r.length))),t.createElement(v,{item:!0},t.createElement(x,{size:"large"},t.createElement(Os,null))),a&&t.createElement(L,{open:a,onClose:()=>{s(!1)},anchorEl:u,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},t.createElement(_,{dense:!0},r.map(((e,n)=>t.createElement(T,{key:n,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),c(t)})(e,n)},t.createElement(D,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?t.createElement(ks,{field:e,api:o}):t.createElement(ws,{field:e,api:o}))))))),m)}function As(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"$";e.qSelections.forEach((e=>{const r=e.qField,o=t[r]=t[r]||{name:r,states:[],selections:[]};-1===o.states.indexOf(n)&&(o.states.push(n),o.selections.push(e))}))}function Ds(e){let{api:o,app:i}=e;const a=Ko(),[s]=Pi(i),[l]=_i(s),[c,u]=n({items:[],more:[]}),[p]=Ui(),[d,f]=Ki(),[h,m]=n(0);return r((()=>{if(!f)return;const{width:e}=f,t=Math.floor(e)-72,n=Math.floor(t/120);m(n)}),[f]),r((()=>{if(!(i&&s&&l&&h))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&As(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>As(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e]))}(l);u((t=>{const n=e;if((()=>{const e=p.get(i.id);return e&&"njsListbox"===e.genericType})()&&n.length+1===t.items.length){const e=t.items.filter((e=>!1===n.some((t=>e.name===t.name))))[0],{qField:r}=e.selections[0];e.selections=[{qField:r}];const o=t.items.indexOf(e);n.splice(o,0,e)}let r=[];return h<n.length&&(r=n.splice(h-n.length)),{items:n,more:r}}))}),[i,s,l,o.isInModal(),h]),t.createElement(v,{ref:d,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},c.items.map((e=>t.createElement(v,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(120,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},e.states.length>1?t.createElement(ks,{field:e,api:o}):t.createElement(ws,{field:e,api:o})))),c.more.length>0&&t.createElement(v,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(72,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},t.createElement(Ts,{items:c.more,api:o})))}var Ps=e=>Xi((e=>B(B({},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 Ns=e=>Xi((e=>B(B({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));function Ms(e){let{api:n,app:r}=e;const{translator:o}=f(fi),[i]=Ni(r);return t.createElement(v,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},t.createElement(v,{item:!0},t.createElement(x,{style:{marginRight:"8px"},disabled:!i||!i.canGoBack,title:o.get("Navigate.Back"),onClick:()=>n.back(),size:"large"},t.createElement(Ps,null))),t.createElement(v,{item:!0},t.createElement(x,{style:{marginRight:"8px"},disabled:!i||!i.canGoForward,title:o.get("Navigate.Forward"),onClick:()=>n.forward(),size:"large"},t.createElement(Ns,null))),t.createElement(v,{item:!0},t.createElement(x,{disabled:!i||!i.canClear,title:o.get("Selection.ClearAll"),onClick:()=>n.clear(),size:"large"},t.createElement(ns,null))))}function js(e){let{app:n}=e;const r=Ko(),[o]=$i(n);return o?t.createElement(v,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:r.palette.background.paper,minHeight:"40px"}},t.createElement(v,{item:!0,style:{borderRight:"1px solid ".concat(r.palette.divider)}},t.createElement(Ms,{api:o,app:n})),t.createElement(v,{item:!0,xs:!0,style:{backgroundColor:r.palette.background.darker,overflow:"hidden"}},t.createElement(Ds,{api:o,app:n}))):null}function zs(e){let{element:n,app:r}=e;return h.createPortal(t.createElement(js,{app:r}),n)}var Fs=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Bs=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}}(),Hs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Us=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},Ws=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},$s=void 0;$s="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;var Vs=null,Gs=null,Ks=$s.clearTimeout,Zs=$s.setTimeout,Xs=$s.cancelAnimationFrame||$s.mozCancelAnimationFrame||$s.webkitCancelAnimationFrame,Js=$s.requestAnimationFrame||$s.mozRequestAnimationFrame||$s.webkitRequestAnimationFrame;function Ys(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0,a=void 0,s=void 0,l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;a(this),this.__resizeRAF__&&Vs(this.__resizeRAF__),this.__resizeRAF__=Gs((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}};var c=!1,u="";r="animationstart";var p="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(c=!0),!1===c)for(var h=0;h<p.length;h++)if(void 0!==f.style[p[h]+"AnimationName"]){u="-"+p[h].toLowerCase()+"-",r=d[h],c=!0;break}t="@"+u+"keyframes "+(n="resizeanim")+" { from { opacity: 0; } to { opacity: 0; } } ",o=u+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(l)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){var u=i.ownerDocument,p=$s.getComputedStyle(i);p&&"static"===p.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){var r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',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)}}(u),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=u.createElement("div")).className="resize-triggers";var d=u.createElement("div");d.className="expand-trigger",d.appendChild(u.createElement("div"));var f=u.createElement("div");f.className="contract-trigger",i.__resizeTriggers__.appendChild(d),i.__resizeTriggers__.appendChild(f),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!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(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!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==Xs||null==Js?(Vs=Ks,Gs=function(e){return Zs(e,20)}):(Vs=function(e){var t=Ws(e,2),n=t[0],r=t[1];Xs(n),Ks(r)},Gs=function(e){var t=Js((function(){Ks(n),e()})),n=Zs((function(){Xs(t),e()}),20);return[t,n]});var Qs=function(e){function t(){var e,n,r;Fs(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=Us(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={height:r.props.defaultHeight||0,width:r.props.defaultWidth||0},r._onResize=function(){var e=r.props,t=e.disableHeight,n=e.disableWidth,o=e.onResize;if(r._parentNode){var i=r._parentNode.offsetHeight||0,a=r._parentNode.offsetWidth||0,s=window.getComputedStyle(r._parentNode)||{},l=parseInt(s.paddingLeft,10)||0,c=parseInt(s.paddingRight,10)||0,u=parseInt(s.paddingTop,10)||0,p=parseInt(s.paddingBottom,10)||0,d=i-u-p,f=a-l-c;(!t&&r.state.height!==d||!n&&r.state.width!==f)&&(r.setState({height:i-u-p,width:a-l-c}),o({height:i,width:a}))}},r._setRef=function(e){r._autoSizer=e},Us(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,p),Bs(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=Ys(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.disableHeight,o=e.disableWidth,i=e.style,a=this.state,s=a.height,l=a.width,c={overflow:"visible"},p={},d=!1;return r||(0===s&&(d=!0),c.height=0,p.height=s),o||(0===l&&(d=!0),c.width=0,p.width=l),u("div",{className:n,ref:this._setRef,style:Hs({},c,i)},!d&&t(p))}}]),t}();Qs.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};const el={listBoxHeader:"".concat("ListBoxInline","-listBoxHeader"),screenReaderOnly:"".concat("ListBoxInline","-screenReaderOnly")},tl=Xo(v)((()=>({["& .".concat(el.listBoxHeader)]:{alignSelf:"center",display:"inline-flex"},["& .".concat(el.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"}})));function nl(e){var o,i;let{options:a={}}=e;const{direction:s,frequencyMode:c,histogram:u=!1,listLayout:p,search:h=!0,focusSearch:m=!1,toolbar:g=!0,rangeSelect:y=!0,checkboxes:b=!1,model:C,selections:L,update:S,fetchStart:w,selectDisabled:O=(()=>!1),postProcessPages:q,calculatePagesHeight:R,showGray:k=!0,scrollState:I,setCount:_}=a,T=Ko(),A=l((()=>{C.lock("/qListObjectDef")}),[C]),D=l((()=>{C.unlock("/qListObjectDef")}),[C]),{translator:P,keyboardNavigation:N}=f(fi),M=d(),[j,z]=(()=>{const[e,t]=n({}),r=l((e=>{t({current:e})}),[t]);return[e,r]})(),[F]=_i(C),[B,H]=n(!1),[U,W]=n(!1),[$,V]=n(!1),[G,K]=n(0),Z=Pa({setKeyboardActive:V}),X={enabled:N,active:$};if(r((()=>{const e=()=>{H(!0)},t=()=>{H(!1),"toggle"===h&&W(!1)};return L&&(L.isModal()||(L.on("deactivated",t),L.on("activated",e)),H(L.isActive())),()=>{L&&L.removeListener&&(L.removeListener("deactivated",e),L.removeListener("activated",t))}}),[L]),r((()=>{if(j&&j.current&&(h&&m||"toggle"===h&&U)){const e=j.current.querySelector("input");e&&e.focus()}}),[j&&j.current,U,h,m]),!C||!F||!P)return null;const J=!0===F.qListObject.qDimensionInfo.qLocked,Y=g?Za({layout:F,model:C,translator:P}):[],Q=Ls(F),ee=(!0===h||"toggle"===h&&U)&&!O(),te=null!==(o=null===(i=F.layoutOptions)||void 0===i?void 0:i.dense)&&void 0!==o&&o,ne=49+(ee?te?27:40:0)+(te?39:49),re=()=>{W(!U)};return t.createElement(tl,{className:"listbox-container",container:!0,tabIndex:X.enabled&&!X.active?0:-1,direction:"column",gap:0,style:{height:"100%",minHeight:"".concat(ne,"px"),flexFlow:"column nowrap"},onKeyDown:Z},g&&t.createElement(v,{item:!0,container:!0,style:{padding:T.spacing(1)}},t.createElement(v,{item:!0},J?t.createElement(x,{tabIndex:-1,onClick:D,disabled:!J,size:"large"},t.createElement(Yi,{title:P.get("Listbox.Unlock")})):"toggle"!==h||Q?t.createElement(x,{onClick:A,tabIndex:-1,disabled:!Q,size:"large"},t.createElement(Qi,null)):t.createElement(x,{onClick:re,tabIndex:-1,title:P.get("Listbox.Search"),size:"large"},t.createElement(ms,null))),t.createElement(v,{item:!0,className:el.listBoxHeader},t.createElement(E,{variant:"h6",noWrap:!0},F.title||F.qListObject.qDimensionInfo.qFallbackTitle)),t.createElement(v,{item:!0,xs:!0}),t.createElement(v,{item:!0},t.createElement(hs,{more:{enabled:!J,actions:Y,alignTo:M,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:B,api:L,onConfirm:()=>{},onCancel:()=>{}}}))),t.createElement(v,{item:!0,container:!0,direction:"column",style:{height:"100%",minHeight:"".concat(ne,"px")},role:"region","aria-label":P.get("Listbox.ResultFilterLabel")},t.createElement(v,{item:!0,ref:z},t.createElement("div",{className:el.screenReaderOnly},P.get("Listbox.Search.ScreenReaderInstructions")),t.createElement(ys,{selections:L,model:C,dense:te,listCount:G,keyboard:X,visible:ee,searchContainerRef:z})),t.createElement(v,{item:!0,xs:!0},t.createElement("div",{ref:M}),t.createElement("div",{className:el.screenReaderOnly},P.get("Listbox.ScreenReaderInstructions")),t.createElement(Qs,null,(e=>{let{height:n,width:r}=e;return t.createElement(Wa,{model:C,selections:L,direction:s,listLayout:p,onSetListCount:e=>K(e),frequencyMode:c,histogram:u,rangeSelect:y,checkboxes:b,height:n,width:r,update:S,fetchStart:w,postProcessPages:q,calculatePagesHeight:R,selectDisabled:O,keyboard:X,showGray:k,scrollState:I,setCount:_})})))))}function rl(e){let{app:o,fieldIdentifier:i,qId:a,stateName:s,element:l,options:c}=e;const{isExistingObject:u,hasExternalSelectionsApi:p}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:a,options:c}),[f,h]=n(0);r((()=>{if(f)throw new Error("Source or selection Api can not change after a listbox has been mounted");h(f+1)}),[u,p]);const m=u?function(e){let{app:t,qId:o,options:i={}}=e;const[a,s]=n(),[l]=qi(),{sessionModel:c}=i;if(i.dense)throw new Error('Option "dense" is not applicable for existing objects.');return r((()=>{c?s(c):async function(){const e=l.get(o);if(e)s(e);else{const e=await t.getObject(o);l.set(e.id,e),s(e)}}()}),[]),a}({app:o,qId:a,options:c}):function(e){let{app:t,fieldIdentifier:o,stateName:i,options:a={}}=e;const[s,l]=n(""),[c,u]=n(!0),[p,d]=n();r((()=>{const e=a.histogram||"N"!==a.frequencyMode;o.qLibraryId&&e?async function(){try{const e=await t.getDimension(o.qLibraryId),n=await e.getLayout();l(n.qDim.qFieldDefs?n.qDim.qFieldDefs[0]:""),u(!1)}catch(e){throw u(!1),l({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}():u(!1)}),[]);const{title:f,dense:h,properties:m={}}=a;let{frequencyMode:g,histogram:y=!1}=a;switch(s&&s.failedToFetchFieldDef&&(y=!1,g="N"),!0){case["none","N","NX_FREQUENCY_NONE"].includes(g):g="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(g):g="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(g):g="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(g):g="R";break;default:g="N"}const b={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:i,qShowAlternatives:!0,qFrequencyMode:y&&"N"===g?"V":g,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},layoutOptions:{dense:h},title:f};let v;if(Be(!0,b,m),o.qLibraryId?(b.qListObjectDef.qLibraryId=o.qLibraryId,v=o.qLibraryId):(b.qListObjectDef.qDef.qFieldDefs=[o],v=o),"N"!==g||y){const e=o.qLibraryId?s:v;b.frequencyMax={qValueExpression:"Max(AGGR(Count([".concat(e,"]), [").concat(e,"]))")}}const[E]=Ai(b,c?null:t,v,i);return r((()=>{E&&d(E)}),[E]),p}({app:o,fieldIdentifier:i,stateName:s,options:c}),g=d(l),y=p?c.selectionsApi:Cs(o,m,g)[0];if(!y||!m)return null;const b=B(B({},c),{},{selections:y,model:m});return t.createElement(nl,{options:b})}function ol(e){let{element:n,app:r,fieldIdentifier:o,qId:i,stateName:a="$",options:s={}}=e;return h.createPortal(t.createElement(rl,{app:r,element:n,fieldIdentifier:o,qId:i,stateName:a,options:s}),n)}const il=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function al(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function sl(){return il.map(al).join("")}function ll(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function cl(e,t){let n=0;for(let r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function ul(e){let{sn:t,properties:n,fields:r}=e;if(!r.length)return;const o=t.qae.data.targets[0];if(!o)return;const{propertyPath:i}=o,a=i.split("/");let s=n;for(let e=0;e<a.length;e++){const t=a[e];s=t?s[t]:s}const l=function(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?(e=>({qDef:{qFieldDefs:[e]}}))(e):B(B({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||sl(),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),ll(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 cl(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?(e=>({qDef:{qDef:e}}))(e):B(B({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||sl(),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),ll(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];cl(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}({dc:s,def:o,properties:n});r.forEach((e=>{const t=function(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}(e);"measure"===t?l.addMeasure(e):l.addDimension(e)}))}var pl=(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},dl=(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]},fl=e=>0===Object.keys(e).length&&e.constructor===Object;var hl={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}};function ml(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function gl(e,t){const n=Be(!0,{},t,e);return pl(n,"qOtherTotalSpec.qOtherCounted")||dl(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),pl(n,"qOtherTotalSpec.qOtherLimit")||dl(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function yl(e,t){return Be(!0,{},t,e)}function bl(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var vl={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===pl(e,t)&&dl(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:ml,importCommonProperties:function(e,t,n){const r="masterobject"===pl(t,"properties.qInfo.qType")?"masterobject":pl(n,"qInfo.qType");dl(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:gl,createDefaultMeasure:yl,resolveValue:bl,getHypercubePath:function(e){const t=pl(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?(hl.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,hl.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=Be(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?dl(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||ml(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=Be(!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=bl(i.max,r.dimensions.length,9007199254740991),s=bl(i.min,r.dimensions.length,0);return{maxDimensions:bl(o.max,a,9007199254740991),minDimensions:bl(o.min,s,0),maxMeasures:a,minMeasures:s}},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 s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.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 s;if(n>0)for(s=0;s<a.dimensions.length;++s)o.qDimensions.length<n?o.qDimensions.push(gl(a.dimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(gl(a.dimensions[s],i));else if(a.dimensions.length)for(s=0;s<a.dimensions.length;++s)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(gl(a.dimensions[s],i));if(a.excludedDimensions.length)for(s=0;s<a.excludedDimensions.length;++s)o.qDimensions.length<r?o.qDimensions.push(gl(a.excludedDimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(gl(a.excludedDimensions[s],i))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:i}=e;const a=t.data[0];let s;if(n>0)for(s=0;s<a.measures.length;++s)o.qMeasures.length<n?o.qMeasures.push(yl(a.measures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(yl(a.measures[s],i));else if(a.measures.length)for(s=0;s<a.measures.length;++s)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(yl(a.measures[s],i));if(a.excludedMeasures.length)for(s=0;s<a.excludedMeasures.length;++s)o.qMeasures.length<r?o.qMeasures.push(yl(a.excludedMeasures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(yl(a.excludedMeasures[s],i))},updateDimensionsOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.dimensions&&"function"==typeof n.dimensions.added){const e=pl(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=pl(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var El={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=pl(o,n||""),a=i.qHyperCubeDef,s=r.data[0];if(a.qInterColumnSortOrder||(a.qInterColumnSortOrder=[]),s.dimensions.push(...a.qDimensions),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qDimensions&&s.excludedDimensions.push(...a.qLayoutExclude.qHyperCubeDef.qDimensions),s.measures.push(...a.qMeasures),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qMeasures&&s.excludedMeasures.push(...a.qLayoutExclude.qHyperCubeDef.qMeasures),s.interColumnSortOrder=a.qInterColumnSortOrder.concat(),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();hl.isOrderedSubset(e,s.interColumnSortOrder)&&(s.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&&(vl.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!fl(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:[]},s=vl.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),l=pl(n,i||"").qHyperCubeDef,c=pl(s,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:p,maxMeasures:d,minMeasures:f}=vl.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=vl.getDefaultDimension(),defaultMeasure:m=vl.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,vl.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:p,maxMeasures:d,minMeasures:f})&&vl.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:p,maxMeasures:d,minMeasures:f,newHyperCubeDef:c}),vl.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:p,newHyperCubeDef:c,defaultDimension:h}),vl.addDefaultMeasures({exportFormat:t,maxMeasures:d,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),vl.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),vl.copyPropertyIfExist("qMaxStackedCells",l,c),vl.copyPropertyIfExist("qNoOfLeftDims",l,c),vl.copyPropertyOrSetDefault("qInitialDataFetch",l,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),vl.copyPropertyOrSetDefault("qMode",l,c,"S"),vl.copyPropertyOrSetDefault("qReductionMode",l,c,"N"),vl.copyPropertyOrSetDefault("qSortbyYValue",l,c),vl.copyPropertyOrSetDefault("qIndentMode",l,c),vl.copyPropertyOrSetDefault("qShowTotalsAbove",l,c),vl.importCommonProperties(s,t,n),vl.updateDimensionsOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),vl.updateMeasuresOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),a.qProperty=s,a}(e)};const Cl=e=>pl(e,"data.targets.0.propertyPath"),xl=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return El.exportProperties})(Cl(e))},Ll=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return El.importProperties})(Cl(e))},Sl=async e=>{let{halo:t,model:n,cellRef:r,newType:o}=e;const i=await n.getFullPropertyTree(),a=r.current.getQae(),s=xl(a),l=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}),c=l.qae;return Ll(c)({exportFormat:s({propertyTree:i,hypercubePath:vl.getHypercubePath(a)}),initialProperties:B({qInfo:{qType:o},visualization:o},pl(c,"properties.initial",{})),dataDefinition:pl(c,"data.targets.0.",{}),hypercubePath:vl.getHypercubePath(c)})},wl={hypercube:El};var Ol=e=>Xi((e=>B(B({},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 ql(e){let{d:n}=e;const r=Ko();let o="inherit",i=r.palette.success.main;n.missing?i=r.palette.warning.main:n.error&&(o="error",i=r.palette.error.main);const a={color:i},s=t.createElement(E,{style:{lineHeight:"30px",paddingRight:r.spacing(1)}},t.createElement(P,null,n.missing||n.error?t.createElement(Ol,{style:a}):t.createElement(wa,{style:a})));return t.createElement(v,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},t.createElement(v,{item:!0},s),t.createElement(v,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},t.createElement(E,{noWrap:!0,component:"p"},t.createElement(E,{component:"span",variant:"subtitle2",color:o},n.description),t.createElement(E,{component:"span"}," "),t.createElement(E,{component:"span",variant:"subtitle2",color:n.error?"error":"inherit",style:{fontWeight:400}},n.label))))}function Rl(e){let{data:n}=e;const r=Ko();return t.createElement(v,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},n.map(((e,n)=>{const o=e.descriptions.map(((e,n)=>t.createElement(ql,{d:e,key:n})));return o.length>0&&t.createElement(v,{container:!0,item:!0,key:n,direction:"column",style:{paddingBottom:r.spacing(2)}},t.createElement(E,{noWrap:!0,key:n,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function kl(e){let{title:n="Error",message:r="",data:o=[]}=e;return t.createElement(v,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},t.createElement(v,{item:!0},t.createElement(Ol,{style:{fontSize:"38px"}})),t.createElement(v,{item:!0},t.createElement(E,{variant:"h6",align:"center","data-tid":"error-title"},n)),t.createElement(v,{item:!0},t.createElement(E,{variant:"subtitle1",align:"center","data-tid":"error-message"},r)),t.createElement(Rl,{data:o}))}const Il=["size"],_l={root:"".concat("Progress","-root"),front:"".concat("Progress","-front"),back:"".concat("Progress","-back")},Tl=Xo("div")((e=>{let{theme:t}=e;return{["&.".concat(_l.root)]:{position:"relative",display:"inline-block"},["& .".concat(_l.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(_l.back)]:{color:t.palette.divider}}})),Al={small:16,medium:32,large:64,xlarge:128};function Dl(e){let{size:n="medium"}=e,r=W(e,Il);const o=Al[n];return t.createElement(Tl,{className:_l.root},t.createElement(N,U({variant:"determinate",value:100,className:_l.back,size:o,thickness:3},r)),t.createElement(N,U({variant:"indeterminate",disableShrink:!0,className:_l.front,size:o,thickness:3},r)))}const Pl=["cancel","translator"],Nl=["retry","translator"],Ml={stripes:"".concat("LongRunningQuery","-stripes")},jl=Xo(v)((()=>({["& .".concat(Ml.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 zl(e){let{cancel:n,translator:r}=e,o=W(e,Pl);return t.createElement(t.Fragment,null,t.createElement(jl,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},t.createElement(v,{item:!0},t.createElement(Dl,null)),t.createElement(v,{item:!0},t.createElement(E,{variant:"h6",align:"center","data-tid":"update-active"},r.get("Object.Update.Active")))),t.createElement(v,U({item:!0},o),t.createElement(A,{variant:"contained",onClick:n},r.get("Cancel"))))}function Fl(e){let{retry:n,translator:r}=e,o=W(e,Nl);return t.createElement(t.Fragment,null,t.createElement(v,{item:!0},t.createElement(Ol,{style:{fontSize:"38px"}})),t.createElement(v,{item:!0},t.createElement(E,{variant:"h6",align:"center","data-tid":"update-cancelled"},r.get("Object.Update.Cancelled"))),t.createElement(v,{item:!0},t.createElement(A,U({variant:"contained",onClick:n},o),r.get("Retry"))))}function Bl(e){let{canCancel:n,canRetry:r,api:o}=e;const{translator:i}=f(fi);return t.createElement(v,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:Ml.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},n&&t.createElement(zl,{cancel:o.cancel,translator:i,className:Ml.cancel}),r&&t.createElement(Fl,{retry:o.retry,translator:i,className:Ml.retry}))}function Hl(){return t.createElement(v,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t.createElement(Dl,{size:"large"}))}const Ul={containerStyle:"".concat("Header","-containerStyle"),containerTitleStyle:"".concat("Header","-containerTitleStyle")},Wl=Xo(v)((e=>{let{theme:t}=e;return{["&.".concat(Ul.containerStyle)]:{flexGrow:0},["&.".concat(Ul.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),$l="njs-cell-title",Vl="njs-cell-sub-title";function Gl(e){let{layout:o,sn:i,anchorEl:a,hovering:s,focusHandler:l}=e;const c=o.showTitles&&!!o.title,u=o.showTitles&&!!o.subtitle,p=o.qSelectionInfo&&o.qSelectionInfo.qInSelections,[d,f]=n([]),[h,m]=Ki(),[g,y]=n(!1);r((()=>{i&&i.component&&i.component.isHooked&&i.component.observeActions((e=>{f([...e,...i&&i.selectionToolbar&&i.selectionToolbar.items||[]])}))}),[i]),r((()=>{if(!m)return;const{width:e}=m;y(e<221)}),[m]);const b=c||u,C=[Ul.containerStyle,...b?[Ul.containerTitleStyle]:[]],x=(s||p)&&(g||!b),L=b&&!x&&!g,S=t.createElement(hs,{show:L,selections:{show:p,api:i.component.selections,onKeyDeactivate:l.refocusContent},actions:d,popover:{show:x,anchorEl:a},focusHandler:l});return t.createElement(Wl,{ref:h,item:!0,container:!0,wrap:"nowrap",className:C.join(" ")},t.createElement(v,{item:!0,zeroMinWidth:!0,xs:!0},t.createElement(v,{container:!0,wrap:"nowrap",direction:"column"},c&&t.createElement(E,{variant:"h6",noWrap:!0,className:$l},o.title),u&&t.createElement(E,{variant:"body2",noWrap:!0,className:Vl},o.subtitle))),t.createElement(v,{item:!0},S))}const Kl={itemStyle:"".concat("Footer","-itemStyle")},Zl=Xo(v)((e=>{let{theme:t}=e;return{["& .".concat(Kl.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),Xl="njs-cell-footer";function Jl(e){let{layout:n}=e;return n&&n.showTitles&&n.footnote?t.createElement(Zl,{container:!0},t.createElement(v,{item:!0,className:Kl.itemStyle},t.createElement(E,{noWrap:!0,variant:"body2",className:Xl},n.footnote))):null}class Yl{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 Ql="njs-viz";function ec(e){let{sn:o,snOptions:i,snPlugins:a,layout:s,appLayout:c,halo:u}=e;const{component:p}=o,{theme:d,language:h,constraints:m,keyboardNavigation:g}=f(fi),[y]=n((()=>new Yl)),[b,v]=n(!1),[E,C]=n(0),[x,L,S]=Ki(),[w,O]=n(null),q=l((e=>{e&&O(e)}),[]);return r((()=>{if(w)return p.created({options:i}),p.mounted(w),v(!0),()=>{y.stop(),p.willUnmount()}}),[w,p]),r((()=>{b&&w&&L&&(!p.isHooked&&s&&s.qSelectionInfo&&s.qSelectionInfo.qInSelections||y.schedule((()=>{const e=[];return m.passive||e.push("passive"),m.active||e.push("interact"),m.select||e.push("select"),u.app&&u.app.session&&e.push("fetch"),Promise.resolve(p.render({layout:s,options:i,plugins:a,embed:u.public.nebbie,context:B({constraints:m,theme:u.public.theme,appLayout:c,keyboardNavigation:g},p.isHooked?{}:{logicalSize:o.logicalSize({layout:s}),localeInfo:(c||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===E&&"function"==typeof i.onInitialRender&&i.onInitialRender.call(null),C(E+1))}))})))}),[L,i,a,w,S,s,c,d,h,m,b,g]),t.createElement("div",{ref:x,"data-render-count":E,style:{position:"relative",height:"100%"},className:Ql},t.createElement("div",{ref:q,style:{position:"absolute",width:"100%",height:"100%"}}))}const tc={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},nc={"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 rc(e,t){return t?function(e){var t;let n,r,o,i;if(null!=e&&null!==(t=e.session)&&void 0!==t&&t.config)return n=e.session.config,r=new URL(n.url),i="wss:"===r.protocol,o=i?"https://":"http://",o+r.host}(e)+t:void 0}const oc=(e,t)=>{const n=null==e?void 0:e.bgImage;if(n){let i="";var r,o;if("media"===n.mode)i=null!=n&&null!==(r=n.mediaUrl)&&void 0!==r&&null!==(o=r.qStaticContentUrl)&&void 0!==o&&o.qUrl?decodeURIComponent(n.mediaUrl.qStaticContentUrl.qUrl):void 0,i=rc(t,i);"expression"===n.mode&&(i=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const a=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=nc[e.bgImage.position]),n}(e),s=function(e){var t;let n=tc.originalSize;return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.sizing&&(n=tc[e.bgImage.sizing]),n}(e);return i?{url:i,pos:a,size:s}:void 0}},ic="njs-cell",ac=(e,t)=>{switch(t.type){case"LOADING":return B(B({},e),{},{loading:!0});case"LOADED":return B(B({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return B(B({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return B(B({},e),{},{longRunningQuery:!0});case"ERROR":return B(B({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function sc(e){let{delay:o=750}=e;const[i,a]=n(!1);return r((()=>{const e=setTimeout((()=>a(!0)),o);return()=>clearTimeout(e)}),[]),i?t.createElement(Hl,null):null}const lc=e=>!e.qError||7005===e.qError.qErrorCode,cc=(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,s=i&&!a&&t[e].qError,l=a&&t[e].qCalcCondMsg,c="".concat(s?r:a?l||o:i&&t[e].qFallbackTitle||""),u=n(e);return{description:u?"".concat(u).concat(c.length?":":""):null,label:c,missing:t&&!i&&!s&&e>=t.length||a,error:s}})),uc=e=>e&&(Array.isArray(e)?e:[e])||[],pc=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t);return{reqDimErrors:cc(o,uc(a.qDimensionInfo),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:cc(i,uc(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},dc=async(e,t,n,r)=>{let{targets:o}=n;const{hasUnfulfilledErrors:i,aggMinD:a,aggMinM:s,hasLayoutErrors:l,layoutErrors:c}=((e,t,n)=>{let r=!1,o=0,i=0,a=!1,s=!1;const l=[];for(let c=0;c<t.length;++c){const u=t[c],p=u.dimensions.min(),d=u.measures.min(),f=u.resolveLayout(n),h=uc(f.qDimensionInfo).filter(lc),m=uc(f.qMeasureInfo).filter(lc);if(o+=p,i+=d,(h.length<p||m.length<d)&&(r=!0),f.qError){a=!0,s=7005===f.qError.qErrorCode;const t=s&&f.qCalcCondMsg?f.qCalcCondMsg:s?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");l.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:i,hasLayoutErrors:a,layoutErrors:l}})(e,o,t),u=[],p=[];let d=null;for(let n=0;n<o.length;++n){const a=o[n];if(!l&&i){const n=d||await r.getProperties();d=n;const o=pc(e,t,n,a);u.push(...o.reqDimErrors),p.push(...o.reqMeasErrors)}}const f=u.filter((e=>!(e.missing||e.error))).length,h=e.get("Visualization.Incomplete.Dimensions",[f,a]),m=p.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,s]),y=[{title:h,descriptions:[...u]},{title:g,descriptions:[...p]}],b=l?c:y;return[l||i,{title:l?c[0].title:e.get("Visualization.Incomplete"),data:b}]},fc=i(((e,i)=>{let{halo:a,model:l,initialSnOptions:c,initialSnPlugins:u,initialError:p,onMount:h,currentId:m}=e;const{app:g,types:y}=a,{nebbie:b}=a.public,{disableCellPadding:E=!1}=a.context||{},{translator:C,language:x,keyboardNavigation:L}=f(fi),S=Ko(),[w,O,q]=Ki(),[R,k]=o(ac,{loading:!1,loaded:!1,longRunningQuery:!1,error:(I=p)?{title:I.message}:null,sn:null,visualization:null});var I;const[_,{validating:T,canCancel:A,canRetry:D},P]=_i(l),[N]=Ti(g),[j,z,F]=Ki(),[H,U]=n(c),[W,$]=n(u),[V,G]=n(),K=[{current:V},".njs-action-toolbar-popover"],[Z]=Cs(g,l,K),[X,J]=n(!1),Y=d({enter:null,leave:null}),[Q,ee]=n(void 0),[te,ne]=n(void 0),re=d({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});r((()=>{bs(re.current)}),[]),r((()=>{F&&G(q)}),[O]),r((()=>{const e=null!=_&&_.components?_.components.find((e=>"general"===e.key)):null;ee(((e,t)=>{const n=null==e?void 0:e.bgColor;if(n&&t)return n.useColorExpression?t.validateColor(n.colorExpression):n.color&&"none"!==n.color.color?t.getColorPickerColor(n.color):void 0})(e,a.public.theme)),ne(oc(e,a.app))}),[_,a.public.theme,a.app]),re.current.blurCallback=e=>{a.root.toggleFocusOfCells(),e&&F&&F.focus()},re.current.refocusContent=()=>{R.sn.component&&"function"==typeof R.sn.component.focus&&R.sn.component.focus()};r((()=>{if(p||!N||!_)return;if(R.visualization===_.visualization&&R.sn)return void(async e=>{const[t,n]=await dc(C,_,e.generator.qae.data,l);k(t?{type:"ERROR",error:n}:{type:"RENDER"}),(e=>{let{sn:t,layout:n,model:r}=e;const o=t&&t.component&&t.component.selections;if(o&&o.id&&r.id&&o.id===r.id){if(n&&n.qSelectionInfo&&n.qSelectionInfo.qInSelections&&!o.isModal()){const{targets:e}=t.generator.qae.data,n=e[0].propertyPath;o.goModal(n)}n.qSelectionInfo&&n.qSelectionInfo.qInSelections||o.isModal()&&o.noModal()}})({sn:R.sn,layout:_,model:l})})(R.sn);const e=y.getSupportedVersion(_.visualization,_.version);if(e)return(async(e,t)=>{k({type:"LOADING"});const n=await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:i,app:a,selections:s,nebbie:l,focusHandler:c}=e;try{const e=await(async e=>{let{types:t,name:n,version:r}=e;return await t.get({name:n,version:r}).supernova()})({types:n,name:r,version:o});return e.create({model:i,app:a,selections:s,nebbie:l,focusHandler:c})}catch(e){t({type:"ERROR",error:{title:e.message}})}})({dispatch:k,types:y,visualization:e,version:t,model:l,app:g,selections:Z,nebbie:b,focusHandler:re.current});n&&(k({type:"LOADED",sn:n,visualization:e}),h())})(_.visualization,e),()=>{};k({type:"ERROR",error:{title:"Could not find a version of '".concat(_.visualization,"' that supports current object version. Did you forget to register ").concat(_.visualization,"?")}})}),[y,R.sn,l,Z,_,N,x]),r((()=>{if(!T)return;const e=setTimeout((()=>k({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[T]),s(i,(()=>({getQae:()=>R.sn.generator.qae,toggleFocus(e){"function"==typeof R.sn.component.focus&&(e?R.sn.component.focus():R.sn.component.blur())},setSnOptions:U,setSnPlugins:$,async takeSnapshot(){const{width:e,height:t}=O;let n=JSON.parse(JSON.stringify(_));return"function"==typeof R.sn.component.setSnapshotData&&(n=await R.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:C.language(),theme:S.name,appLayout:N,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof a.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return a.config.snapshot.capture(e)}})),[R.sn,z,O,_,S.name,N]);let oe=null;return R.loading&&!R.longRunningQuery?oe=t.createElement(sc,null):R.error?oe=t.createElement(kl,R.error):R.loaded&&(oe=t.createElement(ec,{key:_.visualization,sn:R.sn,halo:a,snOptions:H,snPlugins:W,layout:_,appLayout:N})),t.createElement(M,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:Q,backgroundImage:te&&te.url?"url(".concat(te.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:te&&te.size,backgroundPosition:te&&te.pos},elevation:0,square:!0,className:ic,ref:w,onMouseEnter:()=>{Y.current.leave&&clearTimeout(Y.current.leave),Y.enter||(Y.current.enter=setTimeout((()=>{J(!0),Y.current.enter=null}),250))},onMouseLeave:()=>{Y.current.enter&&clearTimeout(Y.current.enter),Y.current.leave||(Y.current.leave=setTimeout((()=>{J(!1),Y.current.leave=null}),750))}},t.createElement(v,{container:!0,direction:"column",gap:0,style:B(B({position:"relative",width:"100%",height:"100%"},E?{}:{padding:S.spacing(1)}),R.longRunningQuery?{opacity:"0.3"}:{})},q&&_&&R.sn&&t.createElement(Gl,{layout:_,sn:R.sn,anchorEl:q,hovering:X,focusHandler:re.current}," "),t.createElement(v,{tabIndex:L?0:-1,onKeyDown:L?e=>{["Enter"," ","Spacebar"].includes(e.key)&&a.root.toggleFocusOfCells(m)}:null,item:!0,xs:!0,style:{height:"100%"},ref:j},oe),t.createElement(Jl,{layout:_})),R.longRunningQuery&&t.createElement(Bl,{canCancel:A,canRetry:D,api:P}))}));function hc(e){let{halo:n,element:r,model:o,initialSnOptions:i,initialSnPlugins:a,onMount:s,initialError:l}=e;const{root:c}=n,u=t.createRef(),p=sl(),d=h.createPortal(t.createElement(fc,{ref:u,halo:n,model:o,currentId:p,initialSnOptions:i,initialSnPlugins:a,initialError:l,onMount:s}),r,o.id),f=()=>{c.remove(d),o.removeListener("closed",f)};return o.on("closed",f),c.add(d),c.addCell(p,u),[f,u]}function mc(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function gc(e,t){return mc(e)&&mc(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}function yc(){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)?gc(i,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...yc("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function bc(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 vc=()=>{};function Ec(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=vc,i=null,a=null,s=null;const l=new Promise((e=>{s=e}));let c={},u=[];const p=async e=>{a?(async()=>{await l,i.current.setSnOptions(B(B({},c),e))})():c=B(B({},c),e)},d=async e=>{bc(e),a?(async()=>{await l,i.current.setSnPlugins(e)})():u=e},f={id:e.id,async destroy(){await r(),o(),o=vc},async convertTo(n){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await Sl({halo:t,model:e,cellRef:i,newType:n});return r&&(e.__snInterceptor?await e.__snInterceptor.setProperties.call(e,o.qProperty):await e.setProperties(o.qProperty)),o},__DO_NOT_USE__:{mount(r){if(a)throw new Error("Already mounted");return a=r,[o,i]=hc({halo:t,element:r,model:e,initialSnOptions:c,initialSnPlugins:u,initialError:n,onMount:s}),l},async applyProperties(t){const n=yc("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){p(e)},plugins(e){d(e)},exportImage:()=>i.current.exportImage(),takeSnapshot:()=>i.current.takeSnapshot(),getModel:()=>e}};return f}async function Cc(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const i=Ec({model:e,halo:n,initialError:r,onDestroy:o});return t.options&&i.__DO_NOT_USE__.options(t.options),t.plugins&&i.__DO_NOT_USE__.plugins(t.plugins),t.element&&await i.__DO_NOT_USE__.mount(t.element),i}async function xc(e,t){let n,{type:r,version:o,fields:i,properties:a,options:s,plugins:l,element:c}=e,u={};try{const e=t.types.get({name:r,version:o});u=await e.initialProperties(a);const n=await e.supernova();i&&ul({sn:n,properties:u,fields:i}),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},u)}catch(e){n=e,u={qInfo:{qType:r},visualization:r}}const p=await t.app.createSessionObject(u);Ri.set(p.id,p);const d=(e=>{const t=Oi({type:"SET",value:e});return()=>{t(),Ri.clear(e.id)}})(p);return Cc(p,{options:s,plugins:l,element:c},t,n,(async()=>{await t.app.destroySessionObject(p.id),d()}))}async function Lc(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let s=xi.get(a);s||(s=t.app.getObject(n),xi.set(a,s));const l=await s;return Ri.set(a,l),Cc(l,{options:r,plugins:o,element:i},t)}function Sc(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const wc=Be.bind(null,!0),Oc={},{isArray:qc}=Array;function Rc(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function kc(e){return void 0===e}function Ic(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function _c(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]=kc(e[r||t])?i:e[t],e=e[r||t]})),e}function Tc(e,t){let n=!0;if(Rc(e)&&Rc(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{Tc(e[r],t[r])||(n=!1)})),n);if(qc(e)&&qc(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Tc(e[n],t[n]))return!1;return!0}return e===t}Oc.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?wc({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);Tc(i,a)||Ic(t,o)||(kc(a)?r.push({op:"add",path:s,value:i}):Rc(i)&&Rc(a)?r=r.concat(Oc.generate(a,i,s)):qc(i)&&qc(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]&&kc(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(Tc(t,o))return r;if(!kc(t[0])&&kc(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(Oc.generate(o[e],t[i],"".concat(n,"/").concat(e)));for(let e=0,s=t.length;e<s;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,s)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((o=>{kc(t[o])&&!Ic(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},Oc.apply=function(e,t){t.forEach((t=>{let n=_c(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(qc(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(qc(o)&&qc(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(Rc(o)&&Rc(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Ic(a,e)&&delete a[e]})),wc(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=_c(e,t.from);qc(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(qc(n)?n.splice(+r,1):delete n[r]);var a}))},Oc.clone=function(e){return wc({},e)},Oc.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},Oc.updateObject=function(e,t){Object.keys(e).length?Oc.apply(e,Oc.generate(e,t)):wc(e,t)};const Ac=e=>t=>{const n=(r=B(B({},t),{},{action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0}),Object.keys(Y.prototype).forEach((e=>{r[e]=Y.prototype[e]})),Y.init(r),r);var r;return n};let Dc,Pc;function Nc(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 Mc(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null}}}function jc(e){Fc(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 zc(e){if(e.__hooks.obsolete)return Promise.resolve();Pc=-1,Dc=e,Dc.__hooks.initiated&&Dc.__hooks.list.length;try{Dc.fn.call(null)}catch(e){console.error(e)}Dc.__hooks.initiated=!0;const t=Dc.__hooks;return Wc(Dc),Pc=void 0,Dc=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){Fc(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){Fc(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 Fc(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 Bc(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 Hc(e,t,n){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function Uc(e){return e.__hooks.imperativeHandle}function Wc(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function $c(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,Wc(e))}function Vc(e){if(void 0===Dc)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=Dc.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function Gc(e){Vc(++Pc);return Dc.context[e]}function Kc(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function Zc(e){return{__hooked:!0,fn:e,initiate:Mc,run:zc,teardown:jc,runSnaps:Bc,runMenu:Hc,focus:Lu,blur:Su,observeActions:$c,getImperativeHandle:Uc,updateRectOnNextRun:Kc}}function Xc(e){const t=Vc(++Pc);if(!t.value){t.component=Dc;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,zc(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function Jc(e,t){const n=Vc(++Pc);Nc(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===Dc.__hooks.pendingEffects.indexOf(n)&&Dc.__hooks.pendingEffects.push(n))}function Yc(e,t){const n=Vc(++Pc);Nc(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],Dc.__hooks.pendingLayoutEffects.push(n))}function Qc(e,t){const n=Vc(++Pc);return Nc(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function eu(e,t){const[n,r]=Xc((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=Vc(++Pc);return o.component||(o.component=Dc),Yc((()=>{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]}function tu(){return Gc("element")}function nu(){const e=tu(),t=Dc.__hooks.resizer,[n,r]=Xc((()=>{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()),Yc((()=>{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}function ru(){return Gc("layout")}function ou(){const e=Gc("layout"),[t]=Xc({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function iu(){return Gc("appLayout")}function au(){const e=Gc("model");return e&&e.session?e:void 0}function su(){const e=Gc("app");return e&&e.session?e:void 0}function lu(){const e=Gc("global");return e&&e.session?e:void 0}function cu(){return Gc("selections")}function uu(){return Gc("theme")}function pu(){return Gc("nebbie")}function du(){return Gc("translator")}function fu(){return Gc("deviceType")}function hu(){return Gc("plugins")}function mu(e,t){const[n]=Xc({action(){n._config.action.call(null)}});return n.component||(n.component=Dc,Dc.__hooks.actions.list.push(n)),Qc((()=>{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}function gu(){return Gc("constraints")}function yu(){return Gc("options")}function bu(e,t){const n=Vc(++Pc);if(n.imperative||(n.imperative=!0),Nc(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],Dc.__hooks.imperativeHandle=r}}function vu(e){const t=Vc(++Pc);t.value||(t.value=1,Dc.__hooks.snaps.push(t)),t.fn=e}function Eu(e){const t=Vc(++Pc);t.value||(t.value=1,Dc.__hooks.menus.push(t)),t.fn=e}function Cu(){Vc(++Pc);const e=Dc.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function xu(){const e=Gc("keyboardNavigation"),t=Gc("focusHandler");if(!Dc.__hooks.accessibility.exitFunction){const e=function(e){const n=this.__hooks.accessibility;n.enabled&&n.active&&(Su(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(Dc);Dc.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),Lu(this))}.bind(Dc);Dc.__hooks.accessibility.focusFunction=n;const r=function(e){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(Dc);Dc.__hooks.accessibility.focusSelectionFunction=r}const n=Dc.__hooks.accessibility.focusFunction,r=Dc.__hooks.accessibility.exitFunction,o=Dc.__hooks.accessibility.focusSelectionFunction,[i,a]=Xc({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return Dc.__hooks.accessibility.setter=a,Dc.__hooks.accessibility.enabled=e,Jc((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i}function Lu(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 Su(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 wu={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},Ou=Object.keys(wu);function qu(e,t){const n=B({},wu);var r;r=n,Object.keys(Y.prototype).forEach((e=>{r[e]=Y.prototype[e]})),Y.init(r);const o={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==Ou.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]}));const i=function(e){let{sn:t,component:n}=e;const r={},o=[],i=Ac(n);return((t.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=i(e);r[e.key]=t,o.push(t)})),(t.definition.actions||[]).forEach((e=>{const t=i(e);r[e.key]=t})),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:o}),a=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:a,selections:t.selections,actions:i.actions}),Object.assign(n,{actions:i.actions,model:t.model,app:t.app,selections:t.selections}),[n,i]}function Ru(e,t,n){"function"==typeof e.component&&(e.component=Zc(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"],s={};t.model&&t.model.session||(s.select=!0);const l={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,deviceType:n.deviceType,theme:void 0,translator:n.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:s,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(l,{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(B(B({},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=l.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n){return e.component.runMenu(this,t,n)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return a.forEach((e=>{i[e]=JSON.stringify(l.context[e])})),i.themeName=l.context.theme?l.context.theme.name():void 0,i.language=l.context.translator?l.context.translator.language():void 0,Object.assign(l,{selections:t.selections}),[l,null]}(e,t,n):qu(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];return e.qae.properties.onChange.call({model:t.model},...r),t.model.__snInterceptor.setProperties.call(this,...r)},t.model.applyPatches=function(n,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const i=Oc.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));Oc.apply(o,a),e.qae.properties.onChange.call({model:t.model},o);const s=Oc.generate(i,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,s,r)}))},t.model.__snInterceptor.teardown=()=>{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 ku=()=>{};function Iu(e,t){return void 0===e?()=>t:()=>e}function _u(e){const t=e||{};return{min:"function"==typeof t.min?t.min:Iu(t.min,0),max:"function"==typeof t.max?t.max:Iu(t.max,1e3),added:t.added||t.add||ku,description:t.description||ku,moved:t.moved||t.move||ku,removed:t.removed||t.remove||ku,replaced:t.replaced||t.replace||ku,isDefined:()=>!!e}}function Tu(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(e," at ").concat(t,". Valid paths include /qHyperCubeDef or /qListObjectDef, e.g. data/qHyperCubeDef"))}return{propertyPath:t,layoutPath:n,resolveLayout:e=>((e,t,n)=>{const r=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<r.length;++e)if(""!==r[e]){if(void 0===o[r[e]])return n;o=o[r[e]]}return o})(e,n,{}),dimensions:_u(e.dimensions),measures:_u(e.measures)}}function Au(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.properties||{};t.properties&&(t.properties.initial||t.properties.onChange)&&(n=t.properties.initial,e=t.properties.onChange);const r={properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(Tu)},exportProperties:t.exportProperties,importProperties:t.importProperties};return r}function Du(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:Au(n.qae),component:n.component||{},create:e=>Ru(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}var Pu={exports:{}};!function(e,t){var n;t=e.exports=p,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=Number.MAX_SAFE_INTEGER||9007199254740991,o=t.re=[],i=t.src=[],a=t.tokens={},s=0;function l(e){a[e]=s++}l("NUMERICIDENTIFIER"),i[a.NUMERICIDENTIFIER]="0|[1-9]\\d*",l("NUMERICIDENTIFIERLOOSE"),i[a.NUMERICIDENTIFIERLOOSE]="[0-9]+",l("NONNUMERICIDENTIFIER"),i[a.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",l("MAINVERSION"),i[a.MAINVERSION]="("+i[a.NUMERICIDENTIFIER]+")\\.("+i[a.NUMERICIDENTIFIER]+")\\.("+i[a.NUMERICIDENTIFIER]+")",l("MAINVERSIONLOOSE"),i[a.MAINVERSIONLOOSE]="("+i[a.NUMERICIDENTIFIERLOOSE]+")\\.("+i[a.NUMERICIDENTIFIERLOOSE]+")\\.("+i[a.NUMERICIDENTIFIERLOOSE]+")",l("PRERELEASEIDENTIFIER"),i[a.PRERELEASEIDENTIFIER]="(?:"+i[a.NUMERICIDENTIFIER]+"|"+i[a.NONNUMERICIDENTIFIER]+")",l("PRERELEASEIDENTIFIERLOOSE"),i[a.PRERELEASEIDENTIFIERLOOSE]="(?:"+i[a.NUMERICIDENTIFIERLOOSE]+"|"+i[a.NONNUMERICIDENTIFIER]+")",l("PRERELEASE"),i[a.PRERELEASE]="(?:-("+i[a.PRERELEASEIDENTIFIER]+"(?:\\."+i[a.PRERELEASEIDENTIFIER]+")*))",l("PRERELEASELOOSE"),i[a.PRERELEASELOOSE]="(?:-?("+i[a.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+i[a.PRERELEASEIDENTIFIERLOOSE]+")*))",l("BUILDIDENTIFIER"),i[a.BUILDIDENTIFIER]="[0-9A-Za-z-]+",l("BUILD"),i[a.BUILD]="(?:\\+("+i[a.BUILDIDENTIFIER]+"(?:\\."+i[a.BUILDIDENTIFIER]+")*))",l("FULL"),l("FULLPLAIN"),i[a.FULLPLAIN]="v?"+i[a.MAINVERSION]+i[a.PRERELEASE]+"?"+i[a.BUILD]+"?",i[a.FULL]="^"+i[a.FULLPLAIN]+"$",l("LOOSEPLAIN"),i[a.LOOSEPLAIN]="[v=\\s]*"+i[a.MAINVERSIONLOOSE]+i[a.PRERELEASELOOSE]+"?"+i[a.BUILD]+"?",l("LOOSE"),i[a.LOOSE]="^"+i[a.LOOSEPLAIN]+"$",l("GTLT"),i[a.GTLT]="((?:<|>)?=?)",l("XRANGEIDENTIFIERLOOSE"),i[a.XRANGEIDENTIFIERLOOSE]=i[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",l("XRANGEIDENTIFIER"),i[a.XRANGEIDENTIFIER]=i[a.NUMERICIDENTIFIER]+"|x|X|\\*",l("XRANGEPLAIN"),i[a.XRANGEPLAIN]="[v=\\s]*("+i[a.XRANGEIDENTIFIER]+")(?:\\.("+i[a.XRANGEIDENTIFIER]+")(?:\\.("+i[a.XRANGEIDENTIFIER]+")(?:"+i[a.PRERELEASE]+")?"+i[a.BUILD]+"?)?)?",l("XRANGEPLAINLOOSE"),i[a.XRANGEPLAINLOOSE]="[v=\\s]*("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:"+i[a.PRERELEASELOOSE]+")?"+i[a.BUILD]+"?)?)?",l("XRANGE"),i[a.XRANGE]="^"+i[a.GTLT]+"\\s*"+i[a.XRANGEPLAIN]+"$",l("XRANGELOOSE"),i[a.XRANGELOOSE]="^"+i[a.GTLT]+"\\s*"+i[a.XRANGEPLAINLOOSE]+"$",l("COERCE"),i[a.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",l("COERCERTL"),o[a.COERCERTL]=new RegExp(i[a.COERCE],"g"),l("LONETILDE"),i[a.LONETILDE]="(?:~>?)",l("TILDETRIM"),i[a.TILDETRIM]="(\\s*)"+i[a.LONETILDE]+"\\s+",o[a.TILDETRIM]=new RegExp(i[a.TILDETRIM],"g");l("TILDE"),i[a.TILDE]="^"+i[a.LONETILDE]+i[a.XRANGEPLAIN]+"$",l("TILDELOOSE"),i[a.TILDELOOSE]="^"+i[a.LONETILDE]+i[a.XRANGEPLAINLOOSE]+"$",l("LONECARET"),i[a.LONECARET]="(?:\\^)",l("CARETTRIM"),i[a.CARETTRIM]="(\\s*)"+i[a.LONECARET]+"\\s+",o[a.CARETTRIM]=new RegExp(i[a.CARETTRIM],"g");l("CARET"),i[a.CARET]="^"+i[a.LONECARET]+i[a.XRANGEPLAIN]+"$",l("CARETLOOSE"),i[a.CARETLOOSE]="^"+i[a.LONECARET]+i[a.XRANGEPLAINLOOSE]+"$",l("COMPARATORLOOSE"),i[a.COMPARATORLOOSE]="^"+i[a.GTLT]+"\\s*("+i[a.LOOSEPLAIN]+")$|^$",l("COMPARATOR"),i[a.COMPARATOR]="^"+i[a.GTLT]+"\\s*("+i[a.FULLPLAIN]+")$|^$",l("COMPARATORTRIM"),i[a.COMPARATORTRIM]="(\\s*)"+i[a.GTLT]+"\\s*("+i[a.LOOSEPLAIN]+"|"+i[a.XRANGEPLAIN]+")",o[a.COMPARATORTRIM]=new RegExp(i[a.COMPARATORTRIM],"g");l("HYPHENRANGE"),i[a.HYPHENRANGE]="^\\s*("+i[a.XRANGEPLAIN]+")\\s+-\\s+("+i[a.XRANGEPLAIN]+")\\s*$",l("HYPHENRANGELOOSE"),i[a.HYPHENRANGELOOSE]="^\\s*("+i[a.XRANGEPLAINLOOSE]+")\\s+-\\s+("+i[a.XRANGEPLAINLOOSE]+")\\s*$",l("STAR"),i[a.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c<s;c++)n(c,i[c]),o[c]||(o[c]=new RegExp(i[c]));function u(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?o[a.LOOSE]:o[a.FULL]).test(e))return null;try{return new p(e,t)}catch(e){return null}}function p(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof p))return new p(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<r)return t}return e})):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}t.parse=u,t.valid=function(e,t){var n=u(e,t);return n?n.version:null},t.clean=function(e,t){var n=u(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=p,p.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},p.prototype.toString=function(){return this.version},p.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof p||(e=new p(e,this.options)),this.compareMain(e)||this.comparePre(e)},p.prototype.compareMain=function(e){return e instanceof p||(e=new p(e,this.options)),f(this.major,e.major)||f(this.minor,e.minor)||f(this.patch,e.patch)},p.prototype.comparePre=function(e){if(e instanceof p||(e=new p(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return f(r,o)}while(++t)},p.prototype.compareBuild=function(e){e instanceof p||(e=new p(e,this.options));var t=0;do{var r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return f(r,o)}while(++t)},p.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new p(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(y(e,t))return null;var n=u(e),r=u(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var i="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return o+a;return i},t.compareIdentifiers=f;var d=/^[0-9]+$/;function f(e,t){var n=d.test(e),r=d.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function h(e,t,n){return new p(e,n).compare(new p(t,n))}function m(e,t,n){return h(e,t,n)>0}function g(e,t,n){return h(e,t,n)<0}function y(e,t,n){return 0===h(e,t,n)}function b(e,t,n){return 0!==h(e,t,n)}function v(e,t,n){return h(e,t,n)>=0}function E(e,t,n){return h(e,t,n)<=0}function C(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return y(e,n,r);case"!=":return b(e,n,r);case">":return m(e,n,r);case">=":return v(e,n,r);case"<":return g(e,n,r);case"<=":return E(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function x(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof x){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof x))return new x(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===L?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new p(e,t).major},t.minor=function(e,t){return new p(e,t).minor},t.patch=function(e,t){return new p(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new p(e,n),o=new p(t,n);return r.compare(o)||r.compareBuild(o)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=m,t.lt=g,t.eq=y,t.neq=b,t.gte=v,t.lte=E,t.cmp=C,t.Comparator=x;var L={};function S(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof S)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new S(e.raw,t);if(e instanceof x)return new S(e.value,t);if(!(this instanceof S))return new S(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function w(e,t){for(var n=!0,r=e.slice(),o=r.pop();n&&r.length;)n=r.every((function(e){return o.intersects(e,t)})),o=r.pop();return n}function O(e){return!e||"x"===e.toLowerCase()||"*"===e}function q(e,t,n,r,o,i,a,s,l,c,u,p,d){return((t=O(n)?"":O(r)?">="+n+".0.0":O(o)?">="+n+"."+r+".0":">="+t)+" "+(s=O(l)?"":O(c)?"<"+(+l+1)+".0.0":O(u)?"<"+l+"."+(+c+1)+".0":p?"<="+l+"."+c+"."+u+"-"+p:"<="+s)).trim()}function R(e,t,r){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(o=0;o<e.length;o++)if(n(e[o].semver),e[o].semver!==L&&e[o].semver.prerelease.length>0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function k(e,t,n){try{t=new S(t,n)}catch(e){return!1}return t.test(e)}function I(e,t,n,r){var o,i,a,s,l;switch(e=new p(e,r),t=new S(t,r),n){case">":o=m,i=E,a=g,s=">",l=">=";break;case"<":o=g,i=v,a=m,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(k(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],d=null,f=null;if(u.forEach((function(e){e.semver===L&&(e=new x(">=0.0.0")),d=d||e,f=f||e,o(e.semver,d.semver,r)?d=e:a(e.semver,f.semver,r)&&(f=e)})),d.operator===s||d.operator===l)return!1;if((!f.operator||f.operator===s)&&i(e,f.semver))return!1;if(f.operator===l&&a(e,f.semver))return!1}return!0}x.prototype.parse=function(e){var t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new p(n[2],this.options.loose):this.semver=L},x.prototype.toString=function(){return this.value},x.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===L||e===L)return!0;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}return C(e,this.operator,this.semver,this.options)},x.prototype.intersects=function(e,t){if(!(e instanceof x))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new S(e.value,t),k(this.value,n,t));if(""===e.operator)return""===e.value||(n=new S(this.value,t),k(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=C(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=C(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&a||s||l},t.Range=S,S.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},S.prototype.toString=function(){return this.range},S.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[a.HYPHENRANGELOOSE]:o[a.HYPHENRANGE];e=e.replace(r,q),n("hyphen replace",e),e=e.replace(o[a.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,o[a.COMPARATORTRIM]),e=(e=(e=e.replace(o[a.TILDETRIM],"$1~")).replace(o[a.CARETTRIM],"$1^")).split(/\s+/).join(" ");var i=t?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?o[a.CARETLOOSE]:o[a.CARET];return e.replace(r,(function(t,r,o,i,a){var s;return n("caret",e,t,r,o,i,a),O(r)?s="":O(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":O(i)?s="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),s="0"===r?"0"===o?">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===o?">="+r+"."+o+"."+i+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+" <"+(+r+1)+".0.0"),n("caret return",s),s}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?o[a.TILDELOOSE]:o[a.TILDE];return e.replace(r,(function(t,r,o,i,a){var s;return n("tilde",e,t,r,o,i,a),O(r)?s="":O(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":O(i)?s=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":a?(n("replaceTilde pr",a),s=">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0"):s=">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0",n("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?o[a.XRANGELOOSE]:o[a.XRANGE];return e.replace(r,(function(r,o,i,a,s,l){n("xRange",e,r,o,i,a,s,l);var c=O(i),u=c||O(a),p=u||O(s),d=p;return"="===o&&d&&(o=""),l=t.includePrerelease?"-0":"",c?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&d?(u&&(a=0),s=0,">"===o?(o=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===o&&(o="<",u?i=+i+1:a=+a+1),r=o+i+"."+a+"."+s+l):u?r=">="+i+".0.0"+l+" <"+(+i+1)+".0.0"+l:p&&(r=">="+i+"."+a+".0"+l+" <"+i+"."+(+a+1)+".0"+l),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[a.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(i)}))),s=s.map((function(e){return new x(e,this.options)}),this)},S.prototype.intersects=function(e,t){if(!(e instanceof S))throw new TypeError("a Range is required");return this.set.some((function(n){return w(n,t)&&e.set.some((function(e){return w(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new S(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},S.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(R(this.set[t],e,this.options))return!0;return!1},t.satisfies=k,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var i=new S(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&-1!==o.compare(e)||(o=new p(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,o=null;try{var i=new S(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&1!==o.compare(e)||(o=new p(r=e,n)))})),r},t.minVersion=function(e,t){e=new S(e,t);var n=new p("0.0.0");if(e.test(n))return n;if(n=new p("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r){e.set[r].forEach((function(e){var t=new p(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!m(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new S(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return I(e,t,"<",n)},t.gtr=function(e,t,n){return I(e,t,">",n)},t.outside=I,t.prerelease=function(e,t){var n=u(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new S(e,n),t=new S(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof p)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=o[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),o[a.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;o[a.COERCERTL].lastIndex=-1}else n=e.match(o[a.COERCE]);if(null===n)return null;return u(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(Pu,Pu.exports);const Nu={};async function Mu(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!Nu[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}),s=Promise.resolve(a);Nu[i]=s.then((e=>{if(!e)throw new Error("load() of visualization '".concat(n,"' resolved to an invalid object"));return e})).catch((e=>{throw new Error("Failed to load visualization: '".concat(n,"'"))}))}return Nu[i]}function ju(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]=function(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)||Pu.exports.satisfies(e,i.deps.properties),supernova:()=>Mu(a.name,a.version,t,o.load).then((e=>(n=n||Du(e,t.public.galaxy),r=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e){return this.supernova().then((()=>B(B({qInfo:{qType:a.name},visualization:a.name,version:a.version,showTitles:!0},JSON.parse(r)),e)))}};return a}({name:e,version:o},t,i),r=null},getMatchingVersionFromProperties:e=>{var t;r||(t=Object.keys(n),r=[...t.filter((e=>"undefined"===e)),...t.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(".")))]);for(let t=r.length-1;t>=0;t--){if(n[r[t]].supportsPropertiesVersion(e))return r[t]}return null},versions:n}}function zu(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=ju(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>r[e]?r[e].getMatchingVersionFromProperties(t):null,get(e){const{name:t}=e;let{version:n}=e;if(r[t]){if(!r[t].versions[n]){n=Object.keys(r[t].versions)[0]}}else this.register({name:t,version:n});return r[t].get(n)||o.get(e)},getList:()=>Object.keys(r).map((e=>({name:e,versions:Object.keys(r[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{r[e]&&(r[e]=void 0),function(e){Object.keys(Nu).forEach((t=>{t.split("__")[0]===e&&(Nu[t]=void 0)}))}(e)}}}const Fu=["__DO_NOT_USE__"],Bu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return B(B({},e),t)},Hu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[...e,...t].filter(((e,t,n)=>n.indexOf(e)===t))},Uu=(e,t)=>({context:Bu(e.context,t.context),load:t.load||e.load,snapshot:B({},t.snapshot||e.snapshot),types:Hu(e.types,t.types),themes:Hu(e.themes,t.themes),flags:Bu(e.flags,t.flags),anything:Bu(e.anything,t.anything)}),Wu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n=W(e,Fu),r={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1},o=B(B(B({},n),r),t);return o};var $u=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Z(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let i=B(B({},t.context),{},{translator:n.translator});const[a]=Gi({app:e,context:i}),s=it({themes:t.themes,root:a}),l={galaxy:{translator:n.translator,flags:Sc(t.flags),deviceType:at(t.context.deviceType),anything:t.anything},theme:s.externalAPI,translator:n.translator,nebbie:null},c={app:e,root:a,config:t,public:l,context:i,types:null},u=zu({halo:c});t.types.forEach((e=>u.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let p=s.setTheme(t.context.theme),d=null,f=null;const h={render:async e=>(await p,e.id?Lc(e,c):xc(e,c)),context:async e=>{let t;["theme","language","constraints","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==i[n]&&(t||(t={}),t[n]=e[n])})),t&&(i=B(B(B({},i),t),{},{translator:n.translator}),c.context=i,t.theme&&(p=s.setTheme(t.theme),await p),t.language&&c.public.translator.language(t.language),a.context(i))},selections:async()=>(d||(d={mount(t){f||(f=zs({element:t,app:e}),a.add(f))},unmount(){f&&(a.remove(f),f=null)}}),d),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,mount(o){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!o)throw new Error("Element for ".concat(r||n," not provided"));if(this._instance)throw new Error("Field or object ".concat(r||n," already mounted"));this._instance=ol({element:o,app:e,fieldIdentifier:t,qId:n,options:Wu(i),stateName:i.stateName||"$"}),a.add(this._instance)},unmount(){this._instance&&(a.remove(this._instance),this._instance=null)}};return o},getRegisteredTypes:u.getList,__DO_NOT_USE__:{types:u}};return c.public.nebbie=h,c.types=u,h}return r.createConfiguration=n=>e(Uu(t,n)),r.config=t,r}({context:{theme:"light",language:"en-US",deviceType:"auto",constraints:{},keyboardNavigation:!1,disableCellPadding:!1},load:()=>{},types:[],themes:[],anything:{},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()))}}),Vu={exports:{}},Gu={exports:{}};Gu.exports=function(){function e(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}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(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===a.call(e)},u=function(e){if(!e||"[object Object]"!==a.call(e))return!1;var t,n=i.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&i.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||i.call(e,t)},p=function(e,t){s&&"__proto__"===t.name?s(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},d=function(e,t){if("__proto__"===t){if(!i.call(e,t))return;if(l)return l(e,t).value}return e[t]},f=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,f=arguments.length,h=!1;for("boolean"==typeof s&&(h=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<f;++l)if(null!=(t=arguments[l]))for(n in t)r=d(s,n),s!==(o=d(t,n))&&(h&&o&&(u(o)||(i=c(o)))?(i?(i=!1,a=r&&c(r)?r:[]):a=r&&u(r)?r:{},p(s,{name:n,newValue:e(h,a,o)})):void 0!==o&&p(s,{name:n,newValue:o}));return s};const h=globalThis.crypto||{getRandomValues:()=>123456};function m(){return e=>{const t=f({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^h.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=t._mock;let o=t;return r&&(delete t._mock,o=f({},t,r)),Promise.resolve(n({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId},t))}}const g=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},y=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 s=g(e,{defaultValue:t,args:i});return n?new Promise((e=>{setTimeout((()=>e(s)),r)})):s}},b=["id","session"],v=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function E(e){return!v.includes(e)}function C(e){const t=g(e.getLayout);return t.qInfo&&t.qInfo.qId}function x(e,t){return e.reduce(((e,r)=>n(n({},e),function(e,t){let r=C(e);const{delay:i}=t,{id:a,session:s}=e,l=o(e,b);if(a&&r&&a!==r)throw new Error("Generic object has multiple IDs, qInfo.qId: ".concat(r,", id: ").concat(a));return r=r||a||"object - ".concat(+Date.now()),{[r]:n({id:r,session:g(s,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(l).reduce(((e,t)=>{let[r,o]=t;return n(n({},e),{},{[r]:y(o,{async:E(r),delay:i})})}),{}))}}(r,t))),{})}function L(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!C(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function S(){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(L);const n=x(e,t);return async e=>Promise.resolve(n[e])}function w(){return()=>Promise.resolve({id:"app-layout"})}const O={fromGenericObjects(t){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new e,o=new m,i=new S(t,n),a=new w,s={id:"app - ".concat(+Date.now()),session:r,createSessionObject:o,getObject:i,getAppLayout:a};return Promise.resolve(s)}(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}};return O}();var Ku=z(Vu.exports=Gu.exports);const Zu={generator:Du,hook:Zc,theme:rt,locale:G};export{Ku as EnigmaMocker,Zu as __DO_NOT_USE__,wl as conversion,$u as embed,Eu as onContextMenu,vu as onTakeSnapshot,mu as useAction,su as useApp,iu as useAppLayout,gu as useConstraints,fu as useDeviceType,Jc as useEffect,tu as useElement,pu as useEmbed,lu as useGlobal,bu as useImperativeHandle,xu as useKeyboard,ru as useLayout,Qc as useMemo,au as useModel,yu as useOptions,hu as usePlugins,eu as usePromise,nu as useRect,Cu as useRenderState,cu as useSelections,ou as useStaleLayout,Xc as useState,uu as useTheme,du as useTranslator};
|
|
13
13
|
//# sourceMappingURL=index.js.map
|