@nebula.js/sn-tabbed-container 2.12.0 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specification/spec.json +1 -1
- package/core/esm/index.js +5 -5
- package/dist/sn-tabbed-container.js +3 -3
- package/dist/sn-tabbed-container.systemjs.js +5 -5
- package/package.json +8 -8
- package/sn-tabbed-container-ext/dist/sn-tabbed-container.js +3 -3
- package/sn-tabbed-container-ext/sn-tabbed-container.qext +1 -1
package/core/esm/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-tabbed-container v2.
|
|
2
|
+
* @nebula.js/sn-tabbed-container v2.13.0
|
|
3
3
|
* Copyright (c) 2026 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import{useOptions as e,useEffect as t,onTakeSnapshot as n,useKeyboard as r,useMemo as o,useState as i,useElement as a,useApp as s,useStaleLayout as l,useEmbed as c,useModel as d,useTranslator as u,useEmitter as p,useInteractionState as h,useTheme as f,usePromise as m,onContextMenu as b,useImperativeHandle as g}from"@nebula.js/stardust";import*as v from"react";import y,{forwardRef as x,useContext as E,isValidElement as C,cloneElement as S,Children as w,useState as R,useEffect as _,createContext as k,useImperativeHandle as A,useRef as L,useCallback as I,useMemo as T}from"react";import*as P from"react-dom";import M from"react-dom";var O,j,$={Container_Label_Visualizations:{id:"Container.Label.Visualizations",locale:{"de-DE":"Visualisierungen","en-US":"Visualizations","es-ES":"Visualizaciones","fr-FR":"Visualisations","it-IT":"Visualizzazioni","ja-JP":"ビジュアライゼーション","ko-KR":"시각화","nl-NL":"Visualisaties","pl-PL":"Wizualizacje","pt-BR":"Visualizações","ru-RU":"Визуализации","sv-SE":"Visualiseringar","tr-TR":"Görselleştirmeler","zh-CN":"可视化","zh-TW":"視覺化"}},LayoutContainer_EmptyList_AddContent:{id:"LayoutContainer.EmptyList.AddContent",locale:{"de-DE":"Inhalt hinzufügen","en-US":"Add content","es-ES":"Añadir contenido","fr-FR":"Ajouter un contenu","it-IT":"Aggiungi contenuto","ja-JP":"コンテンツを追加","ko-KR":"콘텐츠 추가","nl-NL":"Inhoud toevoegen","pl-PL":"Dodaj zawartość","pt-BR":"Adicionar conteúdo","ru-RU":"Добавить содержимое","sv-SE":"Lägg till innehåll","tr-TR":"İçerik ekle","zh-CN":"添加内容","zh-TW":"新增內容"}},LayoutContainer_EmptyList_EmptyHint:{id:"LayoutContainer.EmptyList.EmptyHint",locale:{"de-DE":"Leere Sammelbox","en-US":"Empty container","es-ES":"Contenedor vacío","fr-FR":"Conteneur vide","it-IT":"Contenitore vuoto","ja-JP":"コンテナが空です","ko-KR":"빈 컨테이너","nl-NL":"Lege container","pl-PL":"Pusty kontener","pt-BR":"Contêiner vazio","ru-RU":"Пустой контейнер","sv-SE":"Tom behållare","tr-TR":"Kapsayıcı boş","zh-CN":"空容器","zh-TW":"空的容器"}},LayoutContainer_Object_Charts:{id:"LayoutContainer.Object.Charts",locale:{"de-DE":"Diagramme","en-US":"Charts","es-ES":"Gráficos","fr-FR":"Graphiques","it-IT":"Grafici","ja-JP":"チャート","ko-KR":"차트","nl-NL":"Diagrammen","pl-PL":"Wykresy","pt-BR":"Gráficos","ru-RU":"Диаграммы","sv-SE":"Diagram","tr-TR":"Grafikler","zh-CN":"图表","zh-TW":"圖表"}},LayoutContainer_Object_CustomObjects:{id:"LayoutContainer.Object.CustomObjects",locale:{"de-DE":"Benutzerdefinierte Objekte","en-US":"Custom objects","es-ES":"Objetos personalizados","fr-FR":"Objets personnalisés","it-IT":"Oggetti personalizzati","ja-JP":"カスタム オブジェクト","ko-KR":"사용자 지정 개체","nl-NL":"Aangepaste objecten","pl-PL":"Obiekty niestandardowe","pt-BR":"Objetos personalizados","ru-RU":"Пользовательские объекты","sv-SE":"Anpassade objekt","tr-TR":"Özel nesneler","zh-CN":"自定义对象","zh-TW":"自訂物件"}},LayoutContainer_Object_Description:{id:"LayoutContainer.Object.Description",locale:{"de-DE":"Die Sammelbox besteht aus folgenden Objekten: {0}. Verwenden Sie zum Navigieren die Nach-links- und Nach-rechts-Pfeiltasten. Drücken Sie die Eingabetaste oder die Leertaste, um die Diagramme auszuwählen.","en-US":"Container consists of the following objects: {0}. Use left and right arrow keys to navigate through the inner charts. Press enter or space to select the charts.","es-ES":"El contenedor consta de los siguientes objetos: {0}. Utilice las teclas de flecha izquierda y derecha para navegar por los gráficos interiores. Pulse Intro o espacio para seleccionar los gráficos.","fr-FR":"Le conteneur comprend les objets suivants : {0}. Utilisez les touches de direction gauche et droite pour parcourir les graphiques internes. Appuyez sur la touche Entrée ou espace pour sélectionner les graphiques.","it-IT":"Il contenitore include i seguenti oggetti: {0}. Utilizzare i tasti freccia sinistro e destro per navigare tra i grafici interni. Per selezionare i grafici, premere Invio o Spazio.","ja-JP":"コンテナは以下のオブジェクトで構成されます: {0}。左右の矢印キーを使用して、内部のチャートをナビゲートします。Enter キーかスペース キーを押してチャートを選択します。","ko-KR":"컨테이너는 다음 개체로 구성됩니다. {0}. 왼쪽 및 오른쪽 화살표 키를 사용하여 내부 차트를 탐색하십시오. 차트를 선택하려면 Enter 키나 스페이스바를 누르십시오.","nl-NL":"Container bevat de volgende objecten: {0}. Navigeer met de pijl-links en pijl-rechts langs de binnenste diagrammen. Druk op Enter of de spatiebalk om de diagrammen te selecteren.","pl-PL":"Kontener zawiera następujące obiekty: {0}. Do nawigacji po wewnętrznych wykresach użyj lewego i prawego klawisza strzałki. Naciśnij klawisz Enter lub klawisz spacji, aby wybrać wykresy.","pt-BR":"O contêiner consiste nos seguintes objetos: {0}. Use as setas para a esquerda e para a direita para navegar pelos gráficos internos. Pressione Enter ou espaço para selecionar os gráficos.","ru-RU":"Контейнер состоит из следующих объектов: {0}. Для навигации по внутренним диаграммам используйте клавиши со стрелками влево и вправо. Нажмите клавишу Enter или пробел, чтобы выбрать диаграммы.","sv-SE":"Behållaren innehåller följande objekt: {0}. Använd vänster och höger piltangent för att navigera genom de inre diagrammen. Tryck på returtangenten eller mellanslag för att välja diagram.","tr-TR":"Kapsayıcı şu nesneleri içerir: {0}. İç grafikler arasında gezinmek için sağ ve sol ok tuşlarını kullanın. Grafik seçmek için enter veya boşluk tuşuna basın.","zh-CN":"容器由以下对象组成:{0}。使用左右箭头键浏览内部图表。按回车或空格键选择图表。","zh-TW":"容器由下列物件組成:{0}。使用向左和向右方向鍵瀏覽內部圖表。按下 Enter 或空間以選取圖表。"}},LayoutContainer_Object_MasterItems:{id:"LayoutContainer.Object.MasterItems",locale:{"de-DE":"Master-Elemente","en-US":"Master items","es-ES":"Elementos maestros","fr-FR":"Éléments principaux","it-IT":"Voci principali","ja-JP":"マスター アイテム","ko-KR":"마스터 항목","nl-NL":"Masteritems","pl-PL":"Elementy główne","pt-BR":"Itens mestre","ru-RU":"Основные элементы","sv-SE":"Originalobjekt","tr-TR":"Ana öğeler","zh-CN":"主条目","zh-TW":"主項目"}},LayoutContainer_Object_Untitled:{id:"LayoutContainer.Object.Untitled",locale:{"de-DE":"Unbenanntes Objekt","en-US":"Untitled object","es-ES":"Objeto sin título","fr-FR":"Objet sans titre","it-IT":"Oggetto senza nome","ja-JP":"無題のオブジェクト","ko-KR":"제목 없는 개체","nl-NL":"Object zonder titel","pl-PL":"Obiekt bez tytułu","pt-BR":"Objeto sem título","ru-RU":"Объект без названия","sv-SE":"Objekt utan namn","tr-TR":"Başlıksız nesne","zh-CN":"无标题对象","zh-TW":"無標題的物件"}},TabContainer_Navigation_Horizontal:{id:"TabContainer.Navigation.Horizontal",locale:{"de-DE":"Verwenden Sie die Nach-links- und Nach-rechts-Pfeiltasten, um durch die Registerkarten zu navigieren. Drücken Sie die Eingabetaste oder die Leertaste, um die Registerkarten auszuwählen.","en-US":"Use left and right arrow keys to navigate through the tabs. Press Enter or Space to select the tabs.","es-ES":"Utilice las teclas de flecha izquierda y derecha para navegar por las pestañas. Pulse Intro o Espacio para seleccionar las pestañas.","fr-FR":"Utilisez les touches des flèches gauche et droite pour naviguer à travers les onglets. Appuyez sur la touche Entrée ou Espace pour sélectionner les onglets.","it-IT":"Utilizzare i tasti freccia destra e sinistra per navigare tra le schede. Per selezionare le schede, premere Invio o Spazio.","ja-JP":"左右の矢印キーで、タブ間を移動できます。Enter キーかスペース キーを押せば、タブを選択できます。","ko-KR":"탭을 탐색하려면 왼쪽 및 오른쪽 화살표 키를 사용합니다. 탭을 선택하려면 Enter 키 또는 스페이스바를 누르십시오.","nl-NL":"Gebruik de pijl-links en pijl-rechts om te navigeren tussen de tabbladen. Druk op Enter of de spatiebalk om de tabbladen te selecteren.","pl-PL":"Do poruszania się po kartach użyj klawiszy strzałek w lewo i w prawo. Naciśnij klawisz Enter lub klawisz spacji, aby wybrać karty.","pt-BR":"Use as setas para a esquerda e para a direita para navegar pelas guias. Pressione Enter ou Espaço para selecionar as guias.","ru-RU":'Используйте стрелки влево и вправо для навигации по вкладкам. Нажмите Enter или "Пробел", чтобы выбрать вкладку.',"sv-SE":"Använd vänster och höger piltangent för att navigera mellan flikarna. Tryck på returtangenten eller mellanslag för att välja flikar.","tr-TR":"Sekmeler arasında gezinmek için sağ ve sol ok tuşlarını kullanın. Sekme seçmek için Enter veya Boşluk tuşuna basın.","zh-CN":"使用左右箭头键浏览选项卡。按 Enter 或空格键选择选项卡。","zh-TW":"使用向左和向右方向鍵瀏覽索引標籤。按下 Enter 或空格鍵以選取索引標籤。"}},TabContainer_Navigation_Vertical:{id:"TabContainer.Navigation.Vertical",locale:{"de-DE":"Verwenden Sie die Nach-unten- und Nach-oben-Pfeiltasten, um durch die Registerkarten zu navigieren. Drücken Sie die Eingabetaste oder die Leertaste, um die Registerkarten auszuwählen.","en-US":"Use up and down arrow keys to navigate through the tabs. Press Enter or Space to select the tabs.","es-ES":"Utilice las teclas de flecha arriba y abajo para navegar por las pestañas. Pulse Intro o Espacio para seleccionar las pestañas.","fr-FR":"Utilisez les touches des flèches haut et bas pour naviguer à travers les onglets. Appuyez sur la touche Entrée ou Espace pour sélectionner les onglets.","it-IT":"Per navigare tra le schede, usare i tasti freccia su e giù. Per selezionare le schede, premere Invio o Spazio.","ja-JP":"上下の矢印キーで、タブ間を移動できます。Enter キーかスペース キーを押せば、タブを選択できます。","ko-KR":"탭을 탐색하려면 위쪽 및 아래쪽 화살표 키를 사용합니다. 탭을 선택하려면 Enter 키 또는 스페이스바를 누르십시오.","nl-NL":"Gebruik de pijl-omhoog en pijl-omlaag om te navigeren tussen de tabbladen. Druk op Enter of de spatiebalk om de tabbladen te selecteren.","pl-PL":"Do poruszania się po kartach użyj klawiszy strzałek w górę i w dół. Naciśnij klawisz Enter lub klawisz spacji, aby wybrać karty.","pt-BR":"Use as setas para cima e para baixo para navegar pelas guias. Pressione Enter ou Espaço para selecionar as guias.","ru-RU":'Используйте стрелки вверх и вниз для навигации по вкладкам. Нажмите Enter или "Пробел", чтобы выбрать вкладку.',"sv-SE":"Använd piltangenterna upp och ner för att navigera genom flikarna. Tryck på returtangenten eller mellanslag för att välja flikar.","tr-TR":"Sekmeler arasında gezinmek için yukarı ve aşağı ok tuşlarını kullanın. Sekme seçmek için Enter veya Boşluk tuşuna basın.","zh-CN":"使用上下箭头键浏览选项卡。按 Enter 或空格键选择选项卡。","zh-TW":"使用向上和向下方向鍵以瀏覽索引標籤。按下 Enter 或空格鍵以選取索引標籤。"}},TabContainer_Object_Description:{id:"TabContainer.Object.Description",locale:{"de-DE":"Die Registerkarten-Sammelbox besteht aus folgenden Objekten: {0}.","en-US":"Tab container consists of the following objects: {0}.","es-ES":"El contenedor de pestañas contiene los siguientes objetos: {0}.","fr-FR":"Le conteneur d'onglets comprend les objets suivants : {0}.","it-IT":"Il contenitore a schede include i seguenti oggetti: {0}.","ja-JP":"タブ コンテナは以下のオブジェクトで構成されています: {0}。","ko-KR":"탭 컨테이너는 다음 개체로 구성됩니다. {0}.","nl-NL":"Tabbladcontainer bevat de volgende objecten: {0}.","pl-PL":"Kontener kart zawiera następujące obiekty: {0}.","pt-BR":"O contêiner de guias consiste nos seguintes objetos: {0}.","ru-RU":"Контейнер вкладок содержит следующие объекты: {0}.","sv-SE":"Flikbehållaren innehåller följande objekt: {0}.","tr-TR":"Sekme kapsayıcısı şu nesneleri içerir: {0}.","zh-CN":"选项卡容器由以下对象组成:{0}。","zh-TW":"索引標籤容器由下列物件組成:{0}。"}},TabContainer_Object_Untitled:{id:"TabContainer.Object.Untitled",locale:{"de-DE":"Unbenanntes Objekt","en-US":"Untitled object","es-ES":"Objeto sin título","fr-FR":"Objet sans titre","it-IT":"Oggetto senza nome","ja-JP":"無題のオブジェクト","ko-KR":"제목 없는 개체","nl-NL":"Object zonder titel","pl-PL":"Obiekt bez tytułu","pt-BR":"Objeto sem título","ru-RU":"Объект без названия","sv-SE":"Objekt utan namn","tr-TR":"Başlıksız nesne","zh-CN":"无标题对象","zh-TW":"無標題的物件"}},contextMenu_subMenuContainerOptions:{id:"contextMenu.subMenuContainerOptions",locale:{"de-DE":"Siehe Containeroptionen","en-US":"See container options","es-ES":"Ver opciones de contenedor","fr-FR":"Voir les options de conteneur","it-IT":"Vedi opzioni contenitore","ja-JP":"コンテナ オプションを表示","ko-KR":"컨테이너 옵션 보기","nl-NL":"Containeropties bekijken","pl-PL":"Zobacz opcje kontenera","pt-BR":"Ver opções do contêiner","ru-RU":"См. параметры контейнера","sv-SE":"Visa alternativ för behållare","tr-TR":"Kapsayıcı seçeneklerini görün","zh-CN":"请参阅容器选项","zh-TW":"查看容器選項"}}};function N(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function z(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch(e){}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var D=function(){if(j)return O;j=1;var e={};function t(){t.init.call(this)}return e.isObject=function(e){return"object"==typeof e&&null!==e},e.isNumber=function(e){return"number"==typeof e},e.isUndefined=function(e){return void 0===e},e.isFunction=function(e){return"function"==typeof e},O=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,i,a,s;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];for(o=(s=r.slice()).length,a=0;a<o;a++)s[a].apply(this,i)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,i,a;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(a=i;a-- >0;)if(r[a]===n||r[a].listener&&r[a].listener===n){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},O}();function B(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var F=Object.freeze({__proto__:null,default:B}),G="$$material";function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H.apply(null,arguments)}function U(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var W=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),V="-ms-",q="-moz-",Y="-webkit-",K="comm",X="rule",Z="decl",J="@keyframes",Q=Math.abs,ee=String.fromCharCode,te=Object.assign;function ne(e){return e.trim()}function re(e,t,n){return e.replace(t,n)}function oe(e,t){return e.indexOf(t)}function ie(e,t){return 0|e.charCodeAt(t)}function ae(e,t,n){return e.slice(t,n)}function se(e){return e.length}function le(e){return e.length}function ce(e,t){return t.push(e),e}var de=1,ue=1,pe=0,he=0,fe=0,me="";function be(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:de,column:ue,length:a,return:""}}function ge(e,t){return te(be("",null,null,"",null,null,0),e,{length:-e.length},t)}function ve(){return fe=he>0?ie(me,--he):0,ue--,10===fe&&(ue=1,de--),fe}function ye(){return fe=he<pe?ie(me,he++):0,ue++,10===fe&&(ue=1,de++),fe}function xe(){return ie(me,he)}function Ee(){return he}function Ce(e,t){return ae(me,e,t)}function Se(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 we(e){return de=ue=1,pe=se(me=e),he=0,[]}function Re(e){return me="",e}function _e(e){return ne(Ce(he-1,Le(91===e?e+2:40===e?e+1:e)))}function ke(e){for(;(fe=xe())&&fe<33;)ye();return Se(e)>2||Se(fe)>3?"":" "}function Ae(e,t){for(;--t&&ye()&&!(fe<48||fe>102||fe>57&&fe<65||fe>70&&fe<97););return Ce(e,Ee()+(t<6&&32==xe()&&32==ye()))}function Le(e){for(;ye();)switch(fe){case e:return he;case 34:case 39:34!==e&&39!==e&&Le(fe);break;case 40:41===e&&Le(e);break;case 92:ye()}return he}function Ie(e,t){for(;ye()&&e+fe!==57&&(e+fe!==84||47!==xe()););return"/*"+Ce(t,he-1)+"*"+ee(47===e?e:ye())}function Te(e){for(;!Se(xe());)ye();return Ce(e,he)}function Pe(e){return Re(Me("",null,null,null,[""],e=we(e),0,[0],e))}function Me(e,t,n,r,o,i,a,s,l){for(var c=0,d=0,u=a,p=0,h=0,f=0,m=1,b=1,g=1,v=0,y="",x=o,E=i,C=r,S=y;b;)switch(f=v,v=ye()){case 40:if(108!=f&&58==ie(S,u-1)){-1!=oe(S+=re(_e(v),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:S+=_e(v);break;case 9:case 10:case 13:case 32:S+=ke(f);break;case 92:S+=Ae(Ee()-1,7);continue;case 47:switch(xe()){case 42:case 47:ce(je(Ie(ye(),Ee()),t,n),l);break;default:S+="/"}break;case 123*m:s[c++]=se(S)*g;case 125*m:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+d:-1==g&&(S=re(S,/\f/g,"")),h>0&&se(S)-u&&ce(h>32?$e(S+";",r,n,u-1):$e(re(S," ","")+";",r,n,u-2),l);break;case 59:S+=";";default:if(ce(C=Oe(S,t,n,c,d,o,s,y,x=[],E=[],u),i),123===v)if(0===d)Me(S,t,C,C,x,i,u,s,E);else switch(99===p&&110===ie(S,3)?100:p){case 100:case 108:case 109:case 115:Me(e,C,C,r&&ce(Oe(e,C,C,0,0,o,s,y,o,x=[],u),E),o,E,u,s,r?x:E);break;default:Me(S,C,C,C,[""],E,0,s,E)}}c=d=h=0,m=g=1,y=S="",u=a;break;case 58:u=1+se(S),h=f;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==ve())continue;switch(S+=ee(v),v*m){case 38:g=d>0?1:(S+="\f",-1);break;case 44:s[c++]=(se(S)-1)*g,g=1;break;case 64:45===xe()&&(S+=_e(ye())),p=xe(),d=u=se(y=S+=Te(Ee())),v++;break;case 45:45===f&&2==se(S)&&(m=0)}}return i}function Oe(e,t,n,r,o,i,a,s,l,c,d){for(var u=o-1,p=0===o?i:[""],h=le(p),f=0,m=0,b=0;f<r;++f)for(var g=0,v=ae(e,u+1,u=Q(m=a[f])),y=e;g<h;++g)(y=ne(m>0?p[g]+" "+v:re(v,/&\f/g,p[g])))&&(l[b++]=y);return be(e,t,n,0===o?X:s,l,c,d)}function je(e,t,n){return be(e,t,n,K,ee(fe),ae(e,2,-2),0)}function $e(e,t,n,r){return be(e,t,n,Z,ae(e,0,r),ae(e,r+1,-1),r)}function Ne(e,t){for(var n="",r=le(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function ze(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Z:return e.return=e.return||e.value;case K:return"";case J:return e.return=e.value+"{"+Ne(e.children,r)+"}";case X:e.value=e.props.join(",")}return se(n=Ne(e.children,r))?e.return=e.value+"{"+n+"}":""}function De(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Be=function(e,t,n){for(var r=0,o=0;r=o,o=xe(),38===r&&12===o&&(t[n]=1),!Se(o);)ye();return Ce(e,he)},Fe=function(e,t){return Re(function(e,t){var n=-1,r=44;do{switch(Se(r)){case 0:38===r&&12===xe()&&(t[n]=1),e[n]+=Be(he-1,t,n);break;case 2:e[n]+=_e(r);break;case 4:if(44===r){e[++n]=58===xe()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=ee(r)}}while(r=ye());return e}(we(e),t))},Ge=new WeakMap,He=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)||Ge.get(n))&&!r){Ge.set(e,!0);for(var o=[],i=Fe(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]}}},Ue=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function We(e,t){switch(function(e,t){return 45^ie(e,0)?(((t<<2^ie(e,0))<<2^ie(e,1))<<2^ie(e,2))<<2^ie(e,3):0}(e,t)){case 5103:return Y+"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 Y+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Y+e+q+e+V+e+e;case 6828:case 4268:return Y+e+V+e+e;case 6165:return Y+e+V+"flex-"+e+e;case 5187:return Y+e+re(e,/(\w+).+(:[^]+)/,Y+"box-$1$2"+V+"flex-$1$2")+e;case 5443:return Y+e+V+"flex-item-"+re(e,/flex-|-self/,"")+e;case 4675:return Y+e+V+"flex-line-pack"+re(e,/align-content|flex-|-self/,"")+e;case 5548:return Y+e+V+re(e,"shrink","negative")+e;case 5292:return Y+e+V+re(e,"basis","preferred-size")+e;case 6060:return Y+"box-"+re(e,"-grow","")+Y+e+V+re(e,"grow","positive")+e;case 4554:return Y+re(e,/([^-])(transform)/g,"$1"+Y+"$2")+e;case 6187:return re(re(re(e,/(zoom-|grab)/,Y+"$1"),/(image-set)/,Y+"$1"),e,"")+e;case 5495:case 3959:return re(e,/(image-set\([^]*)/,Y+"$1$`$1");case 4968:return re(re(e,/(.+:)(flex-)?(.*)/,Y+"box-pack:$3"+V+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Y+e+e;case 4095:case 3583:case 4068:case 2532:return re(e,/(.+)-inline(.+)/,Y+"$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(se(e)-1-t>6)switch(ie(e,t+1)){case 109:if(45!==ie(e,t+4))break;case 102:return re(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+q+(108==ie(e,t+3)?"$3":"$2-$3"))+e;case 115:return~oe(e,"stretch")?We(re(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ie(e,t+1))break;case 6444:switch(ie(e,se(e)-3-(~oe(e,"!important")&&10))){case 107:return re(e,":",":"+Y)+e;case 101:return re(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Y+(45===ie(e,14)?"inline-":"")+"box$3$1"+Y+"$2$3$1"+V+"$2box$3")+e}break;case 5936:switch(ie(e,t+11)){case 114:return Y+e+V+re(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+V+re(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+V+re(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Y+e+V+e+e}return e}var Ve,qe,Ye,Ke,Xe=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Z:e.return=We(e.value,e.length);break;case J:return Ne([ge(e,{value:re(e.value,"@","@"+Y)})],r);case X: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 Ne([ge(e,{props:[re(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ne([ge(e,{props:[re(t,/:(plac\w+)/,":"+Y+"input-$1")]}),ge(e,{props:[re(t,/:(plac\w+)/,":-moz-$1")]}),ge(e,{props:[re(t,/:(plac\w+)/,V+"input-$1")]})],r)}return""})}}],Ze=function(e){var t=e.key;if("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||Xe,a={},s=[];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,d=[ze,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],u=function(e){var t=le(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([He,Ue].concat(i,d));o=function(e,t,n,r){l=n,function(e){Ne(Pe(e),u)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new W({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 p.sheet.hydrate(s),p},Je={exports:{}},Qe={};function et(){return qe||(qe=1,Je.exports=function(){if(Ve)return Qe;Ve=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case r:case i:case o:case u:return e;default:switch(e=e&&e.$$typeof){case s:case d:case f:case h:case a:return e;default:return p}}case n:return p}}}function x(e){return y(e)===c}return Qe.AsyncMode=l,Qe.ConcurrentMode=c,Qe.ContextConsumer=s,Qe.ContextProvider=a,Qe.Element=t,Qe.ForwardRef=d,Qe.Fragment=r,Qe.Lazy=f,Qe.Memo=h,Qe.Portal=n,Qe.Profiler=i,Qe.StrictMode=o,Qe.Suspense=u,Qe.isAsyncMode=function(e){return x(e)||y(e)===l},Qe.isConcurrentMode=x,Qe.isContextConsumer=function(e){return y(e)===s},Qe.isContextProvider=function(e){return y(e)===a},Qe.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Qe.isForwardRef=function(e){return y(e)===d},Qe.isFragment=function(e){return y(e)===r},Qe.isLazy=function(e){return y(e)===f},Qe.isMemo=function(e){return y(e)===h},Qe.isPortal=function(e){return y(e)===n},Qe.isProfiler=function(e){return y(e)===i},Qe.isStrictMode=function(e){return y(e)===o},Qe.isSuspense=function(e){return y(e)===u},Qe.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===d||e.$$typeof===b||e.$$typeof===g||e.$$typeof===v||e.$$typeof===m)},Qe.typeOf=y,Qe}()),Je.exports}!function(){if(Ke)return Ye;Ke=1;var e=et(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,u=Object.prototype;Ye=function e(t,r,o){if("string"!=typeof r){if(u){var p=d(r);p&&p!==u&&e(t,p,o)}var h=s(r);l&&(h=h.concat(l(r)));for(var f=i(t),m=i(r),b=0;b<h.length;++b){var g=h[b];if(!(n[g]||o&&o[g]||m&&m[g]||f&&f[g])){var v=c(r,g);try{a(t,g,v)}catch(e){}}}}return t}}();function tt(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var nt=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},rt=function(e,t,n){nt(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var ot={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},it=/[A-Z]|^ms/g,at=/_EMO_([^_]+?)_([^]*?)_EMO_/g,st=function(e){return 45===e.charCodeAt(1)},lt=function(e){return null!=e&&"boolean"!=typeof e},ct=De(function(e){return st(e)?e:e.replace(it,"-$&").toLowerCase()}),dt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(at,function(e,t,n){return pt={name:t,styles:n,next:pt},t})}return 1===ot[e]||st(e)||"number"!=typeof t||0===t?t:t+"px"};function ut(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return pt={name:o.name,styles:o.styles,next:pt},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)pt={name:a.name,styles:a.styles,next:pt},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ut(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":lt(s)&&(r+=ct(i)+":"+dt(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=ut(e,t,a);switch(i){case"animation":case"animationName":r+=ct(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)lt(a[c])&&(r+=ct(i)+":"+dt(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=pt,l=n(e);return pt=s,ut(e,t,l)}}var c=n;if(null==t)return c;var d=t[c];return void 0!==d?d:c}var pt,ht=/label:\s*([^\s;{]+)\s*(;|$)/g;function ft(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";pt=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=ut(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=ut(n,t,e[a]),r)o+=i[a]}ht.lastIndex=0;for(var s,l="";null!==(s=ht.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:pt}}var mt,bt,gt=!!v.useInsertionEffect&&v.useInsertionEffect,vt=gt||function(e){return e()},yt=gt||v.useLayoutEffect,xt=v.createContext("undefined"!=typeof HTMLElement?Ze({key:"css"}):null),Et=xt.Provider,Ct=function(e){return x(function(t,n){var r=E(xt);return e(t,r,n)})},St=v.createContext({}),wt={}.hasOwnProperty,Rt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",_t=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return nt(t,n,r),vt(function(){return rt(t,n,r)}),null},kt=Ct(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Rt],i=[r],a="";"string"==typeof e.className?a=tt(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=ft(i,void 0,v.useContext(St));a+=t.key+"-"+s.name;var l={};for(var c in e)wt.call(e,c)&&"css"!==c&&c!==Rt&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),v.createElement(v.Fragment,null,v.createElement(_t,{cache:t,serialized:s,isStringTag:"string"==typeof o}),v.createElement(o,l))}),At=function(e,t){var n=arguments;if(null==t||!wt.call(t,"css"))return v.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=kt,o[1]=function(e,t){var n={};for(var r in t)wt.call(t,r)&&(n[r]=t[r]);return n[Rt]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return v.createElement.apply(null,o)};mt=At||(At={}),bt||(bt=mt.JSX||(mt.JSX={}));var Lt=Ct(function(e,t){var n=ft([e.styles],void 0,v.useContext(St)),r=v.useRef();return yt(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}},[t]),yt(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&rt(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null});function It(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ft(t)}function Tt(){var e=It.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Pt=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Mt=De(function(e){return Pt.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Ot=function(e){return"theme"!==e},jt=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Mt:Ot},$t=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Nt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return nt(t,n,r),vt(function(){return rt(t,n,r)}),null},zt=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=$t(t,n,i),l=s||jt(a),c=!l("as");return function(){var d=arguments,u=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&u.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)u.push.apply(u,d);else{var p=d[0];u.push(p[0]);for(var h=d.length,f=1;f<h;f++)u.push(d[f],p[f])}var m=Ct(function(e,t,n){var r=c&&e.as||a,i="",d=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=v.useContext(St)}"string"==typeof e.className?i=tt(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var f=ft(u.concat(d),t.registered,p);i+=t.key+"-"+f.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===s?jt(r):l,b={};for(var g in e)c&&"as"===g||m(g)&&(b[g]=e[g]);return b.className=i,n&&(b.ref=n),v.createElement(v.Fragment,null,v.createElement(Nt,{cache:t,serialized:f,isStringTag:"string"==typeof r}),v.createElement(r,b))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=u,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,H({},n,r,{shouldForwardProp:$t(m,r,!0)})).apply(void 0,u)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){zt[e]=zt(e)});var Dt,Bt,Ft={exports:{}},Gt={};var Ht=(Bt||(Bt=1,Ft.exports=function(){if(Dt)return Gt;Dt=1;var e=y,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},c=null,d=null;for(s in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(d=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:d,props:l,_owner:o.current}}return Gt.Fragment=n,Gt.jsx=a,Gt.jsxs=a,Gt}()),Ft.exports);const Ut=new Map;function Wt(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return Ht.jsx(Lt,{styles:r})}
|
|
7
|
+
import{useOptions as e,useEffect as t,onTakeSnapshot as n,useKeyboard as r,useMemo as o,useState as i,useElement as a,useApp as s,useStaleLayout as l,useEmbed as c,useModel as d,useTranslator as u,useEmitter as p,useInteractionState as h,useTheme as f,usePromise as m,onContextMenu as b,useImperativeHandle as g}from"@nebula.js/stardust";import*as v from"react";import y,{forwardRef as x,useContext as E,isValidElement as C,cloneElement as S,Children as w,useState as R,useEffect as _,createContext as k,useImperativeHandle as A,useRef as L,useCallback as I,useMemo as T}from"react";import*as P from"react-dom";import M from"react-dom";var O,j,$={Container_Label_Visualizations:{id:"Container.Label.Visualizations",locale:{"de-DE":"Visualisierungen","en-US":"Visualizations","es-ES":"Visualizaciones","fr-FR":"Visualisations","it-IT":"Visualizzazioni","ja-JP":"ビジュアライゼーション","ko-KR":"시각화","nl-NL":"Visualisaties","pl-PL":"Wizualizacje","pt-BR":"Visualizações","ru-RU":"Визуализации","sv-SE":"Visualiseringar","tr-TR":"Görselleştirmeler","zh-CN":"可视化","zh-TW":"視覺化"}},LayoutContainer_EmptyList_AddContent:{id:"LayoutContainer.EmptyList.AddContent",locale:{"de-DE":"Inhalt hinzufügen","en-US":"Add content","es-ES":"Añadir contenido","fr-FR":"Ajouter un contenu","it-IT":"Aggiungi contenuto","ja-JP":"コンテンツを追加","ko-KR":"콘텐츠 추가","nl-NL":"Inhoud toevoegen","pl-PL":"Dodaj zawartość","pt-BR":"Adicionar conteúdo","ru-RU":"Добавить содержимое","sv-SE":"Lägg till innehåll","tr-TR":"İçerik ekle","zh-CN":"添加内容","zh-TW":"新增內容"}},LayoutContainer_EmptyList_EmptyHint:{id:"LayoutContainer.EmptyList.EmptyHint",locale:{"de-DE":"Leere Sammelbox","en-US":"Empty container","es-ES":"Contenedor vacío","fr-FR":"Conteneur vide","it-IT":"Contenitore vuoto","ja-JP":"コンテナが空です","ko-KR":"빈 컨테이너","nl-NL":"Lege container","pl-PL":"Pusty kontener","pt-BR":"Contêiner vazio","ru-RU":"Пустой контейнер","sv-SE":"Tom behållare","tr-TR":"Kapsayıcı boş","zh-CN":"空容器","zh-TW":"空的容器"}},LayoutContainer_Object_Charts:{id:"LayoutContainer.Object.Charts",locale:{"de-DE":"Diagramme","en-US":"Charts","es-ES":"Gráficos","fr-FR":"Graphiques","it-IT":"Grafici","ja-JP":"チャート","ko-KR":"차트","nl-NL":"Diagrammen","pl-PL":"Wykresy","pt-BR":"Gráficos","ru-RU":"Диаграммы","sv-SE":"Diagram","tr-TR":"Grafikler","zh-CN":"图表","zh-TW":"圖表"}},LayoutContainer_Object_CustomObjects:{id:"LayoutContainer.Object.CustomObjects",locale:{"de-DE":"Benutzerdefinierte Objekte","en-US":"Custom objects","es-ES":"Objetos personalizados","fr-FR":"Objets personnalisés","it-IT":"Oggetti personalizzati","ja-JP":"カスタム オブジェクト","ko-KR":"사용자 지정 개체","nl-NL":"Aangepaste objecten","pl-PL":"Obiekty niestandardowe","pt-BR":"Objetos personalizados","ru-RU":"Пользовательские объекты","sv-SE":"Anpassade objekt","tr-TR":"Özel nesneler","zh-CN":"自定义对象","zh-TW":"自訂物件"}},LayoutContainer_Object_Description:{id:"LayoutContainer.Object.Description",locale:{"de-DE":"Die Sammelbox besteht aus folgenden Objekten: {0}. Verwenden Sie zum Navigieren die Nach-links- und Nach-rechts-Pfeiltasten. Drücken Sie die Eingabetaste oder die Leertaste, um die Diagramme auszuwählen.","en-US":"Container consists of the following objects: {0}. Use left and right arrow keys to navigate through the inner charts. Press enter or space to select the charts.","es-ES":"El contenedor consta de los siguientes objetos: {0}. Utilice las teclas de flecha izquierda y derecha para navegar por los gráficos interiores. Pulse Intro o espacio para seleccionar los gráficos.","fr-FR":"Le conteneur comprend les objets suivants : {0}. Utilisez les touches de direction gauche et droite pour parcourir les graphiques internes. Appuyez sur la touche Entrée ou espace pour sélectionner les graphiques.","it-IT":"Il contenitore include i seguenti oggetti: {0}. Utilizzare i tasti freccia sinistro e destro per navigare tra i grafici interni. Per selezionare i grafici, premere Invio o Spazio.","ja-JP":"コンテナは以下のオブジェクトで構成されます: {0}。左右の矢印キーを使用して、内部のチャートをナビゲートします。Enter キーかスペース キーを押してチャートを選択します。","ko-KR":"컨테이너는 다음 개체로 구성됩니다. {0}. 왼쪽 및 오른쪽 화살표 키를 사용하여 내부 차트를 탐색하십시오. 차트를 선택하려면 Enter 키나 스페이스바를 누르십시오.","nl-NL":"Container bevat de volgende objecten: {0}. Navigeer met de pijl-links en pijl-rechts langs de binnenste diagrammen. Druk op Enter of de spatiebalk om de diagrammen te selecteren.","pl-PL":"Kontener zawiera następujące obiekty: {0}. Do nawigacji po wewnętrznych wykresach użyj lewego i prawego klawisza strzałki. Naciśnij klawisz Enter lub klawisz spacji, aby wybrać wykresy.","pt-BR":"O contêiner consiste nos seguintes objetos: {0}. Use as setas para a esquerda e para a direita para navegar pelos gráficos internos. Pressione Enter ou espaço para selecionar os gráficos.","ru-RU":"Контейнер состоит из следующих объектов: {0}. Для навигации по внутренним диаграммам используйте клавиши со стрелками влево и вправо. Нажмите клавишу Enter или пробел, чтобы выбрать диаграммы.","sv-SE":"Behållaren innehåller följande objekt: {0}. Använd vänster och höger piltangent för att navigera genom de inre diagrammen. Tryck på returtangenten eller mellanslag för att välja diagram.","tr-TR":"Kapsayıcı şu nesneleri içerir: {0}. İç grafikler arasında gezinmek için sağ ve sol ok tuşlarını kullanın. Grafik seçmek için enter veya boşluk tuşuna basın.","zh-CN":"容器由以下对象组成:{0}。使用左右箭头键浏览内部图表。按回车或空格键选择图表。","zh-TW":"容器由下列物件組成:{0}。使用向左和向右方向鍵瀏覽內部圖表。按下 Enter 或空間以選取圖表。"}},LayoutContainer_Object_MasterItems:{id:"LayoutContainer.Object.MasterItems",locale:{"de-DE":"Master-Elemente","en-US":"Master items","es-ES":"Elementos maestros","fr-FR":"Éléments principaux","it-IT":"Voci principali","ja-JP":"マスター アイテム","ko-KR":"마스터 항목","nl-NL":"Masteritems","pl-PL":"Elementy główne","pt-BR":"Itens mestre","ru-RU":"Основные элементы","sv-SE":"Originalobjekt","tr-TR":"Ana öğeler","zh-CN":"主条目","zh-TW":"主項目"}},LayoutContainer_Object_Untitled:{id:"LayoutContainer.Object.Untitled",locale:{"de-DE":"Unbenanntes Objekt","en-US":"Untitled object","es-ES":"Objeto sin título","fr-FR":"Objet sans titre","it-IT":"Oggetto senza nome","ja-JP":"無題のオブジェクト","ko-KR":"제목 없는 개체","nl-NL":"Object zonder titel","pl-PL":"Obiekt bez tytułu","pt-BR":"Objeto sem título","ru-RU":"Объект без названия","sv-SE":"Objekt utan namn","tr-TR":"Başlıksız nesne","zh-CN":"无标题对象","zh-TW":"無標題的物件"}},TabContainer_Navigation_Horizontal:{id:"TabContainer.Navigation.Horizontal",locale:{"de-DE":"Verwenden Sie die Nach-links- und Nach-rechts-Pfeiltasten, um durch die Registerkarten zu navigieren. Drücken Sie die Eingabetaste oder die Leertaste, um die Registerkarten auszuwählen.","en-US":"Use left and right arrow keys to navigate through the tabs. Press Enter or Space to select the tabs.","es-ES":"Utilice las teclas de flecha izquierda y derecha para navegar por las pestañas. Pulse Intro o Espacio para seleccionar las pestañas.","fr-FR":"Utilisez les touches des flèches gauche et droite pour naviguer à travers les onglets. Appuyez sur la touche Entrée ou Espace pour sélectionner les onglets.","it-IT":"Utilizzare i tasti freccia destra e sinistra per navigare tra le schede. Per selezionare le schede, premere Invio o Spazio.","ja-JP":"左右の矢印キーで、タブ間を移動できます。Enter キーかスペース キーを押せば、タブを選択できます。","ko-KR":"탭을 탐색하려면 왼쪽 및 오른쪽 화살표 키를 사용합니다. 탭을 선택하려면 Enter 키 또는 스페이스바를 누르십시오.","nl-NL":"Gebruik de pijl-links en pijl-rechts om te navigeren tussen de tabbladen. Druk op Enter of de spatiebalk om de tabbladen te selecteren.","pl-PL":"Do poruszania się po kartach użyj klawiszy strzałek w lewo i w prawo. Naciśnij klawisz Enter lub klawisz spacji, aby wybrać karty.","pt-BR":"Use as setas para a esquerda e para a direita para navegar pelas guias. Pressione Enter ou Espaço para selecionar as guias.","ru-RU":'Используйте стрелки влево и вправо для навигации по вкладкам. Нажмите Enter или "Пробел", чтобы выбрать вкладку.',"sv-SE":"Använd vänster och höger piltangent för att navigera mellan flikarna. Tryck på returtangenten eller mellanslag för att välja flikar.","tr-TR":"Sekmeler arasında gezinmek için sağ ve sol ok tuşlarını kullanın. Sekme seçmek için Enter veya Boşluk tuşuna basın.","zh-CN":"使用左右箭头键浏览选项卡。按 Enter 或空格键选择选项卡。","zh-TW":"使用向左和向右方向鍵瀏覽索引標籤。按下 Enter 或空格鍵以選取索引標籤。"}},TabContainer_Navigation_Vertical:{id:"TabContainer.Navigation.Vertical",locale:{"de-DE":"Verwenden Sie die Nach-unten- und Nach-oben-Pfeiltasten, um durch die Registerkarten zu navigieren. Drücken Sie die Eingabetaste oder die Leertaste, um die Registerkarten auszuwählen.","en-US":"Use up and down arrow keys to navigate through the tabs. Press Enter or Space to select the tabs.","es-ES":"Utilice las teclas de flecha arriba y abajo para navegar por las pestañas. Pulse Intro o Espacio para seleccionar las pestañas.","fr-FR":"Utilisez les touches des flèches haut et bas pour naviguer à travers les onglets. Appuyez sur la touche Entrée ou Espace pour sélectionner les onglets.","it-IT":"Per navigare tra le schede, usare i tasti freccia su e giù. Per selezionare le schede, premere Invio o Spazio.","ja-JP":"上下の矢印キーで、タブ間を移動できます。Enter キーかスペース キーを押せば、タブを選択できます。","ko-KR":"탭을 탐색하려면 위쪽 및 아래쪽 화살표 키를 사용합니다. 탭을 선택하려면 Enter 키 또는 스페이스바를 누르십시오.","nl-NL":"Gebruik de pijl-omhoog en pijl-omlaag om te navigeren tussen de tabbladen. Druk op Enter of de spatiebalk om de tabbladen te selecteren.","pl-PL":"Do poruszania się po kartach użyj klawiszy strzałek w górę i w dół. Naciśnij klawisz Enter lub klawisz spacji, aby wybrać karty.","pt-BR":"Use as setas para cima e para baixo para navegar pelas guias. Pressione Enter ou Espaço para selecionar as guias.","ru-RU":'Используйте стрелки вверх и вниз для навигации по вкладкам. Нажмите Enter или "Пробел", чтобы выбрать вкладку.',"sv-SE":"Använd piltangenterna upp och ner för att navigera genom flikarna. Tryck på returtangenten eller mellanslag för att välja flikar.","tr-TR":"Sekmeler arasında gezinmek için yukarı ve aşağı ok tuşlarını kullanın. Sekme seçmek için Enter veya Boşluk tuşuna basın.","zh-CN":"使用上下箭头键浏览选项卡。按 Enter 或空格键选择选项卡。","zh-TW":"使用向上和向下方向鍵以瀏覽索引標籤。按下 Enter 或空格鍵以選取索引標籤。"}},TabContainer_Object_Description:{id:"TabContainer.Object.Description",locale:{"de-DE":"Die Registerkarten-Sammelbox besteht aus folgenden Objekten: {0}.","en-US":"Tab container consists of the following objects: {0}.","es-ES":"El contenedor de pestañas contiene los siguientes objetos: {0}.","fr-FR":"Le conteneur d'onglets comprend les objets suivants : {0}.","it-IT":"Il contenitore a schede include i seguenti oggetti: {0}.","ja-JP":"タブ コンテナは以下のオブジェクトで構成されています: {0}。","ko-KR":"탭 컨테이너는 다음 개체로 구성됩니다. {0}.","nl-NL":"Tabbladcontainer bevat de volgende objecten: {0}.","pl-PL":"Kontener kart zawiera następujące obiekty: {0}.","pt-BR":"O contêiner de guias consiste nos seguintes objetos: {0}.","ru-RU":"Контейнер вкладок содержит следующие объекты: {0}.","sv-SE":"Flikbehållaren innehåller följande objekt: {0}.","tr-TR":"Sekme kapsayıcısı şu nesneleri içerir: {0}.","zh-CN":"选项卡容器由以下对象组成:{0}。","zh-TW":"索引標籤容器由下列物件組成:{0}。"}},TabContainer_Object_Untitled:{id:"TabContainer.Object.Untitled",locale:{"de-DE":"Unbenanntes Objekt","en-US":"Untitled object","es-ES":"Objeto sin título","fr-FR":"Objet sans titre","it-IT":"Oggetto senza nome","ja-JP":"無題のオブジェクト","ko-KR":"제목 없는 개체","nl-NL":"Object zonder titel","pl-PL":"Obiekt bez tytułu","pt-BR":"Objeto sem título","ru-RU":"Объект без названия","sv-SE":"Objekt utan namn","tr-TR":"Başlıksız nesne","zh-CN":"无标题对象","zh-TW":"無標題的物件"}},contextMenu_subMenuContainerOptions:{id:"contextMenu.subMenuContainerOptions",locale:{"de-DE":"Siehe Containeroptionen","en-US":"See container options","es-ES":"Ver opciones de contenedor","fr-FR":"Voir les options de conteneur","it-IT":"Vedi opzioni contenitore","ja-JP":"コンテナ オプションを表示","ko-KR":"컨테이너 옵션 보기","nl-NL":"Containeropties bekijken","pl-PL":"Zobacz opcje kontenera","pt-BR":"Ver opções do contêiner","ru-RU":"См. параметры контейнера","sv-SE":"Visa alternativ för behållare","tr-TR":"Kapsayıcı seçeneklerini görün","zh-CN":"请参阅容器选项","zh-TW":"查看容器選項"}}};function N(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function D(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch(e){}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var z=function(){if(j)return O;j=1;var e={};function t(){t.init.call(this)}return e.isObject=function(e){return"object"==typeof e&&null!==e},e.isNumber=function(e){return"number"==typeof e},e.isUndefined=function(e){return void 0===e},e.isFunction=function(e){return"function"==typeof e},O=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,i,a,s;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];for(o=(s=r.slice()).length,a=0;a<o;a++)s[a].apply(this,i)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,i,a;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(a=i;a-- >0;)if(r[a]===n||r[a].listener&&r[a].listener===n){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},O}();function B(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var F=Object.freeze({__proto__:null,default:B}),G="$$material";function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H.apply(null,arguments)}function U(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var W=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),V="-ms-",q="-moz-",Y="-webkit-",K="comm",X="rule",Z="decl",J="@keyframes",Q=Math.abs,ee=String.fromCharCode,te=Object.assign;function ne(e){return e.trim()}function re(e,t,n){return e.replace(t,n)}function oe(e,t){return e.indexOf(t)}function ie(e,t){return 0|e.charCodeAt(t)}function ae(e,t,n){return e.slice(t,n)}function se(e){return e.length}function le(e){return e.length}function ce(e,t){return t.push(e),e}var de=1,ue=1,pe=0,he=0,fe=0,me="";function be(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:de,column:ue,length:a,return:""}}function ge(e,t){return te(be("",null,null,"",null,null,0),e,{length:-e.length},t)}function ve(){return fe=he>0?ie(me,--he):0,ue--,10===fe&&(ue=1,de--),fe}function ye(){return fe=he<pe?ie(me,he++):0,ue++,10===fe&&(ue=1,de++),fe}function xe(){return ie(me,he)}function Ee(){return he}function Ce(e,t){return ae(me,e,t)}function Se(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 we(e){return de=ue=1,pe=se(me=e),he=0,[]}function Re(e){return me="",e}function _e(e){return ne(Ce(he-1,Le(91===e?e+2:40===e?e+1:e)))}function ke(e){for(;(fe=xe())&&fe<33;)ye();return Se(e)>2||Se(fe)>3?"":" "}function Ae(e,t){for(;--t&&ye()&&!(fe<48||fe>102||fe>57&&fe<65||fe>70&&fe<97););return Ce(e,Ee()+(t<6&&32==xe()&&32==ye()))}function Le(e){for(;ye();)switch(fe){case e:return he;case 34:case 39:34!==e&&39!==e&&Le(fe);break;case 40:41===e&&Le(e);break;case 92:ye()}return he}function Ie(e,t){for(;ye()&&e+fe!==57&&(e+fe!==84||47!==xe()););return"/*"+Ce(t,he-1)+"*"+ee(47===e?e:ye())}function Te(e){for(;!Se(xe());)ye();return Ce(e,he)}function Pe(e){return Re(Me("",null,null,null,[""],e=we(e),0,[0],e))}function Me(e,t,n,r,o,i,a,s,l){for(var c=0,d=0,u=a,p=0,h=0,f=0,m=1,b=1,g=1,v=0,y="",x=o,E=i,C=r,S=y;b;)switch(f=v,v=ye()){case 40:if(108!=f&&58==ie(S,u-1)){-1!=oe(S+=re(_e(v),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:S+=_e(v);break;case 9:case 10:case 13:case 32:S+=ke(f);break;case 92:S+=Ae(Ee()-1,7);continue;case 47:switch(xe()){case 42:case 47:ce(je(Ie(ye(),Ee()),t,n),l);break;default:S+="/"}break;case 123*m:s[c++]=se(S)*g;case 125*m:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+d:-1==g&&(S=re(S,/\f/g,"")),h>0&&se(S)-u&&ce(h>32?$e(S+";",r,n,u-1):$e(re(S," ","")+";",r,n,u-2),l);break;case 59:S+=";";default:if(ce(C=Oe(S,t,n,c,d,o,s,y,x=[],E=[],u),i),123===v)if(0===d)Me(S,t,C,C,x,i,u,s,E);else switch(99===p&&110===ie(S,3)?100:p){case 100:case 108:case 109:case 115:Me(e,C,C,r&&ce(Oe(e,C,C,0,0,o,s,y,o,x=[],u),E),o,E,u,s,r?x:E);break;default:Me(S,C,C,C,[""],E,0,s,E)}}c=d=h=0,m=g=1,y=S="",u=a;break;case 58:u=1+se(S),h=f;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==ve())continue;switch(S+=ee(v),v*m){case 38:g=d>0?1:(S+="\f",-1);break;case 44:s[c++]=(se(S)-1)*g,g=1;break;case 64:45===xe()&&(S+=_e(ye())),p=xe(),d=u=se(y=S+=Te(Ee())),v++;break;case 45:45===f&&2==se(S)&&(m=0)}}return i}function Oe(e,t,n,r,o,i,a,s,l,c,d){for(var u=o-1,p=0===o?i:[""],h=le(p),f=0,m=0,b=0;f<r;++f)for(var g=0,v=ae(e,u+1,u=Q(m=a[f])),y=e;g<h;++g)(y=ne(m>0?p[g]+" "+v:re(v,/&\f/g,p[g])))&&(l[b++]=y);return be(e,t,n,0===o?X:s,l,c,d)}function je(e,t,n){return be(e,t,n,K,ee(fe),ae(e,2,-2),0)}function $e(e,t,n,r){return be(e,t,n,Z,ae(e,0,r),ae(e,r+1,-1),r)}function Ne(e,t){for(var n="",r=le(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function De(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Z:return e.return=e.return||e.value;case K:return"";case J:return e.return=e.value+"{"+Ne(e.children,r)+"}";case X:e.value=e.props.join(",")}return se(n=Ne(e.children,r))?e.return=e.value+"{"+n+"}":""}function ze(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Be=function(e,t,n){for(var r=0,o=0;r=o,o=xe(),38===r&&12===o&&(t[n]=1),!Se(o);)ye();return Ce(e,he)},Fe=function(e,t){return Re(function(e,t){var n=-1,r=44;do{switch(Se(r)){case 0:38===r&&12===xe()&&(t[n]=1),e[n]+=Be(he-1,t,n);break;case 2:e[n]+=_e(r);break;case 4:if(44===r){e[++n]=58===xe()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=ee(r)}}while(r=ye());return e}(we(e),t))},Ge=new WeakMap,He=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)||Ge.get(n))&&!r){Ge.set(e,!0);for(var o=[],i=Fe(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]}}},Ue=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function We(e,t){switch(function(e,t){return 45^ie(e,0)?(((t<<2^ie(e,0))<<2^ie(e,1))<<2^ie(e,2))<<2^ie(e,3):0}(e,t)){case 5103:return Y+"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 Y+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Y+e+q+e+V+e+e;case 6828:case 4268:return Y+e+V+e+e;case 6165:return Y+e+V+"flex-"+e+e;case 5187:return Y+e+re(e,/(\w+).+(:[^]+)/,Y+"box-$1$2"+V+"flex-$1$2")+e;case 5443:return Y+e+V+"flex-item-"+re(e,/flex-|-self/,"")+e;case 4675:return Y+e+V+"flex-line-pack"+re(e,/align-content|flex-|-self/,"")+e;case 5548:return Y+e+V+re(e,"shrink","negative")+e;case 5292:return Y+e+V+re(e,"basis","preferred-size")+e;case 6060:return Y+"box-"+re(e,"-grow","")+Y+e+V+re(e,"grow","positive")+e;case 4554:return Y+re(e,/([^-])(transform)/g,"$1"+Y+"$2")+e;case 6187:return re(re(re(e,/(zoom-|grab)/,Y+"$1"),/(image-set)/,Y+"$1"),e,"")+e;case 5495:case 3959:return re(e,/(image-set\([^]*)/,Y+"$1$`$1");case 4968:return re(re(e,/(.+:)(flex-)?(.*)/,Y+"box-pack:$3"+V+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Y+e+e;case 4095:case 3583:case 4068:case 2532:return re(e,/(.+)-inline(.+)/,Y+"$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(se(e)-1-t>6)switch(ie(e,t+1)){case 109:if(45!==ie(e,t+4))break;case 102:return re(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+q+(108==ie(e,t+3)?"$3":"$2-$3"))+e;case 115:return~oe(e,"stretch")?We(re(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ie(e,t+1))break;case 6444:switch(ie(e,se(e)-3-(~oe(e,"!important")&&10))){case 107:return re(e,":",":"+Y)+e;case 101:return re(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Y+(45===ie(e,14)?"inline-":"")+"box$3$1"+Y+"$2$3$1"+V+"$2box$3")+e}break;case 5936:switch(ie(e,t+11)){case 114:return Y+e+V+re(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+V+re(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+V+re(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Y+e+V+e+e}return e}var Ve,qe,Ye,Ke,Xe=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Z:e.return=We(e.value,e.length);break;case J:return Ne([ge(e,{value:re(e.value,"@","@"+Y)})],r);case X: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 Ne([ge(e,{props:[re(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ne([ge(e,{props:[re(t,/:(plac\w+)/,":"+Y+"input-$1")]}),ge(e,{props:[re(t,/:(plac\w+)/,":-moz-$1")]}),ge(e,{props:[re(t,/:(plac\w+)/,V+"input-$1")]})],r)}return""})}}],Ze=function(e){var t=e.key;if("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||Xe,a={},s=[];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,d=[De,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],u=function(e){var t=le(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([He,Ue].concat(i,d));o=function(e,t,n,r){l=n,function(e){Ne(Pe(e),u)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new W({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 p.sheet.hydrate(s),p},Je={exports:{}},Qe={};function et(){return qe||(qe=1,Je.exports=function(){if(Ve)return Qe;Ve=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case r:case i:case o:case u:return e;default:switch(e=e&&e.$$typeof){case s:case d:case f:case h:case a:return e;default:return p}}case n:return p}}}function x(e){return y(e)===c}return Qe.AsyncMode=l,Qe.ConcurrentMode=c,Qe.ContextConsumer=s,Qe.ContextProvider=a,Qe.Element=t,Qe.ForwardRef=d,Qe.Fragment=r,Qe.Lazy=f,Qe.Memo=h,Qe.Portal=n,Qe.Profiler=i,Qe.StrictMode=o,Qe.Suspense=u,Qe.isAsyncMode=function(e){return x(e)||y(e)===l},Qe.isConcurrentMode=x,Qe.isContextConsumer=function(e){return y(e)===s},Qe.isContextProvider=function(e){return y(e)===a},Qe.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Qe.isForwardRef=function(e){return y(e)===d},Qe.isFragment=function(e){return y(e)===r},Qe.isLazy=function(e){return y(e)===f},Qe.isMemo=function(e){return y(e)===h},Qe.isPortal=function(e){return y(e)===n},Qe.isProfiler=function(e){return y(e)===i},Qe.isStrictMode=function(e){return y(e)===o},Qe.isSuspense=function(e){return y(e)===u},Qe.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===d||e.$$typeof===b||e.$$typeof===g||e.$$typeof===v||e.$$typeof===m)},Qe.typeOf=y,Qe}()),Je.exports}!function(){if(Ke)return Ye;Ke=1;var e=et(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,u=Object.prototype;Ye=function e(t,r,o){if("string"!=typeof r){if(u){var p=d(r);p&&p!==u&&e(t,p,o)}var h=s(r);l&&(h=h.concat(l(r)));for(var f=i(t),m=i(r),b=0;b<h.length;++b){var g=h[b];if(!(n[g]||o&&o[g]||m&&m[g]||f&&f[g])){var v=c(r,g);try{a(t,g,v)}catch(e){}}}}return t}}();function tt(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var nt=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},rt=function(e,t,n){nt(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var ot={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},it=/[A-Z]|^ms/g,at=/_EMO_([^_]+?)_([^]*?)_EMO_/g,st=function(e){return 45===e.charCodeAt(1)},lt=function(e){return null!=e&&"boolean"!=typeof e},ct=ze(function(e){return st(e)?e:e.replace(it,"-$&").toLowerCase()}),dt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(at,function(e,t,n){return pt={name:t,styles:n,next:pt},t})}return 1===ot[e]||st(e)||"number"!=typeof t||0===t?t:t+"px"};function ut(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return pt={name:o.name,styles:o.styles,next:pt},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)pt={name:a.name,styles:a.styles,next:pt},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ut(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":lt(s)&&(r+=ct(i)+":"+dt(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=ut(e,t,a);switch(i){case"animation":case"animationName":r+=ct(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)lt(a[c])&&(r+=ct(i)+":"+dt(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=pt,l=n(e);return pt=s,ut(e,t,l)}}var c=n;if(null==t)return c;var d=t[c];return void 0!==d?d:c}var pt,ht=/label:\s*([^\s;{]+)\s*(;|$)/g;function ft(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";pt=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=ut(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=ut(n,t,e[a]),r)o+=i[a]}ht.lastIndex=0;for(var s,l="";null!==(s=ht.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:pt}}var mt,bt,gt=!!v.useInsertionEffect&&v.useInsertionEffect,vt=gt||function(e){return e()},yt=gt||v.useLayoutEffect,xt=v.createContext("undefined"!=typeof HTMLElement?Ze({key:"css"}):null),Et=xt.Provider,Ct=function(e){return x(function(t,n){var r=E(xt);return e(t,r,n)})},St=v.createContext({}),wt={}.hasOwnProperty,Rt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",_t=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return nt(t,n,r),vt(function(){return rt(t,n,r)}),null},kt=Ct(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Rt],i=[r],a="";"string"==typeof e.className?a=tt(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=ft(i,void 0,v.useContext(St));a+=t.key+"-"+s.name;var l={};for(var c in e)wt.call(e,c)&&"css"!==c&&c!==Rt&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),v.createElement(v.Fragment,null,v.createElement(_t,{cache:t,serialized:s,isStringTag:"string"==typeof o}),v.createElement(o,l))}),At=function(e,t){var n=arguments;if(null==t||!wt.call(t,"css"))return v.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=kt,o[1]=function(e,t){var n={};for(var r in t)wt.call(t,r)&&(n[r]=t[r]);return n[Rt]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return v.createElement.apply(null,o)};mt=At||(At={}),bt||(bt=mt.JSX||(mt.JSX={}));var Lt=Ct(function(e,t){var n=ft([e.styles],void 0,v.useContext(St)),r=v.useRef();return yt(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}},[t]),yt(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&rt(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null});function It(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ft(t)}function Tt(){var e=It.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Pt=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Mt=ze(function(e){return Pt.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Ot=function(e){return"theme"!==e},jt=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Mt:Ot},$t=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Nt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return nt(t,n,r),vt(function(){return rt(t,n,r)}),null},Dt=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=$t(t,n,i),l=s||jt(a),c=!l("as");return function(){var d=arguments,u=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&u.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)u.push.apply(u,d);else{var p=d[0];u.push(p[0]);for(var h=d.length,f=1;f<h;f++)u.push(d[f],p[f])}var m=Ct(function(e,t,n){var r=c&&e.as||a,i="",d=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=v.useContext(St)}"string"==typeof e.className?i=tt(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var f=ft(u.concat(d),t.registered,p);i+=t.key+"-"+f.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===s?jt(r):l,b={};for(var g in e)c&&"as"===g||m(g)&&(b[g]=e[g]);return b.className=i,n&&(b.ref=n),v.createElement(v.Fragment,null,v.createElement(Nt,{cache:t,serialized:f,isStringTag:"string"==typeof r}),v.createElement(r,b))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=u,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,H({},n,r,{shouldForwardProp:$t(m,r,!0)})).apply(void 0,u)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Dt[e]=Dt(e)});var zt,Bt,Ft={exports:{}},Gt={};var Ht=(Bt||(Bt=1,Ft.exports=function(){if(zt)return Gt;zt=1;var e=y,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},c=null,d=null;for(s in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(d=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:d,props:l,_owner:o.current}}return Gt.Fragment=n,Gt.jsx=a,Gt.jsxs=a,Gt}()),Ft.exports);const Ut=new Map;function Wt(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return Ht.jsx(Lt,{styles:r})}
|
|
8
8
|
/**
|
|
9
9
|
* @mui/styled-engine v5.18.0
|
|
10
10
|
*
|
|
11
11
|
* @license MIT
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/function Vt(e,t){return zt(e,t)}const qt=[];function Yt(e){return qt[0]=e,ft(qt)}var Kt=Object.freeze({__proto__:null,GlobalStyles:Wt,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=v.useMemo(()=>{const e=`${t}-${n}`;if("object"==typeof document&&Ut.has(e))return Ut.get(e);const r=function(e,t){const n=Ze({key:"css",prepend:e});if(t){const e=n.insert;n.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return n}(t,n);return Ut.set(e,r),r},[t,n]);return t||n?Ht.jsx(Et,{value:o,children:r}):r},ThemeContext:St,css:It,default:Vt,internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},internal_serializeStyles:Yt,keyframes:Tt});function Xt(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Zt(e){if(v.isValidElement(e)||!Xt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Zt(e[n])}),t}function Jt(e,t,n={clone:!0}){const r=n.clone?H({},e):e;return Xt(e)&&Xt(t)&&Object.keys(t).forEach(o=>{v.isValidElement(t[o])?r[o]=t[o]:Xt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Xt(e[o])?r[o]=Jt(e[o],t[o],n):n.clone?r[o]=Xt(t[o])?Zt(t[o]):t[o]:r[o]=t[o]}),r}var Qt=Object.freeze({__proto__:null,default:Jt,isPlainObject:Xt});const en=["values","unit","step"];function tn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=U(e,en),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)=>H({},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 H({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)}const nn={borderRadius:4};function rn(e,t){return t?Jt(e,t,{clone:!1}):e}const on={xs:0,sm:600,md:900,lg:1200,xl:1536},an={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${on[e]}px)`};function sn(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||on).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function ln(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function cn(e){if("string"!=typeof e)throw new Error(B(7));return e.charAt(0).toUpperCase()+e.slice(1)}var dn=Object.freeze({__proto__:null,default:cn});function un(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 pn(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:un(e,n)||r,t&&(o=t(o,r,e)),o}function hn(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=un(e.theme,r)||{};return sn(e,i,e=>{let r=pn(a,o,e);return e===r&&"string"==typeof e&&(r=pn(a,o,`${t}${"default"===e?"":cn(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const fn={m:"margin",p:"padding"},mn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},bn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gn=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=fn[t],o=mn[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),vn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],yn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function xn(e,t,n,r){var o;const i=null!=(o=un(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 En(e){return xn(e,"spacing",8)}function Cn(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 Sn(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Cn(t,n),e),{})}(gn(n),r);return sn(e,e[n],o)}function wn(e,t){const n=En(e.theme);return Object.keys(e).map(r=>Sn(e,t,r,n)).reduce(rn,{})}function Rn(e){return wn(e,vn)}function _n(e){return wn(e,yn)}function kn(...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]?rn(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function An(e){return"number"!=typeof e?e:`${e}px solid`}function Ln(e,t){return hn({prop:e,themeKey:"borders",transform:t})}Rn.propTypes={},Rn.filterProps=vn,_n.propTypes={},_n.filterProps=yn;const In=Ln("border",An),Tn=Ln("borderTop",An),Pn=Ln("borderRight",An),Mn=Ln("borderBottom",An),On=Ln("borderLeft",An),jn=Ln("borderColor"),$n=Ln("borderTopColor"),Nn=Ln("borderRightColor"),zn=Ln("borderBottomColor"),Dn=Ln("borderLeftColor"),Bn=Ln("outline",An),Fn=Ln("outlineColor"),Gn=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=xn(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Cn(t,e)});return sn(e,e.borderRadius,n)}return null};Gn.propTypes={},Gn.filterProps=["borderRadius"],kn(In,Tn,Pn,Mn,On,jn,$n,Nn,zn,Dn,Gn,Bn,Fn);const Hn=e=>{if(void 0!==e.gap&&null!==e.gap){const t=xn(e.theme,"spacing",8),n=e=>({gap:Cn(t,e)});return sn(e,e.gap,n)}return null};Hn.propTypes={},Hn.filterProps=["gap"];const Un=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=xn(e.theme,"spacing",8),n=e=>({columnGap:Cn(t,e)});return sn(e,e.columnGap,n)}return null};Un.propTypes={},Un.filterProps=["columnGap"];const Wn=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=xn(e.theme,"spacing",8),n=e=>({rowGap:Cn(t,e)});return sn(e,e.rowGap,n)}return null};Wn.propTypes={},Wn.filterProps=["rowGap"];function Vn(e,t){return"grey"===t?t:e}kn(Hn,Un,Wn,hn({prop:"gridColumn"}),hn({prop:"gridRow"}),hn({prop:"gridAutoFlow"}),hn({prop:"gridAutoColumns"}),hn({prop:"gridAutoRows"}),hn({prop:"gridTemplateColumns"}),hn({prop:"gridTemplateRows"}),hn({prop:"gridTemplateAreas"}),hn({prop:"gridArea"}));function qn(e){return e<=1&&0!==e?100*e+"%":e}kn(hn({prop:"color",themeKey:"palette",transform:Vn}),hn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vn}),hn({prop:"backgroundColor",themeKey:"palette",transform:Vn}));const Yn=hn({prop:"width",transform:qn}),Kn=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||on[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:qn(t)}};return sn(e,e.maxWidth,t)}return null};Kn.filterProps=["maxWidth"];const Xn=hn({prop:"minWidth",transform:qn}),Zn=hn({prop:"height",transform:qn}),Jn=hn({prop:"maxHeight",transform:qn}),Qn=hn({prop:"minHeight",transform:qn});hn({prop:"size",cssProperty:"width",transform:qn}),hn({prop:"size",cssProperty:"height",transform:qn});kn(Yn,Kn,Xn,Zn,Jn,Qn,hn({prop:"boxSizing"}));const er={border:{themeKey:"borders",transform:An},borderTop:{themeKey:"borders",transform:An},borderRight:{themeKey:"borders",transform:An},borderBottom:{themeKey:"borders",transform:An},borderLeft:{themeKey:"borders",transform:An},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:An},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gn},color:{themeKey:"palette",transform:Vn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vn},backgroundColor:{themeKey:"palette",transform:Vn},p:{style:_n},pt:{style:_n},pr:{style:_n},pb:{style:_n},pl:{style:_n},px:{style:_n},py:{style:_n},padding:{style:_n},paddingTop:{style:_n},paddingRight:{style:_n},paddingBottom:{style:_n},paddingLeft:{style:_n},paddingX:{style:_n},paddingY:{style:_n},paddingInline:{style:_n},paddingInlineStart:{style:_n},paddingInlineEnd:{style:_n},paddingBlock:{style:_n},paddingBlockStart:{style:_n},paddingBlockEnd:{style:_n},m:{style:Rn},mt:{style:Rn},mr:{style:Rn},mb:{style:Rn},ml:{style:Rn},mx:{style:Rn},my:{style:Rn},margin:{style:Rn},marginTop:{style:Rn},marginRight:{style:Rn},marginBottom:{style:Rn},marginLeft:{style:Rn},marginX:{style:Rn},marginY:{style:Rn},marginInline:{style:Rn},marginInlineStart:{style:Rn},marginInlineEnd:{style:Rn},marginBlock:{style:Rn},marginBlockStart:{style:Rn},marginBlockEnd:{style:Rn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Hn},rowGap:{style:Wn},columnGap:{style:Un},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:qn},maxWidth:{style:Kn},minWidth:{transform:qn},height:{transform:qn},maxHeight:{transform:qn},minHeight:{transform:qn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function tr(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const d=un(n,s)||{};if(c)return c(o);return sn(o,t,t=>{let n=pn(d,l,t);return t===n&&"string"==typeof t&&(n=pn(d,l,`${e}${"default"===t?"":cn(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=null!=(r=i.unstable_sxConfig)?r:er;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}(i.breakpoints),l=Object.keys(o);let c=o;return Object.keys(r).forEach(n=>{const o=(a=r[n],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[n])c=rn(c,e(n,o,i,s));else{const e=sn({theme:i},o,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,o)?c=rn(c,e):c[n]=t({sx:o,theme:i,nested:!0})}else c=rn(c,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":ln(l,c)}:ln(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const nr=tr();function rr(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}nr.filterProps=["sx"];const or=["breakpoints","palette","spacing","shape"];function ir(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=U(e,or),s=tn(n),l=function(e=8){if(e.mui)return e;const t=En({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}(o);let c=Jt({breakpoints:s,direction:"ltr",components:{},palette:H({mode:"light"},r),spacing:l,shape:H({},nn,i)},a);return c.applyStyles=rr,c=t.reduce((e,t)=>Jt(e,t),c),c.unstable_sxConfig=H({},er,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return nr({sx:e,theme:this})},c}var ar=Object.freeze({__proto__:null,default:ir,private_createBreakpoints:tn,unstable_applyStyles:rr});function sr(e=null){const t=v.useContext(St);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const lr=ir();function cr(e=lr){return sr(e)}function dr(e){const t=Yt(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function ur({styles:e,themeId:t,defaultTheme:n={}}){const r=cr(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>dr("function"==typeof e?e(o):e)):dr(i)),Ht.jsx(Wt,{styles:i})}const pr=["sx"];function hr(e){const{sx:t}=e,n=U(e,pr),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:er;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Xt(n)?H({},r,n):r}:H({},r,t),H({},o,{sx:i})}var fr=Object.freeze({__proto__:null,default:nr,extendSxProp:hr,unstable_createStyleFunctionSx:tr,unstable_defaultSxConfig:er});const mr=e=>e,br=(()=>{let e=mr;return{configure(t){e=t},generate:t=>e(t),reset(){e=mr}}})();function gr(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=gr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function vr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=gr(e))&&(r&&(r+=" "),r+=t);return r}const yr=["className","component"];const xr={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Er(e,t,n="Mui"){const r=xr[t];return r?`${n}-${r}`:`${br.generate(e)}-${t}`}function Cr(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Er(e,t,n)}),r}var Sr,wr,Rr={exports:{}},_r={};function kr(){if(Sr)return _r;Sr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function f(h){if("object"==typeof h&&null!==h){var f=h.$$typeof;switch(f){case e:switch(h=h.type){case n:case o:case r:case l:case c:case p:return h;default:switch(h=h&&h.$$typeof){case a:case s:case u:case d:case i:return h;default:return f}}case t:return f}}}return _r.ContextConsumer=i,_r.ContextProvider=a,_r.Element=e,_r.ForwardRef=s,_r.Fragment=n,_r.Lazy=u,_r.Memo=d,_r.Portal=t,_r.Profiler=o,_r.StrictMode=r,_r.Suspense=l,_r.SuspenseList=c,_r.isContextConsumer=function(e){return f(e)===i},_r.isContextProvider=function(e){return f(e)===a},_r.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},_r.isForwardRef=function(e){return f(e)===s},_r.isFragment=function(e){return f(e)===n},_r.isLazy=function(e){return f(e)===u},_r.isMemo=function(e){return f(e)===d},_r.isPortal=function(e){return f(e)===t},_r.isProfiler=function(e){return f(e)===o},_r.isStrictMode=function(e){return f(e)===r},_r.isSuspense=function(e){return f(e)===l},_r.isSuspenseList=function(e){return f(e)===c},_r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===c||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===u||e.$$typeof===d||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===h||void 0!==e.getModuleId)},_r.typeOf=f,_r}function Ar(){return wr||(wr=1,Rr.exports=kr()),Rr.exports}var Lr=Ar();const Ir=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Tr(e){const t=`${e}`.match(Ir);return t&&t[1]||""}function Pr(e,t=""){return e.displayName||e.name||Tr(e)||t}function Mr(e,t,n){const r=Pr(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Or=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Pr(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Lr.ForwardRef:return Mr(e,e.render,"ForwardRef");case Lr.Memo:return Mr(e,e.type,"memo");default:return}}},getFunctionName:Tr});function jr(e,t){const n=H({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=H({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=H({},i),Object.keys(o).forEach(e=>{n[r][e]=jr(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}const $r="undefined"!=typeof window?v.useLayoutEffect:v.useEffect;function Nr(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var zr=Object.freeze({__proto__:null,default:Nr});function Dr(e){if(e.type)return e;if("#"===e.charAt(0))return Dr(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(B(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(B(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}function Br(e,t){return e=Dr(e),t=function(e,t=0,n=1){return Nr(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(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})`}(e)}function Fr(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Gr(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function Hr(e){return e&&e.ownerDocument||document}function Ur(e){return Hr(e).defaultView||window}function Wr(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Vr=0;const qr=v["useId".toString()];function Yr(e){if(void 0!==qr){return qr()}return function(e){const[t,n]=v.useState(e),r=e||t;return v.useEffect(()=>{null==t&&(Vr+=1,n(`mui-${Vr}`))},[t]),r}(e)}function Kr(e){const t=v.useRef(e);return $r(()=>{t.current=e}),v.useRef((...e)=>(0,t.current)(...e)).current}function Xr(...e){return v.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{Wr(e,t)})},e)}const Zr={};const Jr=[];class Qr{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Qr}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function eo(){const e=function(e,t){const n=v.useRef(Zr);return n.current===Zr&&(n.current=e(t)),n}(Qr.create).current;return function(e){v.useEffect(e,Jr)}(e.disposeEffect),e}let to=!0,no=!1;const ro=new Qr,oo={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function io(e){e.metaKey||e.altKey||e.ctrlKey||(to=!0)}function ao(){to=!1}function so(){"hidden"===this.visibilityState&&no&&(to=!0)}function lo(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return to||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!oo[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function co(){const e=v.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",io,!0),t.addEventListener("mousedown",ao,!0),t.addEventListener("pointerdown",ao,!0),t.addEventListener("touchstart",ao,!0),t.addEventListener("visibilitychange",so,!0))},[]),t=v.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!lo(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(no=!0,ro.start(100,()=>{no=!1}),t.current=!1,!0)},ref:e}}function uo(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let po;function ho(){if(po)return po;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),po="reverse",e.scrollLeft>0?po="default":(e.scrollLeft=1,0===e.scrollLeft&&(po="negative")),document.body.removeChild(e),po}function fo(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(ho()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function mo(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}function bo(e){return"string"==typeof e}function go(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function vo(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}const yo=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function xo(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=U(e,yo),s=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=vr(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=H({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=H({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=go(H({},o,r)),s=vo(r),l=vo(o),c=t(a),d=vr(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),u=H({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=H({},c,n,l,s);return d.length>0&&(p.className=d),Object.keys(u).length>0&&(p.style=u),{props:p,internalRef:c.ref}}(H({},a,{externalSlotProps:s})),d=function(e,t,n){return void 0===e||bo(e)?t:H({},t,{ownerState:H({},t.ownerState,n)})}(n,H({},l,{ref:Xr(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return d}function Eo(e){var t;return parseInt(v.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Co=v.createContext(null);function So(){return v.useContext(Co)}var wo="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Ro(e){const{children:t,theme:n}=e,r=So(),o=v.useMemo(()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return H({},e,t)}(r,n);return null!=e&&(e[wo]=null!==r),e},[n,r]);return Ht.jsx(Co.Provider,{value:o,children:t})}const _o=["value"],ko=v.createContext();function Ao(e){let{value:t}=e,n=U(e,_o);return Ht.jsx(ko.Provider,H({value:null==t||t},n))}const Lo=()=>{const e=v.useContext(ko);return null!=e&&e},Io=v.createContext(void 0);function To({value:e,children:t}){return Ht.jsx(Io.Provider,{value:e,children:t})}function Po({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?jr(o.defaultProps,r):o.styleOverrides||o.variants?r:jr(o,r)}({props:e,name:t,theme:{components:v.useContext(Io)}})}const Mo={};function Oo(e,t,n,r=!1){return v.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?H({},t,{[e]:i}):i;return r?()=>a:a}return H({},t,e?{[e]:n}:n)},[e,t,n,r])}function jo(e){const{children:t,theme:n,themeId:r}=e,o=sr(Mo),i=So()||Mo,a=Oo(r,o,n),s=Oo(r,i,n,!0),l="rtl"===a.direction,c=function(e){const t=sr(),n=Yr()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",$r(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",n),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${n}"]`))||i.remove()}},[o,n]),o?Ht.jsx(ur,{styles:o}):null}(a);return Ht.jsx(Ro,{theme:s,children:Ht.jsx(St.Provider,{value:a,children:Ht.jsx(Ao,{value:l,children:Ht.jsxs(To,{value:null==a?void 0:a.components,children:[c,t]})})})})}var $o,No={},zo={exports:{}};function Do(){return $o||($o=1,(e=zo).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),zo.exports;var e}var Bo,Fo=z(F),Go=z(zr);function Ho(){if(Bo)return No;Bo=1;var e=Do();Object.defineProperty(No,"__esModule",{value:!0}),No.alpha=d,No.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(e),l=i(t),c=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return s({type:"rgb",values:c})},No.colorChannel=void 0,No.darken=u,No.decomposeColor=i,No.emphasize=h,No.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},No.getLuminance=c,No.hexToRgb=o,No.hslToRgb=l,No.lighten=p,No.private_safeAlpha=function(e,t,n){try{return d(e,t)}catch(t){return e}},No.private_safeColorChannel=void 0,No.private_safeDarken=function(e,t,n){try{return u(e,t)}catch(t){return e}},No.private_safeEmphasize=function(e,t,n){try{return h(e,t)}catch(t){return e}},No.private_safeLighten=function(e,t,n){try{return p(e,t)}catch(t){return e}},No.recomposeColor=s,No.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var t=e(Fo),n=e(Go);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,s=e.substring(n+1,e.length-1);if("color"===r){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map(e=>parseFloat(e)),{type:r,values:s,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};No.colorChannel=a;function s(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 l(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const d=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",d.push(t[3])),s({type:c,values:d})}function c(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(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 d(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function u(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function p(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function h(e,t=.15){return c(e)>.5?u(e,t):p(e,t)}return No.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},No}var Uo=Ho();const Wo={black:"#000",white:"#fff"},Vo={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"},qo="#f3e5f5",Yo="#ce93d8",Ko="#ba68c8",Xo="#ab47bc",Zo="#9c27b0",Jo="#7b1fa2",Qo="#e57373",ei="#ef5350",ti="#f44336",ni="#d32f2f",ri="#c62828",oi="#ffb74d",ii="#ffa726",ai="#ff9800",si="#f57c00",li="#e65100",ci="#e3f2fd",di="#90caf9",ui="#42a5f5",pi="#1976d2",hi="#1565c0",fi="#4fc3f7",mi="#29b6f6",bi="#03a9f4",gi="#0288d1",vi="#01579b",yi="#81c784",xi="#66bb6a",Ei="#4caf50",Ci="#388e3c",Si="#2e7d32",wi="#1b5e20",Ri=["mode","contrastThreshold","tonalOffset"],_i={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:Wo.white,default:Wo.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}},ki={text:{primary:Wo.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:Wo.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 Ai(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=Uo.lighten(e.main,o):"dark"===t&&(e.dark=Uo.darken(e.main,i)))}function Li(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=U(e,Ri),i=e.primary||function(e="light"){return"dark"===e?{main:di,light:ci,dark:ui}:{main:pi,light:ui,dark:hi}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Yo,light:qo,dark:Xo}:{main:Zo,light:Ko,dark:Jo}}(t),s=e.error||function(e="light"){return"dark"===e?{main:ti,light:Qo,dark:ni}:{main:ni,light:ei,dark:ri}}(t),l=e.info||function(e="light"){return"dark"===e?{main:mi,light:fi,dark:gi}:{main:gi,light:bi,dark:vi}}(t),c=e.success||function(e="light"){return"dark"===e?{main:xi,light:yi,dark:Ci}:{main:Si,light:Ei,dark:wi}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:ii,light:oi,dark:si}:{main:"#ed6c02",light:ai,dark:li}}(t);function u(e){return Uo.getContrastRatio(e,ki.text.primary)>=n?ki.text.primary:_i.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=H({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(B(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(B(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ai(e,"light",o,r),Ai(e,"dark",i,r),e.contrastText||(e.contrastText=u(e.main)),e},h={dark:ki,light:_i};return Jt(H({common:H({},Wo),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Vo,contrastThreshold:n,getContrastText:u,augmentColor:p,tonalOffset:r},h[t]),o)}const Ii=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ti={textTransform:"uppercase"},Pi='"Roboto", "Helvetica", "Arial", sans-serif';function Mi(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Pi,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=n,p=U(n,Ii),h=o/14,f=u||(e=>e/c*h+"rem"),m=(e,t,n,o,i)=>{return H({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===Pi?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,d);var a},b={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,Ti),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Ti),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Jt(H({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},b),p,{clone:!1})}function Oi(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const ji=["none",Oi(0,2,1,-1,0,1,1,0,0,1,3,0),Oi(0,3,1,-2,0,2,2,0,0,1,5,0),Oi(0,3,3,-2,0,3,4,0,0,1,8,0),Oi(0,2,4,-1,0,4,5,0,0,1,10,0),Oi(0,3,5,-1,0,5,8,0,0,1,14,0),Oi(0,3,5,-1,0,6,10,0,0,1,18,0),Oi(0,4,5,-2,0,7,10,1,0,2,16,1),Oi(0,5,5,-3,0,8,10,1,0,3,14,2),Oi(0,5,6,-3,0,9,12,1,0,3,16,2),Oi(0,6,6,-3,0,10,14,1,0,4,18,3),Oi(0,6,7,-4,0,11,15,1,0,4,20,3),Oi(0,7,8,-4,0,12,17,2,0,5,22,4),Oi(0,7,8,-4,0,13,19,2,0,5,24,4),Oi(0,7,9,-4,0,14,21,2,0,5,26,4),Oi(0,8,9,-5,0,15,22,2,0,6,28,5),Oi(0,8,10,-5,0,16,24,2,0,6,30,5),Oi(0,8,11,-5,0,17,26,2,0,6,32,5),Oi(0,9,11,-5,0,18,28,2,0,7,34,6),Oi(0,9,12,-6,0,19,29,2,0,7,36,6),Oi(0,10,13,-6,0,20,31,3,0,8,38,7),Oi(0,10,13,-6,0,21,33,3,0,8,40,7),Oi(0,10,14,-6,0,22,35,3,0,8,42,7),Oi(0,11,14,-7,0,23,36,3,0,9,44,8),Oi(0,11,15,-7,0,24,38,3,0,9,46,8)],$i=["duration","easing","delay"],Ni={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)"},zi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Di(e){return`${Math.round(e)}ms`}function Bi(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Fi(e){const t=H({},Ni,e.easing),n=H({},zi,e.duration);return H({getAutoHeightDuration:Bi,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return U(r,$i),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:Di(o)} ${i} ${"string"==typeof a?a:Di(a)}`).join(",")}},e,{easing:t,duration:n})}const Gi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Hi=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ui(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=U(e,Hi);if(e.vars&&void 0===e.generateCssVars)throw new Error(B(18));const s=Li(r),l=ir(e);let c=Jt(l,{mixins:(d=l.breakpoints,u=n,H({toolbar:{minHeight:56,[d.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[d.up("sm")]:{minHeight:64}}},u)),palette:s,shadows:ji.slice(),typography:Mi(s,i),transitions:Fi(o),zIndex:H({},Gi)});var d,u;return c=Jt(c,a),c=t.reduce((e,t)=>Jt(e,t),c),c.unstable_sxConfig=H({},er,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return nr({sx:e,theme:this})},c}const Wi=Ui();function Vi(){const e=cr(Wi);return e[G]||e}var qi,Yi={},Ki={exports:{}};var Xi,Zi={exports:{}};var Ji,Qi=z(Kt),ea=z(Qt),ta=z(dn),na=z(Or),ra=z(ar),oa=z(fr);function ia(){if(Ji)return Yi;Ji=1;var e=Do();Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=function(e={}){const{themeId:t,defaultTheme:a=f,rootShouldForwardProp:l=p,slotShouldForwardProp:c=p}=e,u=e=>(0,s.default)((0,n.default)({},e,{theme:b((0,n.default)({},e,{defaultTheme:a,themeId:t}))}));return u.__mui_systemSx=!0,(e,s={})=>{(0,o.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:h,slot:f,skipVariantsResolver:y,skipSx:x,overridesResolver:E=g(m(f))}=s,C=(0,r.default)(s,d),S=h&&h.startsWith("Mui")||f?"components":"custom",w=void 0!==y?y:f&&"Root"!==f&&"root"!==f||!1,R=x||!1;let _=p;"Root"===f||"root"===f?_=l:f?_=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(_=void 0);const k=(0,o.default)(e,(0,n.default)({shouldForwardProp:_,label:void 0},C)),A=e=>"function"==typeof e&&e.__emotion_real!==e||(0,i.isPlainObject)(e)?r=>{const o=b({theme:r.theme,defaultTheme:a,themeId:t});return v(e,(0,n.default)({},r,{theme:o}),o.modularCssLayers?S:void 0)}:e,L=(r,...o)=>{let i=A(r);const s=o?o.map(A):[];h&&E&&s.push(e=>{const r=b((0,n.default)({},e,{defaultTheme:a,themeId:t}));if(!r.components||!r.components[h]||!r.components[h].styleOverrides)return null;const o=r.components[h].styleOverrides,i={};return Object.entries(o).forEach(([t,o])=>{i[t]=v(o,(0,n.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),E(e,i)}),h&&!w&&s.push(e=>{var r;const o=b((0,n.default)({},e,{defaultTheme:a,themeId:t}));return v({variants:null==o||null==(r=o.components)||null==(r=r[h])?void 0:r.variants},(0,n.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),R||s.push(u);const l=s.length-o.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const c=k(i,...s);return e.muiName&&(c.muiName=e.muiName),c};return k.withConfig&&(L.withConfig=k.withConfig),L}},Yi.shouldForwardProp=p,Yi.systemDefaultTheme=void 0;var t,n=e((qi||(qi=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ki)),Ki.exports)),r=e((Xi||(Xi=1,(t=Zi).exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},t.exports.__esModule=!0,t.exports.default=t.exports),Zi.exports)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Qi),i=ea;e(ta),e(na);var a=e(ra),s=e(oa);const l=["ownerState"],c=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function h(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const f=Yi.systemDefaultTheme=(0,a.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function b({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function v(e,t,i){let{ownerState:a}=t,s=(0,r.default)(t,l);const d="function"==typeof e?e((0,n.default)({ownerState:a},s)):e;if(Array.isArray(d))return d.flatMap(e=>v(e,(0,n.default)({ownerState:a},s),i));if(d&&"object"==typeof d&&Array.isArray(d.variants)){const{variants:e=[]}=d;let t=(0,r.default)(d,c);return e.forEach(e=>{let r=!0;if("function"==typeof e.props?r=e.props((0,n.default)({ownerState:a},s,a)):Object.keys(e.props).forEach(t=>{(null==a?void 0:a[t])!==e.props[t]&&s[t]!==e.props[t]&&(r=!1)}),r){Array.isArray(t)||(t=[t]);const r="function"==typeof e.style?e.style((0,n.default)({ownerState:a},s,a)):e.style;t.push(i?h((0,o.internal_serializeStyles)(r),i):r)}}),t}return i?h((0,o.internal_serializeStyles)(d),i):d}return Yi}const aa=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,sa=N(ia())({themeId:G,defaultTheme:Wi,rootShouldForwardProp:aa}),la=["theme"];function ca(e){let{theme:t}=e,n=U(e,la);const r=t[G];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=H({},r,{vars:null}):t&&!t.vars&&(o=H({},t,{vars:null}))),Ht.jsx(jo,H({},n,{themeId:r?G:void 0,theme:o}))}const da=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},ua={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},pa=12,ha=14,fa=16,ma=24,ba=3,ga=300,va=400,ya=600,xa=700,Ea={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Ca(e){return Po(e)}function Sa(e){return Er("MuiSvgIcon",e)}Cr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const wa=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Ra=sa("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${cn(n.color)}`],t[`fontSize${cn(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,d,u,p,h,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(d=c.pxToRem)?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(u=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?u:{action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}}),_a=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:d,viewBox:u="0 0 24 24"}=n,p=U(n,wa),h=v.isValidElement(r)&&"svg"===r.type,f=H({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:u,hasSvgAsChild:h}),m={};c||(m.viewBox=u);const b=(e=>{const{color:t,fontSize:n,classes:r}=e;return mo({root:["root","inherit"!==t&&`color${cn(t)}`,`fontSize${cn(n)}`]},Sa,r)})(f);return Ht.jsxs(Ra,H({as:a,className:vr(b.root,o),focusable:"false",color:l,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},m,p,h&&r.props,{ownerState:f,children:[h?r.props.children:r,d?Ht.jsx("title",{children:d}):null]}))});function ka(e,t){function n(n,r){return Ht.jsx(_a,H({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=_a.muiName,v.memo(v.forwardRef(n))}function Aa(e,t){return Aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Aa(e,t)}function La(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Aa(e,t)}_a.muiName="SvgIcon";var Ia=!1,Ta=y.createContext(null),Pa="unmounted",Ma="exited",Oa="entering",ja="entered",$a="exiting",Na=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Ma,r.appearStatus=Oa):o=ja:o=t.unmountOnExit||t.mountOnEnter?Pa:Ma,r.state={status:o},r.nextCallback=null,r}La(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Pa?{status:Ma}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Oa&&n!==ja&&(t=Oa):n!==Oa&&n!==ja||(t=$a)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Oa){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:M.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ma&&this.setState({status:Pa})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[M.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Ia?this.safeSetState({status:ja},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:Oa},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:ja},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:M.findDOMNode(this);t&&!Ia?(this.props.onExit(r),this.safeSetState({status:$a},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Ma},function(){e.props.onExited(r)})})})):this.safeSetState({status:Ma},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:M.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Pa)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=U(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y.createElement(Ta.Provider,{value:null},"function"==typeof n?n(e,r):y.cloneElement(y.Children.only(n),r))},t}(y.Component);function za(){}function Da(e,t){var n=Object.create(null);return e&&w.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&C(e)?t(e):e}(e)}),n}function Ba(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Fa(e,t,n){var r=Da(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(C(a)){var s=i in t,l=i in r,c=t[i],d=C(c)&&!c.props.in;!l||s&&!d?l||!s||d?l&&s&&C(c)&&(o[i]=S(a,{onExited:n.bind(null,a),in:c.props.in,exit:Ba(a,"exit",e),enter:Ba(a,"enter",e)})):o[i]=S(a,{in:!1}):o[i]=S(a,{onExited:n.bind(null,a),in:!0,exit:Ba(a,"exit",e),enter:Ba(a,"enter",e)})}}),o}Na.contextType=Ta,Na.propTypes={},Na.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:za,onEntering:za,onEntered:za,onExit:za,onExiting:za,onExited:za},Na.UNMOUNTED=Pa,Na.EXITED=Ma,Na.ENTERING=Oa,Na.ENTERED=ja,Na.EXITING=$a;var Ga=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ha=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}La(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,Da(n.children,function(e){return S(e,{onExited:r.bind(null,e),in:!0,appear:Ba(e,"appear",n),enter:Ba(e,"enter",n),exit:Ba(e,"exit",n)})})):Fa(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Da(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=H({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=U(e,["component","childFactory"]),o=this.state.contextValue,i=Ga(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?y.createElement(Ta.Provider,{value:o},i):y.createElement(Ta.Provider,{value:o},y.createElement(t,r,i))},t}(y.Component);Ha.propTypes={},Ha.defaultProps={component:"div",childFactory:function(e){return e}};const Ua=e=>e.scrollTop;function Wa(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Va(e){return Er("MuiPaper",e)}Cr("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const qa=["className","component","elevation","square","variant"],Ya=sa("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return H({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&H({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Uo.alpha("#fff",da(t.elevation))}, ${Uo.alpha("#fff",da(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),Ka=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=U(n,qa),c=H({},n,{component:o,elevation:i,square:a,variant:s}),d=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return mo({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Va,o)})(c);return Ht.jsx(Ya,H({as:o,ownerState:c,className:vr(d.root,r),ref:t},l))});const Xa=Cr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Za=["center","classes","className"];let Ja,Qa,es,ts,ns=e=>e;const rs=Tt(Ja||(Ja=ns`
|
|
14
|
+
*/function Vt(e,t){return Dt(e,t)}const qt=[];function Yt(e){return qt[0]=e,ft(qt)}var Kt=Object.freeze({__proto__:null,GlobalStyles:Wt,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=v.useMemo(()=>{const e=`${t}-${n}`;if("object"==typeof document&&Ut.has(e))return Ut.get(e);const r=function(e,t){const n=Ze({key:"css",prepend:e});if(t){const e=n.insert;n.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return n}(t,n);return Ut.set(e,r),r},[t,n]);return t||n?Ht.jsx(Et,{value:o,children:r}):r},ThemeContext:St,css:It,default:Vt,internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},internal_serializeStyles:Yt,keyframes:Tt});function Xt(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Zt(e){if(v.isValidElement(e)||!Xt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Zt(e[n])}),t}function Jt(e,t,n={clone:!0}){const r=n.clone?H({},e):e;return Xt(e)&&Xt(t)&&Object.keys(t).forEach(o=>{v.isValidElement(t[o])?r[o]=t[o]:Xt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Xt(e[o])?r[o]=Jt(e[o],t[o],n):n.clone?r[o]=Xt(t[o])?Zt(t[o]):t[o]:r[o]=t[o]}),r}var Qt=Object.freeze({__proto__:null,default:Jt,isPlainObject:Xt});const en=["values","unit","step"];function tn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=U(e,en),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)=>H({},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 H({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)}const nn={borderRadius:4};function rn(e,t){return t?Jt(e,t,{clone:!1}):e}const on={xs:0,sm:600,md:900,lg:1200,xl:1536},an={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${on[e]}px)`};function sn(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||on).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function ln(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function cn(e){if("string"!=typeof e)throw new Error(B(7));return e.charAt(0).toUpperCase()+e.slice(1)}var dn=Object.freeze({__proto__:null,default:cn});function un(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 pn(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:un(e,n)||r,t&&(o=t(o,r,e)),o}function hn(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=un(e.theme,r)||{};return sn(e,i,e=>{let r=pn(a,o,e);return e===r&&"string"==typeof e&&(r=pn(a,o,`${t}${"default"===e?"":cn(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const fn={m:"margin",p:"padding"},mn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},bn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gn=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=fn[t],o=mn[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),vn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],yn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function xn(e,t,n,r){var o;const i=null!=(o=un(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 En(e){return xn(e,"spacing",8)}function Cn(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 Sn(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Cn(t,n),e),{})}(gn(n),r);return sn(e,e[n],o)}function wn(e,t){const n=En(e.theme);return Object.keys(e).map(r=>Sn(e,t,r,n)).reduce(rn,{})}function Rn(e){return wn(e,vn)}function _n(e){return wn(e,yn)}function kn(...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]?rn(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function An(e){return"number"!=typeof e?e:`${e}px solid`}function Ln(e,t){return hn({prop:e,themeKey:"borders",transform:t})}Rn.propTypes={},Rn.filterProps=vn,_n.propTypes={},_n.filterProps=yn;const In=Ln("border",An),Tn=Ln("borderTop",An),Pn=Ln("borderRight",An),Mn=Ln("borderBottom",An),On=Ln("borderLeft",An),jn=Ln("borderColor"),$n=Ln("borderTopColor"),Nn=Ln("borderRightColor"),Dn=Ln("borderBottomColor"),zn=Ln("borderLeftColor"),Bn=Ln("outline",An),Fn=Ln("outlineColor"),Gn=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=xn(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Cn(t,e)});return sn(e,e.borderRadius,n)}return null};Gn.propTypes={},Gn.filterProps=["borderRadius"],kn(In,Tn,Pn,Mn,On,jn,$n,Nn,Dn,zn,Gn,Bn,Fn);const Hn=e=>{if(void 0!==e.gap&&null!==e.gap){const t=xn(e.theme,"spacing",8),n=e=>({gap:Cn(t,e)});return sn(e,e.gap,n)}return null};Hn.propTypes={},Hn.filterProps=["gap"];const Un=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=xn(e.theme,"spacing",8),n=e=>({columnGap:Cn(t,e)});return sn(e,e.columnGap,n)}return null};Un.propTypes={},Un.filterProps=["columnGap"];const Wn=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=xn(e.theme,"spacing",8),n=e=>({rowGap:Cn(t,e)});return sn(e,e.rowGap,n)}return null};Wn.propTypes={},Wn.filterProps=["rowGap"];function Vn(e,t){return"grey"===t?t:e}kn(Hn,Un,Wn,hn({prop:"gridColumn"}),hn({prop:"gridRow"}),hn({prop:"gridAutoFlow"}),hn({prop:"gridAutoColumns"}),hn({prop:"gridAutoRows"}),hn({prop:"gridTemplateColumns"}),hn({prop:"gridTemplateRows"}),hn({prop:"gridTemplateAreas"}),hn({prop:"gridArea"}));function qn(e){return e<=1&&0!==e?100*e+"%":e}kn(hn({prop:"color",themeKey:"palette",transform:Vn}),hn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vn}),hn({prop:"backgroundColor",themeKey:"palette",transform:Vn}));const Yn=hn({prop:"width",transform:qn}),Kn=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||on[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:qn(t)}};return sn(e,e.maxWidth,t)}return null};Kn.filterProps=["maxWidth"];const Xn=hn({prop:"minWidth",transform:qn}),Zn=hn({prop:"height",transform:qn}),Jn=hn({prop:"maxHeight",transform:qn}),Qn=hn({prop:"minHeight",transform:qn});hn({prop:"size",cssProperty:"width",transform:qn}),hn({prop:"size",cssProperty:"height",transform:qn});kn(Yn,Kn,Xn,Zn,Jn,Qn,hn({prop:"boxSizing"}));const er={border:{themeKey:"borders",transform:An},borderTop:{themeKey:"borders",transform:An},borderRight:{themeKey:"borders",transform:An},borderBottom:{themeKey:"borders",transform:An},borderLeft:{themeKey:"borders",transform:An},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:An},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gn},color:{themeKey:"palette",transform:Vn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vn},backgroundColor:{themeKey:"palette",transform:Vn},p:{style:_n},pt:{style:_n},pr:{style:_n},pb:{style:_n},pl:{style:_n},px:{style:_n},py:{style:_n},padding:{style:_n},paddingTop:{style:_n},paddingRight:{style:_n},paddingBottom:{style:_n},paddingLeft:{style:_n},paddingX:{style:_n},paddingY:{style:_n},paddingInline:{style:_n},paddingInlineStart:{style:_n},paddingInlineEnd:{style:_n},paddingBlock:{style:_n},paddingBlockStart:{style:_n},paddingBlockEnd:{style:_n},m:{style:Rn},mt:{style:Rn},mr:{style:Rn},mb:{style:Rn},ml:{style:Rn},mx:{style:Rn},my:{style:Rn},margin:{style:Rn},marginTop:{style:Rn},marginRight:{style:Rn},marginBottom:{style:Rn},marginLeft:{style:Rn},marginX:{style:Rn},marginY:{style:Rn},marginInline:{style:Rn},marginInlineStart:{style:Rn},marginInlineEnd:{style:Rn},marginBlock:{style:Rn},marginBlockStart:{style:Rn},marginBlockEnd:{style:Rn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Hn},rowGap:{style:Wn},columnGap:{style:Un},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:qn},maxWidth:{style:Kn},minWidth:{transform:qn},height:{transform:qn},maxHeight:{transform:qn},minHeight:{transform:qn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function tr(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const d=un(n,s)||{};if(c)return c(o);return sn(o,t,t=>{let n=pn(d,l,t);return t===n&&"string"==typeof t&&(n=pn(d,l,`${e}${"default"===t?"":cn(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=null!=(r=i.unstable_sxConfig)?r:er;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}(i.breakpoints),l=Object.keys(o);let c=o;return Object.keys(r).forEach(n=>{const o=(a=r[n],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[n])c=rn(c,e(n,o,i,s));else{const e=sn({theme:i},o,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,o)?c=rn(c,e):c[n]=t({sx:o,theme:i,nested:!0})}else c=rn(c,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":ln(l,c)}:ln(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const nr=tr();function rr(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}nr.filterProps=["sx"];const or=["breakpoints","palette","spacing","shape"];function ir(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=U(e,or),s=tn(n),l=function(e=8){if(e.mui)return e;const t=En({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}(o);let c=Jt({breakpoints:s,direction:"ltr",components:{},palette:H({mode:"light"},r),spacing:l,shape:H({},nn,i)},a);return c.applyStyles=rr,c=t.reduce((e,t)=>Jt(e,t),c),c.unstable_sxConfig=H({},er,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return nr({sx:e,theme:this})},c}var ar=Object.freeze({__proto__:null,default:ir,private_createBreakpoints:tn,unstable_applyStyles:rr});function sr(e=null){const t=v.useContext(St);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const lr=ir();function cr(e=lr){return sr(e)}function dr(e){const t=Yt(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function ur({styles:e,themeId:t,defaultTheme:n={}}){const r=cr(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>dr("function"==typeof e?e(o):e)):dr(i)),Ht.jsx(Wt,{styles:i})}const pr=["sx"];function hr(e){const{sx:t}=e,n=U(e,pr),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:er;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Xt(n)?H({},r,n):r}:H({},r,t),H({},o,{sx:i})}var fr=Object.freeze({__proto__:null,default:nr,extendSxProp:hr,unstable_createStyleFunctionSx:tr,unstable_defaultSxConfig:er});const mr=e=>e,br=(()=>{let e=mr;return{configure(t){e=t},generate:t=>e(t),reset(){e=mr}}})();function gr(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=gr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function vr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=gr(e))&&(r&&(r+=" "),r+=t);return r}const yr=["className","component"];const xr={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Er(e,t,n="Mui"){const r=xr[t];return r?`${n}-${r}`:`${br.generate(e)}-${t}`}function Cr(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Er(e,t,n)}),r}var Sr,wr,Rr={exports:{}},_r={};function kr(){if(Sr)return _r;Sr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function f(h){if("object"==typeof h&&null!==h){var f=h.$$typeof;switch(f){case e:switch(h=h.type){case n:case o:case r:case l:case c:case p:return h;default:switch(h=h&&h.$$typeof){case a:case s:case u:case d:case i:return h;default:return f}}case t:return f}}}return _r.ContextConsumer=i,_r.ContextProvider=a,_r.Element=e,_r.ForwardRef=s,_r.Fragment=n,_r.Lazy=u,_r.Memo=d,_r.Portal=t,_r.Profiler=o,_r.StrictMode=r,_r.Suspense=l,_r.SuspenseList=c,_r.isContextConsumer=function(e){return f(e)===i},_r.isContextProvider=function(e){return f(e)===a},_r.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},_r.isForwardRef=function(e){return f(e)===s},_r.isFragment=function(e){return f(e)===n},_r.isLazy=function(e){return f(e)===u},_r.isMemo=function(e){return f(e)===d},_r.isPortal=function(e){return f(e)===t},_r.isProfiler=function(e){return f(e)===o},_r.isStrictMode=function(e){return f(e)===r},_r.isSuspense=function(e){return f(e)===l},_r.isSuspenseList=function(e){return f(e)===c},_r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===c||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===u||e.$$typeof===d||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===h||void 0!==e.getModuleId)},_r.typeOf=f,_r}function Ar(){return wr||(wr=1,Rr.exports=kr()),Rr.exports}var Lr=Ar();const Ir=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Tr(e){const t=`${e}`.match(Ir);return t&&t[1]||""}function Pr(e,t=""){return e.displayName||e.name||Tr(e)||t}function Mr(e,t,n){const r=Pr(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Or=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Pr(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Lr.ForwardRef:return Mr(e,e.render,"ForwardRef");case Lr.Memo:return Mr(e,e.type,"memo");default:return}}},getFunctionName:Tr});function jr(e,t){const n=H({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=H({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=H({},i),Object.keys(o).forEach(e=>{n[r][e]=jr(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}const $r="undefined"!=typeof window?v.useLayoutEffect:v.useEffect;function Nr(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var Dr=Object.freeze({__proto__:null,default:Nr});function zr(e){if(e.type)return e;if("#"===e.charAt(0))return zr(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(B(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(B(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}function Br(e,t){return e=zr(e),t=function(e,t=0,n=1){return Nr(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(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})`}(e)}function Fr(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Gr(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function Hr(e){return e&&e.ownerDocument||document}function Ur(e){return Hr(e).defaultView||window}function Wr(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Vr=0;const qr=v["useId".toString()];function Yr(e){if(void 0!==qr){return qr()}return function(e){const[t,n]=v.useState(e),r=e||t;return v.useEffect(()=>{null==t&&(Vr+=1,n(`mui-${Vr}`))},[t]),r}(e)}function Kr(e){const t=v.useRef(e);return $r(()=>{t.current=e}),v.useRef((...e)=>(0,t.current)(...e)).current}function Xr(...e){return v.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{Wr(e,t)})},e)}const Zr={};const Jr=[];class Qr{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Qr}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function eo(){const e=function(e,t){const n=v.useRef(Zr);return n.current===Zr&&(n.current=e(t)),n}(Qr.create).current;return function(e){v.useEffect(e,Jr)}(e.disposeEffect),e}let to=!0,no=!1;const ro=new Qr,oo={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function io(e){e.metaKey||e.altKey||e.ctrlKey||(to=!0)}function ao(){to=!1}function so(){"hidden"===this.visibilityState&&no&&(to=!0)}function lo(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return to||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!oo[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function co(){const e=v.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",io,!0),t.addEventListener("mousedown",ao,!0),t.addEventListener("pointerdown",ao,!0),t.addEventListener("touchstart",ao,!0),t.addEventListener("visibilitychange",so,!0))},[]),t=v.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!lo(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(no=!0,ro.start(100,()=>{no=!1}),t.current=!1,!0)},ref:e}}function uo(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let po;function ho(){if(po)return po;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),po="reverse",e.scrollLeft>0?po="default":(e.scrollLeft=1,0===e.scrollLeft&&(po="negative")),document.body.removeChild(e),po}function fo(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(ho()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function mo(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}function bo(e){return"string"==typeof e}function go(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function vo(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}const yo=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function xo(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=U(e,yo),s=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=vr(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=H({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=H({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=go(H({},o,r)),s=vo(r),l=vo(o),c=t(a),d=vr(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),u=H({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=H({},c,n,l,s);return d.length>0&&(p.className=d),Object.keys(u).length>0&&(p.style=u),{props:p,internalRef:c.ref}}(H({},a,{externalSlotProps:s})),d=function(e,t,n){return void 0===e||bo(e)?t:H({},t,{ownerState:H({},t.ownerState,n)})}(n,H({},l,{ref:Xr(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return d}function Eo(e){var t;return parseInt(v.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Co=v.createContext(null);function So(){return v.useContext(Co)}var wo="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Ro(e){const{children:t,theme:n}=e,r=So(),o=v.useMemo(()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return H({},e,t)}(r,n);return null!=e&&(e[wo]=null!==r),e},[n,r]);return Ht.jsx(Co.Provider,{value:o,children:t})}const _o=["value"],ko=v.createContext();function Ao(e){let{value:t}=e,n=U(e,_o);return Ht.jsx(ko.Provider,H({value:null==t||t},n))}const Lo=()=>{const e=v.useContext(ko);return null!=e&&e},Io=v.createContext(void 0);function To({value:e,children:t}){return Ht.jsx(Io.Provider,{value:e,children:t})}function Po({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?jr(o.defaultProps,r):o.styleOverrides||o.variants?r:jr(o,r)}({props:e,name:t,theme:{components:v.useContext(Io)}})}const Mo={};function Oo(e,t,n,r=!1){return v.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?H({},t,{[e]:i}):i;return r?()=>a:a}return H({},t,e?{[e]:n}:n)},[e,t,n,r])}function jo(e){const{children:t,theme:n,themeId:r}=e,o=sr(Mo),i=So()||Mo,a=Oo(r,o,n),s=Oo(r,i,n,!0),l="rtl"===a.direction,c=function(e){const t=sr(),n=Yr()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",$r(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",n),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${n}"]`))||i.remove()}},[o,n]),o?Ht.jsx(ur,{styles:o}):null}(a);return Ht.jsx(Ro,{theme:s,children:Ht.jsx(St.Provider,{value:a,children:Ht.jsx(Ao,{value:l,children:Ht.jsxs(To,{value:null==a?void 0:a.components,children:[c,t]})})})})}var $o,No={},Do={exports:{}};function zo(){return $o||($o=1,(e=Do).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),Do.exports;var e}var Bo,Fo=D(F),Go=D(Dr);function Ho(){if(Bo)return No;Bo=1;var e=zo();Object.defineProperty(No,"__esModule",{value:!0}),No.alpha=d,No.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(e),l=i(t),c=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return s({type:"rgb",values:c})},No.colorChannel=void 0,No.darken=u,No.decomposeColor=i,No.emphasize=h,No.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},No.getLuminance=c,No.hexToRgb=o,No.hslToRgb=l,No.lighten=p,No.private_safeAlpha=function(e,t,n){try{return d(e,t)}catch(t){return e}},No.private_safeColorChannel=void 0,No.private_safeDarken=function(e,t,n){try{return u(e,t)}catch(t){return e}},No.private_safeEmphasize=function(e,t,n){try{return h(e,t)}catch(t){return e}},No.private_safeLighten=function(e,t,n){try{return p(e,t)}catch(t){return e}},No.recomposeColor=s,No.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var t=e(Fo),n=e(Go);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,s=e.substring(n+1,e.length-1);if("color"===r){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map(e=>parseFloat(e)),{type:r,values:s,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};No.colorChannel=a;function s(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 l(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const d=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",d.push(t[3])),s({type:c,values:d})}function c(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(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 d(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function u(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function p(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function h(e,t=.15){return c(e)>.5?u(e,t):p(e,t)}return No.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},No}var Uo=Ho();const Wo={black:"#000",white:"#fff"},Vo={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"},qo="#f3e5f5",Yo="#ce93d8",Ko="#ba68c8",Xo="#ab47bc",Zo="#9c27b0",Jo="#7b1fa2",Qo="#e57373",ei="#ef5350",ti="#f44336",ni="#d32f2f",ri="#c62828",oi="#ffb74d",ii="#ffa726",ai="#ff9800",si="#f57c00",li="#e65100",ci="#e3f2fd",di="#90caf9",ui="#42a5f5",pi="#1976d2",hi="#1565c0",fi="#4fc3f7",mi="#29b6f6",bi="#03a9f4",gi="#0288d1",vi="#01579b",yi="#81c784",xi="#66bb6a",Ei="#4caf50",Ci="#388e3c",Si="#2e7d32",wi="#1b5e20",Ri=["mode","contrastThreshold","tonalOffset"],_i={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:Wo.white,default:Wo.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}},ki={text:{primary:Wo.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:Wo.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 Ai(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=Uo.lighten(e.main,o):"dark"===t&&(e.dark=Uo.darken(e.main,i)))}function Li(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=U(e,Ri),i=e.primary||function(e="light"){return"dark"===e?{main:di,light:ci,dark:ui}:{main:pi,light:ui,dark:hi}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Yo,light:qo,dark:Xo}:{main:Zo,light:Ko,dark:Jo}}(t),s=e.error||function(e="light"){return"dark"===e?{main:ti,light:Qo,dark:ni}:{main:ni,light:ei,dark:ri}}(t),l=e.info||function(e="light"){return"dark"===e?{main:mi,light:fi,dark:gi}:{main:gi,light:bi,dark:vi}}(t),c=e.success||function(e="light"){return"dark"===e?{main:xi,light:yi,dark:Ci}:{main:Si,light:Ei,dark:wi}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:ii,light:oi,dark:si}:{main:"#ed6c02",light:ai,dark:li}}(t);function u(e){return Uo.getContrastRatio(e,ki.text.primary)>=n?ki.text.primary:_i.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=H({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(B(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(B(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ai(e,"light",o,r),Ai(e,"dark",i,r),e.contrastText||(e.contrastText=u(e.main)),e},h={dark:ki,light:_i};return Jt(H({common:H({},Wo),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Vo,contrastThreshold:n,getContrastText:u,augmentColor:p,tonalOffset:r},h[t]),o)}const Ii=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ti={textTransform:"uppercase"},Pi='"Roboto", "Helvetica", "Arial", sans-serif';function Mi(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Pi,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=n,p=U(n,Ii),h=o/14,f=u||(e=>e/c*h+"rem"),m=(e,t,n,o,i)=>{return H({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===Pi?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,d);var a},b={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,Ti),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Ti),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Jt(H({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},b),p,{clone:!1})}function Oi(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const ji=["none",Oi(0,2,1,-1,0,1,1,0,0,1,3,0),Oi(0,3,1,-2,0,2,2,0,0,1,5,0),Oi(0,3,3,-2,0,3,4,0,0,1,8,0),Oi(0,2,4,-1,0,4,5,0,0,1,10,0),Oi(0,3,5,-1,0,5,8,0,0,1,14,0),Oi(0,3,5,-1,0,6,10,0,0,1,18,0),Oi(0,4,5,-2,0,7,10,1,0,2,16,1),Oi(0,5,5,-3,0,8,10,1,0,3,14,2),Oi(0,5,6,-3,0,9,12,1,0,3,16,2),Oi(0,6,6,-3,0,10,14,1,0,4,18,3),Oi(0,6,7,-4,0,11,15,1,0,4,20,3),Oi(0,7,8,-4,0,12,17,2,0,5,22,4),Oi(0,7,8,-4,0,13,19,2,0,5,24,4),Oi(0,7,9,-4,0,14,21,2,0,5,26,4),Oi(0,8,9,-5,0,15,22,2,0,6,28,5),Oi(0,8,10,-5,0,16,24,2,0,6,30,5),Oi(0,8,11,-5,0,17,26,2,0,6,32,5),Oi(0,9,11,-5,0,18,28,2,0,7,34,6),Oi(0,9,12,-6,0,19,29,2,0,7,36,6),Oi(0,10,13,-6,0,20,31,3,0,8,38,7),Oi(0,10,13,-6,0,21,33,3,0,8,40,7),Oi(0,10,14,-6,0,22,35,3,0,8,42,7),Oi(0,11,14,-7,0,23,36,3,0,9,44,8),Oi(0,11,15,-7,0,24,38,3,0,9,46,8)],$i=["duration","easing","delay"],Ni={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)"},Di={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zi(e){return`${Math.round(e)}ms`}function Bi(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Fi(e){const t=H({},Ni,e.easing),n=H({},Di,e.duration);return H({getAutoHeightDuration:Bi,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return U(r,$i),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:zi(o)} ${i} ${"string"==typeof a?a:zi(a)}`).join(",")}},e,{easing:t,duration:n})}const Gi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Hi=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ui(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=U(e,Hi);if(e.vars&&void 0===e.generateCssVars)throw new Error(B(18));const s=Li(r),l=ir(e);let c=Jt(l,{mixins:(d=l.breakpoints,u=n,H({toolbar:{minHeight:56,[d.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[d.up("sm")]:{minHeight:64}}},u)),palette:s,shadows:ji.slice(),typography:Mi(s,i),transitions:Fi(o),zIndex:H({},Gi)});var d,u;return c=Jt(c,a),c=t.reduce((e,t)=>Jt(e,t),c),c.unstable_sxConfig=H({},er,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return nr({sx:e,theme:this})},c}const Wi=Ui();function Vi(){const e=cr(Wi);return e[G]||e}var qi,Yi={},Ki={exports:{}};var Xi,Zi={exports:{}};var Ji,Qi=D(Kt),ea=D(Qt),ta=D(dn),na=D(Or),ra=D(ar),oa=D(fr);function ia(){if(Ji)return Yi;Ji=1;var e=zo();Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=function(e={}){const{themeId:t,defaultTheme:a=f,rootShouldForwardProp:l=p,slotShouldForwardProp:c=p}=e,u=e=>(0,s.default)((0,n.default)({},e,{theme:b((0,n.default)({},e,{defaultTheme:a,themeId:t}))}));return u.__mui_systemSx=!0,(e,s={})=>{(0,o.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:h,slot:f,skipVariantsResolver:y,skipSx:x,overridesResolver:E=g(m(f))}=s,C=(0,r.default)(s,d),S=h&&h.startsWith("Mui")||f?"components":"custom",w=void 0!==y?y:f&&"Root"!==f&&"root"!==f||!1,R=x||!1;let _=p;"Root"===f||"root"===f?_=l:f?_=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(_=void 0);const k=(0,o.default)(e,(0,n.default)({shouldForwardProp:_,label:void 0},C)),A=e=>"function"==typeof e&&e.__emotion_real!==e||(0,i.isPlainObject)(e)?r=>{const o=b({theme:r.theme,defaultTheme:a,themeId:t});return v(e,(0,n.default)({},r,{theme:o}),o.modularCssLayers?S:void 0)}:e,L=(r,...o)=>{let i=A(r);const s=o?o.map(A):[];h&&E&&s.push(e=>{const r=b((0,n.default)({},e,{defaultTheme:a,themeId:t}));if(!r.components||!r.components[h]||!r.components[h].styleOverrides)return null;const o=r.components[h].styleOverrides,i={};return Object.entries(o).forEach(([t,o])=>{i[t]=v(o,(0,n.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),E(e,i)}),h&&!w&&s.push(e=>{var r;const o=b((0,n.default)({},e,{defaultTheme:a,themeId:t}));return v({variants:null==o||null==(r=o.components)||null==(r=r[h])?void 0:r.variants},(0,n.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),R||s.push(u);const l=s.length-o.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const c=k(i,...s);return e.muiName&&(c.muiName=e.muiName),c};return k.withConfig&&(L.withConfig=k.withConfig),L}},Yi.shouldForwardProp=p,Yi.systemDefaultTheme=void 0;var t,n=e((qi||(qi=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ki)),Ki.exports)),r=e((Xi||(Xi=1,(t=Zi).exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},t.exports.__esModule=!0,t.exports.default=t.exports),Zi.exports)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Qi),i=ea;e(ta),e(na);var a=e(ra),s=e(oa);const l=["ownerState"],c=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function h(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const f=Yi.systemDefaultTheme=(0,a.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function b({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function v(e,t,i){let{ownerState:a}=t,s=(0,r.default)(t,l);const d="function"==typeof e?e((0,n.default)({ownerState:a},s)):e;if(Array.isArray(d))return d.flatMap(e=>v(e,(0,n.default)({ownerState:a},s),i));if(d&&"object"==typeof d&&Array.isArray(d.variants)){const{variants:e=[]}=d;let t=(0,r.default)(d,c);return e.forEach(e=>{let r=!0;if("function"==typeof e.props?r=e.props((0,n.default)({ownerState:a},s,a)):Object.keys(e.props).forEach(t=>{(null==a?void 0:a[t])!==e.props[t]&&s[t]!==e.props[t]&&(r=!1)}),r){Array.isArray(t)||(t=[t]);const r="function"==typeof e.style?e.style((0,n.default)({ownerState:a},s,a)):e.style;t.push(i?h((0,o.internal_serializeStyles)(r),i):r)}}),t}return i?h((0,o.internal_serializeStyles)(d),i):d}return Yi}const aa=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,sa=N(ia())({themeId:G,defaultTheme:Wi,rootShouldForwardProp:aa}),la=["theme"];function ca(e){let{theme:t}=e,n=U(e,la);const r=t[G];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=H({},r,{vars:null}):t&&!t.vars&&(o=H({},t,{vars:null}))),Ht.jsx(jo,H({},n,{themeId:r?G:void 0,theme:o}))}const da=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},ua={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},pa=12,ha=14,fa=16,ma=24,ba=3,ga=300,va=400,ya=600,xa=700,Ea={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Ca(e){return Po(e)}function Sa(e){return Er("MuiSvgIcon",e)}Cr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const wa=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Ra=sa("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${cn(n.color)}`],t[`fontSize${cn(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,d,u,p,h,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(d=c.pxToRem)?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(u=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?u:{action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}}),_a=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:d,viewBox:u="0 0 24 24"}=n,p=U(n,wa),h=v.isValidElement(r)&&"svg"===r.type,f=H({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:u,hasSvgAsChild:h}),m={};c||(m.viewBox=u);const b=(e=>{const{color:t,fontSize:n,classes:r}=e;return mo({root:["root","inherit"!==t&&`color${cn(t)}`,`fontSize${cn(n)}`]},Sa,r)})(f);return Ht.jsxs(Ra,H({as:a,className:vr(b.root,o),focusable:"false",color:l,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},m,p,h&&r.props,{ownerState:f,children:[h?r.props.children:r,d?Ht.jsx("title",{children:d}):null]}))});function ka(e,t){function n(n,r){return Ht.jsx(_a,H({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=_a.muiName,v.memo(v.forwardRef(n))}function Aa(e,t){return Aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Aa(e,t)}function La(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Aa(e,t)}_a.muiName="SvgIcon";var Ia=!1,Ta=y.createContext(null),Pa="unmounted",Ma="exited",Oa="entering",ja="entered",$a="exiting",Na=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Ma,r.appearStatus=Oa):o=ja:o=t.unmountOnExit||t.mountOnEnter?Pa:Ma,r.state={status:o},r.nextCallback=null,r}La(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Pa?{status:Ma}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Oa&&n!==ja&&(t=Oa):n!==Oa&&n!==ja||(t=$a)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Oa){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:M.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ma&&this.setState({status:Pa})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[M.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Ia?this.safeSetState({status:ja},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:Oa},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:ja},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:M.findDOMNode(this);t&&!Ia?(this.props.onExit(r),this.safeSetState({status:$a},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Ma},function(){e.props.onExited(r)})})})):this.safeSetState({status:Ma},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:M.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Pa)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=U(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y.createElement(Ta.Provider,{value:null},"function"==typeof n?n(e,r):y.cloneElement(y.Children.only(n),r))},t}(y.Component);function Da(){}function za(e,t){var n=Object.create(null);return e&&w.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&C(e)?t(e):e}(e)}),n}function Ba(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Fa(e,t,n){var r=za(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(C(a)){var s=i in t,l=i in r,c=t[i],d=C(c)&&!c.props.in;!l||s&&!d?l||!s||d?l&&s&&C(c)&&(o[i]=S(a,{onExited:n.bind(null,a),in:c.props.in,exit:Ba(a,"exit",e),enter:Ba(a,"enter",e)})):o[i]=S(a,{in:!1}):o[i]=S(a,{onExited:n.bind(null,a),in:!0,exit:Ba(a,"exit",e),enter:Ba(a,"enter",e)})}}),o}Na.contextType=Ta,Na.propTypes={},Na.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Da,onEntering:Da,onEntered:Da,onExit:Da,onExiting:Da,onExited:Da},Na.UNMOUNTED=Pa,Na.EXITED=Ma,Na.ENTERING=Oa,Na.ENTERED=ja,Na.EXITING=$a;var Ga=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ha=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}La(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,za(n.children,function(e){return S(e,{onExited:r.bind(null,e),in:!0,appear:Ba(e,"appear",n),enter:Ba(e,"enter",n),exit:Ba(e,"exit",n)})})):Fa(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=za(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=H({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=U(e,["component","childFactory"]),o=this.state.contextValue,i=Ga(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?y.createElement(Ta.Provider,{value:o},i):y.createElement(Ta.Provider,{value:o},y.createElement(t,r,i))},t}(y.Component);Ha.propTypes={},Ha.defaultProps={component:"div",childFactory:function(e){return e}};const Ua=e=>e.scrollTop;function Wa(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Va(e){return Er("MuiPaper",e)}Cr("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const qa=["className","component","elevation","square","variant"],Ya=sa("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return H({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&H({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Uo.alpha("#fff",da(t.elevation))}, ${Uo.alpha("#fff",da(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),Ka=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=U(n,qa),c=H({},n,{component:o,elevation:i,square:a,variant:s}),d=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return mo({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Va,o)})(c);return Ht.jsx(Ya,H({as:o,ownerState:c,className:vr(d.root,r),ref:t},l))});const Xa=Cr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Za=["center","classes","className"];let Ja,Qa,es,ts,ns=e=>e;const rs=Tt(Ja||(Ja=ns`
|
|
15
15
|
0% {
|
|
16
16
|
transform: scale(0);
|
|
17
17
|
opacity: 0.1;
|
|
@@ -84,6 +84,6 @@ import{useOptions as e,useEffect as t,onTakeSnapshot as n,useKeyboard as r,useMe
|
|
|
84
84
|
animation-iteration-count: infinite;
|
|
85
85
|
animation-delay: 200ms;
|
|
86
86
|
}
|
|
87
|
-
`),Xa.rippleVisible,rs,550,({theme:e})=>e.transitions.easing.easeInOut,Xa.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Xa.child,Xa.childLeaving,os,550,({theme:e})=>e.transitions.easing.easeInOut,Xa.childPulsate,is,({theme:e})=>e.transitions.easing.easeInOut),ls=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=U(n,Za),[s,l]=v.useState([]),c=v.useRef(0),d=v.useRef(null);v.useEffect(()=>{d.current&&(d.current(),d.current=null)},[s]);const u=v.useRef(!1),p=eo(),h=v.useRef(null),f=v.useRef(null),m=v.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l(e=>[...e,Ht.jsx(ss,{classes:{ripple:vr(o.ripple,Xa.ripple),rippleVisible:vr(o.rippleVisible,Xa.rippleVisible),ripplePulsate:vr(o.ripplePulsate,Xa.ripplePulsate),child:vr(o.child,Xa.child),childLeaving:vr(o.childLeaving,Xa.childLeaving),childPulsate:vr(o.childPulsate,Xa.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)]),c.current+=1,d.current=a},[o]),b=v.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&u.current)return void(u.current=!1);"touchstart"===(null==e?void 0:e.type)&&(u.current=!0);const s=a?null:f.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,d,b;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),d=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),d=Math.round(n-l.top)}if(i)b=Math.sqrt((2*l.width**2+l.height**2)/3),b%2==0&&(b+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-d),d)+2;b=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:o,rippleX:c,rippleY:d,rippleSize:b,cb:n})},p.start(80,()=>{h.current&&(h.current(),h.current=null)})):m({pulsate:o,rippleX:c,rippleY:d,rippleSize:b,cb:n})},[r,m,p]),g=v.useCallback(()=>{b({},{pulsate:!0})},[b]),y=v.useCallback((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void p.start(0,()=>{y(e,t)});h.current=null,l(e=>e.length>0?e.slice(1):e),d.current=t},[p]);return v.useImperativeHandle(t,()=>({pulsate:g,start:b,stop:y}),[g,b,y]),Ht.jsx(as,H({className:vr(Xa.root,o.root,i),ref:f},a,{children:Ht.jsx(Ha,{component:null,exit:!0,children:s})}))});function cs(e){return Er("MuiButtonBase",e)}const ds=Cr("MuiButtonBase",["root","disabled","focusVisible"]),us=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],ps=sa("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ds.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),hs=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:u=!1,LinkComponent:p="a",onBlur:h,onClick:f,onContextMenu:m,onDragLeave:b,onFocus:g,onFocusVisible:y,onKeyDown:x,onKeyUp:E,onMouseDown:C,onMouseLeave:S,onMouseUp:w,onTouchEnd:R,onTouchMove:_,onTouchStart:k,tabIndex:A=0,TouchRippleProps:L,touchRippleRef:I,type:T}=n,P=U(n,us),M=v.useRef(null),O=v.useRef(null),j=Xr(O,I),{isFocusVisibleRef:$,onFocus:N,onBlur:z,ref:D}=co(),[B,F]=v.useState(!1);l&&B&&F(!1),v.useImperativeHandle(r,()=>({focusVisible:()=>{F(!0),M.current.focus()}}),[]);const[G,W]=v.useState(!1);v.useEffect(()=>{W(!0)},[]);const V=G&&!c&&!l;function q(e,t,n=d){return Kr(r=>{t&&t(r);return!n&&O.current&&O.current[e](r),!0})}v.useEffect(()=>{B&&u&&!c&&G&&O.current.pulsate()},[c,u,B,G]);const Y=q("start",C),K=q("stop",m),X=q("stop",b),Z=q("stop",w),J=q("stop",e=>{B&&e.preventDefault(),S&&S(e)}),Q=q("start",k),ee=q("stop",R),te=q("stop",_),ne=q("stop",e=>{z(e),!1===$.current&&F(!1),h&&h(e)},!1),re=Kr(e=>{M.current||(M.current=e.currentTarget),N(e),!0===$.current&&(F(!0),y&&y(e)),g&&g(e)}),oe=()=>{const e=M.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ie=v.useRef(!1),ae=Kr(e=>{u&&!ie.current&&B&&O.current&&" "===e.key&&(ie.current=!0,O.current.stop(e,()=>{O.current.start(e)})),e.target===e.currentTarget&&oe()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&oe()&&"Enter"===e.key&&!l&&(e.preventDefault(),f&&f(e))}),se=Kr(e=>{u&&" "===e.key&&O.current&&B&&!e.defaultPrevented&&(ie.current=!1,O.current.stop(e,()=>{O.current.pulsate(e)})),E&&E(e),f&&e.target===e.currentTarget&&oe()&&" "===e.key&&!e.defaultPrevented&&f(e)});let le=s;"button"===le&&(P.href||P.to)&&(le=p);const ce={};"button"===le?(ce.type=void 0===T?"button":T,ce.disabled=l):(P.href||P.to||(ce.role="button"),l&&(ce["aria-disabled"]=l));const de=Xr(t,D,M),ue=H({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:d,focusRipple:u,tabIndex:A,focusVisible:B}),pe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=mo({root:["root",t&&"disabled",n&&"focusVisible"]},cs,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Ht.jsxs(ps,H({as:le,className:vr(pe.root,a),ownerState:ue,onBlur:ne,onClick:f,onContextMenu:K,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:Y,onMouseLeave:J,onMouseUp:Z,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:de,tabIndex:l?-1:A,type:T},ce,P,{children:[i,V?Ht.jsx(ls,H({ref:j,center:o},L)):null]}))});function fs(e){return Er("MuiTypography",e)}Cr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ms=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],bs=sa("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${cn(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>H({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),gs={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},vs={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ys=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiTypography"}),r=(e=>vs[e]||e)(n.color),o=hr(H({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:d=!1,variant:u="body1",variantMapping:p=gs}=o,h=U(o,ms),f=H({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:d,variant:u,variantMapping:p}),m=s||(d?"p":p[u]||gs[u])||"span",b=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return mo({root:["root",i,"inherit"!==e.align&&`align${cn(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},fs,a)})(f);return Ht.jsx(bs,H({as:m,ref:t,ownerState:f,className:vr(b.root,a)},h))});const xs=v.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=v.useState(null),s=Xr(v.isValidElement(n)?Eo(n):null,t);if($r(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),$r(()=>{if(i&&!o)return Wr(t,i),()=>{Wr(t,null)}},[t,i,o]),o){if(v.isValidElement(n)){const e={ref:s};return v.cloneElement(n,e)}return Ht.jsx(v.Fragment,{children:n})}return Ht.jsx(v.Fragment,{children:i?P.createPortal(n,i):i})}),Es=["onChange","maxRows","minRows","style","value"];function Cs(e){return parseInt(e,10)||0}const Ss={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function ws(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Rs=v.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=U(e,Es),{current:l}=v.useRef(null!=a),c=v.useRef(null),d=Xr(t,c),u=v.useRef(null),p=v.useRef(null),h=v.useCallback(()=>{const t=c.current,n=p.current;if(!t||!n)return;const i=Ur(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,s=Cs(i.paddingBottom)+Cs(i.paddingTop),l=Cs(i.borderBottomWidth)+Cs(i.borderTopWidth),d=n.scrollHeight;n.value="x";const u=n.scrollHeight;let h=d;o&&(h=Math.max(Number(o)*u,h)),r&&(h=Math.min(Number(r)*u,h)),h=Math.max(h,u);return{outerHeightStyle:h+("border-box"===a?s+l:0),overflowing:Math.abs(h-d)<=1}},[r,o,e.placeholder]),f=Kr(()=>{const e=c.current,t=h();if(!e||!t||ws(t))return!1;const n=t.outerHeightStyle;return null!=u.current&&u.current!==n}),m=v.useCallback(()=>{const e=c.current,t=h();if(!e||!t||ws(t))return;const n=t.outerHeightStyle;u.current!==n&&(u.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[h]),b=v.useRef(-1);$r(()=>{const e=Gr(m),t=null==c?void 0:c.current;if(!t)return;const n=Ur(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{f()&&(r.unobserve(t),cancelAnimationFrame(b.current),m(),b.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(b.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[h,m,f]),$r(()=>{m()});return Ht.jsxs(v.Fragment,{children:[Ht.jsx("textarea",H({value:a,onChange:e=>{l||m(),n&&n(e)},ref:d,rows:o,style:i},s)),Ht.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:H({},Ss,i,{paddingTop:0,paddingBottom:0})})]})});const _s=v.createContext(void 0);function ks(){return v.useContext(_s)}function As(e){return Ht.jsx(ur,H({},e,{defaultTheme:Wi,themeId:G}))}function Ls(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Is(e){return Er("MuiInputBase",e)}const Ts=Cr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ps=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Ms=sa("div",{name:"MuiInputBase",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${cn(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})(({theme:e,ownerState:t})=>H({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ts.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&H({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Os=sa("input",{name:"MuiInputBase",slot:"Input",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]}})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=H({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return H({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ts.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Ts.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})}),js=Ht.jsx(As,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),$s=v.forwardRef(function(e,t){var n;const r=Ca({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:c={},defaultValue:d,disabled:u,disableInjectingGlobalStyles:p,endAdornment:h,fullWidth:f=!1,id:m,inputComponent:b="input",inputProps:g={},inputRef:y,maxRows:x,minRows:E,multiline:C=!1,name:S,onBlur:w,onChange:R,onClick:_,onFocus:k,onKeyDown:A,onKeyUp:L,placeholder:I,readOnly:T,renderSuffix:P,rows:M,slotProps:O={},slots:j={},startAdornment:$,type:N="text",value:z}=r,D=U(r,Ps),F=null!=g.value?g.value:z,{current:G}=v.useRef(null!=F),W=v.useRef(),V=v.useCallback(e=>{},[]),q=Xr(W,y,g.ref,V),[Y,K]=v.useState(!1),X=ks(),Z=function({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}({props:r,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Z.focused=X?X.focused:Y,v.useEffect(()=>{!X&&u&&Y&&(K(!1),w&&w())},[X,u,Y,w]);const J=X&&X.onFilled,Q=X&&X.onEmpty,ee=v.useCallback(e=>{!function(e,t=!1){return e&&(Ls(e.value)&&""!==e.value||t&&Ls(e.defaultValue)&&""!==e.defaultValue)}(e)?Q&&Q():J&&J()},[J,Q]);$r(()=>{G&&ee({value:F})},[F,ee,G]);v.useEffect(()=>{ee(W.current)},[]);let te=b,ne=g;C&&"input"===te&&(ne=H(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:x,minRows:E},ne),te=Rs);v.useEffect(()=>{X&&X.setAdornedStart(Boolean($))},[X,$]);const re=H({},r,{color:Z.color||"primary",disabled:Z.disabled,endAdornment:h,error:Z.error,focused:Z.focused,formControl:X,fullWidth:f,hiddenLabel:Z.hiddenLabel,multiline:C,size:Z.size,startAdornment:$,type:N}),oe=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:u,size:p,startAdornment:h,type:f}=e;return mo({root:["root",`color${cn(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${cn(p)}`,d&&"multiline",h&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",u&&"readOnly"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",d&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",u&&"readOnly"]},Is,t)})(re),ie=j.root||l.Root||Ms,ae=O.root||c.root||{},se=j.input||l.Input||Os;return ne=H({},ne,null!=(n=O.input)?n:c.input),Ht.jsxs(v.Fragment,{children:[!p&&js,Ht.jsxs(ie,H({},ae,!bo(ie)&&{ownerState:H({},re,ae.ownerState)},{ref:t,onClick:e=>{W.current&&e.currentTarget===e.target&&W.current.focus(),_&&_(e)}},D,{className:vr(oe.root,ae.className,s,T&&"MuiInputBase-readOnly"),children:[$,Ht.jsx(_s.Provider,{value:null,children:Ht.jsx(se,H({ownerState:re,"aria-invalid":Z.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:d,disabled:Z.disabled,id:m,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?W.current:{value:"x"})},name:S,placeholder:I,readOnly:T,required:Z.required,rows:M,value:F,onKeyDown:A,onKeyUp:L,type:N},ne,!bo(se)&&{as:te,ownerState:H({},re,ne.ownerState)},{ref:q,className:vr(oe.input,ne.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),g.onBlur&&g.onBlur(e),X&&X.onBlur?X.onBlur(e):K(!1)},onChange:(e,...t)=>{if(!G){const t=e.target||W.current;if(null==t)throw new Error(B(1));ee({value:t.value})}g.onChange&&g.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Z.disabled?e.stopPropagation():(k&&k(e),g.onFocus&&g.onFocus(e),X&&X.onFocus?X.onFocus(e):K(!0))}}))}),h,P?P(H({},Z,{startAdornment:$})):null]}))]})}),Ns=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],zs={entering:{opacity:1},entered:{opacity:1}},Ds=v.forwardRef(function(e,t){const n=Vi(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:d,onEntering:u,onExit:p,onExited:h,onExiting:f,style:m,timeout:b=r,TransitionComponent:g=Na}=e,y=U(e,Ns),x=v.useRef(null),E=Xr(x,Eo(a),t),C=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},S=C(u),w=C((e,t)=>{Ua(e);const r=Wa({style:m,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)}),R=C(d),_=C(f),k=C(e=>{const t=Wa({style:m,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)}),A=C(h);return Ht.jsx(g,H({appear:i,in:l,nodeRef:x,onEnter:w,onEntered:R,onEntering:S,onExit:k,onExited:A,onExiting:_,addEndListener:e=>{o&&o(x.current,e)},timeout:b},y,{children:(e,t)=>v.cloneElement(a,H({style:H({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},zs[e],m,a.props.style),ref:E},t))}))});function Bs(e){return Er("MuiBackdrop",e)}Cr("MuiBackdrop",["root","invisible"]);const Fs=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Gs=sa("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>H({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Hs=v.forwardRef(function(e,t){var n,r,o;const i=Ca({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:d={},invisible:u=!1,open:p,slotProps:h={},slots:f={},TransitionComponent:m=Ds,transitionDuration:b}=i,g=U(i,Fs),v=H({},i,{component:l,invisible:u}),y=(e=>{const{classes:t,invisible:n}=e;return mo({root:["root",n&&"invisible"]},Bs,t)})(v),x=null!=(n=h.root)?n:d.root;return Ht.jsx(m,H({in:p,timeout:b},g,{children:Ht.jsx(Gs,H({"aria-hidden":!0},x,{as:null!=(r=null!=(o=f.root)?o:c.Root)?r:l,className:vr(y.root,s,null==x?void 0:x.className),ownerState:H({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}),Us=Cr("MuiBox",["root"]),Ws=Ui(),Vs=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Vt("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(nr);return v.forwardRef(function(e,a){const s=cr(n),l=hr(e),{className:c,component:d="div"}=l,u=U(l,yr);return Ht.jsx(i,H({as:d,ref:a,className:vr(c,o?o(r):r),theme:t&&s[t]||s},u))})}({themeId:G,defaultTheme:Ws,defaultClassName:Us.root,generateClassName:br.generate});function qs(e){return Er("MuiButton",e)}const Ys=Cr("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Ks=v.createContext({}),Xs=v.createContext(void 0),Zs=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Js=e=>H({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Qs=sa(hs,{shouldForwardProp:e=>aa(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${cn(n.color)}`],t[`size${cn(n.size)}`],t[`${n.variant}Size${cn(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return H({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":H({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Uo.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Uo.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Uo.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":H({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ys.focusVisible}`]:H({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ys.disabled}`]:H({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Uo.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ys.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ys.disabled}`]:{boxShadow:"none"}}),el=sa("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${cn(n.size)}`]]}})(({ownerState:e})=>H({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Js(e))),tl=sa("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${cn(n.size)}`]]}})(({ownerState:e})=>H({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Js(e))),nl=v.forwardRef(function(e,t){const n=v.useContext(Ks),r=v.useContext(Xs),o=Ca({props:jr(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:u=!1,endIcon:p,focusVisibleClassName:h,fullWidth:f=!1,size:m="medium",startIcon:b,type:g,variant:y="text"}=o,x=U(o,Zs),E=H({},o,{color:a,component:s,disabled:c,disableElevation:d,disableFocusRipple:u,fullWidth:f,size:m,type:g,variant:y}),C=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return H({},a,mo({root:["root",i,`${i}${cn(t)}`,`size${cn(o)}`,`${i}Size${cn(o)}`,`color${cn(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${cn(o)}`],endIcon:["icon","endIcon",`iconSize${cn(o)}`]},qs,a))})(E),S=b&&Ht.jsx(el,{className:C.startIcon,ownerState:E,children:b}),w=p&&Ht.jsx(tl,{className:C.endIcon,ownerState:E,children:p}),R=r||"";return Ht.jsxs(Qs,H({ownerState:E,className:vr(n.className,C.root,l,R),component:s,disabled:c,focusRipple:!u,focusVisibleClassName:vr(C.focusVisible,h),ref:t,type:g},x,{classes:C,children:[S,i,w]}))});function rl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ol(e){return parseInt(Ur(e).getComputedStyle(e).paddingRight,10)||0}function il(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&rl(e,o)})}function al(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function sl(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Hr(e);return t.body===e?Ur(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=uo(Hr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ol(r)+e}px`;const t=Hr(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${ol(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Hr(r).body;else{const t=r.parentElement,n=Ur(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}const ll=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function cl(e){const t=[],n=[];return Array.from(e.querySelectorAll(ll)).forEach((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function dl(){return!0}function ul(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=cl,isEnabled:a=dl,open:s}=e,l=v.useRef(!1),c=v.useRef(null),d=v.useRef(null),u=v.useRef(null),p=v.useRef(null),h=v.useRef(!1),f=v.useRef(null),m=Xr(Eo(t),f),b=v.useRef(null);v.useEffect(()=>{s&&f.current&&(h.current=!n)},[n,s]),v.useEffect(()=>{if(!s||!f.current)return;const e=Hr(f.current);return f.current.contains(e.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),h.current&&f.current.focus()),()=>{o||(u.current&&u.current.focus&&(l.current=!0,u.current.focus()),u.current=null)}},[s]),v.useEffect(()=>{if(!s||!f.current)return;const e=Hr(f.current),t=t=>{b.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===f.current&&t.shiftKey&&(l.current=!0,d.current&&d.current.focus())},n=()=>{const t=f.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=i(f.current)),n.length>0){var o,s;const e=Boolean((null==(o=b.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=b.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,a,s,i]);const g=e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0};return Ht.jsxs(v.Fragment,{children:[Ht.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:c,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:m,onFocus:e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Ht.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:d,"data-testid":"sentinelEnd"})]})}const pl=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&rl(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);il(t,e.mount,e.modalRef,r,!0);const o=al(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=al(this.containers,t=>-1!==t.modals.indexOf(e)),r=this.containers[n];r.restore||(r.restore=sl(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=al(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&rl(e.modalRef,t),il(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&rl(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function hl(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=pl,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:d,rootRef:u}=e,p=v.useRef({}),h=v.useRef(null),f=v.useRef(null),m=Xr(f,u),[b,g]=v.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const E=()=>(p.current.modalRef=f.current,p.current.mount=h.current,p.current),C=()=>{o.mount(E(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},S=Kr(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Hr(h.current).body;o.add(E(),e),f.current&&C()}),w=v.useCallback(()=>o.isTopModal(E()),[o]),R=Kr(e=>{h.current=e,e&&(d&&w()?C():f.current&&rl(f.current,x))}),_=v.useCallback(()=>{o.remove(E(),x)},[x,o]);v.useEffect(()=>()=>{_()},[_]),v.useEffect(()=>{d?S():y&&i||_()},[d,_,y,i,S]);const k=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},A=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=go(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=H({},n,t);return H({role:"presentation"},r,{onKeyDown:k(r),ref:m})},getBackdropProps:(e={})=>H({"aria-hidden":!0},e,{onClick:A(e),open:d}),getTransitionProps:()=>({onEnter:Fr(()=>{g(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:Fr(()=>{g(!0),s&&s(),i&&_()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}function fl(e){return Er("MuiModal",e)}Cr("MuiModal",["root","hidden","backdrop"]);const ml=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],bl=sa("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>H({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),gl=sa(Hs,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),vl=v.forwardRef(function(e,t){var n,r,o,i,a,s;const l=Ca({name:"MuiModal",props:e}),{BackdropComponent:c=gl,BackdropProps:d,className:u,closeAfterTransition:p=!1,children:h,container:f,component:m,components:b={},componentsProps:g={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:E=!1,disablePortal:C=!1,disableRestoreFocus:S=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:_=!1,onBackdropClick:k,open:A,slotProps:L,slots:I}=l,T=U(l,ml),P=H({},l,{closeAfterTransition:p,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:E,disablePortal:C,disableRestoreFocus:S,disableScrollLock:w,hideBackdrop:R,keepMounted:_}),{getRootProps:M,getBackdropProps:O,getTransitionProps:j,portalRef:$,isTopModal:N,exited:z,hasTransition:D}=hl(H({},P,{rootRef:t})),B=H({},P,{exited:z}),F=(e=>{const{open:t,exited:n,classes:r}=e;return mo({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},fl,r)})(B),G={};if(void 0===h.props.tabIndex&&(G.tabIndex="-1"),D){const{onEnter:e,onExited:t}=j();G.onEnter=e,G.onExited=t}const W=null!=(n=null!=(r=null==I?void 0:I.root)?r:b.Root)?n:bl,V=null!=(o=null!=(i=null==I?void 0:I.backdrop)?i:b.Backdrop)?o:c,q=null!=(a=null==L?void 0:L.root)?a:g.root,Y=null!=(s=null==L?void 0:L.backdrop)?s:g.backdrop,K=xo({elementType:W,externalSlotProps:q,externalForwardedProps:T,getSlotProps:M,additionalProps:{ref:t,as:m},ownerState:B,className:vr(u,null==q?void 0:q.className,null==F?void 0:F.root,!B.open&&B.exited&&(null==F?void 0:F.hidden))}),X=xo({elementType:V,externalSlotProps:Y,additionalProps:d,getSlotProps:e=>O(H({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:vr(null==Y?void 0:Y.className,null==d?void 0:d.className,null==F?void 0:F.backdrop),ownerState:B});return _||A||D&&!z?Ht.jsx(xs,{ref:$,container:f,disablePortal:C,children:Ht.jsxs(W,H({},K,{children:[!R&&c?Ht.jsx(V,H({},X)):null,Ht.jsx(ul,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:S,isEnabled:N,open:A,children:v.cloneElement(h,G)})]}))}):null});function yl(e){return Er("MuiDivider",e)}const xl=Cr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),El=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Cl=sa("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>H({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Uo.alpha(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>H({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>H({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>H({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>H({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Sl=sa("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>H({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),wl=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:d=("hr"!==a?"separator":void 0),textAlign:u="center",variant:p="fullWidth"}=n,h=U(n,El),f=H({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:d,textAlign:u,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return mo({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},yl,r)})(f);return Ht.jsx(Cl,H({as:a,className:vr(m.root,i),role:d,ref:t,ownerState:f},h,{children:o?Ht.jsx(Sl,{className:m.wrapper,ownerState:f,children:o}):null}))});wl.muiSkipListHighlight=!0;const Rl=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function _l(e){return`scale(${e}, ${e**2})`}const kl={entering:{opacity:1,transform:_l(1)},entered:{opacity:1,transform:"none"}},Al="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ll=v.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:d,onExited:u,onExiting:p,style:h,timeout:f="auto",TransitionComponent:m=Na}=e,b=U(e,Rl),g=eo(),y=v.useRef(),x=Vi(),E=v.useRef(null),C=Xr(E,Eo(o),t),S=e=>t=>{if(e){const n=E.current;void 0===t?e(n):e(n,t)}},w=S(c),R=S((e,t)=>{Ua(e);const{duration:n,delay:r,easing:o}=Wa({style:h,timeout:f,easing:i},{mode:"enter"});let a;"auto"===f?(a=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:Al?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)}),_=S(l),k=S(p),A=S(e=>{const{duration:t,delay:n,easing:r}=Wa({style:h,timeout:f,easing:i},{mode:"exit"});let o;"auto"===f?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:Al?o:.666*o,delay:Al?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=_l(.75),d&&d(e)}),L=S(u);return Ht.jsx(m,H({appear:r,in:a,nodeRef:E,onEnter:R,onEntered:_,onEntering:w,onExit:A,onExited:L,onExiting:k,addEndListener:e=>{"auto"===f&&g.start(y.current||0,e),n&&n(E.current,e)},timeout:"auto"===f?null:f},b,{children:(e,t)=>v.cloneElement(o,H({style:H({opacity:0,transform:_l(.75),visibility:"exited"!==e||a?void 0:"hidden"},kl[e],h,o.props.style),ref:C},t))}))});function Il(e){return Er("MuiInputAdornment",e)}Ll.muiSupportAuto=!0;const Tl=Cr("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Pl;const Ml=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Ol=sa("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${cn(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(({theme:e,ownerState:t})=>H({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${Tl.positionStart}&:not(.${Tl.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),jl=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:c}=n,d=U(n,Ml),u=ks()||{};let p=c;c&&u.variant,u&&!p&&(p=u.variant);const h=H({},n,{hiddenLabel:u.hiddenLabel,size:u.size,disablePointerEvents:a,position:l,variant:p}),f=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return mo({root:["root",n&&"disablePointerEvents",o&&`position${cn(o)}`,a,r&&"hiddenLabel",i&&`size${cn(i)}`]},Il,t)})(h);return Ht.jsx(_s.Provider,{value:null,children:Ht.jsx(Ol,H({as:i,ownerState:h,className:vr(f.root,o),ref:t},d,{children:"string"!=typeof r||s?Ht.jsxs(v.Fragment,{children:["start"===l?Pl||(Pl=Ht.jsx("span",{className:"notranslate",children:""})):null,r]}):Ht.jsx(ys,{color:"text.secondary",children:r})}))})}),$l=v.createContext({});function Nl(e){return Er("MuiList",e)}Cr("MuiList",["root","padding","dense","subheader"]);const zl=["children","className","component","dense","disablePadding","subheader"],Dl=sa("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>H({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Bl=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=U(n,zl),d=v.useMemo(()=>({dense:a}),[a]),u=H({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return mo({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Nl,t)})(u);return Ht.jsx($l.Provider,{value:d,children:Ht.jsxs(Dl,H({as:i,className:vr(p.root,o),ref:t,ownerState:u},c,{children:[l,r]}))})});function Fl(e){return Er("MuiListItem",e)}const Gl=Cr("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function Hl(e){return Er("MuiListItemButton",e)}const Ul=Cr("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Wl=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Vl=sa(hs,{shouldForwardProp:e=>aa(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>H({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ul.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ul.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ul.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ul.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ul.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),ql=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:o=!1,component:i="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:d,selected:u=!1,className:p}=n,h=U(n,Wl),f=v.useContext($l),m=v.useMemo(()=>({dense:s||f.dense||!1,alignItems:r,disableGutters:l}),[r,f.dense,s,l]),b=v.useRef(null);$r(()=>{o&&b.current&&b.current.focus()},[o]);const g=H({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:u}),y=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return H({},n,mo({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},Hl,n))})(g),x=Xr(b,t);return Ht.jsx($l.Provider,{value:m,children:Ht.jsx(Vl,H({ref:x,href:h.href||h.to,component:(h.href||h.to)&&"div"===i?"button":i,focusVisibleClassName:vr(y.focusVisible,d),ownerState:g,className:vr(y.root,p)},h,{classes:y,children:a}))})});function Yl(e){return Er("MuiListItemSecondaryAction",e)}Cr("MuiListItemSecondaryAction",["root","disableGutters"]);const Kl=["className"],Xl=sa("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>H({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Zl=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=U(n,Kl),i=H({},n,{disableGutters:v.useContext($l).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return mo({root:["root",t&&"disableGutters"]},Yl,n)})(i);return Ht.jsx(Xl,H({className:vr(a.root,r),ownerState:i,ref:t},o))});Zl.muiName="ListItemSecondaryAction";const Jl=["className"],Ql=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],ec=sa("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})(({theme:e,ownerState:t})=>H({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&H({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Ul.root}`]:{paddingRight:48}},{[`&.${Gl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Gl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Gl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gl.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),tc=sa("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),nc=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,className:s,component:l,components:c={},componentsProps:d={},ContainerComponent:u="li",ContainerProps:{className:p}={},dense:h=!1,disabled:f=!1,disableGutters:m=!1,disablePadding:b=!1,divider:g=!1,focusVisibleClassName:y,secondaryAction:x,selected:E=!1,slotProps:C={},slots:S={}}=n,w=U(n.ContainerProps,Jl),R=U(n,Ql),_=v.useContext($l),k=v.useMemo(()=>({dense:h||_.dense||!1,alignItems:r,disableGutters:m}),[r,_.dense,h,m]),A=v.useRef(null);$r(()=>{o&&A.current&&A.current.focus()},[o]);const L=v.Children.toArray(a),I=L.length&&(T=L[L.length-1],P=["ListItemSecondaryAction"],v.isValidElement(T)&&-1!==P.indexOf(null!=(M=T.type.muiName)?M:null==(O=T.type)||null==(O=O._payload)||null==(O=O.value)?void 0:O.muiName));var T,P,M,O;const j=H({},n,{alignItems:r,autoFocus:o,button:i,dense:k.dense,disabled:f,disableGutters:m,disablePadding:b,divider:g,hasSecondaryAction:I,selected:E}),$=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:d}=e;return mo({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},Fl,r)})(j),N=Xr(A,t),z=S.root||c.Root||ec,D=C.root||d.root||{},B=H({className:vr($.root,D.className,s),disabled:f},R);let F=l||"li";return i&&(B.component=l||"div",B.focusVisibleClassName=vr(Gl.focusVisible,y),F=hs),I?(F=B.component||l?F:"div","li"===u&&("li"===F?F="div":"li"===B.component&&(B.component="div")),Ht.jsx($l.Provider,{value:k,children:Ht.jsxs(tc,H({as:u,className:vr($.container,p),ref:N,ownerState:j},w,{children:[Ht.jsx(z,H({},D,!bo(z)&&{as:F,ownerState:H({},j,D.ownerState)},B,{children:L})),L.pop()]}))})):Ht.jsx($l.Provider,{value:k,children:Ht.jsxs(z,H({},D,{as:F,ref:N},!bo(z)&&{ownerState:H({},j,D.ownerState)},B,{children:[L,x&&Ht.jsx(Zl,{children:x})]}))})});function rc(e){return Er("MuiListItemIcon",e)}const oc=Cr("MuiListItemIcon",["root","alignItemsFlexStart"]),ic=["className"],ac=sa("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>H({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),sc=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=U(n,ic),i=H({},n,{alignItems:v.useContext($l).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return mo({root:["root","flex-start"===t&&"alignItemsFlexStart"]},rc,n)})(i);return Ht.jsx(ac,H({className:vr(a.root,r),ownerState:i,ref:t},o))}),lc=Cr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),cc=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function dc(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function uc(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function pc(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function hc(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&pc(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const fc=v.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu"}=e,u=U(e,cc),p=v.useRef(null),h=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});$r(()=>{r&&p.current.focus()},[r]),v.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${uo(Hr(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}}),[]);const f=Xr(p,t);let m=-1;v.Children.forEach(i,(e,t)=>{v.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))});const b=v.Children.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),v.cloneElement(e,t)}return e});return Ht.jsx(Bl,H({role:"menu",ref:f,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Hr(t).activeElement;if("ArrowDown"===n)e.preventDefault(),hc(t,r,l,s,dc);else if("ArrowUp"===n)e.preventDefault(),hc(t,r,l,s,uc);else if("Home"===n)e.preventDefault(),hc(t,null,l,s,dc);else if("End"===n)e.preventDefault(),hc(t,null,l,s,uc);else if(1===n.length){const o=h.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=r&&!o.repeating&&pc(r,o);o.previousKeyMatched&&(l||hc(t,r,!1,s,dc,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},u,{children:b}))});function mc(e){return Er("MuiPopover",e)}Cr("MuiPopover",["root","paper"]);const bc=["onEntering"],gc=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],vc=["slotProps"];function yc(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function xc(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Ec(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Cc(e){return"function"==typeof e?e():e}const Sc=sa(vl,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wc=sa(Ka,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Rc=v.forwardRef(function(e,t){var n,r,o;const i=Ca({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:u,className:p,container:h,elevation:f=8,marginThreshold:m=16,open:b,PaperProps:g={},slots:y,slotProps:x,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:C=Ll,transitionDuration:S="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,_=U(i.TransitionProps,bc),k=U(i,gc),A=null!=(n=null==x?void 0:x.paper)?n:g,L=v.useRef(),I=Xr(L,A.ref),T=H({},i,{anchorOrigin:l,anchorReference:d,elevation:f,marginThreshold:m,externalPaperSlotProps:A,transformOrigin:E,TransitionComponent:C,transitionDuration:S,TransitionProps:_}),P=(e=>{const{classes:t}=e;return mo({root:["root"],paper:["paper"]},mc,t)})(T),M=v.useCallback(()=>{if("anchorPosition"===d)return c;const e=Cc(s),t=(e&&1===e.nodeType?e:Hr(L.current).body).getBoundingClientRect();return{top:t.top+yc(t,l.vertical),left:t.left+xc(t,l.horizontal)}},[s,l.horizontal,l.vertical,c,d]),O=v.useCallback(e=>({vertical:yc(e,E.vertical),horizontal:xc(e,E.horizontal)}),[E.horizontal,E.vertical]),j=v.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=O(t);if("none"===d)return{top:null,left:null,transformOrigin:Ec(n)};const r=M();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,c=Ur(Cc(s)),u=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>u){const e=a-u;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(l>p){const e=l-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Ec(n)}},[s,d,M,O,m]),[$,N]=v.useState(b),z=v.useCallback(()=>{const e=L.current;if(!e)return;const t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)},[j]);v.useEffect(()=>(R&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z)),[s,R,z]);v.useEffect(()=>{b&&z()}),v.useImperativeHandle(a,()=>b?{updatePosition:()=>{z()}}:null,[b,z]),v.useEffect(()=>{if(!b)return;const e=Gr(()=>{z()}),t=Ur(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,b,z]);let D=S;"auto"!==S||C.muiSupportAuto||(D=void 0);const B=h||(s?Hr(Cc(s)).body:void 0),F=null!=(r=null==y?void 0:y.root)?r:Sc,G=null!=(o=null==y?void 0:y.paper)?o:wc,W=xo({elementType:G,externalSlotProps:H({},A,{style:$?A.style:H({},A.style,{opacity:0})}),additionalProps:{elevation:f,ref:I},ownerState:T,className:vr(P.paper,null==A?void 0:A.className)}),V=xo({elementType:F,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:B,open:b},ownerState:T,className:vr(P.root,p)}),{slotProps:q}=V,Y=U(V,vc);return Ht.jsx(F,H({},Y,!bo(F)&&{slotProps:q,disableScrollLock:R},{children:Ht.jsx(C,H({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),z()},onExited:()=>{N(!1)},timeout:D},_,{children:Ht.jsx(G,H({},W,{children:u}))}))}))});function _c(e){return Er("MuiMenu",e)}Cr("MuiMenu",["root","paper","list"]);const kc=["onEntering"],Ac=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Lc={vertical:"top",horizontal:"right"},Ic={vertical:"top",horizontal:"left"},Tc=sa(Rc,{shouldForwardProp:e=>aa(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Pc=sa(wc,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Mc=sa(fc,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Oc=v.forwardRef(function(e,t){var n,r;const o=Ca({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:d,open:u,PaperProps:p={},PopoverClasses:h,transitionDuration:f="auto",TransitionProps:{onEntering:m}={},variant:b="selectedMenu",slots:g={},slotProps:y={}}=o,x=U(o.TransitionProps,kc),E=U(o,Ac),C=Lo(),S=H({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:f,TransitionProps:x,variant:b}),w=(e=>{const{classes:t}=e;return mo({root:["root"],paper:["paper"],list:["list"]},_c,t)})(S),R=i&&!l&&u,_=v.useRef(null);let k=-1;v.Children.map(a,(e,t)=>{v.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===k)&&(k=t))});const A=null!=(n=g.paper)?n:Pc,L=null!=(r=y.paper)?r:p,I=xo({elementType:g.root,externalSlotProps:y.root,ownerState:S,className:[w.root,s]}),T=xo({elementType:A,externalSlotProps:L,ownerState:S,className:w.paper});return Ht.jsx(Tc,H({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Lc:Ic,slots:{paper:A,root:g.root},slotProps:{root:I,paper:T},open:u,ref:t,transitionDuration:f,TransitionProps:H({onEntering:(e,t)=>{_.current&&_.current.adjustStyleForScrollbar(e,{direction:C?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:S},E,{classes:h,children:Ht.jsx(Mc,H({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:_,autoFocus:i&&(-1===k||l),autoFocusItem:R,variant:b},c,{className:vr(w.list,c.className),children:a}))}))});function jc(e){return Er("MuiMenuItem",e)}const $c=Cr("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Nc=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],zc=sa(hs,{shouldForwardProp:e=>aa(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>H({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${$c.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${$c.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${$c.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${$c.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$c.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${xl.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${xl.inset}`]:{marginLeft:52},[`& .${lc.root}`]:{marginTop:0,marginBottom:0},[`& .${lc.inset}`]:{paddingLeft:36},[`& .${oc.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&H({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${oc.root} svg`]:{fontSize:"1.25rem"}}))),Dc=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:u}=n,p=U(n,Nc),h=v.useContext($l),f=v.useMemo(()=>({dense:i||h.dense||!1,disableGutters:s}),[h.dense,i,s]),m=v.useRef(null);$r(()=>{r&&m.current&&m.current.focus()},[r]);const b=H({},n,{dense:f.dense,divider:a,disableGutters:s}),g=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return H({},a,mo({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},jc,a))})(n),y=Xr(m,t);let x;return n.disabled||(x=void 0!==d?d:-1),Ht.jsx($l.Provider,{value:f,children:Ht.jsx(zc,H({ref:y,role:c,tabIndex:x,component:o,focusVisibleClassName:vr(g.focusVisible,l),className:vr(g.root,u)},p,{ownerState:b,classes:g}))})});function Bc(e){return Er("MuiTab",e)}const Fc=Cr("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Gc=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Hc=sa(hs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${cn(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Fc.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>H({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Fc.iconWrapper}`]:H({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${Fc.selected}`]:{opacity:1},[`&.${Fc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${Fc.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Fc.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${Fc.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Fc.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Uc=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiTab"}),{className:r,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:a,icon:s,iconPosition:l="top",indicator:c,label:d,onChange:u,onClick:p,onFocus:h,selected:f,selectionFollowsFocus:m,textColor:b="inherit",value:g,wrapped:y=!1}=n,x=U(n,Gc),E=H({},n,{disabled:o,disableFocusRipple:i,selected:f,icon:!!s,iconPosition:l,label:!!d,fullWidth:a,textColor:b,wrapped:y}),C=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e;return mo({root:["root",i&&a&&"labelIcon",`textColor${cn(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]},Bc,t)})(E),S=s&&d&&v.isValidElement(s)?v.cloneElement(s,{className:vr(C.iconWrapper,s.props.className)}):s;return Ht.jsxs(Hc,H({focusRipple:!i,className:vr(C.root,r),ref:t,role:"tab","aria-selected":f,disabled:o,onClick:e=>{!f&&u&&u(e,g),p&&p(e)},onFocus:e=>{m&&!f&&u&&u(e,g),h&&h(e)},ownerState:E,tabIndex:f?0:-1},x,{children:["top"===l||"start"===l?Ht.jsxs(v.Fragment,{children:[S,d]}):Ht.jsxs(v.Fragment,{children:[d,S]}),c]}))});var Wc=ka(Ht.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Vc=ka(Ht.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function qc(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const Yc=["onChange"],Kc={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Xc(e){return Er("MuiTabScrollButton",e)}const Zc=Cr("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Jc=["className","slots","slotProps","direction","orientation","disabled"],Qc=sa(hs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>H({width:40,flexShrink:0,opacity:.8,[`&.${Zc.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),ed=v.forwardRef(function(e,t){var n,r;const o=Ca({props:e,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:s={},direction:l}=o,c=U(o,Jc),d=H({isRtl:Lo()},o),u=(e=>{const{classes:t,orientation:n,disabled:r}=e;return mo({root:["root",n,r&&"disabled"]},Xc,t)})(d),p=null!=(n=a.StartScrollButtonIcon)?n:Wc,h=null!=(r=a.EndScrollButtonIcon)?r:Vc,f=xo({elementType:p,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),m=xo({elementType:h,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return Ht.jsx(Qc,H({component:"div",className:vr(u.root,i),ref:t,role:null,ownerState:d,tabIndex:null},c,{children:"left"===l?Ht.jsx(p,H({},f)):Ht.jsx(h,H({},m))}))});function td(e){return Er("MuiTabs",e)}const nd=Cr("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),rd=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],od=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,id=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,ad=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=n(e,o)}},sd=sa("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nd.scrollButtons}`]:t.scrollButtons},{[`& .${nd.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>H({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${nd.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),ld=sa("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>H({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),cd=sa("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>H({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),dd=sa("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>H({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),ud=sa(function(e){const{onChange:t}=e,n=U(e,Yc),r=v.useRef(),o=v.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return $r(()=>{const e=Gr(()=>{const e=r.current;i(),e!==r.current&&t(r.current)}),n=Ur(o.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}},[t]),v.useEffect(()=>{i(),t(r.current)},[t]),Ht.jsx("div",H({style:Kc},n,{ref:o}))})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),pd={},hd=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiTabs"}),r=Vi(),o=Lo(),{"aria-label":i,"aria-labelledby":a,action:s,centered:l=!1,children:c,className:d,component:u="div",allowScrollButtonsMobile:p=!1,indicatorColor:h="primary",onChange:f,orientation:m="horizontal",ScrollButtonComponent:b=ed,scrollButtons:g="auto",selectionFollowsFocus:y,slots:x={},slotProps:E={},TabIndicatorProps:C={},TabScrollButtonProps:S={},textColor:w="primary",value:R,variant:_="standard",visibleScrollbar:k=!1}=n,A=U(n,rd),L="scrollable"===_,I="vertical"===m,T=I?"scrollTop":"scrollLeft",P=I?"top":"left",M=I?"bottom":"right",O=I?"clientHeight":"clientWidth",j=I?"height":"width",$=H({},n,{component:u,allowScrollButtonsMobile:p,indicatorColor:h,orientation:m,vertical:I,scrollButtons:g,textColor:w,variant:_,visibleScrollbar:k,fixed:!L,hideScrollbar:L&&!k,scrollableX:L&&!I,scrollableY:L&&I,centered:l&&!L,scrollButtonsHideMobile:!p}),N=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return mo({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},td,l)})($),z=xo({elementType:x.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:$}),D=xo({elementType:x.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:$}),[B,F]=v.useState(!1),[G,W]=v.useState(pd),[V,q]=v.useState(!1),[Y,K]=v.useState(!1),[X,Z]=v.useState(!1),[J,Q]=v.useState({overflow:"hidden",scrollbarWidth:0}),ee=new Map,te=v.useRef(null),ne=v.useRef(null),re=()=>{const e=te.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:fo(e,o?"rtl":"ltr"),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==R){const e=ne.current.children;if(e.length>0){const t=e[ee.get(R)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},oe=Kr(()=>{const{tabsMeta:e,tabMeta:t}=re();let n,r=0;if(I)n="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(n=o?"right":"left",t&&e){const i=o?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(o?-1:1)*(t[n]-e[n]+i)}const i={[n]:r,[j]:t?t[j]:0};if(isNaN(G[n])||isNaN(G[j]))W(i);else{const e=Math.abs(G[n]-i[n]),t=Math.abs(G[j]-i[j]);(e>=1||t>=1)&&W(i)}}),ie=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},o=()=>{}){const{ease:i=qc,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const d=()=>{c=!0},u=r=>{if(c)return void o(new Error("Animation cancelled"));null===s&&(s=r);const d=Math.min(1,(r-s)/a);t[e]=i(d)*(n-l)+l,d>=1?requestAnimationFrame(()=>{o(null)}):requestAnimationFrame(u)};l===n?o(new Error("Element already at target position")):requestAnimationFrame(u)}(T,te.current,e,{duration:r.transitions.duration.standard}):te.current[T]=e},ae=e=>{let t=te.current[T];I?t+=e:(t+=e*(o?-1:1),t*=o&&"reverse"===ho()?-1:1),ie(t)},se=()=>{const e=te.current[O];let t=0;const n=Array.from(ne.current.children);for(let r=0;r<n.length;r+=1){const o=n[r];if(t+o[O]>e){0===r&&(t=e);break}t+=o[O]}return t},le=()=>{ae(-1*se())},ce=()=>{ae(se())},de=v.useCallback(e=>{Q({overflow:null,scrollbarWidth:e})},[]),ue=Kr(e=>{const{tabsMeta:t,tabMeta:n}=re();if(n&&t)if(n[P]<t[P]){const r=t[T]+(n[P]-t[P]);ie(r,{animation:e})}else if(n[M]>t[M]){const r=t[T]+(n[M]-t[M]);ie(r,{animation:e})}}),pe=Kr(()=>{L&&!1!==g&&Z(!X)});v.useEffect(()=>{const e=Gr(()=>{te.current&&oe()});let t;const n=n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{var n;null==(n=t)||n.unobserve(e)}),e.addedNodes.forEach(e=>{var n;null==(n=t)||n.observe(e)})}),e(),pe()},r=Ur(te.current);let o;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(ne.current.children).forEach(e=>{t.observe(e)})),"undefined"!=typeof MutationObserver&&(o=new MutationObserver(n),o.observe(ne.current,{childList:!0})),()=>{var n,i;e.clear(),r.removeEventListener("resize",e),null==(n=o)||n.disconnect(),null==(i=t)||i.disconnect()}},[oe,pe]),v.useEffect(()=>{const e=Array.from(ne.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&L&&!1!==g){const n=e[0],r=e[t-1],o={root:te.current,threshold:.99},i=new IntersectionObserver(e=>{q(!e[0].isIntersecting)},o);i.observe(n);const a=new IntersectionObserver(e=>{K(!e[0].isIntersecting)},o);return a.observe(r),()=>{i.disconnect(),a.disconnect()}}},[L,g,X,null==c?void 0:c.length]),v.useEffect(()=>{F(!0)},[]),v.useEffect(()=>{oe()}),v.useEffect(()=>{ue(pd!==G)},[ue,G]),v.useImperativeHandle(s,()=>({updateIndicator:oe,updateScrollButtons:pe}),[oe,pe]);const he=Ht.jsx(dd,H({},C,{className:vr(N.indicator,C.className),ownerState:$,style:H({},G,C.style)}));let fe=0;const me=v.Children.map(c,e=>{if(!v.isValidElement(e))return null;const t=void 0===e.props.value?fe:e.props.value;ee.set(t,fe);const n=t===R;return fe+=1,v.cloneElement(e,H({fullWidth:"fullWidth"===_,indicator:n&&!B&&he,selected:n,selectionFollowsFocus:y,onChange:f,textColor:w,value:t},1!==fe||!1!==R||e.props.tabIndex?{}:{tabIndex:0}))}),be=(()=>{const e={};e.scrollbarSizeListener=L?Ht.jsx(ud,{onChange:de,className:vr(N.scrollableX,N.hideScrollbar)}):null;const t=L&&("auto"===g&&(V||Y)||!0===g);return e.scrollButtonStart=t?Ht.jsx(b,H({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:z},orientation:m,direction:o?"right":"left",onClick:le,disabled:!V},S,{className:vr(N.scrollButtons,S.className)})):null,e.scrollButtonEnd=t?Ht.jsx(b,H({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:D},orientation:m,direction:o?"left":"right",onClick:ce,disabled:!Y},S,{className:vr(N.scrollButtons,S.className)})):null,e})();return Ht.jsxs(sd,H({className:vr(N.root,d),ownerState:$,ref:t,as:u},A,{children:[be.scrollButtonStart,be.scrollbarSizeListener,Ht.jsxs(ld,{className:N.scroller,ownerState:$,style:{overflow:J.overflow,[I?"margin"+(o?"Left":"Right"):"marginBottom"]:k?void 0:-J.scrollbarWidth},ref:te,children:[Ht.jsx(cd,{"aria-label":i,"aria-labelledby":a,"aria-orientation":"vertical"===m?"vertical":null,className:N.flexContainer,ownerState:$,onKeyDown:e=>{const t=ne.current,n=Hr(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===m?"ArrowLeft":"ArrowUp",i="horizontal"===m?"ArrowRight":"ArrowDown";switch("horizontal"===m&&o&&(r="ArrowRight",i="ArrowLeft"),e.key){case r:e.preventDefault(),ad(t,n,id);break;case i:e.preventDefault(),ad(t,n,od);break;case"Home":e.preventDefault(),ad(t,null,od);break;case"End":e.preventDefault(),ad(t,null,id)}},ref:ne,role:"tablist",children:me}),B&&he]}),be.scrollButtonEnd]}))});function fd(e){return Ht.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Ht.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function md({fontSize:e="medium",children:t=null,className:n=""}={}){return Ht.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})}function bd(e={}){return Ht.jsx(md,{...e,children:Ht.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Ht.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Ht.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function gd(e={}){return Ht.jsx(md,{fontSize:"medium",...e,children:Ht.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ht.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Ht.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function vd(e){return Ht.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Ht.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function yd(e={}){return Ht.jsx(md,{...e,children:Ht.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ht.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Ht.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Ht.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function xd(e={}){return Ht.jsx(md,{fontSize:"medium",...e,children:Ht.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ht.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Ht.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Ed({className:e}){return Ht.jsx(md,{fontSize:"small",className:e,children:Ht.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Ht.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Ht.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Ht.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Ht.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Ht.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function Cd(e={}){return Ht.jsx(md,{...e,children:Ht.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ht.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Ht.jsx("rect",{stroke:ua.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var Sd=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:ua.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:ua.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Ht.jsx(fd,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${ua.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:ua.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${ua.MISC_FOCUS_BORDER}`,borderRadius:ba,backgroundColor:ua.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${ua.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:ua.WHITE,color:ua.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:ba},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ua.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:ua.GREYSCALE_0_15,backgroundColor:ua.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:ua.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ua.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:ua.GREEN_PALE},"&:active":{backgroundColor:ua.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ua.GREEN_PALE,boxShadow:`0 0 0 3px ${Br(ua.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:ua.BLUE_PALE},"&:active":{backgroundColor:ua.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ua.BLUE_PALE,boxShadow:`0 0 0 3px ${Br(ua.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:ba,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:ua.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ua.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:ua.GREYSCALE_0_42,backgroundColor:ua.GREYSCALE_100_60,"&:active":{backgroundColor:ua.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:ua.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ua.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:ua.PURPLE,"&.Mui-focusVisible":{borderColor:ua.PURPLE,boxShadow:`0 0 0 3px ${Br(ua.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:ua.GREEN,"&.Mui-focusVisible":{borderColor:ua.GREEN,boxShadow:`0 0 0 3px ${Br(ua.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:ua.BLUE,"&.Mui-focusVisible":{borderColor:ua.BLUE,boxShadow:`0 0 0 3px ${Br(ua.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:ua.ORANGE,"&.Mui-focusVisible":{borderColor:ua.ORANGE,boxShadow:`0 0 0 3px ${Br(ua.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:ua.RED,"&.Mui-focusVisible":{borderColor:ua.RED,boxShadow:`0 0 0 3px ${Br(ua.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:ua.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:ua.PURPLE_PALE},"&:active":{backgroundColor:ua.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:ua.PURPLE_PALE,boxShadow:`0 0 0 3px ${Br(ua.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:ua.GREEN_PALE},"&:active":{backgroundColor:ua.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ua.GREEN_PALE,boxShadow:`0 0 0 3px ${Br(ua.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:ua.BLUE_PALE},"&:active":{backgroundColor:ua.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ua.BLUE_PALE,boxShadow:`0 0 0 3px ${Br(ua.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:ua.ORANGE_PALE},"&:active":{backgroundColor:ua.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:ua.ORANGE_PALE,boxShadow:`0 0 0 3px ${Br(ua.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:ua.RED_PALE},"&:active":{backgroundColor:ua.RED_DARK},"&.Mui-focusVisible":{borderColor:ua.RED_PALE,boxShadow:`0 0 0 3px ${Br(ua.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:ua.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:ua.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:ba,boxShadow:`inset 0 0 0 2px ${ua.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Ht.jsx(vd,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:pa,borderRadius:ba,color:ua.TEXT_PRIMARY,backgroundColor:ua.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:ua.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${ua.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:ua.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:ua.GREYSCALE_0_05,color:ua.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:ua.GREEN,borderColor:ua.GREEN},"&.MuiChip-outlinedInfo":{color:ua.BLUE,borderColor:ua.BLUE},"&.MuiChip-outlinedWarning":{color:ua.ORANGE,borderColor:ua.ORANGE},"&.MuiChip-outlinedError":{color:ua.RED,borderColor:ua.RED}},outlined:{border:`solid 1px ${ua.GREYSCALE_0_15}`,backgroundColor:ua.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:ba,boxShadow:"none",backgroundColor:ua.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:ua.GREEN,borderColor:ua.GREEN},outlinedSecondary:{color:ua.BLUE,borderColor:ua.BLUE},label:{fontFamily:Ea.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Ht.jsx(vd,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Ht.jsx(fd,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:ba},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:ba,fontSize:ha,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:ua.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${ua.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:ua.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:ua.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:ua.GREYSCALE_0_05}}},popupIndicator:{borderRadius:ba,border:`solid 1px ${ua.GREYSCALE_0_15}`,color:ua.GREYSCALE_0_60,marginRight:0,width:ma,height:ma},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${ua.GREYSCALE_0_15}`},clearIndicator:{borderRadius:ba,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:ua.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:ha}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:pa,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:ua.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:ua.GREYSCALE_25,fontSize:pa,fontFamily:Ea.FONT_FAMILY,fontWeight:ya,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:ua.TEXT_PRIMARY},"&.Mui-error":{color:ua.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:ua.TEXT_SECONDARY,content:"'(optional)'",fontWeight:va,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:ua.TEXT_SECONDARY,content:"'(required)'",fontWeight:va,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:ha,lineHeight:"16px",backgroundColor:ua.WHITE,borderRadius:ba,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ua.GREYSCALE_0_05}`,borderColor:ua.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ua.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${ua.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${ua.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ua.RED}`,boxShadow:`0px 0px 0px 1px ${ua.RED}, inset 0 2px 0 0 ${ua.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ua.GREYSCALE_0_10}`,borderColor:ua.GREYSCALE_0_10,backgroundColor:ua.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:ua.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:ua.GREYSCALE_0_15,borderRadius:ba,boxShadow:`inset 0 2px 0 0 ${ua.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Ht.jsx(fd,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:ua.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:ua.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:ua.GREYSCALE_0_03},"&:active":{backgroundColor:ua.GREYSCALE_0_10},"&:focus":{backgroundColor:ua.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${ua.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${ua.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:ua.GREYSCALE_0_30,"&:hover":{backgroundColor:ua.GREYSCALE_0_0,borderColor:ua.GREYSCALE_0_15},"& ~svg":{color:ua.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${ua.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:ba}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:ua.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${ua.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:ua.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:ha,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:pa,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:pa,fontWeight:ya,color:ua.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:ya}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${ua.GREYSCALE_0_15}, 0px 0px 0px 1px ${ua.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Ht.jsx(xd,{}),checkedIcon:Ht.jsx(gd,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:ua.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${ua.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:ua.GREEN_PALE,boxShadow:`0 0 0 3px ${Br(ua.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:ua.BLUE_PALE,boxShadow:`0 0 0 3px ${Br(ua.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:ua.GREYSCALE_0_20}},"&.Mui-disabled":{fill:ua.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Ht.jsx(Cd,{}),checkedIcon:Ht.jsx(bd,{}),indeterminateIcon:Ht.jsx(yd,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:ba,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:ua.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:ua.GREYSCALE_0_55,color:ua.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:ua.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:ua.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:ua.GREYSCALE_0_55,"&:hover":{color:ua.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:ua.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:ua.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:ha,color:ua.TEXT_PRIMARY,lineHeight:"16px",fontWeight:ya},secondary:{fontSize:pa,color:ua.GREYSCALE_45,fontWeight:va,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:ha,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:ha,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:ua.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:pa,borderBottom:`solid 1px ${ua.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:ha,color:ua.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:ua.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:ua.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:ua.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:ua.RED}}},"&.Mui-focusVisible":{backgroundColor:ua.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:ua.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:ua.GREEN,height:"24px","&.Mui-disabled":{color:ua.GREYSCALE_0_15}},rail:{backgroundColor:ua.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${ua.GREYSCALE_0_05}`,borderRadius:ba,boxShadow:`inset 0px 0px 0px 1px ${ua.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${ua.GREYSCALE_0_05}`,borderRadius:ba},thumb:{height:"16px",width:"16px",borderRadius:ba,backgroundColor:ua.WHITE,boxShadow:`0px 1px 2px 0px ${ua.GREYSCALE_0_15}, 0px 0px 0px 1px ${ua.GREYSCALE_0_05}`,"&:hover":{borderRadius:ba,boxShadow:`0 2px 4px 0 ${ua.GREYSCALE_0_30}, 0 0 0 1px ${ua.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${ua.GREYSCALE_0_15}, 0 0 0 1px ${ua.GREYSCALE_0_06}, 0 0 0 2px ${ua.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${ua.GREYSCALE_0_15}, 0 0 0 1px ${ua.GREYSCALE_0_06}, 0 0 0 2px ${ua.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:ua.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:ua.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:ua.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:ua.GREYSCALE_0_15},markLabel:{color:ua.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:ua.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:ua.WHITE,color:ua.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:ua.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:ua.GREEN_PALE,boxShadow:`0 0 0 3px ${Br(ua.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:ua.BLUE_PALE,boxShadow:`0 0 0 3px ${Br(ua.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:ua.GREYSCALE_0_15,borderRadius:ba},thumb:{height:"16px",width:"16px",borderRadius:ba,backgroundColor:ua.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:ha,fontWeight:ya,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${ua.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${ua.MISC_FOCUS_BORDER}`,backgroundColor:ua.GREYSCALE_0_03,borderRadius:ba},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:ua.GREYSCALE_25,"&.Mui-selected":{color:ua.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:ha,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:ba,"&:hover":{backgroundColor:ua.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${ua.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${ua.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:ba,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:ua.GREYSCALE_0_05},"&:hover":{backgroundColor:ua.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${ua.GREYSCALE_85}`,borderRight:`1px solid ${ua.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:ya,backgroundColor:ua.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:ua.GREYSCALE_98,borderBottom:`1px solid ${ua.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${ua.GREYSCALE_85}`,borderTop:`1px solid ${ua.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:ua.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:ua.GREYSCALE_0_05,"&:hover":{backgroundColor:ua.GREYSCALE_0_03}},"&&:hover":{backgroundColor:ua.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Ht.jsx(Ed,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${ua.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:ha,borderRadius:ba,padding:"7px 16px",border:`1px solid ${ua.GREYSCALE_0_15}`,backgroundColor:ua.GREYSCALE_100_60,color:ua.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:ua.GREYSCALE_0_10,border:`1px solid ${ua.GREYSCALE_0_30}`},"&:hover":{backgroundColor:ua.GREYSCALE_0_03,border:`1px solid ${ua.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:ua.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${ua.MISC_FOCUS_BORDER}`,border:`1px solid ${ua.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:ua.GREYSCALE_25,backgroundColor:ua.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:ua.GREYSCALE_0_10,border:`1px solid ${ua.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:pa,height:24,width:24,padding:7},sizeLarge:{fontSize:fa,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:ha,borderRadius:ba}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:ua.GREYSCALE_20},tooltip:{backgroundColor:ua.GREYSCALE_20,fontSize:pa,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const wd=e=>({mode:"light",primary:{ultraLight:ua.GREEN_ULTRA_LIGHT,light:ua.GREEN_PALE,main:ua.GREEN,dark:ua.GREEN_DARK,extraDark:ua.GREEN_EXTRA_DARK,contrastText:ua.WHITE},secondary:{ultraLight:ua.BLUE_ULTRA_LIGHT,light:ua.BLUE_PALE,main:ua.BLUE,dark:ua.BLUE_DARK,extraDark:ua.BLUE_EXTRA_DARK,contrastText:ua.WHITE},error:{ultraLight:ua.RED_ULTRA_LIGHT,light:ua.RED_PALE,main:ua.RED,dark:ua.RED_DARK,extraDark:ua.RED_EXTRA_DARK,contrastText:ua.WHITE},warning:{ultraLight:ua.ORANGE_ULTRA_LIGHT,light:ua.ORANGE_PALE,main:ua.ORANGE,dark:ua.ORANGE_DARK,extraDark:ua.ORANGE_EXTRA_DARK,contrastText:ua.WHITE},success:{ultraLight:ua.GREEN_ULTRA_LIGHT,light:ua.GREEN_PALE,main:ua.GREEN,dark:ua.GREEN_DARK,extraDark:ua.GREEN_EXTRA_DARK,contrastText:ua.WHITE},info:{ultraLight:ua.BLUE_ULTRA_LIGHT,light:ua.BLUE_PALE,main:ua.BLUE,dark:ua.BLUE_DARK,extraDark:ua.BLUE_EXTRA_DARK,contrastText:ua.WHITE},text:{primary:ua.TEXT_PRIMARY,secondary:ua.TEXT_SECONDARY,disabled:ua.GREYSCALE_0_30},action:{hover:ua.GREYSCALE_0_03,hoverOpacity:.03,selected:ua.GREYSCALE_0_05,selectedOpacity:.05,focus:ua.MISC_FOCUS_BORDER},amethyst:{ultraLight:ua.WHITE,main:ua.PURPLE,light:ua.PURPLE_PALE,dark:ua.PURPLE_DARK,extraDark:ua.GREYSCALE_0_0,contrastText:ua.WHITE},background:{paper:ua.WHITE,default:ua.GREYSCALE_95},divider:ua.GREYSCALE_0_15});function Rd(e){return Ui({components:Sd(),palette:wd(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,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)"],transitions:{easing:{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)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:ha,fontWeightLight:ga,fontWeightRegular:va,fontWeightMedium:ya,fontWeightBold:xa,htmlFontSize:ha,fontFamily:Ea.FONT_FAMILY,button:{fontWeight:ya,fontSize:ha,textTransform:"none"},body1:{fontSize:fa,lineHeight:"24px"},body2:{fontSize:ha,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:ma,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:fa,fontWeight:ya,lineHeight:"16px"},h6:{fontSize:ha,fontWeight:ya,lineHeight:"16px"},caption:{color:ua.TEXT_SECONDARY},subtitle1:{fontSize:ha,color:ua.TEXT_SECONDARY},subtitle2:{fontSize:pa,color:ua.TEXT_SECONDARY}},shape:{borderRadius:ba},direction:e})}class _d{translator;muiTheme;containers={};constructor({translator:e}){this.translator=e}sync=({element:e,sharedContainerUtilities:t,translator:n,containerId:r,dataHandler:o,renderHelper:i,chartList:a})=>{this.translator=n,this.containers[r]={element:e,sharedContainerUtilities:t,dataHandler:o,renderHelper:i,chartList:a}};setMuiTheme=e=>{this.muiTheme=Rd(e)};destroy=e=>{delete this.containers[e]}}const kd=["container","sn-layout-container","sn-tabbed-container","listbox","qlik-tabbed-container","qlik-show-hide-container","qlik-trellis-container","qlik-on-demand-reporting","sn-analysis-autochart"];class Ad{embed;translator;charts={};constructor(e,t){this.embed=e,this.translator=t}getCharts=()=>(this.charts=(this.embed?.getRegisteredTypes()??[]).reduce((e,t)=>{if(!kd.includes(t.id)&&!1!==t.libraryInfo?.isLibraryItem&&!t.libraryInfo?.deprecated){const n=t;n.libraryInfo?.translationKey&&(n.libraryInfo.translation=this.translator.get(n.libraryInfo.translationKey)),e[t.id||t.type]=n}return e},{}),this.charts);getChart=e=>(this.charts[e]||this.getCharts(),this.charts[e])}var Ld,Id={};var Td=function(){if(Ld)return Id;Ld=1;var e=M;return Id.createRoot=e.createRoot,Id.hydrateRoot=e.hydrateRoot,Id}();const Pd=x((e,t)=>Ht.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ht.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})})),Md="rgb(89, 89, 89)",Od=zt(Vs)({display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}),jd=zt(Vs)({display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}),$d=zt(Bl,{shouldForwardProp:e=>"width"!==e})(({width:e})=>({"&.MuiList-root":{paddingTop:0,paddingBottom:0,width:e||250,maxHeight:250,overflow:"auto"}})),Nd=zt(ys)({color:Md,fontSize:"12px",fontFamily:"inherit",lineHeight:"24px",margin:"0px"}),zd=zt(sc)({"&.MuiListItemIcon-root":{minWidth:32,color:Md,marginRight:"0px"}}),Dd=zt(wl)({"&.MuiDivider-root":{borderBottom:"3px solid #595959"}}),Bd=zt(nl)({"&.MuiButton-contained":{backgroundColor:Md,color:"rgb(255, 255, 255)"},"&.MuiButton-outlined":{backgroundColor:"rgb(255, 255, 255)",borderColor:Md,color:Md,border:"1px solid rgb(179, 179, 179)","&:hover":{backgroundColor:"rgb(255, 255, 255)",border:`1px solid ${Md}`}}}),Fd=zt(_a)({width:"1em",height:"1em",paddingBottom:"8px"}),Gd=zt(_a)({width:"16px",height:"16px"}),Hd=({name:e,items:t,onSelect:n})=>Ht.jsxs(Ht.Fragment,{children:[Ht.jsx(nc,{dense:!0,children:Ht.jsx(Nd,{noWrap:!0,fontWeight:"bold",children:e})},e),Ht.jsx(Dd,{}),t.map(e=>Ht.jsx(nc,{divider:!0,disablePadding:!0,disableGutters:!0,children:Ht.jsxs(ql,{sx:{minHeight:"32px",height:"auto"},onClick:()=>{n(e)},disableRipple:!0,dense:!0,children:[e.iconPath?Ht.jsx(zd,{children:e.IconDefinition?Ht.jsx(e.IconDefinition,{}):Ht.jsx(Gd,{viewBox:"0 0 16 16",children:Ht.jsx("path",{d:e.iconPath})})}):null,Ht.jsx(Nd,{noWrap:!0,title:e.translation||e.name,children:e.translation||e.name})]})},e.qExtendsId??e.name))]}),Ud=({categories:e,anchorEl:t,onClose:n,onSelect:r,width:o})=>{const[i,a]=R(""),s=!!t;return Ht.jsxs(Rc,{open:s,anchorEl:t,onClose:()=>{a(""),n()},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},sx:{marginTop:"5px"},children:[Ht.jsx($s,{fullWidth:!0,onChange:e=>{a(e.target.value)},startAdornment:Ht.jsx(jl,{position:"start",children:Ht.jsx(Pd,{})})}),Ht.jsx(Dd,{}),Ht.jsx($d,{width:o,children:e.map(e=>{const t=e.items.filter(e=>{const t=e.translation||e.name;return t?.toLocaleLowerCase().indexOf(i.toLocaleLowerCase())>-1});return t.length>0&&Ht.jsx(Hd,{name:e.name,items:t,onSelect:r},e.name)})})]})},Wd=({anchorEl:e,onClose:t,dataHandler:n,translator:r,sharedContainerUtilities:o,width:i})=>{const[a,s]=R([]),[l,c]=R({});_(()=>{if(e&&n){(async()=>{const e=await n.getMasterVizList();s(e),c(n.getCharts())})().catch(()=>{})}},[e,n]);const d=[],u=[],p=new Map,h=Object.values(l);if(0===h.length&&0===a.length)return null;h.forEach(e=>{if(!e.libraryInfo||!e.libraryInfo.isThirdParty&&e.libraryInfo.visible)d.push(e);else if(e.libraryInfo.visible)if(e.libraryInfo.bundle?.name){const t=e.libraryInfo.bundle.name,n=p.get(t);n?n.push(e):p.set(t,[e])}else u.push(e)});const f=e=>e.map(e=>({iconPath:e.libraryInfo?.iconPath,IconDefinition:e.libraryInfo?.IconDefinition,name:e.id,translation:e.libraryInfo?.translation||e.libraryInfo?.name||e.id||"",type:e.id})).toSorted((e,t)=>(e.translation||e.name).localeCompare(t.translation||t.name)),m=[{name:r.get("LayoutContainer.Object.MasterItems"),items:a.map(e=>({qExtendsId:e.qExtendsId,iconPath:l[e.visualization]?.libraryInfo?.iconPath,IconDefinition:l[e.visualization]?.libraryInfo?.IconDefinition,name:e.name,type:e.visualization})).toSorted((e,t)=>e.name.localeCompare(t.name))},{name:r.get("LayoutContainer.Object.Charts"),items:d.map(e=>({iconPath:e.libraryInfo?.iconPath||"",IconDefinition:e.libraryInfo?.IconDefinition,name:e.libraryInfo?.name||e.id,type:e.libraryInfo?.template||e.id,translation:e.libraryInfo?.translation||e.id||""})).toSorted((e,t)=>e.translation.localeCompare(t.translation))},{name:r.get("LayoutContainer.Object.CustomObjects"),items:f(u)}];for(const[e,t]of p)m.push({name:e,items:f(t)});return Ht.jsx(Ud,{categories:m,anchorEl:e,onSelect:e=>{if(!n)return;const{qExtendsId:r}=e;(r?n.addMasterObjectAsChild({initProps:{qExtendsId:r,qInfo:{qType:"undefined"}}}):n.addVizAsChild({type:e.type,objectInitProps:{label:e.translation}})).then(e=>{e?.id&&o?.setSelected([e.id])}).catch(e=>{console.warn(e)}).finally(()=>{t()})},onClose:t,width:i})},Vd=e=>{const t=Yd(e);return e.objects?.map(e=>{const{childRefId:n}=e;if(!n)return e;const r=t[n];return r?{...e,id:r}:e})??[]},qd=(e,t)=>e?.qChildList?.qItems?.find(e=>e?.qData?.childRefId===t),Yd=e=>e?.qChildList?.qItems?.reduce((e,t)=>{const n=t?.qData?.childRefId;return e[n]=t?.qInfo?.qId,e},{});var Kd=qd,Xd=e=>{const t={...e};return t.objects=Vd(t),t},Zd=e=>e?.qChildList?.qItems?.reduce((e,t)=>{const n=t?.qInfo?.qId;return e[n]=t.qData?.childRefId,e},{}),Jd=e=>e.objects.reduce((e,t)=>(e[t.childRefId]=t,e),{}),Qd=(e,t)=>{if(!e)return t;const n=qd(e,t);return n?.qInfo?.qId};class eu{layout;app;activeId="";data;properties=void 0;constructor({app:e,data:t}){this.app=e,this.data=t}get activeContainer(){return this.data.containers[this.activeId]}setSelectedChild=e=>{this.activeContainer?.sharedContainerUtilities?.setSelected(e)};addChild=({initProps:e,objectInitProps:t,children:n})=>{if(!this.activeContainer)return;const{dataHandler:r}=this.activeContainer;if(e?.qExtendsId){const{qExtendsId:o,qInfo:i}=e;return r?.addMasterObjectAsChild({initProps:{qExtendsId:o,qInfo:i},objectInitProps:t,children:n})}return r?.addVizAsChild({type:e?.visualization,initProps:e,objectInitProps:t,children:n})};deleteChild=async e=>{if(!this.activeContainer)return;const{dataHandler:t}=this.activeContainer;await(t?.deleteChildren([e]))};duplicateChild=async e=>{const{childRefId:t,...n}=e,r=this.getEngineId(t);if(!r)return;const o=await(this.app?.getObject(r));if(o&&this.activeContainer){const{sharedContainerUtilities:e}=this.activeContainer,t=await o.getFullPropertyTree(),r=t.qProperty,i=t.qChildren,a=await this.addChild({initProps:r,children:i,objectInitProps:n});a&&e?.setSelected([a.id])}};openAddChildPopover=e=>{if(this.activeContainer&&this.activeContainer.dataHandler&&this.data.muiTheme){const t=((e,t)=>{const n=e.getElementsByClassName(t);let r;return 0===n.length?(r=document.createElement("div"),r.className=t,e.appendChild(r)):r=n[0],Td.createRoot(r)})(this.activeContainer.element,"add-child-popover"),n=()=>{t.unmount()};t?.render(Ht.jsx(ca,{theme:this.data.muiTheme,children:Ht.jsx(Wd,{translator:this.data.translator,anchorEl:e,dataHandler:this.activeContainer.dataHandler,onClose:n,width:220,sharedContainerUtilities:this.activeContainer.sharedContainerUtilities})}))}};getObject(e){const t=this.getEngineId(e);if(t)return this.activeContainer?.renderHelper.objectMap.get(t)}getChartIcon(e){const t=this.getEngineId(e);if(!t)return;const n=this.activeContainer?.renderHelper.getChildLayout(t),r=n?.qData.visualization;return r?this.activeContainer?.chartList?.getChart(r)?.libraryInfo?.icon:void 0}setModel=e=>{this.activeId=e.id};setLayout=e=>{this.layout=e};getLayout=()=>this.layout;getEngineId=e=>Qd(this.layout,e);setProperties=e=>{this.properties=e};canAddDimension=()=>!1;canAddMeasure=()=>!1;canColorBy=()=>!1;getDimensions=()=>[];getMeasures=()=>[];minDimensions=()=>0;minMeasures=()=>0;maxDimensions=()=>0;maxMeasures=()=>0}const tu="object",nu=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];const ru=e=>({value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}});function ou({theme:e,translator:t,id:n,path:r}){const o=()=>e.getStyle(n,r,"fontFamily");return{getDefaultValue:()=>o(),getOptions:()=>function({theme:e,translator:t,defaultValue:n}){const r=[],o=e.getStyle("","","fontFamilies");return Array.isArray(o)&&o.length?r.push(...new Set([n,...o.map(e=>e.split(",").map(e=>e.trim()).map(e=>e.replace(/\s+/g," ").trim()).filter(Boolean).join(", "))])):r.push(n),[{value:"ThemeHeader",label:t.get("properties.themeFonts"),metaText:t.get("properties.theme"),groupHeader:!0},...r.map(e=>ru(e)),{value:"DefaultHeader",label:t.get("properties.allFonts"),metaText:t.get("properties.default"),groupHeader:!0},...nu.map(e=>ru(e))]}({theme:e,translator:t,defaultValue:o()})}}var iu=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"];const au=e=>({value:e,label:e,groupHeader:!1,disabled:!1});function su({theme:e,translator:t,id:n,path:r}){const o=()=>e.getStyle(n,r,"fontSize");return{getDefaultValue:()=>o(),getOptions:()=>function({theme:e,translator:t,defaultValue:n}){const r=[],o=e.getStyle("","","fontSizes");return Array.isArray(o)&&o.length?r.push(...new Set([n,...o])):r.push(n),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0},...r.map(e=>au(e)),{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0},...iu.map(e=>au(e))]}({theme:e,translator:t,defaultValue:o()})}}function lu({theme:e,translator:t,id:n,path:r}){return{fontFamily:ou({theme:e,translator:t,id:n,path:r}),fontSize:su({theme:e,translator:t,id:n,path:r})}}const cu=["__proto__","constructor"],du=e=>{if(cu.some(t=>e.includes(t)))throw new Error("font-resolver: Forbidden property.")};var uu,pu,hu,fu=function(){if(pu)return uu;pu=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return uu=function e(){var t,n,r,l,c,d,u=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"==typeof u&&(f=u,u=arguments[1]||{},p=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});p<h;++p)if(null!=(t=arguments[p]))for(n in t)r=s(u,n),u!==(l=s(t,n))&&(f&&l&&(i(l)||(c=o(l)))?(c?(c=!1,d=r&&o(r)?r:[]):d=r&&i(r)?r:{},a(u,{name:n,newValue:e(f,d,l)})):void 0!==l&&a(u,{name:n,newValue:l}));return u},uu}();function mu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function bu(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function gu(){}(hu=fu)&&hu.__esModule&&Object.prototype.hasOwnProperty.call(hu,"default")&&hu.default;var vu=.7,yu=1/vu,xu="\\s*([+-]?\\d+)\\s*",Eu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Cu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Su=/^#([0-9a-f]{3,8})$/,wu=new RegExp(`^rgb\\(${xu},${xu},${xu}\\)$`),Ru=new RegExp(`^rgb\\(${Cu},${Cu},${Cu}\\)$`),_u=new RegExp(`^rgba\\(${xu},${xu},${xu},${Eu}\\)$`),ku=new RegExp(`^rgba\\(${Cu},${Cu},${Cu},${Eu}\\)$`),Au=new RegExp(`^hsl\\(${Eu},${Cu},${Cu}\\)$`),Lu=new RegExp(`^hsla\\(${Eu},${Cu},${Cu},${Eu}\\)$`),Iu={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 Tu(){return this.rgb().formatHex()}function Pu(){return this.rgb().formatRgb()}function Mu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Su.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ou(t):3===n?new zu(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ju(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ju(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=wu.exec(e))?new zu(t[1],t[2],t[3],1):(t=Ru.exec(e))?new zu(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=_u.exec(e))?ju(t[1],t[2],t[3],t[4]):(t=ku.exec(e))?ju(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Au.exec(e))?Uu(t[1],t[2]/100,t[3]/100,1):(t=Lu.exec(e))?Uu(t[1],t[2]/100,t[3]/100,t[4]):Iu.hasOwnProperty(e)?Ou(Iu[e]):"transparent"===e?new zu(NaN,NaN,NaN,0):null}function Ou(e){return new zu(e>>16&255,e>>8&255,255&e,1)}function ju(e,t,n,r){return r<=0&&(e=t=n=NaN),new zu(e,t,n,r)}function $u(e){return e instanceof gu||(e=Mu(e)),e?new zu((e=e.rgb()).r,e.g,e.b,e.opacity):new zu}function Nu(e,t,n,r){return 1===arguments.length?$u(e):new zu(e,t,n,null==r?1:r)}function zu(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Du(){return`#${Hu(this.r)}${Hu(this.g)}${Hu(this.b)}`}function Bu(){const e=Fu(this.opacity);return`${1===e?"rgb(":"rgba("}${Gu(this.r)}, ${Gu(this.g)}, ${Gu(this.b)}${1===e?")":`, ${e})`}`}function Fu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Gu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Hu(e){return((e=Gu(e))<16?"0":"")+e.toString(16)}function Uu(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Vu(e,t,n,r)}function Wu(e){if(e instanceof Vu)return new Vu(e.h,e.s,e.l,e.opacity);if(e instanceof gu||(e=Mu(e)),!e)return new Vu;if(e instanceof Vu)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 Vu(a,s,l,e.opacity)}function Vu(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function qu(e){return(e=(e||0)%360)<0?e+360:e}function Yu(e){return Math.max(0,Math.min(1,e||0))}function Ku(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}mu(gu,Mu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Tu,formatHex:Tu,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Wu(this).formatHsl()},formatRgb:Pu,toString:Pu}),mu(zu,Nu,bu(gu,{brighter(e){return e=null==e?yu:Math.pow(yu,e),new zu(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?vu:Math.pow(vu,e),new zu(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new zu(Gu(this.r),Gu(this.g),Gu(this.b),Fu(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:Du,formatHex:Du,formatHex8:function(){return`#${Hu(this.r)}${Hu(this.g)}${Hu(this.b)}${Hu(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Bu,toString:Bu})),mu(Vu,function(e,t,n,r){return 1===arguments.length?Wu(e):new Vu(e,t,n,null==r?1:r)},bu(gu,{brighter(e){return e=null==e?yu:Math.pow(yu,e),new Vu(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?vu:Math.pow(vu,e),new Vu(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 zu(Ku(e>=240?e-240:e+120,o,r),Ku(e,o,r),Ku(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Vu(qu(this.h),Yu(this.s),Yu(this.l),Fu(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=Fu(this.opacity);return`${1===e?"hsl(":"hsla("}${qu(this.h)}, ${100*Yu(this.s)}%, ${100*Yu(this.l)}%${1===e?")":`, ${e})`}`}}));const Xu=Math.PI/180,Zu=180/Math.PI,Ju=.96422,Qu=.82521,ep=4/29,tp=6/29,np=3*tp*tp,rp=tp*tp*tp;function op(e){if(e instanceof ip)return new ip(e.l,e.a,e.b,e.opacity);if(e instanceof dp)return up(e);e instanceof zu||(e=$u(e));var t,n,r=cp(e.r),o=cp(e.g),i=cp(e.b),a=ap((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=ap((.4360747*r+.3850649*o+.1430804*i)/Ju),n=ap((.0139322*r+.0971045*o+.7141733*i)/Qu)),new ip(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ip(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ap(e){return e>rp?Math.pow(e,1/3):e/np+ep}function sp(e){return e>tp?e*e*e:np*(e-ep)}function lp(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function cp(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function dp(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function up(e){if(isNaN(e.h))return new ip(e.l,0,0,e.opacity);var t=e.h*Xu;return new ip(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}mu(ip,function(e,t,n,r){return 1===arguments.length?op(e):new ip(e,t,n,null==r?1:r)},bu(gu,{brighter(e){return new ip(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ip(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new zu(lp(3.1338561*(t=Ju*sp(t))-1.6168667*(e=1*sp(e))-.4906146*(n=Qu*sp(n))),lp(-.9787684*t+1.9161415*e+.033454*n),lp(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),mu(dp,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof dp)return new dp(e.h,e.c,e.l,e.opacity);if(e instanceof ip||(e=op(e)),0===e.a&&0===e.b)return new dp(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Zu;return new dp(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new dp(e,t,n,null==r?1:r)},bu(gu,{brighter(e){return new dp(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new dp(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return up(this).rgb()}}));var pp=e=>()=>e;function hp(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):pp(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?hp:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):pp(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Nu(e)).r,(t=Nu(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=hp(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var fp="center",mp="bottom";function bp(e,t,n){if(void 0===e||void 0===t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(void 0===o[t])return n;o=o[t]}return o}[{key:"NoDataExist",alignment:fp,condition:({layoutService:e})=>{if(!e)return!1;const{x:t,y:n}=e.meta.size;return t*n===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:fp,condition:({layoutService:e})=>!!e&&e.getHyperCubeValue("qMeasureInfo").every(e=>"NaN"===e.qMin&&"NaN"===e.qMax)},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:fp,condition:({layoutService:e})=>{if(!e)return!1;const{isContinuous:t}=e.meta;if(!t)return!1;const n=e.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:fp},{key:"DataRangeIncludingZero",alignment:mp},{key:"LimitedData",alignment:mp},{key:"NegativeOrZeroValues",alignment:mp}].reduce((e,t)=>(e[t.key]=t,e),{});const gp=["__proto__","constructor"];function vp(e,t,n){if(void 0===e||void 0===t)return;const r=t.split("."),o=r[r.length-1];if(gp.some(e=>r.includes(e)))return;let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0===i[t]&&(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n?i[o]=n:delete i[o]}function yp(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function xp(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Cp)):void 0===t&&(t=Ep);for(var n,r,o,i,a,s=new Rp(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new Rp(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(wp)}function Ep(e){return e.children}function Cp(e){return Array.isArray(e)?e[1]:null}function Sp(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function wp(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Rp(e){this.data=e,this.depth=this.height=0,this.parent=null}var _p;Rp.prototype=xp.prototype={constructor:Rp,count:function(){return this.eachAfter(yp)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return xp(this).eachBefore(Sp)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},_p=function(e){
|
|
87
|
+
`),Xa.rippleVisible,rs,550,({theme:e})=>e.transitions.easing.easeInOut,Xa.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Xa.child,Xa.childLeaving,os,550,({theme:e})=>e.transitions.easing.easeInOut,Xa.childPulsate,is,({theme:e})=>e.transitions.easing.easeInOut),ls=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=U(n,Za),[s,l]=v.useState([]),c=v.useRef(0),d=v.useRef(null);v.useEffect(()=>{d.current&&(d.current(),d.current=null)},[s]);const u=v.useRef(!1),p=eo(),h=v.useRef(null),f=v.useRef(null),m=v.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l(e=>[...e,Ht.jsx(ss,{classes:{ripple:vr(o.ripple,Xa.ripple),rippleVisible:vr(o.rippleVisible,Xa.rippleVisible),ripplePulsate:vr(o.ripplePulsate,Xa.ripplePulsate),child:vr(o.child,Xa.child),childLeaving:vr(o.childLeaving,Xa.childLeaving),childPulsate:vr(o.childPulsate,Xa.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)]),c.current+=1,d.current=a},[o]),b=v.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&u.current)return void(u.current=!1);"touchstart"===(null==e?void 0:e.type)&&(u.current=!0);const s=a?null:f.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,d,b;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),d=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),d=Math.round(n-l.top)}if(i)b=Math.sqrt((2*l.width**2+l.height**2)/3),b%2==0&&(b+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-d),d)+2;b=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:o,rippleX:c,rippleY:d,rippleSize:b,cb:n})},p.start(80,()=>{h.current&&(h.current(),h.current=null)})):m({pulsate:o,rippleX:c,rippleY:d,rippleSize:b,cb:n})},[r,m,p]),g=v.useCallback(()=>{b({},{pulsate:!0})},[b]),y=v.useCallback((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void p.start(0,()=>{y(e,t)});h.current=null,l(e=>e.length>0?e.slice(1):e),d.current=t},[p]);return v.useImperativeHandle(t,()=>({pulsate:g,start:b,stop:y}),[g,b,y]),Ht.jsx(as,H({className:vr(Xa.root,o.root,i),ref:f},a,{children:Ht.jsx(Ha,{component:null,exit:!0,children:s})}))});function cs(e){return Er("MuiButtonBase",e)}const ds=Cr("MuiButtonBase",["root","disabled","focusVisible"]),us=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],ps=sa("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ds.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),hs=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:u=!1,LinkComponent:p="a",onBlur:h,onClick:f,onContextMenu:m,onDragLeave:b,onFocus:g,onFocusVisible:y,onKeyDown:x,onKeyUp:E,onMouseDown:C,onMouseLeave:S,onMouseUp:w,onTouchEnd:R,onTouchMove:_,onTouchStart:k,tabIndex:A=0,TouchRippleProps:L,touchRippleRef:I,type:T}=n,P=U(n,us),M=v.useRef(null),O=v.useRef(null),j=Xr(O,I),{isFocusVisibleRef:$,onFocus:N,onBlur:D,ref:z}=co(),[B,F]=v.useState(!1);l&&B&&F(!1),v.useImperativeHandle(r,()=>({focusVisible:()=>{F(!0),M.current.focus()}}),[]);const[G,W]=v.useState(!1);v.useEffect(()=>{W(!0)},[]);const V=G&&!c&&!l;function q(e,t,n=d){return Kr(r=>{t&&t(r);return!n&&O.current&&O.current[e](r),!0})}v.useEffect(()=>{B&&u&&!c&&G&&O.current.pulsate()},[c,u,B,G]);const Y=q("start",C),K=q("stop",m),X=q("stop",b),Z=q("stop",w),J=q("stop",e=>{B&&e.preventDefault(),S&&S(e)}),Q=q("start",k),ee=q("stop",R),te=q("stop",_),ne=q("stop",e=>{D(e),!1===$.current&&F(!1),h&&h(e)},!1),re=Kr(e=>{M.current||(M.current=e.currentTarget),N(e),!0===$.current&&(F(!0),y&&y(e)),g&&g(e)}),oe=()=>{const e=M.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ie=v.useRef(!1),ae=Kr(e=>{u&&!ie.current&&B&&O.current&&" "===e.key&&(ie.current=!0,O.current.stop(e,()=>{O.current.start(e)})),e.target===e.currentTarget&&oe()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&oe()&&"Enter"===e.key&&!l&&(e.preventDefault(),f&&f(e))}),se=Kr(e=>{u&&" "===e.key&&O.current&&B&&!e.defaultPrevented&&(ie.current=!1,O.current.stop(e,()=>{O.current.pulsate(e)})),E&&E(e),f&&e.target===e.currentTarget&&oe()&&" "===e.key&&!e.defaultPrevented&&f(e)});let le=s;"button"===le&&(P.href||P.to)&&(le=p);const ce={};"button"===le?(ce.type=void 0===T?"button":T,ce.disabled=l):(P.href||P.to||(ce.role="button"),l&&(ce["aria-disabled"]=l));const de=Xr(t,z,M),ue=H({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:d,focusRipple:u,tabIndex:A,focusVisible:B}),pe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=mo({root:["root",t&&"disabled",n&&"focusVisible"]},cs,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Ht.jsxs(ps,H({as:le,className:vr(pe.root,a),ownerState:ue,onBlur:ne,onClick:f,onContextMenu:K,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:Y,onMouseLeave:J,onMouseUp:Z,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:de,tabIndex:l?-1:A,type:T},ce,P,{children:[i,V?Ht.jsx(ls,H({ref:j,center:o},L)):null]}))});function fs(e){return Er("MuiTypography",e)}Cr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ms=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],bs=sa("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${cn(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>H({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),gs={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},vs={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ys=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiTypography"}),r=(e=>vs[e]||e)(n.color),o=hr(H({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:d=!1,variant:u="body1",variantMapping:p=gs}=o,h=U(o,ms),f=H({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:d,variant:u,variantMapping:p}),m=s||(d?"p":p[u]||gs[u])||"span",b=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return mo({root:["root",i,"inherit"!==e.align&&`align${cn(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},fs,a)})(f);return Ht.jsx(bs,H({as:m,ref:t,ownerState:f,className:vr(b.root,a)},h))});const xs=v.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=v.useState(null),s=Xr(v.isValidElement(n)?Eo(n):null,t);if($r(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),$r(()=>{if(i&&!o)return Wr(t,i),()=>{Wr(t,null)}},[t,i,o]),o){if(v.isValidElement(n)){const e={ref:s};return v.cloneElement(n,e)}return Ht.jsx(v.Fragment,{children:n})}return Ht.jsx(v.Fragment,{children:i?P.createPortal(n,i):i})}),Es=["onChange","maxRows","minRows","style","value"];function Cs(e){return parseInt(e,10)||0}const Ss={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function ws(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Rs=v.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=U(e,Es),{current:l}=v.useRef(null!=a),c=v.useRef(null),d=Xr(t,c),u=v.useRef(null),p=v.useRef(null),h=v.useCallback(()=>{const t=c.current,n=p.current;if(!t||!n)return;const i=Ur(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,s=Cs(i.paddingBottom)+Cs(i.paddingTop),l=Cs(i.borderBottomWidth)+Cs(i.borderTopWidth),d=n.scrollHeight;n.value="x";const u=n.scrollHeight;let h=d;o&&(h=Math.max(Number(o)*u,h)),r&&(h=Math.min(Number(r)*u,h)),h=Math.max(h,u);return{outerHeightStyle:h+("border-box"===a?s+l:0),overflowing:Math.abs(h-d)<=1}},[r,o,e.placeholder]),f=Kr(()=>{const e=c.current,t=h();if(!e||!t||ws(t))return!1;const n=t.outerHeightStyle;return null!=u.current&&u.current!==n}),m=v.useCallback(()=>{const e=c.current,t=h();if(!e||!t||ws(t))return;const n=t.outerHeightStyle;u.current!==n&&(u.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[h]),b=v.useRef(-1);$r(()=>{const e=Gr(m),t=null==c?void 0:c.current;if(!t)return;const n=Ur(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{f()&&(r.unobserve(t),cancelAnimationFrame(b.current),m(),b.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(b.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[h,m,f]),$r(()=>{m()});return Ht.jsxs(v.Fragment,{children:[Ht.jsx("textarea",H({value:a,onChange:e=>{l||m(),n&&n(e)},ref:d,rows:o,style:i},s)),Ht.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:H({},Ss,i,{paddingTop:0,paddingBottom:0})})]})});const _s=v.createContext(void 0);function ks(){return v.useContext(_s)}function As(e){return Ht.jsx(ur,H({},e,{defaultTheme:Wi,themeId:G}))}function Ls(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Is(e){return Er("MuiInputBase",e)}const Ts=Cr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ps=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Ms=sa("div",{name:"MuiInputBase",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${cn(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})(({theme:e,ownerState:t})=>H({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ts.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&H({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Os=sa("input",{name:"MuiInputBase",slot:"Input",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]}})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=H({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return H({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ts.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Ts.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})}),js=Ht.jsx(As,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),$s=v.forwardRef(function(e,t){var n;const r=Ca({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:c={},defaultValue:d,disabled:u,disableInjectingGlobalStyles:p,endAdornment:h,fullWidth:f=!1,id:m,inputComponent:b="input",inputProps:g={},inputRef:y,maxRows:x,minRows:E,multiline:C=!1,name:S,onBlur:w,onChange:R,onClick:_,onFocus:k,onKeyDown:A,onKeyUp:L,placeholder:I,readOnly:T,renderSuffix:P,rows:M,slotProps:O={},slots:j={},startAdornment:$,type:N="text",value:D}=r,z=U(r,Ps),F=null!=g.value?g.value:D,{current:G}=v.useRef(null!=F),W=v.useRef(),V=v.useCallback(e=>{},[]),q=Xr(W,y,g.ref,V),[Y,K]=v.useState(!1),X=ks(),Z=function({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}({props:r,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Z.focused=X?X.focused:Y,v.useEffect(()=>{!X&&u&&Y&&(K(!1),w&&w())},[X,u,Y,w]);const J=X&&X.onFilled,Q=X&&X.onEmpty,ee=v.useCallback(e=>{!function(e,t=!1){return e&&(Ls(e.value)&&""!==e.value||t&&Ls(e.defaultValue)&&""!==e.defaultValue)}(e)?Q&&Q():J&&J()},[J,Q]);$r(()=>{G&&ee({value:F})},[F,ee,G]);v.useEffect(()=>{ee(W.current)},[]);let te=b,ne=g;C&&"input"===te&&(ne=H(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:x,minRows:E},ne),te=Rs);v.useEffect(()=>{X&&X.setAdornedStart(Boolean($))},[X,$]);const re=H({},r,{color:Z.color||"primary",disabled:Z.disabled,endAdornment:h,error:Z.error,focused:Z.focused,formControl:X,fullWidth:f,hiddenLabel:Z.hiddenLabel,multiline:C,size:Z.size,startAdornment:$,type:N}),oe=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:u,size:p,startAdornment:h,type:f}=e;return mo({root:["root",`color${cn(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${cn(p)}`,d&&"multiline",h&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",u&&"readOnly"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",d&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",u&&"readOnly"]},Is,t)})(re),ie=j.root||l.Root||Ms,ae=O.root||c.root||{},se=j.input||l.Input||Os;return ne=H({},ne,null!=(n=O.input)?n:c.input),Ht.jsxs(v.Fragment,{children:[!p&&js,Ht.jsxs(ie,H({},ae,!bo(ie)&&{ownerState:H({},re,ae.ownerState)},{ref:t,onClick:e=>{W.current&&e.currentTarget===e.target&&W.current.focus(),_&&_(e)}},z,{className:vr(oe.root,ae.className,s,T&&"MuiInputBase-readOnly"),children:[$,Ht.jsx(_s.Provider,{value:null,children:Ht.jsx(se,H({ownerState:re,"aria-invalid":Z.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:d,disabled:Z.disabled,id:m,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?W.current:{value:"x"})},name:S,placeholder:I,readOnly:T,required:Z.required,rows:M,value:F,onKeyDown:A,onKeyUp:L,type:N},ne,!bo(se)&&{as:te,ownerState:H({},re,ne.ownerState)},{ref:q,className:vr(oe.input,ne.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),g.onBlur&&g.onBlur(e),X&&X.onBlur?X.onBlur(e):K(!1)},onChange:(e,...t)=>{if(!G){const t=e.target||W.current;if(null==t)throw new Error(B(1));ee({value:t.value})}g.onChange&&g.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Z.disabled?e.stopPropagation():(k&&k(e),g.onFocus&&g.onFocus(e),X&&X.onFocus?X.onFocus(e):K(!0))}}))}),h,P?P(H({},Z,{startAdornment:$})):null]}))]})}),Ns=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Ds={entering:{opacity:1},entered:{opacity:1}},zs=v.forwardRef(function(e,t){const n=Vi(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:d,onEntering:u,onExit:p,onExited:h,onExiting:f,style:m,timeout:b=r,TransitionComponent:g=Na}=e,y=U(e,Ns),x=v.useRef(null),E=Xr(x,Eo(a),t),C=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},S=C(u),w=C((e,t)=>{Ua(e);const r=Wa({style:m,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)}),R=C(d),_=C(f),k=C(e=>{const t=Wa({style:m,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)}),A=C(h);return Ht.jsx(g,H({appear:i,in:l,nodeRef:x,onEnter:w,onEntered:R,onEntering:S,onExit:k,onExited:A,onExiting:_,addEndListener:e=>{o&&o(x.current,e)},timeout:b},y,{children:(e,t)=>v.cloneElement(a,H({style:H({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Ds[e],m,a.props.style),ref:E},t))}))});function Bs(e){return Er("MuiBackdrop",e)}Cr("MuiBackdrop",["root","invisible"]);const Fs=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Gs=sa("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>H({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Hs=v.forwardRef(function(e,t){var n,r,o;const i=Ca({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:d={},invisible:u=!1,open:p,slotProps:h={},slots:f={},TransitionComponent:m=zs,transitionDuration:b}=i,g=U(i,Fs),v=H({},i,{component:l,invisible:u}),y=(e=>{const{classes:t,invisible:n}=e;return mo({root:["root",n&&"invisible"]},Bs,t)})(v),x=null!=(n=h.root)?n:d.root;return Ht.jsx(m,H({in:p,timeout:b},g,{children:Ht.jsx(Gs,H({"aria-hidden":!0},x,{as:null!=(r=null!=(o=f.root)?o:c.Root)?r:l,className:vr(y.root,s,null==x?void 0:x.className),ownerState:H({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}),Us=Cr("MuiBox",["root"]),Ws=Ui(),Vs=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Vt("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(nr);return v.forwardRef(function(e,a){const s=cr(n),l=hr(e),{className:c,component:d="div"}=l,u=U(l,yr);return Ht.jsx(i,H({as:d,ref:a,className:vr(c,o?o(r):r),theme:t&&s[t]||s},u))})}({themeId:G,defaultTheme:Ws,defaultClassName:Us.root,generateClassName:br.generate});function qs(e){return Er("MuiButton",e)}const Ys=Cr("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Ks=v.createContext({}),Xs=v.createContext(void 0),Zs=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Js=e=>H({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Qs=sa(hs,{shouldForwardProp:e=>aa(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${cn(n.color)}`],t[`size${cn(n.size)}`],t[`${n.variant}Size${cn(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return H({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":H({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Uo.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Uo.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Uo.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":H({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ys.focusVisible}`]:H({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ys.disabled}`]:H({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Uo.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ys.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ys.disabled}`]:{boxShadow:"none"}}),el=sa("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${cn(n.size)}`]]}})(({ownerState:e})=>H({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Js(e))),tl=sa("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${cn(n.size)}`]]}})(({ownerState:e})=>H({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Js(e))),nl=v.forwardRef(function(e,t){const n=v.useContext(Ks),r=v.useContext(Xs),o=Ca({props:jr(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:u=!1,endIcon:p,focusVisibleClassName:h,fullWidth:f=!1,size:m="medium",startIcon:b,type:g,variant:y="text"}=o,x=U(o,Zs),E=H({},o,{color:a,component:s,disabled:c,disableElevation:d,disableFocusRipple:u,fullWidth:f,size:m,type:g,variant:y}),C=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return H({},a,mo({root:["root",i,`${i}${cn(t)}`,`size${cn(o)}`,`${i}Size${cn(o)}`,`color${cn(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${cn(o)}`],endIcon:["icon","endIcon",`iconSize${cn(o)}`]},qs,a))})(E),S=b&&Ht.jsx(el,{className:C.startIcon,ownerState:E,children:b}),w=p&&Ht.jsx(tl,{className:C.endIcon,ownerState:E,children:p}),R=r||"";return Ht.jsxs(Qs,H({ownerState:E,className:vr(n.className,C.root,l,R),component:s,disabled:c,focusRipple:!u,focusVisibleClassName:vr(C.focusVisible,h),ref:t,type:g},x,{classes:C,children:[S,i,w]}))});function rl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ol(e){return parseInt(Ur(e).getComputedStyle(e).paddingRight,10)||0}function il(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&rl(e,o)})}function al(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function sl(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Hr(e);return t.body===e?Ur(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=uo(Hr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ol(r)+e}px`;const t=Hr(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${ol(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Hr(r).body;else{const t=r.parentElement,n=Ur(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}const ll=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function cl(e){const t=[],n=[];return Array.from(e.querySelectorAll(ll)).forEach((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function dl(){return!0}function ul(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=cl,isEnabled:a=dl,open:s}=e,l=v.useRef(!1),c=v.useRef(null),d=v.useRef(null),u=v.useRef(null),p=v.useRef(null),h=v.useRef(!1),f=v.useRef(null),m=Xr(Eo(t),f),b=v.useRef(null);v.useEffect(()=>{s&&f.current&&(h.current=!n)},[n,s]),v.useEffect(()=>{if(!s||!f.current)return;const e=Hr(f.current);return f.current.contains(e.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),h.current&&f.current.focus()),()=>{o||(u.current&&u.current.focus&&(l.current=!0,u.current.focus()),u.current=null)}},[s]),v.useEffect(()=>{if(!s||!f.current)return;const e=Hr(f.current),t=t=>{b.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===f.current&&t.shiftKey&&(l.current=!0,d.current&&d.current.focus())},n=()=>{const t=f.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=i(f.current)),n.length>0){var o,s;const e=Boolean((null==(o=b.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=b.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,a,s,i]);const g=e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0};return Ht.jsxs(v.Fragment,{children:[Ht.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:c,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:m,onFocus:e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Ht.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:d,"data-testid":"sentinelEnd"})]})}const pl=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&rl(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);il(t,e.mount,e.modalRef,r,!0);const o=al(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=al(this.containers,t=>-1!==t.modals.indexOf(e)),r=this.containers[n];r.restore||(r.restore=sl(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=al(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&rl(e.modalRef,t),il(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&rl(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function hl(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=pl,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:d,rootRef:u}=e,p=v.useRef({}),h=v.useRef(null),f=v.useRef(null),m=Xr(f,u),[b,g]=v.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const E=()=>(p.current.modalRef=f.current,p.current.mount=h.current,p.current),C=()=>{o.mount(E(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},S=Kr(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Hr(h.current).body;o.add(E(),e),f.current&&C()}),w=v.useCallback(()=>o.isTopModal(E()),[o]),R=Kr(e=>{h.current=e,e&&(d&&w()?C():f.current&&rl(f.current,x))}),_=v.useCallback(()=>{o.remove(E(),x)},[x,o]);v.useEffect(()=>()=>{_()},[_]),v.useEffect(()=>{d?S():y&&i||_()},[d,_,y,i,S]);const k=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},A=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=go(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=H({},n,t);return H({role:"presentation"},r,{onKeyDown:k(r),ref:m})},getBackdropProps:(e={})=>H({"aria-hidden":!0},e,{onClick:A(e),open:d}),getTransitionProps:()=>({onEnter:Fr(()=>{g(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:Fr(()=>{g(!0),s&&s(),i&&_()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}function fl(e){return Er("MuiModal",e)}Cr("MuiModal",["root","hidden","backdrop"]);const ml=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],bl=sa("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>H({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),gl=sa(Hs,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),vl=v.forwardRef(function(e,t){var n,r,o,i,a,s;const l=Ca({name:"MuiModal",props:e}),{BackdropComponent:c=gl,BackdropProps:d,className:u,closeAfterTransition:p=!1,children:h,container:f,component:m,components:b={},componentsProps:g={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:E=!1,disablePortal:C=!1,disableRestoreFocus:S=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:_=!1,onBackdropClick:k,open:A,slotProps:L,slots:I}=l,T=U(l,ml),P=H({},l,{closeAfterTransition:p,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:E,disablePortal:C,disableRestoreFocus:S,disableScrollLock:w,hideBackdrop:R,keepMounted:_}),{getRootProps:M,getBackdropProps:O,getTransitionProps:j,portalRef:$,isTopModal:N,exited:D,hasTransition:z}=hl(H({},P,{rootRef:t})),B=H({},P,{exited:D}),F=(e=>{const{open:t,exited:n,classes:r}=e;return mo({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},fl,r)})(B),G={};if(void 0===h.props.tabIndex&&(G.tabIndex="-1"),z){const{onEnter:e,onExited:t}=j();G.onEnter=e,G.onExited=t}const W=null!=(n=null!=(r=null==I?void 0:I.root)?r:b.Root)?n:bl,V=null!=(o=null!=(i=null==I?void 0:I.backdrop)?i:b.Backdrop)?o:c,q=null!=(a=null==L?void 0:L.root)?a:g.root,Y=null!=(s=null==L?void 0:L.backdrop)?s:g.backdrop,K=xo({elementType:W,externalSlotProps:q,externalForwardedProps:T,getSlotProps:M,additionalProps:{ref:t,as:m},ownerState:B,className:vr(u,null==q?void 0:q.className,null==F?void 0:F.root,!B.open&&B.exited&&(null==F?void 0:F.hidden))}),X=xo({elementType:V,externalSlotProps:Y,additionalProps:d,getSlotProps:e=>O(H({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:vr(null==Y?void 0:Y.className,null==d?void 0:d.className,null==F?void 0:F.backdrop),ownerState:B});return _||A||z&&!D?Ht.jsx(xs,{ref:$,container:f,disablePortal:C,children:Ht.jsxs(W,H({},K,{children:[!R&&c?Ht.jsx(V,H({},X)):null,Ht.jsx(ul,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:S,isEnabled:N,open:A,children:v.cloneElement(h,G)})]}))}):null});function yl(e){return Er("MuiDivider",e)}const xl=Cr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),El=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Cl=sa("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>H({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Uo.alpha(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>H({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>H({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>H({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>H({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Sl=sa("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>H({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),wl=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:d=("hr"!==a?"separator":void 0),textAlign:u="center",variant:p="fullWidth"}=n,h=U(n,El),f=H({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:d,textAlign:u,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return mo({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},yl,r)})(f);return Ht.jsx(Cl,H({as:a,className:vr(m.root,i),role:d,ref:t,ownerState:f},h,{children:o?Ht.jsx(Sl,{className:m.wrapper,ownerState:f,children:o}):null}))});wl.muiSkipListHighlight=!0;const Rl=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function _l(e){return`scale(${e}, ${e**2})`}const kl={entering:{opacity:1,transform:_l(1)},entered:{opacity:1,transform:"none"}},Al="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ll=v.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:d,onExited:u,onExiting:p,style:h,timeout:f="auto",TransitionComponent:m=Na}=e,b=U(e,Rl),g=eo(),y=v.useRef(),x=Vi(),E=v.useRef(null),C=Xr(E,Eo(o),t),S=e=>t=>{if(e){const n=E.current;void 0===t?e(n):e(n,t)}},w=S(c),R=S((e,t)=>{Ua(e);const{duration:n,delay:r,easing:o}=Wa({style:h,timeout:f,easing:i},{mode:"enter"});let a;"auto"===f?(a=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:Al?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)}),_=S(l),k=S(p),A=S(e=>{const{duration:t,delay:n,easing:r}=Wa({style:h,timeout:f,easing:i},{mode:"exit"});let o;"auto"===f?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:Al?o:.666*o,delay:Al?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=_l(.75),d&&d(e)}),L=S(u);return Ht.jsx(m,H({appear:r,in:a,nodeRef:E,onEnter:R,onEntered:_,onEntering:w,onExit:A,onExited:L,onExiting:k,addEndListener:e=>{"auto"===f&&g.start(y.current||0,e),n&&n(E.current,e)},timeout:"auto"===f?null:f},b,{children:(e,t)=>v.cloneElement(o,H({style:H({opacity:0,transform:_l(.75),visibility:"exited"!==e||a?void 0:"hidden"},kl[e],h,o.props.style),ref:C},t))}))});function Il(e){return Er("MuiInputAdornment",e)}Ll.muiSupportAuto=!0;const Tl=Cr("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Pl;const Ml=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Ol=sa("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${cn(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(({theme:e,ownerState:t})=>H({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${Tl.positionStart}&:not(.${Tl.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),jl=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:c}=n,d=U(n,Ml),u=ks()||{};let p=c;c&&u.variant,u&&!p&&(p=u.variant);const h=H({},n,{hiddenLabel:u.hiddenLabel,size:u.size,disablePointerEvents:a,position:l,variant:p}),f=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return mo({root:["root",n&&"disablePointerEvents",o&&`position${cn(o)}`,a,r&&"hiddenLabel",i&&`size${cn(i)}`]},Il,t)})(h);return Ht.jsx(_s.Provider,{value:null,children:Ht.jsx(Ol,H({as:i,ownerState:h,className:vr(f.root,o),ref:t},d,{children:"string"!=typeof r||s?Ht.jsxs(v.Fragment,{children:["start"===l?Pl||(Pl=Ht.jsx("span",{className:"notranslate",children:""})):null,r]}):Ht.jsx(ys,{color:"text.secondary",children:r})}))})}),$l=v.createContext({});function Nl(e){return Er("MuiList",e)}Cr("MuiList",["root","padding","dense","subheader"]);const Dl=["children","className","component","dense","disablePadding","subheader"],zl=sa("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>H({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Bl=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=U(n,Dl),d=v.useMemo(()=>({dense:a}),[a]),u=H({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return mo({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Nl,t)})(u);return Ht.jsx($l.Provider,{value:d,children:Ht.jsxs(zl,H({as:i,className:vr(p.root,o),ref:t,ownerState:u},c,{children:[l,r]}))})});function Fl(e){return Er("MuiListItem",e)}const Gl=Cr("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function Hl(e){return Er("MuiListItemButton",e)}const Ul=Cr("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Wl=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Vl=sa(hs,{shouldForwardProp:e=>aa(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>H({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ul.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ul.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ul.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ul.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ul.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),ql=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:o=!1,component:i="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:d,selected:u=!1,className:p}=n,h=U(n,Wl),f=v.useContext($l),m=v.useMemo(()=>({dense:s||f.dense||!1,alignItems:r,disableGutters:l}),[r,f.dense,s,l]),b=v.useRef(null);$r(()=>{o&&b.current&&b.current.focus()},[o]);const g=H({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:u}),y=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return H({},n,mo({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},Hl,n))})(g),x=Xr(b,t);return Ht.jsx($l.Provider,{value:m,children:Ht.jsx(Vl,H({ref:x,href:h.href||h.to,component:(h.href||h.to)&&"div"===i?"button":i,focusVisibleClassName:vr(y.focusVisible,d),ownerState:g,className:vr(y.root,p)},h,{classes:y,children:a}))})});function Yl(e){return Er("MuiListItemSecondaryAction",e)}Cr("MuiListItemSecondaryAction",["root","disableGutters"]);const Kl=["className"],Xl=sa("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>H({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Zl=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=U(n,Kl),i=H({},n,{disableGutters:v.useContext($l).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return mo({root:["root",t&&"disableGutters"]},Yl,n)})(i);return Ht.jsx(Xl,H({className:vr(a.root,r),ownerState:i,ref:t},o))});Zl.muiName="ListItemSecondaryAction";const Jl=["className"],Ql=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],ec=sa("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})(({theme:e,ownerState:t})=>H({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&H({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Ul.root}`]:{paddingRight:48}},{[`&.${Gl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Gl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Gl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gl.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),tc=sa("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),nc=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,className:s,component:l,components:c={},componentsProps:d={},ContainerComponent:u="li",ContainerProps:{className:p}={},dense:h=!1,disabled:f=!1,disableGutters:m=!1,disablePadding:b=!1,divider:g=!1,focusVisibleClassName:y,secondaryAction:x,selected:E=!1,slotProps:C={},slots:S={}}=n,w=U(n.ContainerProps,Jl),R=U(n,Ql),_=v.useContext($l),k=v.useMemo(()=>({dense:h||_.dense||!1,alignItems:r,disableGutters:m}),[r,_.dense,h,m]),A=v.useRef(null);$r(()=>{o&&A.current&&A.current.focus()},[o]);const L=v.Children.toArray(a),I=L.length&&(T=L[L.length-1],P=["ListItemSecondaryAction"],v.isValidElement(T)&&-1!==P.indexOf(null!=(M=T.type.muiName)?M:null==(O=T.type)||null==(O=O._payload)||null==(O=O.value)?void 0:O.muiName));var T,P,M,O;const j=H({},n,{alignItems:r,autoFocus:o,button:i,dense:k.dense,disabled:f,disableGutters:m,disablePadding:b,divider:g,hasSecondaryAction:I,selected:E}),$=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:d}=e;return mo({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},Fl,r)})(j),N=Xr(A,t),D=S.root||c.Root||ec,z=C.root||d.root||{},B=H({className:vr($.root,z.className,s),disabled:f},R);let F=l||"li";return i&&(B.component=l||"div",B.focusVisibleClassName=vr(Gl.focusVisible,y),F=hs),I?(F=B.component||l?F:"div","li"===u&&("li"===F?F="div":"li"===B.component&&(B.component="div")),Ht.jsx($l.Provider,{value:k,children:Ht.jsxs(tc,H({as:u,className:vr($.container,p),ref:N,ownerState:j},w,{children:[Ht.jsx(D,H({},z,!bo(D)&&{as:F,ownerState:H({},j,z.ownerState)},B,{children:L})),L.pop()]}))})):Ht.jsx($l.Provider,{value:k,children:Ht.jsxs(D,H({},z,{as:F,ref:N},!bo(D)&&{ownerState:H({},j,z.ownerState)},B,{children:[L,x&&Ht.jsx(Zl,{children:x})]}))})});function rc(e){return Er("MuiListItemIcon",e)}const oc=Cr("MuiListItemIcon",["root","alignItemsFlexStart"]),ic=["className"],ac=sa("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>H({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),sc=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=U(n,ic),i=H({},n,{alignItems:v.useContext($l).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return mo({root:["root","flex-start"===t&&"alignItemsFlexStart"]},rc,n)})(i);return Ht.jsx(ac,H({className:vr(a.root,r),ownerState:i,ref:t},o))}),lc=Cr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),cc=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function dc(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function uc(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function pc(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function hc(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&pc(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const fc=v.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu"}=e,u=U(e,cc),p=v.useRef(null),h=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});$r(()=>{r&&p.current.focus()},[r]),v.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${uo(Hr(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}}),[]);const f=Xr(p,t);let m=-1;v.Children.forEach(i,(e,t)=>{v.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))});const b=v.Children.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),v.cloneElement(e,t)}return e});return Ht.jsx(Bl,H({role:"menu",ref:f,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Hr(t).activeElement;if("ArrowDown"===n)e.preventDefault(),hc(t,r,l,s,dc);else if("ArrowUp"===n)e.preventDefault(),hc(t,r,l,s,uc);else if("Home"===n)e.preventDefault(),hc(t,null,l,s,dc);else if("End"===n)e.preventDefault(),hc(t,null,l,s,uc);else if(1===n.length){const o=h.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=r&&!o.repeating&&pc(r,o);o.previousKeyMatched&&(l||hc(t,r,!1,s,dc,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},u,{children:b}))});function mc(e){return Er("MuiPopover",e)}Cr("MuiPopover",["root","paper"]);const bc=["onEntering"],gc=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],vc=["slotProps"];function yc(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function xc(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Ec(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Cc(e){return"function"==typeof e?e():e}const Sc=sa(vl,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wc=sa(Ka,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Rc=v.forwardRef(function(e,t){var n,r,o;const i=Ca({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:u,className:p,container:h,elevation:f=8,marginThreshold:m=16,open:b,PaperProps:g={},slots:y,slotProps:x,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:C=Ll,transitionDuration:S="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,_=U(i.TransitionProps,bc),k=U(i,gc),A=null!=(n=null==x?void 0:x.paper)?n:g,L=v.useRef(),I=Xr(L,A.ref),T=H({},i,{anchorOrigin:l,anchorReference:d,elevation:f,marginThreshold:m,externalPaperSlotProps:A,transformOrigin:E,TransitionComponent:C,transitionDuration:S,TransitionProps:_}),P=(e=>{const{classes:t}=e;return mo({root:["root"],paper:["paper"]},mc,t)})(T),M=v.useCallback(()=>{if("anchorPosition"===d)return c;const e=Cc(s),t=(e&&1===e.nodeType?e:Hr(L.current).body).getBoundingClientRect();return{top:t.top+yc(t,l.vertical),left:t.left+xc(t,l.horizontal)}},[s,l.horizontal,l.vertical,c,d]),O=v.useCallback(e=>({vertical:yc(e,E.vertical),horizontal:xc(e,E.horizontal)}),[E.horizontal,E.vertical]),j=v.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=O(t);if("none"===d)return{top:null,left:null,transformOrigin:Ec(n)};const r=M();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,c=Ur(Cc(s)),u=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>u){const e=a-u;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(l>p){const e=l-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Ec(n)}},[s,d,M,O,m]),[$,N]=v.useState(b),D=v.useCallback(()=>{const e=L.current;if(!e)return;const t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)},[j]);v.useEffect(()=>(R&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D)),[s,R,D]);v.useEffect(()=>{b&&D()}),v.useImperativeHandle(a,()=>b?{updatePosition:()=>{D()}}:null,[b,D]),v.useEffect(()=>{if(!b)return;const e=Gr(()=>{D()}),t=Ur(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,b,D]);let z=S;"auto"!==S||C.muiSupportAuto||(z=void 0);const B=h||(s?Hr(Cc(s)).body:void 0),F=null!=(r=null==y?void 0:y.root)?r:Sc,G=null!=(o=null==y?void 0:y.paper)?o:wc,W=xo({elementType:G,externalSlotProps:H({},A,{style:$?A.style:H({},A.style,{opacity:0})}),additionalProps:{elevation:f,ref:I},ownerState:T,className:vr(P.paper,null==A?void 0:A.className)}),V=xo({elementType:F,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:B,open:b},ownerState:T,className:vr(P.root,p)}),{slotProps:q}=V,Y=U(V,vc);return Ht.jsx(F,H({},Y,!bo(F)&&{slotProps:q,disableScrollLock:R},{children:Ht.jsx(C,H({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),D()},onExited:()=>{N(!1)},timeout:z},_,{children:Ht.jsx(G,H({},W,{children:u}))}))}))});function _c(e){return Er("MuiMenu",e)}Cr("MuiMenu",["root","paper","list"]);const kc=["onEntering"],Ac=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Lc={vertical:"top",horizontal:"right"},Ic={vertical:"top",horizontal:"left"},Tc=sa(Rc,{shouldForwardProp:e=>aa(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Pc=sa(wc,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Mc=sa(fc,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Oc=v.forwardRef(function(e,t){var n,r;const o=Ca({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:d,open:u,PaperProps:p={},PopoverClasses:h,transitionDuration:f="auto",TransitionProps:{onEntering:m}={},variant:b="selectedMenu",slots:g={},slotProps:y={}}=o,x=U(o.TransitionProps,kc),E=U(o,Ac),C=Lo(),S=H({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:f,TransitionProps:x,variant:b}),w=(e=>{const{classes:t}=e;return mo({root:["root"],paper:["paper"],list:["list"]},_c,t)})(S),R=i&&!l&&u,_=v.useRef(null);let k=-1;v.Children.map(a,(e,t)=>{v.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===k)&&(k=t))});const A=null!=(n=g.paper)?n:Pc,L=null!=(r=y.paper)?r:p,I=xo({elementType:g.root,externalSlotProps:y.root,ownerState:S,className:[w.root,s]}),T=xo({elementType:A,externalSlotProps:L,ownerState:S,className:w.paper});return Ht.jsx(Tc,H({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Lc:Ic,slots:{paper:A,root:g.root},slotProps:{root:I,paper:T},open:u,ref:t,transitionDuration:f,TransitionProps:H({onEntering:(e,t)=>{_.current&&_.current.adjustStyleForScrollbar(e,{direction:C?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:S},E,{classes:h,children:Ht.jsx(Mc,H({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:_,autoFocus:i&&(-1===k||l),autoFocusItem:R,variant:b},c,{className:vr(w.list,c.className),children:a}))}))});function jc(e){return Er("MuiMenuItem",e)}const $c=Cr("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Nc=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Dc=sa(hs,{shouldForwardProp:e=>aa(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>H({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${$c.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${$c.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${$c.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${$c.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$c.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${xl.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${xl.inset}`]:{marginLeft:52},[`& .${lc.root}`]:{marginTop:0,marginBottom:0},[`& .${lc.inset}`]:{paddingLeft:36},[`& .${oc.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&H({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${oc.root} svg`]:{fontSize:"1.25rem"}}))),zc=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:u}=n,p=U(n,Nc),h=v.useContext($l),f=v.useMemo(()=>({dense:i||h.dense||!1,disableGutters:s}),[h.dense,i,s]),m=v.useRef(null);$r(()=>{r&&m.current&&m.current.focus()},[r]);const b=H({},n,{dense:f.dense,divider:a,disableGutters:s}),g=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return H({},a,mo({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},jc,a))})(n),y=Xr(m,t);let x;return n.disabled||(x=void 0!==d?d:-1),Ht.jsx($l.Provider,{value:f,children:Ht.jsx(Dc,H({ref:y,role:c,tabIndex:x,component:o,focusVisibleClassName:vr(g.focusVisible,l),className:vr(g.root,u)},p,{ownerState:b,classes:g}))})});function Bc(e){return Er("MuiTab",e)}const Fc=Cr("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Gc=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Hc=sa(hs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${cn(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Fc.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>H({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Fc.iconWrapper}`]:H({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${Fc.selected}`]:{opacity:1},[`&.${Fc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${Fc.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Fc.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${Fc.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Fc.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Uc=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiTab"}),{className:r,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:a,icon:s,iconPosition:l="top",indicator:c,label:d,onChange:u,onClick:p,onFocus:h,selected:f,selectionFollowsFocus:m,textColor:b="inherit",value:g,wrapped:y=!1}=n,x=U(n,Gc),E=H({},n,{disabled:o,disableFocusRipple:i,selected:f,icon:!!s,iconPosition:l,label:!!d,fullWidth:a,textColor:b,wrapped:y}),C=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e;return mo({root:["root",i&&a&&"labelIcon",`textColor${cn(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]},Bc,t)})(E),S=s&&d&&v.isValidElement(s)?v.cloneElement(s,{className:vr(C.iconWrapper,s.props.className)}):s;return Ht.jsxs(Hc,H({focusRipple:!i,className:vr(C.root,r),ref:t,role:"tab","aria-selected":f,disabled:o,onClick:e=>{!f&&u&&u(e,g),p&&p(e)},onFocus:e=>{m&&!f&&u&&u(e,g),h&&h(e)},ownerState:E,tabIndex:f?0:-1},x,{children:["top"===l||"start"===l?Ht.jsxs(v.Fragment,{children:[S,d]}):Ht.jsxs(v.Fragment,{children:[d,S]}),c]}))});var Wc=ka(Ht.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Vc=ka(Ht.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function qc(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const Yc=["onChange"],Kc={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Xc(e){return Er("MuiTabScrollButton",e)}const Zc=Cr("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Jc=["className","slots","slotProps","direction","orientation","disabled"],Qc=sa(hs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>H({width:40,flexShrink:0,opacity:.8,[`&.${Zc.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),ed=v.forwardRef(function(e,t){var n,r;const o=Ca({props:e,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:s={},direction:l}=o,c=U(o,Jc),d=H({isRtl:Lo()},o),u=(e=>{const{classes:t,orientation:n,disabled:r}=e;return mo({root:["root",n,r&&"disabled"]},Xc,t)})(d),p=null!=(n=a.StartScrollButtonIcon)?n:Wc,h=null!=(r=a.EndScrollButtonIcon)?r:Vc,f=xo({elementType:p,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),m=xo({elementType:h,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return Ht.jsx(Qc,H({component:"div",className:vr(u.root,i),ref:t,role:null,ownerState:d,tabIndex:null},c,{children:"left"===l?Ht.jsx(p,H({},f)):Ht.jsx(h,H({},m))}))});function td(e){return Er("MuiTabs",e)}const nd=Cr("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),rd=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],od=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,id=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,ad=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=n(e,o)}},sd=sa("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nd.scrollButtons}`]:t.scrollButtons},{[`& .${nd.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>H({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${nd.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),ld=sa("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>H({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),cd=sa("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>H({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),dd=sa("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>H({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),ud=sa(function(e){const{onChange:t}=e,n=U(e,Yc),r=v.useRef(),o=v.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return $r(()=>{const e=Gr(()=>{const e=r.current;i(),e!==r.current&&t(r.current)}),n=Ur(o.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}},[t]),v.useEffect(()=>{i(),t(r.current)},[t]),Ht.jsx("div",H({style:Kc},n,{ref:o}))})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),pd={},hd=v.forwardRef(function(e,t){const n=Ca({props:e,name:"MuiTabs"}),r=Vi(),o=Lo(),{"aria-label":i,"aria-labelledby":a,action:s,centered:l=!1,children:c,className:d,component:u="div",allowScrollButtonsMobile:p=!1,indicatorColor:h="primary",onChange:f,orientation:m="horizontal",ScrollButtonComponent:b=ed,scrollButtons:g="auto",selectionFollowsFocus:y,slots:x={},slotProps:E={},TabIndicatorProps:C={},TabScrollButtonProps:S={},textColor:w="primary",value:R,variant:_="standard",visibleScrollbar:k=!1}=n,A=U(n,rd),L="scrollable"===_,I="vertical"===m,T=I?"scrollTop":"scrollLeft",P=I?"top":"left",M=I?"bottom":"right",O=I?"clientHeight":"clientWidth",j=I?"height":"width",$=H({},n,{component:u,allowScrollButtonsMobile:p,indicatorColor:h,orientation:m,vertical:I,scrollButtons:g,textColor:w,variant:_,visibleScrollbar:k,fixed:!L,hideScrollbar:L&&!k,scrollableX:L&&!I,scrollableY:L&&I,centered:l&&!L,scrollButtonsHideMobile:!p}),N=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return mo({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},td,l)})($),D=xo({elementType:x.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:$}),z=xo({elementType:x.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:$}),[B,F]=v.useState(!1),[G,W]=v.useState(pd),[V,q]=v.useState(!1),[Y,K]=v.useState(!1),[X,Z]=v.useState(!1),[J,Q]=v.useState({overflow:"hidden",scrollbarWidth:0}),ee=new Map,te=v.useRef(null),ne=v.useRef(null),re=()=>{const e=te.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:fo(e,o?"rtl":"ltr"),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==R){const e=ne.current.children;if(e.length>0){const t=e[ee.get(R)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},oe=Kr(()=>{const{tabsMeta:e,tabMeta:t}=re();let n,r=0;if(I)n="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(n=o?"right":"left",t&&e){const i=o?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(o?-1:1)*(t[n]-e[n]+i)}const i={[n]:r,[j]:t?t[j]:0};if(isNaN(G[n])||isNaN(G[j]))W(i);else{const e=Math.abs(G[n]-i[n]),t=Math.abs(G[j]-i[j]);(e>=1||t>=1)&&W(i)}}),ie=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},o=()=>{}){const{ease:i=qc,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const d=()=>{c=!0},u=r=>{if(c)return void o(new Error("Animation cancelled"));null===s&&(s=r);const d=Math.min(1,(r-s)/a);t[e]=i(d)*(n-l)+l,d>=1?requestAnimationFrame(()=>{o(null)}):requestAnimationFrame(u)};l===n?o(new Error("Element already at target position")):requestAnimationFrame(u)}(T,te.current,e,{duration:r.transitions.duration.standard}):te.current[T]=e},ae=e=>{let t=te.current[T];I?t+=e:(t+=e*(o?-1:1),t*=o&&"reverse"===ho()?-1:1),ie(t)},se=()=>{const e=te.current[O];let t=0;const n=Array.from(ne.current.children);for(let r=0;r<n.length;r+=1){const o=n[r];if(t+o[O]>e){0===r&&(t=e);break}t+=o[O]}return t},le=()=>{ae(-1*se())},ce=()=>{ae(se())},de=v.useCallback(e=>{Q({overflow:null,scrollbarWidth:e})},[]),ue=Kr(e=>{const{tabsMeta:t,tabMeta:n}=re();if(n&&t)if(n[P]<t[P]){const r=t[T]+(n[P]-t[P]);ie(r,{animation:e})}else if(n[M]>t[M]){const r=t[T]+(n[M]-t[M]);ie(r,{animation:e})}}),pe=Kr(()=>{L&&!1!==g&&Z(!X)});v.useEffect(()=>{const e=Gr(()=>{te.current&&oe()});let t;const n=n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{var n;null==(n=t)||n.unobserve(e)}),e.addedNodes.forEach(e=>{var n;null==(n=t)||n.observe(e)})}),e(),pe()},r=Ur(te.current);let o;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(ne.current.children).forEach(e=>{t.observe(e)})),"undefined"!=typeof MutationObserver&&(o=new MutationObserver(n),o.observe(ne.current,{childList:!0})),()=>{var n,i;e.clear(),r.removeEventListener("resize",e),null==(n=o)||n.disconnect(),null==(i=t)||i.disconnect()}},[oe,pe]),v.useEffect(()=>{const e=Array.from(ne.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&L&&!1!==g){const n=e[0],r=e[t-1],o={root:te.current,threshold:.99},i=new IntersectionObserver(e=>{q(!e[0].isIntersecting)},o);i.observe(n);const a=new IntersectionObserver(e=>{K(!e[0].isIntersecting)},o);return a.observe(r),()=>{i.disconnect(),a.disconnect()}}},[L,g,X,null==c?void 0:c.length]),v.useEffect(()=>{F(!0)},[]),v.useEffect(()=>{oe()}),v.useEffect(()=>{ue(pd!==G)},[ue,G]),v.useImperativeHandle(s,()=>({updateIndicator:oe,updateScrollButtons:pe}),[oe,pe]);const he=Ht.jsx(dd,H({},C,{className:vr(N.indicator,C.className),ownerState:$,style:H({},G,C.style)}));let fe=0;const me=v.Children.map(c,e=>{if(!v.isValidElement(e))return null;const t=void 0===e.props.value?fe:e.props.value;ee.set(t,fe);const n=t===R;return fe+=1,v.cloneElement(e,H({fullWidth:"fullWidth"===_,indicator:n&&!B&&he,selected:n,selectionFollowsFocus:y,onChange:f,textColor:w,value:t},1!==fe||!1!==R||e.props.tabIndex?{}:{tabIndex:0}))}),be=(()=>{const e={};e.scrollbarSizeListener=L?Ht.jsx(ud,{onChange:de,className:vr(N.scrollableX,N.hideScrollbar)}):null;const t=L&&("auto"===g&&(V||Y)||!0===g);return e.scrollButtonStart=t?Ht.jsx(b,H({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:D},orientation:m,direction:o?"right":"left",onClick:le,disabled:!V},S,{className:vr(N.scrollButtons,S.className)})):null,e.scrollButtonEnd=t?Ht.jsx(b,H({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:z},orientation:m,direction:o?"left":"right",onClick:ce,disabled:!Y},S,{className:vr(N.scrollButtons,S.className)})):null,e})();return Ht.jsxs(sd,H({className:vr(N.root,d),ownerState:$,ref:t,as:u},A,{children:[be.scrollButtonStart,be.scrollbarSizeListener,Ht.jsxs(ld,{className:N.scroller,ownerState:$,style:{overflow:J.overflow,[I?"margin"+(o?"Left":"Right"):"marginBottom"]:k?void 0:-J.scrollbarWidth},ref:te,children:[Ht.jsx(cd,{"aria-label":i,"aria-labelledby":a,"aria-orientation":"vertical"===m?"vertical":null,className:N.flexContainer,ownerState:$,onKeyDown:e=>{const t=ne.current,n=Hr(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===m?"ArrowLeft":"ArrowUp",i="horizontal"===m?"ArrowRight":"ArrowDown";switch("horizontal"===m&&o&&(r="ArrowRight",i="ArrowLeft"),e.key){case r:e.preventDefault(),ad(t,n,id);break;case i:e.preventDefault(),ad(t,n,od);break;case"Home":e.preventDefault(),ad(t,null,od);break;case"End":e.preventDefault(),ad(t,null,id)}},ref:ne,role:"tablist",children:me}),B&&he]}),be.scrollButtonEnd]}))});function fd(e){return Ht.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Ht.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function md({fontSize:e="medium",children:t=null,className:n=""}={}){return Ht.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})}function bd(e={}){return Ht.jsx(md,{...e,children:Ht.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Ht.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Ht.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function gd(e={}){return Ht.jsx(md,{fontSize:"medium",...e,children:Ht.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ht.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Ht.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function vd(e){return Ht.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Ht.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function yd(e={}){return Ht.jsx(md,{...e,children:Ht.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ht.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Ht.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Ht.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function xd(e={}){return Ht.jsx(md,{fontSize:"medium",...e,children:Ht.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ht.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Ht.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Ed({className:e}){return Ht.jsx(md,{fontSize:"small",className:e,children:Ht.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Ht.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Ht.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Ht.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Ht.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Ht.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function Cd(e={}){return Ht.jsx(md,{...e,children:Ht.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ht.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Ht.jsx("rect",{stroke:ua.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var Sd=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:ua.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:ua.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Ht.jsx(fd,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${ua.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:ua.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${ua.MISC_FOCUS_BORDER}`,borderRadius:ba,backgroundColor:ua.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${ua.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:ua.WHITE,color:ua.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:ba},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ua.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:ua.GREYSCALE_0_15,backgroundColor:ua.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:ua.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ua.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:ua.GREEN_PALE},"&:active":{backgroundColor:ua.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ua.GREEN_PALE,boxShadow:`0 0 0 3px ${Br(ua.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:ua.BLUE_PALE},"&:active":{backgroundColor:ua.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ua.BLUE_PALE,boxShadow:`0 0 0 3px ${Br(ua.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:ba,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:ua.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ua.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:ua.GREYSCALE_0_42,backgroundColor:ua.GREYSCALE_100_60,"&:active":{backgroundColor:ua.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:ua.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ua.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:ua.PURPLE,"&.Mui-focusVisible":{borderColor:ua.PURPLE,boxShadow:`0 0 0 3px ${Br(ua.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:ua.GREEN,"&.Mui-focusVisible":{borderColor:ua.GREEN,boxShadow:`0 0 0 3px ${Br(ua.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:ua.BLUE,"&.Mui-focusVisible":{borderColor:ua.BLUE,boxShadow:`0 0 0 3px ${Br(ua.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:ua.ORANGE,"&.Mui-focusVisible":{borderColor:ua.ORANGE,boxShadow:`0 0 0 3px ${Br(ua.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:ua.RED,"&.Mui-focusVisible":{borderColor:ua.RED,boxShadow:`0 0 0 3px ${Br(ua.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:ua.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:ua.PURPLE_PALE},"&:active":{backgroundColor:ua.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:ua.PURPLE_PALE,boxShadow:`0 0 0 3px ${Br(ua.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:ua.GREEN_PALE},"&:active":{backgroundColor:ua.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ua.GREEN_PALE,boxShadow:`0 0 0 3px ${Br(ua.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:ua.BLUE_PALE},"&:active":{backgroundColor:ua.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ua.BLUE_PALE,boxShadow:`0 0 0 3px ${Br(ua.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:ua.ORANGE_PALE},"&:active":{backgroundColor:ua.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:ua.ORANGE_PALE,boxShadow:`0 0 0 3px ${Br(ua.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:ua.RED_PALE},"&:active":{backgroundColor:ua.RED_DARK},"&.Mui-focusVisible":{borderColor:ua.RED_PALE,boxShadow:`0 0 0 3px ${Br(ua.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:ua.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:ua.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:ba,boxShadow:`inset 0 0 0 2px ${ua.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Ht.jsx(vd,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:pa,borderRadius:ba,color:ua.TEXT_PRIMARY,backgroundColor:ua.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:ua.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${ua.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:ua.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:ua.GREYSCALE_0_05,color:ua.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:ua.GREEN,borderColor:ua.GREEN},"&.MuiChip-outlinedInfo":{color:ua.BLUE,borderColor:ua.BLUE},"&.MuiChip-outlinedWarning":{color:ua.ORANGE,borderColor:ua.ORANGE},"&.MuiChip-outlinedError":{color:ua.RED,borderColor:ua.RED}},outlined:{border:`solid 1px ${ua.GREYSCALE_0_15}`,backgroundColor:ua.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:ba,boxShadow:"none",backgroundColor:ua.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:ua.GREEN,borderColor:ua.GREEN},outlinedSecondary:{color:ua.BLUE,borderColor:ua.BLUE},label:{fontFamily:Ea.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Ht.jsx(vd,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Ht.jsx(fd,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:ba},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:ba,fontSize:ha,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:ua.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${ua.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:ua.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:ua.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:ua.GREYSCALE_0_05}}},popupIndicator:{borderRadius:ba,border:`solid 1px ${ua.GREYSCALE_0_15}`,color:ua.GREYSCALE_0_60,marginRight:0,width:ma,height:ma},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${ua.GREYSCALE_0_15}`},clearIndicator:{borderRadius:ba,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:ua.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:ha}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:pa,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:ua.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:ua.GREYSCALE_25,fontSize:pa,fontFamily:Ea.FONT_FAMILY,fontWeight:ya,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:ua.TEXT_PRIMARY},"&.Mui-error":{color:ua.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:ua.TEXT_SECONDARY,content:"'(optional)'",fontWeight:va,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:ua.TEXT_SECONDARY,content:"'(required)'",fontWeight:va,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:ha,lineHeight:"16px",backgroundColor:ua.WHITE,borderRadius:ba,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ua.GREYSCALE_0_05}`,borderColor:ua.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ua.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${ua.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${ua.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ua.RED}`,boxShadow:`0px 0px 0px 1px ${ua.RED}, inset 0 2px 0 0 ${ua.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ua.GREYSCALE_0_10}`,borderColor:ua.GREYSCALE_0_10,backgroundColor:ua.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:ua.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:ua.GREYSCALE_0_15,borderRadius:ba,boxShadow:`inset 0 2px 0 0 ${ua.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Ht.jsx(fd,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:ua.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:ua.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:ua.GREYSCALE_0_03},"&:active":{backgroundColor:ua.GREYSCALE_0_10},"&:focus":{backgroundColor:ua.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${ua.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${ua.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:ua.GREYSCALE_0_30,"&:hover":{backgroundColor:ua.GREYSCALE_0_0,borderColor:ua.GREYSCALE_0_15},"& ~svg":{color:ua.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${ua.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:ba}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:ua.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${ua.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:ua.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:ha,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:pa,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:pa,fontWeight:ya,color:ua.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:ya}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${ua.GREYSCALE_0_15}, 0px 0px 0px 1px ${ua.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Ht.jsx(xd,{}),checkedIcon:Ht.jsx(gd,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:ua.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${ua.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:ua.GREEN_PALE,boxShadow:`0 0 0 3px ${Br(ua.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:ua.BLUE_PALE,boxShadow:`0 0 0 3px ${Br(ua.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:ua.GREYSCALE_0_20}},"&.Mui-disabled":{fill:ua.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Ht.jsx(Cd,{}),checkedIcon:Ht.jsx(bd,{}),indeterminateIcon:Ht.jsx(yd,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:ba,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:ua.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:ua.GREYSCALE_0_55,color:ua.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:ua.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:ua.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:ua.GREYSCALE_0_55,"&:hover":{color:ua.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:ua.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:ua.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:ha,color:ua.TEXT_PRIMARY,lineHeight:"16px",fontWeight:ya},secondary:{fontSize:pa,color:ua.GREYSCALE_45,fontWeight:va,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:ha,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:ha,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:ua.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:pa,borderBottom:`solid 1px ${ua.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:ha,color:ua.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:ua.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:ua.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:ua.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:ua.RED}}},"&.Mui-focusVisible":{backgroundColor:ua.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:ua.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:ua.GREEN,height:"24px","&.Mui-disabled":{color:ua.GREYSCALE_0_15}},rail:{backgroundColor:ua.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${ua.GREYSCALE_0_05}`,borderRadius:ba,boxShadow:`inset 0px 0px 0px 1px ${ua.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${ua.GREYSCALE_0_05}`,borderRadius:ba},thumb:{height:"16px",width:"16px",borderRadius:ba,backgroundColor:ua.WHITE,boxShadow:`0px 1px 2px 0px ${ua.GREYSCALE_0_15}, 0px 0px 0px 1px ${ua.GREYSCALE_0_05}`,"&:hover":{borderRadius:ba,boxShadow:`0 2px 4px 0 ${ua.GREYSCALE_0_30}, 0 0 0 1px ${ua.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${ua.GREYSCALE_0_15}, 0 0 0 1px ${ua.GREYSCALE_0_06}, 0 0 0 2px ${ua.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${ua.GREYSCALE_0_15}, 0 0 0 1px ${ua.GREYSCALE_0_06}, 0 0 0 2px ${ua.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:ua.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:ua.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:ua.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:ua.GREYSCALE_0_15},markLabel:{color:ua.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:ua.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:ua.WHITE,color:ua.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:ua.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:ua.GREEN_PALE,boxShadow:`0 0 0 3px ${Br(ua.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:ua.BLUE_PALE,boxShadow:`0 0 0 3px ${Br(ua.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:ua.GREYSCALE_0_15,borderRadius:ba},thumb:{height:"16px",width:"16px",borderRadius:ba,backgroundColor:ua.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:ha,fontWeight:ya,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${ua.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${ua.MISC_FOCUS_BORDER}`,backgroundColor:ua.GREYSCALE_0_03,borderRadius:ba},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:ua.GREYSCALE_25,"&.Mui-selected":{color:ua.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:ha,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:ba,"&:hover":{backgroundColor:ua.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${ua.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${ua.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:ba,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:ua.GREYSCALE_0_05},"&:hover":{backgroundColor:ua.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${ua.GREYSCALE_85}`,borderRight:`1px solid ${ua.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:ya,backgroundColor:ua.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:ua.GREYSCALE_98,borderBottom:`1px solid ${ua.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${ua.GREYSCALE_85}`,borderTop:`1px solid ${ua.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:ua.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:ua.GREYSCALE_0_05,"&:hover":{backgroundColor:ua.GREYSCALE_0_03}},"&&:hover":{backgroundColor:ua.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Ht.jsx(Ed,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${ua.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:ha,borderRadius:ba,padding:"7px 16px",border:`1px solid ${ua.GREYSCALE_0_15}`,backgroundColor:ua.GREYSCALE_100_60,color:ua.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:ua.GREYSCALE_0_10,border:`1px solid ${ua.GREYSCALE_0_30}`},"&:hover":{backgroundColor:ua.GREYSCALE_0_03,border:`1px solid ${ua.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:ua.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${ua.MISC_FOCUS_BORDER}`,border:`1px solid ${ua.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:ua.GREYSCALE_25,backgroundColor:ua.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:ua.GREYSCALE_0_10,border:`1px solid ${ua.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:pa,height:24,width:24,padding:7},sizeLarge:{fontSize:fa,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:ha,borderRadius:ba}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:ua.GREYSCALE_20},tooltip:{backgroundColor:ua.GREYSCALE_20,fontSize:pa,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const wd=e=>({mode:"light",primary:{ultraLight:ua.GREEN_ULTRA_LIGHT,light:ua.GREEN_PALE,main:ua.GREEN,dark:ua.GREEN_DARK,extraDark:ua.GREEN_EXTRA_DARK,contrastText:ua.WHITE},secondary:{ultraLight:ua.BLUE_ULTRA_LIGHT,light:ua.BLUE_PALE,main:ua.BLUE,dark:ua.BLUE_DARK,extraDark:ua.BLUE_EXTRA_DARK,contrastText:ua.WHITE},error:{ultraLight:ua.RED_ULTRA_LIGHT,light:ua.RED_PALE,main:ua.RED,dark:ua.RED_DARK,extraDark:ua.RED_EXTRA_DARK,contrastText:ua.WHITE},warning:{ultraLight:ua.ORANGE_ULTRA_LIGHT,light:ua.ORANGE_PALE,main:ua.ORANGE,dark:ua.ORANGE_DARK,extraDark:ua.ORANGE_EXTRA_DARK,contrastText:ua.WHITE},success:{ultraLight:ua.GREEN_ULTRA_LIGHT,light:ua.GREEN_PALE,main:ua.GREEN,dark:ua.GREEN_DARK,extraDark:ua.GREEN_EXTRA_DARK,contrastText:ua.WHITE},info:{ultraLight:ua.BLUE_ULTRA_LIGHT,light:ua.BLUE_PALE,main:ua.BLUE,dark:ua.BLUE_DARK,extraDark:ua.BLUE_EXTRA_DARK,contrastText:ua.WHITE},text:{primary:ua.TEXT_PRIMARY,secondary:ua.TEXT_SECONDARY,disabled:ua.GREYSCALE_0_30},action:{hover:ua.GREYSCALE_0_03,hoverOpacity:.03,selected:ua.GREYSCALE_0_05,selectedOpacity:.05,focus:ua.MISC_FOCUS_BORDER},amethyst:{ultraLight:ua.WHITE,main:ua.PURPLE,light:ua.PURPLE_PALE,dark:ua.PURPLE_DARK,extraDark:ua.GREYSCALE_0_0,contrastText:ua.WHITE},background:{paper:ua.WHITE,default:ua.GREYSCALE_95},divider:ua.GREYSCALE_0_15});function Rd(e){return Ui({components:Sd(),palette:wd(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,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)"],transitions:{easing:{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)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:ha,fontWeightLight:ga,fontWeightRegular:va,fontWeightMedium:ya,fontWeightBold:xa,htmlFontSize:ha,fontFamily:Ea.FONT_FAMILY,button:{fontWeight:ya,fontSize:ha,textTransform:"none"},body1:{fontSize:fa,lineHeight:"24px"},body2:{fontSize:ha,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:ma,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:fa,fontWeight:ya,lineHeight:"16px"},h6:{fontSize:ha,fontWeight:ya,lineHeight:"16px"},caption:{color:ua.TEXT_SECONDARY},subtitle1:{fontSize:ha,color:ua.TEXT_SECONDARY},subtitle2:{fontSize:pa,color:ua.TEXT_SECONDARY}},shape:{borderRadius:ba},direction:e})}const _d=["container","sn-layout-container","sn-tabbed-container","listbox","qlik-tabbed-container","qlik-show-hide-container","qlik-trellis-container","qlik-on-demand-reporting","sn-analysis-autochart"];class kd{embed;translator;charts={};constructor(e,t){this.embed=e,this.translator=t}getCharts=()=>(this.charts=(this.embed?.getRegisteredTypes()??[]).reduce((e,t)=>{if(!_d.includes(t.id)&&!1!==t.libraryInfo?.isLibraryItem&&!t.libraryInfo?.deprecated){const n=t;n.libraryInfo?.translationKey&&(n.libraryInfo.translation=this.translator.get(n.libraryInfo.translationKey)),e[t.id||t.type]=n}return e},{}),this.charts);getChart=e=>(this.charts[e]||this.getCharts(),this.charts[e])}var Ad,Ld={};var Id=function(){if(Ad)return Ld;Ad=1;var e=M;return Ld.createRoot=e.createRoot,Ld.hydrateRoot=e.hydrateRoot,Ld}();const Td=x((e,t)=>Ht.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ht.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})})),Pd="rgb(89, 89, 89)",Md=Dt(Vs)({display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}),Od=Dt(Vs)({display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}),jd=Dt(Bl,{shouldForwardProp:e=>"width"!==e})(({width:e})=>({"&.MuiList-root":{paddingTop:0,paddingBottom:0,width:e||250,maxHeight:250,overflow:"auto"}})),$d=Dt(ys)({color:Pd,fontSize:"12px",fontFamily:"inherit",lineHeight:"24px",margin:"0px"}),Nd=Dt(sc)({"&.MuiListItemIcon-root":{minWidth:32,color:Pd,marginRight:"0px"}}),Dd=Dt(wl)({"&.MuiDivider-root":{borderBottom:"3px solid #595959"}}),zd=Dt(nl)({"&.MuiButton-contained":{backgroundColor:Pd,color:"rgb(255, 255, 255)"},"&.MuiButton-outlined":{backgroundColor:"rgb(255, 255, 255)",borderColor:Pd,color:Pd,border:"1px solid rgb(179, 179, 179)","&:hover":{backgroundColor:"rgb(255, 255, 255)",border:`1px solid ${Pd}`}}}),Bd=Dt(_a)({width:"1em",height:"1em",paddingBottom:"8px"}),Fd=Dt(_a)({width:"16px",height:"16px"}),Gd=({name:e,items:t,onSelect:n})=>Ht.jsxs(Ht.Fragment,{children:[Ht.jsx(nc,{dense:!0,children:Ht.jsx($d,{noWrap:!0,fontWeight:"bold",children:e})},e),Ht.jsx(Dd,{}),t.map(e=>Ht.jsx(nc,{divider:!0,disablePadding:!0,disableGutters:!0,children:Ht.jsxs(ql,{sx:{minHeight:"32px",height:"auto"},onClick:()=>{n(e)},disableRipple:!0,dense:!0,children:[e.iconPath?Ht.jsx(Nd,{children:e.IconDefinition?Ht.jsx(e.IconDefinition,{}):Ht.jsx(Fd,{viewBox:"0 0 16 16",children:Ht.jsx("path",{d:e.iconPath})})}):null,Ht.jsx($d,{noWrap:!0,title:e.translation||e.name,children:e.translation||e.name})]})},e.qExtendsId??e.name))]}),Hd=({categories:e,anchorEl:t,onClose:n,onSelect:r,width:o})=>{const[i,a]=R(""),s=!!t;return Ht.jsxs(Rc,{open:s,anchorEl:t,onClose:()=>{a(""),n()},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},sx:{marginTop:"5px"},children:[Ht.jsx($s,{fullWidth:!0,onChange:e=>{a(e.target.value)},startAdornment:Ht.jsx(jl,{position:"start",children:Ht.jsx(Td,{})})}),Ht.jsx(Dd,{}),Ht.jsx(jd,{width:o,children:e.map(e=>{const t=e.items.filter(e=>{const t=e.translation||e.name;return t?.toLocaleLowerCase().indexOf(i.toLocaleLowerCase())>-1});return t.length>0&&Ht.jsx(Gd,{name:e.name,items:t,onSelect:r},e.name)})})]})},Ud=({anchorEl:e,onClose:t,dataHandler:n,translator:r,sharedContainerUtilities:o,width:i})=>{const[a,s]=R([]),[l,c]=R({});_(()=>{if(e&&n){(async()=>{const e=await n.getMasterVizList();s(e),c(n.getCharts())})().catch(()=>{})}},[e,n]);const d=[],u=[],p=new Map,h=Object.values(l);if(0===h.length&&0===a.length)return null;h.forEach(e=>{if(!e.libraryInfo||!e.libraryInfo.isThirdParty&&e.libraryInfo.visible)d.push(e);else if(e.libraryInfo.visible)if(e.libraryInfo.bundle?.name){const t=e.libraryInfo.bundle.name,n=p.get(t);n?n.push(e):p.set(t,[e])}else u.push(e)});const f=e=>e.map(e=>({iconPath:e.libraryInfo?.iconPath,IconDefinition:e.libraryInfo?.IconDefinition,name:e.id,translation:e.libraryInfo?.translation||e.libraryInfo?.name||e.id||"",type:e.id})).toSorted((e,t)=>(e.translation||e.name).localeCompare(t.translation||t.name)),m=[{name:r.get("LayoutContainer.Object.MasterItems"),items:a.map(e=>({qExtendsId:e.qExtendsId,iconPath:l[e.visualization]?.libraryInfo?.iconPath,IconDefinition:l[e.visualization]?.libraryInfo?.IconDefinition,name:e.name,type:e.visualization})).toSorted((e,t)=>e.name.localeCompare(t.name))},{name:r.get("LayoutContainer.Object.Charts"),items:d.map(e=>({iconPath:e.libraryInfo?.iconPath||"",IconDefinition:e.libraryInfo?.IconDefinition,name:e.libraryInfo?.name||e.id,type:e.libraryInfo?.template||e.id,translation:e.libraryInfo?.translation||e.id||""})).toSorted((e,t)=>e.translation.localeCompare(t.translation))},{name:r.get("LayoutContainer.Object.CustomObjects"),items:f(u)}];for(const[e,t]of p)m.push({name:e,items:f(t)});return Ht.jsx(Hd,{categories:m,anchorEl:e,onSelect:e=>{if(!n)return;const{qExtendsId:r}=e;(r?n.addMasterObjectAsChild({initProps:{qExtendsId:r,qInfo:{qType:"undefined"}}}):n.addVizAsChild({type:e.type,objectInitProps:{label:e.translation}})).then(e=>{e?.id&&o?.setSelected([e.id])}).catch(e=>{console.warn(e)}).finally(()=>{t()})},onClose:t,width:i})},Wd=e=>{const t=qd(e);return e.objects?.map(e=>{const{childRefId:n}=e;if(!n)return e;const r=t[n];return r?{...e,id:r}:e})??[]},Vd=(e,t)=>e?.qChildList?.qItems?.find(e=>e?.qData?.childRefId===t),qd=e=>e?.qChildList?.qItems?.reduce((e,t)=>{const n=t?.qData?.childRefId;return e[n]=t?.qInfo?.qId,e},{});var Yd=Vd,Kd=e=>{const t={...e};return t.objects=Wd(t),t},Xd=e=>e?.qChildList?.qItems?.reduce((e,t)=>{const n=t?.qInfo?.qId;return e[n]=t.qData?.childRefId,e},{}),Zd=e=>e.objects.reduce((e,t)=>(e[t.childRefId]=t,e),{}),Jd=(e,t)=>{if(!e)return t;const n=Vd(e,t);return n?.qInfo?.qId};class Qd{layout;app;activeId="";data;properties=void 0;constructor({app:e,data:t}){this.app=e,this.data=t}get activeContainer(){return this.data.containers[this.activeId]}setSelectedChild=e=>{this.activeContainer?.sharedContainerUtilities?.setSelected(e)};addChild=({initProps:e,objectInitProps:t,children:n})=>{if(!this.activeContainer)return;const{dataHandler:r}=this.activeContainer;if(e?.qExtendsId){const{qExtendsId:o,qInfo:i}=e;return r?.addMasterObjectAsChild({initProps:{qExtendsId:o,qInfo:i},objectInitProps:t,children:n})}return r?.addVizAsChild({type:e?.visualization,initProps:e,objectInitProps:t,children:n})};deleteChild=async e=>{if(!this.activeContainer)return;const{dataHandler:t}=this.activeContainer;await(t?.deleteChildren([e]))};duplicateChild=async e=>{const{childRefId:t,...n}=e,r=this.getEngineId(t);if(!r)return;const o=await(this.app?.getObject(r));if(o&&this.activeContainer){const{sharedContainerUtilities:e}=this.activeContainer,t=await o.getFullPropertyTree(),r=t.qProperty,i=t.qChildren,a=await this.addChild({initProps:r,children:i,objectInitProps:n});a&&e?.setSelected([a.id])}};openAddChildPopover=e=>{if(this.activeContainer&&this.activeContainer.dataHandler&&this.data.muiTheme&&this.data.translator){const t=((e,t)=>{const n=e.getElementsByClassName(t);let r;return 0===n.length?(r=document.createElement("div"),r.className=t,e.appendChild(r)):r=n[0],Id.createRoot(r)})(this.activeContainer.element,"add-child-popover"),n=()=>{t.unmount()};t?.render(Ht.jsx(ca,{theme:this.data.muiTheme,children:Ht.jsx(Ud,{translator:this.data.translator,anchorEl:e,dataHandler:this.activeContainer.dataHandler,onClose:n,width:220,sharedContainerUtilities:this.activeContainer.sharedContainerUtilities})}))}};getObject(e){const t=this.getEngineId(e);if(t)return this.activeContainer?.renderHelper.objectMap.get(t)}getChartIcon(e){const t=this.getEngineId(e);if(!t)return;const n=this.activeContainer?.renderHelper.getChildLayout(t),r=n?.qData.visualization;return r?this.activeContainer?.chartList?.getChart(r)?.libraryInfo?.icon:void 0}setModel=e=>{this.activeId=e.id};setLayout=e=>{this.layout=e};getLayout=()=>this.layout;getEngineId=e=>Jd(this.layout,e);setProperties=e=>{this.properties=e};canAddDimension=()=>!1;canAddMeasure=()=>!1;canColorBy=()=>!1;getDimensions=()=>[];getMeasures=()=>[];minDimensions=()=>0;minMeasures=()=>0;maxDimensions=()=>0;maxMeasures=()=>0}const eu="object",tu=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];const nu=e=>({value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}});function ru({theme:e,translator:t,id:n,path:r}){const o=()=>e.getStyle(n,r,"fontFamily");return{getDefaultValue:()=>o(),getOptions:()=>function({theme:e,translator:t,defaultValue:n}){const r=[],o=e.getStyle("","","fontFamilies");return Array.isArray(o)&&o.length?r.push(...new Set([n,...o.map(e=>e.split(",").map(e=>e.trim()).map(e=>e.replace(/\s+/g," ").trim()).filter(Boolean).join(", "))])):r.push(n),[{value:"ThemeHeader",label:t.get("properties.themeFonts"),metaText:t.get("properties.theme"),groupHeader:!0},...r.map(e=>nu(e)),{value:"DefaultHeader",label:t.get("properties.allFonts"),metaText:t.get("properties.default"),groupHeader:!0},...tu.map(e=>nu(e))]}({theme:e,translator:t,defaultValue:o()})}}var ou=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"];const iu=e=>({value:e,label:e,groupHeader:!1,disabled:!1});function au({theme:e,translator:t,id:n,path:r}){const o=()=>e.getStyle(n,r,"fontSize");return{getDefaultValue:()=>o(),getOptions:()=>function({theme:e,translator:t,defaultValue:n}){const r=[],o=e.getStyle("","","fontSizes");return Array.isArray(o)&&o.length?r.push(...new Set([n,...o])):r.push(n),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0},...r.map(e=>iu(e)),{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0},...ou.map(e=>iu(e))]}({theme:e,translator:t,defaultValue:o()})}}function su({theme:e,translator:t,id:n,path:r}){return{fontFamily:ru({theme:e,translator:t,id:n,path:r}),fontSize:au({theme:e,translator:t,id:n,path:r})}}const lu=["__proto__","constructor"],cu=e=>{if(lu.some(t=>e.includes(t)))throw new Error("font-resolver: Forbidden property.")};var du,uu,pu,hu=function(){if(uu)return du;uu=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return du=function e(){var t,n,r,l,c,d,u=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"==typeof u&&(f=u,u=arguments[1]||{},p=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});p<h;++p)if(null!=(t=arguments[p]))for(n in t)r=s(u,n),u!==(l=s(t,n))&&(f&&l&&(i(l)||(c=o(l)))?(c?(c=!1,d=r&&o(r)?r:[]):d=r&&i(r)?r:{},a(u,{name:n,newValue:e(f,d,l)})):void 0!==l&&a(u,{name:n,newValue:l}));return u},du}();function fu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function mu(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function bu(){}(pu=hu)&&pu.__esModule&&Object.prototype.hasOwnProperty.call(pu,"default")&&pu.default;var gu=.7,vu=1/gu,yu="\\s*([+-]?\\d+)\\s*",xu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Eu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Cu=/^#([0-9a-f]{3,8})$/,Su=new RegExp(`^rgb\\(${yu},${yu},${yu}\\)$`),wu=new RegExp(`^rgb\\(${Eu},${Eu},${Eu}\\)$`),Ru=new RegExp(`^rgba\\(${yu},${yu},${yu},${xu}\\)$`),_u=new RegExp(`^rgba\\(${Eu},${Eu},${Eu},${xu}\\)$`),ku=new RegExp(`^hsl\\(${xu},${Eu},${Eu}\\)$`),Au=new RegExp(`^hsla\\(${xu},${Eu},${Eu},${xu}\\)$`),Lu={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 Iu(){return this.rgb().formatHex()}function Tu(){return this.rgb().formatRgb()}function Pu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Cu.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Mu(t):3===n?new Nu(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ou(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ou(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=Su.exec(e))?new Nu(t[1],t[2],t[3],1):(t=wu.exec(e))?new Nu(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ru.exec(e))?Ou(t[1],t[2],t[3],t[4]):(t=_u.exec(e))?Ou(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ku.exec(e))?Hu(t[1],t[2]/100,t[3]/100,1):(t=Au.exec(e))?Hu(t[1],t[2]/100,t[3]/100,t[4]):Lu.hasOwnProperty(e)?Mu(Lu[e]):"transparent"===e?new Nu(NaN,NaN,NaN,0):null}function Mu(e){return new Nu(e>>16&255,e>>8&255,255&e,1)}function Ou(e,t,n,r){return r<=0&&(e=t=n=NaN),new Nu(e,t,n,r)}function ju(e){return e instanceof bu||(e=Pu(e)),e?new Nu((e=e.rgb()).r,e.g,e.b,e.opacity):new Nu}function $u(e,t,n,r){return 1===arguments.length?ju(e):new Nu(e,t,n,null==r?1:r)}function Nu(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Du(){return`#${Gu(this.r)}${Gu(this.g)}${Gu(this.b)}`}function zu(){const e=Bu(this.opacity);return`${1===e?"rgb(":"rgba("}${Fu(this.r)}, ${Fu(this.g)}, ${Fu(this.b)}${1===e?")":`, ${e})`}`}function Bu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Gu(e){return((e=Fu(e))<16?"0":"")+e.toString(16)}function Hu(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Wu(e,t,n,r)}function Uu(e){if(e instanceof Wu)return new Wu(e.h,e.s,e.l,e.opacity);if(e instanceof bu||(e=Pu(e)),!e)return new Wu;if(e instanceof Wu)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 Wu(a,s,l,e.opacity)}function Wu(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Vu(e){return(e=(e||0)%360)<0?e+360:e}function qu(e){return Math.max(0,Math.min(1,e||0))}function Yu(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}fu(bu,Pu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Iu,formatHex:Iu,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Uu(this).formatHsl()},formatRgb:Tu,toString:Tu}),fu(Nu,$u,mu(bu,{brighter(e){return e=null==e?vu:Math.pow(vu,e),new Nu(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?gu:Math.pow(gu,e),new Nu(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Nu(Fu(this.r),Fu(this.g),Fu(this.b),Bu(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:Du,formatHex:Du,formatHex8:function(){return`#${Gu(this.r)}${Gu(this.g)}${Gu(this.b)}${Gu(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:zu,toString:zu})),fu(Wu,function(e,t,n,r){return 1===arguments.length?Uu(e):new Wu(e,t,n,null==r?1:r)},mu(bu,{brighter(e){return e=null==e?vu:Math.pow(vu,e),new Wu(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?gu:Math.pow(gu,e),new Wu(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 Nu(Yu(e>=240?e-240:e+120,o,r),Yu(e,o,r),Yu(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Wu(Vu(this.h),qu(this.s),qu(this.l),Bu(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=Bu(this.opacity);return`${1===e?"hsl(":"hsla("}${Vu(this.h)}, ${100*qu(this.s)}%, ${100*qu(this.l)}%${1===e?")":`, ${e})`}`}}));const Ku=Math.PI/180,Xu=180/Math.PI,Zu=.96422,Ju=.82521,Qu=4/29,ep=6/29,tp=3*ep*ep,np=ep*ep*ep;function rp(e){if(e instanceof op)return new op(e.l,e.a,e.b,e.opacity);if(e instanceof cp)return dp(e);e instanceof Nu||(e=ju(e));var t,n,r=lp(e.r),o=lp(e.g),i=lp(e.b),a=ip((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=ip((.4360747*r+.3850649*o+.1430804*i)/Zu),n=ip((.0139322*r+.0971045*o+.7141733*i)/Ju)),new op(116*a-16,500*(t-a),200*(a-n),e.opacity)}function op(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ip(e){return e>np?Math.pow(e,1/3):e/tp+Qu}function ap(e){return e>ep?e*e*e:tp*(e-Qu)}function sp(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function lp(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function cp(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function dp(e){if(isNaN(e.h))return new op(e.l,0,0,e.opacity);var t=e.h*Ku;return new op(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}fu(op,function(e,t,n,r){return 1===arguments.length?rp(e):new op(e,t,n,null==r?1:r)},mu(bu,{brighter(e){return new op(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new op(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Nu(sp(3.1338561*(t=Zu*ap(t))-1.6168667*(e=1*ap(e))-.4906146*(n=Ju*ap(n))),sp(-.9787684*t+1.9161415*e+.033454*n),sp(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),fu(cp,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof cp)return new cp(e.h,e.c,e.l,e.opacity);if(e instanceof op||(e=rp(e)),0===e.a&&0===e.b)return new cp(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Xu;return new cp(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new cp(e,t,n,null==r?1:r)},mu(bu,{brighter(e){return new cp(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new cp(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return dp(this).rgb()}}));var up=e=>()=>e;function pp(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):up(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?pp:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):up(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=$u(e)).r,(t=$u(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=pp(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var hp="center",fp="bottom";function mp(e,t,n){if(void 0===e||void 0===t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(void 0===o[t])return n;o=o[t]}return o}[{key:"NoDataExist",alignment:hp,condition:({layoutService:e})=>{if(!e)return!1;const{x:t,y:n}=e.meta.size;return t*n===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:hp,condition:({layoutService:e})=>!!e&&e.getHyperCubeValue("qMeasureInfo").every(e=>"NaN"===e.qMin&&"NaN"===e.qMax)},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:hp,condition:({layoutService:e})=>{if(!e)return!1;const{isContinuous:t}=e.meta;if(!t)return!1;const n=e.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:hp},{key:"DataRangeIncludingZero",alignment:fp},{key:"LimitedData",alignment:fp},{key:"NegativeOrZeroValues",alignment:fp}].reduce((e,t)=>(e[t.key]=t,e),{});const bp=["__proto__","constructor"];function gp(e,t,n){if(void 0===e||void 0===t)return;const r=t.split("."),o=r[r.length-1];if(bp.some(e=>r.includes(e)))return;let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0===i[t]&&(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n?i[o]=n:delete i[o]}function vp(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function yp(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ep)):void 0===t&&(t=xp);for(var n,r,o,i,a,s=new wp(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new wp(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Sp)}function xp(e){return e.children}function Ep(e){return Array.isArray(e)?e[1]:null}function Cp(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Sp(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function wp(e){this.data=e,this.depth=this.height=0,this.parent=null}var Rp;wp.prototype=yp.prototype={constructor:wp,count:function(){return this.eachAfter(vp)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return yp(this).eachBefore(Cp)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},Rp=function(e){
|
|
88
88
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
89
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,c,d,u,p=e.length,h=e.search(/[0-9\-\+#]/),f=h>0?e.substring(0,h):"",m=e.split("").reverse().join(""),b=m.search(/[0-9\-\+#]/),g=p-b,v=e.substring(g,g+1),y=g+("."===v||","===v?1:0),x=b>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(h,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),d=e[0].split(i),e[0]=d.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0===+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=d[1]&&d[d.length-1].length){for(m="",g=(u=t[0]).length%l,p=u.length,y=0;y<p;y++)m+=u.charAt(y),!((y-g+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),f+(n?"-":"")+r+x}},_p({exports:{}});const kp="'Source Sans Pro', 'Arial', 'sans-serif'",Ap="#333333",Lp="#595959",Ip="#737373",Tp="#cccccc",Pp="#e6e6e6";function Mp(e){const t={};return[...e,["","","color"],["object","","fontFamily"],["object","axis.label.name","color",Lp],["object","axis.label.name","fontFamily",kp],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",Tp],["object","axis.line.minor","color",Pp],["object","axis.title","color"],["object","axis.title","fontFamily",kp],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",Pp],["object","grid.line.major","color",Tp],["object","grid.line.minor","color",Pp],["object","label.value","color",Lp],["object","label.value","fontFamily",kp],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",Lp],[!1,"label.value","lightColor",Pp],["object","outOfRange","color","#999"],["object","legend.title","color",Ap],["object","legend.title","fontFamily",kp],["object","legend.title","fontSize","15px"],["object","legend.label","color",Lp],["object","legend.label","fontFamily",kp],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",Ap],["object","referenceLine.label.name","fontFamily",kp],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",Pp],["object","referenceLine.outOfBounds","fontFamily",kp],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",Ip,e=>"transparent"===e?Ip:e]].reduce((e,n)=>{const r=`${n[0]}-${n[1]}-${n[2]}}`;return t[r]||(t[r]=!0,e.push(n)),e},[]).sort((e,t)=>(e[0].split?e[0].split(".").length:0)-(t[0].split?t[0].split(".").length:0))}const Op="object",jp=e=>e;function $p({theme:e,id:t,transform:n,extend:r,matrix:o}){const i={},a=n.reduce((e,t)=>{const[n,r]=t;return e[n]=r,e},{});return o.forEach(n=>{const[r,o,s,l,c=e=>e]=n,d=function({theme:e,base:t,path:n,attribute:r,defaultValue:o}){if(!e||!1===t)return o;const i=e.getStyle(t,n,r);return void 0===i?o:i}({theme:e,base:r===Op&&t?`${Op}.${t}`:r,path:o,attribute:s,defaultValue:l}),u=(a[`${o}.${s}`]||jp)(c(d));vp(i,[o,s].filter(Boolean).join("."),u)}),r.forEach(e=>{const[t,n]=e;vp(i,t,n)}),i}const Np={qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",containerChildId:"/containerChildId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition",visible:"/visible"}};function zp(e){if(!e.objects)return{};const t=Jd(e);return{container_id:e.qInfo.qId,objects:e.qChildList.qItems.map(n=>({chart_type:n.qData.visualization,chart_id:n.qInfo.qId,chart_isMaster:!!n.qData.qExtendsId,tab_isVisible:0!==t[n.qData.childRefId]?.condition&&!1!==t[n.qData.childRefId]?.visible,tab_isActive:n.qData.childRefId===e.cachedTabId}))}}const Dp=({ref:e,theme:t,change:n})=>({component:"inline-wrapper",items:{bgColorDropdown:{ref:`${e}.useColorExpression`,width:9,component:"dropdown",change(t){(bp(t,`${e}.color`)||bp(t,`${e}.colorExpression`))&&(vp(t,`${e}.color`,void 0),vp(t,`${e}.colorExpression`,void 0)),n?.(t)},options:[{value:!1,translation:"properties.colorMode.primary"},{value:!0,translation:"properties.colorMode.byExpression"}],defaultValue:!1,placeholder:"properties.colorMode.primary"},bgColorPicker:{component:"color-picker",ref:`${e}.color`,width:3,show:t=>!bp(t,`${e}.useColorExpression`),disableNone:!1,defaultValue:()=>({color:t?.getStyle("object.tabbedContainer",e,"color")??"none"}),showAlpha:!0,change:e=>{n?.(e)}},bgColorExpression:{component:"input-field-expression",ref:`${e}.colorExpression`,show:t=>bp(t,`${e}.useColorExpression`)}}}),Bp=({theme:e})=>({bgColorAllWrapper:Dp({ref:"background.unselected"}),selectedTab:{translation:"properties.chartType.selected",component:"text"},bgColorSelectedWrapper:Dp({ref:"background.selected"}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:Dp({ref:"background.hover",theme:e,change:e=>{vp(e,"indicator.hover.color",bp(e,"background.hover.color")),vp(e,"indicator.hover.useColorExpression",bp(e,"background.hover.useColorExpression"))}})},show:(e,t)=>"left"===t.layout.orientation}}),Fp=({paths:e,fontResolver:t,theme:n})=>{const r=`${e.theme}.fontSize`;return{fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e.ref}.size`,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r),show:e=>!1!==e.icon?.show},fontColorItem:{component:"color-picker",width:!1,ref:`${e.ref}.color`,defaultValue:()=>({color:n.getStyle("object.tabbedContainer",e.theme,"color")}),show:e=>!1!==e.icon?.show}}},position:{type:"string",ref:"icon.position",component:"dropdown",options:[{value:"start",translation:"properties.dock.start"},{value:"top",translation:"properties.dock.top"},{value:"end",translation:"properties.dock.end"},{value:"bottom",translation:"properties.dock.bottom"}],defaultValue:(e,{layout:t})=>"left"===t.orientation?"top":"start",show:e=>"tabs"===e.key},hide:{type:"boolean",translation:"properties.show",ref:"icon.show",component:"switch",defaultValue:!0,show:e=>"tab"===e.key}}},Gp=({theme:e})=>({colorWrapper:Dp({ref:"indicator.selected",theme:e}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:Dp({ref:"indicator.hover",theme:e,change:e=>{vp(e,"background.hover.color",bp(e,"indicator.hover.color")),vp(e,"background.hover.useColorExpression",bp(e,"indicator.hover.useColorExpression"))}})},show:(e,t)=>"left"!==t.layout.orientation}}),Hp=({paths:e,fontResolver:t,theme:n})=>{const r=`${e.theme}.fontFamily`,o=`${e.theme}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e.ref}.fontFamily`,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r),change:(e,t,n)=>{const r=e.label?.fontFamily,o=(e=>{const t=[];return e.objects.forEach(e=>{const n=e.components?.find(e=>"tab"===e.key),r=n?.label?.fontFamily;r&&-1===t.indexOf(r)&&t.push(r)}),t})(n);r&&-1===o.indexOf(r)&&o.push(r),n.fontsUsed=o}},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e.ref}.fontSize`,options:()=>t.getOptions(o),defaultValue:()=>t.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e.ref}.color`,defaultValue:()=>({color:n.getStyle("object.tabbedContainer",e.theme,"color")})}}},alignment:{component:"text-align-buttons",ref:"label.alignment",show:e=>"tabs"===e.key},hide:{type:"boolean",translation:"properties.show",ref:"label.show",component:"switch",defaultValue:!0}}},Up=({ref:e,key:t,fontResolver:n,theme:r})=>({translation:"Object.Container.Props.Label",component:"panel-section",items:{label:{component:"items",ref:e,key:t,items:Hp({paths:{ref:"label",theme:"label.value"},fontResolver:n,theme:r})}}}),Wp=({ref:e,key:t})=>({translation:"Visualizations.Descriptions.Width",component:"panel-section",items:{width:{component:"items",ref:e,key:t,items:{unit:{type:"string",ref:"width.unit",component:"dropdown",options:[{value:"%",translation:"Object.Table.Column.Percentage"},{value:"px",translation:"Object.Table.Column.Pixels"}],defaultValue:"%",change:e=>{if(void 0!==e.width?.value&&"%"===e.width?.unit)for(let t=0;t<e.width.value.length;t++)e.width.value[t]>100?e.width.value[t]=100:e.width.value[t]<5&&(e.width.value[t]=5)}},valuePixel:{translation:"properties.axis.minMax",component:"slider",ref:"width.value",range:!0,step:1,min:0,max:800,show:e=>"px"===e.width?.unit,defaultValue:[0,360]},valuePercentage:{translation:"properties.axis.minMax",component:"slider",type:"array",ref:"width.value",range:!0,step:1,min:5,max:100,show:e=>!e.width?.unit||"px"!==e.width?.unit,defaultValue:[5,20]}}}}}),Vp=({theme:e,ref:t,key:n})=>({translation:"Object.TabbedContainer.Indicator",component:"panel-section",items:{indicator:{component:"items",ref:t,key:n,items:Gp({theme:e})}}}),qp=({ref:e,key:t,fontResolver:n,theme:r})=>({translation:"properties.icon",component:"panel-section",items:{icon:{component:"items",ref:e,key:t,items:Fp({paths:{ref:"icon",theme:"icon.value"},fontResolver:n,theme:r})}},show:(e,{layout:t})=>t.showIcons}),Yp=({theme:e,ref:t,key:n})=>({translation:"Object.OrgChart.BackgroundColor",component:"panel-section",items:{background:{component:"items",ref:t,key:n,items:"tab"===n?{bgColorWrapper:Dp({ref:"background"})}:Bp({theme:e})}}}),Kp=({fontResolver:e,theme:t})=>{const n="components",r="tab";return{component:"styling-panel",chartTitle:"Object.Container",tabTitle:"scripteditor.dataconnectors.delimiter.tab",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",ref:n,items:{label:Up({ref:n,key:r,fontResolver:e,theme:t}),width:{...Wp({ref:n,key:r}),show:(e,{layout:t})=>"left"!==t.orientation},icon:qp({ref:n,key:r,fontResolver:e,theme:t}),background:Yp({ref:n,key:r,theme:t})}}},Xp={ref:"label",type:"string",translation:"Object.Container.Props.Label",defaultValue:"",expression:"optional"},Zp={ref:"condition",translation:"Object.Container.Props.ShowCondition",component:"expression",defaultValue:{qValueExpression:{qExpr:""}},expressionType:"ValueExpression",expression:"always"},Jp=(e,t)=>"object"==typeof e.label?t.objects.find(t=>t.childRefId===e.childRefId)?.label||e.label.qValueExpression.qExpr:e.label,Qp=e=>({component:"button",translation:"Object.Container.Props.EditProperties",disabled:(e,t)=>{const n=t.getLayout(),r=Kd(n,e.childRefId)?.qMeta;return!r?.privileges?.includes("update")||!n.permissions?.update},action(t,n,{app:r}){const{sense:o}=e.env.anything,i=n.getEngineId(t.childRefId);i&&(o.propertyPanel.show({id:i,app:r,parent:"current",headerLabel:Jp(t,n.getLayout())}),n.setSelectedChild([i]))}}),eh=e=>{const{sense:t}=e.env.anything;return{label:Xp,condition:Zp,styling:Kp({fontResolver:e.fontResolver,theme:t?.theme}),editProperties:Qp(e)}},th={translation:"Object.Container.Props.Chart",component:"text",show:e=>e.objects?e.objects.length<=1:e.children.length<=1},nh={translation:"Common.Charts",component:"text",show:e=>e.objects?e.objects.length>1:e.children.length>1},rh=e=>({type:"array",ref:"objects",itemTitleRef:e=>e.label,allowAdd:!0,customAdd:!0,allowMove:!0,allowRemove:!0,customRemove:!0,addTranslation:"Object.Container.Props.Add",cId:"childRefId",grouped:!0,add(e,t,n){const r=document.querySelector(".pp-toplist-add-button");null!==r&&n.openAddChildPopover(r)},remove(e,t,n){n.deleteChild(e.childRefId).catch(()=>{})},items:eh(e)}),oh=e=>({type:"items",translation:"Object.Container.Props.Content",items:{chartLabel:th,chartsLabel:nh,chartList:rh(e)}}),ih={type:"boolean",translation:"Object.Container.Props.ShowTabs",ref:"showTabs",defaultValue:!0,component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},ah={type:"boolean",translation:"Object.Container.Props.UseDropdown",label:"Menu",ref:"useDropdown",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],defaultValue:!1,show:e=>e.showTabs},sh={type:"boolean",translation:"Object.Container.Props.UseScrollButtons",ref:"useScrollButton",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],defaultValue:!0,show:e=>e.showTabs},lh={type:"boolean",translation:"Object.Container.Props.ShowIcons",ref:"showIcons",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1,show:e=>e.showTabs},ch={type:"string",translation:"Object.Container.Props.DefaultTab",ref:"defaultTabId",component:"dropdown",defaultValue:void 0,options(e,t){const n=t.getLayout();return n?n.objects.map(e=>({translation:e.label,value:e.childRefId})):[]},change(e,t){const n=Qd(t.getLayout(),e.defaultTabId);n&&t.setSelectedChild([n])},show:e=>e.objects.length>0},dh={type:"string",translation:"properties.orientation",ref:"orientation",component:"dropdown",options:[{value:"top",translation:"properties.orientation.horizontal"},{value:"left",translation:"properties.orientation.vertical"}],defaultValue:"top",show:e=>e.showTabs},uh=({fontResolver:e,theme:t})=>{const n="components",r="tabs";return{component:"styling-panel",chartTitle:"Object.TabContainer",tabTitle:"Object.Container.Props.ShowTabs",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:!0,items:{label:Up({ref:n,key:r,fontResolver:e,theme:t}),width:Wp({ref:n,key:r}),indicator:Vp({ref:n,key:r,theme:t}),icon:qp({ref:n,key:r,fontResolver:e,theme:t}),background:Yp({ref:n,key:r,theme:t})}}},ph={items:{details:{show:e=>!0===e.showDetails}}},hh=e=>{const{sense:t}=e.env.anything;return{type:"items",translation:"properties.presentation",grouped:!0,items:{stylingPanel:uh({fontResolver:e.fontResolver,theme:t?.theme}),container:{type:"items",items:{showTabs:ih,useDropdown:ah,useScrollButton:sh,showIcons:lh,orientation:dh,defaultTabId:ch}}}}},fh=e=>({uses:"settings",items:{general:ph,presentation:hh(e)}}),mh=e=>({type:"items",component:"accordion",items:{content:oh(e),settings:fh(e)}}),bh=e=>{const{sense:t}=e.env.anything,n=function({theme:e,translator:t,config:n={}}){const{id:r,paths:o}=function({config:e={}}){const{id:t,paths:n}=e;return{id:void 0===t?tu:`${tu}.${t}`,paths:Array.isArray(n)?n:[]}}({config:n}),i={};o.forEach(n=>{const o=n.split(".");du(o);let a=i;for(let i=0;i<o.length;i++){const s=o[i];i===o.length-1?a[s]=lu({theme:e,translator:t,id:r,path:n}):void 0===a[s]&&(a[s]={}),a=a[s]}});const a=e=>{const t=e.split(".");du(t);let n=i;for(let r=0;r<t.length;r++){const o=t[r];if(void 0===n[o])throw new Error(`font-resolver: Path '${e}' could not be resolved.`);n=n[o]}return n};return i.getDefaultValue=e=>a(e).getDefaultValue(),i.getOptions=e=>a(e).getOptions(),i}({theme:t?.theme,translator:e.env.translator,flags:e.env.flags,config:{id:"tabbedContainer",paths:["label.value","icon.value"]}}),r=function(e){return{async getDropOptions(e,t,n){const{item:r}=t,o=e.getCreatePropertyHandler();if(o.setModel(e.model),"state"===t.item.type){const r=await e.model.getProperties();return o.setProperties(r),o.setLayout(e.model?.layout),this.getDropStateOptions(t,o,e.model,n)}if("visualization"===r.type)return t.menu.addItem({translation:["Object.Container.DropItem",r.name],tid:"addvisualization",select(){o.addChild({initProps:{qExtendsId:r.id,qInfo:{qType:"undefined"}}})?.then(e=>{e&&o.setSelectedChild([e.id])})}}),void n();const i=await t.item.getDropOption(t.item);"newObject"===i?.id&&t.menu.addItem({translation:["Object.Container.DropItem",r.name],tid:"createvisualization",select(){o.addChild({initProps:{...i.args.init,visualization:i.args.template},children:i.args.children?.map(e=>({qProperty:e}))})?.then(e=>{e&&o.setSelectedChild([e.id])})}}),n()},async addChild(t,n){const{model:r}=this,o=new eu({app:r.app,data:e.propertyHandlerData});return o.setModel(r),{childModel:await o.addChild({initProps:t,children:n}),handler:o}},canReceive(e){if(this.model.layout.qExtendsId)return!1;if("libraryitem"===e.type){const{item:t}=e;if("template"===t.type&&kd.includes(t.template))return!1;if("visualization"===t.type&&kd.includes(t.visualization))return!1}return"gridcell"!==e.type||!kd.includes(e.cell.model.layout.visualization)}}}(e);return{definition:mh({...e,fontResolver:n}),support:{snapshot:!1,export:!0,sharing:!1,exportData:!1,viewData:!1},hidePatchPanel:()=>!0,getCreatePropertyHandler:t=>new eu({app:t,data:e.propertyHandlerData}),...r,addChild:async function(e,t){const{childModel:n,handler:o}=await r.addChild.apply(this,[e,t]);n&&o.setSelectedChild([n.id])},migrate:{properties:(e,t)=>((async(e,t)=>{if(!e.objects){const{objects:n,defaultTabId:r,components:o,orientation:i,showDetails:a}=await t.getEffectiveProperties(),s=await t.getFullPropertyTree();if(!s.qProperty.objects&&n){const l=[];s.qChildren.forEach(e=>{const n=e.qProperty;if(n.qInfo.qId){const r=async r=>{const o=await t.getChild(r),i=await o.getEffectiveProperties();return{...e,qProperty:{...n,childRefId:i.childRefId}}};l.push(r(n.qInfo.qId))}});const c=await Promise.all(l),d={...e,objects:n,defaultTabId:r??"",components:o,qChildListDef:Np,orientation:i,showDetails:a};t.clearSoftPatches(),await t.setFullPropertyTree({...s,qProperty:d,qChildren:c})}}})(e,t),e)},exportProperties:null,importProperties:(e,t)=>{const n={...e.properties};return"masterobject"!==e.properties.qInfo.qType&&(n.qInfo.qType=t.qInfo.qType),n.visualization=t.visualization,{qProperty:n,qChildren:e.qChildren}},extendMetrics:zp}},gh=e=>e.reduce((e,{id:t,data:n})=>(n&&(e[t]=n),e),{}),vh=async e=>{const t=[];for(const[n,r]of e){const e={id:n,data:void 0},o=r;t.push(o.getViewState().then(e=>({id:n,data:e})).catch(()=>e))}const n=await Promise.all(t);return{viewStates:gh(n)}},yh=async e=>{const t=[];for(const[n,r]of e){const e={id:n,data:void 0},o=r;o.getSnapshotLayout?t.push(o.getSnapshotLayout().then(e=>({id:n,data:e})).catch(()=>e)):o.takeSnapshot&&t.push(o.takeSnapshot().then(e=>({id:n,data:e?.layout})).catch(()=>e))}const n=await Promise.all(t);return gh(n)},xh=(e,t)=>(n(async n=>{const r=n,{snapshotData:o}=r;if(o){const n=Xd(r),i=t(e.objectMap,n),[a,s]=await Promise.all([yh(i.objectMap),vh(i.objectMap)]);o.objectsData={layouts:a},r.objects=i.objects,o.viewState=s}return n}),{getViewState:()=>vh(e.objectMap)});let Eh=function(e){return e.OPEN_CONTEXT_MENU="shift+F10",e.ESCAPE="Escape",e.SPACE=" ",e.ENTER="Enter",e.BACKSPACE="Backspace",e.DELETE="Delete",e}({}),Ch=function(e){return e.KEY_DOWN="keydown",e.FOCUS_OUT="focusout",e}({}),Sh=function(e){return e.TAB_MENU="tab-menu",e.TAB_MENU_ITEM="tab-menu-item",e.ACTIVE_TAB="active-tab-button",e.TAB_WRAPPER="tab-wrapper",e.TAB="tab-button",e.TAB_EXTRA_PRIO="MuiTab-root",e.TAB_LABEL="tab-label",e.TABS_ICON="tab-icon",e.ACTIVE_TAB_PANEL="active-tab-panel",e.TAB_INDICATOR="MuiTabs-indicator",e}({});const wh=`& .${Sh.TAB}.${Sh.TAB_EXTRA_PRIO}, .${Sh.TAB}.${Sh.ACTIVE_TAB}`,Rh=`& .${Sh.TAB}.${Sh.TAB_EXTRA_PRIO}:hover`,_h=`& .${Sh.TAB_LABEL}`,kh=`& .${Sh.TABS_ICON} svg`,Ah=`& .${Sh.TAB_WRAPPER}`,Lh=`& .${Sh.TAB_INDICATOR}`,Ih=e=>e.getElementsByClassName(Sh.ACTIVE_TAB)?.[0],Th=e=>e.getElementsByClassName(Sh.ACTIVE_TAB_PANEL)?.[0],Ph=({element:e,setAccessibility:n,accessibility:a,renderHelper:s,interactions:l,env:c,models:d})=>{const{modifiedLayout:{showTabs:u,objects:p,orientation:h},translator:f}=d;t(()=>{(()=>{const t="top"===h?f.get("TabContainer.Navigation.Horizontal"):f.get("TabContainer.Navigation.Vertical"),n=((e,t)=>e.map(e=>e.label||t.get("TabContainer.Object.Untitled")).join(", "))(p,f);e.setAttribute("aria-label",f.get("TabContainer.Object.Description",[n,u?t:""]))})()},[e,u,p,f,h]);const m=c.flags.isEnabled("VIZ-7_NEW_SHEET"),b=r(),g=o(()=>()=>{n(!1),b.enabled&&b.blur?.(!0)},[b,n]),v=o(()=>t=>{switch(t.shiftKey?`shift+${t.key}`:t.key){case Eh.ESCAPE:t.stopPropagation(),b.blur?.(!0);break;case Eh.ENTER:case Eh.SPACE:{t.stopPropagation();const n=t.target;n?.classList.contains(Sh.ACTIVE_TAB)&&Th(e)?.focus();break}}},[e,b]),y=o(()=>t=>{const n=t.shiftKey?`shift+${t.key}`:t.key,r=s.objectMap.values().next().value,o=s.objectApis.values().next().value;switch(n){case Eh.ESCAPE:{const n=Ih(e);m?(({event:e,objectApi:t,activeTab:n})=>{e.stopPropagation(),t?.viewDataToggled&&t.support?.("viewData")?t.toggleDataView():n?.focus()})({event:t,objectApi:o,activeTab:n}):(({event:e,objectApi:t,activeTab:n})=>{e.stopPropagation(),t?.viewDataToggled&&t.supportViewData?.()?t.toggleDataView?.():n?.focus()})({event:t,objectApi:r,activeTab:n});break}case Eh.ENTER:case Eh.SPACE:{const n=Th(e);m?(({event:e,objectApi:t,activeTab:n})=>{if(!t)return;e.stopPropagation(),t.setOnBlurHandler?.(()=>{n?.focus(),t.setOnBlurHandler?.(void 0)}),!t.viewDataToggled&&t.support?.("viewData")?t.toggleDataView():t.toggleFocus?.(!0)})({event:t,objectApi:o,activeTab:n}):(({event:e,objectApi:t,activeTab:n})=>{if(!t)return;e.stopPropagation(),t.setOnBlurHandler?.(()=>{n?.focus(),t.setOnBlurHandler?.(void 0)}),!t.viewDataToggled&&t.supportViewData?.()?t.toggleDataView?.():t.viewDataToggled&&"function"==typeof t.dataViewObject?.focus?t.dataViewObject.focus():"function"==typeof t.focus&&t.focus()})({event:t,objectApi:r,activeTab:n});break}case Eh.OPEN_CONTEXT_MENU:t.stopPropagation(),r?.viewDataToggled||e!==document.activeElement&&(g(),e.focus())}},[e,g,m,s]),x=o(()=>e=>{const t=e.target;t?.classList.contains(Sh.ACTIVE_TAB_PANEL)?y(e):v(e)},[v,y]);t(()=>(a&&e.addEventListener(Ch.KEY_DOWN,x),()=>{e.removeEventListener(Ch.KEY_DOWN,x)}),[e,a,x]);const[E,C]=i(!1);t(()=>{E&&(C(!1),window.setTimeout(()=>((e=>e.getElementsByClassName(Sh.TAB_MENU)?.[0])(e)??Ih(e))?.focus(),0))},[e,E]),t(()=>{n(!1)},[l.edit,n]),t(()=>{const t=t=>{const n=t.relatedTarget;e?.contains(n)||n?.classList.contains(Sh.TAB_MENU_ITEM)||g?.()};return b.enabled&&b.active&&!l.edit&&(n(!0),C(!0),e.addEventListener(Ch.FOCUS_OUT,t)),()=>{e.removeEventListener(Ch.FOCUS_OUT,t)}},[b])},Mh=e=>{const[t]=i(e);return[t,function(e){Object.assign(t,e)}]},Oh=({isContainerActive:e,activeTabId:n,modifiedLayout:r,renderHelper:i,activeCharts:a,sharedContainerUtilities:s})=>{const l={modifiedLayout:r,activeTabId:n,renderHelper:i,isContainerActive:e},[c,d]=Mh(l);d(l);const u=o(()=>()=>{const e=Zd(c.modifiedLayout);for(const[t,n]of c.renderHelper.objectMap.entries()){const r=c.isContainerActive&&c.activeTabId===e[t];"setIsActive"in n&&n.setIsActive(r)}},[c]);t(()=>{c.isContainerActive&&u()},[i.objectMap,u,c]),t(()=>{u()},[e,u]),(({activeCharts:e,onSetActiveCharts:n,canSetActiveChart:r=!0})=>{const[o,i]=Mh({onSetActiveCharts:n});i({onSetActiveCharts:n}),t(()=>{if(!r)return;const t=e=>{o.onSetActiveCharts(e)};e.on("setActiveCharts",t);const n=e.getActiveCharts();return n.length>0&&t(n),()=>e.removeListener("setActiveCharts",t)},[e,o,r])})({activeCharts:a,onSetActiveCharts:e=>{if(0===e.length)return;const t=c.modifiedLayout.objects.find(t=>t.id===e[0])?.childRefId;t&&t!==c.activeTabId&&s.setSelected(e)}})},jh={getChar(e){let t,n=e;return n>9?(t=65+n-10,t>90&&(t+=6)):n=`${n}`.charCodeAt(0),!t||[48,111,79,105,73,108].indexOf(t)>-1?this.getChar(n+1):String.fromCharCode(t)},base62(e){const t=this.getChar(e%62),n=Math.floor(e/62);return n>0?this.base62(n)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};const $h={qInfo:{qId:"MasterObjectList",qType:"MasterObjectList"},qAppObjectListDef:{qType:"masterobject",qData:{name:"/qMetaDef/title",labelExpression:"/labelExpression",visualization:"/visualization",tags:"/qMetaDef/tags"}}};class Nh{sessionObject;constructor(e){this.getOrCreateSessionObject(e).catch(()=>{})}getOrCreateSessionObject=async e=>{const t=$h.qInfo.qId;this.sessionObject=await e.getObject(t).catch(()=>e.createSessionObject($h))};getMasterVisualizations=async()=>{try{if(!this.sessionObject)return[];const e=await this.sessionObject.getLayout();return("qAppObjectList"in e?e.qAppObjectList.qItems:e).map(e=>({...e.qData,qExtendsId:e.qInfo.qId})).filter(e=>!kd.includes(e.visualization))}catch{return[]}}}let zh=function(e){return e[e.TOP=0]="TOP",e[e.BOTTOM=1]="BOTTOM",e[e.UP=2]="UP",e[e.DOWN=3]="DOWN",e}({});class Dh{model;embed;app;undoRedoModel;chartList;masterVizList;mutex;constructor({embed:e,model:t,app:n,translator:r,mutex:o}){this.model=t,this.embed=e,this.app=n;const i=n;i&&i.getUndoInfoObject&&i.getUndoInfoObject().then(e=>{this.undoRedoModel=e}).catch(()=>{}),n&&(this.masterVizList=new Nh(n)),e&&r&&(this.chartList=new Ad(e,r)),this.mutex=o}rememberAsGroup=async e=>{let t;this.undoRedoModel&&(t=await this.undoRedoModel.startGroup());const n=await e();return t&&this.undoRedoModel&&await this.undoRedoModel.endGroup(t),n};generateProperties=async(e,t)=>await this.embed.generateProperties({type:e,properties:t});async addChild(e,t,n){if(this.model&&!kd.includes(e.visualization))try{await this.mutex.lock();const{model:r}=this,o=async()=>{e.childRefId=jh.id();const o=await r.createChild(e);if(o){const t=await r.getProperties();t.objects.unshift({childRefId:e.childRefId,...n,condition:{qValueExpression:{qExpr:""}}}),await r.setProperties(t)}return t&&o&&await Promise.all(t.map(({qProperty:e})=>o.createChild(e))),o};return await this.rememberAsGroup(o)}catch{return}finally{this.mutex.unlock()}}addVizAsChild=async({type:e,initProps:t,objectInitProps:n,children:r})=>{try{const o=await this.generateProperties(e,t);let i=n?.label||t?.title;if(!i){const n=this.getChart(t?.visualization),r=n?.libraryInfo;i=r?.translation||r?.name||e}const a={...n,label:i};return await this.addChild(o,r,a)}catch{return}};addMasterObjectAsChild=async({initProps:e,objectInitProps:t,children:n})=>{try{if(!e||!e.qExtendsId||!this.app)return;const r=await this.app.getObject(e.qExtendsId),o=await r.getProperties(),i=t?.label||o.title||o.qMetaDef.title,a={...e,qInfo:{qType:"childObject"}},s={...t,label:i};return await this.addChild(a,n,s)}catch{return}};deleteChildren=async e=>{const{model:t}=this;if(0===e.length||!t)return!1;try{await this.mutex.lock();const n=await t.getFullPropertyTree(),{qChildren:r,qProperty:o}=n,i=new Set(e);return n.qChildren=r.filter(({qProperty:e})=>{const t=e.childRefId;return!t||!i.has(t)}),n.qProperty.objects=o.objects.filter(e=>!i.has(e.childRefId)),await t.setFullPropertyTree(n),!0}catch{return!1}finally{this.mutex.unlock()}};moveChild=async(e,t)=>{if(this.model)try{await this.mutex.lock();const n=await this.model.getProperties(),{objects:r}=n,o=r.findIndex(e=>e.childRefId===t);let i=!1;switch(e){case zh.TOP:{if(0===o)break;const e=r.splice(o,1)[0];r.unshift(e),i=!0;break}case zh.BOTTOM:{if(o===r.length-1)break;const e=r.splice(o,1)[0];r.push(e),i=!0;break}case zh.UP:{if(0===o)break;const e=r.splice(o,1)[0];r.splice(o-1,0,e),i=!0;break}case zh.DOWN:{if(o===r.length-1)break;const e=r.splice(o,1)[0];r.splice(o+1,0,e),i=!0;break}}i&&await this.model.setProperties(n)}finally{this.mutex.unlock()}};getCharts=()=>this.chartList?.getCharts()||{};getMasterVizList=()=>this.masterVizList?.getMasterVisualizations()||Promise.resolve([]);getChart=e=>this.chartList?.getChart(e);getChartLabelById=(e,t)=>{const n=e?.qChildList?.qItems.find(e=>e.qInfo.qId===t);if(!n)return"";const{visualization:r,title:o}=n.qData;if(o)return o;const i=this.getChart(r);return i?.libraryInfo?.translation||r}}class Bh{locked=!1;tasks=[];id;constructor(e){this.id=e}lock=async()=>this.locked?new Promise(e=>{this.tasks.push(e)}):(this.locked=!0,!0);unlock=()=>{if(this.tasks.length>0){const e=this.tasks.shift();e?.(!0)}else this.locked=!1}}const Fh={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},rebeccapurple:{r:102,g:51,b:153},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Gh={index:-1,color:"none",alpha:1},Hh=e=>{let t=parseFloat(e[1]),n=parseFloat(e[3]),r=parseFloat(e[5]);return t%=360,n/=100,r/=100,t=Math.max(0,Math.min(t,360)),n=Math.max(0,Math.min(n,1)),r=Math.max(0,Math.min(r,1)),{h:t,s:n,l:r,v:r}},Uh=(e,t,n,r,o=1)=>{let i,a,s,l;switch(n=Math.floor(n)){case 0:l=[e,t,0];break;case 1:l=[t,e,0];break;case 2:l=[0,e,t];break;case 3:l=[0,t,e];break;case 4:l=[t,0,e];break;case 5:l=[e,0,t];break;default:l=[0,0,0]}return i=l[0]+r,a=l[1]+r,s=l[2]+r,i=Math.round(255*i),a=Math.round(255*a),s=Math.round(255*s),`rgba(${i},${a},${s},${o})`},Wh=e=>{const{h:t,s:n,l:r}=Hh(e),o=e.length>7?parseFloat(e[7]):1,i=r<=.5?2*r*n:(2-2*r)*n,a=t/60,s=i*(1-Math.abs(a%2-1));return Uh(i,s,a,r-.5*i,o)},Vh={resolveExpression:({colorExpression:e=""})=>{let t=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e);if(t)return`rgb(${t[1]},${t[2]},${t[3]})`;if(t=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e),t)return`rgba(${t[1]},${t[2]},${t[3]},${t[4]})`;if(t=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e),t){const e=Math.round(Number(t[1])/255*100)/100;return`rgba(${t[2]},${t[3]},${t[4]},${e})`}if(t=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(e),t)return Wh(t);if(t=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e),t)return Wh(t);if(t=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(e),t)return(e=>{const{h:t,s:n,v:r}=Hh(e),o=r*n,i=t/60,a=o*(1-Math.abs(i%2-1));return Uh(o,a,i,r-o)})(t);if(t=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e),t)return e;if(t=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e),t)return e;const n=e&&Fh[e.toLowerCase()];if(n){const e=void 0!==n.a?n.a:1;return`rgba(${n.r},${n.g},${n.b},${e})`}return"none"},getColor({style:e,defaultColor:t,theme:n}){const r=e?.color||Gh;let o;return o=e?.useColorExpression?Vh.resolveExpression(e):"string"==typeof r?r:n?.getColorPickerColor(r)||"",o&&"none"!==o?o:t}},qh=()=>Ht.jsx(Fd,{viewBox:"0 0 16 16",children:Ht.jsx("path",{d:"M15 6V5H5V2H1.5a.5.5 0 0 0-.5.5V6H0V2a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v4h-1Zm-5-4H6v2h4V2Zm4.5 0H11v2h4V2.5a.5.5 0 0 0-.5-.5Zm1.5 9h-1V8h1v3Zm0 3a1 1 0 0 1-1 1h-1v-1h.6a.4.4 0 0 0 .4-.4V13h1v1Zm-7 1v-1h3v1H9Zm-5 0v-1h3v1H4Zm-3 0a1 1 0 0 1-1-1v-1h1v.6c0 .22.18.4.4.4H2v1H1ZM0 8h1v3H0V8Zm4-.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-4ZM5 11h6V8H5v3Z"})}),Yh=({libraryInfo:e,style:t,id:n})=>Ht.jsx("div",{style:t,"data-testid":"tab-chart-icon",id:n,className:Sh.TABS_ICON,children:Ht.jsx(e.IconDefinition,{})}),Kh=({style:e,id:t})=>Ht.jsx("div",{style:e,"data-testid":"tab-hidden-icon",id:t,children:Ht.jsx(Gd,{viewBox:"0 0 16 16",children:Ht.jsx("path",{d:"m13.441.795.764.646-1.839 2.174c.568.434 1.076.914 1.522 1.385a13.79 13.79 0 0 1 2.109 3 13.798 13.798 0 0 1-2.108 3c-1.382 1.457-3.345 3-5.89 3-1.34 0-2.52-.428-3.536-1.045l-1.904 2.25-.764-.646L13.441.795ZM11.72 4.379l-1.427 1.686a3 3 0 0 1-3.82 4.516l-1.354 1.6c.86.497 1.819.819 2.88.819 2.121 0 3.834-1.287 5.161-2.685A12.666 12.666 0 0 0 14.857 8a12.691 12.691 0 0 0-1.697-2.315c-.35-.37-.727-.73-1.132-1.063l-.308-.243ZM8 2a6.428 6.428 0 0 1 2.242.412l.305.123-.681.805A5.359 5.359 0 0 0 8 3C5.877 3 4.164 4.287 2.837 5.685A12.664 12.664 0 0 0 1.14 8a12.66 12.66 0 0 0 1.697 2.315l.301.308.311.299-.646.765A14.567 14.567 0 0 1 2.109 11 13.791 13.791 0 0 1 0 8a13.801 13.801 0 0 1 2.109-3C3.49 3.543 5.454 2 8 2Zm1.633 4.845-2.5 2.956a1.999 1.999 0 0 0 2.5-2.956Zm-3.917-.793a3 3 0 0 1 2.692-1.025l.202.035-.809.948A2 2 0 0 0 6 7.967l.003.152-.808.947a3 3 0 0 1 .521-3.014Z"})})}),Xh=()=>Ht.jsx(Gd,{viewBox:"0 0 16 16",children:Ht.jsx("path",{d:"M12 4H6V3h6v1ZM6 8.5h4v-1H6v1Zm9 4.5H6v-1h9v1ZM3 11a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h1Zm0 1H2v1h1v-1Zm0-5.5a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h1Zm0 1H2v1h1v-1ZM3 2a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h1Zm0 1H2v1h1V3Z"})}),Zh=sa(ed)({width:28,overflow:"hidden"}),Jh=sa(ed)({height:28,width:"100%",overflow:"hidden",alignItems:"center","&::before":{visibility:"hidden"}}),Qh=(e,t)=>e.find(e=>e.childRefId===t),ef=(e,t)=>!t.edit&&(0===e.condition||!1===e.visible),tf=e=>{const{objects:t,defaultTabId:n,cachedTabId:r}=e;return r||(n&&t.some(e=>e.childRefId===n)?n:t[0]?.childRefId||"")};class nf{modifiedLayout;themeStyle;style;objectMap;activeTabId;theme;constructor({modifiedLayout:e,themeService:t}){this.modifiedLayout=e,this.activeTabId=tf(this.modifiedLayout),this.themeStyle=t.getStyles(),this.theme=t.getTheme(),this.objectMap=Jd(this.modifiedLayout),this.style=this.createStyleClasses()}getTabsWidth=e=>{const t=this.resolveComponentStyle({compPath:"width.value",themePath:"tabWidth.value"});if(void 0===t||2!==t.length||e!==this.modifiedLayout.orientation)return{};const n=this.resolveComponentStyle({compPath:"width.unit",themePath:"tabWidth.unit",defaultValue:"%"});return{minWidth:`${t[0]}${n}`,maxWidth:`${t[1]}${n}`}};getTabWidth=e=>{const t=e?.value,n=e?.unit??"%";if(void 0===t||2!==t.length||"left"===this.modifiedLayout.orientation)return{};return{minWidth:`${t[0]}${n}`,maxWidth:`${t[1]}${n}`}};getColorStyle=(e,t=e)=>{const n=this.resolveComponentStyle({compPath:e,themePath:t});return Vh.getColor({style:n,theme:this.theme})??n};getTabBackgroundStyle=(e,t)=>{let n;if(this.activeTabId===e){const e=this.resolveComponentStyle({compPath:"background.selected",themePath:""});n=Vh.getColor({style:e,theme:this.theme})}return n??Vh.getColor({style:t,theme:this.theme})};createTabClasses=()=>this.modifiedLayout.objects?.reduce((e,t)=>{const n=t?.childRefId,r=t?.components?.find(e=>"tab"===e.key);return e[`#tab-${this.modifiedLayout.qInfo.qId}-${n}`]={textAlign:bp(r,"label.alignment"),backgroundColor:this.getTabBackgroundStyle(n,r?.background),...this.getTabWidth(r?.width)},e[`#tab-${this.modifiedLayout.qInfo.qId}-${n}:hover`]={..."left"===this.modifiedLayout.orientation&&{backgroundColor:this.getColorStyle("background.hover","background.hover.color")}},e[`#tab-label-${this.modifiedLayout.qInfo.qId}-${n}`]={fontSize:bp(r,"label.fontSize"),fontFamily:bp(r,"label.fontFamily"),color:Vh.getColor({style:bp(r,"label.color"),theme:this.theme})},e[`#tab-icon-${this.modifiedLayout.qInfo.qId}-${n} svg`]={height:bp(r,"icon.size"),color:Vh.getColor({style:bp(r,"icon.color"),theme:this.theme})},e},{});createTabsClasses=()=>({[_h]:{fontSize:this.resolveComponentStyle({compPath:"label.fontSize",themePath:"label.value.fontSize"}),fontFamily:this.resolveComponentStyle({compPath:"label.fontFamily",themePath:"label.value.fontFamily"}),color:this.resolveComponentStyle({compPath:"label.color.color",themePath:"label.value.color"})},[kh]:{height:this.resolveComponentStyle({compPath:"icon.size",themePath:"icon.value.fontSize"}),color:this.getColorStyle("icon.color","icon.value.color")},[wh]:{textAlign:this.resolveComponentStyle({compPath:"label.alignment",themePath:"label.textAlignment"}),...this.getTabsWidth("top")},[Rh]:{..."top"===this.modifiedLayout.orientation&&{borderBottomColor:this.getColorStyle("indicator.hover","indicator.hover.color")}},[Ah]:{...this.getTabsWidth("left"),backgroundColor:this.getColorStyle("background.unselected","")},[Lh]:{backgroundColor:this.getColorStyle("indicator.selected","indicator.selected.color")}});createStyleClasses=()=>({...this.createTabsClasses(),...this.createTabClasses()});getStyleClasses(){return this.style}resolveComponentStyle=({key:e="tabs",compPath:t,themePath:n=t,defaultValue:r})=>{const o=this.modifiedLayout.components?.find(t=>t.key===e);return bp(o,t)??bp(this.themeStyle,n)??r};getTabStyle(e){return this.objectMap[e].components?.find(e=>"tab"===e.key)}}const rf=()=>{const t=a(),n=s(),r=l(),m=c(),b=d(),g=u(),v=e(),y=p(),x=h(),E=function({theme:e,config:t={}}){const{id:n,resolve:r=[],transform:o=[],extend:i=[]}=t,a={theme:e,matrix:Mp(r),styles:void 0};return a.styles=$p({theme:e,id:n,transform:o,extend:i,matrix:a.matrix}),{getStyles:()=>a.styles,getTheme:()=>a.theme,setTheme:e=>{a.theme=e,a.styles=$p({theme:e,id:n,transform:o,extend:i,matrix:a.matrix})}}}({theme:f(),config:{id:"tabbedContainer",resolve:[["object.tabbedContainer","indicator.selected","color"],["object.tabbedContainer","indicator.hover","color"],["object.tabbedContainer","background.hover","color"],["object.tabbedContainer","icon.value","color"],["object.tabbedContainer","icon.value","fontSize"]]}}),C=o(()=>new Ad(m,g),[m,g]),[S]=i(()=>new Bh(b?.id)),[w,R]=i(!1),_=o(()=>m&&b&&n?new Dh({embed:m,model:b,app:n,translator:g,mutex:S}):void 0,[m,b,n,g,S]),k=o(()=>Xd(r),[r]),A=o(()=>new nf({modifiedLayout:k,themeService:E}),[k,E]);return o(()=>({app:n,modifiedLayout:k,embed:m,model:b,emitter:y,interactions:x,dataHandler:_,chartList:C,styleModel:A,mutex:S,options:v,accessibility:w,setAccessibility:R,translator:g,element:t}),[k,m,b,n,y,x,_,C,A,S,v,w,g,t])},of=({dataHandler:e,modifiedLayout:t,translator:n,sharedContainerUtilities:r,Icon:o})=>{const[i,a]=R(void 0);if(!e||!t)return null;const s=!t.qExtendsId;return Ht.jsx(jd,{children:Ht.jsxs(Od,{children:[Ht.jsx(o,{}),s?Ht.jsxs(Ht.Fragment,{children:[Ht.jsx(Bd,{sx:{width:250,height:32,fontFamily:"inherit"},className:"init-button",variant:i?"contained":"outlined",onClick:e=>{a(e.currentTarget)},"aria-label":n.get("LayoutContainer.EmptyList.AddContent"),disableRipple:!0,children:n.get("LayoutContainer.EmptyList.AddContent")}),Ht.jsx(Wd,{translator:n,anchorEl:i,dataHandler:e,onClose:()=>{a(void 0)},sharedContainerUtilities:r})]}):Ht.jsx(ys,{variant:"inherit",children:n.get("LayoutContainer.EmptyList.EmptyHint")})]})})};class af{_rendered=new Set;_objectMap=new Map;_objectApis=new Map;_resolver;_dependencyData;_recreateMap=new Map;constructor(e){this._dependencyData=e}set dependencyData(e){this._dependencyData=e}get dependencyData(){return this._dependencyData}get rendered(){return this._rendered}get objectMap(){return this._objectMap}get objectApis(){return this._objectApis}get resolver(){return this._resolver}get recreateMap(){return this._recreateMap}createTimerForRendering=()=>{if(!this.resolver){let e;const t=setTimeout(()=>{this._dependencyData.options.onRenderStatusUpdate?.("Layout container rendering timeout reached after 90 seconds. Resolving anyway."),this.doResolve()},9e4),n=new Promise(t=>{e=t});this._resolver={promise:n,resolve:e,timer:t}}return this._resolver};doResolve=()=>{this.resolver&&(clearTimeout(this.resolver?.timer),this.resolver.resolve?.(!0),this._resolver=void 0)};tryToResolve=()=>{const{visibleLayoutObjects:e}=this._dependencyData;if(this.resolver){e.every(e=>this.rendered.has(e.id))&&(this._dependencyData.options.onRenderStatusUpdate?.("All layout container children rendered"),this.doResolve())}};syncObjects(e){const t=new Set,n=new Set([...Array.from(this.objectMap.keys()),...Array.from(this.objectApis.keys()),...this.rendered]),r=new Set(n);let o=!1;return e.forEach(e=>{n.has(e.id)?(this.rendered.has(e.id)&&t.add(e.id),r.delete(e.id)):o=!0}),r.forEach(e=>{const t=this.objectMap.get(e);t&&(this.confirmPotentialSelections(t),t.destroy?.(),this.objectMap.delete(e)),this.objectApis.get(e)?.destroy(),this.objectApis.delete(e)}),this._rendered=t,this.tryToResolve(),o}destroy(){for(const e of this.objectApis.values())e.destroy();this._objectMap=new Map,this._objectApis=new Map}saveObject(e,t){this.objectMap.set(e,t)}saveObjectApi(e,t){this._objectApis.set(e,t)}onRendered(e){this._dependencyData.options.onRenderStatusUpdate?.(`Layout container child rendered: ${this.rendered.size+1}/${this._dependencyData.visibleLayoutObjects.length} ${e}`),this.rendered.add(e),this.tryToResolve()}getChildrenObjects(){const{visibleLayoutObjects:e}=this._dependencyData,t=[];return e.forEach(e=>{const n=this.objectMap.get(e.id);n&&t.push(n)}),t}getChildLayout(e){const{modifiedLayout:t}=this._dependencyData;return t.qChildList.qItems.find(t=>t.qInfo.qId===e)}getObjectOptions(e){const{viewState:t,modifiedLayout:n,options:r}=this._dependencyData,{chartAnimations:o,direction:i,progressiveRendering:a,freeResize:s,navigation:l,useQlikEmbedChildRendering:c,getContextMenuParent:d,onContextMenu:u,context:p,disableThemeBorder:h}=r;return{isReadonly:!1,setController:t=>{this.saveObject(e,t)},onRendered:()=>{this.onRendered(e)},onInitialRender:()=>{this.onRendered(e)},isParentMaster:!!n?.qExtendsId,isSnapshot:!!n.snapshotData,...!!t?.viewStates?.[e]&&{viewState:t?.viewStates[e]},...!!t?.layouts?.[e]&&{layout:t.layouts[e]},direction:i,chartAnimations:o,progressiveRendering:a,freeResize:s,navigation:l,disableThemeBorder:h??!1,fallbackToClient:r.fallbackToClient,useQlikEmbedChildRendering:c,getContextMenuParent:d,onContextMenu:u,context:p}}confirmPotentialSelections(e){e&&"selectionsApi"in e&&e.selectionsApi.active&&e.selectionsApi.confirm()}}async function sf(e,t){return t?.runtimeModuleMocks?.[e]?t.runtimeModuleMocks?.[e]:(function(e){if(!window.__qlikMainPrivateResolvers)throw new Error("No main url resolver found");const t=function(e){if(!window.__qlikMainPrivateResolvers)throw new Error("No main url resolver found");let t,n=e?.embedRuntimeUrl||e?.url||e?.host;if(n||"noauth"!==e?.authType||(n="https://cdn.qlikcloud.com/qmfe"),n){for(t=n.toLowerCase().startsWith("https://")||n.toLowerCase().startsWith("http://")?n:`https://${n}`;t.endsWith("/");)t=t.slice(0,-1);return`${t}/qlik-embed/main.js`}}(e);t&&window.__qlikMainPrivateResolvers.resolveMainJsUrlAndHostConfig&&window.__qlikMainPrivateResolvers.resolveMainJsUrlAndHostConfig({url:t,hostConfig:e}),t&&window.__qlikMainPrivateResolvers.resolveMainJsUrl&&(window.__qlikMainPrivateResolvers.forwardCompatibleHostConfig=e,window.__qlikMainPrivateResolvers.resolveMainJsUrl(t))}(t),async function(e){if(!window.__qlikMainPrivateResolvers?.qlikMainPromise)throw new Error("No main url resolver found");return(await window.__qlikMainPrivateResolvers.qlikMainPromise).import(e)}(e))}window.__qlikMainPrivateResolvers||(window.__qlikMainPrivateResolvers={}),window.__qlikMainPrivateResolvers.mainUrlPromise||(window.__qlikMainPrivateResolvers.mainUrlPromise=new Promise(e=>{window.__qlikMainPrivateResolvers&&(window.__qlikMainPrivateResolvers.resolveMainJsUrl=t=>{e(t)})})),window.__qlikMainPrivateResolvers.mainJsUrlAndHostConfigPromise||(window.__qlikMainPrivateResolvers.mainJsUrlAndHostConfigPromise=new Promise(e=>{window.__qlikMainPrivateResolvers&&(window.__qlikMainPrivateResolvers.resolveMainJsUrlAndHostConfig=t=>{e(t)})})),window.__qlikMainPrivateResolvers.qlikMainPromise||(window.__qlikMainPrivateResolvers.qlikMainPromise=(async()=>{if(window.QlikMain)return window.QlikMain;if(!window.__qlikMainPrivateResolvers?.mainJsUrlAndHostConfigPromise||!window.__qlikMainPrivateResolvers.mainUrlPromise)throw new Error("No main url promise found, report this issue");const e=setTimeout(()=>{console.warn("Waiting for a host parameter pointing to a Qlik runtime system")},5e3),{url:t,hostConfig:n}=await Promise.race([window.__qlikMainPrivateResolvers.mainJsUrlAndHostConfigPromise,window.__qlikMainPrivateResolvers.mainUrlPromise.then(e=>({url:e,hostConfig:window.__qlikMainPrivateResolvers?.forwardCompatibleHostConfig}))]);clearTimeout(e);const r=await async function(e,t){if("windowscookie"===t?.authType){if(t.getAccessToken){const n=await async function(e){if("function"==typeof e)return e();if("string"==typeof e){const t=function(e){return globalThis[e]}(e);if("function"!=typeof t)throw new Error(`getAccessToken function "${e}" not found on globalThis. Please make sure it is defined.`);return t()}}(t.getAccessToken);return n&&await fetch(e,{method:"GET",mode:"cors",credentials:"include",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},cache:"no-cache"}),!0}if(t.loginUri&&!(await fetch(e,{method:"GET",mode:"cors",credentials:"include",redirect:"manual"}).catch(()=>({ok:!1}))).ok)return window.location.replace(t.loginUri),new Promise(()=>{})}return!1}(t,n);return new Promise(e=>{if(window.QlikMain)e(window.QlikMain);else{const n=window.document.createElement("script");t&&(n.src=t),r&&(n.crossOrigin="use-credentials"),n.addEventListener("error",()=>{console.error(`Qlik runtime system not found: ${t}`)}),n.addEventListener("load",()=>{window.QlikMain&&e(window.QlikMain)}),window.document.head.appendChild(n)}})})());const lf=k(void 0),cf=e=>{const t=L(null),n=L(void 0),{vanillaEmbedFn:r,hostConfig:o,...i}=e;return _(()=>(t.current&&(n.current=r({target:t.current,props:{hostConfig:o,...i}})),()=>{n.current&&n.current.$destroy()}),[]),_(()=>{n.current&&n.current.$set({hostConfig:o,...i})},[i,o]),Ht.jsx("qlik-embed-react",{style:{display:"contents"},ref:t})},df=e=>{const t=E(lf),{vanillaEmbedFn:n}=function(e){const[t,n]=R({});return _(()=>{e&&sf("embed-vanilla@v1",e).then(({mountVanillaEmbedComponent:e})=>{n({vanillaEmbedFn:e})}).catch(e=>{n({vanillaError:e instanceof Error?e:new Error(String(e))})})},[e]),t}(t);return n?Ht.jsx(cf,{hostConfig:t,...e,vanillaEmbedFn:n}):null};const uf=x(function(e,t){const[n,r]=R(null),o=function(e){const t=L(e);return _(()=>{t.current=e},[e]),I(e=>{t.current(e)},[])}(e=>{r(()=>e)});return A(t,()=>n,[n]),Ht.jsx(df,{exposeRefApi:o,...e})}),pf=new Map,hf=e=>{const t=pf.get(e);t&&(t.unmount(),pf.delete(e))},ff=({chartObject:e,embed:t,renderHelper:n,direction:r,interactions:o,env:i,app:a})=>{const s=L(null),{id:l}=e;_(()=>(l&&s.current&&(async(e,t,n,r,o)=>{const i=r.getObjectOptions(t)||{},a=r.dependencyData?.containerMenu??{id:"container-menu",icon:"ChartObject"},s=r.dependencyData?.translator,l=o?.id;if(i.useQlikEmbedChildRendering&&l)try{const n=Td.createRoot(e);pf.set(t,n);const o={ui:"analytics/chart",objectId:t,appId:l,onRender:i.onRendered,context:i.context,exposeRefApi:({getVisualizationApi:e})=>{e().then(e=>{const n=e;r.saveObjectApi(t,n),r.saveObject(t,{...n,getViewState:()=>n.getImperativeHandle().then(e=>e.getViewState())})})},onContextMenu:async e=>{try{const t=await(i.onContextMenu?i.onContextMenu(e):e.contextMenuItems),n=await(i.getContextMenuParent?.(e));return n&&"object"==typeof e&&null!==e&&"contextMenuItems"in e&&t?.push({tid:a.id,id:a.id,icon:{value:a.icon,type:"sprout"},label:s?.get("contextMenu.subMenuContainerOptions")??"Container options",items:n}),t}catch(e){return console.error("Error getting context menu parent options",e),[]}}};return void n.render(Ht.jsx(lf.Provider,{value:{},children:Ht.jsx(uf,{...o})}))}catch(e){console.warn("QlikEmbed mount failed, falling back to embed.render()",t,e),hf(t)}n.render({element:e,id:t,options:i}).then(e=>{r.saveObjectApi(t,e)}).catch(e=>{const n=r.getChildLayout(t)?.qInfo.qType;console.error("Could not render chart with id",t,n,e)})})(s.current,l,t,n,a),()=>{l&&hf(l)}),[l,t,n,r,a]);const c=T(()=>()=>{if(e?.id&&i.anything){const t=e?.label,{sense:r}=i.anything,o="current",a=n.objectMap.get(e.id);a&&r.propertyPanel.show({model:a.model,parent:o,headerLabel:t,keepCurrentActiveCell:!0})}},[i,e,n]);return _(()=>{const e=s?.current;return e&&o?.edit&&e.addEventListener("dblclick",c),()=>{e?.removeEventListener("dblclick",c)}},[s,c,o]),Ht.jsx("div",{ref:s,style:{position:"relative",height:"100%",width:"100%"},"data-testid":`tab-panel-${e.childRefId}`})};let mf=function(e){return e.TABS_HEIGHT="36px",e}({});const bf=({charts:e,handleChangeTab:t,activeTabId:n,element:r,translator:o,accessibility:i,disabled:a})=>{const[s,l]=y.useState(null),c=Boolean(s),d=()=>{l(null)},u=I(e=>{e?.focus()},[]);return Ht.jsxs(Ht.Fragment,{children:[Ht.jsx(nl,{onClick:e=>{l(e.currentTarget)},disabled:a,"aria-haspopup":"menu","data-testid":"chartTabMenuDropdownButton",tabIndex:i?0:-1,"aria-label":o.get("Container.Label.Visualizations"),className:Sh.TAB_MENU,sx:{m:"2px"},children:Ht.jsx(Xh,{})}),Ht.jsx(Oc,{anchorEl:s,open:c,onClose:d,elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{sx:{py:0}},slotProps:{paper:{sx:{maxHeight:"500px",maxWidth:"500px"}}},children:e.map(e=>Ht.jsx(Dc,{className:Sh.TAB_MENU_ITEM,ref:n===e.childRefId&&c?u:null,onClick:()=>{(e=>{t(e.childRefId),d(),window.setTimeout(()=>{r.getElementsByClassName(Sh.ACTIVE_TAB_PANEL)?.[0]?.focus()},0)})(e)},sx:n===e.childRefId?{backgroundColor:"rgba(0, 0, 0, 0.1)"}:{},"aria-label":e.label,title:e.label,children:Ht.jsx(ys,{variant:"inherit",noWrap:!0,children:e.label})},`chartTabMenu-${e.childRefId}`))})]})},gf=({label:e,id:t})=>Ht.jsx(Vs,{className:Sh.TAB_LABEL,id:`tab-label-${t}`,sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",overflow:"hidden",flexWrap:"wrap"},children:Ht.jsx("span",{style:{width:"100%",overflowWrap:"break-word",hyphens:"auto",fontWeight:"bold",display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",lineHeight:"normal",overflow:"hidden"},children:e})}),vf=({libraryInfo:e,chart:t,iconPosition:n,id:r})=>{let o;switch(n){case"bottom":o={marginTop:"6px"};break;case"top":o={marginBottom:"6px"};break;case"end":o={marginInlineStart:"8px"};break;default:o={marginInlineEnd:"8px"}}o.display="flex",o.alignItems="center",o.height="100%",o.flex="1 0 0";return 0===t.condition||!1===t.visible?Ht.jsx(Kh,{id:`${Sh.TABS_ICON}-${r}`,style:o}):e?Ht.jsx(Yh,{id:`${Sh.TABS_ICON}-${r}`,libraryInfo:e,style:o}):null},yf=({models:e,activeTabId:t,handleChangeTab:n})=>{const{modifiedLayout:r,chartList:o,interactions:i,accessibility:a}=e,s=o?.getCharts(),l=r.objects.filter(e=>!ef(e,i)),{orientation:c,tabContainerStyle:d,ScrollButtonComponent:u}=(({orientation:e})=>"left"===e?{orientation:"vertical",tabContainerStyle:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:"25%",flexShrink:0},ScrollButtonComponent:Jh}:{orientation:"horizontal",tabContainerStyle:{display:"flex",flexDirection:"row",alignItems:"center"},ScrollButtonComponent:Zh})(r),p=!1===i.active&&!i.edit,[h,f]=R(!1),m=I(e=>{if(e){const t=e.getElementsByClassName("MuiTabs-flexContainer")[0];if(t)return void f("vertical"===c?t.scrollHeight>t.offsetHeight:t.scrollWidth>t.offsetWidth)}f(!1)},[c]);return Ht.jsxs(Vs,{className:Sh.TAB_WRAPPER,sx:d,ref:e=>{m(e)},children:[r.useDropdown&&h?Ht.jsx(bf,{charts:l,handleChangeTab:n,activeTabId:t,accessibility:a,translator:e.translator,element:e.element,disabled:p}):null,Ht.jsx(hd,{value:t,onChange:(e,t)=>{n(t)},ScrollButtonComponent:u,variant:"scrollable",orientation:c,scrollButtons:!!r.useScrollButton&&"auto",TabScrollButtonProps:{...p&&{disabled:!0}},sx:{height:"100%",width:"100%",minHeight:mf.TABS_HEIGHT},children:l.map(n=>{const o=Kd(r,n.childRefId)?.qData?.visualization,i=o&&s?.[o]?.libraryInfo,l=e.styleModel.getTabStyle(n.childRefId),d=0===n.condition||r.showIcons&&i&&!1!==l?.icon?.show||!1===n.visible,u="vertical"===c?"top":"start",h=e.styleModel.resolveComponentStyle({compPath:"icon.position",defaultValue:u}),f=e.styleModel.resolveComponentStyle({compPath:"label.show"}),m=n.label&&(l?.label?.show??!1!==f),b=`${r.qInfo.qId}-${n.childRefId}`;return Ht.jsx(Uc,{className:`${Sh.TAB} ${t===n.childRefId?Sh.ACTIVE_TAB:""}`,disabled:p,id:`tab-${b}`,value:n.childRefId,title:n.label,label:m?Ht.jsx(gf,{label:n.label,id:b}):void 0,icon:d?Ht.jsx(vf,{libraryInfo:i,chart:n,iconPosition:h,id:b}):"",iconPosition:h,"data-testid":`container-tab-${n.childRefId}`,sx:{textAlign:"vertical"!==c||r.showIcons?"center":"start",minWidth:"vertical"===c?"100%":void 0,minHeight:mf.TABS_HEIGHT,padding:"6px 16px","&:hover":{paddingBottom:"4px"},"&.Mui-disabled":{opacity:"inherit"}},"aria-label":n.label,"aria-controls":`tab-panel-${b}`,tabIndex:a&&t===n.childRefId?0:-1},n.childRefId)})})]})},xf=({models:e,renderHelper:t,activeTabId:n,handleChangeTab:r,env:o})=>{const{modifiedLayout:i,embed:a,interactions:s,options:l,styleModel:c,accessibility:d,app:u}=e,p=i.objects,h=s.edit||!!p.find(e=>0!==e.condition&&!1!==e.visible),f=i.showTabs&&h,m="left"===i.orientation?"row":"column",b=c.getStyleClasses();return Ht.jsxs(Vs,{sx:{display:"flex",flexDirection:m,height:"100%",width:"100%",direction:l.direction,...b},children:[f?Ht.jsx(yf,{models:e,activeTabId:n,handleChangeTab:r}):null,p.map(e=>{const r=`tab-panel-${i.qInfo.qId}-${e.childRefId}`,c=n===e.childRefId&&!ef(e,s);return Ht.jsx(Vs,{role:"tabpanel",id:r,"aria-label":e.label,sx:{flex:"1 1 auto",minHeight:0,width:"100%",padding:"2px",boxSizing:"border-box",direction:"ltr","&:focus-visible":{boxShadow:"inset 0 0 0 2px #0275D9",borderRadius:"3px",zIndex:1200}},...c?{className:Sh.ACTIVE_TAB_PANEL,tabIndex:d?0:-1}:{hidden:!0},children:c?Ht.jsx(ff,{chartObject:e,renderHelper:t,direction:l.direction,embed:a,interactions:s,env:o,app:u}):null},r)})]})};let Ef=function(e){return e.COPY="copy",e.PASTE="paste",e.RESET_COPY_BUFFER="resetCopyBuffer",e}({}),Cf=function(e){return e.COPY="copy",e.PASTE_AND_REPLACE="paste-and-replace",e.PASTE="paste",e.DUPLICATE="duplicate",e.DELETE="delete",e.CUT="cut",e.EDIT_PROPERTIES="edit",e.ZOOM_IN="zoom-in",e.VISUAL_EXPLORATION="visual-exploration",e.MONITOR_IN_HUB="addto",e.REORDER_LAYERS_GROUP="reorder-layers-group",e.BRING_TO_FRONT="bring-to-front",e.BRING_FORWARD="bring-forward",e.SEND_TO_BACK="send-to-back",e.SEND_BACKWARDS="send-backwards",e.CONTAINER_HEADER="container-header",e.CHART_HEADER="chart-header",e.ALERT_GROUP="alertGroup",e.ADD_TO_MASTER_ITEMS="add-to-master-items",e.UNLINK_VISUALIZATION="unlink",e.DEVELOPER="object-developer",e.SHOW_DETAILS="object-info",e.EXPLAIN_KEY_DRIVERS_OLD_ID="explainKeyDrivers",e.EXPLAIN_KEY_DRIVERS="key-driver",e.SUBSCRIBE="subscribe",e.NOTES_GROUP="notesGroup",e.DOWNLOAD="download",e.SHARE_IMAGE="share",e}({});const Sf=[Cf.PASTE_AND_REPLACE,Cf.ZOOM_IN,Cf.VISUAL_EXPLORATION],wf=[Cf.VISUAL_EXPLORATION,Cf.ALERT_GROUP,Cf.SHOW_DETAILS,Cf.EXPLAIN_KEY_DRIVERS,Cf.EXPLAIN_KEY_DRIVERS_OLD_ID],Rf=[Cf.DELETE,Cf.CUT,Cf.ADD_TO_MASTER_ITEMS,Cf.UNLINK_VISUALIZATION],_f=[Cf.PASTE_AND_REPLACE],kf=(e,t)=>{const{childRefId:n}=e.model.layout,r=t.objects.find(e=>e.childRefId===n);return{...e,additionalData:{label:r?.label}}},Af=(e,t,n,r,o)=>{const i=t.getSupportFunction(Cf.COPY);if(!i)return void e.deleteItem(Cf.COPY);const a=()=>{i(kf(n,r)).catch(()=>{})},s=e.items.find(e=>e.id===Cf.COPY);if(s)s.updateItem({select:a});else if(o){const t=e.items.findIndex(e=>e.id===Cf.CUT),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.copy",tid:Cf.COPY,id:Cf.COPY,icon:"copy",select:a,items:[]},n)}},Lf=e=>e.interactions.edit&&!e.modifiedLayout.qExtendsId,If=async(e,t,n,r,o)=>{if(o.flags.isEnabled("GVC_48_CHART_CONTEXT_MENU_ITEM_GENERATION"))return;const i=t.getBuilder("default");if(!i)return;const a=await i();a.addItem({translation:"contextMenu.containerOptionsHeader",tid:Cf.CONTAINER_HEADER,id:Cf.CONTAINER_HEADER,bold:!0,items:[]},0);const s=Lf(n);a.items.forEach(e=>{(wf.includes(e.id)||!s&&_f.includes(e.id))&&a.deleteItem(e.id)}),s&&await(async(e,t,n)=>{const r=t.getSupportFunction(Ef.PASTE),o=await(r?.()?.catch(()=>{}));if(!o||kd.includes(o.template))return void e.deleteItem(Cf.PASTE_AND_REPLACE);const i=()=>{n()},a=e.items.find(e=>e.id===Cf.PASTE_AND_REPLACE||e.id===Cf.PASTE);if(a)a.updateItem({translation:"contextMenu.paste",select:i});else{const t=e.items.findLastIndex(e=>e.id===Cf.COPY||e.id===Cf.DEVELOPER||e.id===Cf.CONTAINER_HEADER),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.paste",tid:Cf.PASTE_AND_REPLACE,id:Cf.PASTE_AND_REPLACE,icon:"paste",select:i,items:[]},n)}})(a,t,r),e.updateItem({items:a.items}),1===e.items.length&&e.deleteItem(Cf.CONTAINER_HEADER)},Tf="tabbed-container-menu",Pf=e=>{const t={[Cf.MONITOR_IN_HUB]:!0,[Cf.SUBSCRIBE]:!0,[Cf.NOTES_GROUP]:!0,[Cf.DOWNLOAD]:!0,[Cf.SHARE_IMAGE]:!0};e.items.forEach(n=>{t[n.id]?e.deleteItem(n.id):n.items&&Pf(n)})},Mf=(e,t,n,r,o,i)=>a=>{const{dataHandler:s,modifiedLayout:l}=r;if(Lf(r)){n.isInvalid||(((e,t,n,r)=>{const{model:o,modifiedLayout:i}=n,a=e.items.findLastIndex(e=>e.id===Cf.CHART_HEADER||e.id===Cf.REORDER_LAYERS_GROUP),s=a>=0?1+a:void 0;e.addItem({translation:"Object.Container.Props.EditProperties",tid:Cf.EDIT_PROPERTIES,id:Cf.EDIT_PROPERTIES,icon:Cf.EDIT_PROPERTIES,items:[],select:()=>{const{childRefId:e}=t.model.layout,n=i.objects.find(t=>t.childRefId===e),a=n?.label,{sense:s}=r.anything,l=o;s.propertyPanel.show({model:t.model,parent:l,headerLabel:a})}},s)})(a,n,r,o),((e,t,n,r,o,i)=>{const a=r.getSupportFunction(Cf.COPY);if(!a)return void e.deleteItem(Cf.CUT);const s=()=>{o&&a(kf(n,i)).then(async()=>{await(o?.deleteChildren([t]))}).catch(()=>{})},l=e.items.find(e=>e.id===Cf.CUT);if(l)l.updateItem({select:s});else{const t=e.items.findLastIndex(e=>e.id===Cf.ADD_TO_MASTER_ITEMS||e.id===Cf.UNLINK_VISUALIZATION||e.id===Cf.EDIT_PROPERTIES||e.id===Cf.REORDER_LAYERS_GROUP||e.id===Cf.DEVELOPER),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.cut",tid:Cf.CUT,id:Cf.CUT,icon:"cut",select:s,items:[]},n)}})(a,t,n,e,s,l),Af(a,e,n,l,!0),((e,t,n,r,o)=>{const i=t.getSupportFunction(Ef.COPY),a=t.getSupportFunction(Ef.PASTE);if(!i||!a)return void e.deleteItem(Cf.DUPLICATE);const s=()=>{i(kf(n,r)).then(()=>{o()}).catch(()=>{})},l=e.items.find(e=>e.id===Cf.DUPLICATE);if(l)l.updateItem({select:s});else{const t=e.items.findIndex(e=>e.id===Cf.COPY),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Duplicate",tid:Cf.DUPLICATE,id:Cf.DUPLICATE,icon:Cf.DUPLICATE,items:[],select:s},n)}})(a,e,n,l,i)),((e,t,n)=>{const r=()=>{n&&n.deleteChildren([t]).catch(()=>{})},o=e.items.find(e=>e.id===Cf.DELETE);if(o)o.updateItem({select:r});else{const t=e.items.findLastIndex(e=>e.id===Cf.DUPLICATE||e.id===Cf.ADD_TO_MASTER_ITEMS||e.id===Cf.UNLINK_VISUALIZATION||e.id===Cf.REORDER_LAYERS_GROUP||e.id===Cf.DEVELOPER),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Delete",tid:Cf.DELETE,id:Cf.DELETE,icon:"bin",items:[],select:r},n)}})(a,t,s)}else Af(a,e,n,l,!1)},Of=(e,t,n,r)=>{b(async(o,i,a)=>{if(!a)return!1;const s=((e,t)=>()=>{if(!e)return;const n=t.getSupportFunction(Ef.PASTE);n&&n().then(async({template:t,init:n,children:r,additionalData:o})=>{const{label:i}=o,a={label:i};n.qExtendsId?await e.addMasterObjectAsChild({initProps:n,children:r,objectInitProps:a}):await e.addVizAsChild({type:t,initProps:n,children:r,objectInitProps:a})}).catch(e=>{e&&t.getSupportFunction(Ef.RESET_COPY_BUFFER)})})(n.dataHandler,a);if(await If(o,a,n,s,r),Pf(o),!(e=>{let t;t="qv-radial-contextmenu"===e.type?e.touches[0]?.target:e.target;return t&&((e,t)=>{let n=e;for(;n;){if(n.classList?.contains(t))return n;n=n.parentNode}return null})(t,Sh.ACTIVE_TAB_PANEL)})(i))return!0;const l=n.modifiedLayout.objects.find(t=>t.childRefId===e)?.id;if(!l)return!0;const c=t.objectMap.get(l);if(!c)return!0;const d=Mf(a,e,c,n,r,s),u=await(async(e,t,n,r)=>{const o=Lf(n),i=e.getBuilder("object");if(!i)return;const a=await i(t);return a.addItem({translation:"contextMenu.chartOptionsHeader",tid:Cf.CHART_HEADER,id:Cf.CHART_HEADER,bold:!0,items:[]},0),r(a),a.items.forEach(e=>{(Sf.includes(e.id)||!o&&Rf.includes(e.id))&&a.deleteItem(e.id)}),1===a.items.length&&a.deleteItem(Cf.CHART_HEADER),a})(a,c,n,d);return!u||(o.items.length>0&&u.addItem({translation:"contextMenu.subMenuContainerOptions",tid:Tf,id:Tf,icon:"tabbed-container",items:[...o.items]},u.items.length),o.updateItem({items:u.items}),!0)})},jf=({element:n,models:r,env:a,activeCharts:s})=>{const l=((e,n)=>{const[r,o]=i(void 0);return t(()=>{if(0===e.getElementsByClassName(n).length){const t=document.createElement("div");t.className=n,e.appendChild(t);const r=Td.createRoot(t);o(r)}return()=>{r?.unmount()}},[e,n,r]),r})(n,"init-component"),{options:c,modifiedLayout:d,interactions:u,model:p}=r,{qChildList:h}=d,f=Rd(c.direction),b=(t=>{const{viewState:n}=e(),{snapshotData:r}=t;if(r){const{layouts:e}=r.objectsData,t=r.viewState?.viewStates;return{layouts:e,viewStates:t}}if(n){const{viewStates:e}=n;return{viewStates:e}}})(d),g=o(()=>tf(d),[d]),v={modifiedLayout:d,activeTabId:g,env:a},[y,x]=Mh(v);x(v);const E=o(()=>d.objects.filter(e=>g===e.childRefId),[g,d.objects]),C=o(()=>({...c,disableThemeBorder:!0}),[c]),{renderHelper:S}=(e=>{const{visibleLayoutObjects:n,options:r}=e,[o]=i(()=>new af(e)),[,a]=i(r);return o.dependencyData=e,m(async()=>(a(e=>(e!==r&&n.forEach(e=>o.recreateMap.set(e.id,!0)),r)),o.syncObjects(n)?o.createTimerForRendering()?.promise:o.resolver?.promise),[n,r]),t(()=>()=>{o.destroy()},[o]),{renderHelper:o}})({modifiedLayout:d,visibleLayoutObjects:E,viewState:b,options:C,containerMenu:{id:Tf,icon:"TabbedContainerOutline"},translator:r.translator});Of(g,S,r,a);const[w]=i({current:void 0}),R=o(()=>e=>{(async({model:e,patchList:t})=>{if(e?.applyPatches){const n=await e.getEffectiveProperties(),r=[];t.forEach(e=>{const{newValue:t,propertyName:o}=e,i=void 0!==n[o]?"Replace":"Add";t?r.push({qPath:`/${o}`,qOp:i,qValue:JSON.stringify(t)}):"Replace"===i&&r.push({qPath:`/${o}`,qOp:"Remove"})}),r.length>0&&await e.applyPatches(r,!0)}})({model:p,patchList:[{newValue:e,propertyName:"cachedTabId"}]}).then(()=>{const t=y.modifiedLayout.objects.find(t=>t.childRefId===e)?.id;s.updateActiveCharts(t?[t]:[])})},[s,p,y.modifiedLayout.objects]),_=o(()=>({setSelected:e=>{const t=y.modifiedLayout.objects.find(t=>t.id===e[0])?.childRefId;t?R(t):w.current=e[0]}}),[R,y,w]);t(()=>{const e=(({chartObjects:e,activeTabId:t})=>!Qh(e,t)&&e.length>0?e[0]?.childRefId:t)({chartObjects:y.modifiedLayout.objects,activeTabId:y.activeTabId});if(e!==y.activeTabId)R(e);else if(w.current){const e=y.modifiedLayout.objects.find(e=>e.id===w.current)?.childRefId;e&&R(e)}w.current=void 0},[d?.objects.length,y,w,R]),t(()=>{const e=(({chartObjects:e,activeTabId:t,interactions:n})=>{const r=Qh(e,t);if(!r||ef(r,n)){const n=e.find(e=>0!==e.condition&&!1!==e.visible);return n?.childRefId||t}return t})({chartObjects:y.modifiedLayout.objects,activeTabId:y.activeTabId,interactions:u});e!==y.activeTabId&&R(e)},[u,d?.objects,y,R]);const k=0===h.qItems.length&&u.edit;return t(()=>{l?.render(Ht.jsxs(ca,{theme:f,children:[k?Ht.jsx(of,{Icon:qh,dataHandler:r.dataHandler,modifiedLayout:r.modifiedLayout,translator:r.translator,sharedContainerUtilities:_}):null,!k&&Ht.jsx(xf,{models:r,renderHelper:S,activeTabId:g,handleChangeTab:R,env:a})]}))},[l,r,f,k,S,g,_,R,a]),{renderHelper:S,sharedContainerUtilities:_,activeTabId:g}};var $f={targets:[]};const Nf={showTitles:!0,title:"",subtitle:"",footnote:"",disableNavMenu:!0,showDetails:!1,objects:[],qChildListDef:{qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition",visible:"/visible"}},showTabs:!0,useScrollButton:!0,useDropdown:!1,showIcons:!1,components:[],defaultTabId:"",orientation:"top",fontsUsed:[]};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".init-component {\n height: 100%;\n overflow: hidden;\n}\n");const zf=(e,t)=>{let n=!0;const r=t.objects.reduce((t,r)=>{const o=r.id;if(0!==r.condition&&!1!==r.visible){const i=e.get(o);return i&&(e=>e.supportExport())(i)&&(n=!1,t.objectMap.set(o,i)),t.objects.push(r),t}return t},{objects:[],objectMap:new Map});return n?{objects:[],objectMap:new Map}:r};function Df(n){const r=new _d({translator:n.translator});return{qae:{properties:Nf,data:$f},ext:bh({env:n,propertyHandlerData:r}),component(){const a=rf(),s=u();o(()=>{!function(e){if(e&&e.get&&e.add){const t="LayoutContainer.EmptyList.AddContent";if(e.get(t)!==t)return;Object.keys($).forEach(t=>{e.add($[t])})}}(s)},[s]);const{dataHandler:l,model:c,accessibility:d,setAccessibility:p,interactions:h,element:f,modifiedLayout:m}=a,b=o(()=>function(){const e=new D.EventEmitter;let t=[];return e.updateActiveCharts=n=>{t=n.slice(),e.emit("activeChartsChange",t.slice())},e.setActiveCharts=n=>{t=n.slice(),e.emit("setActiveCharts",t.slice())},e.getActiveCharts=()=>[...t],e}(),[]),{renderHelper:v,sharedContainerUtilities:y,activeTabId:x}=jf({element:f,models:a,env:n,activeCharts:b});(({propertyHandlerData:n,element:r,sharedContainerUtilities:o,translator:i,containerId:a,dataHandler:s,renderHelper:l,chartList:c})=>{const d=e();a&&n.sync({containerId:a,element:r,sharedContainerUtilities:o,translator:i,dataHandler:s,renderHelper:l,chartList:c}),t(()=>{n.setMuiTheme(d.direction)},[d.direction,n]),t(()=>()=>{a&&n.destroy(a)},[a,n,d.direction])})({containerId:c?.id||"",element:f,sharedContainerUtilities:y,translator:s,dataHandler:l,propertyHandlerData:r,renderHelper:v});const[E,C]=i(!0);Oh({isContainerActive:E,activeTabId:x,renderHelper:v,modifiedLayout:m,activeCharts:b,sharedContainerUtilities:y}),Ph({element:f,accessibility:d,setAccessibility:p,renderHelper:v,interactions:h,env:n,models:a});const{getViewState:S}=xh(v,zf);g(()=>({getViewState:S,getChildrenObjects:()=>(e=>e.map(e=>{if("canReceive"in e){const t=e=>"libraryitem"===e.type&&("field"===e.item.type||"measure"===e.item.type||"dimension"===e.item.type);return{...e,canReceive:n=>t(n)&&e.canReceive(n)}}return e}))(v.getChildrenObjects()),updateActiveState(e){C(e)},activeCharts:b}),[])}}}export{Df as default};
|
|
89
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,c,d,u,p=e.length,h=e.search(/[0-9\-\+#]/),f=h>0?e.substring(0,h):"",m=e.split("").reverse().join(""),b=m.search(/[0-9\-\+#]/),g=p-b,v=e.substring(g,g+1),y=g+("."===v||","===v?1:0),x=b>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(h,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),d=e[0].split(i),e[0]=d.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0===+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=d[1]&&d[d.length-1].length){for(m="",g=(u=t[0]).length%l,p=u.length,y=0;y<p;y++)m+=u.charAt(y),!((y-g+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),f+(n?"-":"")+r+x}},Rp({exports:{}});const _p="'Source Sans Pro', 'Arial', 'sans-serif'",kp="#333333",Ap="#595959",Lp="#737373",Ip="#cccccc",Tp="#e6e6e6";function Pp(e){const t={};return[...e,["","","color"],["object","","fontFamily"],["object","axis.label.name","color",Ap],["object","axis.label.name","fontFamily",_p],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",Ip],["object","axis.line.minor","color",Tp],["object","axis.title","color"],["object","axis.title","fontFamily",_p],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",Tp],["object","grid.line.major","color",Ip],["object","grid.line.minor","color",Tp],["object","label.value","color",Ap],["object","label.value","fontFamily",_p],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",Ap],[!1,"label.value","lightColor",Tp],["object","outOfRange","color","#999"],["object","legend.title","color",kp],["object","legend.title","fontFamily",_p],["object","legend.title","fontSize","15px"],["object","legend.label","color",Ap],["object","legend.label","fontFamily",_p],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",kp],["object","referenceLine.label.name","fontFamily",_p],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",Tp],["object","referenceLine.outOfBounds","fontFamily",_p],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",Lp,e=>"transparent"===e?Lp:e]].reduce((e,n)=>{const r=`${n[0]}-${n[1]}-${n[2]}}`;return t[r]||(t[r]=!0,e.push(n)),e},[]).toSorted((e,t)=>(e[0].split?e[0].split(".").length:0)-(t[0].split?t[0].split(".").length:0))}const Mp="object",Op=e=>e;function jp({theme:e,id:t,transform:n,extend:r,matrix:o}){const i={},a=n.reduce((e,t)=>{const[n,r]=t;return e[n]=r,e},{});return o.forEach(n=>{const[r,o,s,l,c=e=>e]=n,d=function({theme:e,base:t,path:n,attribute:r,defaultValue:o}){if(!e||!1===t)return o;const i=e.getStyle(t,n,r);return void 0===i?o:i}({theme:e,base:r===Mp&&t?`${Mp}.${t}`:r,path:o,attribute:s,defaultValue:l}),u=(a[`${o}.${s}`]||Op)(c(d));gp(i,[o,s].filter(Boolean).join("."),u)}),r.forEach(e=>{const[t,n]=e;gp(i,t,n)}),i}const $p={qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",containerChildId:"/containerChildId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition",visible:"/visible"}};function Np(e){if(!e.objects)return{};const t=Zd(e);return{container_id:e.qInfo.qId,objects:e.qChildList.qItems.map(n=>({chart_type:n.qData.visualization,chart_id:n.qInfo.qId,chart_isMaster:!!n.qData.qExtendsId,tab_isVisible:0!==t[n.qData.childRefId]?.condition&&!1!==t[n.qData.childRefId]?.visible,tab_isActive:n.qData.childRefId===e.cachedTabId}))}}const Dp=({ref:e,theme:t,change:n})=>({component:"inline-wrapper",items:{bgColorDropdown:{ref:`${e}.useColorExpression`,width:9,component:"dropdown",change(t){(mp(t,`${e}.color`)||mp(t,`${e}.colorExpression`))&&(gp(t,`${e}.color`,void 0),gp(t,`${e}.colorExpression`,void 0)),n?.(t)},options:[{value:!1,translation:"properties.colorMode.primary"},{value:!0,translation:"properties.colorMode.byExpression"}],defaultValue:!1,placeholder:"properties.colorMode.primary"},bgColorPicker:{component:"color-picker",ref:`${e}.color`,width:3,show:t=>!mp(t,`${e}.useColorExpression`),disableNone:!1,defaultValue:()=>({color:t?.getStyle("object.tabbedContainer",e,"color")??"none"}),showAlpha:!0,change:e=>{n?.(e)}},bgColorExpression:{component:"input-field-expression",ref:`${e}.colorExpression`,show:t=>mp(t,`${e}.useColorExpression`)}}}),zp=({theme:e})=>({bgColorAllWrapper:Dp({ref:"background.unselected"}),selectedTab:{translation:"properties.chartType.selected",component:"text"},bgColorSelectedWrapper:Dp({ref:"background.selected"}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:Dp({ref:"background.hover",theme:e,change:e=>{gp(e,"indicator.hover.color",mp(e,"background.hover.color")),gp(e,"indicator.hover.useColorExpression",mp(e,"background.hover.useColorExpression"))}})},show:(e,t)=>"left"===t.layout.orientation}}),Bp=({paths:e,fontResolver:t,theme:n})=>{const r=`${e.theme}.fontSize`;return{fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e.ref}.size`,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r),show:e=>!1!==e.icon?.show},fontColorItem:{component:"color-picker",width:!1,ref:`${e.ref}.color`,defaultValue:()=>({color:n.getStyle("object.tabbedContainer",e.theme,"color")}),show:e=>!1!==e.icon?.show}}},position:{type:"string",ref:"icon.position",component:"dropdown",options:[{value:"start",translation:"properties.dock.start"},{value:"top",translation:"properties.dock.top"},{value:"end",translation:"properties.dock.end"},{value:"bottom",translation:"properties.dock.bottom"}],defaultValue:(e,{layout:t})=>"left"===t.orientation?"top":"start",show:e=>"tabs"===e.key},hide:{type:"boolean",translation:"properties.show",ref:"icon.show",component:"switch",defaultValue:!0,show:e=>"tab"===e.key}}},Fp=({theme:e})=>({colorWrapper:Dp({ref:"indicator.selected",theme:e}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:Dp({ref:"indicator.hover",theme:e,change:e=>{gp(e,"background.hover.color",mp(e,"indicator.hover.color")),gp(e,"background.hover.useColorExpression",mp(e,"indicator.hover.useColorExpression"))}})},show:(e,t)=>"left"!==t.layout.orientation}}),Gp=({paths:e,fontResolver:t,theme:n})=>{const r=`${e.theme}.fontFamily`,o=`${e.theme}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e.ref}.fontFamily`,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r),change:(e,t,n)=>{const r=e.label?.fontFamily,o=(e=>{const t=[];return e.objects.forEach(e=>{const n=e.components?.find(e=>"tab"===e.key),r=n?.label?.fontFamily;r&&-1===t.indexOf(r)&&t.push(r)}),t})(n);r&&-1===o.indexOf(r)&&o.push(r),n.fontsUsed=o}},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e.ref}.fontSize`,options:()=>t.getOptions(o),defaultValue:()=>t.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e.ref}.color`,defaultValue:()=>({color:n.getStyle("object.tabbedContainer",e.theme,"color")})}}},alignment:{component:"text-align-buttons",ref:"label.alignment",show:e=>"tabs"===e.key},hide:{type:"boolean",translation:"properties.show",ref:"label.show",component:"switch",defaultValue:!0}}},Hp=({ref:e,key:t,fontResolver:n,theme:r})=>({translation:"Object.Container.Props.Label",component:"panel-section",items:{label:{component:"items",ref:e,key:t,items:Gp({paths:{ref:"label",theme:"label.value"},fontResolver:n,theme:r})}}}),Up=({ref:e,key:t})=>({translation:"Visualizations.Descriptions.Width",component:"panel-section",items:{width:{component:"items",ref:e,key:t,items:{unit:{type:"string",ref:"width.unit",component:"dropdown",options:[{value:"%",translation:"Object.Table.Column.Percentage"},{value:"px",translation:"Object.Table.Column.Pixels"}],defaultValue:"%",change:e=>{if(void 0!==e.width?.value&&"%"===e.width?.unit)for(let t=0;t<e.width.value.length;t++)e.width.value[t]>100?e.width.value[t]=100:e.width.value[t]<5&&(e.width.value[t]=5)}},valuePixel:{translation:"properties.axis.minMax",component:"slider",ref:"width.value",range:!0,step:1,min:0,max:800,show:e=>"px"===e.width?.unit,defaultValue:[0,360]},valuePercentage:{translation:"properties.axis.minMax",component:"slider",type:"array",ref:"width.value",range:!0,step:1,min:5,max:100,show:e=>!e.width?.unit||"px"!==e.width?.unit,defaultValue:[5,20]}}}}}),Wp=({theme:e,ref:t,key:n})=>({translation:"Object.TabbedContainer.Indicator",component:"panel-section",items:{indicator:{component:"items",ref:t,key:n,items:Fp({theme:e})}}}),Vp=({ref:e,key:t,fontResolver:n,theme:r})=>({translation:"properties.icon",component:"panel-section",items:{icon:{component:"items",ref:e,key:t,items:Bp({paths:{ref:"icon",theme:"icon.value"},fontResolver:n,theme:r})}},show:(e,{layout:t})=>t.showIcons}),qp=({theme:e,ref:t,key:n})=>({translation:"Object.OrgChart.BackgroundColor",component:"panel-section",items:{background:{component:"items",ref:t,key:n,items:"tab"===n?{bgColorWrapper:Dp({ref:"background"})}:zp({theme:e})}}}),Yp=({fontResolver:e,theme:t})=>{const n="components",r="tab";return{component:"styling-panel",chartTitle:"Object.Container",tabTitle:"scripteditor.dataconnectors.delimiter.tab",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",ref:n,items:{label:Hp({ref:n,key:r,fontResolver:e,theme:t}),width:{...Up({ref:n,key:r}),show:(e,{layout:t})=>"left"!==t.orientation},icon:Vp({ref:n,key:r,fontResolver:e,theme:t}),background:qp({ref:n,key:r,theme:t})}}},Kp={ref:"label",type:"string",translation:"Object.Container.Props.Label",defaultValue:"",expression:"optional"},Xp={ref:"condition",translation:"Object.Container.Props.ShowCondition",component:"expression",defaultValue:{qValueExpression:{qExpr:""}},expressionType:"ValueExpression",expression:"always"},Zp=(e,t)=>"object"==typeof e.label?t.objects.find(t=>t.childRefId===e.childRefId)?.label||e.label.qValueExpression.qExpr:e.label,Jp=e=>({component:"button",translation:"Object.Container.Props.EditProperties",disabled:(e,t)=>{const n=t.getLayout(),r=Yd(n,e.childRefId)?.qMeta;return!r?.privileges?.includes("update")||!n.permissions?.update},action(t,n,{app:r}){const{sense:o}=e.env.anything,i=n.getEngineId(t.childRefId);i&&(o.propertyPanel.show({id:i,app:r,parent:"current",headerLabel:Zp(t,n.getLayout())}),n.setSelectedChild([i]))}}),Qp=e=>{const{sense:t}=e.env.anything;return{label:Kp,condition:Xp,styling:Yp({fontResolver:e.fontResolver,theme:t?.theme}),editProperties:Jp(e)}},eh={translation:"Object.Container.Props.Chart",component:"text",show:e=>e.objects?e.objects.length<=1:e.children.length<=1},th={translation:"Common.Charts",component:"text",show:e=>e.objects?e.objects.length>1:e.children.length>1},nh=e=>({type:"array",ref:"objects",itemTitleRef:e=>e.label,allowAdd:!0,customAdd:!0,allowMove:!0,allowRemove:!0,customRemove:!0,addTranslation:"Object.Container.Props.Add",cId:"childRefId",grouped:!0,add(e,t,n){const r=document.querySelector(".pp-toplist-add-button");null!==r&&n.openAddChildPopover(r)},remove(e,t,n){n.deleteChild(e.childRefId).catch(()=>{})},items:Qp(e)}),rh=e=>({type:"items",translation:"Object.Container.Props.Content",items:{chartLabel:eh,chartsLabel:th,chartList:nh(e)}}),oh={type:"boolean",translation:"Object.Container.Props.ShowTabs",ref:"showTabs",defaultValue:!0,component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},ih={type:"boolean",translation:"Object.Container.Props.UseDropdown",label:"Menu",ref:"useDropdown",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],defaultValue:!1,show:e=>e.showTabs},ah={type:"boolean",translation:"Object.Container.Props.UseScrollButtons",ref:"useScrollButton",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],defaultValue:!0,show:e=>e.showTabs},sh={type:"boolean",translation:"Object.Container.Props.ShowIcons",ref:"showIcons",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1,show:e=>e.showTabs},lh={type:"string",translation:"Object.Container.Props.DefaultTab",ref:"defaultTabId",component:"dropdown",defaultValue:void 0,options(e,t){const n=t.getLayout();return n?n.objects.map(e=>({translation:e.label,value:e.childRefId})):[]},change(e,t){const n=Jd(t.getLayout(),e.defaultTabId);n&&t.setSelectedChild([n])},show:e=>e.objects.length>0},ch={type:"string",translation:"properties.orientation",ref:"orientation",component:"dropdown",options:[{value:"top",translation:"properties.orientation.horizontal"},{value:"left",translation:"properties.orientation.vertical"}],defaultValue:"top",show:e=>e.showTabs},dh=({fontResolver:e,theme:t})=>{const n="components",r="tabs";return{component:"styling-panel",chartTitle:"Object.TabContainer",tabTitle:"Object.Container.Props.ShowTabs",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:!0,items:{label:Hp({ref:n,key:r,fontResolver:e,theme:t}),width:Up({ref:n,key:r}),indicator:Wp({ref:n,key:r,theme:t}),icon:Vp({ref:n,key:r,fontResolver:e,theme:t}),background:qp({ref:n,key:r,theme:t})}}},uh={items:{details:{show:e=>!0===e.showDetails}}},ph=e=>{const{sense:t}=e.env.anything;return{type:"items",translation:"properties.presentation",grouped:!0,items:{stylingPanel:dh({fontResolver:e.fontResolver,theme:t?.theme}),container:{type:"items",items:{showTabs:oh,useDropdown:ih,useScrollButton:ah,showIcons:sh,orientation:ch,defaultTabId:lh}}}}},hh=e=>({uses:"settings",items:{general:uh,presentation:ph(e)}}),fh=e=>({type:"items",component:"accordion",items:{content:rh(e),settings:hh(e)}}),mh=e=>{const{sense:t}=e.env.anything,n=function({theme:e,translator:t,config:n={}}){const{id:r,paths:o}=function({config:e={}}){const{id:t,paths:n}=e;return{id:void 0===t?eu:`${eu}.${t}`,paths:Array.isArray(n)?n:[]}}({config:n}),i={};o.forEach(n=>{const o=n.split(".");cu(o);let a=i;for(let i=0;i<o.length;i++){const s=o[i];i===o.length-1?a[s]=su({theme:e,translator:t,id:r,path:n}):void 0===a[s]&&(a[s]={}),a=a[s]}});const a=e=>{const t=e.split(".");cu(t);let n=i;for(let r=0;r<t.length;r++){const o=t[r];if(void 0===n[o])throw new Error(`font-resolver: Path '${e}' could not be resolved.`);n=n[o]}return n};return i.getDefaultValue=e=>a(e).getDefaultValue(),i.getOptions=e=>a(e).getOptions(),i}({theme:t?.theme,translator:e.env.translator,flags:e.env.flags,config:{id:"tabbedContainer",paths:["label.value","icon.value"]}}),r=function(e){return{async getDropOptions(e,t,n){const{item:r}=t,o=e.getCreatePropertyHandler();if(o.setModel(e.model),"state"===t.item.type){const r=await e.model.getProperties();return o.setProperties(r),o.setLayout(e.model?.layout),this.getDropStateOptions(t,o,e.model,n)}if("visualization"===r.type)return t.menu.addItem({translation:["Object.Container.DropItem",r.name],tid:"addvisualization",select(){o.addChild({initProps:{qExtendsId:r.id,qInfo:{qType:"undefined"}}})?.then(e=>{e&&o.setSelectedChild([e.id])})}}),void n();const i=await t.item.getDropOption(t.item);"newObject"===i?.id&&t.menu.addItem({translation:["Object.Container.DropItem",r.name],tid:"createvisualization",select(){o.addChild({initProps:{...i.args.init,visualization:i.args.template},children:i.args.children?.map(e=>({qProperty:e}))})?.then(e=>{e&&o.setSelectedChild([e.id])})}}),n()},async addChild(t,n){const{model:r}=this,o=new Qd({app:r.app,data:e.propertyHandlerData});return o.setModel(r),{childModel:await o.addChild({initProps:t,children:n}),handler:o}},canReceive(e){if(this.model.layout.qExtendsId)return!1;if("libraryitem"===e.type){const{item:t}=e;if("template"===t.type&&_d.includes(t.template))return!1;if("visualization"===t.type&&_d.includes(t.visualization))return!1}return"gridcell"!==e.type||!_d.includes(e.cell.model.layout.visualization)}}}(e);return{definition:fh({...e,fontResolver:n}),support:{snapshot:!1,export:!0,sharing:!1,exportData:!1,viewData:!1},hidePatchPanel:()=>!0,getCreatePropertyHandler:t=>new Qd({app:t,data:e.propertyHandlerData}),...r,addChild:async function(e,t){const{childModel:n,handler:o}=await r.addChild.apply(this,[e,t]);n&&o.setSelectedChild([n.id])},migrate:{properties:(e,t)=>((async(e,t)=>{if(!e.objects){const{objects:n,defaultTabId:r,components:o,orientation:i,showDetails:a}=await t.getEffectiveProperties(),s=await t.getFullPropertyTree();if(!s.qProperty.objects&&n){const l=[];s.qChildren.forEach(e=>{const n=e.qProperty;if(n.qInfo.qId){const r=async r=>{const o=await t.getChild(r),i=await o.getEffectiveProperties();return{...e,qProperty:{...n,childRefId:i.childRefId}}};l.push(r(n.qInfo.qId))}});const c=await Promise.all(l),d={...e,objects:n,defaultTabId:r??"",components:o,qChildListDef:$p,orientation:i,showDetails:a};t.clearSoftPatches(),await t.setFullPropertyTree({...s,qProperty:d,qChildren:c})}}})(e,t),e)},exportProperties:null,importProperties:(e,t)=>{const n={...e.properties};return"masterobject"!==e.properties.qInfo.qType&&(n.qInfo.qType=t.qInfo.qType),n.visualization=t.visualization,{qProperty:n,qChildren:e.qChildren}},extendMetrics:Np}},bh=e=>e.reduce((e,{id:t,data:n})=>(n&&(e[t]=n),e),{}),gh=async e=>{const t=[];for(const[n,r]of e){const e={id:n,data:void 0},o=r;t.push(o.getViewState().then(e=>({id:n,data:e})).catch(()=>e))}const n=await Promise.all(t);return{viewStates:bh(n)}},vh=async e=>{const t=[];for(const[n,r]of e){const e={id:n,data:void 0},o=r;o.getSnapshotLayout?t.push(o.getSnapshotLayout().then(e=>({id:n,data:e})).catch(()=>e)):o.takeSnapshot&&t.push(o.takeSnapshot().then(e=>({id:n,data:e?.layout})).catch(()=>e))}const n=await Promise.all(t);return bh(n)},yh=(e,t)=>(n(async n=>{const r=n,{snapshotData:o}=r;if(o){const n=Kd(r),i=t(e.objectMap,n),[a,s]=await Promise.all([vh(i.objectMap),gh(i.objectMap)]);o.objectsData={layouts:a},r.objects=i.objects,o.viewState=s}return n}),{getViewState:()=>gh(e.objectMap)});let xh=function(e){return e.OPEN_CONTEXT_MENU="shift+F10",e.ESCAPE="Escape",e.SPACE=" ",e.ENTER="Enter",e.BACKSPACE="Backspace",e.DELETE="Delete",e}({}),Eh=function(e){return e.KEY_DOWN="keydown",e.FOCUS_OUT="focusout",e}({}),Ch=function(e){return e.TAB_MENU="tab-menu",e.TAB_MENU_ITEM="tab-menu-item",e.ACTIVE_TAB="active-tab-button",e.TAB_WRAPPER="tab-wrapper",e.TAB="tab-button",e.TAB_EXTRA_PRIO="MuiTab-root",e.TAB_LABEL="tab-label",e.TABS_ICON="tab-icon",e.ACTIVE_TAB_PANEL="active-tab-panel",e.TAB_INDICATOR="MuiTabs-indicator",e}({});const Sh=`& .${Ch.TAB}.${Ch.TAB_EXTRA_PRIO}, .${Ch.TAB}.${Ch.ACTIVE_TAB}`,wh=`& .${Ch.TAB}.${Ch.TAB_EXTRA_PRIO}:hover`,Rh=`& .${Ch.TAB_LABEL}`,_h=`& .${Ch.TABS_ICON} svg`,kh=`& .${Ch.TAB_WRAPPER}`,Ah=`& .${Ch.TAB_INDICATOR}`,Lh=e=>e.getElementsByClassName(Ch.ACTIVE_TAB)?.[0],Ih=e=>e.getElementsByClassName(Ch.ACTIVE_TAB_PANEL)?.[0],Th=({element:e,setAccessibility:n,accessibility:a,renderHelper:s,interactions:l,env:c,models:d})=>{const{modifiedLayout:{showTabs:u,objects:p,orientation:h},translator:f}=d;t(()=>{(()=>{const t="top"===h?f.get("TabContainer.Navigation.Horizontal"):f.get("TabContainer.Navigation.Vertical"),n=((e,t)=>e.map(e=>e.label||t.get("TabContainer.Object.Untitled")).join(", "))(p,f);e.setAttribute("aria-label",f.get("TabContainer.Object.Description",[n,u?t:""]))})()},[e,u,p,f,h]);const m=c.flags.isEnabled("VIZ-7_NEW_SHEET")||c.flags.isEnabled("VIZ-7_NEW_SHEET_EDIT"),b=r(),g=o(()=>()=>{n(!1),b.enabled&&b.blur?.(!0)},[b,n]),v=o(()=>t=>{switch(t.shiftKey?`shift+${t.key}`:t.key){case xh.ESCAPE:t.stopPropagation(),b.blur?.(!0);break;case xh.ENTER:case xh.SPACE:{t.stopPropagation();const n=t.target;n?.classList.contains(Ch.ACTIVE_TAB)&&Ih(e)?.focus();break}}},[e,b]),y=o(()=>t=>{const n=t.shiftKey?`shift+${t.key}`:t.key,r=s.objectMap.values().next().value,o=s.objectApis.values().next().value;switch(n){case xh.ESCAPE:{const n=Lh(e);m?(({event:e,objectApi:t,activeTab:n})=>{e.stopPropagation(),t?.viewDataToggled&&t.support?.("viewData")?t.toggleDataView():n?.focus()})({event:t,objectApi:o,activeTab:n}):(({event:e,objectApi:t,activeTab:n})=>{e.stopPropagation(),t?.viewDataToggled&&t.supportViewData?.()?t.toggleDataView?.():n?.focus()})({event:t,objectApi:r,activeTab:n});break}case xh.ENTER:case xh.SPACE:{const n=Ih(e);m?(({event:e,objectApi:t,activeTab:n})=>{if(!t)return;e.stopPropagation(),t.setOnBlurHandler?.(()=>{n?.focus(),t.setOnBlurHandler?.(void 0)}),!t.viewDataToggled&&t.support?.("viewData")?t.toggleDataView():t.toggleFocus?.(!0)})({event:t,objectApi:o,activeTab:n}):(({event:e,objectApi:t,activeTab:n})=>{if(!t)return;e.stopPropagation(),t.setOnBlurHandler?.(()=>{n?.focus(),t.setOnBlurHandler?.(void 0)}),!t.viewDataToggled&&t.supportViewData?.()?t.toggleDataView?.():t.viewDataToggled&&"function"==typeof t.dataViewObject?.focus?t.dataViewObject.focus():"function"==typeof t.focus&&t.focus()})({event:t,objectApi:r,activeTab:n});break}case xh.OPEN_CONTEXT_MENU:t.stopPropagation(),r?.viewDataToggled||e!==document.activeElement&&(g(),e.focus())}},[e,g,m,s]),x=o(()=>e=>{const t=e.target;t?.classList.contains(Ch.ACTIVE_TAB_PANEL)?y(e):v(e)},[v,y]);t(()=>(a&&e.addEventListener(Eh.KEY_DOWN,x),()=>{e.removeEventListener(Eh.KEY_DOWN,x)}),[e,a,x]);const[E,C]=i(!1);t(()=>{E&&(C(!1),window.setTimeout(()=>((e=>e.getElementsByClassName(Ch.TAB_MENU)?.[0])(e)??Lh(e))?.focus(),0))},[e,E]),t(()=>{n(!1)},[l.edit,n]),t(()=>{const t=t=>{const n=t.relatedTarget;e?.contains(n)||n?.classList.contains(Ch.TAB_MENU_ITEM)||g?.()};return b.enabled&&b.active&&!l.edit&&(n(!0),C(!0),e.addEventListener(Eh.FOCUS_OUT,t)),()=>{e.removeEventListener(Eh.FOCUS_OUT,t)}},[b])},Ph=e=>{const[t]=i(e);return[t,function(e){Object.assign(t,e)}]},Mh=({isContainerActive:e,activeTabId:n,modifiedLayout:r,renderHelper:i,activeCharts:a,sharedContainerUtilities:s})=>{const l={modifiedLayout:r,activeTabId:n,renderHelper:i,isContainerActive:e},[c,d]=Ph(l);d(l);const u=o(()=>()=>{const e=Xd(c.modifiedLayout);for(const[t,n]of c.renderHelper.objectMap.entries()){const r=c.isContainerActive&&c.activeTabId===e[t];"setIsActive"in n&&n.setIsActive(r)}},[c]);t(()=>{c.isContainerActive&&u()},[i.objectMap,u,c]),t(()=>{u()},[e,u]),(({activeCharts:e,onSetActiveCharts:n,canSetActiveChart:r=!0})=>{const[o,i]=Ph({onSetActiveCharts:n});i({onSetActiveCharts:n}),t(()=>{if(!r)return;const t=e=>{o.onSetActiveCharts(e)};e.on("setActiveCharts",t);const n=e.getActiveCharts();return n.length>0&&t(n),()=>e.removeListener("setActiveCharts",t)},[e,o,r])})({activeCharts:a,onSetActiveCharts:e=>{if(0===e.length)return;const t=c.modifiedLayout.objects.find(t=>t.id===e[0])?.childRefId;t&&t!==c.activeTabId&&s.setSelected(e)}})},Oh={getChar(e){let t,n=e;return n>9?(t=65+n-10,t>90&&(t+=6)):n=`${n}`.charCodeAt(0),!t||[48,111,79,105,73,108].indexOf(t)>-1?this.getChar(n+1):String.fromCharCode(t)},base62(e){const t=this.getChar(e%62),n=Math.floor(e/62);return n>0?this.base62(n)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};const jh={qInfo:{qId:"MasterObjectList",qType:"MasterObjectList"},qAppObjectListDef:{qType:"masterobject",qData:{name:"/qMetaDef/title",labelExpression:"/labelExpression",visualization:"/visualization",tags:"/qMetaDef/tags"}}};class $h{sessionObject;constructor(e){this.getOrCreateSessionObject(e).catch(()=>{})}getOrCreateSessionObject=async e=>{const t=jh.qInfo.qId;this.sessionObject=await e.getObject(t).catch(()=>e.createSessionObject(jh))};getMasterVisualizations=async()=>{try{if(!this.sessionObject)return[];const e=await this.sessionObject.getLayout();return("qAppObjectList"in e?e.qAppObjectList.qItems:e).map(e=>({...e.qData,qExtendsId:e.qInfo.qId})).filter(e=>!_d.includes(e.visualization))}catch{return[]}}}let Nh=function(e){return e[e.TOP=0]="TOP",e[e.BOTTOM=1]="BOTTOM",e[e.UP=2]="UP",e[e.DOWN=3]="DOWN",e}({});class Dh{model;embed;app;undoRedoModel;chartList;masterVizList;mutex;constructor({embed:e,model:t,app:n,translator:r,mutex:o}){this.model=t,this.embed=e,this.app=n;const i=n;i&&i.getUndoInfoObject&&i.getUndoInfoObject().then(e=>{this.undoRedoModel=e}).catch(()=>{}),n&&(this.masterVizList=new $h(n)),e&&r&&(this.chartList=new kd(e,r)),this.mutex=o}rememberAsGroup=async e=>{let t;this.undoRedoModel&&(t=await this.undoRedoModel.startGroup());const n=await e();return t&&this.undoRedoModel&&await this.undoRedoModel.endGroup(t),n};generateProperties=async(e,t)=>await this.embed.generateProperties({type:e,properties:t});async addChild(e,t,n){if(this.model&&!_d.includes(e.visualization))try{await this.mutex.lock();const{model:r}=this,o=async()=>{e.childRefId=Oh.id();const o=await r.createChild(e);if(o){const t=await r.getProperties();t.objects.unshift({childRefId:e.childRefId,...n,condition:{qValueExpression:{qExpr:""}}}),await r.setProperties(t)}return t&&o&&await Promise.all(t.map(({qProperty:e})=>o.createChild(e))),o};return await this.rememberAsGroup(o)}catch{return}finally{this.mutex.unlock()}}addVizAsChild=async({type:e,initProps:t,objectInitProps:n,children:r})=>{try{const o=await this.generateProperties(e,t);let i=n?.label||t?.title;if(!i){const n=this.getChart(t?.visualization),r=n?.libraryInfo;i=r?.translation||r?.name||e}const a={...n,label:i};return await this.addChild(o,r,a)}catch{return}};addMasterObjectAsChild=async({initProps:e,objectInitProps:t,children:n})=>{try{if(!e||!e.qExtendsId||!this.app)return;const r=await this.app.getObject(e.qExtendsId),o=await r.getProperties(),i=t?.label||o.title||o.qMetaDef.title,a={...e,qInfo:{qType:"childObject"}},s={...t,label:i};return await this.addChild(a,n,s)}catch{return}};deleteChildren=async e=>{const{model:t}=this;if(0===e.length||!t)return!1;try{await this.mutex.lock();const n=await t.getFullPropertyTree(),{qChildren:r,qProperty:o}=n,i=new Set(e);return n.qChildren=r.filter(({qProperty:e})=>{const t=e.childRefId;return!t||!i.has(t)}),n.qProperty.objects=o.objects.filter(e=>!i.has(e.childRefId)),await t.setFullPropertyTree(n),!0}catch{return!1}finally{this.mutex.unlock()}};moveChild=async(e,t)=>{if(this.model)try{await this.mutex.lock();const n=await this.model.getProperties(),{objects:r}=n,o=r.findIndex(e=>e.childRefId===t);let i=!1;switch(e){case Nh.TOP:{if(0===o)break;const e=r.splice(o,1)[0];r.unshift(e),i=!0;break}case Nh.BOTTOM:{if(o===r.length-1)break;const e=r.splice(o,1)[0];r.push(e),i=!0;break}case Nh.UP:{if(0===o)break;const e=r.splice(o,1)[0];r.splice(o-1,0,e),i=!0;break}case Nh.DOWN:{if(o===r.length-1)break;const e=r.splice(o,1)[0];r.splice(o+1,0,e),i=!0;break}}i&&await this.model.setProperties(n)}finally{this.mutex.unlock()}};getCharts=()=>this.chartList?.getCharts()||{};getMasterVizList=()=>this.masterVizList?.getMasterVisualizations()||Promise.resolve([]);getChart=e=>this.chartList?.getChart(e);getChartLabelById=(e,t)=>{const n=e?.qChildList?.qItems.find(e=>e.qInfo.qId===t);if(!n)return"";const{visualization:r,title:o}=n.qData;if(o)return o;const i=this.getChart(r);return i?.libraryInfo?.translation||r}}class zh{locked=!1;tasks=[];id;constructor(e){this.id=e}lock=async()=>this.locked?new Promise(e=>{this.tasks.push(e)}):(this.locked=!0,!0);unlock=()=>{if(this.tasks.length>0){const e=this.tasks.shift();e?.(!0)}else this.locked=!1}}const Bh={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},rebeccapurple:{r:102,g:51,b:153},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Fh={index:-1,color:"none",alpha:1},Gh=e=>{let t=parseFloat(e[1]),n=parseFloat(e[3]),r=parseFloat(e[5]);return t%=360,n/=100,r/=100,t=Math.max(0,Math.min(t,360)),n=Math.max(0,Math.min(n,1)),r=Math.max(0,Math.min(r,1)),{h:t,s:n,l:r,v:r}},Hh=(e,t,n,r,o=1)=>{let i,a,s,l;switch(n=Math.floor(n)){case 0:l=[e,t,0];break;case 1:l=[t,e,0];break;case 2:l=[0,e,t];break;case 3:l=[0,t,e];break;case 4:l=[t,0,e];break;case 5:l=[e,0,t];break;default:l=[0,0,0]}return i=l[0]+r,a=l[1]+r,s=l[2]+r,i=Math.round(255*i),a=Math.round(255*a),s=Math.round(255*s),`rgba(${i},${a},${s},${o})`},Uh=e=>{const{h:t,s:n,l:r}=Gh(e),o=e.length>7?parseFloat(e[7]):1,i=r<=.5?2*r*n:(2-2*r)*n,a=t/60,s=i*(1-Math.abs(a%2-1));return Hh(i,s,a,r-.5*i,o)},Wh={resolveExpression:({colorExpression:e=""})=>{let t=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e);if(t)return`rgb(${t[1]},${t[2]},${t[3]})`;if(t=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e),t)return`rgba(${t[1]},${t[2]},${t[3]},${t[4]})`;if(t=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e),t){const e=Math.round(Number(t[1])/255*100)/100;return`rgba(${t[2]},${t[3]},${t[4]},${e})`}if(t=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(e),t)return Uh(t);if(t=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e),t)return Uh(t);if(t=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(e),t)return(e=>{const{h:t,s:n,v:r}=Gh(e),o=r*n,i=t/60,a=o*(1-Math.abs(i%2-1));return Hh(o,a,i,r-o)})(t);if(t=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e),t)return e;if(t=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e),t)return e;const n=e&&Bh[e.toLowerCase()];if(n){const e=void 0!==n.a?n.a:1;return`rgba(${n.r},${n.g},${n.b},${e})`}return"none"},getColor({style:e,defaultColor:t,theme:n}){const r=e?.color||Fh;let o;return o=e?.useColorExpression?Wh.resolveExpression(e):"string"==typeof r?r:n?.getColorPickerColor(r)||"",o&&"none"!==o?o:t}},Vh=()=>Ht.jsx(Bd,{viewBox:"0 0 16 16",children:Ht.jsx("path",{d:"M15 6V5H5V2H1.5a.5.5 0 0 0-.5.5V6H0V2a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v4h-1Zm-5-4H6v2h4V2Zm4.5 0H11v2h4V2.5a.5.5 0 0 0-.5-.5Zm1.5 9h-1V8h1v3Zm0 3a1 1 0 0 1-1 1h-1v-1h.6a.4.4 0 0 0 .4-.4V13h1v1Zm-7 1v-1h3v1H9Zm-5 0v-1h3v1H4Zm-3 0a1 1 0 0 1-1-1v-1h1v.6c0 .22.18.4.4.4H2v1H1ZM0 8h1v3H0V8Zm4-.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-4ZM5 11h6V8H5v3Z"})}),qh=({libraryInfo:e,style:t,id:n})=>Ht.jsx("div",{style:t,"data-testid":"tab-chart-icon",id:n,className:Ch.TABS_ICON,children:Ht.jsx(e.IconDefinition,{})}),Yh=({style:e,id:t})=>Ht.jsx("div",{style:e,"data-testid":"tab-hidden-icon",id:t,children:Ht.jsx(Fd,{viewBox:"0 0 16 16",children:Ht.jsx("path",{d:"m13.441.795.764.646-1.839 2.174c.568.434 1.076.914 1.522 1.385a13.79 13.79 0 0 1 2.109 3 13.798 13.798 0 0 1-2.108 3c-1.382 1.457-3.345 3-5.89 3-1.34 0-2.52-.428-3.536-1.045l-1.904 2.25-.764-.646L13.441.795ZM11.72 4.379l-1.427 1.686a3 3 0 0 1-3.82 4.516l-1.354 1.6c.86.497 1.819.819 2.88.819 2.121 0 3.834-1.287 5.161-2.685A12.666 12.666 0 0 0 14.857 8a12.691 12.691 0 0 0-1.697-2.315c-.35-.37-.727-.73-1.132-1.063l-.308-.243ZM8 2a6.428 6.428 0 0 1 2.242.412l.305.123-.681.805A5.359 5.359 0 0 0 8 3C5.877 3 4.164 4.287 2.837 5.685A12.664 12.664 0 0 0 1.14 8a12.66 12.66 0 0 0 1.697 2.315l.301.308.311.299-.646.765A14.567 14.567 0 0 1 2.109 11 13.791 13.791 0 0 1 0 8a13.801 13.801 0 0 1 2.109-3C3.49 3.543 5.454 2 8 2Zm1.633 4.845-2.5 2.956a1.999 1.999 0 0 0 2.5-2.956Zm-3.917-.793a3 3 0 0 1 2.692-1.025l.202.035-.809.948A2 2 0 0 0 6 7.967l.003.152-.808.947a3 3 0 0 1 .521-3.014Z"})})}),Kh=()=>Ht.jsx(Fd,{viewBox:"0 0 16 16",children:Ht.jsx("path",{d:"M12 4H6V3h6v1ZM6 8.5h4v-1H6v1Zm9 4.5H6v-1h9v1ZM3 11a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h1Zm0 1H2v1h1v-1Zm0-5.5a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h1Zm0 1H2v1h1v-1ZM3 2a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h1Zm0 1H2v1h1V3Z"})}),Xh=sa(ed)({width:28,overflow:"hidden"}),Zh=sa(ed)({height:28,width:"100%",overflow:"hidden",alignItems:"center","&::before":{visibility:"hidden"}}),Jh=(e,t)=>e.find(e=>e.childRefId===t),Qh=(e,t)=>!t.edit&&(0===e.condition||!1===e.visible),ef=e=>{const{objects:t,defaultTabId:n,cachedTabId:r}=e;return r||(n&&t.some(e=>e.childRefId===n)?n:t[0]?.childRefId||"")};class tf{modifiedLayout;themeStyle;style;objectMap;activeTabId;theme;constructor({modifiedLayout:e,themeService:t}){this.modifiedLayout=e,this.activeTabId=ef(this.modifiedLayout),this.themeStyle=t.getStyles(),this.theme=t.getTheme(),this.objectMap=Zd(this.modifiedLayout),this.style=this.createStyleClasses()}getTabsWidth=e=>{const t=this.resolveComponentStyle({compPath:"width.value",themePath:"tabWidth.value"});if(void 0===t||2!==t.length||e!==this.modifiedLayout.orientation)return{};const n=this.resolveComponentStyle({compPath:"width.unit",themePath:"tabWidth.unit",defaultValue:"%"});return{minWidth:`${t[0]}${n}`,maxWidth:`${t[1]}${n}`}};getTabWidth=e=>{const t=e?.value,n=e?.unit??"%";if(void 0===t||2!==t.length||"left"===this.modifiedLayout.orientation)return{};return{minWidth:`${t[0]}${n}`,maxWidth:`${t[1]}${n}`}};getColorStyle=(e,t=e)=>{const n=this.resolveComponentStyle({compPath:e,themePath:t});return Wh.getColor({style:n,theme:this.theme})??n};getTabBackgroundStyle=(e,t)=>{let n;if(this.activeTabId===e){const e=this.resolveComponentStyle({compPath:"background.selected",themePath:""});n=Wh.getColor({style:e,theme:this.theme})}return n??Wh.getColor({style:t,theme:this.theme})};createTabClasses=()=>this.modifiedLayout.objects?.reduce((e,t)=>{const n=t?.childRefId,r=t?.components?.find(e=>"tab"===e.key);return e[`#tab-${this.modifiedLayout.qInfo.qId}-${n}`]={textAlign:mp(r,"label.alignment"),backgroundColor:this.getTabBackgroundStyle(n,r?.background),...this.getTabWidth(r?.width)},e[`#tab-${this.modifiedLayout.qInfo.qId}-${n}:hover`]={..."left"===this.modifiedLayout.orientation&&{backgroundColor:this.getColorStyle("background.hover","background.hover.color")}},e[`#tab-label-${this.modifiedLayout.qInfo.qId}-${n}`]={fontSize:mp(r,"label.fontSize"),fontFamily:mp(r,"label.fontFamily"),color:Wh.getColor({style:mp(r,"label.color"),theme:this.theme})},e[`#tab-icon-${this.modifiedLayout.qInfo.qId}-${n} svg`]={height:mp(r,"icon.size"),color:Wh.getColor({style:mp(r,"icon.color"),theme:this.theme})},e},{});createTabsClasses=()=>({[Rh]:{fontSize:this.resolveComponentStyle({compPath:"label.fontSize",themePath:"label.value.fontSize"}),fontFamily:this.resolveComponentStyle({compPath:"label.fontFamily",themePath:"label.value.fontFamily"}),color:this.resolveComponentStyle({compPath:"label.color.color",themePath:"label.value.color"})},[_h]:{height:this.resolveComponentStyle({compPath:"icon.size",themePath:"icon.value.fontSize"}),color:this.getColorStyle("icon.color","icon.value.color")},[Sh]:{textAlign:this.resolveComponentStyle({compPath:"label.alignment",themePath:"label.textAlignment"}),...this.getTabsWidth("top")},[wh]:{..."top"===this.modifiedLayout.orientation&&{borderBottomColor:this.getColorStyle("indicator.hover","indicator.hover.color")}},[kh]:{...this.getTabsWidth("left"),backgroundColor:this.getColorStyle("background.unselected","")},[Ah]:{backgroundColor:this.getColorStyle("indicator.selected","indicator.selected.color")}});createStyleClasses=()=>({...this.createTabsClasses(),...this.createTabClasses()});getStyleClasses(){return this.style}resolveComponentStyle=({key:e="tabs",compPath:t,themePath:n=t,defaultValue:r})=>{const o=this.modifiedLayout.components?.find(t=>t.key===e);return mp(o,t)??mp(this.themeStyle,n)??r};getTabStyle(e){return this.objectMap[e].components?.find(e=>"tab"===e.key)}}const nf=()=>{const t=a(),n=s(),r=l(),m=c(),b=d(),g=u(),v=e(),y=p(),x=h(),E=function({theme:e,config:t={}}){const{id:n,resolve:r=[],transform:o=[],extend:i=[]}=t,a={theme:e,matrix:Pp(r),styles:void 0};return a.styles=jp({theme:e,id:n,transform:o,extend:i,matrix:a.matrix}),{getStyles:()=>a.styles,getTheme:()=>a.theme,setTheme:e=>{a.theme=e,a.styles=jp({theme:e,id:n,transform:o,extend:i,matrix:a.matrix})}}}({theme:f(),config:{id:"tabbedContainer",resolve:[["object.tabbedContainer","indicator.selected","color"],["object.tabbedContainer","indicator.hover","color"],["object.tabbedContainer","background.hover","color"],["object.tabbedContainer","icon.value","color"],["object.tabbedContainer","icon.value","fontSize"]]}}),C=o(()=>new kd(m,g),[m,g]),[S]=i(()=>new zh(b?.id)),[w,R]=i(!1),_=o(()=>m&&b&&n?new Dh({embed:m,model:b,app:n,translator:g,mutex:S}):void 0,[m,b,n,g,S]),k=o(()=>Kd(r),[r]),A=o(()=>new tf({modifiedLayout:k,themeService:E}),[k,E]);return o(()=>({app:n,modifiedLayout:k,embed:m,model:b,emitter:y,interactions:x,dataHandler:_,chartList:C,styleModel:A,mutex:S,options:v,accessibility:w,setAccessibility:R,translator:g,element:t}),[k,m,b,n,y,x,_,C,A,S,v,w,g,t])},rf=({dataHandler:e,modifiedLayout:t,translator:n,sharedContainerUtilities:r,Icon:o})=>{const[i,a]=R(void 0);if(!e||!t)return null;const s=!t.qExtendsId;return Ht.jsx(Od,{children:Ht.jsxs(Md,{children:[Ht.jsx(o,{}),s?Ht.jsxs(Ht.Fragment,{children:[Ht.jsx(zd,{sx:{width:250,height:32,fontFamily:"inherit"},className:"init-button",variant:i?"contained":"outlined",onClick:e=>{a(e.currentTarget)},"aria-label":n.get("LayoutContainer.EmptyList.AddContent"),disableRipple:!0,children:n.get("LayoutContainer.EmptyList.AddContent")}),Ht.jsx(Ud,{translator:n,anchorEl:i,dataHandler:e,onClose:()=>{a(void 0)},sharedContainerUtilities:r})]}):Ht.jsx(ys,{variant:"inherit",children:n.get("LayoutContainer.EmptyList.EmptyHint")})]})})};class of{_rendered=new Set;_objectMap=new Map;_objectApis=new Map;_resolver;_dependencyData;_recreateMap=new Map;constructor(e){this._dependencyData=e}set dependencyData(e){this._dependencyData=e}get dependencyData(){return this._dependencyData}get rendered(){return this._rendered}get objectMap(){return this._objectMap}get objectApis(){return this._objectApis}get resolver(){return this._resolver}get recreateMap(){return this._recreateMap}createTimerForRendering=()=>{if(!this.resolver){let e;const t=setTimeout(()=>{this._dependencyData.options.onRenderStatusUpdate?.("Layout container rendering timeout reached after 90 seconds. Resolving anyway."),this.doResolve()},9e4),n=new Promise(t=>{e=t});this._resolver={promise:n,resolve:e,timer:t}}return this._resolver};doResolve=()=>{this.resolver&&(clearTimeout(this.resolver?.timer),this.resolver.resolve?.(!0),this._resolver=void 0)};tryToResolve=()=>{const{visibleLayoutObjects:e}=this._dependencyData;if(this.resolver){e.every(e=>this.rendered.has(e.id))&&(this._dependencyData.options.onRenderStatusUpdate?.("All layout container children rendered"),this.doResolve())}};syncObjects(e){const t=new Set,n=new Set([...Array.from(this.objectMap.keys()),...Array.from(this.objectApis.keys()),...this.rendered]),r=new Set(n);let o=!1;return e.forEach(e=>{n.has(e.id)?(this.rendered.has(e.id)&&t.add(e.id),r.delete(e.id)):o=!0}),r.forEach(e=>{const t=this.objectMap.get(e);t&&(this.confirmPotentialSelections(t),t.destroy?.(),this.objectMap.delete(e)),this.objectApis.get(e)?.destroy(),this.objectApis.delete(e)}),this._rendered=t,this.tryToResolve(),o}destroy(){for(const e of this.objectApis.values())e.destroy();this._objectMap=new Map,this._objectApis=new Map}saveObject(e,t){this.objectMap.set(e,t)}saveObjectApi(e,t){this._objectApis.set(e,t)}onRendered(e){this._dependencyData.options.onRenderStatusUpdate?.(`Layout container child rendered: ${this.rendered.size+1}/${this._dependencyData.visibleLayoutObjects.length} ${e}`),this.rendered.add(e),this.tryToResolve()}getChildrenObjects(){const{visibleLayoutObjects:e}=this._dependencyData,t=[];return e.forEach(e=>{const n=this.objectMap.get(e.id);n&&t.push(n)}),t}getChildLayout(e){const{modifiedLayout:t}=this._dependencyData;return t.qChildList.qItems.find(t=>t.qInfo.qId===e)}shouldRenderWithQmfeEmbed(e){return!!this._dependencyData.options.useQlikEmbedChildRendering&&!!e}getNebulaOptions(e){const{viewState:t,modifiedLayout:n,options:r}=this._dependencyData;return{isReadonly:!1,isParentMaster:!!n?.qExtendsId,isSnapshot:!!n.snapshotData,...!!t?.viewStates?.[e]&&{viewState:t?.viewStates[e]},...!!t?.layouts?.[e]&&{layout:t.layouts[e]},direction:r.direction,chartAnimations:r.chartAnimations,progressiveRendering:r.progressiveRendering,freeResize:r.freeResize,navigation:r.navigation,disableThemeBorder:r.disableThemeBorder??!1,fallbackToClient:r.fallbackToClient}}getNebulaEmbedOptions(e){const{useQlikEmbedChildRendering:t,getContextMenuParent:n,embedProps:r}=this._dependencyData.options;return{...this.getNebulaOptions(e),setController:t=>{this.saveObject(e,t)},onRendered:()=>{this.onRendered(e)},onInitialRender:()=>{this.onRendered(e)},useQlikEmbedChildRendering:t,getContextMenuParent:n,embedProps:r}}getQmfeEmbedProps(e,t){const{options:n,containerMenu:r={id:"container-menu",icon:"ChartObject"},translator:o}=this._dependencyData,{embedProps:i,getContextMenuParent:a}=n;return{...i,ui:"analytics/chart",objectId:e,preview:!0,appId:t,onRender:()=>{this.onRendered(e)},options:{...i?.options,...this.getNebulaOptions(e)},onError:t=>{const n=this.getChildLayout(e)?.qInfo.qType;console.error("Could not render chart with id",e,n,t)},exposeRefApi:({getVisualizationApi:t})=>{t().then(t=>{const n=t;this.saveObjectApi(e,n),this.saveObject(e,{...n,getViewState:()=>n.getImperativeHandle().then(e=>e.getViewState())})})},onContextMenu:async e=>{try{const t=await(i?.onContextMenu?i.onContextMenu(e):e.contextMenuItems)??[],n=await(a?.(e));return n&&"contextMenuItems"in e&&t.push({id:r.id,icon:{value:r.icon,type:"sprout"},label:o?.get("contextMenu.subMenuContainerOptions")??"Container options",onClick:()=>{},items:n}),t}catch(e){return console.error("Error getting context menu parent options",e),[]}}}}confirmPotentialSelections(e){e&&"selectionsApi"in e&&e.selectionsApi.active&&e.selectionsApi.confirm()}}async function af(e,t){return t?.runtimeModuleMocks?.[e]?t.runtimeModuleMocks?.[e]:(function(e){if(!window.__qlikMainPrivateResolvers)throw new Error("No main url resolver found");const t=function(e){if(!window.__qlikMainPrivateResolvers)throw new Error("No main url resolver found");let t,n=e?.embedRuntimeUrl||e?.url||e?.host;if(n||"noauth"!==e?.authType||(n="https://cdn.qlikcloud.com/qmfe"),n){for(t=n.toLowerCase().startsWith("https://")||n.toLowerCase().startsWith("http://")?n:`https://${n}`;t.endsWith("/");)t=t.slice(0,-1);return`${t}/qlik-embed/main.js`}}(e);t&&window.__qlikMainPrivateResolvers.resolveMainJsUrlAndHostConfig&&window.__qlikMainPrivateResolvers.resolveMainJsUrlAndHostConfig({url:t,hostConfig:e}),t&&window.__qlikMainPrivateResolvers.resolveMainJsUrl&&(window.__qlikMainPrivateResolvers.forwardCompatibleHostConfig=e,window.__qlikMainPrivateResolvers.resolveMainJsUrl(t))}(t),async function(e){if(!window.__qlikMainPrivateResolvers?.qlikMainPromise)throw new Error("No main url resolver found");return(await window.__qlikMainPrivateResolvers.qlikMainPromise).import(e)}(e))}window.__qlikMainPrivateResolvers||(window.__qlikMainPrivateResolvers={}),window.__qlikMainPrivateResolvers.mainUrlPromise||(window.__qlikMainPrivateResolvers.mainUrlPromise=new Promise(e=>{window.__qlikMainPrivateResolvers&&(window.__qlikMainPrivateResolvers.resolveMainJsUrl=t=>{e(t)})})),window.__qlikMainPrivateResolvers.mainJsUrlAndHostConfigPromise||(window.__qlikMainPrivateResolvers.mainJsUrlAndHostConfigPromise=new Promise(e=>{window.__qlikMainPrivateResolvers&&(window.__qlikMainPrivateResolvers.resolveMainJsUrlAndHostConfig=t=>{e(t)})})),window.__qlikMainPrivateResolvers.qlikMainPromise||(window.__qlikMainPrivateResolvers.qlikMainPromise=(async()=>{if(window.QlikMain)return window.QlikMain;if(!window.__qlikMainPrivateResolvers?.mainJsUrlAndHostConfigPromise||!window.__qlikMainPrivateResolvers.mainUrlPromise)throw new Error("No main url promise found, report this issue");const e=setTimeout(()=>{console.warn("Waiting for a host parameter pointing to a Qlik runtime system")},5e3),{url:t,hostConfig:n}=await Promise.race([window.__qlikMainPrivateResolvers.mainJsUrlAndHostConfigPromise,window.__qlikMainPrivateResolvers.mainUrlPromise.then(e=>({url:e,hostConfig:window.__qlikMainPrivateResolvers?.forwardCompatibleHostConfig}))]);clearTimeout(e);const r=await async function(e,t){if("windowscookie"===t?.authType){if(t.getAccessToken){const n=await async function(e){if("function"==typeof e)return e();if("string"==typeof e){const t=function(e){return globalThis[e]}(e);if("function"!=typeof t)throw new Error(`getAccessToken function "${e}" not found on globalThis. Please make sure it is defined.`);return t()}}(t.getAccessToken);return n&&await fetch(e,{method:"GET",mode:"cors",credentials:"include",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},cache:"no-cache"}),!0}if(t.loginUri&&!(await fetch(e,{method:"GET",mode:"cors",credentials:"include",redirect:"manual"}).catch(()=>({ok:!1}))).ok)return window.location.replace(t.loginUri),new Promise(()=>{})}return!1}(t,n);return new Promise(e=>{if(window.QlikMain)e(window.QlikMain);else{const n=window.document.createElement("script");t&&(n.src=t),r&&(n.crossOrigin="use-credentials"),n.addEventListener("error",()=>{console.error(`Qlik runtime system not found: ${t}`)}),n.addEventListener("load",()=>{window.QlikMain&&e(window.QlikMain)}),window.document.head.appendChild(n)}})})());const sf=k(void 0),lf=e=>{const t=L(null),n=L(void 0),{vanillaEmbedFn:r,hostConfig:o,...i}=e;return _(()=>(t.current&&(n.current=r({target:t.current,props:{hostConfig:o,...i}})),()=>{n.current&&n.current.$destroy()}),[]),_(()=>{n.current&&n.current.$set({hostConfig:o,...i})},[i,o]),Ht.jsx("qlik-embed-react",{style:{display:"contents"},ref:t})},cf=e=>{const t=E(sf),{vanillaEmbedFn:n}=function(e){const[t,n]=R({});return _(()=>{e&&af("embed-vanilla@v1",e).then(({mountVanillaEmbedComponent:e})=>{n({vanillaEmbedFn:e})}).catch(e=>{n({vanillaError:e instanceof Error?e:new Error(String(e))})})},[e]),t}(t);return n?Ht.jsx(lf,{hostConfig:t,...e,vanillaEmbedFn:n}):null};const df=x(function(e,t){const[n,r]=R(null),o=function(e){const t=L(e);return _(()=>{t.current=e},[e]),I(e=>{t.current(e)},[])}(e=>{r(()=>e)});return A(t,()=>n,[n]),Ht.jsx(cf,{exposeRefApi:o,...e})}),uf=new Map,pf=e=>{const t=uf.get(e);t&&(t.unmount(),uf.delete(e))},hf=({chartObject:e,embed:t,renderHelper:n,direction:r,interactions:o,env:i,app:a})=>{const s=L(null),{id:l}=e;_(()=>(l&&s.current&&(async(e,t,n,r,o)=>{const i=o?.id;if(r.shouldRenderWithQmfeEmbed(i))try{const n=Id.createRoot(e);return uf.set(t,n),void n.render(Ht.jsx(sf.Provider,{value:{},children:Ht.jsx(df,{...r.getQmfeEmbedProps(t,i)})}))}catch(e){console.warn("QlikEmbed mount failed, falling back to embed.render()",t,e),pf(t)}n.render({element:e,id:t,options:r.getNebulaEmbedOptions(t)}).then(e=>{r.saveObjectApi(t,e)}).catch(e=>{const n=r.getChildLayout(t)?.qInfo.qType;console.error("Could not render chart with id",t,n,e)})})(s.current,l,t,n,a),()=>{l&&pf(l)}),[l,t,n,r,a]);const c=T(()=>()=>{if(e?.id&&i.anything){const t=e?.label,{sense:r}=i.anything,o="current",a=n.objectMap.get(e.id);a&&r.propertyPanel.show({model:a.model,parent:o,headerLabel:t,keepCurrentActiveCell:!0})}},[i,e,n]);return _(()=>{const e=s?.current;return e&&o?.edit&&e.addEventListener("dblclick",c),()=>{e?.removeEventListener("dblclick",c)}},[s,c,o]),Ht.jsx("div",{ref:s,style:{position:"relative",height:"100%",width:"100%"},"data-testid":`tab-panel-${e.childRefId}`})};let ff=function(e){return e.TABS_HEIGHT="36px",e}({});const mf=({charts:e,handleChangeTab:t,activeTabId:n,element:r,translator:o,accessibility:i,disabled:a})=>{const[s,l]=y.useState(null),c=Boolean(s),d=()=>{l(null)},u=I(e=>{e?.focus()},[]);return Ht.jsxs(Ht.Fragment,{children:[Ht.jsx(nl,{onClick:e=>{l(e.currentTarget)},disabled:a,"aria-haspopup":"menu","data-testid":"chartTabMenuDropdownButton",tabIndex:i?0:-1,"aria-label":o.get("Container.Label.Visualizations"),className:Ch.TAB_MENU,sx:{m:"2px"},children:Ht.jsx(Kh,{})}),Ht.jsx(Oc,{anchorEl:s,open:c,onClose:d,elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{sx:{py:0}},slotProps:{paper:{sx:{maxHeight:"500px",maxWidth:"500px"}}},children:e.map(e=>Ht.jsx(zc,{className:Ch.TAB_MENU_ITEM,ref:n===e.childRefId&&c?u:null,onClick:()=>{(e=>{t(e.childRefId),d(),window.setTimeout(()=>{r.getElementsByClassName(Ch.ACTIVE_TAB_PANEL)?.[0]?.focus()},0)})(e)},sx:n===e.childRefId?{backgroundColor:"rgba(0, 0, 0, 0.1)"}:{},"aria-label":e.label,title:e.label,children:Ht.jsx(ys,{variant:"inherit",noWrap:!0,children:e.label})},`chartTabMenu-${e.childRefId}`))})]})},bf=({label:e,id:t})=>Ht.jsx(Vs,{className:Ch.TAB_LABEL,id:`tab-label-${t}`,sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",overflow:"hidden",flexWrap:"wrap"},children:Ht.jsx("span",{style:{width:"100%",overflowWrap:"break-word",hyphens:"auto",fontWeight:"bold",display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",lineHeight:"normal",overflow:"hidden"},children:e})}),gf=({libraryInfo:e,chart:t,iconPosition:n,id:r})=>{let o;switch(n){case"bottom":o={marginTop:"6px"};break;case"top":o={marginBottom:"6px"};break;case"end":o={marginInlineStart:"8px"};break;default:o={marginInlineEnd:"8px"}}o.display="flex",o.alignItems="center",o.height="100%",o.flex="1 0 0";return 0===t.condition||!1===t.visible?Ht.jsx(Yh,{id:`${Ch.TABS_ICON}-${r}`,style:o}):e?Ht.jsx(qh,{id:`${Ch.TABS_ICON}-${r}`,libraryInfo:e,style:o}):null},vf=({models:e,activeTabId:t,handleChangeTab:n})=>{const{modifiedLayout:r,chartList:o,interactions:i,accessibility:a}=e,s=o?.getCharts(),l=r.objects.filter(e=>!Qh(e,i)),{orientation:c,tabContainerStyle:d,ScrollButtonComponent:u}=(({orientation:e})=>"left"===e?{orientation:"vertical",tabContainerStyle:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:"25%",flexShrink:0},ScrollButtonComponent:Zh}:{orientation:"horizontal",tabContainerStyle:{display:"flex",flexDirection:"row",alignItems:"center"},ScrollButtonComponent:Xh})(r),p=!1===i.active&&!i.edit,[h,f]=R(!1),m=I(e=>{if(e){const t=e.getElementsByClassName("MuiTabs-flexContainer")[0];if(t)return void f("vertical"===c?t.scrollHeight>t.offsetHeight:t.scrollWidth>t.offsetWidth)}f(!1)},[c]);return Ht.jsxs(Vs,{className:Ch.TAB_WRAPPER,sx:d,ref:e=>{m(e)},children:[r.useDropdown&&h?Ht.jsx(mf,{charts:l,handleChangeTab:n,activeTabId:t,accessibility:a,translator:e.translator,element:e.element,disabled:p}):null,Ht.jsx(hd,{value:t,onChange:(e,t)=>{n(t)},ScrollButtonComponent:u,variant:"scrollable",orientation:c,scrollButtons:!!r.useScrollButton&&"auto",TabScrollButtonProps:{...p&&{disabled:!0}},sx:{height:"100%",width:"100%",minHeight:ff.TABS_HEIGHT},children:l.map(n=>{const o=Yd(r,n.childRefId)?.qData?.visualization,i=o&&s?.[o]?.libraryInfo,l=e.styleModel.getTabStyle(n.childRefId),d=0===n.condition||r.showIcons&&i&&!1!==l?.icon?.show||!1===n.visible,u="vertical"===c?"top":"start",h=e.styleModel.resolveComponentStyle({compPath:"icon.position",defaultValue:u}),f=e.styleModel.resolveComponentStyle({compPath:"label.show"}),m=n.label&&(l?.label?.show??!1!==f),b=`${r.qInfo.qId}-${n.childRefId}`;return Ht.jsx(Uc,{className:`${Ch.TAB} ${t===n.childRefId?Ch.ACTIVE_TAB:""}`,disabled:p,id:`tab-${b}`,value:n.childRefId,title:n.label,label:m?Ht.jsx(bf,{label:n.label,id:b}):void 0,icon:d?Ht.jsx(gf,{libraryInfo:i,chart:n,iconPosition:h,id:b}):"",iconPosition:h,"data-testid":`container-tab-${n.childRefId}`,sx:{textAlign:"vertical"!==c||r.showIcons?"center":"start",minWidth:"vertical"===c?"100%":void 0,minHeight:ff.TABS_HEIGHT,padding:"6px 16px","&:hover":{paddingBottom:"4px"},"&.Mui-disabled":{opacity:"inherit"}},"aria-label":n.label,"aria-controls":`tab-panel-${b}`,tabIndex:a&&t===n.childRefId?0:-1},n.childRefId)})})]})},yf=({models:e,renderHelper:t,activeTabId:n,handleChangeTab:r,env:o})=>{const{modifiedLayout:i,embed:a,interactions:s,options:l,styleModel:c,accessibility:d,app:u}=e,p=i.objects,h=s.edit||!!p.find(e=>0!==e.condition&&!1!==e.visible),f=i.showTabs&&h,m="left"===i.orientation?"row":"column",b=c.getStyleClasses();return Ht.jsxs(Vs,{sx:{display:"flex",flexDirection:m,height:"100%",width:"100%",direction:l.direction,...b},children:[f?Ht.jsx(vf,{models:e,activeTabId:n,handleChangeTab:r}):null,p.map(e=>{const r=`tab-panel-${i.qInfo.qId}-${e.childRefId}`,c=n===e.childRefId&&!Qh(e,s);return Ht.jsx(Vs,{role:"tabpanel",id:r,"aria-label":e.label,sx:{flex:"1 1 auto",minHeight:0,width:"100%",padding:"2px",boxSizing:"border-box",direction:"ltr","&:focus-visible":{boxShadow:"inset 0 0 0 2px #0275D9",borderRadius:"3px",zIndex:1200}},...c?{className:Ch.ACTIVE_TAB_PANEL,tabIndex:d?0:-1}:{hidden:!0},children:c?Ht.jsx(hf,{chartObject:e,renderHelper:t,direction:l.direction,embed:a,interactions:s,env:o,app:u}):null},r)})]})};let xf=function(e){return e.COPY="copy",e.PASTE="paste",e.RESET_COPY_BUFFER="resetCopyBuffer",e}({}),Ef=function(e){return e.COPY="copy",e.PASTE_AND_REPLACE="paste-and-replace",e.PASTE="paste",e.DUPLICATE="duplicate",e.DELETE="delete",e.CUT="cut",e.EDIT_PROPERTIES="edit",e.ZOOM_IN="zoom-in",e.VISUAL_EXPLORATION="visual-exploration",e.MONITOR_IN_HUB="addto",e.REORDER_LAYERS_GROUP="reorder-layers-group",e.BRING_TO_FRONT="bring-to-front",e.BRING_FORWARD="bring-forward",e.SEND_TO_BACK="send-to-back",e.SEND_BACKWARDS="send-backwards",e.CONTAINER_HEADER="container-header",e.CHART_HEADER="chart-header",e.ALERT_GROUP="alertGroup",e.ADD_TO_MASTER_ITEMS="add-to-master-items",e.UNLINK_VISUALIZATION="unlink",e.DEVELOPER="object-developer",e.SHOW_DETAILS="object-info",e.EXPLAIN_KEY_DRIVERS_OLD_ID="explainKeyDrivers",e.EXPLAIN_KEY_DRIVERS="key-driver",e.SUBSCRIBE="subscribe",e.NOTES_GROUP="notesGroup",e.DOWNLOAD="download",e.SHARE_IMAGE="share",e}({});const Cf=[Ef.PASTE_AND_REPLACE,Ef.ZOOM_IN,Ef.VISUAL_EXPLORATION],Sf=[Ef.VISUAL_EXPLORATION,Ef.ALERT_GROUP,Ef.SHOW_DETAILS,Ef.EXPLAIN_KEY_DRIVERS,Ef.EXPLAIN_KEY_DRIVERS_OLD_ID],wf=[Ef.DELETE,Ef.CUT,Ef.ADD_TO_MASTER_ITEMS,Ef.UNLINK_VISUALIZATION],Rf=[Ef.PASTE_AND_REPLACE],_f=(e,t)=>{const{childRefId:n}=e.model.layout,r=t.objects.find(e=>e.childRefId===n);return{...e,additionalData:{label:r?.label}}},kf=(e,t,n,r,o)=>{const i=t.getSupportFunction(Ef.COPY);if(!i)return void e.deleteItem(Ef.COPY);const a=()=>{i(_f(n,r)).catch(()=>{})},s=e.items.find(e=>e.id===Ef.COPY);if(s)s.updateItem({select:a});else if(o){const t=e.items.findIndex(e=>e.id===Ef.CUT),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.copy",tid:Ef.COPY,id:Ef.COPY,icon:"copy",select:a,items:[]},n)}},Af=e=>e.interactions.edit&&!e.modifiedLayout.qExtendsId,Lf=async(e,t,n,r,o)=>{if(o.flags.isEnabled("GVC_48_CHART_CONTEXT_MENU_ITEM_GENERATION"))return;const i=t.getBuilder("default");if(!i)return;const a=await i();a.addItem({translation:"contextMenu.containerOptionsHeader",tid:Ef.CONTAINER_HEADER,id:Ef.CONTAINER_HEADER,bold:!0,items:[]},0);const s=Af(n);a.items.forEach(e=>{(Sf.includes(e.id)||!s&&Rf.includes(e.id))&&a.deleteItem(e.id)}),s&&await(async(e,t,n)=>{const r=t.getSupportFunction(xf.PASTE),o=await(r?.()?.catch(()=>{}));if(!o||_d.includes(o.template))return void e.deleteItem(Ef.PASTE_AND_REPLACE);const i=()=>{n()},a=e.items.find(e=>e.id===Ef.PASTE_AND_REPLACE||e.id===Ef.PASTE);if(a)a.updateItem({translation:"contextMenu.paste",select:i});else{const t=e.items.findLastIndex(e=>e.id===Ef.COPY||e.id===Ef.DEVELOPER||e.id===Ef.CONTAINER_HEADER),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.paste",tid:Ef.PASTE_AND_REPLACE,id:Ef.PASTE_AND_REPLACE,icon:"paste",select:i,items:[]},n)}})(a,t,r),e.updateItem({items:a.items}),1===e.items.length&&e.deleteItem(Ef.CONTAINER_HEADER)},If="tabbed-container-menu",Tf=e=>{const t={[Ef.MONITOR_IN_HUB]:!0,[Ef.SUBSCRIBE]:!0,[Ef.NOTES_GROUP]:!0,[Ef.DOWNLOAD]:!0,[Ef.SHARE_IMAGE]:!0};e.items.forEach(n=>{t[n.id]?e.deleteItem(n.id):n.items&&Tf(n)})},Pf=(e,t,n,r,o,i)=>a=>{const{dataHandler:s,modifiedLayout:l}=r;if(Af(r)){n.isInvalid||(((e,t,n,r)=>{const{model:o,modifiedLayout:i}=n,a=e.items.findLastIndex(e=>e.id===Ef.CHART_HEADER||e.id===Ef.REORDER_LAYERS_GROUP),s=a>=0?1+a:void 0;e.addItem({translation:"Object.Container.Props.EditProperties",tid:Ef.EDIT_PROPERTIES,id:Ef.EDIT_PROPERTIES,icon:Ef.EDIT_PROPERTIES,items:[],select:()=>{const{childRefId:e}=t.model.layout,n=i.objects.find(t=>t.childRefId===e),a=n?.label,{sense:s}=r.anything,l=o;s.propertyPanel.show({model:t.model,parent:l,headerLabel:a})}},s)})(a,n,r,o),((e,t,n,r,o,i)=>{const a=r.getSupportFunction(Ef.COPY);if(!a)return void e.deleteItem(Ef.CUT);const s=()=>{o&&a(_f(n,i)).then(async()=>{await(o?.deleteChildren([t]))}).catch(()=>{})},l=e.items.find(e=>e.id===Ef.CUT);if(l)l.updateItem({select:s});else{const t=e.items.findLastIndex(e=>e.id===Ef.ADD_TO_MASTER_ITEMS||e.id===Ef.UNLINK_VISUALIZATION||e.id===Ef.EDIT_PROPERTIES||e.id===Ef.REORDER_LAYERS_GROUP||e.id===Ef.DEVELOPER),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.cut",tid:Ef.CUT,id:Ef.CUT,icon:"cut",select:s,items:[]},n)}})(a,t,n,e,s,l),kf(a,e,n,l,!0),((e,t,n,r,o)=>{const i=t.getSupportFunction(xf.COPY),a=t.getSupportFunction(xf.PASTE);if(!i||!a)return void e.deleteItem(Ef.DUPLICATE);const s=()=>{i(_f(n,r)).then(()=>{o()}).catch(()=>{})},l=e.items.find(e=>e.id===Ef.DUPLICATE);if(l)l.updateItem({select:s});else{const t=e.items.findIndex(e=>e.id===Ef.COPY),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Duplicate",tid:Ef.DUPLICATE,id:Ef.DUPLICATE,icon:Ef.DUPLICATE,items:[],select:s},n)}})(a,e,n,l,i)),((e,t,n)=>{const r=()=>{n&&n.deleteChildren([t]).catch(()=>{})},o=e.items.find(e=>e.id===Ef.DELETE);if(o)o.updateItem({select:r});else{const t=e.items.findLastIndex(e=>e.id===Ef.DUPLICATE||e.id===Ef.ADD_TO_MASTER_ITEMS||e.id===Ef.UNLINK_VISUALIZATION||e.id===Ef.REORDER_LAYERS_GROUP||e.id===Ef.DEVELOPER),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Delete",tid:Ef.DELETE,id:Ef.DELETE,icon:"bin",items:[],select:r},n)}})(a,t,s)}else kf(a,e,n,l,!1)},Mf=(e,t,n,r)=>{b(async(o,i,a)=>{if(!a)return!1;const s=((e,t)=>()=>{if(!e)return;const n=t.getSupportFunction(xf.PASTE);n&&n().then(async({template:t,init:n,children:r,additionalData:o})=>{const{label:i}=o,a={label:i};n.qExtendsId?await e.addMasterObjectAsChild({initProps:n,children:r,objectInitProps:a}):await e.addVizAsChild({type:t,initProps:n,children:r,objectInitProps:a})}).catch(e=>{e&&t.getSupportFunction(xf.RESET_COPY_BUFFER)})})(n.dataHandler,a);if(await Lf(o,a,n,s,r),Tf(o),!(e=>{let t;t="qv-radial-contextmenu"===e.type?e.touches[0]?.target:e.target;return t&&((e,t)=>{let n=e;for(;n;){if(n.classList?.contains(t))return n;n=n.parentNode}return null})(t,Ch.ACTIVE_TAB_PANEL)})(i))return!0;const l=n.modifiedLayout.objects.find(t=>t.childRefId===e)?.id;if(!l)return!0;const c=t.objectMap.get(l);if(!c)return!0;const d=Pf(a,e,c,n,r,s),u=await(async(e,t,n,r)=>{const o=Af(n),i=e.getBuilder("object");if(!i)return;const a=await i(t);return a.addItem({translation:"contextMenu.chartOptionsHeader",tid:Ef.CHART_HEADER,id:Ef.CHART_HEADER,bold:!0,items:[]},0),r(a),a.items.forEach(e=>{(Cf.includes(e.id)||!o&&wf.includes(e.id))&&a.deleteItem(e.id)}),1===a.items.length&&a.deleteItem(Ef.CHART_HEADER),a})(a,c,n,d);return!u||(o.items.length>0&&u.addItem({translation:"contextMenu.subMenuContainerOptions",tid:If,id:If,icon:"tabbed-container",items:[...o.items]},u.items.length),o.updateItem({items:u.items}),!0)})},Of=({element:n,models:r,env:a,activeCharts:s})=>{const l=((e,n)=>{const[r,o]=i(void 0);return t(()=>{if(0===e.getElementsByClassName(n).length){const t=document.createElement("div");t.className=n,e.appendChild(t);const r=Id.createRoot(t);o(r)}return()=>{r?.unmount()}},[e,n,r]),r})(n,"init-component"),{options:c,modifiedLayout:d,interactions:u,model:p}=r,{qChildList:h}=d,f=Rd(c.direction),b=(t=>{const{viewState:n}=e(),{snapshotData:r}=t;if(r){const{layouts:e}=r.objectsData,t=r.viewState?.viewStates;return{layouts:e,viewStates:t}}if(n){const{viewStates:e}=n;return{viewStates:e}}})(d),g=o(()=>ef(d),[d]),v={modifiedLayout:d,activeTabId:g,env:a},[y,x]=Ph(v);x(v);const E=o(()=>d.objects.filter(e=>g===e.childRefId),[g,d.objects]),C=o(()=>({...c,disableThemeBorder:!0}),[c]),{renderHelper:S}=(e=>{const{visibleLayoutObjects:n,options:r}=e,[o]=i(()=>new of(e)),[,a]=i(r);return o.dependencyData=e,m(async()=>(a(e=>(e!==r&&n.forEach(e=>o.recreateMap.set(e.id,!0)),r)),o.syncObjects(n)?o.createTimerForRendering()?.promise:o.resolver?.promise),[n,r]),t(()=>()=>{o.destroy()},[o]),{renderHelper:o}})({modifiedLayout:d,visibleLayoutObjects:E,viewState:b,options:C,containerMenu:{id:If,icon:"TabbedContainerOutline"},translator:r.translator});Mf(g,S,r,a);const[w]=i({current:void 0}),R=o(()=>e=>{(async({model:e,patchList:t})=>{if(e?.applyPatches){const n=await e.getEffectiveProperties(),r=[];t.forEach(e=>{const{newValue:t,propertyName:o}=e,i=void 0!==n[o]?"Replace":"Add";t?r.push({qPath:`/${o}`,qOp:i,qValue:JSON.stringify(t)}):"Replace"===i&&r.push({qPath:`/${o}`,qOp:"Remove"})}),r.length>0&&await e.applyPatches(r,!0)}})({model:p,patchList:[{newValue:e,propertyName:"cachedTabId"}]}).then(()=>{const t=y.modifiedLayout.objects.find(t=>t.childRefId===e)?.id;s.updateActiveCharts(t?[t]:[])})},[s,p,y.modifiedLayout.objects]),_=o(()=>({setSelected:e=>{const t=y.modifiedLayout.objects.find(t=>t.id===e[0])?.childRefId;t?R(t):w.current=e[0]}}),[R,y,w]);t(()=>{const e=(({chartObjects:e,activeTabId:t})=>!Jh(e,t)&&e.length>0?e[0]?.childRefId:t)({chartObjects:y.modifiedLayout.objects,activeTabId:y.activeTabId});if(e!==y.activeTabId)R(e);else if(w.current){const e=y.modifiedLayout.objects.find(e=>e.id===w.current)?.childRefId;e&&R(e)}w.current=void 0},[d?.objects.length,y,w,R]),t(()=>{const e=(({chartObjects:e,activeTabId:t,interactions:n})=>{const r=Jh(e,t);if(!r||Qh(r,n)){const n=e.find(e=>0!==e.condition&&!1!==e.visible);return n?.childRefId||t}return t})({chartObjects:y.modifiedLayout.objects,activeTabId:y.activeTabId,interactions:u});e!==y.activeTabId&&R(e)},[u,d?.objects,y,R]);const k=0===h.qItems.length&&u.edit;return t(()=>{l?.render(Ht.jsxs(ca,{theme:f,children:[k?Ht.jsx(rf,{Icon:Vh,dataHandler:r.dataHandler,modifiedLayout:r.modifiedLayout,translator:r.translator,sharedContainerUtilities:_}):null,!k&&Ht.jsx(yf,{models:r,renderHelper:S,activeTabId:g,handleChangeTab:R,env:a})]}))},[l,r,f,k,S,g,_,R,a]),{renderHelper:S,sharedContainerUtilities:_,activeTabId:g}};var jf={targets:[]};const $f={showTitles:!0,title:"",subtitle:"",footnote:"",disableNavMenu:!0,showDetails:!1,objects:[],qChildListDef:{qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition",visible:"/visible"}},showTabs:!0,useScrollButton:!0,useDropdown:!1,showIcons:!1,components:[],defaultTabId:"",orientation:"top",fontsUsed:[]};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".init-component {\n height: 100%;\n overflow: hidden;\n}\n");const Nf=(e,t)=>{let n=!0;const r=t.objects.reduce((t,r)=>{const o=r.id;if(0!==r.condition&&!1!==r.visible){const i=e.get(o);return i&&(e=>e.supportExport())(i)&&(n=!1,t.objectMap.set(o,i)),t.objects.push(r),t}return t},{objects:[],objectMap:new Map});return n?{objects:[],objectMap:new Map}:r},Df=new class{translator;muiTheme;containers={};sync=({element:e,sharedContainerUtilities:t,translator:n,containerId:r,dataHandler:o,renderHelper:i,chartList:a})=>{this.translator=n,this.containers[r]={element:e,sharedContainerUtilities:t,dataHandler:o,renderHelper:i,chartList:a}};setMuiTheme=e=>{this.muiTheme=Rd(e)};destroy=e=>{delete this.containers[e]}};function zf(n){return{qae:{properties:$f,data:jf},ext:mh({env:n,propertyHandlerData:Df}),component(){const r=nf(),a=u();o(()=>{!function(e){if(e&&e.get&&e.add){const t="LayoutContainer.EmptyList.AddContent";if(e.get(t)!==t)return;Object.keys($).forEach(t=>{e.add($[t])})}}(a)},[a]);const{dataHandler:s,model:l,accessibility:c,setAccessibility:d,interactions:p,element:h,modifiedLayout:f}=r,m=o(()=>function(){const e=new z.EventEmitter;let t=[];return e.updateActiveCharts=n=>{t=n.slice(),e.emit("activeChartsChange",t.slice())},e.setActiveCharts=n=>{t=n.slice(),e.emit("setActiveCharts",t.slice())},e.getActiveCharts=()=>[...t],e}(),[]),{renderHelper:b,sharedContainerUtilities:v,activeTabId:y}=Of({element:h,models:r,env:n,activeCharts:m});(({propertyHandlerData:n,element:r,sharedContainerUtilities:o,translator:i,containerId:a,dataHandler:s,renderHelper:l,chartList:c})=>{const d=e();a&&n.sync({containerId:a,element:r,sharedContainerUtilities:o,translator:i,dataHandler:s,renderHelper:l,chartList:c}),t(()=>{n.setMuiTheme(d.direction)},[d.direction,n]),t(()=>()=>{a&&n.destroy(a)},[a,n,d.direction])})({containerId:l?.id||"",element:h,sharedContainerUtilities:v,translator:a,dataHandler:s,propertyHandlerData:Df,renderHelper:b});const[x,E]=i(!0);Mh({isContainerActive:x,activeTabId:y,renderHelper:b,modifiedLayout:f,activeCharts:m,sharedContainerUtilities:v}),Th({element:h,accessibility:c,setAccessibility:d,renderHelper:b,interactions:p,env:n,models:r});const{getViewState:C}=yh(b,Nf);g(()=>({getViewState:C,getChildrenObjects:()=>(e=>e.map(e=>{if("canReceive"in e){const t=e=>"libraryitem"===e.type&&("field"===e.item.type||"measure"===e.item.type||"dimension"===e.item.type);return{...e,canReceive:n=>t(n)&&e.canReceive(n)}}return e}))(b.getChildrenObjects()),updateActiveState(e){E(e)},activeCharts:m}),[])}}}export{zf as default};
|