@nebula.js/sn-table 2.9.1 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/esm/index.js CHANGED
@@ -1,35 +1,123 @@
1
1
  /*
2
- * @nebula.js/sn-table v2.9.1
3
- * Copyright (c) 2023 QlikTech International AB
2
+ * @nebula.js/sn-table v3.1.0
3
+ * Copyright (c) 2024 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- import{useTheme as e,useMemo as t,onContextMenu as n,useOptions as r,useState as o,usePromise as i,useEffect as a,onTakeSnapshot as l,useImperativeHandle as s,useElement as u,useStaleLayout as c,useApp as d,useModel as p,useInteractionState as f,useTranslator as m,useSelections as h,useKeyboard as g,useRect as b,useEmbed as v}from"@nebula.js/stardust";import*as y from"react";import x,{useState as S,useMemo as E,useEffect as C,useContext as w,createElement as R,useRef as A,Children as D,isValidElement as P,cloneElement as I,useReducer as T,createContext as M,useCallback as L,forwardRef as q,memo as k,useLayoutEffect as O,PureComponent as N,useImperativeHandle as _}from"react";import*as F from"react-dom";import z from"react-dom";var H=function(){return H=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},H.apply(this,arguments)};function j(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function B(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))}function $(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}function W(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function V(e,t){const[n,r]=S(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}"function"==typeof SuppressedError&&SuppressedError;var U={NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const G=({translator:e})=>(E((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(U).forEach((t=>{e.add(U[t])}))}}(e)),[e]),e);function Y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var K,Z=z;function X(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function J(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Q(){}K=Z.createRoot,Z.hydrateRoot;var ee=.7,te=1/ee,ne="\\s*([+-]?\\d+)\\s*",re="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",oe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ie=/^#([0-9a-f]{3,8})$/,ae=new RegExp(`^rgb\\(${ne},${ne},${ne}\\)$`),le=new RegExp(`^rgb\\(${oe},${oe},${oe}\\)$`),se=new RegExp(`^rgba\\(${ne},${ne},${ne},${re}\\)$`),ue=new RegExp(`^rgba\\(${oe},${oe},${oe},${re}\\)$`),ce=new RegExp(`^hsl\\(${re},${oe},${oe}\\)$`),de=new RegExp(`^hsla\\(${re},${oe},${oe},${re}\\)$`),pe={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 fe(){return this.rgb().formatHex()}function me(){return this.rgb().formatRgb()}function he(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ie.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ge(t):3===n?new xe(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?be(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?be(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ae.exec(e))?new xe(t[1],t[2],t[3],1):(t=le.exec(e))?new xe(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=se.exec(e))?be(t[1],t[2],t[3],t[4]):(t=ue.exec(e))?be(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ce.exec(e))?Ae(t[1],t[2]/100,t[3]/100,1):(t=de.exec(e))?Ae(t[1],t[2]/100,t[3]/100,t[4]):pe.hasOwnProperty(e)?ge(pe[e]):"transparent"===e?new xe(NaN,NaN,NaN,0):null}function ge(e){return new xe(e>>16&255,e>>8&255,255&e,1)}function be(e,t,n,r){return r<=0&&(e=t=n=NaN),new xe(e,t,n,r)}function ve(e){return e instanceof Q||(e=he(e)),e?new xe((e=e.rgb()).r,e.g,e.b,e.opacity):new xe}function ye(e,t,n,r){return 1===arguments.length?ve(e):new xe(e,t,n,null==r?1:r)}function xe(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Se(){return`#${Re(this.r)}${Re(this.g)}${Re(this.b)}`}function Ee(){const e=Ce(this.opacity);return`${1===e?"rgb(":"rgba("}${we(this.r)}, ${we(this.g)}, ${we(this.b)}${1===e?")":`, ${e})`}`}function Ce(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function we(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Re(e){return((e=we(e))<16?"0":"")+e.toString(16)}function Ae(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Pe(e,t,n,r)}function De(e){if(e instanceof Pe)return new Pe(e.h,e.s,e.l,e.opacity);if(e instanceof Q||(e=he(e)),!e)return new Pe;if(e instanceof Pe)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Pe(a,l,s,e.opacity)}function Pe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ie(e){return(e=(e||0)%360)<0?e+360:e}function Te(e){return Math.max(0,Math.min(1,e||0))}function Me(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}X(Q,he,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:fe,formatHex:fe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return De(this).formatHsl()},formatRgb:me,toString:me}),X(xe,ye,J(Q,{brighter(e){return e=null==e?te:Math.pow(te,e),new xe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ee:Math.pow(ee,e),new xe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new xe(we(this.r),we(this.g),we(this.b),Ce(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:Se,formatHex:Se,formatHex8:function(){return`#${Re(this.r)}${Re(this.g)}${Re(this.b)}${Re(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ee,toString:Ee})),X(Pe,(function(e,t,n,r){return 1===arguments.length?De(e):new Pe(e,t,n,null==r?1:r)}),J(Q,{brighter(e){return e=null==e?te:Math.pow(te,e),new Pe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ee:Math.pow(ee,e),new Pe(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 xe(Me(e>=240?e-240:e+120,o,r),Me(e,o,r),Me(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Pe(Ie(this.h),Te(this.s),Te(this.l),Ce(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=Ce(this.opacity);return`${1===e?"hsl(":"hsla("}${Ie(this.h)}, ${100*Te(this.s)}%, ${100*Te(this.l)}%${1===e?")":`, ${e})`}`}}));const Le=e=>{if(e){const t=ye(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},qe=(e,t,n,r)=>{const o=null==t?void 0:t.closest(".qv-object .qv-inner-object"),i=o&&window.getComputedStyle(o).backgroundColor,a=null==t?void 0:t.closest(".qv-panel-sheet"),l=a&&window.getComputedStyle(a).backgroundColor,s=null==n?void 0:n(e),u=null==r?void 0:r(e),c=s||i||u,d=(e=>!!e&&0===ye(e).opacity)(c);return{tableColorFromTheme:s||"inherit",color:c,isDark:Le(d?l:c),isTransparent:d}};var ke=Object.prototype.hasOwnProperty,Oe=Object.prototype.toString,Ne=Object.defineProperty,_e=Object.getOwnPropertyDescriptor,Fe=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Oe.call(e)},ze=function(e){if(!e||"[object Object]"!==Oe.call(e))return!1;var t,n=ke.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&ke.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||ke.call(e,t)},He=function(e,t){Ne&&"__proto__"===t.name?Ne(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},je=function(e,t){if("__proto__"===t){if(!ke.call(e,t))return;if(_e)return _e(e,t).value}return e[t]};function Be(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $e(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function We(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=je(l,n),l!==(o=je(t,n))&&(c&&o&&(ze(o)||(i=Fe(o)))?(i?(i=!1,a=r&&Fe(r)?r:[]):a=r&&ze(r)?r:{},He(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&He(l,{name:n,newValue:o}));return l}));var Ve=1/.7,Ue="\\s*([+-]?\\d+)\\s*",Ge="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ye="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ke=/^#([0-9a-f]{3,8})$/,Ze=new RegExp(`^rgb\\(${Ue},${Ue},${Ue}\\)$`),Xe=new RegExp(`^rgb\\(${Ye},${Ye},${Ye}\\)$`),Je=new RegExp(`^rgba\\(${Ue},${Ue},${Ue},${Ge}\\)$`),Qe=new RegExp(`^rgba\\(${Ye},${Ye},${Ye},${Ge}\\)$`),et=new RegExp(`^hsl\\(${Ge},${Ye},${Ye}\\)$`),tt=new RegExp(`^hsla\\(${Ge},${Ye},${Ye},${Ge}\\)$`),nt={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 rt(){return this.rgb().formatHex()}function ot(){return this.rgb().formatRgb()}function it(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ke.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?at(t):3===n?new ct(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?lt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?lt(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=Ze.exec(e))?new ct(t[1],t[2],t[3],1):(t=Xe.exec(e))?new ct(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Je.exec(e))?lt(t[1],t[2],t[3],t[4]):(t=Qe.exec(e))?lt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=et.exec(e))?gt(t[1],t[2]/100,t[3]/100,1):(t=tt.exec(e))?gt(t[1],t[2]/100,t[3]/100,t[4]):nt.hasOwnProperty(e)?at(nt[e]):"transparent"===e?new ct(NaN,NaN,NaN,0):null}function at(e){return new ct(e>>16&255,e>>8&255,255&e,1)}function lt(e,t,n,r){return r<=0&&(e=t=n=NaN),new ct(e,t,n,r)}function st(e){return e instanceof We||(e=it(e)),e?new ct((e=e.rgb()).r,e.g,e.b,e.opacity):new ct}function ut(e,t,n,r){return 1===arguments.length?st(e):new ct(e,t,n,null==r?1:r)}function ct(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function dt(){return`#${ht(this.r)}${ht(this.g)}${ht(this.b)}`}function pt(){const e=ft(this.opacity);return`${1===e?"rgb(":"rgba("}${mt(this.r)}, ${mt(this.g)}, ${mt(this.b)}${1===e?")":`, ${e})`}`}function ft(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function mt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ht(e){return((e=mt(e))<16?"0":"")+e.toString(16)}function gt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new vt(e,t,n,r)}function bt(e){if(e instanceof vt)return new vt(e.h,e.s,e.l,e.opacity);if(e instanceof We||(e=it(e)),!e)return new vt;if(e instanceof vt)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new vt(a,l,s,e.opacity)}function vt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function yt(e){return(e=(e||0)%360)<0?e+360:e}function xt(e){return Math.max(0,Math.min(1,e||0))}function St(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Be(We,it,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:rt,formatHex:rt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return bt(this).formatHsl()},formatRgb:ot,toString:ot}),Be(ct,ut,$e(We,{brighter(e){return e=null==e?Ve:Math.pow(Ve,e),new ct(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ct(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ct(mt(this.r),mt(this.g),mt(this.b),ft(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:dt,formatHex:dt,formatHex8:function(){return`#${ht(this.r)}${ht(this.g)}${ht(this.b)}${ht(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:pt,toString:pt})),Be(vt,(function(e,t,n,r){return 1===arguments.length?bt(e):new vt(e,t,n,null==r?1:r)}),$e(We,{brighter(e){return e=null==e?Ve:Math.pow(Ve,e),new vt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new vt(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 ct(St(e>=240?e-240:e+120,o,r),St(e,o,r),St(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new vt(yt(this.h),xt(this.s),xt(this.l),ft(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=ft(this.opacity);return`${1===e?"hsl(":"hsla("}${yt(this.h)}, ${100*xt(this.s)}%, ${100*xt(this.l)}%${1===e?")":`, ${e})`}`}}));const Et=Math.PI/180,Ct=180/Math.PI,wt=4/29,Rt=6/29,At=3*Rt*Rt;function Dt(e){if(e instanceof Pt)return new Pt(e.l,e.a,e.b,e.opacity);if(e instanceof qt)return kt(e);e instanceof ct||(e=st(e));var t,n,r=Lt(e.r),o=Lt(e.g),i=Lt(e.b),a=It((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=It((.4360747*r+.3850649*o+.1430804*i)/.96422),n=It((.0139322*r+.0971045*o+.7141733*i)/.82521)),new Pt(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Pt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function It(e){return e>.008856451679035631?Math.pow(e,1/3):e/At+wt}function Tt(e){return e>Rt?e*e*e:At*(e-wt)}function Mt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Lt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function qt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function kt(e){if(isNaN(e.h))return new Pt(e.l,0,0,e.opacity);var t=e.h*Et;return new Pt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Be(Pt,(function(e,t,n,r){return 1===arguments.length?Dt(e):new Pt(e,t,n,null==r?1:r)}),$e(We,{brighter(e){return new Pt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Pt(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 ct(Mt(3.1338561*(t=.96422*Tt(t))-1.6168667*(e=1*Tt(e))-.4906146*(n=.82521*Tt(n))),Mt(-.9787684*t+1.9161415*e+.033454*n),Mt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Be(qt,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof qt)return new qt(e.h,e.c,e.l,e.opacity);if(e instanceof Pt||(e=Dt(e)),0===e.a&&0===e.b)return new qt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ct;return new qt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new qt(e,t,n,null==r?1:r)}),$e(We,{brighter(e){return new qt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new qt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return kt(this).rgb()}}));var Ot=e=>()=>e;function Nt(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Ot(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?Nt: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):Ot(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=ut(e)).r,(t=ut(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Nt(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 _t,Ft=["__proto__","constructor"];function zt(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!Ft.some((function(e){return r.includes(e)}))){for(var i=e,a=0;a<r.length-1;++a){var l=r[a];void 0===i[l]&&(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}}}function Ht(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function jt(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 Bt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Wt)):void 0===t&&(t=$t);for(var n,r,o,i,a,l=new Gt(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new Gt(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Ut)}function $t(e){return e.children}function Wt(e){return Array.isArray(e)?e[1]:null}function Vt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Ut(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Gt(e){this.data=e,this.depth=this.height=0,this.parent=null}Gt.prototype=Bt.prototype={constructor:Gt,count:function(){return this.eachAfter(jt)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Bt(this).eachBefore(Vt)},[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)}},_t=function(e){
7
+ import{useTheme as e,useMemo as t,onContextMenu as n,useOptions as r,useState as o,usePromise as i,useEffect as a,onTakeSnapshot as l,useImperativeHandle as s,useElement as u,useStaleLayout as c,useApp as d,useModel as p,useInteractionState as f,useTranslator as m,useSelections as h,useKeyboard as g,useRect as b,useEmbed as v}from"@nebula.js/stardust";import*as y from"react";import x,{useMemo as S,useState as E,useEffect as C,useContext as w,createElement as R,Children as A,isValidElement as P,cloneElement as I,useReducer as L,createContext as D,useRef as M,useCallback as O,forwardRef as T,memo as k,useLayoutEffect as _,PureComponent as q,useImperativeHandle as N}from"react";import*as F from"react-dom";import j from"react-dom";function z(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function H(){}var B=.7,W=1/B,G="\\s*([+-]?\\d+)\\s*",V="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",U="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Y=/^#([0-9a-f]{3,8})$/,K=new RegExp(`^rgb\\(${G},${G},${G}\\)$`),X=new RegExp(`^rgb\\(${U},${U},${U}\\)$`),J=new RegExp(`^rgba\\(${G},${G},${G},${V}\\)$`),Z=new RegExp(`^rgba\\(${U},${U},${U},${V}\\)$`),Q=new RegExp(`^hsl\\(${V},${U},${U}\\)$`),ee=new RegExp(`^hsla\\(${V},${U},${U},${V}\\)$`),te={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 ne(){return this.rgb().formatHex()}function re(){return this.rgb().formatRgb()}function oe(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Y.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ie(t):3===n?new ue(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ae(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ae(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=K.exec(e))?new ue(t[1],t[2],t[3],1):(t=X.exec(e))?new ue(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=J.exec(e))?ae(t[1],t[2],t[3],t[4]):(t=Z.exec(e))?ae(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Q.exec(e))?he(t[1],t[2]/100,t[3]/100,1):(t=ee.exec(e))?he(t[1],t[2]/100,t[3]/100,t[4]):te.hasOwnProperty(e)?ie(te[e]):"transparent"===e?new ue(NaN,NaN,NaN,0):null}function ie(e){return new ue(e>>16&255,e>>8&255,255&e,1)}function ae(e,t,n,r){return r<=0&&(e=t=n=NaN),new ue(e,t,n,r)}function le(e){return e instanceof H||(e=oe(e)),e?new ue((e=e.rgb()).r,e.g,e.b,e.opacity):new ue}function se(e,t,n,r){return 1===arguments.length?le(e):new ue(e,t,n,null==r?1:r)}function ue(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ce(){return`#${me(this.r)}${me(this.g)}${me(this.b)}`}function de(){const e=pe(this.opacity);return`${1===e?"rgb(":"rgba("}${fe(this.r)}, ${fe(this.g)}, ${fe(this.b)}${1===e?")":`, ${e})`}`}function pe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function fe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function me(e){return((e=fe(e))<16?"0":"")+e.toString(16)}function he(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new be(e,t,n,r)}function ge(e){if(e instanceof be)return new be(e.h,e.s,e.l,e.opacity);if(e instanceof H||(e=oe(e)),!e)return new be;if(e instanceof be)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new be(a,l,s,e.opacity)}function be(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ve(e){return(e=(e||0)%360)<0?e+360:e}function ye(e){return Math.max(0,Math.min(1,e||0))}function xe(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}z(H,oe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ne,formatHex:ne,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ge(this).formatHsl()},formatRgb:re,toString:re}),z(ue,se,$(H,{brighter(e){return e=null==e?W:Math.pow(W,e),new ue(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?B:Math.pow(B,e),new ue(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ue(fe(this.r),fe(this.g),fe(this.b),pe(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ce,formatHex:ce,formatHex8:function(){return`#${me(this.r)}${me(this.g)}${me(this.b)}${me(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:de,toString:de})),z(be,(function(e,t,n,r){return 1===arguments.length?ge(e):new be(e,t,n,null==r?1:r)}),$(H,{brighter(e){return e=null==e?W:Math.pow(W,e),new be(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?B:Math.pow(B,e),new be(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 ue(xe(e>=240?e-240:e+120,o,r),xe(e,o,r),xe(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new be(ve(this.h),ye(this.s),ye(this.l),pe(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=pe(this.opacity);return`${1===e?"hsl(":"hsla("}${ve(this.h)}, ${100*ye(this.s)}%, ${100*ye(this.l)}%${1===e?")":`, ${e})`}`}}));const Se=Math.PI/180,Ee=180/Math.PI,Ce=.96422,we=1,Re=.82521,Ae=4/29,Pe=6/29,Ie=3*Pe*Pe,Le=Pe*Pe*Pe;function De(e){if(e instanceof Me)return new Me(e.l,e.a,e.b,e.opacity);if(e instanceof Ne)return Fe(e);e instanceof ue||(e=le(e));var t,n,r=_e(e.r),o=_e(e.g),i=_e(e.b),a=Oe((.2225045*r+.7168786*o+.0606169*i)/we);return r===o&&o===i?t=n=a:(t=Oe((.4360747*r+.3850649*o+.1430804*i)/Ce),n=Oe((.0139322*r+.0971045*o+.7141733*i)/Re)),new Me(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Me(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Oe(e){return e>Le?Math.pow(e,1/3):e/Ie+Ae}function Te(e){return e>Pe?e*e*e:Ie*(e-Ae)}function ke(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function _e(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function qe(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ne)return new Ne(e.h,e.c,e.l,e.opacity);if(e instanceof Me||(e=De(e)),0===e.a&&0===e.b)return new Ne(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ee;return new Ne(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ne(e,t,n,null==r?1:r)}function Ne(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Fe(e){if(isNaN(e.h))return new Me(e.l,0,0,e.opacity);var t=e.h*Se;return new Me(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}z(Me,(function(e,t,n,r){return 1===arguments.length?De(e):new Me(e,t,n,null==r?1:r)}),$(H,{brighter(e){return new Me(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Me(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 ue(ke(3.1338561*(t=Ce*Te(t))-1.6168667*(e=we*Te(e))-.4906146*(n=Re*Te(n))),ke(-.9787684*t+1.9161415*e+.033454*n),ke(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),z(Ne,qe,$(H,{brighter(e){return new Ne(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ne(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Fe(this).rgb()}}));const je=e=>{if(e){const t=se(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},ze=(e,t,n,r)=>{const o=null==t?void 0:t.closest(".qv-object .qv-inner-object"),i=o&&window.getComputedStyle(o).backgroundColor,a=null==t?void 0:t.closest(".qv-panel-sheet"),l=a&&window.getComputedStyle(a).backgroundColor,s=null==n?void 0:n(e),u=null==r?void 0:r(e),c=s||i||u,d=(e=>!!e&&0===se(e).opacity)(c);return{tableColorFromTheme:s||"inherit",color:c,isDark:je(d?l:c),isTransparent:d}};var $e=Object.prototype.hasOwnProperty,He=Object.prototype.toString,Be=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Ge=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===He.call(e)},Ve=function(e){if(!e||"[object Object]"!==He.call(e))return!1;var t,n=$e.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&$e.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||$e.call(e,t)},Ue=function(e,t){Be&&"__proto__"===t.name?Be(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Ye=function(e,t){if("__proto__"===t){if(!$e.call(e,t))return;if(We)return We(e,t).value}return e[t]};function Ke(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Xe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Je(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=Ye(l,n),l!==(o=Ye(t,n))&&(c&&o&&(Ve(o)||(i=Ge(o)))?(i?(i=!1,a=r&&Ge(r)?r:[]):a=r&&Ve(r)?r:{},Ue(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&Ue(l,{name:n,newValue:o}));return l}));var Ze=1/.7,Qe="\\s*([+-]?\\d+)\\s*",et="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",nt=/^#([0-9a-f]{3,8})$/,rt=new RegExp(`^rgb\\(${Qe},${Qe},${Qe}\\)$`),ot=new RegExp(`^rgb\\(${tt},${tt},${tt}\\)$`),it=new RegExp(`^rgba\\(${Qe},${Qe},${Qe},${et}\\)$`),at=new RegExp(`^rgba\\(${tt},${tt},${tt},${et}\\)$`),lt=new RegExp(`^hsl\\(${et},${tt},${tt}\\)$`),st=new RegExp(`^hsla\\(${et},${tt},${tt},${et}\\)$`),ut={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 ct(){return this.rgb().formatHex()}function dt(){return this.rgb().formatRgb()}function pt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=nt.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ft(t):3===n?new bt(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?mt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?mt(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=rt.exec(e))?new bt(t[1],t[2],t[3],1):(t=ot.exec(e))?new bt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=it.exec(e))?mt(t[1],t[2],t[3],t[4]):(t=at.exec(e))?mt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=lt.exec(e))?Ct(t[1],t[2]/100,t[3]/100,1):(t=st.exec(e))?Ct(t[1],t[2]/100,t[3]/100,t[4]):ut.hasOwnProperty(e)?ft(ut[e]):"transparent"===e?new bt(NaN,NaN,NaN,0):null}function ft(e){return new bt(e>>16&255,e>>8&255,255&e,1)}function mt(e,t,n,r){return r<=0&&(e=t=n=NaN),new bt(e,t,n,r)}function ht(e){return e instanceof Je||(e=pt(e)),e?new bt((e=e.rgb()).r,e.g,e.b,e.opacity):new bt}function gt(e,t,n,r){return 1===arguments.length?ht(e):new bt(e,t,n,null==r?1:r)}function bt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function vt(){return`#${Et(this.r)}${Et(this.g)}${Et(this.b)}`}function yt(){const e=xt(this.opacity);return`${1===e?"rgb(":"rgba("}${St(this.r)}, ${St(this.g)}, ${St(this.b)}${1===e?")":`, ${e})`}`}function xt(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function St(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Et(e){return((e=St(e))<16?"0":"")+e.toString(16)}function Ct(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Rt(e,t,n,r)}function wt(e){if(e instanceof Rt)return new Rt(e.h,e.s,e.l,e.opacity);if(e instanceof Je||(e=pt(e)),!e)return new Rt;if(e instanceof Rt)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Rt(a,l,s,e.opacity)}function Rt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function At(e){return(e=(e||0)%360)<0?e+360:e}function Pt(e){return Math.max(0,Math.min(1,e||0))}function It(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ke(Je,pt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ct,formatHex:ct,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return wt(this).formatHsl()},formatRgb:dt,toString:dt}),Ke(bt,gt,Xe(Je,{brighter(e){return e=null==e?Ze:Math.pow(Ze,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new bt(St(this.r),St(this.g),St(this.b),xt(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:vt,formatHex:vt,formatHex8:function(){return`#${Et(this.r)}${Et(this.g)}${Et(this.b)}${Et(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:yt,toString:yt})),Ke(Rt,(function(e,t,n,r){return 1===arguments.length?wt(e):new Rt(e,t,n,null==r?1:r)}),Xe(Je,{brighter(e){return e=null==e?Ze:Math.pow(Ze,e),new Rt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Rt(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 bt(It(e>=240?e-240:e+120,o,r),It(e,o,r),It(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Rt(At(this.h),Pt(this.s),Pt(this.l),xt(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=xt(this.opacity);return`${1===e?"hsl(":"hsla("}${At(this.h)}, ${100*Pt(this.s)}%, ${100*Pt(this.l)}%${1===e?")":`, ${e})`}`}}));const Lt=Math.PI/180,Dt=180/Math.PI,Mt=4/29,Ot=6/29,Tt=3*Ot*Ot;function kt(e){if(e instanceof _t)return new _t(e.l,e.a,e.b,e.opacity);if(e instanceof zt)return $t(e);e instanceof bt||(e=ht(e));var t,n,r=jt(e.r),o=jt(e.g),i=jt(e.b),a=qt((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=qt((.4360747*r+.3850649*o+.1430804*i)/.96422),n=qt((.0139322*r+.0971045*o+.7141733*i)/.82521)),new _t(116*a-16,500*(t-a),200*(a-n),e.opacity)}function _t(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function qt(e){return e>.008856451679035631?Math.pow(e,1/3):e/Tt+Mt}function Nt(e){return e>Ot?e*e*e:Tt*(e-Mt)}function Ft(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function jt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function zt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function $t(e){if(isNaN(e.h))return new _t(e.l,0,0,e.opacity);var t=e.h*Lt;return new _t(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ke(_t,(function(e,t,n,r){return 1===arguments.length?kt(e):new _t(e,t,n,null==r?1:r)}),Xe(Je,{brighter(e){return new _t(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new _t(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 bt(Ft(3.1338561*(t=.96422*Nt(t))-1.6168667*(e=1*Nt(e))-.4906146*(n=.82521*Nt(n))),Ft(-.9787684*t+1.9161415*e+.033454*n),Ft(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ke(zt,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof zt)return new zt(e.h,e.c,e.l,e.opacity);if(e instanceof _t||(e=kt(e)),0===e.a&&0===e.b)return new zt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Dt;return new zt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new zt(e,t,n,null==r?1:r)}),Xe(Je,{brighter(e){return new zt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new zt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return $t(this).rgb()}}));var Ht,Bt=e=>()=>e;function Wt(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Bt(isNaN(e)?t:e)}function Gt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function Vt(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 Ut(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Kt)):void 0===t&&(t=Yt);for(var n,r,o,i,a,l=new Zt(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new Zt(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Jt)}function Yt(e){return e.children}function Kt(e){return Array.isArray(e)?e[1]:null}function Xt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Jt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Zt(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?Wt: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):Bt(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=gt(e)).r,(t=gt(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Wt(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),Zt.prototype=Ut.prototype={constructor:Zt,count:function(){return this.eachAfter(Vt)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Ut(this).eachBefore(Xt)},[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)}},Ht=function(e){
8
8
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
9
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},_t({exports:{}});function Yt(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function Kt({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="",bold:r=!1,maxNbrLinesOfText:o=3}){const{estimateWidth:i,measureText:a,estimateLineCount:l}=E((()=>{const i=document.createElement("canvas").getContext("2d");i.font=`${n}${n?" ":""}${r?"600 ":""}${e} ${t}`;const a=Ht(i.measureText.bind(i)),l=e=>+a(e).width.toFixed(2),s=Ht((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,i=e;do{r+=1,i=Yt(i,t,l)}while(null!==i&&r<o);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[n,r,e,t,o]);return{estimateWidth:i,measureText:a,estimateLineCount:l}}function Zt(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Xt(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r}function Jt(e){return e>0?0:1}function Qt(e){return e.translator.get("Visualizations.Descriptions.Column")}function en(e){return{measures:{min:Jt,max:1e3,description:()=>Qt(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;Zt(r,n.getDimensions().length+n.getMeasures().length-1)},remove(e,t,n,r){const{qColumnOrder:o}=n.hcProperties;Xt(o,(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r)}},dimensions:{min:Jt,max:1e3,description:()=>Qt(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;return Zt(r,n.getDimensions().length-1),e},remove(e,t,n,r){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=n.hcProperties;Xt(o,r)}}}}var tn,nn={};tn=nn,(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{n.r(r),n.d(r,{default:()=>Me});var e=n(229),t=n.n(e);const o=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),A={},D=Array.isArray;function P(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function I(e){return void 0===e}function T(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=I(e[n||t])?i:e[t],e=e[n||t]}})),e}function L(e,t){var n=!0;if(P(e)&&P(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){L(e[r],t[r])||(n=!1)})),n);if(D(e)&&D(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!L(e[r],t[r]))return!1;return!0}return e===t}A.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);L(i,a)||T(t,o)||(I(a)?r.push({op:"add",path:l,value:i}):P(i)&&P(a)?r=r.concat(A.generate(a,i,l)):D(i)&&D(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&I(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(L(t,o))return r;if(!I(t[0])&&I(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(A.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){I(t[o])&&!T(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},A.apply=function(e,t){t.forEach((function(t){var n,r,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(D(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(D(a)&&D(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(P(a)&&P(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!T(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=M(e,t.from);D(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(D(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const q=A,k=function(e,n,r){if(!e)return Promise.resolve();var o=q.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var O="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function _(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(_(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(_(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(_(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(_(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=N(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=N(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(_(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var H="movingAverage";function j(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===H)return n[r]}function B(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===H)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var $={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,$)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=j(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=j(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(H))return!1;var i=j(t,e);return i&&!i.disabled}};return n}};var V="timeSeriesDecomposition";function U(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===V)return n[r]}function G(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===V)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(G(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=U(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=U(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(V))return!1;var i=U(t,e);return i&&!i.disabled}};return n}};var Z="difference";function X(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===Z)return n[r]}function J(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===Z)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(J(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(J(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(J(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Z))return!1;var i=X(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",De={initBase:function(e,t){(t||De.isValid(e))&&(o(e,ve,i(e,be)),o(e,xe,i(e,ye)),o(e,Ce,i(e,Se)),o(e,we,i(e,Ee)))},restoreBase:function(e){De.isValid(e)&&(o(e,be,i(e,ve)),o(e,ye,i(e,xe)),o(e,Se,i(e,Ce)),o(e,Ee,i(e,we)),i(e,Re)&&i(e,Ae)&&o(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Pe=De;function Ie(e){return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ie(e)}var Te={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:Te,apply:qe,applyModifiers:ke,cleanUpMeasure:Oe,destroy:function(e){e&&Le[e.id]&&Le[e.id].masterItemSubscriber&&(Le[e.id].masterItemSubscriber&&Le[e.id].masterItemSubscriber.unsubscribe(),delete Le[e.id])},hasActiveModifiers:Ne,getActiveModifier:_e,initBase:Pe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Te[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Te[e]&&Te[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=He(e);Ge({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Je({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Le={};function qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Le[n.id]=Le[n.id]||{isFirstTime:!0};var u=Le[n.id].isFirstTime;if(Le[n.id].isFirstTime=!1,r&&"object"===Ie(r))return ke({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Le[n.id].lastReloadTime;if(Le[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.model,o=e.lastReloadTime;return i(r,"app.layout.qLastReloadTime")!==o&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ge({modifiers:He(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);Be(r);var o=Qe(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Ie(e)&&!e.disabled){if(n++,"object"!==Ie(Te[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Te[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),ke({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Ie(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Qe(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return Oe(e)})),Xe({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function ke(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach((function(e){return Oe(e)})),Promise.resolve();var s=a?void 0:Qe(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ge({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Pe.isValid(n)||Pe.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Ie(e)&&!e.disabled){if(l++,"object"!==Ie(Te[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Te[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Te[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Te[r.type].updateModifier&&Te[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Te[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),$e(n)):Oe(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Xe({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=He(e);return Array.isArray(t)&&t.some((function(e){return"object"===Ie(e)&&!e.disabled&&!Te[e.type]}))}(e)?Pe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({modifiers:He(e),properties:n,layout:r})}))}function _e(e){var t=He(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Te[r.type]&&!r.disabled)return r}}function Fe(e){var t=_e(e);return!t||Te[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function He(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function je(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){ze(e).forEach((function(e){return function(e){var n=_e(e);n&&(void 0!==n.outputExpression&&je(n)!==e.qDef.qDef?delete e.qDef.base:!Pe.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function $e(e){var t=He(e);Array.isArray(t)&&t.forEach((function(t){"object"===Ie(t)&&(t.disabled||!Te[t.type]&&je(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,n=e.properties,r=e.layout;return!Ve(t)&&Ge({modifiers:He(t),properties:n,layout:r})}function Ge(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Ie(e)||e.disabled||!Te[e.type])&&(void 0===o[e.type]&&(o[e.type]=Te[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Ze(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Xe(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Ze)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Ze)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ze)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ze);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):k(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Je(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Ie(e)&&!e.disabled&&Te[e.type]&&Te[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=He(t);if(Ge({modifiers:r,properties:e})){var i=Ve(t);i&&n.push(i),o=o||Je({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Le[t.id].masterItemSubscriber=Le[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return qe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Le[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),tn.default=r.default,Object.defineProperty(tn,"__esModule",{value:!0})})();var rn=Y(nn);const on="12px",an="nebula-table-utils-head-menu-button";var ln;!function(e){e.ENTER="Enter",e.SPACE=" ",e.ESC="Escape",e.TAB="Tab",e.SHIFT="Shift",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.C="c"}(ln||(ln={}));const sn="nebula-table-utils-column-adjuster",un=`${sn}-border`;var cn,dn;!function(e){e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMinTable=120]="PixelsMinTable",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.AutoMin=80]="AutoMin"}(cn||(cn={})),function(e){e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage"}(dn||(dn={}));const pn={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.align",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},fn=e=>{var t,n,r,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!rn.hasActiveModifiers({measures:[e],properties:t.properties})||rn.ifEnableTotalsFunction(e)?[{value:"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals")?"None":"Expr"}}}},show:!(null!=e&&null!==(r=e.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"totals"))}},mn={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:dn.Auto,translation:"Common.Auto"},{value:dn.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:dn.Pixels,translation:"Object.Table.Column.Pixels"},{value:dn.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:dn.auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===dn.Pixels},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(cn.PixelsMax,e.qDef.columnWidth.pixels))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===dn.Percentage},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(cn.PercentageMax,e.qDef.columnWidth.percentage))}}},hn={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellColoring:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"}]},...pn,...mn},gn={libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},bn=e=>({libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:fn(e)}),vn=e=>e.flags.isEnabled("PS_18291_TABLE_EXPLORATION")?{type:"items",translation:"Common.Data",component:"data-assets-panel",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:gn},presentation:{type:"items",translation:"properties.presentation",items:hn}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:bn(e)},presentation:{type:"items",translation:"properties.presentation",items:hn}}}}}:{type:"items",component:"columns",translation:"Common.Data",sortIndexRef:"qHyperCubeDef.qColumnOrder",allowMove:!0,allowAdd:!0,addTranslation:"Common.Columns",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",grouped:!0,items:{...gn,...hn}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",grouped:!0,items:{...bn(e),...hn}}}},yn={type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,defaultValue:[],items:{headerSection:{translation:"properties.Header",component:"panel-section",items:{headerFontItem:{component:"items",ref:"components",key:"theme",items:{headerFontWrapper:{component:"inline-wrapper",items:{headerFontSize:{component:"integer",ref:"header.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.fontSize)&&void 0!==r?r:i.fontSize,10)},change(e){e.header.fontSize=e.header.fontSize?Math.max(5,Math.min(300,Math.floor(e.header.fontSize))):e.header.fontSize}},headerFontColor:{show:!0,ref:"header.fontColor",type:"object",component:"color-picker",defaultValue(e,t,n){var r,o;const i=n.theme.current();return{color:null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.color)&&void 0!==r?r:i.color}},dualOutput:!0}}}}}}},contentSection:{component:"panel-section",translation:"properties.Content",items:{contentFontItem:{component:"items",ref:"components",key:"theme",items:{contentFontWrapper:{component:"inline-wrapper",items:{contentFontSize:{component:"integer",ref:"content.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.fontSize)&&void 0!==r?r:i.fontSize,10)},change(e){e.content.fontSize=e.content.fontSize?Math.max(5,Math.min(300,Math.floor(e.content.fontSize))):e.content.fontSize}},contentFontColor:{ref:"content.fontColor",type:"object",component:"color-picker",defaultValue(e,t,n){var r,o;const i=n.theme.current();return{color:null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.color)&&void 0!==r?r:i.color}},dualOutput:!0}}}}}}},hoverEffectSection:{translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}}}}]},xn=e=>{var t,n;return{type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals"))}},Sn=e=>e.flags.isEnabled("PS_18291_TABLE_EXPLORATION")&&{chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}},En=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[yn,xn(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1}]},...Sn(e)}}),Cn={uses:"sorting"},wn={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},Rn=e=>({type:"items",component:"accordion",items:{data:vn(e),sorting:Cn,addOns:wn,settings:En(e)}});var An={exports:{}};self,An.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{default:()=>Me});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),A={},D=Array.isArray;function P(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function I(e){return void 0===e}function T(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=I(e[n||t])?i:e[t],e=e[n||t]}})),e}function L(e,t){var n=!0;if(P(e)&&P(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){L(e[r],t[r])||(n=!1)})),n);if(D(e)&&D(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!L(e[r],t[r]))return!1;return!0}return e===t}A.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);L(i,a)||T(t,o)||(I(a)?r.push({op:"add",path:l,value:i}):P(i)&&P(a)?r=r.concat(A.generate(a,i,l)):D(i)&&D(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&I(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(L(t,o))return r;if(!I(t[0])&&I(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(A.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){I(t[o])&&!T(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},A.apply=function(e,t){t.forEach((function(t){var n,r,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(D(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(D(a)&&D(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(P(a)&&P(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!T(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=M(e,t.from);D(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(D(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const q=A,k=function(e,n,r){if(!e)return Promise.resolve();var o=q.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var O="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function _(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(_(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(_(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(_(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(_(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=N(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=N(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(_(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var H="movingAverage";function j(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===H)return n[r]}function B(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===H)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var $={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,$)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=j(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=j(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(H))return!1;var i=j(t,e);return i&&!i.disabled}};return n}};var V="timeSeriesDecomposition";function U(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===V)return n[r]}function G(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===V)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(G(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=U(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=U(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(V))return!1;var i=U(t,e);return i&&!i.disabled}};return n}};var Z="difference";function X(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===Z)return n[r]}function J(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===Z)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(J(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(J(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(J(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Z))return!1;var i=X(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",De={initBase:function(e,t){(t||De.isValid(e))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,we,i(e,Ee)))},restoreBase:function(e){De.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,Ee,i(e,we)),i(e,Re)&&i(e,Ae)&&n(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Pe=De;function Ie(e){return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ie(e)}var Te={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:Te,apply:qe,applyModifiers:ke,cleanUpMeasure:Oe,destroy:function(e){e&&Le[e.id]&&Le[e.id].masterItemSubscriber&&(Le[e.id].masterItemSubscriber&&Le[e.id].masterItemSubscriber.unsubscribe(),delete Le[e.id])},hasActiveModifiers:Ne,getActiveModifier:_e,initBase:Pe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Te[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Te[e]&&Te[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=He(e);Ge({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Je({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Le={};function qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Le[n.id]=Le[n.id]||{isFirstTime:!0};var u=Le[n.id].isFirstTime;if(Le[n.id].isFirstTime=!1,r&&"object"===Ie(r))return ke({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Le[n.id].lastReloadTime;if(Le[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ge({modifiers:He(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);Be(r);var o=Qe(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Ie(e)&&!e.disabled){if(n++,"object"!==Ie(Te[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Te[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),ke({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Ie(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Qe(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return Oe(e)})),Xe({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function ke(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach((function(e){return Oe(e)})),Promise.resolve();var s=a?void 0:Qe(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ge({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Pe.isValid(n)||Pe.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Ie(e)&&!e.disabled){if(l++,"object"!==Ie(Te[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Te[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Te[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Te[r.type].updateModifier&&Te[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Te[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),$e(n)):Oe(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Xe({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=He(e);return Array.isArray(t)&&t.some((function(e){return"object"===Ie(e)&&!e.disabled&&!Te[e.type]}))}(e)?Pe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({modifiers:He(e),properties:n,layout:r})}))}function _e(e){var t=He(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Te[r.type]&&!r.disabled)return r}}function Fe(e){var t=_e(e);return!t||Te[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function He(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function je(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){ze(e).forEach((function(e){return function(e){var n=_e(e);n&&(void 0!==n.outputExpression&&je(n)!==e.qDef.qDef?delete e.qDef.base:!Pe.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function $e(e){var t=He(e);Array.isArray(t)&&t.forEach((function(t){"object"===Ie(t)&&(t.disabled||!Te[t.type]&&je(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,n=e.properties,r=e.layout;return!Ve(t)&&Ge({modifiers:He(t),properties:n,layout:r})}function Ge(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Ie(e)||e.disabled||!Te[e.type])&&(void 0===o[e.type]&&(o[e.type]=Te[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Ze(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Xe(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Ze)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Ze)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ze)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ze);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):k(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Je(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Ie(e)&&!e.disabled&&Te[e.type]&&Te[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=He(t);if(Ge({modifiers:r,properties:e})){var i=Ve(t);i&&n.push(i),o=o||Je({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Le[t.id].masterItemSubscriber=Le[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return qe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Le[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(r,{default:()=>Be});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(645),f=n.n(p);const m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function C(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function w(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var A=Math.pow(2,53)-1;function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const I=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},T=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},M=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},L=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},q=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},k=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},O=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},l=R(a.max,o.dimensions.length,A),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,A),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},_=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},n,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},H=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},j=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return D(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},B=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return P(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},$=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const V={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:r,hypercubePath:u}),b=i.getValue(r,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?L():w,A=s.defaultMeasure,D=void 0===A?q():A;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&H({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),k({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),O({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:D}),j({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),_({exportFormat:t,newHyperCubeDef:v}),T("qMaxStackedCells",b,v),T("qNoOfLeftDims",b,v),M("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),M("qMode",b,v,"S"),M("qReductionMode",b,v,"N"),M("qSortbyYValue",b,v),M("qIndentMode",b,v),M("qShowTotalsAbove",b,v),I(g,t,r),h.qProperty=g;var P=i.getValue(c||{},"support.modifiers");return $({measures:v.qMeasures,modifierTypes:P}),p&&W(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function G(e,t,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!U[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],l=t.length;if(G(a,t,r,o),Y(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},Z={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},X={colorModeOptions:{primary:function(){return!0},dimension:function(e){return Z.getNumDimensions(e)>0&&Z.getNumMeasures(e)<=1},multiColor:function(e){return Z.getNumMeasures(e)>1},measure:function(e){return Z.getNumDimensions(e)>0},expression:function(e){return Z.getNumMeasures(e)>=1}}},J={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return Z.getNumMeasures(e)>=1}}};var Q={scatterplot:J,"sn-scatter-plot":J,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return Z.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return Z.getNumDimensions(e)>1},multiColor:function(e){return Z.getNumMeasures(e)>1},measure:function(e){return Z.getNumDimensions(e)<=1},expression:function(e){return Z.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return Z.getNumDimensions(e)>=1},multiColor:function(e){return Z.getNumMeasures(e)>1},measure:function(e){return Z.getNumDimensions(e)>=1},expression:function(e){return Z.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return Z.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(r,o);var s=r[r.length-1];if(s){var u=n?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var o=n?"expression":t.type,i=e.color,a=i.mode,l=Z.getItemLabel(t);switch(ne(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||Z.wrapFieldName(t.name),key:Z.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:n||l,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||X).colorModeOptions||X.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},be={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=V.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=V.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):W(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,n.properties.measureAxes[t[0].axis])):E()(l,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function we(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var Ae="qHyperCubeDef.qMeasures",De="conditionalColoring",Pe="measures",Ie="qDef.conditionalColoring";const Te={quarantine:function(e){we({properties:e,arrayPath:Ae,quarantineName:De,arrayName:Pe,itemPath:Ie})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Ie,arrayName:Pe,quarantineName:De})}};var Me="qHyperCubeDef.qMeasures",Le="measures",qe="qHyperCubeDef.qDimensions",ke="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",He="conditionalShowHide";const je={quarantine:function(e){we({properties:e,arrayPath:Me,quarantineName:He,arrayName:Le,itemPath:ze}),we({properties:e,arrayPath:qe,quarantineName:He,arrayName:ke,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Me,quarantineName:He,arrayName:Le,itemPath:ze}),Re({properties:e,arrayPath:qe,quarantineName:He,arrayName:ke,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:Oe,quarantineName:He,arrayName:Ne,itemPath:ze}),we({properties:e,arrayPath:_e,quarantineName:He,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:He,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:_e,quarantineName:He,arrayName:Fe,itemPath:ze})}},Be={hypercube:V,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:Te,conditionalShow:je}})(),r.default})();var Dn=Y(An.exports),Pn=function(e,t,n){var r=e.length+t.length,o=((null==n?void 0:n.length)===r?n:Array.from(Array(r).keys())).map((function(n){return function(e,t,n){var r,o=t.length,i=(e<o?t[e]:n[e-o]).qDef.columnWidth;return"pixels"===(null==i?void 0:i.type)?null!==(r=i.pixels)&&void 0!==r?r:cn.PixelsDefault:-1}(n,e,t)}));return o},In=function(e){var t=e.propertyTree,n=e.hyperCubePath,r=Dn.hypercube.exportProperties({propertyTree:t,hyperCubePath:n}),o=r.properties.qHyperCubeDef,i=o.qColumnOrder,a=o.qDimensions,l=o.qMeasures,s=Pn(a,l,i);return zt(r,"properties.qHyperCubeDef",H(H({},r.properties.qHyperCubeDef),{columnWidths:s})),Dn.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),Dn.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),Dn.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),r},Tn=function(e,t,n,r){var o=t;r&&(o=t-r);var i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(n)&&n.length>0){var a=n[t];i.qDef.columnWidth=-1===a?{type:dn.FitToContent}:{type:dn.Pixels,pixels:a}}return i},Mn=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.extension,o=e.hypercubePath,i=e.defaultPropertyValues,a=e.viewDataMode,l=Dn.hypercube.importProperties({exportFormat:t,initialProperties:n,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:i,hypercubePath:o,extension:r});Dn.unquarantineProperty(l.qProperty,"straightTableColumnOrder");var s=l.qProperty.qHyperCubeDef,u=s.qDimensions,c=s.qMeasures,d=s.qColumnOrder,p=s.columnWidths,f=function(e,t,n,r){var o=e.length,i=o+t.length,a=(null==n?void 0:n.length)===i?n:Array.from(Array(i).keys());return{dimensions:a.filter((function(e){return e<o})).map((function(t){return Tn(e,t,r)})),measures:a.filter((function(e){return e>=o})).map((function(e){return Tn(t,e,r,o)}))}}(u,c,d,p),m=f.dimensions,h=f.measures;return Array.isArray(p)&&p.length>0&&(zt(l,"qProperty.qHyperCubeDef.qDimensions",m),zt(l,"qProperty.qHyperCubeDef.qMeasures",h)),a&&(zt(l,"qProperty.totals.show",!1),zt(l,"qProperty.usePagination",!0)),Dn.conditionalShow.unquarantine(l.qProperty),l};const Ln=e=>e.flags.isEnabled("PS_18291_TABLE_EXPLORATION")&&{exploration:{component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}}};function qn(e){return{definition:Rn(e),...Ln(e),data:en(e),support:{export:e.flags.isEnabled("PS_20907_TABLE_DOWNLOAD"),exportData:!0,snapshot:e.flags.isEnabled("PS_20907_TABLE_DOWNLOAD"),viewData:!1,exploration:!0,cssScaling:!0},importProperties(e,t,n,r){const o={defaultDimension:n.getDefaultDimensionProperties(),defaultMeasure:n.getDefaultMeasureProperties()};return Mn({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o})},exportProperties:(e,t)=>In({propertyTree:e,hyperCubePath:t})}}var kn=function(e){return B(void 0,void 0,void 0,(function(){var t,n,r,o;return $(this,(function(i){switch(i.label){case 0:(t=e.target).classList.contains("sn-table-cell")||(t=t.closest(".sn-table-cell")),n=null===(o=t.querySelector(".sn-table-cell-text"))||void 0===o?void 0:o.textContent,i.label=1;case 1:return i.trys.push([1,4,,5]),n?[4,navigator.clipboard.writeText(String(n))]:[3,3];case 2:i.sent(),i.label=3;case 3:return[3,5];case 4:return r=i.sent(),console.log(r),[3,5];case 5:return[2]}}))}))};var On=function(e,n){return t((function(){return function(e,t){return function(n,r){var o=r.isDim,i=r.colIdx,a=o?i:i-e.qDimensionInfo.length,l="/qHyperCubeDef/".concat(o?"qDimensions":"qMeasures","/").concat(a,"/qDef/columnWidth"),s=e[o?"qDimensionInfo":"qMeasureInfo"][a].columnWidth,u=s?{qPath:l,qOp:"Replace",qValue:JSON.stringify(H(H({},s),n))}:{qPath:l,qOp:"Add",qValue:JSON.stringify(n)};null==t||t.applyPatches([u],!0)}}(e,n)}),[e,n])},Nn=function(e){return!Number.isNaN(+e)},_n=function(e){return!(!e.qNum&&0!==e.qNum||!Nn(e.qNum))},Fn=1e4;function zn(e,t){return W([],t,!0).reverse().find((function(t){return t*e<=Fn}))||Math.floor(Fn/e)}function Hn(e,t){var n,r;if(null===(n=t.viewState)||void 0===n?void 0:n.skipTotals)return{atTop:!1,atBottom:!1};var o=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,null===(r=e.totals)||void 0===r?void 0:r.show,e.totals.position],i=o[0],a=o[3],l=o[4];if(o[2]&&(i&&o[1]||!a&&!i)){if(a||"top"===l)return{atTop:!0,atBottom:!1};if(!a&&"bottom"===l)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function jn(e,t,n,r){var o,i,a;return t?0===n&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(i=null===(o=e.qHyperCube.qGrandTotalRow[r])||void 0===o?void 0:o.qText)&&void 0!==i?i:""}var Bn=function(e,t){return"auto"!==t?t:_n(e)?"right":"left"};var $n=function(e){var t=e.qHyperCube,n=t.qColumnOrder,r=t.qDimensionInfo,o=t.qMeasureInfo,i=r.length+o.length,a=function(e,t,n){var r=t.length,o=[],i=0,a=0;return{visibleColumnsOrder:e.filter((function(e){var l=e<r,s=(l?t[e]:n[e-r]).qError,u=7005===(null==s?void 0:s.qErrorCode);return u?l?i++:a++:o[e]=l?e-i:e-r-a,!u})),visibleColumnIndexes:o}}((null==n?void 0:n.length)===i?n:Array.from(Array(i).keys()),r,o),l=a.visibleColumnsOrder,s=a.visibleColumnIndexes;return l.map((function(t,n){return function(e,t,n,r){var o,i=e.qHyperCube,a=i.qDimensionInfo,l=i.qMeasureInfo,s=i.qEffectiveInterColumnSortOrder,u=a.length,c=t<u,d=c?a[t]:l[t-u],p=t===s[0],f=0,m="",h=!1,g=-1;if(c){var b=d;f=b.qGroupPos,m=b.qGroupFieldDefs[f],h=b.qLocked,g=r,o=b.qDimensionType}var v=d.qFallbackTitle,y=d.textAlign,x=d.qAttrExprInfo,S=d.qSortIndicator,E=d.qReverseSort,C=d.qApprMaxGlyphCount,w=d.columnWidth,R=d.qLibraryId;return H({isDim:c,isLocked:h,fieldId:m,colIdx:t,qLibraryId:R,pageColIdx:n,qApprMaxGlyphCount:C,qReverseSort:E,columnWidth:w,selectionColIdx:g,isActivelySorted:p,id:"col-".concat(n),label:v,stylingIDs:x.map((function(e){return e.id})),sortDirection:S&&"N"!==S?S:"A",totalInfo:jn(e,c,n,r)},function(e,t,n){return e&&!e.auto?{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:n?"left":"right",bodyTextAlign:"auto"}}(y,o,c))}(e,t,n,s[t])}))};function Wn(e,t,n,r,o){var i,a;return B(this,void 0,void 0,(function(){var l,s,u,c,d,p,f,m,h,g,b,v,y,x,S;return $(this,(function(E){switch(E.label){case 0:return l=n.page,s=n.rowsPerPage,u=n.rowsPerPageOptions,c=t.qHyperCube.qSize.qcx,d=t.qHyperCube.qSize.qcy,p=Math.ceil(d/s),f=null!==(i=o.visibleTop)&&void 0!==i?i:l*s,m=null!==(a=o.visibleHeight)&&void 0!==a?a:Math.min(s,d-f),l>0&&f>=d?(r(H(H({},n),{page:0})),[2,null]):m*c>Fn?(r(H(H({},n),{rowsPerPage:zn(c,u),page:0})),[2,null]):(h=d>10,g=Hn(t,o),b=$n(t),(v=!!t.snapshotData)?(x=t.qHyperCube.qDataPages,[3,3]):[3,1]);case 1:return[4,e.getHyperCubeData("/qHyperCubeDef",[{qTop:f,qLeft:0,qHeight:m,qWidth:c}])];case 2:x=E.sent(),E.label=3;case 3:return y=x,o&&!v&&(o.qTop=f,o.qHeight=m,o.rowsPerPage=n.rowsPerPage,o.page=n.page),S=(null==y?void 0:y[0].qMatrix.map((function(e,t){var n={id:"row-".concat(t)};return b.forEach((function(r,o){n[r.id]=H(H({},e[o]),{align:Bn(e[o],r.bodyTextAlign),rowIdx:t+f,colIdx:r.colIdx,pageRowIdx:t,pageColIdx:o,selectionColIdx:r.selectionColIdx,isSelectable:r.isDim&&!r.isLocked,isLastRow:t===m-1})})),n})))||[],[2,{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:h,totalsPosition:g,columns:b,rows:S}]}}))}))}var Vn=function(e,t){var n;return!(!e.snapshotData&&!(null===(n=t.viewState)||void 0===n?void 0:n.visibleHeight))},Un=function(e,t){var n;return void 0!==(null===(n=t.viewState)||void 0===n?void 0:n.usePagination)?t.viewState.usePagination:!1!==e.usePagination||Vn(e,t)};function Gn(){return Gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gn.apply(this,arguments)}function Yn(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function Kn(e){if(!Yn(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Kn(e[n])})),t}function Zn(e,t,n={clone:!0}){const r=n.clone?Gn({},e):e;return Yn(e)&&Yn(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Yn(t[o])&&o in e&&Yn(e[o])?r[o]=Zn(e[o],t[o],n):n.clone?r[o]=Yn(t[o])?Kn(t[o]):t[o]:r[o]=t[o])})),r}var Xn={exports:{}};function Jn(){}function Qn(){}Qn.resetWarningCache=Jn;Xn.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Qn,resetWarningCache:Jn};return n.PropTypes=n,n}();var er=Y(Xn.exports);function tr(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function nr(e){if("string"!=typeof e)throw new Error(tr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function rr(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function or(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function ir(e){return e&&e.ownerDocument||document}function ar(e){return ir(e).defaultView||window}function lr(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var sr="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;let ur=0;const cr=y["useId".toString()];function dr(e){if(void 0!==cr){const t=cr();return null!=e?e:t}return function(e){const[t,n]=y.useState(e),r=e||t;return y.useEffect((()=>{null==t&&(ur+=1,n(`mui-${ur}`))}),[t]),r}(e)}function pr({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=y.useRef(void 0!==e),[i,a]=y.useState(t);return[o?e:i,y.useCallback((e=>{o||a(e)}),[])]}function fr(e){const t=y.useRef(e);return sr((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function mr(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{lr(e,t)}))}),e)}let hr,gr=!0,br=!1;const vr={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 yr(e){e.metaKey||e.altKey||e.ctrlKey||(gr=!0)}function xr(){gr=!1}function Sr(){"hidden"===this.visibilityState&&br&&(gr=!0)}function Er(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return gr||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!vr[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Cr(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",yr,!0),t.addEventListener("mousedown",xr,!0),t.addEventListener("pointerdown",xr,!0),t.addEventListener("touchstart",xr,!0),t.addEventListener("visibilitychange",Sr,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Er(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(br=!0,window.clearTimeout(hr),hr=window.setTimeout((()=>{br=!1}),100),t.current=!1,!0)},ref:e}}function wr(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Rr(e,t){const n=Gn({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Gn({},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]=Gn({},i),Object.keys(o).forEach((e=>{n[r][e]=Rr(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Ar(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const Dr=e=>e;var Pr=(()=>{let e=Dr;return{configure(t){e=t},generate:t=>e(t),reset(){e=Dr}}})();const Ir={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 Tr(e,t,n="Mui"){const r=Ir[t];return r?`${n}-${r}`:`${Pr.generate(e)}-${t}`}function Mr(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Tr(e,t,n)})),r}var Lr="$$material";function qr(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var kr={exports:{}},Or={},Nr=60103,_r=60106,Fr=60107,zr=60108,Hr=60114,jr=60109,Br=60110,$r=60112,Wr=60113,Vr=60120,Ur=60115,Gr=60116,Yr=60121,Kr=60122,Zr=60117,Xr=60129,Jr=60131;if("function"==typeof Symbol&&Symbol.for){var Qr=Symbol.for;Nr=Qr("react.element"),_r=Qr("react.portal"),Fr=Qr("react.fragment"),zr=Qr("react.strict_mode"),Hr=Qr("react.profiler"),jr=Qr("react.provider"),Br=Qr("react.context"),$r=Qr("react.forward_ref"),Wr=Qr("react.suspense"),Vr=Qr("react.suspense_list"),Ur=Qr("react.memo"),Gr=Qr("react.lazy"),Yr=Qr("react.block"),Kr=Qr("react.server.block"),Zr=Qr("react.fundamental"),Xr=Qr("react.debug_trace_mode"),Jr=Qr("react.legacy_hidden")}function eo(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Nr:switch(e=e.type){case Fr:case Hr:case zr:case Wr:case Vr:return e;default:switch(e=e&&e.$$typeof){case Br:case $r:case Gr:case Ur:case jr:return e;default:return t}}case _r:return t}}}var to=jr,no=Nr,ro=$r,oo=Fr,io=Gr,ao=Ur,lo=_r,so=Hr,uo=zr,co=Wr;Or.ContextConsumer=Br,Or.ContextProvider=to,Or.Element=no,Or.ForwardRef=ro,Or.Fragment=oo,Or.Lazy=io,Or.Memo=ao,Or.Portal=lo,Or.Profiler=so,Or.StrictMode=uo,Or.Suspense=co,Or.isAsyncMode=function(){return!1},Or.isConcurrentMode=function(){return!1},Or.isContextConsumer=function(e){return eo(e)===Br},Or.isContextProvider=function(e){return eo(e)===jr},Or.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Nr},Or.isForwardRef=function(e){return eo(e)===$r},Or.isFragment=function(e){return eo(e)===Fr},Or.isLazy=function(e){return eo(e)===Gr},Or.isMemo=function(e){return eo(e)===Ur},Or.isPortal=function(e){return eo(e)===_r},Or.isProfiler=function(e){return eo(e)===Hr},Or.isStrictMode=function(e){return eo(e)===zr},Or.isSuspense=function(e){return eo(e)===Wr},Or.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Fr||e===Hr||e===Xr||e===zr||e===Wr||e===Vr||e===Jr||"object"==typeof e&&null!==e&&(e.$$typeof===Gr||e.$$typeof===Ur||e.$$typeof===jr||e.$$typeof===Br||e.$$typeof===$r||e.$$typeof===Zr||e.$$typeof===Yr||e[0]===Kr)},Or.typeOf=eo,kr.exports=Or;var po=kr.exports,fo=Y((function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var u=i[s];if(!l(u))return!1;var c=e[u],d=t[u];if(!1===(o=n?n.call(r,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0}));function mo(e){function t(e,r,s,u,p){for(var f,m,h,g,x,E=0,C=0,w=0,R=0,A=0,L=0,k=h=f=0,N=0,_=0,F=0,z=0,H=s.length,j=H-1,B="",$="",W="",V="";N<H;){if(m=s.charCodeAt(N),N===j&&0!==C+R+w+E&&(0!==C&&(m=47===C?10:47),R=w=E=0,H++,j++),0===C+R+w+E){if(N===j&&(0<_&&(B=B.replace(d,"")),0<B.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:B+=s.charAt(N)}m=59}switch(m){case 123:for(f=(B=B.trim()).charCodeAt(0),h=1,z=++N;N<H;){switch(m=s.charCodeAt(N)){case 123:h++;break;case 125:h--;break;case 47:switch(m=s.charCodeAt(N+1)){case 42:case 47:e:{for(k=N+1;k<j;++k)switch(s.charCodeAt(k)){case 47:if(42===m&&42===s.charCodeAt(k-1)&&N+2!==k){N=k+1;break e}break;case 10:if(47===m){N=k+1;break e}}N=k}}break;case 91:m++;case 40:m++;case 34:case 39:for(;N++<j&&s.charCodeAt(N)!==m;);}if(0===h)break;N++}if(h=s.substring(z,N),0===f&&(f=(B=B.replace(c,"").trim()).charCodeAt(0)),64===f){switch(0<_&&(B=B.replace(d,"")),m=B.charCodeAt(1)){case 100:case 109:case 115:case 45:_=r;break;default:_=M}if(z=(h=t(r,_,h,m,p+1)).length,0<q&&(x=l(3,h,_=n(M,B,F),r,P,D,z,m,p,u),B=_.join(""),void 0!==x&&0===(z=(h=x.trim()).length)&&(m=0,h="")),0<z)switch(m){case 115:B=B.replace(S,a);case 100:case 109:case 45:h=B+"{"+h+"}";break;case 107:h=(B=B.replace(b,"$1 $2"))+"{"+h+"}",h=1===T||2===T&&i("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=B+h,112===u&&($+=h,h="")}else h=""}else h=t(r,n(r,B,F),h,u,p+1);W+=h,h=F=_=k=f=0,B="",m=s.charCodeAt(++N);break;case 125:case 59:if(1<(z=(B=(0<_?B.replace(d,""):B).trim()).length))switch(0===k&&(f=B.charCodeAt(0),45===f||96<f&&123>f)&&(z=(B=B.replace(" ",":")).length),0<q&&void 0!==(x=l(1,B,r,e,P,D,$.length,u,p,u))&&0===(z=(B=x.trim()).length)&&(B="\0\0"),f=B.charCodeAt(0),m=B.charCodeAt(1),f){case 0:break;case 64:if(105===m||99===m){V+=B+s.charAt(N);break}default:58!==B.charCodeAt(z-1)&&($+=o(B,f,m,B.charCodeAt(2)))}F=_=k=f=0,B="",m=s.charCodeAt(++N)}}switch(m){case 13:case 10:47===C?C=0:0===1+f&&107!==u&&0<B.length&&(_=1,B+="\0"),0<q*O&&l(0,B,r,e,P,D,$.length,u,p,u),D=1,P++;break;case 59:case 125:if(0===C+R+w+E){D++;break}default:switch(D++,g=s.charAt(N),m){case 9:case 32:if(0===R+E+C)switch(A){case 44:case 58:case 9:case 32:g="";break;default:32!==m&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===R+C+E&&(_=F=1,g="\f"+g);break;case 108:if(0===R+C+E+I&&0<k)switch(N-k){case 2:112===A&&58===s.charCodeAt(N-3)&&(I=A);case 8:111===L&&(I=L)}break;case 58:0===R+C+E&&(k=N);break;case 44:0===C+w+R+E&&(_=1,g+="\r");break;case 34:case 39:0===C&&(R=R===m?0:0===R?m:R);break;case 91:0===R+C+w&&E++;break;case 93:0===R+C+w&&E--;break;case 41:0===R+C+E&&w--;break;case 40:if(0===R+C+E){if(0===f)if(2*A+3*L==533);else f=1;w++}break;case 64:0===C+w+R+E+k+h&&(h=1);break;case 42:case 47:if(!(0<R+E+w))switch(C){case 0:switch(2*m+3*s.charCodeAt(N+1)){case 235:C=47;break;case 220:z=N,C=42}break;case 42:47===m&&42===A&&z+2!==N&&(33===s.charCodeAt(z+2)&&($+=s.substring(z,N+1)),g="",C=0)}}0===C&&(B+=g)}L=A,A=m,N++}if(0<(z=$.length)){if(_=r,0<q&&(void 0!==(x=l(2,$,_,e,P,D,z,u,p,u))&&0===($=x).length))return V+$+W;if($=_.join(",")+"{"+$+"}",0!=T*I){switch(2!==T||i($,2)||(I=0),I){case 111:$=$.replace(y,":-moz-$1")+$;break;case 112:$=$.replace(v,"::-webkit-input-$1")+$.replace(v,"::-moz-$1")+$.replace(v,":-ms-input-$1")+$}I=0}}return V+$+W}function n(e,t,n){var o=t.trim().split(h);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var l=0;for(e=0===a?"":e[0]+" ";l<i;++l)t[l]=r(e,t[l],n).trim();break;default:var s=l=0;for(t=[];l<i;++l)for(var u=0;u<a;++u)t[s++]=r(e[u]+" ",o[l],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",l=2*t+3*n+4*r;if(944===l){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===T||2===T&&i(s,1)?"-webkit-"+s+s:s}if(0===T||2===T&&!i(a,1))return a;switch(l){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(A,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(x,"tb");break;case 232:s=a.replace(x,"tb-rl");break;case 220:s=a.replace(x,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,l=(s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<l?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===R.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),k(2!==t?r:r.replace(w,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(E," or ($1)").substring(4):"("+t+")"}function l(e,t,n,r,o,i,a,l,s,c){for(var d,p=0,f=t;p<q;++p)switch(d=L[p].call(u,e,f,n,r,o,i,a,l,s,c)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function s(e){return void 0!==(e=e.prefix)&&(k=null,e?"function"!=typeof e?T=1:(T=2,k=e):T=0),s}function u(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<q){var o=l(-1,n,r,r,P,D,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(M,r,n,0,0);return 0<q&&(void 0!==(o=l(-2,i,r,r,P,D,i.length,0,0,0))&&(i=o)),"",I=0,D=P=1,i}var c=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,m=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,C=/-self|flex-/g,w=/[^]*?(:[rp][el]a[\w-]+)[^]*/,R=/stretch|:\s*\w+\-(?:conte|avail)/,A=/([^-])(image-set\()/,D=1,P=1,I=0,T=1,M=[],L=[],q=0,k=null,O=0;return u.use=function e(t){switch(t){case void 0:case null:q=L.length=0;break;default:if("function"==typeof t)L[q++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else O=0|!!t}return e},u.set=s,void 0!==e&&s(e),u}var ho={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function go(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var bo=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,vo=go((function(e){return bo.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),yo={exports:{}},xo={},So="function"==typeof Symbol&&Symbol.for,Eo=So?Symbol.for("react.element"):60103,Co=So?Symbol.for("react.portal"):60106,wo=So?Symbol.for("react.fragment"):60107,Ro=So?Symbol.for("react.strict_mode"):60108,Ao=So?Symbol.for("react.profiler"):60114,Do=So?Symbol.for("react.provider"):60109,Po=So?Symbol.for("react.context"):60110,Io=So?Symbol.for("react.async_mode"):60111,To=So?Symbol.for("react.concurrent_mode"):60111,Mo=So?Symbol.for("react.forward_ref"):60112,Lo=So?Symbol.for("react.suspense"):60113,qo=So?Symbol.for("react.suspense_list"):60120,ko=So?Symbol.for("react.memo"):60115,Oo=So?Symbol.for("react.lazy"):60116,No=So?Symbol.for("react.block"):60121,_o=So?Symbol.for("react.fundamental"):60117,Fo=So?Symbol.for("react.responder"):60118,zo=So?Symbol.for("react.scope"):60119;function Ho(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Eo:switch(e=e.type){case Io:case To:case wo:case Ao:case Ro:case Lo:return e;default:switch(e=e&&e.$$typeof){case Po:case Mo:case Oo:case ko:case Do:return e;default:return t}}case Co:return t}}}function jo(e){return Ho(e)===To}xo.AsyncMode=Io,xo.ConcurrentMode=To,xo.ContextConsumer=Po,xo.ContextProvider=Do,xo.Element=Eo,xo.ForwardRef=Mo,xo.Fragment=wo,xo.Lazy=Oo,xo.Memo=ko,xo.Portal=Co,xo.Profiler=Ao,xo.StrictMode=Ro,xo.Suspense=Lo,xo.isAsyncMode=function(e){return jo(e)||Ho(e)===Io},xo.isConcurrentMode=jo,xo.isContextConsumer=function(e){return Ho(e)===Po},xo.isContextProvider=function(e){return Ho(e)===Do},xo.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Eo},xo.isForwardRef=function(e){return Ho(e)===Mo},xo.isFragment=function(e){return Ho(e)===wo},xo.isLazy=function(e){return Ho(e)===Oo},xo.isMemo=function(e){return Ho(e)===ko},xo.isPortal=function(e){return Ho(e)===Co},xo.isProfiler=function(e){return Ho(e)===Ao},xo.isStrictMode=function(e){return Ho(e)===Ro},xo.isSuspense=function(e){return Ho(e)===Lo},xo.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===wo||e===To||e===Ao||e===Ro||e===Lo||e===qo||"object"==typeof e&&null!==e&&(e.$$typeof===Oo||e.$$typeof===ko||e.$$typeof===Do||e.$$typeof===Po||e.$$typeof===Mo||e.$$typeof===_o||e.$$typeof===Fo||e.$$typeof===zo||e.$$typeof===No)},xo.typeOf=Ho,yo.exports=xo;var Bo=yo.exports,$o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Wo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Vo={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Uo={};function Go(e){return Bo.isMemo(e)?Vo:Uo[e.$$typeof]||$o}Uo[Bo.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Uo[Bo.Memo]=Vo;var Yo=Object.defineProperty,Ko=Object.getOwnPropertyNames,Zo=Object.getOwnPropertySymbols,Xo=Object.getOwnPropertyDescriptor,Jo=Object.getPrototypeOf,Qo=Object.prototype;var ei=function e(t,n,r){if("string"!=typeof n){if(Qo){var o=Jo(n);o&&o!==Qo&&e(t,o,r)}var i=Ko(n);Zo&&(i=i.concat(Zo(n)));for(var a=Go(t),l=Go(n),s=0;s<i.length;++s){var u=i[s];if(!(Wo[u]||r&&r[u]||l&&l[u]||a&&a[u])){var c=Xo(n,u);try{Yo(t,u,c)}catch(e){}}}}return t},ti=Y(ei);function ni(){return(ni=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ri=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},oi=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!po.typeOf(e)},ii=Object.freeze([]),ai=Object.freeze({});function li(e){return"function"==typeof e}function si(e){return e.displayName||e.name||"Component"}function ui(e){return e&&"string"==typeof e.styledComponentId}var ci="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",di="undefined"!=typeof window&&"HTMLElement"in window,pi=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY))),fi={};function mi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var hi=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&mi(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=0,s=t.length;l<s;l++)this.tag.insertRule(a,t[l])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),gi=new Map,bi=new Map,vi=1,yi=function(e){if(gi.has(e))return gi.get(e);for(;bi.has(vi);)vi++;var t=vi++;return gi.set(e,t),bi.set(t,e),t},xi=function(e){return bi.get(e)},Si=function(e,t){t>=vi&&(vi=t+1),gi.set(e,t),bi.set(t,e)},Ei="style["+ci+'][data-styled-version="5.3.11"]',Ci=new RegExp("^"+ci+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),wi=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},Ri=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var l=a.match(Ci);if(l){var s=0|parseInt(l[1],10),u=l[2];0!==s&&(Si(u,s),wi(e,u,l[3]),e.getTag().insertRules(s,r)),r.length=0}else r.push(a)}}},Ai=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(ci))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(ci,"active"),r.setAttribute("data-styled-version","5.3.11");var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Di=function(){function e(e){var t=this.element=Ai(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}mi(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Pi=function(){function e(e){var t=this.element=Ai(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Ii=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Ti=di,Mi={isServer:!di,useCSSOMInjection:!pi},Li=function(){function e(e,t,n){void 0===e&&(e=ai),void 0===t&&(t={}),this.options=ni({},Mi,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&di&&Ti&&(Ti=!1,function(e){for(var t=document.querySelectorAll(Ei),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(ci)&&(Ri(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return yi(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(ni({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new Ii(o):r?new Di(o):new Pi(o),new hi(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(yi(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(yi(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(yi(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=xi(o);if(void 0!==i){var a=e.names.get(i),l=t.getGroup(o);if(a&&l&&a.size){var s=ci+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),r+=""+l+s+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),qi=/(a)(d)/gi,ki=function(e){return String.fromCharCode(e+(e>25?39:97))};function Oi(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=ki(t%52)+n;return(ki(t%52)+n).replace(qi,"$1-$2")}var Ni=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},_i=function(e){return Ni(5381,e)};function Fi(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(li(n)&&!ui(n))return!1}return!0}var zi=_i("5.3.11"),Hi=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Fi(e),this.componentId=t,this.baseHash=Ni(zi,t),this.baseStyle=n,Li.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=oa(this.rules,e,t,n).join(""),a=Oi(Ni(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var l=n(i,"."+a,void 0,r);t.insertRules(r,a,l)}o.push(a),this.staticRulesId=a}else{for(var s=this.rules.length,u=Ni(this.baseHash,n.hash),c="",d=0;d<s;d++){var p=this.rules[d];if("string"==typeof p)c+=p;else if(p){var f=oa(p,e,t,n),m=Array.isArray(f)?f.join(""):f;u=Ni(u,m+d),c+=m}}if(c){var h=Oi(u>>>0);if(!t.hasNameForId(r,h)){var g=n(c,"."+h,void 0,r);t.insertRules(r,h,g)}o.push(h)}}return o.join(" ")},e}(),ji=/^\s*\/\/.*$/gm,Bi=[":","[",".","#"];function $i(e){var t,n,r,o,i=void 0===e?ai:e,a=i.options,l=void 0===a?ai:a,s=i.plugins,u=void 0===s?ii:s,c=new mo(l),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,l,s,u,c,d){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),f=function(e,r,i){return 0===r&&-1!==Bi.indexOf(i[n.length])||i.match(o)?e:"."+t};function m(e,i,a,l){void 0===l&&(l="&");var s=e.replace(ji,""),u=i&&a?a+" "+i+" { "+s+" }":s;return t=l,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),c(a||!i?"":i,u)}return c.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,f))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||mi(15),Ni(e,t.name)}),5381).toString():"",m}var Wi=x.createContext();Wi.Consumer;var Vi=x.createContext(),Ui=(Vi.Consumer,new Li),Gi=$i();function Yi(){return w(Wi)||Ui}function Ki(){return w(Vi)||Gi}function Zi(e){var t=S(e.stylisPlugins),n=t[0],r=t[1],o=Yi(),i=E((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=E((function(){return $i({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return C((function(){fo(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),x.createElement(Wi.Provider,{value:i},x.createElement(Vi.Provider,{value:a},e.children))}var Xi=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Gi);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return mi(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Gi),this.name+e.hash},e}(),Ji=/([A-Z])/,Qi=/([A-Z])/g,ea=/^ms-/,ta=function(e){return"-"+e.toLowerCase()};function na(e){return Ji.test(e)?e.replace(Qi,ta).replace(ea,"-ms-"):e}var ra=function(e){return null==e||!1===e||""===e};function oa(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,l=e.length;a<l;a+=1)""!==(o=oa(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return ra(e)?"":ui(e)?"."+e.styledComponentId:li(e)?"function"!=typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!t?e:oa(e(t),t,n,r):e instanceof Xi?n?(e.inject(n,r),e.getName(r)):e:oi(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!ra(t[a])&&(Array.isArray(t[a])&&t[a].isCss||li(t[a])?i.push(na(a)+":",t[a],";"):oi(t[a])?i.push.apply(i,e(t[a],a)):i.push(na(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in ho||r.startsWith("--")?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var s}var ia=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function aa(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return li(e)||oi(e)?ia(oa(ri(ii,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ia(oa(ri(e,n)))}var la=function(e,t,n){return void 0===n&&(n=ai),e.theme!==n.theme&&e.theme||t||n.theme},sa=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ua=/(^-|-$)/g;function ca(e){return e.replace(sa,"-").replace(ua,"")}var da=function(e){return Oi(_i(e)>>>0)};function pa(e){return"string"==typeof e&&!0}var fa=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ma=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ha(e,t,n){var r=e[n];fa(t)&&fa(r)?ga(r,t):e[n]=t}function ga(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(fa(a))for(var l in a)ma(l)&&ha(e,a[l],l)}return e}var ba=x.createContext();ba.Consumer;var va={};function ya(e,t,n){var r=ui(e),o=!pa(e),i=t.attrs,a=void 0===i?ii:i,l=t.componentId,s=void 0===l?function(e,t){var n="string"!=typeof e?"sc":ca(e);va[n]=(va[n]||0)+1;var r=n+"-"+da("5.3.11"+n+va[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,u=t.displayName,c=void 0===u?function(e){return pa(e)?"styled."+e:"Styled("+si(e)+")"}(e):u,d=t.displayName&&t.componentId?ca(t.displayName)+"-"+t.componentId:t.componentId||s,p=r&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,f=t.shouldForwardProp;r&&e.shouldForwardProp&&(f=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var m,h=new Hi(n,d,r?e.componentStyle:void 0),g=h.isStatic&&0===a.length,b=function(e,t){return function(e,t,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,l=e.foldedComponentIds,s=e.shouldForwardProp,u=e.styledComponentId,c=e.target,d=function(e,t,n){void 0===e&&(e=ai);var r=ni({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in li(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(la(t,w(ba),a)||ai,t,o),p=d[0],f=d[1],m=function(e,t,n,r){var o=Yi(),i=Ki();return t?e.generateAndInjectStyles(ai,o,i):e.generateAndInjectStyles(n,o,i)}(i,r,p),h=n,g=f.$as||t.$as||f.as||t.as||c,b=pa(g),v=f!==t?ni({},t,{},f):t,y={};for(var x in v)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?y.as=v[x]:(s?s(x,vo,g):!b||vo(x))&&(y[x]=v[x]));return t.style&&f.style!==t.style&&(y.style=ni({},t.style,{},f.style)),y.className=Array.prototype.concat(l,u,m!==u?m:null,t.className,f.className).filter(Boolean).join(" "),y.ref=h,R(g,y)}(m,e,t,g)};return b.displayName=c,(m=x.forwardRef(b)).attrs=p,m.componentStyle=h,m.displayName=c,m.shouldForwardProp=f,m.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):ii,m.styledComponentId=d,m.target=r?e.target:e,m.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),i=r&&r+"-"+(pa(e)?e:ca(si(e)));return ya(e,ni({},o,{attrs:p,componentId:i}),n)},Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?ga({},e.defaultProps,t):t}}),Object.defineProperty(m,"toString",{value:function(){return"."+m.styledComponentId}}),o&&ti(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),m}var xa=function(e){return function e(t,n,r){if(void 0===r&&(r=ai),!po.isValidElementType(n))return mi(1,String(n));var o=function(){return t(n,r,aa.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,ni({},r,{},o))},o.attrs=function(o){return e(t,n,ni({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(ya,e)};["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","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){xa[e]=xa(e)}));var Sa=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Fi(e),Li.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(oa(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&Li.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Ea(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=aa.apply(void 0,[e].concat(n)).join(""),i=da(o);return new Xi(i,o)}var Ca=xa;const wa=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=aa.apply(void 0,[e].concat(n)),i="sc-global-"+da(JSON.stringify(o)),a=new Sa(o,i);function l(e){var t=Yi(),n=Ki(),r=w(ba),o=A(t.allocateGSInstance(i)).current;return t.server&&s(o,e,t,r,n),null}function s(e,t,n,r,o){if(a.isStatic)a.renderStyles(e,fi,n,o);else{var i=ni({},t,{theme:la(t,r,l.defaultProps)});a.renderStyles(e,i,n,o)}}return x.memo(l)}((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var Ra=wa;
10
- /** @license MUI v5.10.0
9
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},Ht({exports:{}});const Qt=3;function en(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function tn({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=Qt}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=S((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=Gt(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=Gt((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=en(o,t,l)}while(null!==o&&r<i);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}function nn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function rn(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var on,an=j;function ln(e,t){const[n,r]=E(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}on=an.createRoot,an.hydrateRoot;var sn={NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const un=({translator:e})=>(S((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(sn).forEach((t=>{e.add(sn[t])}))}}(e)),[e]),e);var cn=Object.prototype.hasOwnProperty,dn=Object.prototype.toString,pn=Object.defineProperty,fn=Object.getOwnPropertyDescriptor,mn=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===dn.call(e)},hn=function(e){if(!e||"[object Object]"!==dn.call(e))return!1;var t,n=cn.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&cn.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||cn.call(e,t)},gn=function(e,t){pn&&"__proto__"===t.name?pn(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},bn=function(e,t){if("__proto__"===t){if(!cn.call(e,t))return;if(fn)return fn(e,t).value}return e[t]};function vn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function yn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function xn(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=bn(l,n),l!==(o=bn(t,n))&&(c&&o&&(hn(o)||(i=mn(o)))?(i?(i=!1,a=r&&mn(r)?r:[]):a=r&&hn(r)?r:{},gn(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&gn(l,{name:n,newValue:o}));return l}));var Sn=1/.7,En="\\s*([+-]?\\d+)\\s*",Cn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Rn=/^#([0-9a-f]{3,8})$/,An=new RegExp(`^rgb\\(${En},${En},${En}\\)$`),Pn=new RegExp(`^rgb\\(${wn},${wn},${wn}\\)$`),In=new RegExp(`^rgba\\(${En},${En},${En},${Cn}\\)$`),Ln=new RegExp(`^rgba\\(${wn},${wn},${wn},${Cn}\\)$`),Dn=new RegExp(`^hsl\\(${Cn},${wn},${wn}\\)$`),Mn=new RegExp(`^hsla\\(${Cn},${wn},${wn},${Cn}\\)$`),On={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 Tn(){return this.rgb().formatHex()}function kn(){return this.rgb().formatRgb()}function _n(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Rn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?qn(t):3===n?new zn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Nn(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Nn(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=An.exec(e))?new zn(t[1],t[2],t[3],1):(t=Pn.exec(e))?new zn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=In.exec(e))?Nn(t[1],t[2],t[3],t[4]):(t=Ln.exec(e))?Nn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Dn.exec(e))?Vn(t[1],t[2]/100,t[3]/100,1):(t=Mn.exec(e))?Vn(t[1],t[2]/100,t[3]/100,t[4]):On.hasOwnProperty(e)?qn(On[e]):"transparent"===e?new zn(NaN,NaN,NaN,0):null}function qn(e){return new zn(e>>16&255,e>>8&255,255&e,1)}function Nn(e,t,n,r){return r<=0&&(e=t=n=NaN),new zn(e,t,n,r)}function Fn(e){return e instanceof xn||(e=_n(e)),e?new zn((e=e.rgb()).r,e.g,e.b,e.opacity):new zn}function jn(e,t,n,r){return 1===arguments.length?Fn(e):new zn(e,t,n,null==r?1:r)}function zn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function $n(){return`#${Gn(this.r)}${Gn(this.g)}${Gn(this.b)}`}function Hn(){const e=Bn(this.opacity);return`${1===e?"rgb(":"rgba("}${Wn(this.r)}, ${Wn(this.g)}, ${Wn(this.b)}${1===e?")":`, ${e})`}`}function Bn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Wn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Gn(e){return((e=Wn(e))<16?"0":"")+e.toString(16)}function Vn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Yn(e,t,n,r)}function Un(e){if(e instanceof Yn)return new Yn(e.h,e.s,e.l,e.opacity);if(e instanceof xn||(e=_n(e)),!e)return new Yn;if(e instanceof Yn)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Yn(a,l,s,e.opacity)}function Yn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Kn(e){return(e=(e||0)%360)<0?e+360:e}function Xn(e){return Math.max(0,Math.min(1,e||0))}function Jn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}vn(xn,_n,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Tn,formatHex:Tn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Un(this).formatHsl()},formatRgb:kn,toString:kn}),vn(zn,jn,yn(xn,{brighter(e){return e=null==e?Sn:Math.pow(Sn,e),new zn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new zn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new zn(Wn(this.r),Wn(this.g),Wn(this.b),Bn(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:$n,formatHex:$n,formatHex8:function(){return`#${Gn(this.r)}${Gn(this.g)}${Gn(this.b)}${Gn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Hn,toString:Hn})),vn(Yn,(function(e,t,n,r){return 1===arguments.length?Un(e):new Yn(e,t,n,null==r?1:r)}),yn(xn,{brighter(e){return e=null==e?Sn:Math.pow(Sn,e),new Yn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Yn(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 zn(Jn(e>=240?e-240:e+120,o,r),Jn(e,o,r),Jn(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Yn(Kn(this.h),Xn(this.s),Xn(this.l),Bn(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=Bn(this.opacity);return`${1===e?"hsl(":"hsla("}${Kn(this.h)}, ${100*Xn(this.s)}%, ${100*Xn(this.l)}%${1===e?")":`, ${e})`}`}}));const Zn=Math.PI/180,Qn=180/Math.PI,er=4/29,tr=6/29,nr=3*tr*tr;function rr(e){if(e instanceof or)return new or(e.l,e.a,e.b,e.opacity);if(e instanceof ur)return cr(e);e instanceof zn||(e=Fn(e));var t,n,r=sr(e.r),o=sr(e.g),i=sr(e.b),a=ir((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=ir((.4360747*r+.3850649*o+.1430804*i)/.96422),n=ir((.0139322*r+.0971045*o+.7141733*i)/.82521)),new or(116*a-16,500*(t-a),200*(a-n),e.opacity)}function or(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ir(e){return e>.008856451679035631?Math.pow(e,1/3):e/nr+er}function ar(e){return e>tr?e*e*e:nr*(e-er)}function lr(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function sr(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ur(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function cr(e){if(isNaN(e.h))return new or(e.l,0,0,e.opacity);var t=e.h*Zn;return new or(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}vn(or,(function(e,t,n,r){return 1===arguments.length?rr(e):new or(e,t,n,null==r?1:r)}),yn(xn,{brighter(e){return new or(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new or(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 zn(lr(3.1338561*(t=.96422*ar(t))-1.6168667*(e=1*ar(e))-.4906146*(n=.82521*ar(n))),lr(-.9787684*t+1.9161415*e+.033454*n),lr(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),vn(ur,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof ur)return new ur(e.h,e.c,e.l,e.opacity);if(e instanceof or||(e=rr(e)),0===e.a&&0===e.b)return new ur(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Qn;return new ur(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ur(e,t,n,null==r?1:r)}),yn(xn,{brighter(e){return new ur(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ur(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return cr(this).rgb()}}));var dr=e=>()=>e;function pr(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):dr(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?pr: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):dr(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=jn(e)).r,(t=jn(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=pr(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 fr,mr=["__proto__","constructor"];function hr(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!mr.some((function(e){return r.includes(e)}))){for(var i=e,a=0;a<r.length-1;++a){var l=r[a];void 0===i[l]&&(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}}}function gr(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 br(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=yr)):void 0===t&&(t=vr);for(var n,r,o,i,a,l=new Er(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new Er(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Sr)}function vr(e){return e.children}function yr(e){return Array.isArray(e)?e[1]:null}function xr(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Sr(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Er(e){this.data=e,this.depth=this.height=0,this.parent=null}Er.prototype=br.prototype={constructor:Er,count:function(){return this.eachAfter(gr)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return br(this).eachBefore(xr)},[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)}},fr=function(e){
10
+ /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
11
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},fr({exports:{}});var Cr={exports:{}};self,Cr.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{default:()=>Me});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),A={},P=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function L(e){return void 0===e}function D(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=L(e[n||t])?i:e[t],e=e[n||t]}})),e}function O(e,t){var n=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){O(e[r],t[r])||(n=!1)})),n);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!O(e[r],t[r]))return!1;return!0}return e===t}A.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);O(i,a)||D(t,o)||(L(a)?r.push({op:"add",path:l,value:i}):I(i)&&I(a)?r=r.concat(A.generate(a,i,l)):P(i)&&P(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&L(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(O(t,o))return r;if(!L(t[0])&&L(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(A.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){L(t[o])&&!D(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},A.apply=function(e,t){t.forEach((function(t){var n,r,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(I(a)&&I(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!D(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=M(e,t.from);P(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const T=A,k=function(e,n,r){if(!e)return Promise.resolve();var o=T.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var _="accumulation";function q(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===_)return n[r]}function N(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===_)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const j={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=q(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=q(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(_))return!1;var i=q(t,e);return i&&!i.disabled}};return n}};var z="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===z)return n[r]}function H(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===z)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var G="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===G)return n[r]}function U(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===G)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=V(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=V(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Pe={initBase:function(e,t){(t||Pe.isValid(e))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,we,i(e,Ee)))},restoreBase:function(e){Pe.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,Ee,i(e,we)),i(e,Re)&&i(e,Ae)&&n(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Ie=Pe;function Le(e){return Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Le(e)}var De={accumulation:j,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:De,apply:Te,applyModifiers:ke,cleanUpMeasure:_e,destroy:function(e){e&&Oe[e.id]&&Oe[e.id].masterItemSubscriber&&(Oe[e.id].masterItemSubscriber&&Oe[e.id].masterItemSubscriber.unsubscribe(),delete Oe[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return De[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return De[e]&&De[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=ze(e);Ue({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Ze({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Oe={};function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Oe[n.id]=Oe[n.id]||{isFirstTime:!0};var u=Oe[n.id].isFirstTime;if(Oe[n.id].isFirstTime=!1,r&&"object"===Le(r))return ke({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Oe[n.id].lastReloadTime;if(Oe[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ue({modifiers:ze(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var o=Qe(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;je(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(n++,"object"!==Le(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=De[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),ke({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Le(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Qe(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return je(r).forEach((function(e){return _e(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function ke(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),He(o);var p=Qe(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=je(r)),!n.length)return Promise.resolve();if(!qe({measures:n,properties:r}))return n.forEach((function(e){return _e(e)})),Promise.resolve();var s=a?void 0:Qe(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ue({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ie.isValid(n)||Ie.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(l++,"object"!==Le(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");De[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:De[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof De[r.type].updateModifier&&De[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:De[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),Be(n)):_e(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function _e(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&!De[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function qe(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:ze(e),properties:n,layout:r})}))}function Ne(e){var t=ze(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(De[r.type]&&!r.disabled)return r}}function Fe(e){var t=Ne(e);return!t||De[t.type].enableTotalsFunction(e)}function je(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){je(e).forEach((function(e){return function(e){var n=Ne(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Be(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===Le(t)&&(t.disabled||!De[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ge(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!Ge(t)&&Ue({modifiers:ze(t),properties:n,layout:r})}function Ue(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Le(e)||e.disabled||!De[e.type])&&(void 0===o[e.type]&&(o[e.type]=De[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):k(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&De[e.type]&&De[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=je(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=ze(t);if(Ue({modifiers:r,properties:e})){var i=Ge(t);i&&n.push(i),o=o||Ze({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Oe[t.id].masterItemSubscriber=Oe[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Te({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Oe[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(r,{default:()=>He});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(645),f=n.n(p);const m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function C(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function w(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var A=Math.pow(2,53)-1;function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const L=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},D=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},M=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},O=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},T=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},k=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},_=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},l=R(a.max,o.dimensions.length,A),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,A),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},n,o)).components&&(o.components=[]),o},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return P(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},H=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},B=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const G={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:r,hypercubePath:u}),b=i.getValue(r,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?O():w,A=s.defaultMeasure,P=void 0===A?T():A;v.qDimensions.length=0,v.qMeasures.length=0,j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),k({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),_({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:P}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),D("qMaxStackedCells",b,v),D("qNoOfLeftDims",b,v),M("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),M("qMode",b,v,"S"),M("qReductionMode",b,v,"N"),M("qSortbyYValue",b,v),M("qIndentMode",b,v),M("qShowTotalsAbove",b,v),L(g,t,r),h.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:I}),p&&W(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],l=t.length;if(U(a,t,r,o),Y(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(r,o);var s=r[r.length-1];if(s){var u=n?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var o=n?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(ne(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:n||l,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},be={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=G.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=G.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):W(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,n.properties.measureAxes[t[0].axis])):E()(l,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function we(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var Ae="qHyperCubeDef.qMeasures",Pe="conditionalColoring",Ie="measures",Le="qDef.conditionalColoring";const De={quarantine:function(e){we({properties:e,arrayPath:Ae,quarantineName:Pe,arrayName:Ie,itemPath:Le})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Le,arrayName:Ie,quarantineName:Pe})}};var Me="qHyperCubeDef.qMeasures",Oe="measures",Te="qHyperCubeDef.qDimensions",ke="dimensions",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",je="qCalcCondition",ze="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Me,quarantineName:ze,arrayName:Oe,itemPath:je}),we({properties:e,arrayPath:Te,quarantineName:ze,arrayName:ke,itemPath:je})},unquarantine:function(e){Re({properties:e,arrayPath:Me,quarantineName:ze,arrayName:Oe,itemPath:je}),Re({properties:e,arrayPath:Te,quarantineName:ze,arrayName:ke,itemPath:je})},quarantineAlternative:function(e){we({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),we({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),Re({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})}},He={hypercube:G,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:De,conditionalShow:$e}})(),r.default})();var wr=nn(Cr.exports);const Rr="12px",Ar="nebula-table-utils-head-menu-button";let Pr=function(e){return e.ENTER="Enter",e.SPACE=" ",e.ESC="Escape",e.TAB="Tab",e.SHIFT="Shift",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.C="c",e}({});const Ir="nebula-table-utils-column-adjuster",Lr=`${Ir}-border`;let Dr=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMinTable=120]="PixelsMinTable",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.AutoMin=80]="AutoMin",e}({}),Mr=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Or="qHyperCubeDef.qDimensions",Tr="dimensions",kr="qDef.representation",_r="tableRepresentation",qr=(e,t,n)=>{const r=e.length+t.length,o=((null==n?void 0:n.length)===r?n:Array.from(Array(r).keys())).map((n=>((e,t,n)=>{var r;const o=t.length,i=e<o?t[e]:n[e-o],{columnWidth:a}=i.qDef;return"pixels"===(null==a?void 0:a.type)?null!==(r=a.pixels)&&void 0!==r?r:Dr.PixelsDefault:-1})(n,e,t)));return o},Nr=({propertyTree:e,hyperCubePath:t})=>{const n=wr.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:r,qDimensions:o,qMeasures:i}}=n.properties,a=qr(o,i,r);return hr(n,"properties.qHyperCubeDef",{...n.properties.qHyperCubeDef,columnWidths:a}),wr.quarantineProperty(n.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),wr.quarantineProperty(n.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),wr.quarantineProperty(n.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{wr.quarantineArrayProp({properties:e,arrayPath:Or,itemPath:kr,arrayName:Tr,quarantineName:_r})})(n.properties),n};const Fr=(e,t,n,r)=>{let o=t;r&&(o=t-r);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(n)&&n.length>0){const e=n[t];i.qDef.columnWidth=-1===e?{type:Mr.FitToContent}:{type:Mr.Pixels,pixels:e}}return i},jr=({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o,viewDataMode:i})=>{const a=wr.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:r,extension:n});wr.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{wr.unquarantineArrayProp({properties:e,arrayPath:Or,itemPath:kr,arrayName:Tr,quarantineName:_r})})(a.qProperty);const{qHyperCubeDef:{qDimensions:l,qMeasures:s,qColumnOrder:u,columnWidths:c}}=a.qProperty,{dimensions:d,measures:p}=((e,t,n,r)=>{const o=e.length,i=o+t.length,a=(null==n?void 0:n.length)===i?n:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>Fr(e,t,r))),measures:a.filter((e=>e>=o)).map((e=>Fr(t,e,r,o)))}})(l,s,u,c);return Array.isArray(c)&&c.length>0&&(hr(a,"qProperty.qHyperCubeDef.qDimensions",d),hr(a,"qProperty.qHyperCubeDef.qMeasures",p)),i&&(hr(a,"qProperty.totals.show",!1),hr(a,"qProperty.usePagination",!0)),wr.conditionalShow.unquarantine(a.qProperty),a};function zr(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function $r(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r}function Hr(e){return e>0?0:1}function Br(e){return e.translator.get("Visualizations.Descriptions.Column")}function Wr(e){return{measures:{min:Hr,max:1e3,description:()=>Br(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;zr(r,n.getDimensions().length+n.getMeasures().length-1)},remove(e,t,n,r){const{qColumnOrder:o}=n.hcProperties;$r(o,(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r)}},dimensions:{min:Hr,max:1e3,description:()=>Br(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;return zr(r,n.getDimensions().length-1),e},remove(e,t,n,r){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=n.hcProperties;$r(o,r)}}}}var Gr,Vr={};Gr=Vr,(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{n.r(r),n.d(r,{default:()=>Me});var e=n(229),t=n.n(e);const o=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),A={},P=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function L(e){return void 0===e}function D(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=L(e[n||t])?i:e[t],e=e[n||t]}})),e}function O(e,t){var n=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){O(e[r],t[r])||(n=!1)})),n);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!O(e[r],t[r]))return!1;return!0}return e===t}A.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);O(i,a)||D(t,o)||(L(a)?r.push({op:"add",path:l,value:i}):I(i)&&I(a)?r=r.concat(A.generate(a,i,l)):P(i)&&P(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&L(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(O(t,o))return r;if(!L(t[0])&&L(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(A.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){L(t[o])&&!D(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},A.apply=function(e,t){t.forEach((function(t){var n,r,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(I(a)&&I(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!D(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=M(e,t.from);P(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const T=A,k=function(e,n,r){if(!e)return Promise.resolve();var o=T.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var _="accumulation";function q(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===_)return n[r]}function N(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===_)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const j={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=q(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=q(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(_))return!1;var i=q(t,e);return i&&!i.disabled}};return n}};var z="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===z)return n[r]}function H(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===z)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var G="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===G)return n[r]}function U(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===G)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=V(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=V(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Pe={initBase:function(e,t){(t||Pe.isValid(e))&&(o(e,ve,i(e,be)),o(e,xe,i(e,ye)),o(e,Ce,i(e,Se)),o(e,we,i(e,Ee)))},restoreBase:function(e){Pe.isValid(e)&&(o(e,be,i(e,ve)),o(e,ye,i(e,xe)),o(e,Se,i(e,Ce)),o(e,Ee,i(e,we)),i(e,Re)&&i(e,Ae)&&o(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Ie=Pe;function Le(e){return Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Le(e)}var De={accumulation:j,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:De,apply:Te,applyModifiers:ke,cleanUpMeasure:_e,destroy:function(e){e&&Oe[e.id]&&Oe[e.id].masterItemSubscriber&&(Oe[e.id].masterItemSubscriber&&Oe[e.id].masterItemSubscriber.unsubscribe(),delete Oe[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return De[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return De[e]&&De[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=ze(e);Ue({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Ze({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Oe={};function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Oe[n.id]=Oe[n.id]||{isFirstTime:!0};var u=Oe[n.id].isFirstTime;if(Oe[n.id].isFirstTime=!1,r&&"object"===Le(r))return ke({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Oe[n.id].lastReloadTime;if(Oe[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.model,o=e.lastReloadTime;return i(r,"app.layout.qLastReloadTime")!==o&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ue({modifiers:ze(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var o=Qe(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;je(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(n++,"object"!==Le(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=De[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),ke({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Le(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Qe(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return je(r).forEach((function(e){return _e(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function ke(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),He(o);var p=Qe(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=je(r)),!n.length)return Promise.resolve();if(!qe({measures:n,properties:r}))return n.forEach((function(e){return _e(e)})),Promise.resolve();var s=a?void 0:Qe(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ue({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ie.isValid(n)||Ie.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(l++,"object"!==Le(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");De[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:De[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof De[r.type].updateModifier&&De[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:De[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),Be(n)):_e(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function _e(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&!De[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function qe(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:ze(e),properties:n,layout:r})}))}function Ne(e){var t=ze(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(De[r.type]&&!r.disabled)return r}}function Fe(e){var t=Ne(e);return!t||De[t.type].enableTotalsFunction(e)}function je(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){je(e).forEach((function(e){return function(e){var n=Ne(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Be(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===Le(t)&&(t.disabled||!De[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ge(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!Ge(t)&&Ue({modifiers:ze(t),properties:n,layout:r})}function Ue(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Le(e)||e.disabled||!De[e.type])&&(void 0===o[e.type]&&(o[e.type]=De[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):k(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&De[e.type]&&De[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=je(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=ze(t);if(Ue({modifiers:r,properties:e})){var i=Ge(t);i&&n.push(i),o=o||Ze({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Oe[t.id].masterItemSubscriber=Oe[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Te({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Oe[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),Gr.default=r.default,Object.defineProperty(Gr,"__esModule",{value:!0})})();var Ur=nn(Vr);const Yr={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.align",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},Kr={representationType:{ref:"qDef.representation.type",type:"string",component:"dropdown",translation:"Object.Table.Representation",options:[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}],defaultValue:"text"},representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition"},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel"},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl"}},Xr=e=>{var t,n,r,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!Ur.hasActiveModifiers({measures:[e],properties:t.properties})||Ur.ifEnableTotalsFunction(e)?[{value:"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals")?"None":"Expr"}}}},show:!(null!=e&&null!==(r=e.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"totals"))}},Jr={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Mr.Auto,translation:"Common.Auto"},{value:Mr.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:Mr.Pixels,translation:"Object.Table.Column.Pixels"},{value:Mr.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Mr.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Mr.Pixels},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(Dr.PixelsMax,e.qDef.columnWidth.pixels))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Mr.Percentage},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(Dr.PercentageMax,e.qDef.columnWidth.percentage))}}},Zr={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellColoring:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1}]},...Yr,...Jr},Qr={libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},eo=e=>({libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:Xr(e)}),to=e=>e.flags.isEnabled("PS_18291_TABLE_EXPLORATION")?{type:"items",translation:"Common.Data",component:"data-assets-panel",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:Qr},presentation:{type:"items",translation:"properties.presentation",items:{...Zr,...e.flags.isEnabled("CLIENT_IM_5715_LINKS")?Kr:void 0}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:eo(e)},presentation:{type:"items",translation:"properties.presentation",items:Zr}}}}}:{type:"items",component:"columns",translation:"Common.Data",sortIndexRef:"qHyperCubeDef.qColumnOrder",allowMove:!0,allowAdd:!0,addTranslation:"Common.Columns",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",grouped:!0,items:{...Qr,...Zr,...e.flags.isEnabled("CLIENT_IM_5715_LINKS")?Kr:void 0}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",grouped:!0,items:{...eo(e),...Zr}}}},no={type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,defaultValue:[],items:{headerSection:{translation:"properties.Header",component:"panel-section",items:{headerFontItem:{component:"items",ref:"components",key:"theme",items:{headerFontWrapper:{component:"inline-wrapper",items:{headerFontSize:{component:"integer",ref:"header.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.fontSize)&&void 0!==r?r:i.fontSize,10)},change(e){e.header.fontSize=e.header.fontSize?Math.max(5,Math.min(300,Math.floor(e.header.fontSize))):e.header.fontSize}},headerFontColor:{show:!0,ref:"header.fontColor",type:"object",component:"color-picker",defaultValue(e,t,n){var r,o;const i=n.theme.current();return{color:null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.color)&&void 0!==r?r:i.color}},dualOutput:!0}}}}}}},contentSection:{component:"panel-section",translation:"properties.Content",items:{contentFontItem:{component:"items",ref:"components",key:"theme",items:{contentFontWrapper:{component:"inline-wrapper",items:{contentFontSize:{component:"integer",ref:"content.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.fontSize)&&void 0!==r?r:i.fontSize,10)},change(e){e.content.fontSize=e.content.fontSize?Math.max(5,Math.min(300,Math.floor(e.content.fontSize))):e.content.fontSize}},contentFontColor:{ref:"content.fontColor",type:"object",component:"color-picker",defaultValue(e,t,n){var r,o;const i=n.theme.current();return{color:null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.color)&&void 0!==r?r:i.color}},dualOutput:!0}}}}}}},hoverEffectSection:{translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}}}}]},ro=e=>{var t,n;return{type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals"))}},oo=e=>e.flags.isEnabled("PS_18291_TABLE_EXPLORATION")&&{chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}},io=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[no,ro(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1}]},...oo(e)}}),ao={uses:"sorting"},lo={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},so=e=>({type:"items",component:"accordion",items:{data:to(e),sorting:ao,addOns:lo,settings:io(e)}}),uo=e=>e.flags.isEnabled("PS_18291_TABLE_EXPLORATION")&&{exploration:{component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}}};function co(e){return{definition:so(e),...uo(e),data:Wr(e),support:{export:e.flags.isEnabled("PS_20907_TABLE_DOWNLOAD"),exportData:!0,snapshot:e.flags.isEnabled("PS_20907_TABLE_DOWNLOAD"),viewData:!1,exploration:!0,cssScaling:!0},importProperties(e,t,n,r){const o={defaultDimension:n.getDefaultDimensionProperties(),defaultMeasure:n.getDefaultMeasureProperties()};return jr({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o})},exportProperties:(e,t)=>Nr({propertyTree:e,hyperCubePath:t})}}const po=async e=>{var t;const n=null===(t=e.querySelector(".sn-table-cell-text"))||void 0===t?void 0:t.textContent;try{n&&await navigator.clipboard.writeText(String(n))}catch(e){console.log(e)}};const fo=(e,n)=>t((()=>((e,t)=>(n,{isDim:r,colIdx:o})=>{const i=r?o:o-e.qDimensionInfo.length,a=`/qHyperCubeDef/${r?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,l=e[r?"qDimensionInfo":"qMeasureInfo"][i].columnWidth,s=l?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...l,...n})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(n)};null==t||t.applyPatches([s],!0)})(e,n)),[e,n]);let mo;const ho=new Uint8Array(16);function go(){if(!mo&&(mo="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!mo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return mo(ho)}const bo=[];for(let e=0;e<256;++e)bo.push((e+256).toString(16).slice(1));var vo={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function yo(e,t,n){if(vo.randomUUID&&!t&&!e)return vo.randomUUID();const r=(e=e||{}).random||(e.rng||go)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return bo[e[t+0]]+bo[e[t+1]]+bo[e[t+2]]+bo[e[t+3]]+"-"+bo[e[t+4]]+bo[e[t+5]]+"-"+bo[e[t+6]]+bo[e[t+7]]+"-"+bo[e[t+8]]+bo[e[t+9]]+"-"+bo[e[t+10]]+bo[e[t+11]]+bo[e[t+12]]+bo[e[t+13]]+bo[e[t+14]]+bo[e[t+15]]}(r)}const xo=({qLibraryId:e,cId:t})=>{var n,r,o,i;return null!==(n=null!=e?e:t)&&void 0!==n?n:null!==(r=null===(o=crypto)||void 0===o||null===(i=o.randomUUID)||void 0===i?void 0:i.call(o))&&void 0!==r?r:yo()};let So=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),Eo=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});function Co(e){return Co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Co(e)}function wo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ro(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ao(e,t,n){return t&&Ro(e.prototype,t),n&&Ro(e,n),e}function Po(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Lo(e,t)}function Io(e){return Io=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Io(e)}function Lo(e,t){return Lo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Lo(e,t)}function Do(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Mo(e){return function(){var t,n=Io(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var r=Io(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return Do(this,t)}}var Oo={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:To(e),value:To(t),useEqualSign:n}}(n,o,i))}})),t}};function To(e){try{return decodeURIComponent(e)}catch(t){return e}}function ko(e){if(!(this instanceof ko))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return Oo.fromSearchString(t.search)}}})}function _o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}ko.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},ko.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=_o((t=e[r]).key),t.value?n+="=".concat(_o(t.value)):n+=t.useEqualSign?"=":"";return n};var qo,No=function(){function e(t){wo(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return Ao(e,[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}}]),Ao(e,[{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}]),e}(),Fo=function(){function e(){wo(this,e)}return Ao(e,[{key:"decode",value:function(e){for(var t,n="",r=new No(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),jo=function(e){return e>=0&&e<=1114111},zo=function(e){return e.match(/[\s]/)},$o=function(e){Po(n,Fo);var t=Mo(n);function n(){return wo(this,n),t.apply(this,arguments)}return Ao(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,n=0;n<5&&(null!=(r=e.next())&&!zo(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return jo(a)?String.fromCharCode(a):"�"}}]),n}(),Ho=function(){function e(t,n){wo(this,e),this._key=t,this._value=n}return Ao(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}}]),e}(),Bo=function(){function e(){wo(this,e)}return Ao(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return Ho.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return Ho.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||Ho.newInstanceIfNeeded(e,t,this._value)}}]),e}(),Wo=function(){function e(){wo(this,e),this.clear()}return Ao(e,[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new Bo);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),Go=function(){var e,t,n,r=[],o=[],i=new Wo;for(e in r["&quot"]="34",r["&amp"]="38",r["&lt"]="60",r["&gt"]="62",r["&nbsp"]="160",r["&iexcl"]="161",r["&cent"]="162",r["&pound"]="163",r["&curren"]="164",r["&yen"]="165",r["&brvbar"]="166",r["&sect"]="167",r["&uml"]="168",r["&copy"]="169",r["&ordf"]="170",r["&laquo"]="171",r["&not"]="172",r["&shy"]="173",r["&reg"]="174",r["&macr"]="175",r["&deg"]="176",r["&plusmn"]="177",r["&sup2"]="178",r["&sup3"]="179",r["&acute"]="180",r["&micro"]="181",r["&para"]="182",r["&middot"]="183",r["&cedil"]="184",r["&sup1"]="185",r["&ordm"]="186",r["&raquo"]="187",r["&frac14"]="188",r["&frac12"]="189",r["&frac34"]="190",r["&iquest"]="191",r["&Agrave"]="192",r["&Aacute"]="193",r["&Acirc"]="194",r["&Atilde"]="195",r["&Auml"]="196",r["&Aring"]="197",r["&AElig"]="198",r["&Ccedil"]="199",r["&Egrave"]="200",r["&Eacute"]="201",r["&Ecirc"]="202",r["&Euml"]="203",r["&Igrave"]="204",r["&Iacute"]="205",r["&Icirc"]="206",r["&Iuml"]="207",r["&ETH"]="208",r["&Ntilde"]="209",r["&Ograve"]="210",r["&Oacute"]="211",r["&Ocirc"]="212",r["&Otilde"]="213",r["&Ouml"]="214",r["&times"]="215",r["&Oslash"]="216",r["&Ugrave"]="217",r["&Uacute"]="218",r["&Ucirc"]="219",r["&Uuml"]="220",r["&Yacute"]="221",r["&THORN"]="222",r["&szlig"]="223",r["&agrave"]="224",r["&aacute"]="225",r["&acirc"]="226",r["&atilde"]="227",r["&auml"]="228",r["&aring"]="229",r["&aelig"]="230",r["&ccedil"]="231",r["&egrave"]="232",r["&eacute"]="233",r["&ecirc"]="234",r["&euml"]="235",r["&igrave"]="236",r["&iacute"]="237",r["&icirc"]="238",r["&iuml"]="239",r["&eth"]="240",r["&ntilde"]="241",r["&ograve"]="242",r["&oacute"]="243",r["&ocirc"]="244",r["&otilde"]="245",r["&ouml"]="246",r["&divide"]="247",r["&oslash"]="248",r["&ugrave"]="249",r["&uacute"]="250",r["&ucirc"]="251",r["&uuml"]="252",r["&yacute"]="253",r["&thorn"]="254",r["&yuml"]="255",r["&OElig"]="338",r["&oelig"]="339",r["&Scaron"]="352",r["&scaron"]="353",r["&Yuml"]="376",r["&fnof"]="402",r["&circ"]="710",r["&tilde"]="732",r["&Alpha"]="913",r["&Beta"]="914",r["&Gamma"]="915",r["&Delta"]="916",r["&Epsilon"]="917",r["&Zeta"]="918",r["&Eta"]="919",r["&Theta"]="920",r["&Iota"]="921",r["&Kappa"]="922",r["&Lambda"]="923",r["&Mu"]="924",r["&Nu"]="925",r["&Xi"]="926",r["&Omicron"]="927",r["&Pi"]="928",r["&Rho"]="929",r["&Sigma"]="931",r["&Tau"]="932",r["&Upsilon"]="933",r["&Phi"]="934",r["&Chi"]="935",r["&Psi"]="936",r["&Omega"]="937",r["&alpha"]="945",r["&beta"]="946",r["&gamma"]="947",r["&delta"]="948",r["&epsilon"]="949",r["&zeta"]="950",r["&eta"]="951",r["&theta"]="952",r["&iota"]="953",r["&kappa"]="954",r["&lambda"]="955",r["&mu"]="956",r["&nu"]="957",r["&xi"]="958",r["&omicron"]="959",r["&pi"]="960",r["&rho"]="961",r["&sigmaf"]="962",r["&sigma"]="963",r["&tau"]="964",r["&upsilon"]="965",r["&phi"]="966",r["&chi"]="967",r["&psi"]="968",r["&omega"]="969",r["&thetasym"]="977",r["&upsih"]="978",r["&piv"]="982",r["&ensp"]="8194",r["&emsp"]="8195",r["&thinsp"]="8201",r["&zwnj"]="8204",r["&zwj"]="8205",r["&lrm"]="8206",r["&rlm"]="8207",r["&ndash"]="8211",r["&mdash"]="8212",r["&lsquo"]="8216",r["&rsquo"]="8217",r["&sbquo"]="8218",r["&ldquo"]="8220",r["&rdquo"]="8221",r["&bdquo"]="8222",r["&dagger"]="8224",r["&Dagger"]="8225",r["&bull"]="8226",r["&hellip"]="8230",r["&permil"]="8240",r["&prime"]="8242",r["&Prime"]="8243",r["&lsaquo"]="8249",r["&rsaquo"]="8250",r["&oline"]="8254",r["&frasl"]="8260",r["&euro"]="8364",r["&image"]="8365",r["&weierp"]="8472",r["&real"]="8476",r["&trade"]="8482",r["&alefsym"]="8501",r["&larr"]="8592",r["&uarr"]="8593",r["&rarr"]="8594",r["&darr"]="8595",r["&harr"]="8596",r["&crarr"]="8629",r["&lArr"]="8656",r["&uArr"]="8657",r["&rArr"]="8658",r["&dArr"]="8659",r["&hArr"]="8660",r["&forall"]="8704",r["&part"]="8706",r["&exist"]="8707",r["&empty"]="8709",r["&nabla"]="8711",r["&isin"]="8712",r["&notin"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),Vo=function(e){Po(n,Fo);var t=Mo(n);function n(){return wo(this,n),t.apply(this,arguments)}return Ao(n,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,Go.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=Go.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&jo(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&jo(r)?String.fromCharCode(r):null}}]),n}(),Uo=function(e){Po(n,Fo);var t=Mo(n);function n(){return wo(this,n),t.apply(this,arguments)}return Ao(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),jo(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}();"undefined"!=typeof document&&(qo=document.createElement("div"));var Yo=Array.prototype.indexOf,Ko=[",",".","_"," "],Xo={default:[",",".","-","_"," "]},Jo={width:["%"],height:["%"]},Zo={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Qo={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":Zo.image,"background-color":Zo.color,"border-color":Zo.color,"border-image":Zo.image,color:Zo.color,icon:Zo.image,"list-style-image":Zo.image,"outline-color":Zo.color},ei={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function ti(e,t,n){var r;if(t){if(Yo)return Yo.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function ni(e){if(null==e)return"";var t,n=document.createTextNode(e);return qo.appendChild(n),t=qo.innerHTML,qo.removeChild(n),t}function ri(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=ii(e).toLowerCase(),t=ii(t),ti(e,ei.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<ei.attr_val;i++)if(t.toLowerCase().match(ei.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=Jo[e])||(r=Xo.default),o="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&ti(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function oi(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=ii(e).toLowerCase(),t=ii(t),ti(e,ei.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<ei.css_val.length;r++)if(t.toLowerCase().indexOf(ei.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=Qo[e])||(o=Zo.default),i="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&ti(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function ii(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new Vo,new Uo,new $o];!a;){r=n;for(var s=0;s<l.length;s++)(i=l[s].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var ai=[],li=0;li<255;li++)ai[li]=li>=48&&li<=57||li>=65&&li<=90||li>=97&&li<=122?null:li.toString(16);var si=function(e){return ni(e.unsafe)},ui=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=oi(t,n[t],!0),i+=oi(t,n[t],!0),o[t]=r[t]);return e.map?o:i},ci=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=ri(i,t[i],!0),o+=ri(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function di(e,t){throw new Error(t)}var pi={canonicalize:ii,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===Co(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))continue;void 0!==n&&(r[t]=n)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?si(e):"css"===e.context?(null!=e.map&&"object"!==Co(e.map)&&di(this,"Invalid parameter type"),ui(e)):"attr"===e.context?(null!=e.map&&"object"!==Co(e.map)&&di(this,"Invalid parameter type"),ci(e)):void di(this,"Invalid parameter type")},encodeForAttr:ri,encodeForAttr2:function(e){return ri("nonsens",e,!0)},encodeForCSS:oi,encodeForHref:function(e){ii(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new ko(e),n=ko.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+ko.encodeSearchParams(r)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var n,r,o,i,a,l;for(t||(t=Ko),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),ti(o,t)>=0||null==ai[i]?l+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),l+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),l+="\\u".concat(a).concat(r.toUpperCase())));return l},encodeForHTML:ni,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=ii(t).toLowerCase():di(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':""}};const fi=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===Eo.Attribute||null==n?void 0:n.urlLabel},mi=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:So.Link,url:pi.encodeForHref(t),text:e}}catch(t){return{type:So.Text,url:void 0,text:e}}},hi=(e,t,n,r)=>(e=>{switch(null==e?void 0:e.type){case"url":return So.Link;case"image":return So.Image;default:return So.Text}})(t)===So.Link?((e,t,n,r)=>{const{urlPosition:o}=null!=t?t:{};if(o===Eo.Attribute){const r=fi(n,e,t),o=e.qText||r||"";return mi({text:o,url:r})}if(o===Eo.Dimension){const n=fi(r,e,t)||e.qText;return mi({text:n,url:e.qText})}return{type:So.Text,url:void 0,text:e.qText}})(e,t,n,r):{type:So.Text,url:void 0,text:e.qText},gi=e=>!Number.isNaN(+e),bi=e=>!(!e.qNum&&0!==e.qNum||!gi(e.qNum)),vi=1e4;function yi(e,t){return[...t].reverse().find((t=>t*e<=vi))||Math.floor(vi/e)}function xi(e,t){var n,r;if(null!==(n=t.viewState)&&void 0!==n&&n.skipTotals)return{atTop:!1,atBottom:!1};const[o,i,a,l,s]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,null===(r=e.totals)||void 0===r?void 0:r.show,e.totals.position];if(a&&(o&&i||!l&&!o)){if(l||"top"===s)return{atTop:!0,atBottom:!1};if(!l&&"bottom"===s)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function Si(e,t,n,r){var o,i,a;return t?0===n&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(o=null===(i=e.qHyperCube.qGrandTotalRow[r])||void 0===i?void 0:i.qText)&&void 0!==o?o:""}function Ei(e,t){const n=e.qHyperCube.qGrandTotalRow[t];return gi(n.qNum)}function Ci(e,t,n){return e&&!e.auto?{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:n?"left":"right",bodyTextAlign:"auto"}}const wi=(e,t)=>"auto"!==t?t:bi(e)?"right":"left";const Ri=e=>{const{qHyperCube:{qColumnOrder:t,qDimensionInfo:n,qMeasureInfo:r}}=e,o=n.length+r.length,i=(null==t?void 0:t.length)===o?t:Array.from(Array(o).keys()),{visibleColumnsOrder:a,visibleColumnIndexes:l}=((e,t,n)=>{const r=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const l=e<r,{qError:s}=l?t[e]:n[e-r],u=7005===(null==s?void 0:s.qErrorCode);return u?l?i++:a++:o[e]=l?e-i:e-r-a,!u})),visibleColumnIndexes:o}})(i,n,r);return a.map(((t,n)=>function(e,t,n,r){const{qDimensionInfo:o,qMeasureInfo:i,qEffectiveInterColumnSortOrder:a}=e.qHyperCube,l=o.length,s=t<l,u=s?o[t]:i[t-l],c=t===a[0];let d,p,f=0,m="",h=!1,g=-1;if(s){const e=u;f=e.qGroupPos,m=e.qGroupFieldDefs[f],h=e.qLocked,g=r,({qDimensionType:d,representation:p}=e)}const{qFallbackTitle:b,textAlign:v,qAttrExprInfo:y,qSortIndicator:x,qReverseSort:S,qApprMaxGlyphCount:E,columnWidth:C,qLibraryId:w}=u;return{isDim:s,isLocked:h,fieldId:m,colIdx:t,qLibraryId:w,pageColIdx:n,qApprMaxGlyphCount:E,qReverseSort:S,columnWidth:C,selectionColIdx:g,isActivelySorted:c,id:xo(u),label:b,qAttrExprInfoIDs:y.map((e=>e.id)),sortDirection:x&&"N"!==x?x:"A",totalInfo:Si(e,s,n,r),...!s&&{isTotalNumeric:Ei(e,r)},...Ci(v,d,s),representation:p}}(e,t,n,l[t])))};const Ai=(e,t)=>{var n;return!!(e.snapshotData||null!==(n=t.viewState)&&void 0!==n&&n.visibleHeight)},Pi=(e,t)=>{var n;return void 0!==(null===(n=t.viewState)||void 0===n?void 0:n.usePagination)?t.viewState.usePagination:!1!==e.usePagination||Ai(e,t)};var Ii={exports:{}},Li={},Di=x,Mi=Symbol.for("react.element"),Oi=Symbol.for("react.fragment"),Ti=Object.prototype.hasOwnProperty,ki=Di.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_i={key:!0,ref:!0,__self:!0,__source:!0};function qi(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Ti.call(t,r)&&!_i.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Mi,type:e,key:i,ref:a,props:o,_owner:ki.current}}Li.Fragment=Oi,Li.jsx=qi,Li.jsxs=qi,Ii.exports=Li;var Ni=Ii.exports;function Fi(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 ji=Object.freeze({__proto__:null,default:Fi}),zi="$$material";function $i(){return $i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$i.apply(this,arguments)}function Hi(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var Bi=function(){return Bi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Bi.apply(this,arguments)};function Wi(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Gi=nn((function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var u=i[s];if(!l(u))return!1;var c=e[u],d=t[u];if(!1===(o=n?n.call(r,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0})),Vi="-ms-",Ui="-moz-",Yi="-webkit-",Ki="comm",Xi="rule",Ji="decl",Zi="@media",Qi="@import",ea="@supports",ta="@keyframes",na="@layer",ra=Math.abs,oa=String.fromCharCode,ia=Object.assign;function aa(e){return e.trim()}function la(e,t){return(e=t.exec(e))?e[0]:e}function sa(e,t,n){return e.replace(t,n)}function ua(e,t,n){return e.indexOf(t,n)}function ca(e,t){return 0|e.charCodeAt(t)}function da(e,t,n){return e.slice(t,n)}function pa(e){return e.length}function fa(e){return e.length}function ma(e,t){return t.push(e),e}function ha(e,t){return e.filter((function(e){return!la(e,t)}))}var ga=1,ba=1,va=0,ya=0,xa=0,Sa="";function Ea(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:ga,column:ba,length:a,return:"",siblings:l}}function Ca(e,t){return ia(Ea("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function wa(e){for(;e.root;)e=Ca(e.root,{children:[e]});ma(e,e.siblings)}function Ra(){return xa=ya>0?ca(Sa,--ya):0,ba--,10===xa&&(ba=1,ga--),xa}function Aa(){return xa=ya<va?ca(Sa,ya++):0,ba++,10===xa&&(ba=1,ga++),xa}function Pa(){return ca(Sa,ya)}function Ia(){return ya}function La(e,t){return da(Sa,e,t)}function Da(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 Ma(e){return aa(La(ya-1,ka(91===e?e+2:40===e?e+1:e)))}function Oa(e){for(;(xa=Pa())&&xa<33;)Aa();return Da(e)>2||Da(xa)>3?"":" "}function Ta(e,t){for(;--t&&Aa()&&!(xa<48||xa>102||xa>57&&xa<65||xa>70&&xa<97););return La(e,Ia()+(t<6&&32==Pa()&&32==Aa()))}function ka(e){for(;Aa();)switch(xa){case e:return ya;case 34:case 39:34!==e&&39!==e&&ka(xa);break;case 40:41===e&&ka(e);break;case 92:Aa()}return ya}function _a(e,t){for(;Aa()&&e+xa!==57&&(e+xa!==84||47!==Pa()););return"/*"+La(t,ya-1)+"*"+oa(47===e?e:Aa())}function qa(e){for(;!Da(Pa());)Aa();return La(e,ya)}function Na(e){return function(e){return Sa="",e}(Fa("",null,null,null,[""],e=function(e){return ga=ba=1,va=pa(Sa=e),ya=0,[]}(e),0,[0],e))}function Fa(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=r,C=y;g;)switch(m=v,v=Aa()){case 40:if(108!=m&&58==ca(C,d-1)){-1!=ua(C+=sa(Ma(v),"&","&\f"),"&\f",ra(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Ma(v);break;case 9:case 10:case 13:case 32:C+=Oa(m);break;case 92:C+=Ta(Ia()-1,7);continue;case 47:switch(Pa()){case 42:case 47:ma(za(_a(Aa(),Ia()),t,n,s),s);break;default:C+="/"}break;case 123*h:l[u++]=pa(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=sa(C,/\f/g,"")),f>0&&pa(C)-d&&ma(f>32?$a(C+";",r,n,d-1,s):$a(sa(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(ma(E=ja(C,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)Fa(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===ca(C,3)?100:p){case 100:case 108:case 109:case 115:Fa(e,E,E,r&&ma(ja(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:Fa(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+pa(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Ra())continue;switch(C+=oa(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(pa(C)-1)*b,b=1;break;case 64:45===Pa()&&(C+=Ma(Aa())),p=Pa(),c=d=pa(y=C+=qa(Ia())),v++;break;case 45:45===m&&2==pa(C)&&(h=0)}}return i}function ja(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=fa(f),h=0,g=0,b=0;h<r;++h)for(var v=0,y=da(e,p+1,p=ra(g=a[h])),x=e;v<m;++v)(x=aa(g>0?f[v]+" "+y:sa(y,/&\f/g,f[v])))&&(s[b++]=x);return Ea(e,t,n,0===o?Xi:l,s,u,c,d)}function za(e,t,n,r){return Ea(e,t,n,Ki,oa(xa),da(e,2,-2),0,r)}function $a(e,t,n,r,o){return Ea(e,t,n,Ji,da(e,0,r),da(e,r+1,-1),r,o)}function Ha(e,t,n){switch(function(e,t){return 45^ca(e,0)?(((t<<2^ca(e,0))<<2^ca(e,1))<<2^ca(e,2))<<2^ca(e,3):0}(e,t)){case 5103:return Yi+"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 Yi+e+e;case 4789:return Ui+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Yi+e+Ui+e+Vi+e+e;case 5936:switch(ca(e,t+11)){case 114:return Yi+e+Vi+sa(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Yi+e+Vi+sa(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Yi+e+Vi+sa(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Yi+e+Vi+e+e;case 6165:return Yi+e+Vi+"flex-"+e+e;case 5187:return Yi+e+sa(e,/(\w+).+(:[^]+)/,Yi+"box-$1$2"+Vi+"flex-$1$2")+e;case 5443:return Yi+e+Vi+"flex-item-"+sa(e,/flex-|-self/g,"")+(la(e,/flex-|baseline/)?"":Vi+"grid-row-"+sa(e,/flex-|-self/g,""))+e;case 4675:return Yi+e+Vi+"flex-line-pack"+sa(e,/align-content|flex-|-self/g,"")+e;case 5548:return Yi+e+Vi+sa(e,"shrink","negative")+e;case 5292:return Yi+e+Vi+sa(e,"basis","preferred-size")+e;case 6060:return Yi+"box-"+sa(e,"-grow","")+Yi+e+Vi+sa(e,"grow","positive")+e;case 4554:return Yi+sa(e,/([^-])(transform)/g,"$1"+Yi+"$2")+e;case 6187:return sa(sa(sa(e,/(zoom-|grab)/,Yi+"$1"),/(image-set)/,Yi+"$1"),e,"")+e;case 5495:case 3959:return sa(e,/(image-set\([^]*)/,Yi+"$1$`$1");case 4968:return sa(sa(e,/(.+:)(flex-)?(.*)/,Yi+"box-pack:$3"+Vi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Yi+e+e;case 4200:if(!la(e,/flex-|baseline/))return Vi+"grid-column-align"+da(e,t)+e;break;case 2592:case 3360:return Vi+sa(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,la(e.props,/grid-\w+-end/)}))?~ua(e+(n=n[t].value),"span",0)?e:Vi+sa(e,"-start","")+e+Vi+"grid-row-span:"+(~ua(n,"span",0)?la(n,/\d+/):+la(n,/\d+/)-+la(e,/\d+/))+";":Vi+sa(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return la(e.props,/grid-\w+-start/)}))?e:Vi+sa(sa(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return sa(e,/(.+)-inline(.+)/,Yi+"$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(pa(e)-1-t>6)switch(ca(e,t+1)){case 109:if(45!==ca(e,t+4))break;case 102:return sa(e,/(.+:)(.+)-([^]+)/,"$1"+Yi+"$2-$3$1"+Ui+(108==ca(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ua(e,"stretch",0)?Ha(sa(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return sa(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return Vi+n+":"+r+l+(o?Vi+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===ca(e,t+6))return sa(e,":",":"+Yi)+e;break;case 6444:switch(ca(e,45===ca(e,14)?18:11)){case 120:return sa(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Yi+(45===ca(e,14)?"inline-":"")+"box$3$1"+Yi+"$2$3$1"+Vi+"$2box$3")+e;case 100:return sa(e,":",":"+Vi)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return sa(e,"scroll-","scroll-snap-")+e}return e}function Ba(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Wa(e,t,n,r){switch(e.type){case na:if(e.children.length)break;case Qi:case Ji:return e.return=e.return||e.value;case Ki:return"";case ta:return e.return=e.value+"{"+Ba(e.children,r)+"}";case Xi:if(!pa(e.value=e.props.join(",")))return""}return pa(n=Ba(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ga(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ji:return void(e.return=Ha(e.value,e.length,n));case ta:return Ba([Ca(e,{value:sa(e.value,"@","@"+Yi)})],r);case Xi:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(la(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":wa(Ca(e,{props:[sa(t,/:(read-\w+)/,":"+Ui+"$1")]})),wa(Ca(e,{props:[t]})),ia(e,{props:ha(n,r)});break;case"::placeholder":wa(Ca(e,{props:[sa(t,/:(plac\w+)/,":"+Yi+"input-$1")]})),wa(Ca(e,{props:[sa(t,/:(plac\w+)/,":"+Ui+"$1")]})),wa(Ca(e,{props:[sa(t,/:(plac\w+)/,Vi+"input-$1")]})),wa(Ca(e,{props:[t]})),ia(e,{props:ha(n,r)})}return""}))}}var Va={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ua="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ya="active",Ka="data-styled-version",Xa="6.1.8",Ja="/*!sc*/\n",Za="undefined"!=typeof window&&"HTMLElement"in window,Qa=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),el={},tl=Object.freeze([]),nl=Object.freeze({});function rl(e,t,n){return void 0===n&&(n=nl),e.theme!==n.theme&&e.theme||t||n.theme}var ol=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),il=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,al=/(^-|-$)/g;function ll(e){return e.replace(il,"-").replace(al,"")}var sl=/(a)(d)/gi,ul=52,cl=function(e){return String.fromCharCode(e+(e>25?39:97))};function dl(e){var t,n="";for(t=Math.abs(e);t>ul;t=t/ul|0)n=cl(t%ul)+n;return(cl(t%ul)+n).replace(sl,"$1-$2")}var pl,fl=5381,ml=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},hl=function(e){return ml(fl,e)};function gl(e){return dl(hl(e)>>>0)}function bl(e){return"string"==typeof e&&!0}var vl="function"==typeof Symbol&&Symbol.for,yl=vl?Symbol.for("react.memo"):60115,xl=vl?Symbol.for("react.forward_ref"):60112,Sl={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},El={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Cl={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},wl=((pl={})[xl]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pl[yl]=Cl,pl);function Rl(e){return("type"in(t=e)&&t.type.$$typeof)===yl?Cl:"$$typeof"in e?wl[e.$$typeof]:Sl;var t}var Al=Object.defineProperty,Pl=Object.getOwnPropertyNames,Il=Object.getOwnPropertySymbols,Ll=Object.getOwnPropertyDescriptor,Dl=Object.getPrototypeOf,Ml=Object.prototype;function Ol(e,t,n){if("string"!=typeof t){if(Ml){var r=Dl(t);r&&r!==Ml&&Ol(e,r,n)}var o=Pl(t);Il&&(o=o.concat(Il(t)));for(var i=Rl(e),a=Rl(t),l=0;l<o.length;++l){var s=o[l];if(!(s in El||n&&n[s]||a&&s in a||i&&s in i)){var u=Ll(t,s);try{Al(e,s,u)}catch(e){}}}}return e}function Tl(e){return"function"==typeof e}function kl(e){return"object"==typeof e&&"styledComponentId"in e}function _l(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ql(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Nl(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Fl(e,t,n){if(void 0===n&&(n=!1),!n&&!Nl(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Fl(e[r],t[r]);else if(Nl(t))for(var r in t)e[r]=Fl(e[r],t[r]);return e}function jl(e,t){Object.defineProperty(e,"toString",{value:t})}function zl(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var $l=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw zl(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(Ja);return t},e}(),Hl=new Map,Bl=new Map,Wl=1,Gl=function(e){if(Hl.has(e))return Hl.get(e);for(;Bl.has(Wl);)Wl++;var t=Wl++;return Hl.set(e,t),Bl.set(t,e),t},Vl=function(e,t){Wl=t+1,Hl.set(e,t),Bl.set(t,e)},Ul="style[".concat(Ua,"][").concat(Ka,'="').concat(Xa,'"]'),Yl=new RegExp("^".concat(Ua,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Kl=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},Xl=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Ja),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(Yl);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Vl(c,u),Kl(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var Jl=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Ua,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Ua,Ya),r.setAttribute(Ka,Xa);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Zl=function(){function e(e){this.element=Jl(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw zl(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Ql=function(){function e(e){this.element=Jl(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),es=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),ts=Za,ns={isServer:!Za,useCSSOMInjection:!Qa},rs=function(){function e(e,t,n){void 0===e&&(e=nl),void 0===t&&(t={});var r=this;this.options=Bi(Bi({},ns),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Za&&ts&&(ts=!1,function(e){for(var t=document.querySelectorAll(Ul),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Ua)!==Ya&&(Xl(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),jl(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return Bl.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||0===a.length)return"continue";var l="".concat(Ua,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(Ja)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return Gl(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Bi(Bi({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new es(n):t?new Zl(n):new Ql(n)}(this.options),new $l(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Gl(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Gl(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Gl(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),os=/&/g,is=/^\s*\/\/.*$/gm;function as(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=as(e.children,t)),e}))}function ls(e){var t,n,r,o=void 0===e?nl:e,i=o.options,a=void 0===i?nl:i,l=o.plugins,s=void 0===l?tl:l,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===Xi&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(os,n).replace(r,u))})),a.prefix&&c.push(Ga),c.push(Wa);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(is,""),u=Na(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=as(u,a.namespace));var d,p=[];return Ba(u,function(e){var t=fa(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||zl(15),ml(e,t.name)}),fl).toString():"",d}var ss=new rs,us=ls(),cs=x.createContext({shouldForwardProp:void 0,styleSheet:ss,stylis:us});cs.Consumer;var ds=x.createContext(void 0);function ps(){return w(cs)}function fs(e){var t=E(e.stylisPlugins),n=t[0],r=t[1],o=ps().styleSheet,i=S((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),a=S((function(){return ls({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})}),[e.enableVendorPrefixes,e.namespace,n]);C((function(){Gi(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]);var l=S((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return x.createElement(cs.Provider,{value:l},x.createElement(ds.Provider,{value:a},e.children))}var ms=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=us);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,jl(this,(function(){throw zl(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=us),this.name+e.hash},e}(),hs=function(e){return e>="A"&&e<="Z"};function gs(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;hs(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var bs=function(e){return null==e||!1===e||""===e},vs=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!bs(i)&&(Array.isArray(i)&&i.isCss||Tl(i)?r.push("".concat(gs(o),":"),i,";"):Nl(i)?r.push.apply(r,Wi(Wi(["".concat(o," {")],vs(i),!1),["}"],!1)):r.push("".concat(gs(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Va||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ys(e,t,n,r){return bs(e)?[]:kl(e)?[".".concat(e.styledComponentId)]:Tl(e)?!Tl(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:ys(e(t),t,n,r):e instanceof ms?n?(e.inject(n,r),[e.getName(r)]):[e]:Nl(e)?vs(e):Array.isArray(e)?Array.prototype.concat.apply(tl,e.map((function(e){return ys(e,t,n,r)}))):[e.toString()];var o}function xs(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Tl(n)&&!kl(n))return!1}return!0}var Ss=hl(Xa),Es=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&xs(e),this.componentId=t,this.baseHash=ml(Ss,t),this.baseStyle=n,rs.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=_l(r,this.staticRulesId);else{var o=ql(ys(this.rules,e,t,n)),i=dl(ml(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=_l(r,i),this.staticRulesId=i}else{for(var l=ml(this.baseHash,n.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=ql(ys(c,e,t,n));l=ml(l,d+u),s+=d}}if(s){var p=dl(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=_l(r,p)}}return r},e}(),Cs=x.createContext(void 0);Cs.Consumer;var ws={};new Set;function Rs(e,t,n){var r=kl(e),o=e,i=!bl(e),a=t.attrs,l=void 0===a?tl:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":ll(e);ws[n]=(ws[n]||0)+1;var r="".concat(n,"-").concat(gl(Xa+n+ws[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return bl(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(ll(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(r&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var b=new Es(n,p,r?o.componentStyle:void 0);function v(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=x.useContext(Cs),c=ps(),d=e.shouldForwardProp||c.shouldForwardProp,p=rl(t,u,i)||nl,f=function(e,t,n){for(var r,o=Bi(Bi({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=Tl(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?_l(o[l],a[l]):"style"===l?Bi(Bi({},o[l]),a[l]):a[l]}return t.className&&(o.className=_l(o.className,t.className)),o}(r,t,p),m=f.as||s,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var b=function(e,t){var n=ps();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),v=_l(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),h[bl(m)&&!ol.has(m)?"class":"className"]=v,h.ref=n,R(m,h)}(y,e,t)}v.displayName=d;var y=x.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=r?_l(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Fl(e,o[r],!0);return e}({},o.defaultProps,e):e}}),jl(y,(function(){return".".concat(y.styledComponentId)})),i&&Ol(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function As(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var Ps=function(e){return Object.assign(e,{isCss:!0})};function Is(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Tl(e)||Nl(e))return Ps(ys(As(tl,Wi([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?ys(r):Ps(ys(As(r,t)))}function Ls(e,t,n){if(void 0===n&&(n=nl),!t)throw zl(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,Is.apply(void 0,Wi([r],o,!1)))};return r.attrs=function(r){return Ls(e,t,Bi(Bi({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Ls(e,t,Bi(Bi({},n),r))},r}var Ds=function(e){return Ls(Rs,e)},Ms=Ds;ol.forEach((function(e){Ms[e]=Ds(e)}));var Os=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=xs(e),rs.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(ql(ys(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&rs.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Ts(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Is.apply(void 0,Wi([e],t,!1)),o="sc-global-".concat(gl(JSON.stringify(r))),i=new Os(r,o),a=function(e){var t=ps(),n=x.useContext(Cs),r=x.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,el,n,o);else{var l=Bi(Bi({},t),{theme:rl(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return x.memo(a)}function ks(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ql(Is.apply(void 0,Wi([e],t,!1))),o=gl(r);return new ms(o,r)}var _s={exports:{}};function qs(){}function Ns(){}Ns.resetWarningCache=qs;_s.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ns,resetWarningCache:qs};return n.PropTypes=n,n}();var Fs=nn(_s.exports);function js(e){const{injectFirst:t,children:n}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return n}js.propTypes={children:Fs.node,injectFirst:Fs.bool};const zs=Ts((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var $s=zs;
12
+ /**
13
+ * @mui/styled-engine-sc v6.0.0-alpha.17
11
14
  *
15
+ * @license MIT
12
16
  * This source code is licensed under the MIT license found in the
13
17
  * LICENSE file in the root directory of this source tree.
14
18
  */
15
- function Aa(e,t){let n;return n=t?Ca(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ca(e),n}wa.propTypes={defaultTheme:er.object,styles:er.oneOfType([er.string,er.object,er.func])};const Da=["values","unit","step"],Pa=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)=>Gn({},e,{[t.key]:t.val})),{})};var Ia={borderRadius:4};function Ta(e,t){return t?Zn(e,t,{clone:!1}):e}const Ma={xs:0,sm:600,md:900,lg:1200,xl:1536},La={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ma[e]}px)`};function qa(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||La;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||La;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Ma).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function ka(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 Oa(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:ka(e,n)||r,t&&(o=t(o,r,e)),o}function Na(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=ka(e.theme,r)||{};return qa(e,i,(e=>{let r=Oa(a,o,e);return e===r&&"string"==typeof e&&(r=Oa(a,o,`${t}${"default"===e?"":nr(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const _a={m:"margin",p:"padding"},Fa={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},za={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ha=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!za[e])return[e];e=za[e]}const[t,n]=e.split(""),r=_a[t],o=Fa[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),ja=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ba=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function $a(e,t,n,r){var o;const i=null!=(o=ka(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 Wa(e){return $a(e,"spacing",8)}function Va(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 Ua(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Va(t,n),e)),{})}(Ha(n),r);return qa(e,e[n],o)}function Ga(e,t){const n=Wa(e.theme);return Object.keys(e).map((r=>Ua(e,t,r,n))).reduce(Ta,{})}function Ya(e){return Ga(e,ja)}function Ka(e){return Ga(e,Ba)}function Za(...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]?Ta(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Xa(e){return"number"!=typeof e?e:`${e}px solid`}function Ja(e,t){return Na({prop:e,themeKey:"borders",transform:t})}Ya.propTypes={},Ya.filterProps=ja,Ka.propTypes={},Ka.filterProps=Ba;const Qa=Ja("border",Xa),el=Ja("borderTop",Xa),tl=Ja("borderRight",Xa),nl=Ja("borderBottom",Xa),rl=Ja("borderLeft",Xa),ol=Ja("borderColor"),il=Ja("borderTopColor"),al=Ja("borderRightColor"),ll=Ja("borderBottomColor"),sl=Ja("borderLeftColor"),ul=Ja("outline",Xa),cl=Ja("outlineColor"),dl=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=$a(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Va(t,e)});return qa(e,e.borderRadius,n)}return null};dl.propTypes={},dl.filterProps=["borderRadius"],Za(Qa,el,tl,nl,rl,ol,il,al,ll,sl,dl,ul,cl);const pl=e=>{if(void 0!==e.gap&&null!==e.gap){const t=$a(e.theme,"spacing",8),n=e=>({gap:Va(t,e)});return qa(e,e.gap,n)}return null};pl.propTypes={},pl.filterProps=["gap"];const fl=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=$a(e.theme,"spacing",8),n=e=>({columnGap:Va(t,e)});return qa(e,e.columnGap,n)}return null};fl.propTypes={},fl.filterProps=["columnGap"];const ml=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=$a(e.theme,"spacing",8),n=e=>({rowGap:Va(t,e)});return qa(e,e.rowGap,n)}return null};ml.propTypes={},ml.filterProps=["rowGap"];function hl(e,t){return"grey"===t?t:e}Za(pl,fl,ml,Na({prop:"gridColumn"}),Na({prop:"gridRow"}),Na({prop:"gridAutoFlow"}),Na({prop:"gridAutoColumns"}),Na({prop:"gridAutoRows"}),Na({prop:"gridTemplateColumns"}),Na({prop:"gridTemplateRows"}),Na({prop:"gridTemplateAreas"}),Na({prop:"gridArea"}));function gl(e){return e<=1&&0!==e?100*e+"%":e}Za(Na({prop:"color",themeKey:"palette",transform:hl}),Na({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:hl}),Na({prop:"backgroundColor",themeKey:"palette",transform:hl}));const bl=Na({prop:"width",transform:gl}),vl=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])||Ma[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:gl(t)}};return qa(e,e.maxWidth,t)}return null};vl.filterProps=["maxWidth"];const yl=Na({prop:"minWidth",transform:gl}),xl=Na({prop:"height",transform:gl}),Sl=Na({prop:"maxHeight",transform:gl}),El=Na({prop:"minHeight",transform:gl});Na({prop:"size",cssProperty:"width",transform:gl}),Na({prop:"size",cssProperty:"height",transform:gl});Za(bl,vl,yl,xl,Sl,El,Na({prop:"boxSizing"}));var Cl={border:{themeKey:"borders",transform:Xa},borderTop:{themeKey:"borders",transform:Xa},borderRight:{themeKey:"borders",transform:Xa},borderBottom:{themeKey:"borders",transform:Xa},borderLeft:{themeKey:"borders",transform:Xa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Xa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:dl},color:{themeKey:"palette",transform:hl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:hl},backgroundColor:{themeKey:"palette",transform:hl},p:{style:Ka},pt:{style:Ka},pr:{style:Ka},pb:{style:Ka},pl:{style:Ka},px:{style:Ka},py:{style:Ka},padding:{style:Ka},paddingTop:{style:Ka},paddingRight:{style:Ka},paddingBottom:{style:Ka},paddingLeft:{style:Ka},paddingX:{style:Ka},paddingY:{style:Ka},paddingInline:{style:Ka},paddingInlineStart:{style:Ka},paddingInlineEnd:{style:Ka},paddingBlock:{style:Ka},paddingBlockStart:{style:Ka},paddingBlockEnd:{style:Ka},m:{style:Ya},mt:{style:Ya},mr:{style:Ya},mb:{style:Ya},ml:{style:Ya},mx:{style:Ya},my:{style:Ya},margin:{style:Ya},marginTop:{style:Ya},marginRight:{style:Ya},marginBottom:{style:Ya},marginLeft:{style:Ya},marginX:{style:Ya},marginY:{style:Ya},marginInline:{style:Ya},marginInlineStart:{style:Ya},marginInlineEnd:{style:Ya},marginBlock:{style:Ya},marginBlockStart:{style:Ya},marginBlockEnd:{style:Ya},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:pl},rowGap:{style:ml},columnGap:{style:fl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:gl},maxWidth:{style:vl},minWidth:{transform:gl},height:{transform:gl},maxHeight:{transform:gl},minHeight:{transform:gl},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const wl=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=ka(n,l)||{};if(u)return u(o);return qa(o,t,(t=>{let n=Oa(c,s,t);return t===n&&"string"==typeof t&&(n=Oa(c,s,`${e}${"default"===t?"":nr(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:Cl;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=Ta(s,e(n,o,i,a));else{const e=qa({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=Ta(s,e):s[n]=t({sx:o,theme:i})}else s=Ta(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();wl.filterProps=["sx"];var Rl=wl;const Al=["breakpoints","palette","spacing","shape"];function Dl(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=qr(e,Al),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=qr(e,Da),i=Pa(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(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 Gn({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}(n),s=function(e=8){if(e.mui)return e;const t=Wa({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 u=Zn({breakpoints:l,direction:"ltr",components:{},palette:Gn({mode:"light"},r),spacing:s,shape:Gn({},Ia,i)},a);return u=t.reduce(((e,t)=>Zn(e,t)),u),u.unstable_sxConfig=Gn({},Cl,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Rl({sx:e,theme:this})},u}function Pl(e=null){const t=y.useContext(ba);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Il=Dl();function Tl(e=Il){return Pl(e)}var Ml={exports:{}},Ll={},ql=x,kl=Symbol.for("react.element"),Ol=Symbol.for("react.fragment"),Nl=Object.prototype.hasOwnProperty,_l=ql.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Fl={key:!0,ref:!0,__self:!0,__source:!0};function zl(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Nl.call(t,r)&&!Fl.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:kl,type:e,key:i,ref:a,props:o,_owner:_l.current}}Ll.Fragment=Ol,Ll.jsx=zl,Ll.jsxs=zl,Ml.exports=Ll;var Hl=Ml.exports;function jl({styles:e,themeId:t,defaultTheme:n={}}){const r=Tl(n),o="function"==typeof e?e(t&&r[t]||r):e;return Hl.jsx(Ra,{styles:o})}const Bl=["sx"],$l=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Cl;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Wl(e){const{sx:t}=e,n=qr(e,Bl),{systemProps:r,otherProps:o}=$l(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Yn(n)?Gn({},r,n):r}:Gn({},r,t),Gn({},o,{sx:i})}function Vl(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Vl(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ul(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Vl(e))&&(r&&(r+=" "),r+=t);return r}const Gl=["className","component"];const Yl=["variant"];function Kl(e){return 0===e.length}function Zl(e){const{variant:t}=e,n=qr(e,Yl);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?Kl(r)?e[t]:nr(e[t]):`${Kl(r)?t:nr(t)}${nr(e[t].toString())}`})),r}const Xl=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];const Jl=e=>{const t={};return e&&e.forEach((e=>{const n=Zl(e.props);t[n]=e.style})),t},Ql=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach((n=>{let i=!0;Object.keys(n.props).forEach((t=>{r[t]!==n.props[t]&&e[t]!==n.props[t]&&(i=!1)})),i&&o.push(t[Zl(n.props)])})),o};function es(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const ts=Dl(),ns=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function rs({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function os(e){return e?(t,n)=>n[e]:null}const is=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(Gn({},t,{theme:rs(Gn({},t,{defaultTheme:n,themeId:r}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){return[o,...Ql(t,Jl(i),i)]}return o};function as({props:e,name:t,defaultTheme:n,themeId:r}){let o=Tl(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Rr(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function ls(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function ss(e){if(e.type)return e;if("#"===e.charAt(0))return ss(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(tr(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(tr(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function us(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 cs(e){let t="hsl"===(e=ss(e)).type||"hsla"===e.type?ss(function(e){e=ss(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),us({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ds(e,t){return e=ss(e),t=ls(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,us(e)}function ps(e,t){if(e=ss(e),t=ls(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 us(e)}function fs(e,t){if(e=ss(e),t=ls(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 us(e)}var ms=y.createContext(null);function hs(){return y.useContext(ms)}var gs="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function bs(e){const{children:t,theme:n}=e,r=hs(),o=y.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Gn({},e,t)}(r,n);return null!=e&&(e[gs]=null!==r),e}),[n,r]);return Hl.jsx(ms.Provider,{value:o,children:t})}const vs={};function ys(e,t,n,r=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Gn({},t,{[e]:i}):i;return r?()=>a:a}return Gn({},t,e?{[e]:n}:n)}),[e,t,n,r])}function xs(e){const{children:t,theme:n,themeId:r}=e,o=Pl(vs),i=hs()||vs,a=ys(r,o,n),l=ys(r,i,n,!0);return Hl.jsx(bs,{theme:l,children:Hl.jsx(ba.Provider,{value:a,children:t})})}var Ss={black:"#000",white:"#fff"};var Es={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var Cs={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var ws={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var Rs={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var As={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var Ds={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Ps={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const Is=["mode","contrastThreshold","tonalOffset"],Ts={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:Ss.white,default:Ss.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}},Ms={text:{primary:Ss.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:Ss.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 Ls(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=fs(e.main,o):"dark"===t&&(e.dark=ps(e.main,i)))}function qs(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=qr(e,Is),i=e.primary||function(e="light"){return"dark"===e?{main:As[200],light:As[50],dark:As[400]}:{main:As[700],light:As[400],dark:As[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Cs[200],light:Cs[50],dark:Cs[400]}:{main:Cs[500],light:Cs[300],dark:Cs[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:ws[500],light:ws[300],dark:ws[700]}:{main:ws[700],light:ws[400],dark:ws[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Ds[400],light:Ds[300],dark:Ds[700]}:{main:Ds[700],light:Ds[500],dark:Ds[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Ps[400],light:Ps[300],dark:Ps[700]}:{main:Ps[800],light:Ps[500],dark:Ps[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Rs[400],light:Rs[300],dark:Rs[700]}:{main:"#ed6c02",light:Rs[500],dark:Rs[900]}}(t);function d(e){const t=function(e,t){const n=cs(e),r=cs(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Ms.text.primary)>=n?Ms.text.primary:Ts.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Gn({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(tr(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(tr(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ls(e,"light",o,r),Ls(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Ms,light:Ts};return Zn(Gn({common:Gn({},Ss),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:Es,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const ks=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Os={textTransform:"uppercase"},Ns='"Roboto", "Helvetica", "Arial", sans-serif';function _s(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Ns,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=qr(n,ks),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return Gn({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===Ns?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,Os),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Os),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Zn(Gn({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Fs(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var zs=["none",Fs(0,2,1,-1,0,1,1,0,0,1,3,0),Fs(0,3,1,-2,0,2,2,0,0,1,5,0),Fs(0,3,3,-2,0,3,4,0,0,1,8,0),Fs(0,2,4,-1,0,4,5,0,0,1,10,0),Fs(0,3,5,-1,0,5,8,0,0,1,14,0),Fs(0,3,5,-1,0,6,10,0,0,1,18,0),Fs(0,4,5,-2,0,7,10,1,0,2,16,1),Fs(0,5,5,-3,0,8,10,1,0,3,14,2),Fs(0,5,6,-3,0,9,12,1,0,3,16,2),Fs(0,6,6,-3,0,10,14,1,0,4,18,3),Fs(0,6,7,-4,0,11,15,1,0,4,20,3),Fs(0,7,8,-4,0,12,17,2,0,5,22,4),Fs(0,7,8,-4,0,13,19,2,0,5,24,4),Fs(0,7,9,-4,0,14,21,2,0,5,26,4),Fs(0,8,9,-5,0,15,22,2,0,6,28,5),Fs(0,8,10,-5,0,16,24,2,0,6,30,5),Fs(0,8,11,-5,0,17,26,2,0,6,32,5),Fs(0,9,11,-5,0,18,28,2,0,7,34,6),Fs(0,9,12,-6,0,19,29,2,0,7,36,6),Fs(0,10,13,-6,0,20,31,3,0,8,38,7),Fs(0,10,13,-6,0,21,33,3,0,8,40,7),Fs(0,10,14,-6,0,22,35,3,0,8,42,7),Fs(0,11,14,-7,0,23,36,3,0,9,44,8),Fs(0,11,15,-7,0,24,38,3,0,9,46,8)];const Hs=["duration","easing","delay"],js={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)"},Bs={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function $s(e){return`${Math.round(e)}ms`}function Ws(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Vs(e){const t=Gn({},js,e.easing),n=Gn({},Bs,e.duration);return Gn({getAutoHeightDuration:Ws,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return qr(r,Hs),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:$s(o)} ${i} ${"string"==typeof a?a:$s(a)}`)).join(",")}},e,{easing:t,duration:n})}var Us={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Gs=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ys(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=qr(e,Gs);if(e.vars)throw new Error(tr(18));const l=qs(r),s=Dl(e);let u=Zn(s,{mixins:(c=s.breakpoints,d=n,Gn({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:zs.slice(),typography:_s(l,i),transitions:Vs(o),zIndex:Gn({},Us)});var c,d;return u=Zn(u,a),u=t.reduce(((e,t)=>Zn(e,t)),u),u.unstable_sxConfig=Gn({},Cl,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Rl({sx:e,theme:this})},u}var Ks=Ys();function Zs(){const e=Tl(Ks);return e[Lr]||e}function Xs({props:e,name:t}){return as({props:e,name:t,defaultTheme:Ks,themeId:Lr})}const Js=e=>es(e)&&"classes"!==e,Qs=es,eu=function(e={}){const{themeId:t,defaultTheme:n=ts,rootShouldForwardProp:r=es,slotShouldForwardProp:o=es}=e,i=e=>Rl(Gn({},e,{theme:rs(Gn({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=os(ns(s))}=a,p=qr(a,Xl),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=es;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Aa(e,Gn({shouldForwardProp:h,label:undefined},p)),b=(r,...o)=>{const a=o?o.map((e=>{if("function"==typeof e&&e.__emotion_real!==e)return r=>is({styledArg:e,props:r,defaultTheme:n,themeId:t});if(Yn(e)){let t,n=e;return e&&e.variants&&(t=e.variants,delete n.variants,n=n=>{let r=e;return Ql(n,Jl(t),t).forEach((e=>{r=Zn(r,e)})),r}),n}return e})):[];let s=r;if(Yn(r)){let e;r&&r.variants&&(e=r.variants,delete s.variants,s=t=>{let n=r;return Ql(t,Jl(e),e).forEach((e=>{n=Zn(n,e)})),n})}else"function"==typeof r&&r.__emotion_real!==r&&(s=e=>is({styledArg:r,props:e,defaultTheme:n,themeId:t}));l&&d&&a.push((e=>{const r=rs(Gn({},e,{defaultTheme:n,themeId:t})),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(l,r);if(o){const t={};return Object.entries(o).forEach((([n,o])=>{t[n]="function"==typeof o?o(Gn({},e,{theme:r})):o})),d(e,t)}return null})),l&&!f&&a.push((e=>{const r=rs(Gn({},e,{defaultTheme:n,themeId:t}));return((e,t,n,r)=>{var o;const i=null==n||null==(o=n.components)||null==(o=o[r])?void 0:o.variants;return Ql(e,t,i)})(e,((e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),Jl(n)})(l,r),r,l)})),m||a.push(i);const u=a.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");s=[...r,...e],s.raw=[...r.raw,...e]}const c=g(s,...a);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}}({themeId:Lr,defaultTheme:Ks,rootShouldForwardProp:Js});var tu=eu;const nu=["theme"];function ru(e){let{theme:t}=e,n=qr(e,nu);const r=t[Lr];return Hl.jsx(xs,Gn({},n,{themeId:r?Lr:void 0,theme:r||t}))}var ou=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},iu={},au={exports:{}};
19
+ function Hs(e,t){let n;return n=t?Ms(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ms(e),n}zs.propTypes={defaultTheme:Fs.object,styles:Fs.oneOfType([Fs.array,Fs.string,Fs.object,Fs.func])};var Bs=Object.freeze({__proto__:null,GlobalStyles:$s,StyledEngineProvider:js,ThemeContext:Cs,css:Is,default:Hs,internal_processStyles:(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))},keyframes:ks});function Ws(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 Gs(e){if(!Ws(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Gs(e[n])})),t}function Vs(e,t,n={clone:!0}){const r=n.clone?$i({},e):e;return Ws(e)&&Ws(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Ws(t[o])&&o in e&&Ws(e[o])?r[o]=Vs(e[o],t[o],n):n.clone?r[o]=Ws(t[o])?Gs(t[o]):t[o]:r[o]=t[o])})),r}var Us=Object.freeze({__proto__:null,default:Vs,isPlainObject:Ws});const Ys=["values","unit","step"],Ks=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)=>$i({},e,{[t.key]:t.val})),{})};function Xs(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Hi(e,Ys),i=Ks(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(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 $i({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var Js={borderRadius:4};function Zs(e,t){return t?Vs(e,t,{clone:!1}):e}const Qs={xs:0,sm:600,md:900,lg:1200,xl:1536},eu={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qs[e]}px)`};function tu(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||eu;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||eu;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Qs).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function nu(e){if("string"!=typeof e)throw new Error(Fi(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ru=Object.freeze({__proto__:null,default:nu});function ou(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 iu(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:ou(e,n)||r,t&&(o=t(o,r,e)),o}function au(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=ou(e.theme,r)||{};return tu(e,i,(e=>{let r=iu(a,o,e);return e===r&&"string"==typeof e&&(r=iu(a,o,`${t}${"default"===e?"":nu(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const lu={m:"margin",p:"padding"},su={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},uu={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},cu=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!uu[e])return[e];e=uu[e]}const[t,n]=e.split(""),r=lu[t],o=su[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),du=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],pu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function fu(e,t,n,r){var o;const i=null!=(o=ou(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 mu(e){return fu(e,"spacing",8)}function hu(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 gu(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=hu(t,n),e)),{})}(cu(n),r);return tu(e,e[n],o)}function bu(e,t){const n=mu(e.theme);return Object.keys(e).map((r=>gu(e,t,r,n))).reduce(Zs,{})}function vu(e){return bu(e,du)}function yu(e){return bu(e,pu)}function xu(...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]?Zs(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Su(e){return"number"!=typeof e?e:`${e}px solid`}function Eu(e,t){return au({prop:e,themeKey:"borders",transform:t})}vu.propTypes={},vu.filterProps=du,yu.propTypes={},yu.filterProps=pu;const Cu=Eu("border",Su),wu=Eu("borderTop",Su),Ru=Eu("borderRight",Su),Au=Eu("borderBottom",Su),Pu=Eu("borderLeft",Su),Iu=Eu("borderColor"),Lu=Eu("borderTopColor"),Du=Eu("borderRightColor"),Mu=Eu("borderBottomColor"),Ou=Eu("borderLeftColor"),Tu=Eu("outline",Su),ku=Eu("outlineColor"),_u=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=fu(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:hu(t,e)});return tu(e,e.borderRadius,n)}return null};_u.propTypes={},_u.filterProps=["borderRadius"],xu(Cu,wu,Ru,Au,Pu,Iu,Lu,Du,Mu,Ou,_u,Tu,ku);const qu=e=>{if(void 0!==e.gap&&null!==e.gap){const t=fu(e.theme,"spacing",8),n=e=>({gap:hu(t,e)});return tu(e,e.gap,n)}return null};qu.propTypes={},qu.filterProps=["gap"];const Nu=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=fu(e.theme,"spacing",8),n=e=>({columnGap:hu(t,e)});return tu(e,e.columnGap,n)}return null};Nu.propTypes={},Nu.filterProps=["columnGap"];const Fu=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=fu(e.theme,"spacing",8),n=e=>({rowGap:hu(t,e)});return tu(e,e.rowGap,n)}return null};Fu.propTypes={},Fu.filterProps=["rowGap"];function ju(e,t){return"grey"===t?t:e}xu(qu,Nu,Fu,au({prop:"gridColumn"}),au({prop:"gridRow"}),au({prop:"gridAutoFlow"}),au({prop:"gridAutoColumns"}),au({prop:"gridAutoRows"}),au({prop:"gridTemplateColumns"}),au({prop:"gridTemplateRows"}),au({prop:"gridTemplateAreas"}),au({prop:"gridArea"}));function zu(e){return e<=1&&0!==e?100*e+"%":e}xu(au({prop:"color",themeKey:"palette",transform:ju}),au({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ju}),au({prop:"backgroundColor",themeKey:"palette",transform:ju}));const $u=au({prop:"width",transform:zu}),Hu=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])||Qs[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:zu(t)}};return tu(e,e.maxWidth,t)}return null};Hu.filterProps=["maxWidth"];const Bu=au({prop:"minWidth",transform:zu}),Wu=au({prop:"height",transform:zu}),Gu=au({prop:"maxHeight",transform:zu}),Vu=au({prop:"minHeight",transform:zu});au({prop:"size",cssProperty:"width",transform:zu}),au({prop:"size",cssProperty:"height",transform:zu});xu($u,Hu,Bu,Wu,Gu,Vu,au({prop:"boxSizing"}));var Uu={border:{themeKey:"borders",transform:Su},borderTop:{themeKey:"borders",transform:Su},borderRight:{themeKey:"borders",transform:Su},borderBottom:{themeKey:"borders",transform:Su},borderLeft:{themeKey:"borders",transform:Su},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Su},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:_u},color:{themeKey:"palette",transform:ju},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ju},backgroundColor:{themeKey:"palette",transform:ju},p:{style:yu},pt:{style:yu},pr:{style:yu},pb:{style:yu},pl:{style:yu},px:{style:yu},py:{style:yu},padding:{style:yu},paddingTop:{style:yu},paddingRight:{style:yu},paddingBottom:{style:yu},paddingLeft:{style:yu},paddingX:{style:yu},paddingY:{style:yu},paddingInline:{style:yu},paddingInlineStart:{style:yu},paddingInlineEnd:{style:yu},paddingBlock:{style:yu},paddingBlockStart:{style:yu},paddingBlockEnd:{style:yu},m:{style:vu},mt:{style:vu},mr:{style:vu},mb:{style:vu},ml:{style:vu},mx:{style:vu},my:{style:vu},margin:{style:vu},marginTop:{style:vu},marginRight:{style:vu},marginBottom:{style:vu},marginLeft:{style:vu},marginX:{style:vu},marginY:{style:vu},marginInline:{style:vu},marginInlineStart:{style:vu},marginInlineEnd:{style:vu},marginBlock:{style:vu},marginBlockStart:{style:vu},marginBlockEnd:{style:vu},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:qu},rowGap:{style:Fu},columnGap:{style:Nu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zu},maxWidth:{style:Hu},minWidth:{transform:zu},height:{transform:zu},maxHeight:{transform:zu},minHeight:{transform:zu},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Yu(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=ou(n,l)||{};if(u)return u(o);return tu(o,t,(t=>{let n=iu(c,s,t);return t===n&&"string"==typeof t&&(n=iu(c,s,`${e}${"default"===t?"":nu(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:Uu;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=Zs(s,e(n,o,i,a));else{const e=tu({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=Zs(s,e):s[n]=t({sx:o,theme:i})}else s=Zs(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const Ku=Yu();Ku.filterProps=["sx"];var Xu=Ku;function Ju(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const Zu=["breakpoints","palette","spacing","shape"];function Qu(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Hi(e,Zu),l=Xs(n),s=function(e=8){if(e.mui)return e;const t=mu({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 u=Vs({breakpoints:l,direction:"ltr",components:{},palette:$i({mode:"light"},r),spacing:s,shape:$i({},Js,i)},a);return u.applyStyles=Ju,u=t.reduce(((e,t)=>Vs(e,t)),u),u.unstable_sxConfig=$i({},Uu,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Xu({sx:e,theme:this})},u}var ec=Object.freeze({__proto__:null,default:Qu,private_createBreakpoints:Xs,unstable_applyStyles:Ju});function tc(e=null){const t=y.useContext(Cs);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const nc=Qu();function rc(e=nc){return tc(e)}const oc=["sx"],ic=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Uu;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function ac(e){const{sx:t}=e,n=Hi(e,oc),{systemProps:r,otherProps:o}=ic(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Ws(n)?$i({},r,n):r}:$i({},r,t),$i({},o,{sx:i})}var lc=Object.freeze({__proto__:null,default:Xu,extendSxProp:ac,unstable_createStyleFunctionSx:Yu,unstable_defaultSxConfig:Uu});const sc=e=>e;var uc=(()=>{let e=sc;return{configure(t){e=t},generate:t=>e(t),reset(){e=sc}}})();function cc(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=cc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function dc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=cc(e))&&(r&&(r+=" "),r+=t);return r}const pc=["className","component"];const fc={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 mc(e,t,n="Mui"){const r=fc[t];return r?`${n}-${r}`:`${uc.generate(e)}-${t}`}function hc(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=mc(e,t,n)})),r}var gc,bc={exports:{}},vc={},yc=Symbol.for("react.element"),xc=Symbol.for("react.portal"),Sc=Symbol.for("react.fragment"),Ec=Symbol.for("react.strict_mode"),Cc=Symbol.for("react.profiler"),wc=Symbol.for("react.provider"),Rc=Symbol.for("react.context"),Ac=Symbol.for("react.server_context"),Pc=Symbol.for("react.forward_ref"),Ic=Symbol.for("react.suspense"),Lc=Symbol.for("react.suspense_list"),Dc=Symbol.for("react.memo"),Mc=Symbol.for("react.lazy"),Oc=Symbol.for("react.offscreen");function Tc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case yc:switch(e=e.type){case Sc:case Cc:case Ec:case Ic:case Lc:return e;default:switch(e=e&&e.$$typeof){case Ac:case Rc:case Pc:case Mc:case Dc:case wc:return e;default:return t}}case xc:return t}}}gc=Symbol.for("react.module.reference"),vc.ContextConsumer=Rc,vc.ContextProvider=wc,vc.Element=yc,vc.ForwardRef=Pc,vc.Fragment=Sc,vc.Lazy=Mc,vc.Memo=Dc,vc.Portal=xc,vc.Profiler=Cc,vc.StrictMode=Ec,vc.Suspense=Ic,vc.SuspenseList=Lc,vc.isAsyncMode=function(){return!1},vc.isConcurrentMode=function(){return!1},vc.isContextConsumer=function(e){return Tc(e)===Rc},vc.isContextProvider=function(e){return Tc(e)===wc},vc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===yc},vc.isForwardRef=function(e){return Tc(e)===Pc},vc.isFragment=function(e){return Tc(e)===Sc},vc.isLazy=function(e){return Tc(e)===Mc},vc.isMemo=function(e){return Tc(e)===Dc},vc.isPortal=function(e){return Tc(e)===xc},vc.isProfiler=function(e){return Tc(e)===Cc},vc.isStrictMode=function(e){return Tc(e)===Ec},vc.isSuspense=function(e){return Tc(e)===Ic},vc.isSuspenseList=function(e){return Tc(e)===Lc},vc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Sc||e===Cc||e===Ec||e===Ic||e===Lc||e===Oc||"object"==typeof e&&null!==e&&(e.$$typeof===Mc||e.$$typeof===Dc||e.$$typeof===wc||e.$$typeof===Rc||e.$$typeof===Pc||e.$$typeof===gc||void 0!==e.getModuleId)},vc.typeOf=Tc,bc.exports=vc;var kc=bc.exports;const _c=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function qc(e){const t=`${e}`.match(_c);return t&&t[1]||""}function Nc(e,t=""){return e.displayName||e.name||qc(e)||t}function Fc(e,t,n){const r=Nc(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var jc=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Nc(e,"Component");if("object"==typeof e)switch(e.$$typeof){case kc.ForwardRef:return Fc(e,e.render,"ForwardRef");case kc.Memo:return Fc(e,e.type,"memo");default:return}}},getFunctionName:qc});function zc(e,t){const n=$i({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=$i({},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]=$i({},i),Object.keys(o).forEach((e=>{n[r][e]=zc(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function $c({props:e,name:t,defaultTheme:n,themeId:r}){let o=rc(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?zc(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}var Hc="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function Bc(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var Wc=Object.freeze({__proto__:null,default:Bc});function Gc(e){if(e.type)return e;if("#"===e.charAt(0))return Gc(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(Fi(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(Fi(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function Vc(e,t){return e=Gc(e),t=function(e,t=0,n=1){return Bc(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 Uc(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Yc(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Kc(e){return e&&e.ownerDocument||document}function Xc(e){return Kc(e).defaultView||window}function Jc(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Zc(e){const t=y.useRef(e);return Hc((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function Qc(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Jc(e,t)}))}),e)}const ed={};const td=[];let nd=class e{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new e}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}};function rd(){const e=function(e,t){const n=y.useRef(ed);return n.current===ed&&(n.current=e(t)),n}(nd.create).current;var t;return t=e.disposeEffect,y.useEffect(t,td),e}let od=!0,id=!1;const ad=new nd,ld={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 sd(e){e.metaKey||e.altKey||e.ctrlKey||(od=!0)}function ud(){od=!1}function cd(){"hidden"===this.visibilityState&&id&&(od=!0)}function dd(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return od||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!ld[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function pd(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",sd,!0),t.addEventListener("mousedown",ud,!0),t.addEventListener("pointerdown",ud,!0),t.addEventListener("touchstart",ud,!0),t.addEventListener("visibilitychange",cd,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!dd(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(id=!0,ad.start(100,(()=>{id=!1})),t.current=!1,!0)},ref:e}}function fd(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function md(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}var hd=y.createContext(null);function gd(){return y.useContext(hd)}var bd="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function vd(e){const{children:t,theme:n}=e,r=gd(),o=y.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return $i({},e,t)}(r,n);return null!=e&&(e[bd]=null!==r),e}),[n,r]);return Ni.jsx(hd.Provider,{value:o,children:t})}const yd={};function xd(e,t,n,r=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?$i({},t,{[e]:i}):i;return r?()=>a:a}return $i({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Sd(e){const{children:t,theme:n,themeId:r}=e,o=tc(yd),i=gd()||yd,a=xd(r,o,n),l=xd(r,i,n,!0);return Ni.jsx(vd,{theme:l,children:Ni.jsx(Cs.Provider,{value:a,children:t})})}var Ed,Cd={},wd={exports:{}};(Ed=wd).exports=function(e){return e&&e.__esModule?e:{default:e}},Ed.exports.__esModule=!0,Ed.exports.default=Ed.exports;var Rd=wd.exports,Ad=rn(ji),Pd=rn(Wc),Id=Rd;Object.defineProperty(Cd,"__esModule",{value:!0});var Ld=Cd.alpha=Hd;Cd.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=Nd(e),a=Nd(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return jd({type:"rgb",values:l})},Cd.colorChannel=void 0;var Dd=Cd.darken=Bd;Cd.decomposeColor=Nd,Cd.emphasize=function(e,t=.15){return $d(e)>.5?Bd(e,t):Wd(e,t)};var Md=Cd.getContrastRatio=function(e,t){const n=$d(e),r=$d(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};Cd.getLuminance=$d,Cd.hexToRgb=qd,Cd.hslToRgb=zd;var Od=Cd.lighten=Wd;Cd.private_safeAlpha=function(e,t,n){try{return Hd(e,t)}catch(t){return e}},Cd.private_safeColorChannel=void 0,Cd.private_safeDarken=function(e,t,n){try{return Bd(e,t)}catch(t){return e}},Cd.private_safeEmphasize=function e(t,n,r){try{return e(t,n)}catch(e){return t}},Cd.private_safeLighten=function(e,t,n){try{return Wd(e,t)}catch(t){return e}},Cd.recomposeColor=jd,Cd.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Nd(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 Td=Id(Ad),kd=Id(Pd);function _d(e,t=0,n=1){return(0,kd.default)(e,t,n)}function qd(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 Nd(e){if(e.type)return e;if("#"===e.charAt(0))return Nd(qd(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,Td.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,Td.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Fd=e=>{const t=Nd(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};Cd.colorChannel=Fd;function jd(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 zd(e){e=Nd(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),jd({type:l,values:s})}function $d(e){let t="hsl"===(e=Nd(e)).type||"hsla"===e.type?Nd(zd(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 Hd(e,t){return e=Nd(e),t=_d(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,jd(e)}function Bd(e,t){if(e=Nd(e),t=_d(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 jd(e)}function Wd(e,t){if(e=Nd(e),t=_d(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 jd(e)}Cd.private_safeColorChannel=(e,t)=>{try{return Fd(e)}catch(t){return e}};var Gd={black:"#000",white:"#fff"};var Vd={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var Ud={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var Yd={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var Kd={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var Xd={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var Jd={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Zd={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const Qd=["mode","contrastThreshold","tonalOffset"],ep={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:Gd.white,default:Gd.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}},tp={text:{primary:Gd.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:Gd.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 np(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=Od(e.main,o):"dark"===t&&(e.dark=Dd(e.main,i)))}function rp(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Hi(e,Qd),i=e.primary||function(e="light"){return"dark"===e?{main:Xd[200],light:Xd[50],dark:Xd[400]}:{main:Xd[700],light:Xd[400],dark:Xd[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Ud[200],light:Ud[50],dark:Ud[400]}:{main:Ud[500],light:Ud[300],dark:Ud[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Yd[500],light:Yd[300],dark:Yd[700]}:{main:Yd[700],light:Yd[400],dark:Yd[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Jd[400],light:Jd[300],dark:Jd[700]}:{main:Jd[700],light:Jd[500],dark:Jd[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Zd[400],light:Zd[300],dark:Zd[700]}:{main:Zd[800],light:Zd[500],dark:Zd[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Kd[400],light:Kd[300],dark:Kd[700]}:{main:"#ed6c02",light:Kd[500],dark:Kd[900]}}(t);function d(e){return Md(e,tp.text.primary)>=n?tp.text.primary:ep.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=$i({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Fi(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Fi(12,t?` (${t})`:"",JSON.stringify(e.main)));return np(e,"light",o,r),np(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:tp,light:ep};return Vs($i({common:$i({},Gd),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:Vd,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const op=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const ip={textTransform:"uppercase"},ap='"Roboto", "Helvetica", "Arial", sans-serif';function lp(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=ap,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Hi(n,op),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return $i({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===ap?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,ip),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,ip),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Vs($i({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function sp(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var up=["none",sp(0,2,1,-1,0,1,1,0,0,1,3,0),sp(0,3,1,-2,0,2,2,0,0,1,5,0),sp(0,3,3,-2,0,3,4,0,0,1,8,0),sp(0,2,4,-1,0,4,5,0,0,1,10,0),sp(0,3,5,-1,0,5,8,0,0,1,14,0),sp(0,3,5,-1,0,6,10,0,0,1,18,0),sp(0,4,5,-2,0,7,10,1,0,2,16,1),sp(0,5,5,-3,0,8,10,1,0,3,14,2),sp(0,5,6,-3,0,9,12,1,0,3,16,2),sp(0,6,6,-3,0,10,14,1,0,4,18,3),sp(0,6,7,-4,0,11,15,1,0,4,20,3),sp(0,7,8,-4,0,12,17,2,0,5,22,4),sp(0,7,8,-4,0,13,19,2,0,5,24,4),sp(0,7,9,-4,0,14,21,2,0,5,26,4),sp(0,8,9,-5,0,15,22,2,0,6,28,5),sp(0,8,10,-5,0,16,24,2,0,6,30,5),sp(0,8,11,-5,0,17,26,2,0,6,32,5),sp(0,9,11,-5,0,18,28,2,0,7,34,6),sp(0,9,12,-6,0,19,29,2,0,7,36,6),sp(0,10,13,-6,0,20,31,3,0,8,38,7),sp(0,10,13,-6,0,21,33,3,0,8,40,7),sp(0,10,14,-6,0,22,35,3,0,8,42,7),sp(0,11,14,-7,0,23,36,3,0,9,44,8),sp(0,11,15,-7,0,24,38,3,0,9,46,8)];const cp=["duration","easing","delay"],dp={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)"},pp={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function fp(e){return`${Math.round(e)}ms`}function mp(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function hp(e){const t=$i({},dp,e.easing),n=$i({},pp,e.duration);return $i({getAutoHeightDuration:mp,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Hi(r,cp),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:fp(o)} ${i} ${"string"==typeof a?a:fp(a)}`)).join(",")}},e,{easing:t,duration:n})}var gp={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const bp=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function vp(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Hi(e,bp);if(e.vars)throw new Error(Fi(18));const l=rp(r),s=Qu(e);let u=Vs(s,{mixins:(c=s.breakpoints,d=n,$i({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:up.slice(),typography:lp(l,i),transitions:hp(o),zIndex:$i({},gp)});var c,d;return u=Vs(u,a),u=t.reduce(((e,t)=>Vs(e,t)),u),u.unstable_sxConfig=$i({},Uu,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Xu({sx:e,theme:this})},u}var yp=vp();function xp(){const e=rc(yp);return e[zi]||e}function Sp({props:e,name:t}){return $c({props:e,name:t,defaultTheme:yp,themeId:zi})}var Ep,Cp={},wp={exports:{}};var Rp,Ap={exports:{}};var Pp=rn(Bs),Ip=rn(Us),Lp=rn(ru),Dp=rn(jc),Mp=rn(ec),Op=rn(lc),Tp=Rd;Object.defineProperty(Cp,"__esModule",{value:!0});var kp=Cp.default=function(e={}){const{themeId:t,defaultTheme:n=Up,rootShouldForwardProp:r=Vp,slotShouldForwardProp:o=Vp}=e,i=e=>(0,$p.default)((0,qp.default)({},e,{theme:Kp((0,qp.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Fp.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Xp(Yp(s))}=a,p=(0,Np.default)(a,Wp),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=Vp;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,Fp.default)(e,(0,qp.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,jp.isPlainObject)(e)?r=>Jp(e,(0,qp.default)({},r,{theme:Kp({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=Kp((0,qp.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=Jp(n,(0,qp.default)({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=Kp((0,qp.default)({},e,{defaultTheme:n,themeId:t}));return Jp({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,qp.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}},_p=Cp.shouldForwardProp=Vp;Cp.systemDefaultTheme=void 0;var qp=Tp((Ep||(Ep=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(wp)),wp.exports)),Np=Tp((Rp||(Rp=1,function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports}(Ap)),Ap.exports)),Fp=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=Gp(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}(Pp),jp=Ip;Tp(Lp),Tp(Dp);var zp=Tp(Mp),$p=Tp(Op);const Hp=["ownerState"],Bp=["variants"],Wp=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Gp(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Gp=function(e){return e?n:t})(e)}function Vp(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Up=Cp.systemDefaultTheme=(0,zp.default)(),Yp=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Kp({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Xp(e){return e?(t,n)=>n[e]:null}function Jp(e,t){let{ownerState:n}=t,r=(0,Np.default)(t,Hp);const o="function"==typeof e?e((0,qp.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Jp(e,(0,qp.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Np.default)(o,Bp);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,qp.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,qp.default)({ownerState:n},r,n)):e.style))})),t}return o}const Zp=e=>_p(e)&&"classes"!==e;var Qp=kp({themeId:zi,defaultTheme:yp,rootShouldForwardProp:Zp});const ef=["theme"];function tf(e){let{theme:t}=e,n=Hi(e,ef);const r=t[zi];return Ni.jsx(Sd,$i({},n,{themeId:r?zi:void 0,theme:r||t}))}var nf=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},rf={exports:{}};
16
20
  /*!
17
- * Converts CSS stylesheets between left-to-right and right-to-left.
18
- * https://github.com/cssjanus/cssjanus
21
+ * CSSJanus. https://github.com/cssjanus/cssjanus
19
22
  *
23
+ * Copyright 2014 Trevor Parscal
24
+ * Copyright 2010 Roan Kattouw
20
25
  * Copyright 2008 Google Inc.
21
- * Copyright 2010 Trevor Parscal
26
+ *
27
+ * Licensed under the Apache License, Version 2.0 (the "License");
28
+ * you may not use this file except in compliance with the License.
29
+ * You may obtain a copy of the License at
30
+ *
31
+ * http://www.apache.org/licenses/LICENSE-2.0
32
+ *
33
+ * Unless required by applicable law or agreed to in writing, software
34
+ * distributed under the License is distributed on an "AS IS" BASIS,
35
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
36
+ * See the License for the specific language governing permissions and
37
+ * limitations under the License.
22
38
  */
23
- !function(e,t){var n;function r(e,t){var n=[],r=0;function o(e){return n.push(e),t}function i(){return n[r++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}n=new function(){var e="`TMP`",t="[^\\u0020-\\u007e]",n="(?:[0-9]*\\.[0-9]+|[0-9]+)",o="direction\\s*:\\s*",i="['\"]?\\s*",a="(^|[^a-zA-Z])",l="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",s="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",u="(?:[_a-z0-9-]|"+t+"|"+s+")",c=n+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+t+"|"+s+")")+u+"*")+")?",d="((?:-?"+c+")|(?:inherit|auto))",p="(#?"+u+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",f="(?:[!#$%&*-~]|"+t+"|"+s+")*?",m="(?![a-zA-Z])",h="(?!("+u+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'])*?{)",g="(?!"+f+i+"\\))",b="(?="+f+i+"\\))",v="(\\s*(?:!important\\s*)?[;}])",y=new RegExp("`TMP`","g"),x=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),S=new RegExp("("+l+h+"[^;}]+;?)","gi"),E=new RegExp("("+l+"[^\\}]*?})","gi"),C=new RegExp("("+o+")ltr","gi"),w=new RegExp("("+o+")rtl","gi"),R=new RegExp(a+"(left)"+m+g+h,"gi"),A=new RegExp(a+"(right)"+m+g+h,"gi"),D=new RegExp(a+"(left)"+b,"gi"),P=new RegExp(a+"(right)"+b,"gi"),I=new RegExp(a+"(ltr)"+b,"gi"),T=new RegExp(a+"(rtl)"+b,"gi"),M=new RegExp(a+"([ns]?)e-resize","gi"),L=new RegExp(a+"([ns]?)w-resize","gi"),q=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+d+"(\\s+)"+d+"(\\s+)"+d+"(\\s+)"+d+v,"gi"),k=new RegExp("((?:-color|border-style)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+v,"gi"),O=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+c+")","gi"),N=new RegExp("(background-position-x\\s*:\\s*)(-?"+n+"%)","gi"),_=new RegExp("(border-radius\\s*:\\s*)"+d+"(?:(?:\\s+"+d+")(?:\\s+"+d+")?(?:\\s+"+d+")?)?(?:(?:(?:\\s*\\/\\s*)"+d+")(?:\\s+"+d+")?(?:\\s+"+d+")?(?:\\s+"+d+")?)?"+v,"gi"),F=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+d,"gi"),z=new RegExp("(text-shadow\\s*:\\s*)"+d+"(\\s*)"+p,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+d,"gi"),j=new RegExp("(text-shadow\\s*:\\s*)"+d,"gi"),B=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+d+"(\\s*\\))","gi"),$=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+d+"((?:\\s*,\\s*"+d+"){0,2}\\s*\\))","gi");function W(e,t,n){var r,o;return"%"===n.slice(-1)&&(-1!==(r=n.indexOf("."))?(o=n.length-r-2,n=(n=100-parseFloat(n)).toFixed(o)+"%"):n=100-parseFloat(n)+"%"),t+n}function V(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function U(e,t){var n=[].slice.call(arguments),r=n.slice(2,6).filter((function(e){return e})),o=n.slice(6,10).filter((function(e){return e})),i=n[10]||"";return t+(o.length?V(r)+" / "+V(o):V(r))+i}function G(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function Y(e,t,n){return t+G(n)}function K(e,t,n,r,o){return t+n+G(r)+o}function Z(e,t,n,r,o){return t+n+r+G(o)}return{transform:function(t,n){var o=new r(S,"`NOFLIP_SINGLE`"),i=new r(E,"`NOFLIP_CLASS`"),a=new r(x,"`COMMENT`");return t=a.tokenize(i.tokenize(o.tokenize(t.replace("`","%60")))),n.transformDirInUrl&&(t=t.replace(I,"$1"+e).replace(T,"$1ltr").replace(y,"rtl")),n.transformEdgeInUrl&&(t=t.replace(D,"$1"+e).replace(P,"$1left").replace(y,"right")),t=t.replace(C,"$1"+e).replace(w,"$1ltr").replace(y,"rtl").replace(R,"$1"+e).replace(A,"$1left").replace(y,"right").replace(M,"$1$2"+e).replace(L,"$1$2e-resize").replace(y,"w-resize").replace(_,U).replace(F,Y).replace(z,Z).replace(H,Z).replace(j,Y).replace(B,K).replace($,K).replace(q,"$1$2$3$8$5$6$7$4$9").replace(k,"$1$2$3$8$5$6$7$4$9").replace(O,W).replace(N,W),t=o.detokenize(i.detokenize(a.detokenize(t)))}}},e.exports?t.transform=function(e,t,r){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof r&&(o.transformEdgeInUrl=r)),n.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=n)}(au,au.exports);var lu=au.exports;Object.defineProperty(iu,"__esModule",{value:!0}),iu.STYLIS_PROPERTY_CONTEXT=void 0;var su,uu=(su=lu)&&su.__esModule?su:{default:su};var cu=iu.STYLIS_PROPERTY_CONTEXT=-1;function du(e,t){if(e===cu)return uu.default.transform(t)}Object.defineProperty(du,"name",{value:"stylisRTLPlugin"});var pu,fu,mu,hu,gu,bu=iu.default=du;!function(e){e.SELECTED="selected",e.POSSIBLE="possible",e.EXCLUDED="excluded",e.INACTIVE="inactive"}(pu||(pu={})),function(e){e.SELECT="select",e.SELECT_MOUSE_DOWN="selectMouseDown",e.SELECT_MOUSE_UP="selectMouseUp",e.SELECT_MULTI_ADD="selectMultiAdd",e.SELECT_MULTI_END="selectMultiEnd",e.RESET="reset",e.CLEAR="clear",e.UPDATE_PAGE_ROWS="updatePageRows"}(fu||(fu={})),function(e){e.ENTER="Enter",e.SPACE=" ",e.ESC="Escape",e.TAB="Tab",e.SHIFT="Shift",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.C="c"}(mu||(mu={})),function(e){e.FOCUS="focus",e.FOCUS_BUTTON="focusButton",e.BLUR="blur",e.ADD_TAB="addTab",e.REMOVE_TAB="removeTab"}(hu||(hu={})),function(e){e.A="ascending",e.D="descending"}(gu||(gu={}));var vu=24,yu=[0,0],xu=[1,0];function Su(e){if(e.type)return e;if("#"===e.charAt(0))return Su(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function Eu(e,t){return e=Su(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}function Cu(e,t){return Cu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cu(e,t)}function wu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cu(e,t)}function Ru(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const Au={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"},Du={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Au,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_25:"rgba(0, 0, 0, 0.25)",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_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Pu=12,Iu=14,Tu=16,Mu=24,Lu=3,qu=300,ku=400,Ou=600,Nu=700,_u={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Eu(Du.GREYSCALE_0,.05),Eu(Du.GREEN_PALE,.5),Eu(Du.BLUE_PALE,.5),Eu(Du.GREEN_PALE,.5),Eu(Du.BLUE_PALE,.5),Eu(Du.GREEN_PALE,.5),Eu(Du.BLUE_PALE,.5);var Fu;function zu(){return zu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zu.apply(this,arguments)}Eu(Du.GREEN_PALE,.5),Eu(Du.BLUE_PALE,.5),Eu(Du.GREEN_PALE,.5),Eu(Du.BLUE_PALE,.5);var Hu,ju=function(e){return y.createElement("svg",zu({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Fu||(Fu=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})))};function Bu(){return Bu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bu.apply(this,arguments)}var $u=function(e){return y.createElement("svg",Bu({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Hu||(Hu=y.createElement("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 Wu({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var Vu=(e={})=>x.createElement(Wu,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.createElement("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"}))),Uu=(e={})=>x.createElement(Wu,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Gu=(e={})=>x.createElement(Wu,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Yu=(e={})=>x.createElement(Wu,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("defs",null,x.createElement("rect",{id:"radio-checked-path-1",x:"0",y:"0",width:"16",height:"16",rx:"8"})),x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("mask",{id:"radio-checked-mask-2",fill:"white"},x.createElement("use",{href:"#radio-checked-path-1"})),x.createElement("use",{fill:"currentColor",href:"#radio-checked-path-1"}),x.createElement("circle",{fill:"#FFFFFF",mask:"url(#radio-checked-mask-2)",cx:"8",cy:"8",r:"3"})))),Ku=({className:e})=>x.createElement(Wu,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.createElement("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"}),x.createElement("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 Zu(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Zu(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Xu(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Zu(e))&&(r&&(r+=" "),r+=t);return r}function Ju(e){return Tr("MuiSvgIcon",e)}Mr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Qu=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ec=tu("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${nr(n.color)}`],t[`fontSize${nr(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),tc=y.forwardRef((function(e,t){const n=Xs({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=qr(n,Qu),f=y.isValidElement(r)&&"svg"===r.type,m=Gn({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return Ar({root:["root","inherit"!==t&&`color${nr(t)}`,`fontSize${nr(n)}`]},Ju,r)})(m);return Hl.jsxs(ec,Gn({as:a,className:Xu(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&r.props,{ownerState:m,children:[f?r.props.children:r,c?Hl.jsx("title",{children:c}):null]}))}));tc.muiName="SvgIcon";var nc=tc;var rc,oc={},ic=Symbol.for("react.element"),ac=Symbol.for("react.portal"),lc=Symbol.for("react.fragment"),sc=Symbol.for("react.strict_mode"),uc=Symbol.for("react.profiler"),cc=Symbol.for("react.provider"),dc=Symbol.for("react.context"),pc=Symbol.for("react.server_context"),fc=Symbol.for("react.forward_ref"),mc=Symbol.for("react.suspense"),hc=Symbol.for("react.suspense_list"),gc=Symbol.for("react.memo"),bc=Symbol.for("react.lazy"),vc=Symbol.for("react.offscreen");
39
+ !function(e,t){var n;function r(e,t){var n=[],r=0;function o(e){return n.push(e),t}function i(){return n[r++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}n=new function(){var e="`TMP`",t="`COMMENT`",n="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="direction\\s*:\\s*",a="['\"]?\\s*",l="(^|[^a-zA-Z])",s="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+n+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+n+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",m="(?:[!#$%&*-~]|"+n+"|"+u+")*?",h="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+m+a+"\\))",v="(?="+m+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),E=new RegExp("("+s+g+"[^;}]+;?)","gi"),C=new RegExp("("+s+"[^\\}]*?})","gi"),w=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),A=new RegExp(l+"(left)"+h+b+g,"gi"),P=new RegExp(l+"(right)"+h+b+g,"gi"),I=new RegExp(l+"(left)"+v,"gi"),L=new RegExp(l+"(right)"+v,"gi"),D=new RegExp(l+"(ltr)"+v,"gi"),M=new RegExp(l+"(rtl)"+v,"gi"),O=new RegExp(l+"([ns]?)e-resize","gi"),T=new RegExp(l+"([ns]?)w-resize","gi"),k=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),_=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),q=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),N=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),F=new RegExp("(border-radius\\s*:\\s*)"+p+"(?:(?:\\s+"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?)?(?:(?:(?:\\s*\\/\\s*)"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?(?:\\s+"+p+")?)?"+y,"gi"),j=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+p,"gi"),z=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),B=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),W=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function G(e,t,n){var r,o;return"%"===n.slice(-1)&&(-1!==(r=n.indexOf("."))?(o=n.length-r-2,n=(n=100-parseFloat(n)).toFixed(o)+"%"):n=100-parseFloat(n)+"%"),t+n}function V(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function U(e,t){var n=[].slice.call(arguments),r=n.slice(2,6).filter((function(e){return e})),o=n.slice(6,10).filter((function(e){return e})),i=n[10]||"";return t+(o.length?V(r)+" / "+V(o):V(r))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,n){return t+Y(n)}function X(e,t,n,r,o){return t+n+Y(r)+o}function J(e,t,n,r,o){return t+n+r+Y(o)}return{transform:function(n,o){var i=new r(E,"`NOFLIP_SINGLE`"),a=new r(C,"`NOFLIP_CLASS`"),l=new r(S,t);return n=l.tokenize(a.tokenize(i.tokenize(n.replace("`","%60")))),o.transformDirInUrl&&(n=n.replace(D,"$1"+e).replace(M,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(n=n.replace(I,"$1"+e).replace(L,"$1left").replace(x,"right")),n=n.replace(w,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(A,"$1"+e).replace(P,"$1left").replace(x,"right").replace(O,"$1$2"+e).replace(T,"$1$2e-resize").replace(x,"w-resize").replace(F,U).replace(j,K).replace(z,J).replace($,J).replace(H,K).replace(B,X).replace(W,X).replace(k,"$1$2$3$8$5$6$7$4$9").replace(_,"$1$2$3$8$5$6$7$4$9").replace(q,G).replace(N,G),n=i.detokenize(a.detokenize(l.detokenize(n)))}}},e.exports?t.transform=function(e,t,r){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof r&&(o.transformEdgeInUrl=r)),n.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=n)}(rf,rf.exports);var of,af,lf,sf,uf,cf=nn(rf.exports);function df(e,t,n){switch(e.type){case Qi:case Ji:case Ki:return e.return=e.return||e.value;case Xi:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===Ki&&(e.children=e.value)}))}var r=Ba(Array.prototype.concat(e.children),df);return pa(r)?e.return=e.value+"{"+r+"}":""}function pf(e,t,n,r){if(e.type===ta||e.type===ea||e.type===Xi&&(!e.parent||e.parent.type===Zi||e.parent.type===Xi)){var o=cf.transform(df(e));e.children=o?Na(o)[0].children:[],e.return=""}}Object.defineProperty(pf,"name",{value:"stylisRTLPlugin"}),function(e){e.SELECTED="selected",e.POSSIBLE="possible",e.EXCLUDED="excluded",e.INACTIVE="inactive"}(of||(of={})),function(e){e.SELECT="select",e.SELECT_MOUSE_DOWN="selectMouseDown",e.SELECT_MOUSE_UP="selectMouseUp",e.SELECT_MULTI_ADD="selectMultiAdd",e.SELECT_MULTI_END="selectMultiEnd",e.RESET="reset",e.CLEAR="clear",e.UPDATE_PAGE_ROWS="updatePageRows"}(af||(af={})),function(e){e.ENTER="Enter",e.SPACE=" ",e.ESC="Escape",e.TAB="Tab",e.SHIFT="Shift",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.C="c"}(lf||(lf={})),function(e){e.FOCUS="focus",e.FOCUS_BUTTON="focusButton",e.BLUR="blur",e.ADD_TAB="addTab",e.REMOVE_TAB="removeTab"}(sf||(sf={})),function(e){e.A="ascending",e.D="descending"}(uf||(uf={}));const ff=[0,0],mf=[1,0];function hf(e){if(e.type)return e;if("#"===e.charAt(0))return hf(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function gf(e,t){return e=hf(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}const bf={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"},vf={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...bf,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_25:"rgba(0, 0, 0, 0.25)",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_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},yf=12,xf=14,Sf=16,Ef=24,Cf=3,wf=300,Rf=400,Af=600,Pf=700,If={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};gf(vf.GREYSCALE_0,.05),gf(vf.GREEN_PALE,.5),gf(vf.BLUE_PALE,.5),gf(vf.GREEN_PALE,.5),gf(vf.BLUE_PALE,.5),gf(vf.GREEN_PALE,.5),gf(vf.BLUE_PALE,.5);var Lf;function Df(){return Df=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Df.apply(this,arguments)}gf(vf.GREEN_PALE,.5),gf(vf.BLUE_PALE,.5),gf(vf.GREEN_PALE,.5),gf(vf.BLUE_PALE,.5);var Mf,Of=function(e){return y.createElement("svg",Df({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Lf||(Lf=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Tf(){return Tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tf.apply(this,arguments)}var kf=function(e){return y.createElement("svg",Tf({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Mf||(Mf=y.createElement("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.345z"})))};function _f({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var qf=(e={})=>x.createElement(_f,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.createElement("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"}))),Nf=(e={})=>x.createElement(_f,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Ff=(e={})=>x.createElement(_f,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),jf=(e={})=>x.createElement(_f,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),x.createElement("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"}))),zf=({className:e})=>x.createElement(_f,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.createElement("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"}),x.createElement("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 $f(e,t){return $f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$f(e,t)}function Hf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$f(e,t)}var Bf=!1,Wf=x.createContext(null),Gf="unmounted",Vf="exited",Uf="entering",Yf="entered",Kf="exiting",Xf=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=Vf,r.appearStatus=Uf):o=Yf:o=t.unmountOnExit||t.mountOnEnter?Gf:Vf,r.state={status:o},r.nextCallback=null,r}Hf(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Gf?{status:Vf}: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!==Uf&&n!==Yf&&(t=Uf):n!==Uf&&n!==Yf||(t=Kf)}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===Uf){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:j.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Vf&&this.setState({status:Gf})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[j.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Bf?this.safeSetState({status:Yf},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Uf},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Yf},(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:j.findDOMNode(this);t&&!Bf?(this.props.onExit(r),this.safeSetState({status:Kf},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Vf},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Vf},(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:j.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===Gf)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=Hi(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Wf.Provider,{value:null},"function"==typeof n?n(e,r):x.cloneElement(x.Children.only(n),r))},t}(x.Component);function Jf(){}Xf.contextType=Wf,Xf.propTypes={},Xf.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Jf,onEntering:Jf,onEntered:Jf,onExit:Jf,onExiting:Jf,onExited:Jf},Xf.UNMOUNTED=Gf,Xf.EXITED=Vf,Xf.ENTERING=Uf,Xf.ENTERED=Yf,Xf.EXITING=Kf;var Zf=Xf;function Qf(e,t){var n=Object.create(null);return e&&A.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&P(e)?t(e):e}(e)})),n}function em(e,t,n){return null!=n[t]?n[t]:e.props[t]}function tm(e,t,n){var r=Qf(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(P(a)){var l=i in t,s=i in r,u=t[i],c=P(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&P(u)&&(o[i]=I(a,{onExited:n.bind(null,a),in:u.props.in,exit:em(a,"exit",e),enter:em(a,"enter",e)})):o[i]=I(a,{in:!1}):o[i]=I(a,{onExited:n.bind(null,a),in:!0,exit:em(a,"exit",e),enter:em(a,"enter",e)})}})),o}var nm=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},rm=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}Hf(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,Qf(n.children,(function(e){return I(e,{onExited:r.bind(null,e),in:!0,appear:em(e,"appear",n),enter:em(e,"enter",n),exit:em(e,"exit",n)})}))):tm(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Qf(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=$i({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Hi(e,["component","childFactory"]),o=this.state.contextValue,i=nm(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?x.createElement(Wf.Provider,{value:o},i):x.createElement(Wf.Provider,{value:o},x.createElement(t,r,i))},t}(x.Component);rm.propTypes={},rm.defaultProps={component:"div",childFactory:function(e){return e}};var om=rm;const im=e=>e.scrollTop;function am(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 lm(e){return mc("MuiPaper",e)}hc("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 sm=["className","component","elevation","square","variant"],um=Qp("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 $i({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&&$i({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Ld("#fff",nf(t.elevation))}, ${Ld("#fff",nf(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var cm=y.forwardRef((function(e,t){const n=Sp({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Hi(n,sm),u=$i({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return md({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},lm,o)})(u);return Ni.jsx(um,$i({as:o,ownerState:u,className:dc(c.root,r),ref:t},s))}));function dm(e){return"string"==typeof e}function pm(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 fm(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 mm=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function hm(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Hi(e,mm),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=dc(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=$i({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=$i({},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=pm($i({},o,r)),l=fm(r),s=fm(o),u=t(a),c=dc(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=$i({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=$i({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}($i({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||dm(e)?t:$i({},t,{ownerState:$i({},t.ownerState,n)})}(n,$i({},s,{ref:Qc(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var gm=hc("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const bm=["center","classes","className"];let vm,ym,xm,Sm,Em=e=>e;const Cm=ks(vm||(vm=Em`
40
+ 0% {
41
+ transform: scale(0);
42
+ opacity: 0.1;
43
+ }
44
+
45
+ 100% {
46
+ transform: scale(1);
47
+ opacity: 0.3;
48
+ }
49
+ `)),wm=ks(ym||(ym=Em`
50
+ 0% {
51
+ opacity: 1;
52
+ }
53
+
54
+ 100% {
55
+ opacity: 0;
56
+ }
57
+ `)),Rm=ks(xm||(xm=Em`
58
+ 0% {
59
+ transform: scale(1);
60
+ }
61
+
62
+ 50% {
63
+ transform: scale(0.92);
64
+ }
65
+
66
+ 100% {
67
+ transform: scale(1);
68
+ }
69
+ `)),Am=Qp("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Pm=Qp((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=y.useState(!1),p=dc(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=dc(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),y.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Ni.jsx("span",{className:p,style:f,children:Ni.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Sm||(Sm=Em`
70
+ opacity: 0;
71
+ position: absolute;
72
+
73
+ &.${0} {
74
+ opacity: 0.3;
75
+ transform: scale(1);
76
+ animation-name: ${0};
77
+ animation-duration: ${0}ms;
78
+ animation-timing-function: ${0};
79
+ }
80
+
81
+ &.${0} {
82
+ animation-duration: ${0}ms;
83
+ }
84
+
85
+ & .${0} {
86
+ opacity: 1;
87
+ display: block;
88
+ width: 100%;
89
+ height: 100%;
90
+ border-radius: 50%;
91
+ background-color: currentColor;
92
+ }
93
+
94
+ & .${0} {
95
+ opacity: 0;
96
+ animation-name: ${0};
97
+ animation-duration: ${0}ms;
98
+ animation-timing-function: ${0};
99
+ }
100
+
101
+ & .${0} {
102
+ position: absolute;
103
+ /* @noflip */
104
+ left: 0px;
105
+ top: 0;
106
+ animation-name: ${0};
107
+ animation-duration: 2500ms;
108
+ animation-timing-function: ${0};
109
+ animation-iteration-count: infinite;
110
+ animation-delay: 200ms;
111
+ }
112
+ `),gm.rippleVisible,Cm,550,(({theme:e})=>e.transitions.easing.easeInOut),gm.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),gm.child,gm.childLeaving,wm,550,(({theme:e})=>e.transitions.easing.easeInOut),gm.childPulsate,Rm,(({theme:e})=>e.transitions.easing.easeInOut));var Im=y.forwardRef((function(e,t){const n=Sp({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Hi(n,bm),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=rd(),f=y.useRef(null),m=y.useRef(null),h=y.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Ni.jsx(Pm,{classes:{ripple:dc(o.ripple,gm.ripple),rippleVisible:dc(o.rippleVisible,gm.rippleVisible),ripplePulsate:dc(o.ripplePulsate,gm.ripplePulsate),child:dc(o.child,gm.child),childLeaving:dc(o.childLeaving,gm.childLeaving),childPulsate:dc(o.childPulsate,gm.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h,p]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Ni.jsx(Am,$i({className:dc(gm.root,o.root,i),ref:m},a,{children:Ni.jsx(om,{component:null,exit:!0,children:l})}))}));function Lm(e){return mc("MuiButtonBase",e)}var Dm=hc("MuiButtonBase",["root","disabled","focusVisible"]);const Mm=["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"],Om=Qp("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"},[`&.${Dm.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Tm=y.forwardRef((function(e,t){const n=Sp({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:P,tabIndex:I=0,TouchRippleProps:L,touchRippleRef:D,type:M}=n,O=Hi(n,Mm),T=y.useRef(null),k=y.useRef(null),_=Qc(k,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=pd(),[z,$]=y.useState(!1);s&&z&&$(!1),y.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),T.current.focus()}})),[]);const[H,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const W=H&&!u&&!s;function G(e,t,n=c){return Zc((r=>{t&&t(r);return!n&&k.current&&k.current[e](r),!0}))}y.useEffect((()=>{z&&d&&!u&&H&&k.current.pulsate()}),[u,d,z,H]);const V=G("start",E),U=G("stop",h),Y=G("stop",g),K=G("stop",w),X=G("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=G("start",P),Z=G("stop",R),Q=G("stop",A),ee=G("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=Zc((e=>{T.current||(T.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=T.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=y.useRef(!1),oe=Zc((e=>{d&&!re.current&&z&&k.current&&" "===e.key&&(re.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=Zc((e=>{d&&" "===e.key&&k.current&&z&&!e.defaultPrevented&&(re.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(O.href||O.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===M?"button":M,le.disabled=s):(O.href||O.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Qc(t,j,T),ue=$i({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=md({root:["root",t&&"disabled",n&&"focusVisible"]},Lm,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Ni.jsxs(Om,$i({as:ae,className:dc(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:I,type:M},le,O,{children:[i,W?Ni.jsx(Im,$i({ref:_,center:o},L)):null]}))}));var km=Tm;const _m=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function qm(e){const t=[],n=[];return Array.from(e.querySelectorAll(_m)).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 Nm(){return!0}function Fm(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=qm,isEnabled:a=Nm,open:l}=e,s=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),m=y.useRef(null),h=Qc(t.ref,m),g=y.useRef(null);y.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),y.useEffect((()=>{if(!l||!m.current)return;const e=Kc(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),y.useEffect((()=>{if(!l||!m.current)return;const e=Kc(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Ni.jsxs(y.Fragment,{children:[Ni.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Ni.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const jm=y.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=Qc(y.isValidElement(n)?n.ref:null,t);if(Hc((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Hc((()=>{if(i&&!o)return Jc(t,i),()=>{Jc(t,null)}}),[t,i,o]),o){if(y.isValidElement(n)){const e={ref:l};return y.cloneElement(n,e)}return Ni.jsx(y.Fragment,{children:n})}return Ni.jsx(y.Fragment,{children:i?F.createPortal(n,i):i})}));function zm(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function $m(e){return parseInt(Xc(e).getComputedStyle(e).paddingRight,10)||0}function Hm(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&&zm(e,o)}))}function Bm(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Wm(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Kc(e);return t.body===e?Xc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=fd(Kc(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${$m(r)+e}px`;const t=Kc(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${$m(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Kc(r).body;else{const t=r.parentElement,n=Xc(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 Gm=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&&zm(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);Hm(t,e.mount,e.modalRef,r,!0);const o=Bm(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=Bm(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Wm(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Bm(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&&zm(e.modalRef,t),Hm(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&&zm(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Vm(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Gm,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),m=y.useRef(null),h=Qc(m,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},C=Zc((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Kc(f.current).body;o.add(S(),e),m.current&&E()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=Zc((e=>{f.current=e,e&&(c&&w()?E():m.current&&zm(m.current,x))})),A=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{A()}),[A]),y.useEffect((()=>{c?C():v&&i||A()}),[c,A,v,i,C]);const P=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=pm(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=$i({},n,t);return $i({role:"presentation"},r,{onKeyDown:P(r),ref:h})},getBackdropProps:(e={})=>$i({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Uc((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Uc((()=>{b(!0),l&&l(),i&&A()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}function Um(e){return mc("MuiTypography",e)}hc("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Ym=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Km=Qp("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${nu(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>$i({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}))),Xm={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Jm={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Zm=y.forwardRef((function(e,t){const n=Sp({props:e,name:"MuiTypography"}),r=(e=>Jm[e]||e)(n.color),o=ac($i({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Xm}=o,f=Hi(o,Ym),m=$i({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||Xm[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return md({root:["root",i,"inherit"!==e.align&&`align${nu(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Um,a)})(m);return Ni.jsx(Km,$i({as:h,ref:t,ownerState:m,className:dc(g.root,a)},f))}));var Qm=Zm;const eh=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],th={entering:{opacity:1},entered:{opacity:1}},nh=y.forwardRef((function(e,t){const n=xp(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:b=Zf}=e,v=Hi(e,eh),x=y.useRef(null),S=Qc(x,a.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(d),w=E(((e,t)=>{im(e);const r=am({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),R=E(c),A=E(m),P=E((e=>{const t=am({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),I=E(f);return Ni.jsx(b,$i({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:P,onExited:I,onExiting:A,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,$i({style:$i({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},th[e],h,a.props.style),ref:S},t))}))}));var rh=nh;function oh(e){return mc("MuiBackdrop",e)}hc("MuiBackdrop",["root","invisible"]);const ih=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ah=Qp("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>$i({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"}))),lh=y.forwardRef((function(e,t){var n,r,o;const i=Sp({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=rh,transitionDuration:g}=i,b=Hi(i,ih),v=$i({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return md({root:["root",n&&"invisible"]},oh,t)})(v),x=null!=(n=f.root)?n:c.root;return Ni.jsx(h,$i({in:p,timeout:g},b,{children:Ni.jsx(ah,$i({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:dc(y.root,l,null==x?void 0:x.className),ownerState:$i({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var sh=lh;var uh=hc("MuiBox",["root"]);const ch=vp(),dh=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Hs("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Xu);return y.forwardRef((function(e,a){const l=rc(n),s=ac(e),{className:u,component:c="div"}=s,d=Hi(s,pc);return Ni.jsx(i,$i({as:c,ref:a,className:dc(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:zi,defaultTheme:ch,defaultClassName:uh.root,generateClassName:uc.generate});var ph=dh;function fh(e){return mc("MuiButton",e)}var mh=hc("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var hh=y.createContext({});var gh=y.createContext(void 0);const bh=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],vh=e=>$i({},"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}}),yh=Qp(km,{shouldForwardProp:e=>Zp(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${nu(n.color)}`],t[`size${nu(n.size)}`],t[`${n.variant}Size${nu(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 $i({},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":$i({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ld(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})`:Ld(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})`:Ld(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":$i({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${mh.focusVisible}`]:$i({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${mh.disabled}`]:$i({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 ${Ld(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"},[`&.${mh.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${mh.disabled}`]:{boxShadow:"none"}})),xh=Qp("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${nu(n.size)}`]]}})((({ownerState:e})=>$i({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},vh(e)))),Sh=Qp("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${nu(n.size)}`]]}})((({ownerState:e})=>$i({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},vh(e)))),Eh=y.forwardRef((function(e,t){const n=y.useContext(hh),r=y.useContext(gh),o=Sp({props:zc(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,x=Hi(o,bh),S=$i({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return $i({},a,md({root:["root",i,`${i}${nu(t)}`,`size${nu(o)}`,`${i}Size${nu(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${nu(o)}`],endIcon:["endIcon",`iconSize${nu(o)}`]},fh,a))})(S),C=g&&Ni.jsx(xh,{className:E.startIcon,ownerState:S,children:g}),w=p&&Ni.jsx(Sh,{className:E.endIcon,ownerState:S,children:p}),R=r||"";return Ni.jsxs(yh,$i({ownerState:S,className:dc(n.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:dc(E.focusVisible,f),ref:t,type:b},x,{classes:E,children:[C,i,w]}))}));var Ch=Eh;function wh(e){return mc("MuiModal",e)}hc("MuiModal",["root","hidden","backdrop"]);const Rh=["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"],Ah=Qp("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})=>$i({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Ph=Qp(sh,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Ih=y.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Sp({name:"MuiModal",props:e}),{BackdropComponent:u=Ph,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:P,open:I,slotProps:L,slots:D}=s,M=Hi(s,Rh),O=$i({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:A}),{getRootProps:T,getBackdropProps:k,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=Vm($i({},O,{rootRef:t})),z=$i({},O,{exited:F}),$=(e=>{const{open:t,exited:n,classes:r}=e;return md({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},wh,r)})(z),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),j){const{onEnter:e,onExited:t}=_();H.onEnter=e,H.onExited=t}const B=null!=(n=null!=(r=null==D?void 0:D.root)?r:g.Root)?n:Ah,W=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:u,G=null!=(a=null==L?void 0:L.root)?a:b.root,V=null!=(l=null==L?void 0:L.backdrop)?l:b.backdrop,U=hm({elementType:B,externalSlotProps:G,externalForwardedProps:M,getSlotProps:T,additionalProps:{ref:t,as:h},ownerState:z,className:dc(d,null==G?void 0:G.className,null==$?void 0:$.root,!z.open&&z.exited&&(null==$?void 0:$.hidden))}),Y=hm({elementType:W,externalSlotProps:V,additionalProps:c,getSlotProps:e=>k($i({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:dc(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:z});return A||I||j&&!F?Ni.jsx(jm,{ref:q,container:m,disablePortal:E,children:Ni.jsxs(B,$i({},U,{children:[!R&&u?Ni.jsx(W,$i({},Y)):null,Ni.jsx(Fm,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:I,children:y.cloneElement(f,H)})]}))}):null}));var Lh=Ih;function Dh(e){return mc("MuiDivider",e)}var Mh=hc("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Oh=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Th=Qp("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})=>$i({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)`:Ld(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})=>$i({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>$i({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>$i({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>$i({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),kh=Qp("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>$i({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)`}))),_h=y.forwardRef((function(e,t){const n=Sp({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Hi(n,Oh),m=$i({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return md({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Dh,r)})(m);return Ni.jsx(Th,$i({as:a,className:dc(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Ni.jsx(kh,{className:h.wrapper,ownerState:m,children:o}):null}))}));_h.muiSkipListHighlight=!0;var qh=_h;const Nh=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Fh(e){return`scale(${e}, ${e**2})`}const jh={entering:{opacity:1,transform:Fh(1)},entered:{opacity:1,transform:"none"}},zh="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),$h=y.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=Zf}=e,g=Hi(e,Nh),b=rd(),v=y.useRef(),x=xp(),S=y.useRef(null),E=Qc(S,o.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{im(e);const{duration:n,delay:r,easing:o}=am({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:zh?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),A=C(s),P=C(p),I=C((e=>{const{duration:t,delay:n,easing:r}=am({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:zh?o:.666*o,delay:zh?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Fh(.75),c&&c(e)})),L=C(d);return Ni.jsx(h,$i({appear:r,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:w,onExit:I,onExited:L,onExiting:P,addEndListener:e=>{"auto"===m&&b.start(v.current||0,e),n&&n(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>y.cloneElement(o,$i({style:$i({opacity:0,transform:Fh(.75),visibility:"exited"!==e||a?void 0:"hidden"},jh[e],f,o.props.style),ref:E},t))}))}));$h.muiSupportAuto=!0;var Hh=$h;var Bh=y.createContext({});function Wh(e){return mc("MuiList",e)}hc("MuiList",["root","padding","dense","subheader"]);const Gh=["children","className","component","dense","disablePadding","subheader"],Vh=Qp("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})=>$i({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Uh=y.forwardRef((function(e,t){const n=Sp({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Hi(n,Gh),c=y.useMemo((()=>({dense:a})),[a]),d=$i({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return md({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Wh,t)})(d);return Ni.jsx(Bh.Provider,{value:c,children:Ni.jsxs(Vh,$i({as:i,className:dc(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function Yh(e){return mc("MuiListItemIcon",e)}var Kh=hc("MuiListItemIcon",["root","alignItemsFlexStart"]);const Xh=["className"],Jh=Qp("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})=>$i({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Zh=y.forwardRef((function(e,t){const n=Sp({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Hi(n,Xh),i=$i({},n,{alignItems:y.useContext(Bh).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return md({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Yh,n)})(i);return Ni.jsx(Jh,$i({className:dc(a.root,r),ownerState:i,ref:t},o))}));var Qh=hc("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const eg=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function tg(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ng(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function rg(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 og(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&rg(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var ig=y.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Hi(e,eg),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Hc((()=>{r&&p.current.focus()}),[r]),y.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${fd(Kc(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=Qc(p,t);let h=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return Ni.jsx(Uh,$i({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Kc(t).activeElement;if("ArrowDown"===n)e.preventDefault(),og(t,r,s,l,tg);else if("ArrowUp"===n)e.preventDefault(),og(t,r,s,l,ng);else if("Home"===n)e.preventDefault(),og(t,null,s,l,tg);else if("End"===n)e.preventDefault(),og(t,null,s,l,ng);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&rg(r,o);o.previousKeyMatched&&(s||og(t,r,!1,l,tg,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function ag(e){return mc("MuiPopover",e)}hc("MuiPopover",["root","paper"]);const lg=["onEntering"],sg=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ug=["slotProps"];function cg(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function dg(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function pg(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function fg(e){return"function"==typeof e?e():e}const mg=Qp(Lh,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hg=Qp(cm,{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});var gg=y.forwardRef((function(e,t){var n,r,o;const i=Sp({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=Hh,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,A=Hi(i.TransitionProps,lg),P=Hi(i,sg),I=null!=(n=null==x?void 0:x.paper)?n:b,L=y.useRef(),D=Qc(L,I.ref),M=$i({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:A}),O=(e=>{const{classes:t}=e;return md({root:["root"],paper:["paper"]},ag,t)})(M),T=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=fg(l),t=(e&&1===e.nodeType?e:Kc(L.current).body).getBoundingClientRect();return{top:t.top+cg(t,s.vertical),left:t.left+dg(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),k=y.useCallback((e=>({vertical:cg(e,S.vertical),horizontal:dg(e,S.horizontal)})),[S.horizontal,S.vertical]),_=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=k(t);if("none"===c)return{top:null,left:null,transformOrigin:pg(n)};const r=T();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=Xc(fg(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:pg(n)}}),[l,c,T,k,h]),[q,N]=y.useState(g),F=y.useCallback((()=>{const e=L.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);y.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);y.useEffect((()=>{g&&F()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),y.useEffect((()=>{if(!g)return;const e=Yc((()=>{F()})),t=Xc(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=f||(l?Kc(fg(l)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:mg,H=null!=(o=null==v?void 0:v.paper)?o:hg,B=hm({elementType:H,externalSlotProps:$i({},I,{style:q?I.style:$i({},I.style,{opacity:0})}),additionalProps:{elevation:m,ref:D},ownerState:M,className:dc(O.paper,null==I?void 0:I.className)}),W=hm({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:M,className:dc(O.root,p)}),{slotProps:G}=W,V=Hi(W,ug);return Ni.jsx($,$i({},V,!dm($)&&{slotProps:G,disableScrollLock:R},{children:Ni.jsx(E,$i({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},A,{children:Ni.jsx(H,$i({},B,{children:d}))}))}))}));function bg(e){return mc("MuiMenu",e)}hc("MuiMenu",["root","paper","list"]);const vg=["onEntering"],yg=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],xg={vertical:"top",horizontal:"right"},Sg={vertical:"top",horizontal:"left"},Eg=Qp(gg,{shouldForwardProp:e=>Zp(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Cg=Qp(hg,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),wg=Qp(ig,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Rg=y.forwardRef((function(e,t){var n,r;const o=Sp({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=Hi(o.TransitionProps,vg),S=Hi(o,yg),E=xp(),C="rtl"===E.direction,w=$i({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:x,variant:g}),R=(e=>{const{classes:t}=e;return md({root:["root"],paper:["paper"],list:["list"]},bg,t)})(w),A=i&&!s&&d,P=y.useRef(null);let I=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))}));const L=null!=(n=b.paper)?n:Cg,D=null!=(r=v.paper)?r:p,M=hm({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,l]}),O=hm({elementType:L,externalSlotProps:D,ownerState:w,className:R.paper});return Ni.jsx(Eg,$i({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?xg:Sg,slots:{paper:L,root:b.root},slotProps:{root:M,paper:O},open:d,ref:t,transitionDuration:m,TransitionProps:$i({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,E),h&&h(e,t)}},x),ownerState:w},S,{classes:f,children:Ni.jsx(wg,$i({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:P,autoFocus:i&&(-1===I||s),autoFocusItem:A,variant:g},u,{className:dc(R.list,u.className),children:a}))}))}));function Ag(e){return mc("MuiMenuItem",e)}var Pg=hc("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Ig=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Lg=Qp(km,{shouldForwardProp:e=>Zp(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})=>$i({},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"}},[`&.${Pg.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ld(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Pg.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ld(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Pg.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ld(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})`:Ld(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Pg.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Pg.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Mh.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Mh.inset}`]:{marginLeft:52},[`& .${Qh.root}`]:{marginTop:0,marginBottom:0},[`& .${Qh.inset}`]:{paddingLeft:36},[`& .${Kh.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$i({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Kh.root} svg`]:{fontSize:"1.25rem"}}))));var Dg=y.forwardRef((function(e,t){const n=Sp({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=Hi(n,Ig),f=y.useContext(Bh),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=y.useRef(null);Hc((()=>{r&&h.current&&h.current.focus()}),[r]);const g=$i({},n,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return $i({},a,md({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Ag,a))})(n),v=Qc(h,t);let x;return n.disabled||(x=void 0!==c?c:-1),Ni.jsx(Bh.Provider,{value:m,children:Ni.jsx(Lg,$i({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:dc(b.focusVisible,s),className:dc(b.root,d)},p,{ownerState:g,classes:b}))})}));var Mg=y.createContext();function Og(e){return mc("MuiTable",e)}hc("MuiTable",["root","stickyHeader"]);const Tg=["className","component","padding","size","stickyHeader"],kg=Qp("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>$i({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":$i({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),_g="table",qg=y.forwardRef((function(e,t){const n=Sp({props:e,name:"MuiTable"}),{className:r,component:o=_g,padding:i="normal",size:a="medium",stickyHeader:l=!1}=n,s=Hi(n,Tg),u=$i({},n,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:n}=e;return md({root:["root",n&&"stickyHeader"]},Og,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return Ni.jsx(Mg.Provider,{value:d,children:Ni.jsx(kg,$i({as:o,role:o===_g?null:"table",ref:t,className:dc(c.root,r),ownerState:u},s))})}));var Ng=qg;var Fg=y.createContext();function jg(e){return mc("MuiTableBody",e)}hc("MuiTableBody",["root"]);const zg=["className","component"],$g=Qp("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Hg={variant:"body"},Bg="tbody";var Wg=y.forwardRef((function(e,t){const n=Sp({props:e,name:"MuiTableBody"}),{className:r,component:o=Bg}=n,i=Hi(n,zg),a=$i({},n,{component:o}),l=(e=>{const{classes:t}=e;return md({root:["root"]},jg,t)})(a);return Ni.jsx(Fg.Provider,{value:Hg,children:Ni.jsx($g,$i({className:dc(l.root,r),as:o,ref:t,role:o===Bg?null:"rowgroup",ownerState:a},i))})}));function Gg(e){return mc("MuiTableCell",e)}var Vg=hc("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const Ug=["align","className","component","padding","scope","size","sortDirection","variant"],Yg=Qp("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${nu(n.size)}`],"normal"!==n.padding&&t[`padding${nu(n.padding)}`],"inherit"!==n.align&&t[`align${nu(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>$i({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Od(Ld(e.palette.divider,1),.88):Dd(Ld(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${Vg.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),Kg=y.forwardRef((function(e,t){const n=Sp({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=n,d=Hi(n,Ug),p=y.useContext(Mg),f=y.useContext(Fg),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=l;"td"===h?g=void 0:!g&&m&&(g="col");const b=c||f&&f.variant,v=$i({},n,{align:r,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:s||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),x=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return md({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${nu(r)}`,"normal"!==o&&`padding${nu(o)}`,`size${nu(i)}`]},Gg,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),Ni.jsx(Yg,$i({as:h,ref:t,className:dc(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));var Xg=Kg;function Jg(e){return mc("MuiTableContainer",e)}hc("MuiTableContainer",["root"]);const Zg=["className","component"],Qg=Qp("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var eb=y.forwardRef((function(e,t){const n=Sp({props:e,name:"MuiTableContainer"}),{className:r,component:o="div"}=n,i=Hi(n,Zg),a=$i({},n,{component:o}),l=(e=>{const{classes:t}=e;return md({root:["root"]},Jg,t)})(a);return Ni.jsx(Qg,$i({ref:t,as:o,className:dc(l.root,r),ownerState:a},i))}));function tb(e){return mc("MuiTableHead",e)}hc("MuiTableHead",["root"]);const nb=["className","component"],rb=Qp("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),ob={variant:"head"},ib="thead";var ab=y.forwardRef((function(e,t){const n=Sp({props:e,name:"MuiTableHead"}),{className:r,component:o=ib}=n,i=Hi(n,nb),a=$i({},n,{component:o}),l=(e=>{const{classes:t}=e;return md({root:["root"]},tb,t)})(a);return Ni.jsx(Fg.Provider,{value:ob,children:Ni.jsx(rb,$i({as:o,className:dc(l.root,r),ref:t,role:o===ib?null:"rowgroup",ownerState:a},i))})}));function lb(e){return mc("MuiTableRow",e)}var sb=hc("MuiTableRow",["root","selected","hover","head","footer"]);const ub=["className","component","hover","selected"],cb=Qp("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${sb.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${sb.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ld(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ld(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),db="tr",pb=y.forwardRef((function(e,t){const n=Sp({props:e,name:"MuiTableRow"}),{className:r,component:o=db,hover:i=!1,selected:a=!1}=n,l=Hi(n,ub),s=y.useContext(Fg),u=$i({},n,{component:o,hover:i,selected:a,head:s&&"head"===s.variant,footer:s&&"footer"===s.variant}),c=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return md({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},lb,t)})(u);return Ni.jsx(cb,$i({as:o,ref:t,className:dc(c.root,r),role:o===db?null:"row",ownerState:u},l))}));var fb=pb,mb=(e={})=>x.createElement(_f,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:vf.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const hb={MuiAccordion:{styleOverrides:{root:{backgroundColor:vf.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:vf.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(Of,{"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 ${vf.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:vf.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${vf.MISC_FOCUS_BORDER}`,borderRadius:Cf,backgroundColor:vf.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 ${vf.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:vf.WHITE,color:vf.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:Cf},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${vf.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:vf.GREYSCALE_0_15,backgroundColor:vf.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:vf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${vf.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:vf.GREEN_PALE},"&:active":{backgroundColor:vf.GREEN_DARK},"&.Mui-focusVisible":{borderColor:vf.GREEN_PALE,boxShadow:`0 0 0 3px ${Vc(vf.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:vf.BLUE_PALE},"&:active":{backgroundColor:vf.BLUE_DARK},"&.Mui-focusVisible":{borderColor:vf.BLUE_PALE,boxShadow:`0 0 0 3px ${Vc(vf.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:Cf,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:vf.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${vf.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:vf.GREYSCALE_0_15,backgroundColor:vf.GREYSCALE_100_60,"&:active":{backgroundColor:vf.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:vf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${vf.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:vf.PURPLE,"&.Mui-focusVisible":{borderColor:vf.PURPLE,boxShadow:`0 0 0 3px ${Vc(vf.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:vf.GREEN,"&.Mui-focusVisible":{borderColor:vf.GREEN,boxShadow:`0 0 0 3px ${Vc(vf.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:vf.BLUE,"&.Mui-focusVisible":{borderColor:vf.BLUE,boxShadow:`0 0 0 3px ${Vc(vf.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:vf.ORANGE,"&.Mui-focusVisible":{borderColor:vf.ORANGE,boxShadow:`0 0 0 3px ${Vc(vf.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:vf.RED,"&.Mui-focusVisible":{borderColor:vf.RED,boxShadow:`0 0 0 3px ${Vc(vf.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:vf.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:vf.PURPLE_PALE},"&:active":{backgroundColor:vf.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:vf.PURPLE_PALE,boxShadow:`0 0 0 3px ${Vc(vf.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:vf.GREEN_PALE},"&:active":{backgroundColor:vf.GREEN_DARK},"&.Mui-focusVisible":{borderColor:vf.GREEN_PALE,boxShadow:`0 0 0 3px ${Vc(vf.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:vf.BLUE_PALE},"&:active":{backgroundColor:vf.BLUE_DARK},"&.Mui-focusVisible":{borderColor:vf.BLUE_PALE,boxShadow:`0 0 0 3px ${Vc(vf.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:vf.ORANGE_PALE},"&:active":{backgroundColor:vf.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:vf.ORANGE_PALE,boxShadow:`0 0 0 3px ${Vc(vf.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:vf.RED_PALE},"&:active":{backgroundColor:vf.RED_DARK},"&.Mui-focusVisible":{borderColor:vf.RED_PALE,boxShadow:`0 0 0 3px ${Vc(vf.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:vf.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:vf.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Cf,boxShadow:`inset 0 0 0 2px ${vf.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(kf,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:yf,borderRadius:Cf,color:vf.TEXT_PRIMARY,backgroundColor:vf.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:vf.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${vf.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:vf.GREYSCALE_0_05,color:vf.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:vf.GREEN,borderColor:vf.GREEN},"&.MuiChip-outlinedInfo":{color:vf.BLUE,borderColor:vf.BLUE},"&.MuiChip-outlinedWarning":{color:vf.ORANGE,borderColor:vf.ORANGE},"&.MuiChip-outlinedError":{color:vf.RED,borderColor:vf.RED}},outlined:{border:`solid 1px ${vf.GREYSCALE_0_15}`,backgroundColor:vf.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Cf,boxShadow:"none",backgroundColor:vf.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:vf.GREEN,borderColor:vf.GREEN},outlinedSecondary:{color:vf.BLUE,borderColor:vf.BLUE},label:{fontFamily:If.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(kf,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(Of,{"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:Cf},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Cf,fontSize:xf,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:vf.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${vf.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:vf.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:vf.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:vf.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Cf,border:`solid 1px ${vf.GREYSCALE_0_15}`,color:vf.GREYSCALE_0_60,marginRight:0,width:Ef,height:Ef},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${vf.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Cf,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:vf.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:xf}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:yf,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:vf.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:vf.GREYSCALE_25,fontSize:yf,fontFamily:If.FONT_FAMILY,fontWeight:Af,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:vf.TEXT_PRIMARY},"&.Mui-error":{color:vf.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:vf.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Rf,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:vf.TEXT_SECONDARY,content:"'(required)'",fontWeight:Rf,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:xf,lineHeight:"16px",backgroundColor:vf.WHITE,borderRadius:Cf,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${vf.GREYSCALE_0_05}`,borderColor:vf.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${vf.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${vf.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${vf.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${vf.RED}`,boxShadow:`0px 0px 0px 1px ${vf.RED}, inset 0 2px 0 0 ${vf.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${vf.GREYSCALE_0_10}`,borderColor:vf.GREYSCALE_0_10,backgroundColor:vf.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:vf.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:vf.GREYSCALE_0_15,borderRadius:Cf,boxShadow:`inset 0 2px 0 0 ${vf.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(Of,{...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:vf.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:vf.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:vf.GREYSCALE_0_03},"&:active":{backgroundColor:vf.GREYSCALE_0_10},"&:focus":{backgroundColor:vf.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${vf.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${vf.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:vf.GREYSCALE_0_30,"&:hover":{backgroundColor:vf.GREYSCALE_0_0,borderColor:vf.GREYSCALE_0_15},"& ~svg":{color:vf.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${vf.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Cf}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:vf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${vf.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:vf.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:xf,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:yf,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:yf,fontWeight:Af,color:vf.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Af}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${vf.GREYSCALE_0_15}, 0px 0px 0px 1px ${vf.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(Ff,null),checkedIcon:x.createElement(jf,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:vf.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${vf.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:vf.GREEN_PALE,boxShadow:`0 0 0 3px ${Vc(vf.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:vf.BLUE_PALE,boxShadow:`0 0 0 3px ${Vc(vf.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:vf.GREYSCALE_0_20}},"&.Mui-disabled":{fill:vf.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(mb,null),checkedIcon:x.createElement(qf,null),indeterminateIcon:x.createElement(Nf,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Cf,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:vf.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:vf.GREYSCALE_0_55,color:vf.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:vf.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:vf.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:vf.GREYSCALE_0_55,"&:hover":{color:vf.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:vf.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:vf.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:xf,color:vf.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Af},secondary:{fontSize:yf,color:vf.GREYSCALE_45,fontWeight:Rf,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:xf,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:vf.GREYSCALE_0_03},"&:active":{backgroundColor:vf.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:xf,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:vf.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:yf,borderBottom:`solid 1px ${vf.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:xf,color:vf.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:vf.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:vf.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:vf.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:vf.RED}}},"&.Mui-focusVisible":{backgroundColor:vf.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:vf.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:vf.GREEN,height:"24px","&.Mui-disabled":{color:vf.GREYSCALE_0_15}},rail:{backgroundColor:vf.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${vf.GREYSCALE_0_05}`,borderRadius:Cf,boxShadow:`inset 0px 0px 0px 1px ${vf.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${vf.GREYSCALE_0_05}`,borderRadius:Cf},thumb:{height:"16px",width:"16px",borderRadius:Cf,backgroundColor:vf.WHITE,boxShadow:`0px 1px 2px 0px ${vf.GREYSCALE_0_15}, 0px 0px 0px 1px ${vf.GREYSCALE_0_05}`,"&:hover":{borderRadius:Cf,boxShadow:`0 2px 4px 0 ${vf.GREYSCALE_0_30}, 0 0 0 1px ${vf.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${vf.GREYSCALE_0_15}, 0 0 0 1px ${vf.GREYSCALE_0_06}, 0 0 0 2px ${vf.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${vf.GREYSCALE_0_15}, 0 0 0 1px ${vf.GREYSCALE_0_06}, 0 0 0 2px ${vf.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:vf.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:vf.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:vf.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:vf.GREYSCALE_0_15},markLabel:{color:vf.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:vf.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:vf.WHITE,color:vf.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:vf.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:vf.GREEN_PALE,boxShadow:`0 0 0 3px ${Vc(vf.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:vf.BLUE_PALE,boxShadow:`0 0 0 3px ${Vc(vf.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:vf.GREYSCALE_0_15,borderRadius:Cf},thumb:{height:"16px",width:"16px",borderRadius:Cf,backgroundColor:vf.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:xf,fontWeight:Af,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${vf.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${vf.MISC_FOCUS_BORDER}`,backgroundColor:vf.GREYSCALE_0_03,borderRadius:Cf},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:vf.GREYSCALE_25,"&.Mui-selected":{color:vf.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:xf,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${vf.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${vf.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${vf.GREYSCALE_85}`,borderRight:`1px solid ${vf.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Af,backgroundColor:vf.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:vf.GREYSCALE_98,borderBottom:`1px solid ${vf.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${vf.GREYSCALE_85}`,borderTop:`1px solid ${vf.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:vf.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:vf.GREYSCALE_0_05,"&:hover":{backgroundColor:vf.GREYSCALE_0_03}},"&&:hover":{backgroundColor:vf.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(zf,{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 ${vf.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:xf,borderRadius:Cf,padding:"7px 16px",border:`1px solid ${vf.GREYSCALE_0_15}`,backgroundColor:vf.GREYSCALE_100_60,color:vf.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:vf.GREYSCALE_0_10,border:`1px solid ${vf.GREYSCALE_0_30}`},"&:hover":{backgroundColor:vf.GREYSCALE_0_03,border:`1px solid ${vf.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:vf.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${vf.MISC_FOCUS_BORDER}`,border:`1px solid ${vf.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:vf.GREYSCALE_25,backgroundColor:vf.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:vf.GREYSCALE_0_10,border:`1px solid ${vf.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:yf,height:24,width:24,padding:7},sizeLarge:{fontSize:Sf,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:xf,borderRadius:Cf}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:vf.GREYSCALE_20},tooltip:{backgroundColor:vf.GREYSCALE_20,fontSize:yf,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const gb={mode:"light",primary:{light:vf.GREEN_PALE,main:vf.GREEN,dark:vf.GREEN_DARK,contrastText:vf.WHITE},secondary:{light:vf.BLUE_PALE,main:vf.BLUE,dark:vf.BLUE_DARK,contrastText:vf.WHITE},error:{light:vf.RED_PALE,main:vf.RED,dark:vf.RED_DARK,contrastText:vf.WHITE},warning:{light:vf.ORANGE_PALE,main:vf.ORANGE,dark:vf.ORANGE_DARK,contrastText:vf.WHITE},success:{light:vf.GREEN_PALE,main:vf.GREEN,dark:vf.GREEN_DARK,contrastText:vf.WHITE},info:{light:vf.BLUE_PALE,main:vf.BLUE,dark:vf.BLUE_DARK,contrastText:vf.WHITE},text:{primary:vf.TEXT_PRIMARY,secondary:vf.TEXT_SECONDARY,disabled:vf.GREYSCALE_0_30},action:{hover:vf.GREYSCALE_0_03,hoverOpacity:.05,selected:vf.GREYSCALE_0_05,focus:vf.MISC_FOCUS_BORDER},amethyst:{main:vf.PURPLE,light:vf.PURPLE_PALE,dark:vf.PURPLE_DARK,contrastText:vf.WHITE},background:{paper:vf.WHITE,default:vf.GREYSCALE_95},divider:vf.GREYSCALE_0_15},bb=e=>({components:hb,palette:gb,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:xf,fontWeightLight:wf,fontWeightRegular:Rf,fontWeightMedium:Af,fontWeightBold:Pf,htmlFontSize:xf,fontFamily:If.FONT_FAMILY,button:{fontWeight:Af,fontSize:xf,textTransform:"none"},body1:{fontSize:Sf,lineHeight:"24px"},body2:{fontSize:xf,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Ef,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Sf,fontWeight:Af,lineHeight:"16px"},h6:{fontSize:xf,fontWeight:Af,lineHeight:"16px"},caption:{color:vf.TEXT_SECONDARY},subtitle1:{fontSize:xf,color:vf.TEXT_SECONDARY},subtitle2:{fontSize:yf,color:vf.TEXT_SECONDARY}},shape:{borderRadius:Cf}}),vb={...bf,MISC_FOCUS_BORDER:vf.MISC_FOCUS_BORDER},yb=(e="light")=>bb(),xb=yb().palette,Sb={SELECTED:{color:vb.GREYSCALE_100,background:xb.primary.light,selectedCellClass:of.SELECTED},POSSIBLE:{color:xb.text.primary,background:vb.GREYSCALE_100},EXCLUDED_BACKGROUND:"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"},Eb=4/3,Cb="12px",wb="600",Rb={height:"auto",fontSize:Cb,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},Ab=25e4,Pb=(e,t,n,r)=>{if(null==e||!e.length)return[];const o=[],i=[],a=r?Dr.PixelsMin:Dr.PixelsMinTable;let l=t;if(e.forEach(((e,r)=>{if(e.columnWidth){const{columnWidth:{type:s,pixels:u,percentage:c},label:d,qApprMaxGlyphCount:p,totalInfo:f}=e;let m=0;const h=()=>{o[r]=Math.min(Dr.PixelsMax,Math.max(a,m)),l-=o[r]};switch(s){case Mr.Pixels:m=u||Dr.PixelsDefault,h();break;case Mr.Percentage:m=(c||Dr.PercentageDefault)/100*t,h();break;case Mr.FitToContent:m=n(d,f,p,e.isLocked,e.isActivelySorted),h();break;case Mr.Auto:i.push(r);break;default:throw new Error(`${s} is not a valid column width type`)}}else i.push(r)})),i.length){const e=l/i.length;i.forEach((t=>{o[t]=Math.max(a,e)}))}return o},Ib={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"},Lb={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Ib,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_25:"rgba(0, 0, 0, 0.25)",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_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Db=12,Mb=14,Ob=16,Tb=24,kb=3,_b=300,qb=400,Nb=600,Fb=700,jb={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};gf(Lb.GREYSCALE_0,.05),gf(Lb.GREEN_PALE,.5),gf(Lb.BLUE_PALE,.5),gf(Lb.GREEN_PALE,.5),gf(Lb.BLUE_PALE,.5),gf(Lb.GREEN_PALE,.5),gf(Lb.BLUE_PALE,.5);var zb;function $b(){return $b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$b.apply(this,arguments)}gf(Lb.GREEN_PALE,.5),gf(Lb.BLUE_PALE,.5),gf(Lb.GREEN_PALE,.5),gf(Lb.BLUE_PALE,.5);var Hb,Bb=function(e){return y.createElement("svg",$b({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),zb||(zb=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Wb(){return Wb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wb.apply(this,arguments)}var Gb=function(e){return y.createElement("svg",Wb({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Hb||(Hb=y.createElement("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.345z"})))};function Vb({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var Ub=(e={})=>x.createElement(Vb,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.createElement("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"}))),Yb=(e={})=>x.createElement(Vb,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Kb=(e={})=>x.createElement(Vb,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Xb=(e={})=>x.createElement(Vb,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),x.createElement("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"}))),Jb=({className:e})=>x.createElement(Vb,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.createElement("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"}),x.createElement("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"}))))));var Zb={black:"#000",white:"#fff"};var Qb={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var ev={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var tv={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var nv={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var rv={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var ov={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var iv={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"};function av(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 lv="$$material";const sv=Ts((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var uv=sv;
24
113
  /**
25
- * @license React
26
- * react-is.production.min.js
27
- *
28
- * Copyright (c) Facebook, Inc. and its affiliates.
114
+ * @mui/styled-engine-sc v6.0.0-alpha.16
29
115
  *
116
+ * @license MIT
30
117
  * This source code is licensed under the MIT license found in the
31
118
  * LICENSE file in the root directory of this source tree.
32
- */function yc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ic:switch(e=e.type){case lc:case uc:case sc:case mc:case hc:return e;default:switch(e=e&&e.$$typeof){case pc:case dc:case fc:case bc:case gc:case cc:return e;default:return t}}case ac:return t}}}rc=Symbol.for("react.module.reference"),oc.ContextConsumer=dc,oc.ContextProvider=cc,oc.Element=ic,oc.ForwardRef=fc,oc.Fragment=lc,oc.Lazy=bc,oc.Memo=gc,oc.Portal=ac,oc.Profiler=uc,oc.StrictMode=sc,oc.Suspense=mc,oc.SuspenseList=hc,oc.isAsyncMode=function(){return!1},oc.isConcurrentMode=function(){return!1},oc.isContextConsumer=function(e){return yc(e)===dc},oc.isContextProvider=function(e){return yc(e)===cc},oc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ic},oc.isForwardRef=function(e){return yc(e)===fc},oc.isFragment=function(e){return yc(e)===lc},oc.isLazy=function(e){return yc(e)===bc},oc.isMemo=function(e){return yc(e)===gc},oc.isPortal=function(e){return yc(e)===ac},oc.isProfiler=function(e){return yc(e)===uc},oc.isStrictMode=function(e){return yc(e)===sc},oc.isSuspense=function(e){return yc(e)===mc},oc.isSuspenseList=function(e){return yc(e)===hc},oc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===lc||e===uc||e===sc||e===mc||e===hc||e===vc||"object"==typeof e&&null!==e&&(e.$$typeof===bc||e.$$typeof===gc||e.$$typeof===cc||e.$$typeof===dc||e.$$typeof===fc||e.$$typeof===rc||void 0!==e.getModuleId)},oc.typeOf=yc;var xc=!1,Sc=x.createContext(null),Ec="unmounted",Cc="exited",wc="entering",Rc="entered",Ac="exiting",Dc=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=Cc,r.appearStatus=wc):o=Rc:o=t.unmountOnExit||t.mountOnEnter?Ec:Cc,r.state={status:o},r.nextCallback=null,r}wu(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ec?{status:Cc}: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!==wc&&n!==Rc&&(t=wc):n!==wc&&n!==Rc||(t=Ac)}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===wc){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:z.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Cc&&this.setState({status:Ec})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[z.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||xc?this.safeSetState({status:Rc},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:wc},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Rc},(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:z.findDOMNode(this);t&&!xc?(this.props.onExit(r),this.safeSetState({status:Ac},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Cc},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Cc},(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:z.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===Ec)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=qr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Sc.Provider,{value:null},"function"==typeof n?n(e,r):x.cloneElement(x.Children.only(n),r))},t}(x.Component);function Pc(){}Dc.contextType=Sc,Dc.propTypes={},Dc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pc,onEntering:Pc,onEntered:Pc,onExit:Pc,onExiting:Pc,onExited:Pc},Dc.UNMOUNTED=Ec,Dc.EXITED=Cc,Dc.ENTERING=wc,Dc.ENTERED=Rc,Dc.EXITING=Ac;var Ic=Dc;function Tc(e,t){var n=Object.create(null);return e&&D.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&P(e)?t(e):e}(e)})),n}function Mc(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Lc(e,t,n){var r=Tc(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(P(a)){var l=i in t,s=i in r,u=t[i],c=P(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&P(u)&&(o[i]=I(a,{onExited:n.bind(null,a),in:u.props.in,exit:Mc(a,"exit",e),enter:Mc(a,"enter",e)})):o[i]=I(a,{in:!1}):o[i]=I(a,{onExited:n.bind(null,a),in:!0,exit:Mc(a,"exit",e),enter:Mc(a,"enter",e)})}})),o}var qc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},kc=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Ru(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}wu(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,Tc(n.children,(function(e){return I(e,{onExited:r.bind(null,e),in:!0,appear:Mc(e,"appear",n),enter:Mc(e,"enter",n),exit:Mc(e,"exit",n)})}))):Lc(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Tc(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Gn({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=qr(e,["component","childFactory"]),o=this.state.contextValue,i=qc(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?x.createElement(Sc.Provider,{value:o},i):x.createElement(Sc.Provider,{value:o},x.createElement(t,r,i))},t}(x.Component);kc.propTypes={},kc.defaultProps={component:"div",childFactory:function(e){return e}};var Oc=kc;const Nc=e=>e.scrollTop;function _c(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 Fc(e){return Tr("MuiPaper",e)}Mr("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 zc=["className","component","elevation","square","variant"],Hc=tu("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 Gn({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&&Gn({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${ds("#fff",ou(t.elevation))}, ${ds("#fff",ou(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var jc=y.forwardRef((function(e,t){const n=Xs({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=qr(n,zc),u=Gn({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Ar({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Fc,o)})(u);return Hl.jsx(Hc,Gn({as:o,ownerState:u,className:Xu(c.root,r),ref:t},s))}));var Bc=Mr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const $c=["center","classes","className"];let Wc,Vc,Uc,Gc,Yc=e=>e;const Kc=Ea(Wc||(Wc=Yc`
119
+ */
120
+ function cv(e,t){let n;return n=t?Ms(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ms(e),n}sv.propTypes={defaultTheme:Fs.object,styles:Fs.oneOfType([Fs.array,Fs.string,Fs.object,Fs.func])};const dv=["values","unit","step"],pv=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)=>$i({},e,{[t.key]:t.val})),{})};var fv={borderRadius:4};function mv(e,t){return t?Vs(e,t,{clone:!1}):e}const hv={xs:0,sm:600,md:900,lg:1200,xl:1536},gv={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${hv[e]}px)`};function bv(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||gv;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||gv;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||hv).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function vv(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 yv(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:vv(e,n)||r,t&&(o=t(o,r,e)),o}function xv(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=vv(e.theme,r)||{};return bv(e,i,(e=>{let r=yv(a,o,e);return e===r&&"string"==typeof e&&(r=yv(a,o,`${t}${"default"===e?"":nu(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Sv={m:"margin",p:"padding"},Ev={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Cv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},wv=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Cv[e])return[e];e=Cv[e]}const[t,n]=e.split(""),r=Sv[t],o=Ev[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Rv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Av=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Pv(e,t,n,r){var o;const i=null!=(o=vv(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 Iv(e){return Pv(e,"spacing",8)}function Lv(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 Dv(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Lv(t,n),e)),{})}(wv(n),r);return bv(e,e[n],o)}function Mv(e,t){const n=Iv(e.theme);return Object.keys(e).map((r=>Dv(e,t,r,n))).reduce(mv,{})}function Ov(e){return Mv(e,Rv)}function Tv(e){return Mv(e,Av)}function kv(...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]?mv(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function _v(e){return"number"!=typeof e?e:`${e}px solid`}function qv(e,t){return xv({prop:e,themeKey:"borders",transform:t})}Ov.propTypes={},Ov.filterProps=Rv,Tv.propTypes={},Tv.filterProps=Av;const Nv=qv("border",_v),Fv=qv("borderTop",_v),jv=qv("borderRight",_v),zv=qv("borderBottom",_v),$v=qv("borderLeft",_v),Hv=qv("borderColor"),Bv=qv("borderTopColor"),Wv=qv("borderRightColor"),Gv=qv("borderBottomColor"),Vv=qv("borderLeftColor"),Uv=qv("outline",_v),Yv=qv("outlineColor"),Kv=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Pv(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Lv(t,e)});return bv(e,e.borderRadius,n)}return null};Kv.propTypes={},Kv.filterProps=["borderRadius"],kv(Nv,Fv,jv,zv,$v,Hv,Bv,Wv,Gv,Vv,Kv,Uv,Yv);const Xv=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Pv(e.theme,"spacing",8),n=e=>({gap:Lv(t,e)});return bv(e,e.gap,n)}return null};Xv.propTypes={},Xv.filterProps=["gap"];const Jv=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Pv(e.theme,"spacing",8),n=e=>({columnGap:Lv(t,e)});return bv(e,e.columnGap,n)}return null};Jv.propTypes={},Jv.filterProps=["columnGap"];const Zv=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Pv(e.theme,"spacing",8),n=e=>({rowGap:Lv(t,e)});return bv(e,e.rowGap,n)}return null};Zv.propTypes={},Zv.filterProps=["rowGap"];function Qv(e,t){return"grey"===t?t:e}kv(Xv,Jv,Zv,xv({prop:"gridColumn"}),xv({prop:"gridRow"}),xv({prop:"gridAutoFlow"}),xv({prop:"gridAutoColumns"}),xv({prop:"gridAutoRows"}),xv({prop:"gridTemplateColumns"}),xv({prop:"gridTemplateRows"}),xv({prop:"gridTemplateAreas"}),xv({prop:"gridArea"}));function ey(e){return e<=1&&0!==e?100*e+"%":e}kv(xv({prop:"color",themeKey:"palette",transform:Qv}),xv({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qv}),xv({prop:"backgroundColor",themeKey:"palette",transform:Qv}));const ty=xv({prop:"width",transform:ey}),ny=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])||hv[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:ey(t)}};return bv(e,e.maxWidth,t)}return null};ny.filterProps=["maxWidth"];const ry=xv({prop:"minWidth",transform:ey}),oy=xv({prop:"height",transform:ey}),iy=xv({prop:"maxHeight",transform:ey}),ay=xv({prop:"minHeight",transform:ey});xv({prop:"size",cssProperty:"width",transform:ey}),xv({prop:"size",cssProperty:"height",transform:ey});kv(ty,ny,ry,oy,iy,ay,xv({prop:"boxSizing"}));var ly={border:{themeKey:"borders",transform:_v},borderTop:{themeKey:"borders",transform:_v},borderRight:{themeKey:"borders",transform:_v},borderBottom:{themeKey:"borders",transform:_v},borderLeft:{themeKey:"borders",transform:_v},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:_v},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Kv},color:{themeKey:"palette",transform:Qv},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qv},backgroundColor:{themeKey:"palette",transform:Qv},p:{style:Tv},pt:{style:Tv},pr:{style:Tv},pb:{style:Tv},pl:{style:Tv},px:{style:Tv},py:{style:Tv},padding:{style:Tv},paddingTop:{style:Tv},paddingRight:{style:Tv},paddingBottom:{style:Tv},paddingLeft:{style:Tv},paddingX:{style:Tv},paddingY:{style:Tv},paddingInline:{style:Tv},paddingInlineStart:{style:Tv},paddingInlineEnd:{style:Tv},paddingBlock:{style:Tv},paddingBlockStart:{style:Tv},paddingBlockEnd:{style:Tv},m:{style:Ov},mt:{style:Ov},mr:{style:Ov},mb:{style:Ov},ml:{style:Ov},mx:{style:Ov},my:{style:Ov},margin:{style:Ov},marginTop:{style:Ov},marginRight:{style:Ov},marginBottom:{style:Ov},marginLeft:{style:Ov},marginX:{style:Ov},marginY:{style:Ov},marginInline:{style:Ov},marginInlineStart:{style:Ov},marginInlineEnd:{style:Ov},marginBlock:{style:Ov},marginBlockStart:{style:Ov},marginBlockEnd:{style:Ov},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:Xv},rowGap:{style:Zv},columnGap:{style:Jv},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ey},maxWidth:{style:ny},minWidth:{transform:ey},height:{transform:ey},maxHeight:{transform:ey},minHeight:{transform:ey},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const sy=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=vv(n,l)||{};if(u)return u(o);return bv(o,t,(t=>{let n=yv(c,s,t);return t===n&&"string"==typeof t&&(n=yv(c,s,`${e}${"default"===t?"":nu(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:ly;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=mv(s,e(n,o,i,a));else{const e=bv({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=mv(s,e):s[n]=t({sx:o,theme:i})}else s=mv(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();sy.filterProps=["sx"];var uy=sy;function cy(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const dy=["breakpoints","palette","spacing","shape"];function py(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Hi(e,dy),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Hi(e,dv),i=pv(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(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 $i({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}(n),s=function(e=8){if(e.mui)return e;const t=Iv({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 u=Vs({breakpoints:l,direction:"ltr",components:{},palette:$i({mode:"light"},r),spacing:s,shape:$i({},fv,i)},a);return u.applyStyles=cy,u=t.reduce(((e,t)=>Vs(e,t)),u),u.unstable_sxConfig=$i({},ly,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return uy({sx:e,theme:this})},u}function fy(e=null){const t=y.useContext(Cs);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const my=py();function hy(e=my){return fy(e)}function gy({styles:e,themeId:t,defaultTheme:n={}}){const r=hy(n),o="function"==typeof e?e(t&&r[t]||r):e;return Ni.jsx(uv,{styles:o})}const by=["sx"],vy=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:ly;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function yy(e){const{sx:t}=e,n=Hi(e,by),{systemProps:r,otherProps:o}=vy(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Ws(n)?$i({},r,n):r}:$i({},r,t),$i({},o,{sx:i})}const xy=["className","component"];const Sy=["ownerState"],Ey=["variants"],Cy=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function wy(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Ry=py(),Ay=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Py({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Iy(e){return e?(t,n)=>n[e]:null}function Ly(e,t){let{ownerState:n}=t,r=Hi(t,Sy);const o="function"==typeof e?e($i({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Ly(e,$i({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Hi(o,Ey);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props($i({ownerState:n},r)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style($i({ownerState:n},r)):e.style))})),t}return o}function Dy({props:e,name:t,defaultTheme:n,themeId:r}){let o=hy(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?zc(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function My(e,t=0,n=1){return Bc(e,t,n)}function Oy(e){if(e.type)return e;if("#"===e.charAt(0))return Oy(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(Fi(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(Fi(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function Ty(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 ky(e){let t="hsl"===(e=Oy(e)).type||"hsla"===e.type?Oy(function(e){e=Oy(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Ty({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function _y(e,t){return e=Oy(e),t=My(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Ty(e)}function qy(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 Ny(e){if(!qy(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Ny(e[n])})),t}function Fy(e,t,n={clone:!0}){const r=n.clone?$i({},e):e;return qy(e)&&qy(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(qy(t[o])&&o in e&&qy(e[o])?r[o]=Fy(e[o],t[o],n):n.clone?r[o]=qy(t[o])?Ny(t[o]):t[o]:r[o]=t[o])})),r}function jy(e){if("string"!=typeof e)throw new Error(av(7));return e.charAt(0).toUpperCase()+e.slice(1)}function zy(e){return e&&e.ownerDocument||document}function $y(e){return zy(e).defaultView||window}var Hy="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;let By=0;const Wy=y["useId".toString()];function Gy(e){if(void 0!==Wy){const t=Wy();return null!=e?e:t}return function(e){const[t,n]=y.useState(e),r=e||t;return y.useEffect((()=>{null==t&&(By+=1,n(`mui-${By}`))}),[t]),r}(e)}function Vy({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=y.useRef(void 0!==e),[i,a]=y.useState(t);return[o?e:i,y.useCallback((e=>{o||a(e)}),[])]}function Uy(e){const t=y.useRef(e);return Hy((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function Yy(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}class Ky{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Ky}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let Xy=!0,Jy=!1;const Zy=new Ky,Qy={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 ex(e){e.metaKey||e.altKey||e.ctrlKey||(Xy=!0)}function tx(){Xy=!1}function nx(){"hidden"===this.visibilityState&&Jy&&(Xy=!0)}function rx(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Xy||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Qy[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function ox(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ex,!0),t.addEventListener("mousedown",tx,!0),t.addEventListener("pointerdown",tx,!0),t.addEventListener("touchstart",tx,!0),t.addEventListener("visibilitychange",nx,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!rx(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Jy=!0,Zy.start(100,(()=>{Jy=!1})),t.current=!1,!0)},ref:e}}function ix(e,t){const n=$i({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=$i({},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]=$i({},i),Object.keys(o).forEach((e=>{n[r][e]=ix(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const ax=e=>e;var lx=(()=>{let e=ax;return{configure(t){e=t},generate:t=>e(t),reset(){e=ax}}})();const sx={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 ux(e,t,n="Mui"){const r=sx[t];return r?`${n}-${r}`:`${lx.generate(e)}-${t}`}function cx(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=ux(e,t,n)})),r}const dx=["mode","contrastThreshold","tonalOffset"],px={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:Zb.white,default:Zb.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}},fx={text:{primary:Zb.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:Zb.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 mx(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Oy(e),t=My(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 Ty(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Oy(e),t=My(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 Ty(e)}(e.main,i)))}function hx(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Hi(e,dx),i=e.primary||function(e="light"){return"dark"===e?{main:tv[200],light:tv[50],dark:tv[400]}:{main:tv[700],light:tv[400],dark:tv[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:ev[200],light:ev[50],dark:ev[400]}:{main:ev[500],light:ev[300],dark:ev[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Qb[500],light:Qb[300],dark:Qb[700]}:{main:Qb[700],light:Qb[400],dark:Qb[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:nv[400],light:nv[300],dark:nv[700]}:{main:nv[700],light:nv[500],dark:nv[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:rv[400],light:rv[300],dark:rv[700]}:{main:rv[800],light:rv[500],dark:rv[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:ov[400],light:ov[300],dark:ov[700]}:{main:"#ed6c02",light:ov[500],dark:ov[900]}}(t);function d(e){const t=function(e,t){const n=ky(e),r=ky(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,fx.text.primary)>=n?fx.text.primary:px.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=$i({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(av(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(av(12,t?` (${t})`:"",JSON.stringify(e.main)));return mx(e,"light",o,r),mx(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:fx,light:px};return Fy($i({common:$i({},Zb),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:iv,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const gx=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const bx={textTransform:"uppercase"},vx='"Roboto", "Helvetica", "Arial", sans-serif';function yx(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=vx,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Hi(n,gx),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return $i({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===vx?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,bx),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,bx),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Fy($i({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function xx(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var Sx=["none",xx(0,2,1,-1,0,1,1,0,0,1,3,0),xx(0,3,1,-2,0,2,2,0,0,1,5,0),xx(0,3,3,-2,0,3,4,0,0,1,8,0),xx(0,2,4,-1,0,4,5,0,0,1,10,0),xx(0,3,5,-1,0,5,8,0,0,1,14,0),xx(0,3,5,-1,0,6,10,0,0,1,18,0),xx(0,4,5,-2,0,7,10,1,0,2,16,1),xx(0,5,5,-3,0,8,10,1,0,3,14,2),xx(0,5,6,-3,0,9,12,1,0,3,16,2),xx(0,6,6,-3,0,10,14,1,0,4,18,3),xx(0,6,7,-4,0,11,15,1,0,4,20,3),xx(0,7,8,-4,0,12,17,2,0,5,22,4),xx(0,7,8,-4,0,13,19,2,0,5,24,4),xx(0,7,9,-4,0,14,21,2,0,5,26,4),xx(0,8,9,-5,0,15,22,2,0,6,28,5),xx(0,8,10,-5,0,16,24,2,0,6,30,5),xx(0,8,11,-5,0,17,26,2,0,6,32,5),xx(0,9,11,-5,0,18,28,2,0,7,34,6),xx(0,9,12,-6,0,19,29,2,0,7,36,6),xx(0,10,13,-6,0,20,31,3,0,8,38,7),xx(0,10,13,-6,0,21,33,3,0,8,40,7),xx(0,10,14,-6,0,22,35,3,0,8,42,7),xx(0,11,14,-7,0,23,36,3,0,9,44,8),xx(0,11,15,-7,0,24,38,3,0,9,46,8)];const Ex=["duration","easing","delay"],Cx={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)"},wx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Rx(e){return`${Math.round(e)}ms`}function Ax(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Px(e){const t=$i({},Cx,e.easing),n=$i({},wx,e.duration);return $i({getAutoHeightDuration:Ax,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Hi(r,Ex),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Rx(o)} ${i} ${"string"==typeof a?a:Rx(a)}`)).join(",")}},e,{easing:t,duration:n})}var Ix={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Lx=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Dx(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Hi(e,Lx);if(e.vars)throw new Error(av(18));const l=hx(r),s=py(e);let u=Fy(s,{mixins:(c=s.breakpoints,d=n,$i({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Sx.slice(),typography:yx(l,i),transitions:Px(o),zIndex:$i({},Ix),applyDarkStyles(e){if(this.vars){return{[this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)")]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=Fy(u,a),u=t.reduce(((e,t)=>Fy(e,t)),u),u.unstable_sxConfig=$i({},ly,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return uy({sx:e,theme:this})},u}var Mx=Dx();function Ox(){const e=hy(Mx);return e[lv]||e}function Tx({props:e,name:t}){return Dy({props:e,name:t,defaultTheme:Mx,themeId:lv})}const kx=e=>wy(e)&&"classes"!==e,_x=wy,qx=function(e={}){const{themeId:t,defaultTheme:n=Ry,rootShouldForwardProp:r=wy,slotShouldForwardProp:o=wy}=e,i=e=>uy($i({},e,{theme:Py($i({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Iy(Ay(s))}=a,p=Hi(a,Cy),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=wy;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=cv(e,$i({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||Ws(e)?r=>Ly(e,$i({},r,{theme:Py({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=Py($i({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=Ly(n,$i({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=Py($i({},e,{defaultTheme:n,themeId:t}));return Ly({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},$i({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:lv,defaultTheme:Mx,rootShouldForwardProp:kx});var Nx=qx;var Fx=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function jx(e){return ux("MuiSvgIcon",e)}cx("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const zx=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],$x=Nx("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${jy(n.color)}`],t[`fontSize${jy(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),Hx=y.forwardRef((function(e,t){const n=Tx({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=Hi(n,zx),f=y.isValidElement(r)&&"svg"===r.type,m=$i({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return md({root:["root","inherit"!==t&&`color${jy(t)}`,`fontSize${jy(n)}`]},jx,r)})(m);return Ni.jsxs($x,$i({as:a,className:dc(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&r.props,{ownerState:m,children:[f?r.props.children:r,c?Ni.jsx("title",{children:c}):null]}))}));Hx.muiName="SvgIcon";var Bx=Hx;const Wx=e=>e.scrollTop;function Gx(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 Vx(e){return ux("MuiPaper",e)}cx("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 Ux=["className","component","elevation","square","variant"],Yx=Nx("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 $i({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&&$i({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${_y("#fff",Fx(t.elevation))}, ${_y("#fff",Fx(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var Kx=y.forwardRef((function(e,t){const n=Tx({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Hi(n,Ux),u=$i({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return md({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Vx,o)})(u);return Ni.jsx(Yx,$i({as:o,ownerState:u,className:dc(c.root,r),ref:t},s))}));function Xx(e){return"string"==typeof e}function Jx(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 Zx(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 Qx=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function eS(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Hi(e,Qx),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=dc(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=$i({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=$i({},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=Jx($i({},o,r)),l=Zx(r),s=Zx(o),u=t(a),c=dc(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=$i({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=$i({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}($i({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||Xx(e)?t:$i({},t,{ownerState:$i({},t.ownerState,n)})}(n,$i({},s,{ref:Qc(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var tS=cx("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const nS=["center","classes","className"];let rS,oS,iS,aS,lS=e=>e;const sS=ks(rS||(rS=lS`
33
121
  0% {
34
122
  transform: scale(0);
35
123
  opacity: 0.1;
@@ -39,7 +127,7 @@ function Aa(e,t){let n;return n=t?Ca(e).withConfig({displayName:t.label,shouldFo
39
127
  transform: scale(1);
40
128
  opacity: 0.3;
41
129
  }
42
- `)),Zc=Ea(Vc||(Vc=Yc`
130
+ `)),uS=ks(oS||(oS=lS`
43
131
  0% {
44
132
  opacity: 1;
45
133
  }
@@ -47,7 +135,7 @@ function Aa(e,t){let n;return n=t?Ca(e).withConfig({displayName:t.label,shouldFo
47
135
  100% {
48
136
  opacity: 0;
49
137
  }
50
- `)),Xc=Ea(Uc||(Uc=Yc`
138
+ `)),cS=ks(iS||(iS=lS`
51
139
  0% {
52
140
  transform: scale(1);
53
141
  }
@@ -59,7 +147,7 @@ function Aa(e,t){let n;return n=t?Ca(e).withConfig({displayName:t.label,shouldFo
59
147
  100% {
60
148
  transform: scale(1);
61
149
  }
62
- `)),Jc=tu("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Qc=tu((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=y.useState(!1),p=Xu(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Xu(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),y.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Hl.jsx("span",{className:p,style:f,children:Hl.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Gc||(Gc=Yc`
150
+ `)),dS=Nx("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),pS=Nx((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=y.useState(!1),p=dc(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=dc(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),y.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Ni.jsx("span",{className:p,style:f,children:Ni.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(aS||(aS=lS`
63
151
  opacity: 0;
64
152
  position: absolute;
65
153
 
@@ -102,4 +190,4 @@ function Aa(e,t){let n;return n=t?Ca(e).withConfig({displayName:t.label,shouldFo
102
190
  animation-iteration-count: infinite;
103
191
  animation-delay: 200ms;
104
192
  }
105
- `),Bc.rippleVisible,Kc,550,(({theme:e})=>e.transitions.easing.easeInOut),Bc.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Bc.child,Bc.childLeaving,Zc,550,(({theme:e})=>e.transitions.easing.easeInOut),Bc.childPulsate,Xc,(({theme:e})=>e.transitions.easing.easeInOut));var ed=y.forwardRef((function(e,t){const n=Xs({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=qr(n,$c),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=y.useRef(0),f=y.useRef(null),m=y.useRef(null);y.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=y.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Hl.jsx(Qc,{classes:{ripple:Xu(o.ripple,Bc.ripple),rippleVisible:Xu(o.rippleVisible,Bc.rippleVisible),ripplePulsate:Xu(o.ripplePulsate,Bc.ripplePulsate),child:Xu(o.child,Bc.child),childLeaving:Xu(o.childLeaving,Bc.childLeaving),childPulsate:Xu(o.childPulsate,Bc.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Hl.jsx(Jc,Gn({className:Xu(Bc.root,o.root,i),ref:m},a,{children:Hl.jsx(Oc,{component:null,exit:!0,children:l})}))}));function td(e){return Tr("MuiButtonBase",e)}var nd=Mr("MuiButtonBase",["root","disabled","focusVisible"]);const rd=["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"],od=tu("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"},[`&.${nd.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),id=y.forwardRef((function(e,t){const n=Xs({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:D,tabIndex:P=0,TouchRippleProps:I,touchRippleRef:T,type:M}=n,L=qr(n,rd),q=y.useRef(null),k=y.useRef(null),O=mr(k,T),{isFocusVisibleRef:N,onFocus:_,onBlur:F,ref:z}=Cr(),[H,j]=y.useState(!1);s&&H&&j(!1),y.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),q.current.focus()}})),[]);const[B,$]=y.useState(!1);y.useEffect((()=>{$(!0)}),[]);const W=B&&!u&&!s;function V(e,t,n=c){return fr((r=>{t&&t(r);return!n&&k.current&&k.current[e](r),!0}))}y.useEffect((()=>{H&&d&&!u&&B&&k.current.pulsate()}),[u,d,H,B]);const U=V("start",E),G=V("stop",h),Y=V("stop",g),K=V("stop",w),Z=V("stop",(e=>{H&&e.preventDefault(),C&&C(e)})),X=V("start",D),J=V("stop",R),Q=V("stop",A),ee=V("stop",(e=>{F(e),!1===N.current&&j(!1),f&&f(e)}),!1),te=fr((e=>{q.current||(q.current=e.currentTarget),_(e),!0===N.current&&(j(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=q.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=y.useRef(!1),oe=fr((e=>{d&&!re.current&&H&&k.current&&" "===e.key&&(re.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=fr((e=>{d&&" "===e.key&&k.current&&H&&!e.defaultPrevented&&(re.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(L.href||L.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===M?"button":M,le.disabled=s):(L.href||L.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=mr(t,z,q),ue=Gn({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:P,focusVisible:H}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Ar({root:["root",t&&"disabled",n&&"focusVisible"]},td,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Hl.jsxs(od,Gn({as:ae,className:Xu(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:Z,onMouseUp:K,onDragLeave:Y,onTouchEnd:J,onTouchMove:Q,onTouchStart:X,ref:se,tabIndex:s?-1:P,type:M},le,L,{children:[i,W?Hl.jsx(ed,Gn({ref:O,center:o},I)):null]}))}));var ad=id;function ld(e){return Tr("MuiTypography",e)}Mr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const sd=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ud=tu("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${nr(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Gn({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}))),cd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},dd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},pd=y.forwardRef((function(e,t){const n=Xs({props:e,name:"MuiTypography"}),r=(e=>dd[e]||e)(n.color),o=Wl(Gn({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=cd}=o,f=qr(o,sd),m=Gn({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||cd[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Ar({root:["root",i,"inherit"!==e.align&&`align${nr(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},ld,a)})(m);return Hl.jsx(ud,Gn({as:h,ref:t,ownerState:m,className:Xu(g.root,a)},f))}));var fd=pd;function md(e){return"string"==typeof e}function hd(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 gd(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=gd(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function bd(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=gd(e))&&(r&&(r+=" "),r+=t);return r}function vd(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 yd=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function xd(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=qr(e,yd),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=bd(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Gn({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Gn({},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=hd(Gn({},o,r)),l=vd(r),s=vd(o),u=t(a),c=bd(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Gn({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Gn({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Gn({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||md(e)?t:Gn({},t,{ownerState:Gn({},t.ownerState,n)})}(n,Gn({},s,{ref:mr(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const Sd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ed(e){const t=[],n=[];return Array.from(e.querySelectorAll(Sd)).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 Cd(){return!0}function wd(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Ed,isEnabled:a=Cd,open:l}=e,s=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),m=y.useRef(null),h=mr(t.ref,m),g=y.useRef(null);y.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),y.useEffect((()=>{if(!l||!m.current)return;const e=ir(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),y.useEffect((()=>{if(!l||!m.current)return;const e=ir(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Hl.jsxs(y.Fragment,{children:[Hl.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Hl.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Rd=y.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=mr(y.isValidElement(n)?n.ref:null,t);if(sr((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),sr((()=>{if(i&&!o)return lr(t,i),()=>{lr(t,null)}}),[t,i,o]),o){if(y.isValidElement(n)){const e={ref:l};return y.cloneElement(n,e)}return Hl.jsx(y.Fragment,{children:n})}return Hl.jsx(y.Fragment,{children:i?F.createPortal(n,i):i})}));function Ad(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Dd(e){return parseInt(ar(e).getComputedStyle(e).paddingRight,10)||0}function Pd(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&&Ad(e,o)}))}function Id(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Td(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=ir(e);return t.body===e?ar(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=wr(ir(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Dd(r)+e}px`;const t=ir(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Dd(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=ir(r).body;else{const t=r.parentElement,n=ar(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 Md=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&&Ad(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);Pd(t,e.mount,e.modalRef,r,!0);const o=Id(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=Id(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Td(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Id(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&&Ad(e.modalRef,t),Pd(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&&Ad(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Ld(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Md,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),m=y.useRef(null),h=mr(m,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},C=fr((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ir(f.current).body;o.add(S(),e),m.current&&E()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=fr((e=>{f.current=e,e&&(c&&w()?E():m.current&&Ad(m.current,x))})),A=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{A()}),[A]),y.useEffect((()=>{c?C():v&&i||A()}),[c,A,v,i,C]);const D=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},P=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=hd(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Gn({},n,t);return Gn({role:"presentation"},r,{onKeyDown:D(r),ref:h})},getBackdropProps:(e={})=>Gn({"aria-hidden":!0},e,{onClick:P(e),open:c}),getTransitionProps:()=>({onEnter:rr((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:rr((()=>{b(!0),l&&l(),i&&A()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const qd=["onChange","maxRows","minRows","style","value"];function kd(e){return parseInt(e,10)||0}const Od={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Nd(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const _d=y.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=qr(e,qd),{current:s}=y.useRef(null!=a),u=y.useRef(null),c=mr(t,u),d=y.useRef(null),p=y.useRef(0),[f,m]=y.useState({outerHeightStyle:0}),h=y.useCallback((()=>{const t=u.current,n=ar(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=kd(n.paddingBottom)+kd(n.paddingTop),s=kd(n.borderBottomWidth)+kd(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},b=y.useCallback((()=>{const e=h();Nd(e)||m((t=>g(t,e)))}),[h]);sr((()=>{const e=()=>{p.current=0,(()=>{const e=h();Nd(e)||F.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=or(e),n=u.current,r=ar(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),sr((()=>{b()})),y.useEffect((()=>{p.current=0}),[a]);return Hl.jsxs(y.Fragment,{children:[Hl.jsx("textarea",Gn({value:a,onChange:e=>{p.current=0,s||b(),n&&n(e)},ref:c,rows:o,style:Gn({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Hl.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Gn({},Od,i,{paddingTop:0,paddingBottom:0})})]})}));function Fd({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var zd=y.createContext(void 0);function Hd(){return y.useContext(zd)}function jd(e){return Hl.jsx(jl,Gn({},e,{defaultTheme:Ks,themeId:Lr}))}function Bd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function $d(e,t=!1){return e&&(Bd(e.value)&&""!==e.value||t&&Bd(e.defaultValue)&&""!==e.defaultValue)}function Wd(e){return Tr("MuiInputBase",e)}var Vd=Mr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Ud=["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"],Gd=(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${nr(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Yd=(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]},Kd=tu("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Gd})((({theme:e,ownerState:t})=>Gn({},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",[`&.${Vd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Gn({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Zd=tu("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Yd})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Gn({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 Gn({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] + .${Vd.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},[`&.${Vd.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"})})),Xd=Hl.jsx(jd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Jd=y.forwardRef((function(e,t){var n;const r=Xs({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:x,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:A,onFocus:D,onKeyDown:P,onKeyUp:I,placeholder:T,readOnly:M,renderSuffix:L,rows:q,slotProps:k={},slots:O={},startAdornment:N,type:_="text",value:F}=r,z=qr(r,Ud),H=null!=b.value?b.value:F,{current:j}=y.useRef(null!=H),B=y.useRef(),$=y.useCallback((e=>{}),[]),W=mr(B,v,b.ref,$),[V,U]=y.useState(!1),G=Hd(),Y=Fd({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:V,y.useEffect((()=>{!G&&d&&V&&(U(!1),w&&w())}),[G,d,V,w]);const K=G&&G.onFilled,Z=G&&G.onEmpty,X=y.useCallback((e=>{$d(e)?K&&K():Z&&Z()}),[K,Z]);sr((()=>{j&&X({value:H})}),[H,X,j]);y.useEffect((()=>{X(B.current)}),[]);let J=g,Q=b;E&&"input"===J&&(Q=Gn(q?{type:void 0,minRows:q,maxRows:q}:{type:void 0,maxRows:x,minRows:S},Q),J=_d);y.useEffect((()=>{G&&G.setAdornedStart(Boolean(N))}),[G,N]);const ee=Gn({},r,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:G,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:E,size:Y.size,startAdornment:N,type:_}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Ar({root:["root",`color${nr(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${nr(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Wd,t)})(ee),ne=O.root||s.Root||Kd,re=k.root||u.root||{},oe=O.input||s.Input||Zd;return Q=Gn({},Q,null!=(n=k.input)?n:u.input),Hl.jsxs(y.Fragment,{children:[!p&&Xd,Hl.jsxs(ne,Gn({},re,!md(ne)&&{ownerState:Gn({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),A&&A(e)}},z,{className:Xu(te.root,re.className,l,M&&"MuiInputBase-readOnly"),children:[N,Hl.jsx(zd.Provider,{value:null,children:Hl.jsx(oe,Gn({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:C,placeholder:T,readOnly:M,required:Y.required,rows:q,value:H,onKeyDown:P,onKeyUp:I,type:_},Q,!md(oe)&&{as:J,ownerState:Gn({},ee,Q.ownerState)},{ref:W,className:Xu(te.input,Q.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||B.current;if(null==t)throw new Error(tr(1));X({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(D&&D(e),b.onFocus&&b.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,L?L(Gn({},Y,{startAdornment:N})):null]}))]})}));var Qd=Jd;function ep(e){return Tr("MuiInput",e)}var tp=Gn({},Vd,Mr("MuiInput",["root","underline","input"]));function np(e){return Tr("MuiOutlinedInput",e)}var rp=Gn({},Vd,Mr("MuiOutlinedInput",["root","notchedOutline","input"]));function op(e){return Tr("MuiFilledInput",e)}var ip=Gn({},Vd,Mr("MuiFilledInput",["root","underline","input"])),ap=function(e,t){function n(n,r){return Hl.jsx(nc,Gn({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=nc.muiName,y.memo(y.forwardRef(n))}(Hl.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const lp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],sp={entering:{opacity:1},entered:{opacity:1}},up=y.forwardRef((function(e,t){const n=Zs(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:b=Ic}=e,v=qr(e,lp),x=y.useRef(null),S=mr(x,a.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(d),w=E(((e,t)=>{Nc(e);const r=_c({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),R=E(c),A=E(m),D=E((e=>{const t=_c({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),P=E(f);return Hl.jsx(b,Gn({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:D,onExited:P,onExiting:A,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,Gn({style:Gn({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},sp[e],h,a.props.style),ref:S},t))}))}));var cp=up;function dp(e){return Tr("MuiBackdrop",e)}Mr("MuiBackdrop",["root","invisible"]);const pp=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],fp=tu("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Gn({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"}))),mp=y.forwardRef((function(e,t){var n,r,o;const i=Xs({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=cp,transitionDuration:g}=i,b=qr(i,pp),v=Gn({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Ar({root:["root",n&&"invisible"]},dp,t)})(v),x=null!=(n=f.root)?n:c.root;return Hl.jsx(h,Gn({in:p,timeout:g},b,{children:Hl.jsx(fp,Gn({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Xu(y.root,l,null==x?void 0:x.className),ownerState:Gn({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var hp=mp;var gp=Mr("MuiBox",["root"]);const bp=Ys(),vp=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Aa("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Rl);return y.forwardRef((function(e,a){const l=Tl(n),s=Wl(e),{className:u,component:c="div"}=s,d=qr(s,Gl);return Hl.jsx(i,Gn({as:c,ref:a,className:Ul(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Lr,defaultTheme:bp,defaultClassName:gp.root,generateClassName:Pr.generate});var yp=vp;function xp(e){return Tr("MuiButton",e)}var Sp=Mr("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var Ep=y.createContext({});var Cp=y.createContext(void 0);const wp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Rp=e=>Gn({},"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}}),Ap=tu(ad,{shouldForwardProp:e=>Js(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${nr(n.color)}`],t[`size${nr(n.size)}`],t[`${n.variant}Size${nr(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 Gn({},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":Gn({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ds(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})`:ds(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})`:ds(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":Gn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Sp.focusVisible}`]:Gn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Sp.disabled}`]:Gn({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 ${ds(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"},[`&.${Sp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Sp.disabled}`]:{boxShadow:"none"}})),Dp=tu("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${nr(n.size)}`]]}})((({ownerState:e})=>Gn({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Rp(e)))),Pp=tu("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${nr(n.size)}`]]}})((({ownerState:e})=>Gn({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Rp(e)))),Ip=y.forwardRef((function(e,t){const n=y.useContext(Ep),r=y.useContext(Cp),o=Xs({props:Rr(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,x=qr(o,wp),S=Gn({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Gn({},a,Ar({root:["root",i,`${i}${nr(t)}`,`size${nr(o)}`,`${i}Size${nr(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${nr(o)}`],endIcon:["endIcon",`iconSize${nr(o)}`]},xp,a))})(S),C=g&&Hl.jsx(Dp,{className:E.startIcon,ownerState:S,children:g}),w=p&&Hl.jsx(Pp,{className:E.endIcon,ownerState:S,children:p}),R=r||"";return Hl.jsxs(Ap,Gn({ownerState:S,className:Xu(n.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Xu(E.focusVisible,f),ref:t,type:b},x,{classes:E,children:[C,i,w]}))}));var Tp=Ip;function Mp(e){return Tr("MuiModal",e)}Mr("MuiModal",["root","hidden","backdrop"]);const Lp=["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"],qp=tu("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})=>Gn({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),kp=tu(hp,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Op=y.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Xs({name:"MuiModal",props:e}),{BackdropComponent:u=kp,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:D,open:P,slotProps:I,slots:T}=s,M=qr(s,Lp),L=Gn({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:A}),{getRootProps:q,getBackdropProps:k,getTransitionProps:O,portalRef:N,isTopModal:_,exited:F,hasTransition:z}=Ld(Gn({},L,{rootRef:t})),H=Gn({},L,{exited:F}),j=(e=>{const{open:t,exited:n,classes:r}=e;return Ar({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Mp,r)})(H),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),z){const{onEnter:e,onExited:t}=O();B.onEnter=e,B.onExited=t}const $=null!=(n=null!=(r=null==T?void 0:T.root)?r:g.Root)?n:qp,W=null!=(o=null!=(i=null==T?void 0:T.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==I?void 0:I.root)?a:b.root,U=null!=(l=null==I?void 0:I.backdrop)?l:b.backdrop,G=xd({elementType:$,externalSlotProps:V,externalForwardedProps:M,getSlotProps:q,additionalProps:{ref:t,as:h},ownerState:H,className:Xu(d,null==V?void 0:V.className,null==j?void 0:j.root,!H.open&&H.exited&&(null==j?void 0:j.hidden))}),Y=xd({elementType:W,externalSlotProps:U,additionalProps:c,getSlotProps:e=>k(Gn({},e,{onClick:t=>{D&&D(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Xu(null==U?void 0:U.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:H});return A||P||z&&!F?Hl.jsx(Rd,{ref:N,container:m,disablePortal:E,children:Hl.jsxs($,Gn({},G,{children:[!R&&u?Hl.jsx(W,Gn({},Y)):null,Hl.jsx(wd,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:_,open:P,children:y.cloneElement(f,B)})]}))}):null}));var Np=Op;function _p(e){return Tr("MuiDivider",e)}var Fp=Mr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const zp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Hp=tu("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})=>Gn({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)`:ds(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})=>Gn({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Gn({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Gn({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Gn({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),jp=tu("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Gn({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)`}))),Bp=y.forwardRef((function(e,t){const n=Xs({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=qr(n,zp),m=Gn({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Ar({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},_p,r)})(m);return Hl.jsx(Hp,Gn({as:a,className:Xu(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Hl.jsx(jp,{className:h.wrapper,ownerState:m,children:o}):null}))}));Bp.muiSkipListHighlight=!0;var $p=Bp;const Wp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Vp=tu(Kd,{shouldForwardProp:e=>Js(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Gd(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Gn({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${ip.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${ip.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ip.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ip.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ip.disabled}, .${ip.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ip.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Gn({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),Up=tu(Zd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Yd})((({theme:e,ownerState:t})=>Gn({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),Gp=y.forwardRef((function(e,t){var n,r,o,i;const a=Xs({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=qr(a,Wp),g=Gn({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:n}=e;return Gn({},t,Ar({root:["root",!n&&"underline"],input:["input"]},op,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Zn(v,null!=p?p:s):v,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:Vp,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:Up;return Hl.jsx(Qd,Gn({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));Gp.muiName="Input";var Yp=Gp;const Kp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Zp(e){return`scale(${e}, ${e**2})`}const Xp={entering:{opacity:1,transform:Zp(1)},entered:{opacity:1,transform:"none"}},Jp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qp=y.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=Ic}=e,g=qr(e,Kp),b=y.useRef(),v=y.useRef(),x=Zs(),S=y.useRef(null),E=mr(S,o.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{Nc(e);const{duration:n,delay:r,easing:o}=_c({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:Jp?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),A=C(s),D=C(p),P=C((e=>{const{duration:t,delay:n,easing:r}=_c({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:Jp?o:.666*o,delay:Jp?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Zp(.75),c&&c(e)})),I=C(d);return y.useEffect((()=>()=>{clearTimeout(b.current)}),[]),Hl.jsx(h,Gn({appear:r,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:w,onExit:P,onExited:I,onExiting:D,addEndListener:e=>{"auto"===m&&(b.current=setTimeout(e,v.current||0)),n&&n(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>y.cloneElement(o,Gn({style:Gn({opacity:0,transform:Zp(.75),visibility:"exited"!==e||a?void 0:"hidden"},Xp[e],f,o.props.style),ref:E},t))}))}));Qp.muiSupportAuto=!0;var ef=Qp;const tf=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],nf=tu(Kd,{shouldForwardProp:e=>Js(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Gd(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Gn({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${tp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${tp.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${tp.disabled}, .${tp.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${tp.disabled}:before`]:{borderBottomStyle:"dotted"}})})),rf=tu(Zd,{name:"MuiInput",slot:"Input",overridesResolver:Yd})({}),of=y.forwardRef((function(e,t){var n,r,o,i;const a=Xs({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=qr(a,tf),b=(e=>{const{classes:t,disableUnderline:n}=e;return Gn({},t,Ar({root:["root",!n&&"underline"],input:["input"]},ep,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Zn(null!=f?f:u,v):v,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:nf,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:rf;return Hl.jsx(Qd,Gn({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));of.muiName="Input";var af=of;var lf=y.createContext({});function sf(e){return Tr("MuiList",e)}Mr("MuiList",["root","padding","dense","subheader"]);const uf=["children","className","component","dense","disablePadding","subheader"],cf=tu("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})=>Gn({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var df=y.forwardRef((function(e,t){const n=Xs({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=qr(n,uf),c=y.useMemo((()=>({dense:a})),[a]),d=Gn({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ar({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},sf,t)})(d);return Hl.jsx(lf.Provider,{value:c,children:Hl.jsxs(cf,Gn({as:i,className:Xu(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function pf(e){return Tr("MuiListItemIcon",e)}var ff=Mr("MuiListItemIcon",["root","alignItemsFlexStart"]);const mf=["className"],hf=tu("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})=>Gn({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var gf=y.forwardRef((function(e,t){const n=Xs({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=qr(n,mf),i=Gn({},n,{alignItems:y.useContext(lf).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Ar({root:["root","flex-start"===t&&"alignItemsFlexStart"]},pf,n)})(i);return Hl.jsx(hf,Gn({className:Xu(a.root,r),ownerState:i,ref:t},o))}));var bf=Mr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const vf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function yf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function xf(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Sf(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 Ef(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Sf(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var Cf=y.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=qr(e,vf),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});sr((()=>{r&&p.current.focus()}),[r]),y.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${wr(ir(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=mr(p,t);let h=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return Hl.jsx(df,Gn({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=ir(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Ef(t,r,s,l,yf);else if("ArrowUp"===n)e.preventDefault(),Ef(t,r,s,l,xf);else if("Home"===n)e.preventDefault(),Ef(t,null,s,l,yf);else if("End"===n)e.preventDefault(),Ef(t,null,s,l,xf);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&Sf(r,o);o.previousKeyMatched&&(s||Ef(t,r,!1,l,yf,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function wf(e){return Tr("MuiPopover",e)}Mr("MuiPopover",["root","paper"]);const Rf=["onEntering"],Af=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Df=["slotProps"];function Pf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function If(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Tf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Mf(e){return"function"==typeof e?e():e}const Lf=tu(Np,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qf=tu(jc,{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});var kf=y.forwardRef((function(e,t){var n,r,o;const i=Xs({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=ef,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,A=qr(i.TransitionProps,Rf),D=qr(i,Af),P=null!=(n=null==x?void 0:x.paper)?n:b,I=y.useRef(),T=mr(I,P.ref),M=Gn({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:P,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:A}),L=(e=>{const{classes:t}=e;return Ar({root:["root"],paper:["paper"]},wf,t)})(M),q=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=Mf(l),t=(e&&1===e.nodeType?e:ir(I.current).body).getBoundingClientRect();return{top:t.top+Pf(t,s.vertical),left:t.left+If(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),k=y.useCallback((e=>({vertical:Pf(e,S.vertical),horizontal:If(e,S.horizontal)})),[S.horizontal,S.vertical]),O=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=k(t);if("none"===c)return{top:null,left:null,transformOrigin:Tf(n)};const r=q();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=ar(Mf(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Tf(n)}}),[l,c,q,k,h]),[N,_]=y.useState(g),F=y.useCallback((()=>{const e=I.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,_(!0)}),[O]);y.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);y.useEffect((()=>{g&&F()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),y.useEffect((()=>{if(!g)return;const e=or((()=>{F()})),t=ar(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const H=f||(l?ir(Mf(l)).body:void 0),j=null!=(r=null==v?void 0:v.root)?r:Lf,B=null!=(o=null==v?void 0:v.paper)?o:qf,$=xd({elementType:B,externalSlotProps:Gn({},P,{style:N?P.style:Gn({},P.style,{opacity:0})}),additionalProps:{elevation:m,ref:T},ownerState:M,className:Xu(L.paper,null==P?void 0:P.className)}),W=xd({elementType:j,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:D,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:H,open:g},ownerState:M,className:Xu(L.root,p)}),{slotProps:V}=W,U=qr(W,Df);return Hl.jsx(j,Gn({},U,!md(j)&&{slotProps:V,disableScrollLock:R},{children:Hl.jsx(E,Gn({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{_(!1)},timeout:z},A,{children:Hl.jsx(B,Gn({},$,{children:d}))}))}))}));function Of(e){return Tr("MuiMenu",e)}Mr("MuiMenu",["root","paper","list"]);const Nf=["onEntering"],_f=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Ff={vertical:"top",horizontal:"right"},zf={vertical:"top",horizontal:"left"},Hf=tu(kf,{shouldForwardProp:e=>Js(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jf=tu(qf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Bf=tu(Cf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var $f=y.forwardRef((function(e,t){var n,r;const o=Xs({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=qr(o.TransitionProps,Nf),S=qr(o,_f),E=Zs(),C="rtl"===E.direction,w=Gn({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:x,variant:g}),R=(e=>{const{classes:t}=e;return Ar({root:["root"],paper:["paper"],list:["list"]},Of,t)})(w),A=i&&!s&&d,D=y.useRef(null);let P=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===P)&&(P=t))}));const I=null!=(n=b.paper)?n:jf,T=null!=(r=v.paper)?r:p,M=xd({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,l]}),L=xd({elementType:I,externalSlotProps:T,ownerState:w,className:R.paper});return Hl.jsx(Hf,Gn({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Ff:zf,slots:{paper:I,root:b.root},slotProps:{root:M,paper:L},open:d,ref:t,transitionDuration:m,TransitionProps:Gn({onEntering:(e,t)=>{D.current&&D.current.adjustStyleForScrollbar(e,E),h&&h(e,t)}},x),ownerState:w},S,{classes:f,children:Hl.jsx(Bf,Gn({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:D,autoFocus:i&&(-1===P||s),autoFocusItem:A,variant:g},u,{className:Xu(R.list,u.className),children:a}))}))}));function Wf(e){return Tr("MuiMenuItem",e)}var Vf=Mr("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Uf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Gf=tu(ad,{shouldForwardProp:e=>Js(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})=>Gn({},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"}},[`&.${Vf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ds(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Vf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ds(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Vf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ds(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})`:ds(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Vf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Vf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Fp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Fp.inset}`]:{marginLeft:52},[`& .${bf.root}`]:{marginTop:0,marginBottom:0},[`& .${bf.inset}`]:{paddingLeft:36},[`& .${ff.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Gn({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${ff.root} svg`]:{fontSize:"1.25rem"}}))));var Yf=y.forwardRef((function(e,t){const n=Xs({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=qr(n,Uf),f=y.useContext(lf),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=y.useRef(null);sr((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Gn({},n,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Gn({},a,Ar({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Wf,a))})(n),v=mr(h,t);let x;return n.disabled||(x=void 0!==c?c:-1),Hl.jsx(lf.Provider,{value:m,children:Hl.jsx(Gf,Gn({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:Xu(b.focusVisible,s),className:Xu(b.root,d)},p,{ownerState:g,classes:b}))})}));function Kf(e){return Tr("MuiNativeSelect",e)}var Zf=Mr("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Xf=["className","disabled","error","IconComponent","inputRef","variant"],Jf=({ownerState:e,theme:t})=>Gn({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Gn({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Zf.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Qf=tu("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Js,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Zf.multiple}`]:t.multiple}]}})(Jf),em=({ownerState:e,theme:t})=>Gn({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Zf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),tm=tu("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${nr(n.variant)}`],n.open&&t.iconOpen]}})(em);var nm,rm=y.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=qr(e,Xf),u=Gn({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Ar({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${nr(n)}`,i&&"iconOpen",r&&"disabled"]},Kf,t)})(u);return Hl.jsxs(y.Fragment,{children:[Hl.jsx(Qf,Gn({ownerState:u,className:Xu(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:Hl.jsx(tm,{as:i,ownerState:u,className:c.icon})]})}));const om=["children","classes","className","label","notched"],im=tu("fieldset",{shouldForwardProp:Js})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),am=tu("legend",{shouldForwardProp:Js})((({ownerState:e,theme:t})=>Gn({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Gn({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const lm=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],sm=tu(Kd,{shouldForwardProp:e=>Js(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Gd})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Gn({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${rp.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${rp.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${rp.focused} .${rp.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${rp.error} .${rp.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${rp.disabled} .${rp.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Gn({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),um=tu((function(e){const{className:t,label:n,notched:r}=e,o=qr(e,om),i=null!=n&&""!==n,a=Gn({},e,{notched:r,withLabel:i});return Hl.jsx(im,Gn({"aria-hidden":!0,className:t,ownerState:a},o,{children:Hl.jsx(am,{ownerState:a,children:i?Hl.jsx("span",{children:n}):nm||(nm=Hl.jsx("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),cm=tu(Zd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Yd})((({theme:e,ownerState:t})=>Gn({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),dm=y.forwardRef((function(e,t){var n,r,o,i,a;const l=Xs({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=qr(l,lm),b=(e=>{const{classes:t}=e;return Gn({},t,Ar({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},np,t))})(l),v=Hd(),x=Fd({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Gn({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:v,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:h}),E=null!=(n=null!=(r=m.root)?r:s.Root)?n:sm,C=null!=(o=null!=(i=m.input)?i:s.Input)?o:cm;return Hl.jsx(Qd,Gn({slots:{root:E,input:C},renderSuffix:e=>Hl.jsx(um,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=Hl.jsxs(y.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:Gn({},b,{notchedOutline:null})}))}));dm.muiName="Input";var pm=dm;function fm(e){return Tr("MuiSelect",e)}var mm,hm=Mr("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const gm=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],bm=tu("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${hm.select}`]:t.select},{[`&.${hm.select}`]:t[n.variant]},{[`&.${hm.error}`]:t.error},{[`&.${hm.multiple}`]:t.multiple}]}})(Jf,{[`&.${hm.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),vm=tu("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${nr(n.variant)}`],n.open&&t.iconOpen]}})(em),ym=tu("input",{shouldForwardProp:e=>Qs(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function xm(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Sm(e){return null==e||"string"==typeof e&&!e.trim()}const Em=y.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:b={},multiple:v,name:x,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:A,readOnly:D,renderValue:P,SelectDisplayProps:I={},tabIndex:T,value:M,variant:L="standard"}=e,q=qr(e,gm),[k,O]=pr({controlled:M,default:c,name:"Select"}),[N,_]=pr({controlled:A,default:u,name:"Select"}),F=y.useRef(null),z=y.useRef(null),[H,j]=y.useState(null),{current:B}=y.useRef(null!=A),[$,W]=y.useState(),V=mr(t,h),U=y.useCallback((e=>{z.current=e,e&&j(e)}),[]),G=null==H?void 0:H.parentNode;y.useImperativeHandle(V,(()=>({focus:()=>{z.current.focus()},node:F.current,value:k})),[k]),y.useEffect((()=>{u&&N&&H&&!B&&(W(a?null:G.clientWidth),z.current.focus())}),[H,a]),y.useEffect((()=>{i&&z.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=ir(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),B||(W(a?null:G.clientWidth),_(e))},K=y.Children.toArray(l),Z=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(k)?k.slice():[];const t=k.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),k!==n&&(O(n),E)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:x}}),E(o,e)}v||Y(!1,t)}},X=null!==H&&N;let J,Q;delete q["aria-invalid"];const ee=[];let te=!1;($d({value:k})||p)&&(P?J=P(k):te=!0);const ne=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(k))throw new Error(tr(2));t=k.some((t=>xm(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=xm(k,e.props.value),t&&te&&(Q=e.props.children);return y.cloneElement(e,{"aria-selected":t?"true":"false",onClick:Z(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(J=v?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Q);let re,oe=$;!a&&B&&H&&(oe=G.clientWidth),re=void 0!==T?T:d?null:0;const ie=I.id||(x?`mui-component-select-${x}`:void 0),ae=Gn({},e,{variant:L,value:k,open:X,error:f}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Ar({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${nr(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},fm,t)})(ae),se=Gn({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),ue=dr();return Hl.jsxs(y.Fragment,{children:[Hl.jsx(bm,Gn({ref:U,tabIndex:re,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!D){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||D?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!X&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:k,name:x}}),S(e))},onFocus:w},I,{ownerState:ae,className:Xu(I.className,le.select,s),id:ie,children:Sm(J)?mm||(mm=Hl.jsx("span",{className:"notranslate",children:"​"})):J})),Hl.jsx(ym,Gn({"aria-invalid":f,value:Array.isArray(k)?k.join(","):k,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(O(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},q)),Hl.jsx(vm,{as:m,className:le.icon,ownerState:ae}),Hl.jsx($f,Gn({id:`menu-${x||""}`,anchorEl:G,open:X,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Gn({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Gn({},b.slotProps,{paper:Gn({},se,{style:Gn({minWidth:oe},null!=se?se.style:null)})}),children:ne}))]})}));var Cm=Em;const wm=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Rm=["root"],Am={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Js(e)&&"variant"!==e,slot:"Root"},Dm=tu(af,Am)(""),Pm=tu(pm,Am)(""),Im=tu(Yp,Am)(""),Tm=y.forwardRef((function(e,t){const n=Xs({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=ap,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=n,R=qr(n,wm),A=b?rm:Cm,D=Fd({props:n,muiFormControl:Hd(),states:["variant","error"]}),P=D.variant||w,I=Gn({},n,{variant:P,classes:i}),T=(e=>{const{classes:t}=e;return t})(I),M=qr(T,Rm),L=d||{standard:Hl.jsx(Dm,{ownerState:I}),outlined:Hl.jsx(Pm,{label:f,ownerState:I}),filled:Hl.jsx(Im,{ownerState:I})}[P],q=mr(t,L.ref);return Hl.jsx(y.Fragment,{children:y.cloneElement(L,Gn({inputComponent:A,inputProps:Gn({children:o,error:D.error,IconComponent:u,variant:P,type:void 0,multiple:g},b?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:Gn({id:c},C)},p,{classes:p?Zn(M,p.classes):M},d?d.props.inputProps:{})},g&&b&&"outlined"===P?{notched:!0}:{},{ref:q,className:Xu(L.props.className,a,T.root)},!d&&{variant:P},R))})}));Tm.muiName="Select";var Mm=Tm;var Lm=y.createContext();function qm(e){return Tr("MuiTable",e)}Mr("MuiTable",["root","stickyHeader"]);const km=["className","component","padding","size","stickyHeader"],Om=tu("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Gn({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Gn({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),Nm="table",_m=y.forwardRef((function(e,t){const n=Xs({props:e,name:"MuiTable"}),{className:r,component:o=Nm,padding:i="normal",size:a="medium",stickyHeader:l=!1}=n,s=qr(n,km),u=Gn({},n,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:n}=e;return Ar({root:["root",n&&"stickyHeader"]},qm,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return Hl.jsx(Lm.Provider,{value:d,children:Hl.jsx(Om,Gn({as:o,role:o===Nm?null:"table",ref:t,className:Xu(c.root,r),ownerState:u},s))})}));var Fm=_m;var zm=y.createContext();function Hm(e){return Tr("MuiTableBody",e)}Mr("MuiTableBody",["root"]);const jm=["className","component"],Bm=tu("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),$m={variant:"body"},Wm="tbody";var Vm=y.forwardRef((function(e,t){const n=Xs({props:e,name:"MuiTableBody"}),{className:r,component:o=Wm}=n,i=qr(n,jm),a=Gn({},n,{component:o}),l=(e=>{const{classes:t}=e;return Ar({root:["root"]},Hm,t)})(a);return Hl.jsx(zm.Provider,{value:$m,children:Hl.jsx(Bm,Gn({className:Xu(l.root,r),as:o,ref:t,role:o===Wm?null:"rowgroup",ownerState:a},i))})}));function Um(e){return Tr("MuiTableCell",e)}var Gm=Mr("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const Ym=["align","className","component","padding","scope","size","sortDirection","variant"],Km=tu("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${nr(n.size)}`],"normal"!==n.padding&&t[`padding${nr(n.padding)}`],"inherit"!==n.align&&t[`align${nr(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Gn({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?fs(ds(e.palette.divider,1),.88):ps(ds(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${Gm.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),Zm=y.forwardRef((function(e,t){const n=Xs({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=n,d=qr(n,Ym),p=y.useContext(Lm),f=y.useContext(zm),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=l;"td"===h?g=void 0:!g&&m&&(g="col");const b=c||f&&f.variant,v=Gn({},n,{align:r,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:s||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),x=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return Ar({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${nr(r)}`,"normal"!==o&&`padding${nr(o)}`,`size${nr(i)}`]},Um,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),Hl.jsx(Km,Gn({as:h,ref:t,className:Xu(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));var Xm=Zm;function Jm(e){return Tr("MuiTableContainer",e)}Mr("MuiTableContainer",["root"]);const Qm=["className","component"],eh=tu("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var th=y.forwardRef((function(e,t){const n=Xs({props:e,name:"MuiTableContainer"}),{className:r,component:o="div"}=n,i=qr(n,Qm),a=Gn({},n,{component:o}),l=(e=>{const{classes:t}=e;return Ar({root:["root"]},Jm,t)})(a);return Hl.jsx(eh,Gn({ref:t,as:o,className:Xu(l.root,r),ownerState:a},i))}));function nh(e){return Tr("MuiTableHead",e)}Mr("MuiTableHead",["root"]);const rh=["className","component"],oh=tu("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),ih={variant:"head"},ah="thead";var lh=y.forwardRef((function(e,t){const n=Xs({props:e,name:"MuiTableHead"}),{className:r,component:o=ah}=n,i=qr(n,rh),a=Gn({},n,{component:o}),l=(e=>{const{classes:t}=e;return Ar({root:["root"]},nh,t)})(a);return Hl.jsx(zm.Provider,{value:ih,children:Hl.jsx(oh,Gn({as:o,className:Xu(l.root,r),ref:t,role:o===ah?null:"rowgroup",ownerState:a},i))})}));function sh(e){return Tr("MuiTableRow",e)}var uh=Mr("MuiTableRow",["root","selected","hover","head","footer"]);const ch=["className","component","hover","selected"],dh=tu("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${uh.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${uh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ds(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ds(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),ph="tr",fh=y.forwardRef((function(e,t){const n=Xs({props:e,name:"MuiTableRow"}),{className:r,component:o=ph,hover:i=!1,selected:a=!1}=n,l=qr(n,ch),s=y.useContext(zm),u=Gn({},n,{component:o,hover:i,selected:a,head:s&&"head"===s.variant,footer:s&&"footer"===s.variant}),c=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return Ar({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},sh,t)})(u);return Hl.jsx(dh,Gn({as:o,ref:t,className:Xu(c.root,r),role:o===ph?null:"row",ownerState:u},l))}));var mh=fh,hh=(e={})=>x.createElement(Wu,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:Du.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})))),gh=({className:e})=>x.createElement(Wu,{fontSize:"small",className:e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},x.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5 3.5 1.793ZM8 4h5v1H8V4Zm0 3h6v1H8V7Zm0 3h7v1H8v-1Z"}))),bh=({className:e})=>x.createElement(Wu,{fontSize:"small",className:e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},x.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5V2Zm12 2H8v1h7V4ZM8 7h6v1H8V7Zm5 3H8v1h5v-1Z"}))),vh=({className:e})=>x.createElement(Wu,{fontSize:"small",className:e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},x.createElement("path",{fill:"currentColor",d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"})));const yh={MuiAccordion:{styleOverrides:{root:{backgroundColor:Du.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Du.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(ju,{"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 ${Du.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Du.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Du.MISC_FOCUS_BORDER}`,borderRadius:Lu,backgroundColor:Du.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 ${Du.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Du.WHITE,color:Du.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:Lu},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Du.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Du.GREYSCALE_0_15,backgroundColor:Du.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Du.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Du.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Du.GREEN_PALE},"&:active":{backgroundColor:Du.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Du.GREEN_PALE,boxShadow:`0 0 0 3px ${ds(Du.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Du.BLUE_PALE},"&:active":{backgroundColor:Du.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Du.BLUE_PALE,boxShadow:`0 0 0 3px ${ds(Du.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:Lu,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Du.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Du.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Du.GREYSCALE_0_15,backgroundColor:Du.GREYSCALE_100_60,"&:active":{backgroundColor:Du.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Du.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Du.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Du.PURPLE,"&.Mui-focusVisible":{borderColor:Du.PURPLE,boxShadow:`0 0 0 3px ${ds(Du.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Du.GREEN,"&.Mui-focusVisible":{borderColor:Du.GREEN,boxShadow:`0 0 0 3px ${ds(Du.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Du.BLUE,"&.Mui-focusVisible":{borderColor:Du.BLUE,boxShadow:`0 0 0 3px ${ds(Du.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Du.ORANGE,"&.Mui-focusVisible":{borderColor:Du.ORANGE,boxShadow:`0 0 0 3px ${ds(Du.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Du.RED,"&.Mui-focusVisible":{borderColor:Du.RED,boxShadow:`0 0 0 3px ${ds(Du.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Du.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Du.PURPLE_PALE},"&:active":{backgroundColor:Du.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Du.PURPLE_PALE,boxShadow:`0 0 0 3px ${ds(Du.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Du.GREEN_PALE},"&:active":{backgroundColor:Du.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Du.GREEN_PALE,boxShadow:`0 0 0 3px ${ds(Du.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Du.BLUE_PALE},"&:active":{backgroundColor:Du.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Du.BLUE_PALE,boxShadow:`0 0 0 3px ${ds(Du.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Du.ORANGE_PALE},"&:active":{backgroundColor:Du.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Du.ORANGE_PALE,boxShadow:`0 0 0 3px ${ds(Du.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Du.RED_PALE},"&:active":{backgroundColor:Du.RED_DARK},"&.Mui-focusVisible":{borderColor:Du.RED_PALE,boxShadow:`0 0 0 3px ${ds(Du.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:Du.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Du.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Lu,boxShadow:`inset 0 0 0 2px ${Du.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement($u,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Pu,borderRadius:Lu,color:Du.TEXT_PRIMARY,backgroundColor:Du.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Du.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Du.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Du.GREYSCALE_0_05,color:Du.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Du.GREEN,borderColor:Du.GREEN},"&.MuiChip-outlinedInfo":{color:Du.BLUE,borderColor:Du.BLUE},"&.MuiChip-outlinedWarning":{color:Du.ORANGE,borderColor:Du.ORANGE},"&.MuiChip-outlinedError":{color:Du.RED,borderColor:Du.RED}},outlined:{border:`solid 1px ${Du.GREYSCALE_0_15}`,backgroundColor:Du.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Lu,boxShadow:"none",backgroundColor:Du.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Du.GREEN,borderColor:Du.GREEN},outlinedSecondary:{color:Du.BLUE,borderColor:Du.BLUE},label:{fontFamily:_u.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement($u,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(ju,{"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:Lu},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:Iu,height:"32px",'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Du.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Du.GREYSCALE_0_10},"&:hover":{backgroundColor:Du.GREYSCALE_0_03}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Lu,border:`solid 1px ${Du.GREYSCALE_0_15}`,color:Du.GREYSCALE_0_60,marginRight:0,width:Mu,height:Mu},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Du.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Lu,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Du.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Iu}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Pu,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Du.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Du.GREYSCALE_25,fontSize:Pu,fontFamily:_u.FONT_FAMILY,fontWeight:Ou,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Du.TEXT_PRIMARY},"&.Mui-error":{color:Du.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Du.TEXT_SECONDARY,content:"'(optional)'",fontWeight:ku,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Du.TEXT_SECONDARY,content:"'(required)'",fontWeight:ku,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Iu,lineHeight:"16px",backgroundColor:Du.WHITE,borderRadius:Lu,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Du.GREYSCALE_0_05}`,borderColor:Du.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Du.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Du.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Du.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Du.RED}`,boxShadow:`0px 0px 0px 1px ${Du.RED}, inset 0 2px 0 0 ${Du.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Du.GREYSCALE_0_10}`,borderColor:Du.GREYSCALE_0_10,backgroundColor:Du.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Du.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Du.GREYSCALE_0_15,borderRadius:Lu,boxShadow:`inset 0 2px 0 0 ${Du.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(ju,{...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:Du.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Du.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Du.GREYSCALE_0_03},"&:active":{backgroundColor:Du.GREYSCALE_0_10},"&:focus":{backgroundColor:Du.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Du.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Du.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Du.GREYSCALE_0_30,"&:hover":{backgroundColor:Du.GREYSCALE_0_0,borderColor:Du.GREYSCALE_0_15},"& ~svg":{color:Du.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Du.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Lu}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Du.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Du.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Du.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Iu,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Pu,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Pu,fontWeight:Ou,color:Du.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Ou}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Du.GREYSCALE_0_15}, 0px 0px 0px 1px ${Du.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(Gu,null),checkedIcon:x.createElement(Yu,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Du.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Du.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Du.GREEN_PALE,boxShadow:`0 0 0 3px ${ds(Du.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Du.BLUE_PALE,boxShadow:`0 0 0 3px ${ds(Du.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Du.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Du.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(hh,null),checkedIcon:x.createElement(Vu,null),indeterminateIcon:x.createElement(Uu,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Lu,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Du.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Du.GREYSCALE_0_55,color:Du.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:Du.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Du.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Du.GREYSCALE_0_55,"&:hover":{color:Du.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDataGrid:{defaultProps:{className:"sprout-data-grid-pro",slots:{columnSortedAscendingIcon:gh,columnSortedDescendingIcon:bh,columnMenuSortAscendingIcon:gh,columnMenuSortDescendingIcon:bh,quickFilterIcon:({className:e})=>x.createElement(vh,{className:`sprout-data-grid-pro-filter-search-icon ${e}`})},slotProps:{toolbar:{className:"sprout-data-grid-pro-toolbar"}}},styleOverrides:{root:{borderColor:Du.GREYSCALE_85,borderRadius:0,"& .sprout-data-grid-pro-toolbar":{marginTop:0,"& .sprout-data-grid-pro-filter-search-icon":{paddingLeft:"8px",paddingRight:"4px",color:Du.GREYSCALE_55},"& > div":{"&:after":{borderBottom:`1px solid ${Du.GREYSCALE_0_15}`},"&:hover::before":{borderBottom:`1px solid ${Du.GREYSCALE_0_15}`}}}},columnHeaders:{backgroundColor:Du.GREYSCALE_98},withBorderColor:{borderColor:Du.GREYSCALE_85,"&.MuiDataGrid-cell--withRightBorder:last-of-type":{borderRightWidth:0},"&.MuiDataGrid-columnHeader--withRightBorder:last-of-type":{borderRightWidth:0}},row:{"&:hover":{backgroundColor:Du.GREYSCALE_0_03},"&.MuiDataGrid-row.Mui-selected":{backgroundColor:Du.GREYSCALE_0_05,"&:hover":{backgroundColor:Du.GREYSCALE_0_03}}},menu:{"& svg.MuiSvgIcon-root":{fontSize:Tu}},filterIcon:{fontSize:Tu},pinnedColumnHeaders:{backgroundColor:Du.GREYSCALE_98},pinnedColumns:{backgroundColor:Du.WHITE}}},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:Du.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Du.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Iu,color:Du.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Ou},secondary:{fontSize:Pu,color:Du.GREYSCALE_45,fontWeight:ku,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Iu,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Du.GREYSCALE_0_03},"&:active":{backgroundColor:Du.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Iu,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Du.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Pu,borderBottom:`solid 1px ${Du.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Iu,color:Du.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Du.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Du.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Du.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Du.RED}}},"&.Mui-focusVisible":{backgroundColor:Du.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:Du.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:Du.GREEN,height:"24px","&.Mui-disabled":{color:Du.GREYSCALE_0_15}},rail:{backgroundColor:Du.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Du.GREYSCALE_0_05}`,borderRadius:Lu,boxShadow:`inset 0px 0px 0px 1px ${Du.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Du.GREYSCALE_0_05}`,borderRadius:Lu},thumb:{height:"16px",width:"16px",borderRadius:Lu,backgroundColor:Du.WHITE,boxShadow:`0px 1px 2px 0px ${Du.GREYSCALE_0_15}, 0px 0px 0px 1px ${Du.GREYSCALE_0_05}`,"&:hover":{borderRadius:Lu,boxShadow:`0 2px 4px 0 ${Du.GREYSCALE_0_30}, 0 0 0 1px ${Du.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Du.GREYSCALE_0_15}, 0 0 0 1px ${Du.GREYSCALE_0_06}, 0 0 0 2px ${Du.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Du.GREYSCALE_0_15}, 0 0 0 1px ${Du.GREYSCALE_0_06}, 0 0 0 2px ${Du.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Du.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Du.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Du.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Du.GREYSCALE_0_15},markLabel:{color:Du.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Du.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Du.WHITE,color:Du.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:Du.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:Du.GREEN_PALE,boxShadow:`0 0 0 3px ${ds(Du.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Du.BLUE_PALE,boxShadow:`0 0 0 3px ${ds(Du.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Du.GREYSCALE_0_15,borderRadius:Lu},thumb:{height:"16px",width:"16px",borderRadius:Lu,backgroundColor:Du.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:Iu,fontWeight:Ou,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Du.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Du.MISC_FOCUS_BORDER}`,backgroundColor:Du.GREYSCALE_0_03,borderRadius:Lu},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Du.GREYSCALE_25,"&.Mui-selected":{color:Du.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Iu,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Du.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Du.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Du.GREYSCALE_85}`,borderRight:`1px solid ${Du.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Ou,backgroundColor:Du.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:Du.GREYSCALE_98,borderBottom:`1px solid ${Du.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Du.GREYSCALE_85}`,borderTop:`1px solid ${Du.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Du.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Du.GREYSCALE_0_05,"&:hover":{backgroundColor:Du.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Du.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(Ku,{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 ${Du.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:16,width:32,fontSize:Iu,borderRadius:Lu,padding:"7px 16px",border:`1px solid ${Du.GREYSCALE_0_15}`,backgroundColor:Du.GREYSCALE_100_60,color:Du.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Du.GREYSCALE_0_10,border:`1px solid ${Du.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Du.GREYSCALE_0_03,border:`1px solid ${Du.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Du.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Du.MISC_FOCUS_BORDER}`,border:`1px solid ${Du.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Du.GREYSCALE_25,backgroundColor:Du.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Du.GREYSCALE_0_10,border:`1px solid ${Du.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Pu,height:24,width:24,padding:7},sizeLarge:{fontSize:Tu,height:40,width:40,lineHeight:20}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Iu,borderRadius:Lu}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:Du.GREYSCALE_20},tooltip:{backgroundColor:Du.GREYSCALE_20,fontSize:Pu,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var xh=e=>yh;const Sh={mode:"light",primary:{light:Du.GREEN_PALE,main:Du.GREEN,dark:Du.GREEN_DARK,contrastText:Du.WHITE},secondary:{light:Du.BLUE_PALE,main:Du.BLUE,dark:Du.BLUE_DARK,contrastText:Du.WHITE},error:{light:Du.RED_PALE,main:Du.RED,dark:Du.RED_DARK,contrastText:Du.WHITE},warning:{light:Du.ORANGE_PALE,main:Du.ORANGE,dark:Du.ORANGE_DARK,contrastText:Du.WHITE},success:{light:Du.GREEN_PALE,main:Du.GREEN,dark:Du.GREEN_DARK,contrastText:Du.WHITE},info:{light:Du.BLUE_PALE,main:Du.BLUE,dark:Du.BLUE_DARK,contrastText:Du.WHITE},text:{primary:Du.TEXT_PRIMARY,secondary:Du.TEXT_SECONDARY,disabled:Du.GREYSCALE_0_30},action:{hover:Du.GREYSCALE_0_03,hoverOpacity:.05,selected:Du.GREYSCALE_0_05},amethyst:{main:Du.PURPLE,light:Du.PURPLE_PALE,dark:Du.PURPLE_DARK,contrastText:Du.WHITE},background:{paper:Du.WHITE,default:Du.GREYSCALE_95},divider:Du.GREYSCALE_0_15},Eh=e=>({components:xh(),palette:Sh,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:Iu,fontWeightLight:qu,fontWeightRegular:ku,fontWeightMedium:Ou,fontWeightBold:Nu,htmlFontSize:Iu,fontFamily:_u.FONT_FAMILY,button:{fontWeight:Ou,fontSize:Iu,textTransform:"none"},body1:{fontSize:Tu,lineHeight:"24px"},body2:{fontSize:Iu,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Mu,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Tu,fontWeight:Ou,lineHeight:"16px"},h6:{fontSize:Iu,fontWeight:Ou,lineHeight:"16px"},caption:{color:Du.TEXT_SECONDARY},subtitle1:{fontSize:Iu,color:Du.TEXT_SECONDARY},subtitle2:{fontSize:Pu,color:Du.TEXT_SECONDARY}},shape:{borderRadius:Lu}}),Ch={...Au,MISC_FOCUS_BORDER:Du.MISC_FOCUS_BORDER},wh=(e="light")=>Eh();var Rh=wh().palette,Ah={SELECTED:{color:Ch.GREYSCALE_100,background:Rh.primary.light,selectedCellClass:pu.SELECTED},POSSIBLE:{color:Rh.text.primary,background:Ch.GREYSCALE_100},EXCLUDED_BACKGROUND:"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"},Dh=4/3,Ph="12px",Ih={height:"auto",fontSize:Ph,lineHeight:"unset",padding:"".concat(4,"px"),borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},Th=25e4,Mh=function(e,t,n){if(!(null==e?void 0:e.length))return[];var r=[],o=[],i=t;if(e.forEach((function(e,a){if(e.columnWidth){var l=e.columnWidth,s=l.type,u=l.pixels,c=l.percentage,d=e.label,p=e.qApprMaxGlyphCount,f=e.totalInfo,m=0,h=function(){r[a]=Math.min(cn.PixelsMax,Math.max(cn.PixelsMinTable,m)),i-=r[a]};switch(s){case dn.Pixels:m=u||cn.PixelsDefault,h();break;case dn.Percentage:m=(c||cn.PercentageDefault)/100*t,h();break;case dn.FitToContent:m=n(d,f,p,e.isLocked),h();break;case dn.Auto:o.push(a);break;default:throw new Error("".concat(s," is not a valid column width type"))}}else o.push(a)})),o.length){var a=i/o.length;o.forEach((function(e){r[e]=Math.max(cn.PixelsMinTable,a)}))}return r};const Lh=wh().palette,qh={TEXT:Lh.text.primary,DISABLED:Lh.text.disabled,HOVER:Lh.action.hover,WHITE:Ch.GREYSCALE_100,BORDER_LIGHT:Ch.GREYSCALE_90,BORDER_MEDIUM:Ch.GREYSCALE_85,BORDER_HEAVY:Ch.GREYSCALE_50,DARK_MODE_TEXT:Ch.GREYSCALE_95,DARK_MODE_BORDER:Ch.GREYSCALE_95,DARK_MODE_DISABLED:Ch.GREYSCALE_70,DARK_MODE_BACKGROUND:Ch.GREYSCALE_20},kh=Math.PI/180,Oh=180/Math.PI,Nh=.96422,_h=1,Fh=.82521,zh=4/29,Hh=6/29,jh=3*Hh*Hh,Bh=Hh*Hh*Hh;function $h(e){if(e instanceof Wh)return new Wh(e.l,e.a,e.b,e.opacity);if(e instanceof Zh)return Xh(e);e instanceof xe||(e=ve(e));var t,n,r=Yh(e.r),o=Yh(e.g),i=Yh(e.b),a=Vh((.2225045*r+.7168786*o+.0606169*i)/_h);return r===o&&o===i?t=n=a:(t=Vh((.4360747*r+.3850649*o+.1430804*i)/Nh),n=Vh((.0139322*r+.0971045*o+.7141733*i)/Fh)),new Wh(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Wh(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Vh(e){return e>Bh?Math.pow(e,1/3):e/jh+zh}function Uh(e){return e>Hh?e*e*e:jh*(e-zh)}function Gh(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Yh(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Kh(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Zh)return new Zh(e.h,e.c,e.l,e.opacity);if(e instanceof Wh||(e=$h(e)),0===e.a&&0===e.b)return new Zh(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Oh;return new Zh(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Zh(e,t,n,null==r?1:r)}function Zh(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Xh(e){if(isNaN(e.h))return new Wh(e.l,0,0,e.opacity);var t=e.h*kh;return new Wh(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}X(Wh,(function(e,t,n,r){return 1===arguments.length?$h(e):new Wh(e,t,n,null==r?1:r)}),J(Q,{brighter(e){return new Wh(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Wh(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 xe(Gh(3.1338561*(t=Nh*Uh(t))-1.6168667*(e=_h*Uh(e))-.4906146*(n=Fh*Uh(n))),Gh(-.9787684*t+1.9161415*e+.033454*n),Gh(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),X(Zh,Kh,J(Q,{brighter(e){return new Zh(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Zh(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Xh(this).rgb()}}));const Jh=(e,t)=>{const n=Kh(e),r=n.l<70,o=100===n.l;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):o?ye(`rgba(0, 0, 0, ${t.opacity})`).toString():r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},Qh=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,eg=e=>{const t=Qh.exec(e);if(t){const[,e,n,r,o]=t;return ye(+n,+r,+o,+e/255)}return ye(e)},tg=e=>{const t=eg(e);return Number.isNaN(t.r)?null:t.toString()},ng=e=>{if(void 0===e)return;const t=eg(e);return t.opacity=1,t.toString()},rg=(e,t,n)=>{var r,o,i,a;const l=null!==(r=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==r?r:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,n)},og=e=>{e.stopPropagation(),e.preventDefault()};var ig=function(e,t){var n;return null===(n=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===n?void 0:n.getElementsByClassName("sn-table-cell")[t[1]]},ag=function(e){return e.querySelector("td[tabindex='0'], th[tabindex='0']")},lg=function(e){var t,n,r=e.nextElementSibling;return r?"HR"===r.tagName?lg(r):r:null===(n=null===(t=e.parentElement)||void 0===t?void 0:t.children)||void 0===n?void 0:n[0]},sg=function(e){var t,n,r,o,i=e.previousElementSibling;if(!i){var a=null===(n=null===(t=e.parentElement)||void 0===t?void 0:t.children)||void 0===n?void 0:n.length;return null===(o=null===(r=e.parentElement)||void 0===r?void 0:r.children)||void 0===o?void 0:o[a-1]}return"HR"===i.tagName?sg(i):i},ug=function(e){return!e.enabled||e.active},cg=function(e){setTimeout((function(){var t,n,r=null===(n=null===(t=e.current)||void 0===t?void 0:t.closest(".sn-table-cell"))||void 0===n?void 0:n.querySelector(".".concat(sn));null==r||r.setAttribute("tabIndex","0"),null==r||r.focus()}),0)},dg=function(e){var t=e.focusType,n=e.cell;if(n)switch(t){case hu.FOCUS:n.focus(),n.setAttribute("tabIndex","0");break;case hu.FOCUS_BUTTON:n.querySelector(".sn-table-head-label").focus();break;case hu.BLUR:n.blur(),n.setAttribute("tabIndex","-1");break;case hu.ADD_TAB:n.setAttribute("tabIndex","0");break;case hu.REMOVE_TAB:n.setAttribute("tabIndex","-1")}},pg=function(e){var t=e.evt,n=e.rootElement,r=e.cellCoord,o=e.setFocusedCellCoord,i=e.focusType,a=function(e,t,n,r){void 0===r&&(r={top:0,bottom:0});var o=t.getElementsByClassName("sn-table-row").length,i=t.getElementsByClassName("sn-table-head-cell").length,a=n[0],l=n[1];switch(e.key){case mu.DOWN:a<o-1-r.bottom&&a++;break;case mu.UP:a>r.top&&a--;break;case mu.RIGHT:if(r.top>0)break;l<i-1?l++:a<o-1&&(a++,l=0);break;case mu.LEFT:if(r.top>0)break;l>0?l--:a>0&&(a--,l=i-1)}return[a,l]}(t,n,r,e.allowedRows),l=ig(n,a);return dg({focusType:i,cell:l}),o(a),l},fg=function(e,t){var n=ag(e),r=n?function(e,t){for(var n=e.getElementsByClassName("sn-table-head-cell").length,r=e.getElementsByClassName("sn-table-cell"),o=0,i=0;i<r.length;i++)if(r[i]===t){o=i;break}return[Math.ceil(o/n),o%n]}(e,n):xu;n=n||ig(e,xu),dg({cell:n,focusType:hu.FOCUS}),t(r)},mg=function(e,t,n,r){var o;dg({focusType:hu.REMOVE_TAB,cell:ag(t)}),n(e),r.enabled&&!r.active?null===(o=r.focus)||void 0===o||o.call(r):dg({focusType:hu.ADD_TAB,cell:ig(t,e)})},hg=function(e){return e.ctrlKey||e.metaKey},gg=function(e){return e.shiftKey&&hg(e)},bg=function(e){return[mu.LEFT,mu.RIGHT,mu.UP,mu.DOWN].includes(e)},vg=function(e){return e.shiftKey&&bg(e.key)},yg=function(e,t){return void 0===t&&(t=!1),e.key===mu.ESC&&!t||(e.key===mu.LEFT||e.key===mu.RIGHT)&&gg(e)},xg=function(e,t,n){if(n)return hu.FOCUS;var r=t.key===mu.UP&&1===e[0],o=t.key===mu.LEFT&&1===e[0]&&0===e[1];return r||o?hu.FOCUS_BUTTON:hu.FOCUS},Sg=function(e){var t=e.evt,n=e.rootElement,r=e.cell,o=e.selectionDispatch,i=e.isSelectionsEnabled,a=e.setFocusedCellCoord,l=e.announce,s=e.totalsPosition,u=e.isSelectionMode,c=e.isNewHeadCellMenuEnabled,d=s.atTop?2:1,p=[r.pageRowIdx+d,r.pageColIdx],f={top:u?d:0,bottom:u&&s.atBottom?1:0},m=xg(p,t,c);m===hu.FOCUS&&dg({focusType:hu.REMOVE_TAB,cell:t.target});var h=pg({evt:t,rootElement:n,cellCoord:p,setFocusedCellCoord:a,focusType:m,allowedRows:f});t.key!==mu.UP&&t.key!==mu.DOWN||(t.key===mu.UP&&function(e,t){var n,r=t.getElementsByClassName("sn-table-container")[0];if(null==r?void 0:r.scrollTo){var o=e[0],i=e[1];if(o<2)r.scrollTo({top:0,behavior:"auto"});else{var a=t.getElementsByClassName("sn-table-head-cell")[0],l=null===(n=t.getElementsByClassName("sn-table-row")[o])||void 0===n?void 0:n.getElementsByClassName("sn-table-cell")[i];if(!l)return;if(l.offsetTop-a.offsetHeight<r.scrollTop){var s=r.scrollTop-l.offsetHeight-a.offsetHeight;r.scrollTo({top:Math.max(0,s),behavior:"auto"})}}}}([r.pageRowIdx,r.pageColIdx],n),function(e,t,n){return t.shiftKey&&(t.key===mu.UP&&0!==n.pageRowIdx||t.key===mu.DOWN&&!n.isLastRow)&&e&&n.isSelectable}(i,t,r)?o({type:fu.SELECT_MULTI_ADD,payload:{cell:r,evt:t,announce:l}}):function(e,t,n){void 0===n&&(n=!1),n&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})}(l,h,u))},Eg=function(e){var t=e.evt,n=e.rootElement,r=e.setFocusedCellCoord,o=e.keyboard,i=e.isSelectionMode,a=e.paginationNeeded,l=e.isNewHeadCellMenuEnabled;if((null==o?void 0:o.enabled)&&i&&(t.shiftKey||!t.shiftKey&&!a))og(t),rg(t.target,o,t.shiftKey);else if(t.shiftKey&&!l){r([0,n.querySelectorAll(".sn-table-head-cell").length-1])}},Cg=function(e,t){var n=t.colIdx,r=t.rows,o=t.api,i=pu.INACTIVE;return(null==o?void 0:o.isModal())&&(i=n!==e.selectionColIdx?pu.EXCLUDED:void 0!==r[e.qElemNumber]?pu.SELECTED:pu.POSSIBLE),i},wg=function(e,t,n){var r=Object.keys(n).length,o=r>=Object.keys(t).length;r?e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===r?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",r.toString()]]}):e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},Rg=function(e,t){var n=e.api,r=e.rows,o=e.colIdx,i=t.cell,a=t.announce,l=t.evt,s={};if(-1===o)null==n||n.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;s=H({},r)}return s=function(e,t,n){var r,o=t.qElemNumber,i=t.rowIdx;return n.ctrlKey||n.metaKey?((r={})[o]=i,r):(void 0!==e[o]?delete e[o]:e[o]=i,H({},e))}(s,i,l),wg(a,r,s),Object.keys(s).length?(null==n||n.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(s),[i.selectionColIdx]]}),H(H({},e),{rows:s,colIdx:i.selectionColIdx})):(null==n||n.cancel(),H(H({},e),{rows:s,colIdx:-1}))},Ag=function(e,t){var n,r=e.api,o=e.rows,i=e.colIdx,a=e.pageRows,l=e.firstCell,s=t.cell,u=t.announce,c=t.evt,d={};return l||"key"in c&&vg(c)?(-1===i?null==r||r.begin(["/qHyperCubeDef"]):d=H({},o),d=function(e,t,n,r,o){var i=H({},t);if("key"in r&&vg(r)){i[n.qElemNumber]=n.rowIdx;var a=r.key===mu.DOWN?1:-1;return i[e[n.pageRowIdx+a]["col-".concat(n.pageColIdx)].qElemNumber]=n.rowIdx+a,i}if(!o)return t;for(var l=Math.min(o.pageRowIdx,n.pageRowIdx),s=Math.max(o.pageRowIdx,n.pageRowIdx),u=l;u<=s;u++){var c=e[u]["col-".concat(o.pageColIdx)];i[c.qElemNumber]=c.rowIdx}return i}(a,d,s,c,l),wg(u,o,d),H(H({},e),{rows:d,colIdx:null!==(n=null==l?void 0:l.selectionColIdx)&&void 0!==n?n:s.selectionColIdx,isSelectMultiValues:!0})):e},Dg=function(e){var t=e.api,n=e.rows,r=e.colIdx,o=e.isSelectMultiValues,i=e.mouseupOutsideCallback;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(n),[r]]})),H(H({},e),{isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0})},Pg=function(e,t){var n;switch(t.type){case fu.SELECT:return Rg(e,t.payload);case fu.SELECT_MOUSE_DOWN:return function(e,t){var n=t.cell,r=t.mouseupOutsideCallback;return!r||-1!==e.colIdx&&e.colIdx!==n.selectionColIdx?e:(document.addEventListener("mouseup",r),H(H({},e),{firstCell:n,mouseupOutsideCallback:r}))}(e,t.payload);case fu.SELECT_MOUSE_UP:return function(e,t){return Dg(e.isSelectMultiValues||e.firstCell!==t.cell?e:Rg(e,t))}(e,t.payload);case fu.SELECT_MULTI_ADD:return Ag(e,t.payload);case fu.SELECT_MULTI_END:return Dg(e);case fu.RESET:return(null===(n=e.api)||void 0===n?void 0:n.isModal())?e:H(H({},e),{rows:{},colIdx:-1});case fu.CLEAR:return Object.keys(e.rows).length?H(H({},e),{rows:{}}):e;case fu.UPDATE_PAGE_ROWS:return H(H({},e),{pageRows:t.payload.pageRows});default:throw new Error("reducer called with invalid action type")}},Ig=4/3,Tg={hover:{darker:.15,brighter:.3,opacity:.03},active:{darker:.3,brighter:.5,opacity:.05}},Mg=function(e){return parseInt(e,10)*Ig+8+1},Lg=function(e){return!!e&&(null!==e.color||e.index>-1)};function qg(e,t,n){void 0===n&&(n={});var r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}var kg=function(e){return Le(e)?qh.WHITE:qh.TEXT},Og=function(e){var t;return null===(t=e.components)||void 0===t?void 0:t.find((function(e){return"theme"===e.key}))},Ng=function(e,t,n,r){void 0===r&&(r=!1);var o=t.getStyle("object","straightTableV2.".concat(e),"fontFamily"),i=t.getStyle("object","straightTableV2.".concat(e),"color"),a=t.getStyle("object","straightTableV2.".concat(e),"fontSize"),l=H({fontFamily:o,color:Lg(null==n?void 0:n.fontColor)?qg(qh.TEXT,t,null==n?void 0:n.fontColor):i||qh.TEXT,fontSize:(null==n?void 0:n.fontSize)&&"".concat(n.fontSize,"px")||a,padding:n&&"padding"in n?null==n?void 0:n.padding:void 0},function(e,t){return e?{borderBottomColor:qh.DARK_MODE_BORDER,borderRightColor:qh.DARK_MODE_BORDER,borderLeftColor:qh.DARK_MODE_BORDER,borderTopColor:qh.DARK_MODE_BORDER}:{borderLeftColor:qh.BORDER_MEDIUM,borderRightColor:qh.BORDER_MEDIUM,borderTopColor:qh.BORDER_HEAVY,borderBottomColor:t?qh.BORDER_HEAVY:qh.BORDER_LIGHT}}(t.background.isDark,r));return Object.keys(l).forEach((function(e){var t=e;null==l[t]&&delete l[t]})),l};function _g(e,t,n,r){var o,i,a,l,s=null===(o=Og(e))||void 0===o?void 0:o.header,u=Ng("header",t,s,n);return u.background=t.background.isTransparent?qh.WHITE:ng(t.background.color),(null==r?void 0:r.isNewHeadCellMenuEnabled)&&(u.hoverBackground=Jh(null!==(i=u.background)&&void 0!==i?i:qh.WHITE,Tg.hover),u.activeBackground=Jh(null!==(a=u.background)&&void 0!==a?a:qh.WHITE,Tg.active)),u.color=null!==(l=u.color)&&void 0!==l?l:Le(u.background)?qh.DARK_MODE_TEXT:qh.TEXT,u}function Fg(e,t,n,r){var o,i=null===(o=Og(e))||void 0===o?void 0:o.content,a=Ng("content",t,i);a.background=t.background.color;var l,s=function(e,t,n){return e&&t&&n&&Mg(e)*(t+2)<n.clientHeight-40?"1px":"0px"}(null==a?void 0:a.fontSize,n,r),u=null==i?void 0:i.hoverColor,c=null==i?void 0:i.hoverFontColor,d=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),p=t.getStyle("object","","straightTableV2.content.hover.color"),f=Lg(c)||!!p,m=Lg(u)||!!d,h=f||m;l=Lg(u)?qg(qh.HOVER,t,u):d||(f?"":qh.HOVER);var g=h?qg(kg(l),t,Lg(c)?c:p):"";return H(H({},a),{lastRowBottomBorder:s,hoverColors:{background:l,color:g}})}function zg(e,t,n){var r,o={};return null===(r=null==t?void 0:t.qValues)||void 0===r||r.forEach((function(e,t){var r=e.qText&&tg(e.qText);r&&"none"!==r&&(o[n[t]]=r)})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=kg(o.cellBackgroundColor)),H(H({},e),{color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background})}var Hg=function(e,t,n,r,o){var i=E((function(){var i=n.totalsPosition.atTop,a=Fg(e,t,n.rows.length,r),l=_g(e,t,!i,o),s=function(e,t,n){var r,o=null===(r=Og(e))||void 0===r?void 0:r.content,i=Ng("content",t,o),a=_g(e,t,n),l=a.borderBottomColor,s=a.borderTopColor,u=a.background;return H(H({},i),{borderBottomColor:l,background:u,borderTopColor:s})}(e,t,i);return{body:a,head:l,totals:s}}),[e,t.name(),n,r]);return i},jg=new Map;var Bg,$g,Wg=M({}),Vg=(Bg=Wg,$g=M([function(){},new Set]),jg.set(Bg,$g),function(e){var t=e.children,n=e.value,r=A(n),o=A(new Set);C((function(){r.current=n,o.current.forEach((function(e){e(n)}))}),[n]);var i=L((function(){return r.current}),[r]),a=E((function(){return[i,o.current]}),[i]);return x.createElement(Bg.Provider,{value:n},x.createElement($g.Provider,{value:a},t))}),Ug={rows:[],columns:[],totalsPosition:{}},Gg=function(e){var t=e.app,n=e.children,r=e.tableData,o=void 0===r?Ug:r,i=e.selectionsAPI,a=e.cellCoordMock,l=e.layout,s=e.model,u=e.translator,c=e.interactions,d=e.theme,p=e.keyboard,f=e.rootElement,m=e.embed,h=e.changeSortOrder,g=e.applyColumnWidths,b=e.setPage,v=e.pageInfo,y=e.initialDataPages,C=e.rect,w=e.viewService,R={isNewHeadCellMenuEnabled:e.isNewHeadCellMenuEnabled},A=S(0),D=A[0],P=A[1],I=S(a||yu),M=I[0],L=I[1],q=function(e,t){var n=T(Pg,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[n[0],n[1]]}(o.rows,i),k=q[0],O=q[1],N=S(-1),_=N[0],F=N[1],z=Hg(l,d,o,f,R),j=function(e,t,n,r){var o=r.head,i=r.body,a=t.atBottom||t.atTop,l=Kt(H(H({},o),{bold:!0,maxNbrLinesOfText:3})).measureText,s=Kt(H(H({},i),{bold:!0,maxNbrLinesOfText:3})).measureText,u=Kt(H(H({},o),{bold:!1,maxNbrLinesOfText:3})).estimateWidth,c=E((function(){return function(e,t,n,r){var o=r?99:71;return Math.max(l(e)+o,a?s(t)+24+1:0,u(n))}}),[u,l,s,a]),d=S(0),p=d[0],f=d[1],m=S((function(){return Mh(e,n,c)})),h=m[0],g=m[1];V((function(){g(Mh(e,n-p,c))}),[e,n,p,c]);var b=E((function(){return function(e,t,n){return!!(e&&e.length>0)&&e.reduce((function(e,t){return e+t}))+t<n}(h,p,n)}),[h,p,n]);return[h,g,f,b]}(o.columns,o.totalsPosition,C.width,z),B=j[0],$=j[1],W=j[2],U=j[3],G=E((function(){return{app:t,selectionsAPI:i,layout:l,model:s,translator:u,interactions:c,theme:d,keyboard:p,rootElement:f,embed:m,changeSortOrder:h,applyColumnWidths:g,styling:z,rect:C,viewService:w}}),[t,i,l,s,u,c,d.name(),p.active,f,m,h,g,z,C,w]);return x.createElement(Vg,{value:{headRowHeight:D,setHeadRowHeight:P,focusedCellCoord:M,setFocusedCellCoord:L,selectionState:k,selectionDispatch:O,hoverIndex:_,setHoverIndex:F,columnWidths:B,setColumnWidths:$,baseProps:G,tableData:o,setYScrollbarWidth:W,setPage:b,pageInfo:v,initialDataPages:y,showRightBorder:U,featureFlags:R}},n)};function Yg(e,t){var n=function(e){return jg.get(e)}(e),r=w(n),o=r[0],i=r[1],a=T((function(e){return e+1}),0)[1],l=A(t),s=A(),u=o();if(void 0===u)throw new Error("You must call useContextSelector inside a valid context.");var c=E((function(){return t(u)}),[u,t]);return C((function(){l.current=t,s.current=c}),[u,c,t]),C((function(){var e=function(e){(l.current&&l.current(e))!==s.current&&a()};return i.add(e),function(){i.delete(e)}}),[i]),c}function Kg(e){var t,n,r=wh();return(null===(n=null===(t=null==r?void 0:r.components)||void 0===t?void 0:t.MuiTable)||void 0===n?void 0:n.styleOverrides)&&(r.components.MuiTable.styleOverrides.root={}),Ys(H(H({},r),{direction:e}))}function Zg(){return Zg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zg.apply(this,arguments)}function Xg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Jg(e,t,n[t])}))}return e}function Jg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qg(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function eb(e){return"large"===e?"20px":"small"===e?"12px":"inherit"===e?"null":"16px"}var tb=function(e){var t=e.d,n=e.size,r=e.style,o=Qg(e,["d","size","style"]);return x.createElement("i",Zg({style:Xg({fontSize:eb(n),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},r)},o),x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},x.createElement("path",{d:t})))};function nb(e){return x.createElement(tb,Object.assign({d:"M15,4 L1,4 L1,2 L15,2 L15,4 Z M15,14 L1,14 L1,12 L15,12 L15,14 Z M15,9 L1,9 L1,7 L15,7 L15,9 Z"},e))}const rb={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},ob=(e,t)=>e.some((e=>t[e]>0)),ib=tu(yp,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),ab=tu(nb,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),lb=tu($f)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),sb=tu($p)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),ub=tu(Yf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:e.spacing(.25,2),marginBottom:e.spacing(.5)}))),cb=tu(Yf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:e.spacing(.5),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative",overflow:"hidden",boxSizing:"border-box",background:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),db=tu("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),pb=tu("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),fb=tu(fd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),mb=tu(gf)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function hb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gb=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){hb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"}))));let bb={};const vb=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=S(!1),p=A(null),f=L((e=>{e.stopPropagation(),d(!1)}),[d]);return x.createElement(x.Fragment,null,x.createElement(cb,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),bb={}),null!=a&&a.length&&(d(!0),bb[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&x.createElement(db,null),x.createElement(pb,null,x.createElement(mb,null,x.createElement(o,null)),x.createElement(fb,{variant:"body2"},r)),null!=a&&a.length?x.createElement(gb,null):null),(null==a?void 0:a.length)&&x.createElement(xb,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=bb,m.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(h).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var m,h},yb=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&x.createElement(ub,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>x.createElement(vb,{key:e.id,...e,isSubMenu:t,handleHeadCellMenuKeyDown:n})))].filter(Boolean)]})),xb=({anchorEl:e,open:t,onClose:n,ariaLabel:r,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?x.createElement(lb,{className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,"aria-labelledby":r,...a?{anchorOrigin:a}:{},...i?{transformOrigin:i}:{}},(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[yb({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?x.createElement(sb,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null;function Sb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Eb=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Sb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5V2Zm12 2H8v1h7V4ZM8 7h6v1H8V7Zm5 3H8v1h5v-1Z"}))));function Cb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wb=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Cb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5 3.5 1.793ZM8 4h5v1H8V4Zm0 3h6v1H8V7Zm0 3h7v1H8v-1Z"}))));function Rb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ab=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Rb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116.509.509 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.087a.506.506 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0Z"}))));function Db(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Pb=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Db(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1V1.5ZM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1h1.5ZM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1v1.5Zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1v1.5ZM6 0h4v1H6V0ZM0 6h1v4H0V6Zm15 0h1v4h-1V6Zm-9 9h4v1H6v-1Z"}))));function Ib(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tb=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ib(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4h2Zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0h10Zm0 1H5v10h10V1Zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28l3.497-3.627Z"}))));function Mb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Lb=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Mb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5Zm-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0Zm0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0ZM9.166 6.166c1.555-1.555 4.113-1.555 5.668 0 1.555 1.555 1.555 4.113 0 5.668-1.555 1.555-4.113 1.555-5.668 0-1.555-1.555-1.555-4.063 0-5.668Zm4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304 1.304-1.304Z"}))));function qb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kb=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5Zm-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0Zm14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0ZM4 4v8h8V4H4Zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"}))));function Ob(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nb=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ob(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5Zm-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0Zm14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0ZM4 4v8l8-8H4Zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"}))));function _b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fb=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_b(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5Zm-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0Zm14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0ZM4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"}))));function zb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Hb=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707L3.915 8ZM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h14Zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2h2Z"}))));var jb;!function(e){e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize"}(jb||(jb={}));const Bb=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:l,fieldInstance:s,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnClosetHeaderAdjuster:d})=>{const p=[];if(n[jb.SORTING]&&p.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"A")),r(!1),await(null==i?void 0:i(e))},icon:wb,enabled:!!e.isActivelySorted||"D"===e.sortDirection,isActive:e.isActivelySorted&&"A"===e.sortDirection,autoFocus:e.isActivelySorted?"A"===e.sortDirection:"D"===e.sortDirection},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"D")),r(!1),await(null==i?void 0:i(e))},icon:Eb,enabled:!!e.isActivelySorted||"A"===e.sortDirection,isActive:e.isActivelySorted&&"D"===e.sortDirection,autoFocus:e.isActivelySorted?"D"===e.sortDirection:"A"===e.sortDirection}]}]),e.isDim&&null!=a&&a.select){const e=[];n[jb.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),l()},icon:Ab,enabled:!0}]}]),n[jb.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:Pb,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAll())},icon:Tb,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectPossible())},icon:kb,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAlternative())},icon:Nb,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectExcluded())},icon:Fb,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.clear())},icon:Lb,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return n[jb.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==d||d(c)},icon:Hb,enabled:!0}]}]),p},$b=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=G({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:b}=r,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:E,updateSelectionActionsEnabledStatus:w}=(({headerData:e,app:t})=>{const[n,r]=S(null),[o,i]=S(rb);return C((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:L((()=>i(rb)),[]),updateSelectionActionsEnabledStatus:L((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:ob(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:ob(["qSelected"],n.qStateCounts),canSelectPossible:ob(["qOption"],n.qStateCounts),canSelectAlternative:ob(["qAlternative"],n.qStateCounts),canSelectExcluded:ob(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),R=L((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}})}}),[c,b,g]);C((()=>{e||(E(),null!=d&&d.model&&d.model.getLayout().then((e=>{w(e)})).catch((e=>console.error(e))))}),[e,E,w,null==d?void 0:d.model]);const A=L((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?x.createElement(ib,{rightAligned:"right"===h,shouldShowMenuIcon:s},s&&x.createElement(ab,{size:"small",className:an,"data-testid":an,"aria-controls":e?"nebula-table-utils-head-menu":void 0,"aria-expanded":e?"true":void 0,"aria-haspopup":"true",isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},x.createElement(nb,null)),x.createElement(xb,{open:e,anchorEl:n.current,onClose:A,menuGroups:Bb({headerData:r,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:R,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnClosetHeaderAdjuster:null==p?void 0:p.setFocusOnClosetHeaderAdjuster}),ariaLabel:"nebula-table-utils-head-menu-button",handleHeadCellMenuKeyDown:a})):null},Wb=tu(yp,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),Vb=tu(Mm,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),Ub=tu(Tp,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),Gb=tu(fd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),Yb=e=>e.isDark?{background:e.color,borderColor:qh.DARK_MODE_BORDER,color:qh.DARK_MODE_TEXT,disabledColor:qh.DARK_MODE_DISABLED,iconColor:qh.DARK_MODE_TEXT}:{background:e.color,borderColor:qh.BORDER_MEDIUM,color:qh.TEXT,disabledColor:qh.DISABLED},Kb=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=E((()=>Yb(r.background)),[r]);if(!n.active)return null;const a=o?x.createElement(Wb,{footerStyle:i},e):null;return t?z.createPortal(e,t):a},Zb=M({}),Xb=()=>w(Zb),Jb=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=E((()=>Yb(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=G({translator:d}),S=E((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:v})),[t,n,r,o,i,a,l,s,u,c,y,p,f,m,h,b,g,v]);return x.createElement(Zb.Provider,{value:S},e)};var Qb,ev;!function(e){e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage"}(Qb||(Qb={})),function(e){e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage"}(ev||(ev={}));const tv=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=Xb(),{page:o,rowsPerPage:i}=n;if(t<=ev.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return x.createElement(Gb,{variant:"caption"},a)},nv=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=Xb(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return x.createElement(x.Fragment,null,x.createElement(Gb,{variant:"caption",id:d},u,":"),x.createElement(Vb,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},rv=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=Xb();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>ev.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=x.createElement(x.Fragment,null,t.rowsPerPageOptions.map((e=>x.createElement("option",{key:e,value:e},e))));return x.createElement(nv,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},ov=1e3,iv="…",av=({totalPages:e,page:t})=>{const n=Math.min(e,ov),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-ov):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return x.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(x.createElement("option",{key:"startMoreOptions",value:iv,disabled:!0},iv)),o<e-1&&a.push(x.createElement("option",{key:"endMoreOptions",value:iv,disabled:!0},iv)),x.createElement(x.Fragment,null,a)},lv=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=Xb(),{page:o}=e;if(t<=ev.SelectPage)return null;const i=x.createElement(av,{totalPages:n,page:o});return x.createElement(nv,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})};function sv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const uv=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){sv(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"}))));function cv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const dv=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){cv(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8l6-6ZM4 2v12H2V2h2Z"}))));function pv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fv=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){pv(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5 3.5 2ZM14 2v12h-2V2h2Z"})))),mv={FirstPage:dv,PreviousPage:uv,NextPage:gb,LastPage:fv,FirstPageRTL:fv,PreviousPageRTL:gb,NextPageRTL:uv,LastPageRTL:dv},hv=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=Xb(),u=mv[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},gv=()=>{const{pageInfo:e,width:t}=Xb(),n=0===e.page,{IconComponent:r,styledProps:o}=hv({type:Qb.FirstPage,disabledCondition:n,pageNumber:0});return t<=ev.FirstPage?null:x.createElement(Ub,{...o},x.createElement(r,{height:on}))},bv=()=>{const{pageInfo:e}=Xb(),t=0===e.page,{IconComponent:n,styledProps:r}=hv({type:Qb.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return x.createElement(Ub,{...r},x.createElement(n,{height:on}))},vv=(e,t,n=!1)=>{n&&e.key===ln.TAB&&!e.shiftKey&&(og(e),rg(e.target,t,!1))},yv=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=Xb(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=hv({type:Qb.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>ev.FirstPage&&o>ev.LastPage)&&t.enabled?e=>vv(e,t,r):null;return x.createElement(Ub,{...l,onKeyDown:s},x.createElement(a,{height:on}))},xv=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=Xb(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=hv({type:Qb.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>vv(e,t,r):null;return o<=ev.LastPage?null:x.createElement(Ub,{...l,onKeyDown:s},x.createElement(a,{height:on}))};var Sv=k((e=>x.createElement(Jb,{...e},x.createElement(rv,null),x.createElement(lv,null),x.createElement(tv,null),x.createElement(gv,null),x.createElement(bv,null),x.createElement(yv,null),x.createElement(xv,null))));const Ev=e=>x.createElement(Kb,{...e},x.createElement(Sv,{...e})),Cv=tu(yp,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${un}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, :active":{outline:"none",[`& .${un}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),wv=tu(yp)({position:"absolute",height:"100%",width:"3px"}),Rv=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,isNewHeadCellMenuEnabled:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u})=>{const c=E((()=>({initWidth:e,columnWidth:e,initX:0})),[e]),d=r||o?cn.PixelsMin:cn.PixelsMinTable,p=n?0:1,f={left:r?c.columnWidth-p:"100%"},m=e=>{const t=Math.max(c.initWidth+e,d);c.columnWidth=t,a(t)},h=()=>{if(c.columnWidth!==c.initWidth){const e={type:dn.Pixels,pixels:c.columnWidth};l(e)}else null==u||u(!1)},g=e=>{const t=e.clientX-c.initX;m(t)},b=e=>{og(e),document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",b),h()},v=e=>{const t=e.touches[0].clientX-c.initX;m(t)},y=e=>{e.preventDefault(),e.stopPropagation(),document.removeEventListener("touchmove",v),document.removeEventListener("touchend",y),h()},S=!r&&s?e=>{if(e.key===ln.LEFT||e.key===ln.RIGHT){og(e);const t=c.columnWidth-c.initWidth,n=5,r=e.key===ln.LEFT?t-n:t+n;m(r)}else e.key===ln.SPACE||e.key===ln.ENTER?(og(e),s(e),h()):e.key===ln.ESC&&(og(e),s(e),m(c.initWidth))}:void 0;return x.createElement(Cv,{className:sn,isLastColumn:n,hoverColor:i,style:f,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",g),document.addEventListener("mouseup",b),null==u||u(!0),c.initX=e.clientX},onDoubleClick:()=>l({type:dn.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",v),document.addEventListener("touchend",y),null==u||u(!0),c.initX=e.touches[0].clientX)},onKeyDown:S,onBlur:s,"data-testid":sn},x.createElement(wv,{className:un}))};var Av=tu(yp,{shouldForwardProp:function(e){return"background"!==e}})((function(e){return{height:"100%",background:e.background.tableColorFromTheme}})),Dv=tu(yp,{shouldForwardProp:function(e){return"lines"!==e&&"wordBreak"!==e}})((function(e){var t=e.lines,n=e.wordBreak;return H({lineHeight:"calc(4/3)",fontSize:"inherit"},(n||1===t)&&{height:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical"})})),Pv=tu(yp)({overflow:"hidden",textOverflow:"ellipsis"});function Iv(e,t){var n=A(!1);C((function(){n.current?e():n.current=!0}),t)}var Tv=function(e,t,n){C((function(){var r=e.current;if(r){var o=function(e){return function(e,t,n){if(0!==e.deltaX){e.stopPropagation();var r=n.scrollWidth-n.offsetWidth,o=n.scrollLeft,i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(r,i)):Math.max(0,Math.min(r,i)))}}(e,"rtl"===t,r)},i=function(e){var t;n.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return r.addEventListener("wheel",o),r.addEventListener("scroll",i),function(){r.removeEventListener("wheel",o),r.removeEventListener("scroll",i)}}}),[e,t,n])},Mv=function(e){var t,n=e.key,r=e.target,o=null!==(t=document.activeElement)&&void 0!==t?t:r;if(n===mu.DOWN||n===mu.UP){var i=function(e){return n===mu.DOWN?lg(e):sg(e)};og(e);for(var a=i(o);a;){if("true"!==a.ariaDisabled){a.focus();break}a=i(a)}}},Lv=function(e){var t,n=e.evt,r=e.rootElement,o=e.cellCoord,i=e.setFocusedCellCoord,a=e.isInteractionEnabled,l=e.handleOpenMenu,s=e.isNewHeadCellMenuEnabled;if(a){if(!yg(n)){var u=!(null===(t=n.target.closest(".sn-table-cell"))||void 0===t?void 0:t.nextSibling);switch(n.key){case mu.LEFT:case mu.RIGHT:og(n),n.key===mu.RIGHT&&u&&!s?fg(r,i):(s&&dg({focusType:hu.REMOVE_TAB,cell:n.target}),pg({evt:n,rootElement:r,cellCoord:o,setFocusedCellCoord:i,focusType:s?hu.FOCUS:hu.FOCUS_BUTTON}));break;case mu.DOWN:og(n),dg({focusType:hu.REMOVE_TAB,cell:ag(r)}),pg({evt:n,rootElement:r,cellCoord:o,setFocusedCellCoord:i,focusType:hu.FOCUS});break;case!s&&mu.TAB:!function(e,t,n,r,o){var i=e.target.classList.contains("sn-table-head-label");i&&e.shiftKey&&n[1]>0?r([n[0],n[1]-1]):i||e.shiftKey||(o?(og(e),fg(t,r)):r([n[0],n[1]+1]))}(n,r,o,i,u);break;case mu.C:og(n),hg(n)&&kn(n);break;case s&&mu.ENTER:case s&&mu.SPACE:l&&l()}}}else og(n)},qv=function(e){var t=Yg(Wg,(function(e){return e.baseProps})),n=t.layout,r=t.rect,o=t.theme.name(),i=S(0),a=i[0],l=i[1],s=S(0),u=s[0],c=s[1];return O((function(){var t;if(e.current){var n=null!==(t=e.current)&&void 0!==t?t:{},r=n.offsetWidth,o=void 0===r?0:r,i=n.offsetHeight,a=void 0===i?0:i,s=n.clientWidth,u=void 0===s?0:s,d=n.clientHeight,p=a-(void 0===d?0:d);c(o-u),l(p)}}),[e,n,r,o]),{xScrollbarWidth:a,yScrollbarWidth:u}},kv=tu("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),Ov=tu(th,{shouldForwardProp:function(e){return"fullHeight"!==e&&"interactions"!==e}})((function(e){var t=e.fullHeight,n=e.interactions;return{height:t?"100%":"calc(100% - ".concat(41,"px)"),overflow:n.active?"auto":"hidden",border:"none"}})),Nv=tu(Fm,{shouldForwardProp:function(e){return"showRightBorder"!==e&&"styling"!==e}})((function(e){var t=e.showRightBorder,n=e.styling;return{tableLayout:"fixed",width:"min-content",borderRight:t?"1px solid ".concat(n.body.borderRightColor):void 0}})),_v=function(){return x.createElement(x.Fragment,null,x.createElement(kv,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),x.createElement(kv,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"}))},Fv=function(e){var t=e.children,n=e.fontSize,r=void 0===n?"":n,o=e.wordBreak,i=void 0!==o&&o,a=e.lines,l=void 0===a?3:a,s=parseInt(r||Ph,10),u=x.createElement(Dv,{component:"span",className:"sn-table-cell-text",wordBreak:i,lines:l},t);return i?u:x.createElement(Pv,{minHeight:s*Dh,maxHeight:s*Dh*l},u)},zv=function(e){var t=e.selectionsAPI,n=e.selectionDispatch,r=e.setShouldRefocus,o=e.keyboard,i=e.tableWrapperRef;C((function(){var e=function(){n({type:fu.RESET})},a=function(){n({type:fu.CLEAR})},l=function(){var t,n;(null===(t=i.current)||void 0===t?void 0:t.contains(document.activeElement))?r():o.enabled&&(null===(n=o.blur)||void 0===n||n.call(o,!0)),e()};return null==t||t.on("deactivated",e),null==t||t.on("canceled",e),null==t||t.on("confirmed",l),null==t||t.on("cleared",a),function(){null==t||t.removeListener("deactivated",e),null==t||t.removeListener("canceled",e),null==t||t.removeListener("confirmed",l),null==t||t.removeListener("cleared",a)}}),[t,o,n,r,i])},Hv=function(e,t,n,r){return{handleMouseDown:function(r){if(null==e||e(r),t.isSelectable){n({type:fu.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:function(){return n({type:fu.SELECT_MULTI_END})}}})}},handleMouseOver:function(e){1===e.buttons&&n({type:fu.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:function(e){0===e.button&&n({type:fu.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:r}})}}},jv=tu(Vm,{shouldForwardProp:function(e){return"lastRowBottomBorder"!==e}})((function(e){return{"& tr:last-child":{"& td, th":{borderBottomWidth:e.lastRowBottomBorder}}}})),Bv=tu(mh,{shouldForwardProp:function(e){return"hoverColors"!==e&&"hover"!==e}})((function(e){var t=e.hover,n=e.hoverColors;return H({"&&:hover":{background:"none"}},t&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":n}})})),$v=tu(Xm,{shouldForwardProp:function(e){return"cellStyle"!==e}})((function(e){var t=e.cellStyle,n=e.theme;return H(H(H({},Ih),t),{padding:n.spacing(.5,1.5)})})),Wv=tu(Xm,{shouldForwardProp:function(e){return"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e}})((function(e){var t=e.totalsStyle,n=e.atTop,r=e.headRowHeight,o=e.theme;return H(H(H({},Ih),t),{fontWeight:"600",position:"sticky",padding:o.spacing(.5,1.5),borderWidth:n?"0px 1px 1px 0px":"1px 1px 1px 0px",top:n&&r,bottom:!n&&0})}));function Vv(e){return function(t){var n=t.cell,r=t.styling,o=t.announce,i=t.onMouseDown,a=Yg(Wg,(function(e){return Cg(n,e.selectionState)})),l=Yg(Wg,(function(e){return e.selectionDispatch})),s=Hv(i,n,l,o),u=s.handleMouseDown,c=s.handleMouseOver,d=s.handleMouseUp,p=function(e,t){var n={};switch(t){case pu.SELECTED:n=Ah.SELECTED;break;case pu.POSSIBLE:n=Ah.POSSIBLE;break;case pu.EXCLUDED:n={background:"".concat(Ah.EXCLUDED_BACKGROUND,", ").concat(e.background),selectedCellClass:pu.EXCLUDED}}return H(H({},e),n)}(r,a);return x.createElement(e,H({},t,{styling:p,onMouseUp:d,onMouseDown:u,onMouseOver:c}))}}function Uv(e,t){var n,r=(n=$v,function(e){var t=e.styling,r=t.selectedCellClass,o=j(t,["selectedCellClass"]),i=e.component,a=e.align,l=e.children,s=e.scope,u=e.tabIndex,c=e.onKeyDown,d=e.onMouseDown,p=e.onKeyUp,f=e.onMouseUp,m=e.onMouseOver,h=e.title;return x.createElement(n,{cellStyle:o,component:i,scope:s,align:a,tabIndex:u,className:"sn-table-cell ".concat(r||""),title:h,onKeyDown:c,onMouseDown:d,onKeyUp:p,onMouseUp:f,onMouseOver:m},l)});return t&&(r=Vv(r)),e&&(r=function(e){return function(t){var n=t.cell,r=t.column,o=t.styling,i=E((function(){return zg(o,n.qAttrExps,r.stylingIDs)}),[o,n.qAttrExps,r.stylingIDs]);return x.createElement(e,H({},t,{styling:i}))}}(r)),r}var Gv=function(){var e=Yg(Wg,(function(e){return e.tableData})),t=e.columns,n=e.totalsPosition.atTop,r=e.rows,o=Yg(Wg,(function(e){return e.baseProps})),i=o.rootElement,a=o.selectionsAPI,l=o.keyboard,s=o.styling,u=o.interactions,c=Yg(Wg,(function(e){return e.headRowHeight})),d=Yg(Wg,(function(e){return e.setFocusedCellCoord})),p=Yg(Wg,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled}));return x.createElement(mh,{className:"sn-table-row sn-table-totals-row"},t.map((function(e,t){var o=[n?1:r.length+1,t],f=n&&0===t&&!l.enabled?0:-1;return x.createElement(Wv,{totalsStyle:s.totals,headRowHeight:c,atTop:n,key:e.id,align:e.totalsTextAlign,className:"sn-table-cell",tabIndex:p?-1:f,title:u.passive?e.totalInfo:void 0,onKeyDown:function(e){!function(e,t,n,r,o,i){if(void 0===i&&(i=!1),i)og(e);else if(!yg(e))switch(e.key){case mu.LEFT:case mu.RIGHT:case mu.UP:case mu.DOWN:og(e);var a=xg(n,e,o);a===hu.FOCUS&&dg({focusType:hu.REMOVE_TAB,cell:e.target}),pg({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:a});break;case mu.TAB:Eg({evt:e,rootElement:t,setFocusedCellCoord:r,isNewHeadCellMenuEnabled:o});break;case mu.C:og(e),hg(e)&&kn(e);break;case mu.SPACE:e.preventDefault()}}(e,i,o,d,p,null==a?void 0:a.isModal())},onMouseDown:function(){mg(o,i,d,l)}},x.createElement(Fv,{fontSize:s.totals.fontSize},e.totalInfo))})))},Yv=k(Gv),Kv=function(e){var t,n,r=e.setShouldRefocus,o=e.tableWrapperRef,i=e.announce,a=Yg(Wg,(function(e){return e.tableData})),l=a.rows,s=a.columns,u=a.paginationNeeded,c=a.totalsPosition,d=Yg(Wg,(function(e){return e.baseProps})),p=d.selectionsAPI,f=d.rootElement,m=d.keyboard,h=d.layout,g=d.viewService,b=d.interactions,v=d.styling.body,y=v.hoverColors,S=v.lastRowBottomBorder,C=j(v,["hoverColors","lastRowBottomBorder"]),w=Yg(Wg,(function(e){return e.setFocusedCellCoord})),R=Yg(Wg,(function(e){return e.selectionDispatch})),A=Yg(Wg,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled})),D=!!b.active&&!!b.select,P=JSON.stringify(s.map((function(e){return e.stylingIDs}))),I=E((function(){return JSON.parse(P).map((function(e){return Uv(!!e.length,D)}))}),[P,D]),T=!!(null===(n=null===(t=Og(h))||void 0===t?void 0:t.content)||void 0===n?void 0:n.hoverEffect);return zv({keyboard:m,selectionDispatch:R,selectionsAPI:p,setShouldRefocus:r,tableWrapperRef:o}),x.createElement(jv,{lastRowBottomBorder:S},c.atTop?x.createElement(Yv,null):void 0,l.map((function(e,t){return x.createElement(Bv,{hoverColors:y,hover:T,tabIndex:-1,key:e.id,className:"sn-table-row sn-table-data-row",rowindex:t},s.map((function(n,r){var o,a=n.id,l=e[a],s=I[r],d=A||0!==t||0!==r||c.atTop||m.enabled?-1:0;return s&&x.createElement(s,{scope:0===r?"row":null,component:0===r?"th":null,cell:l,column:n,key:a,align:l.align,styling:C,tabIndex:d,announce:i,title:b.passive?l.qText:void 0,onKeyDown:function(e){!function(e){var t=e.evt,n=e.rootElement,r=e.cell,o=e.selectionDispatch,i=e.isSelectionsEnabled,a=e.setFocusedCellCoord,l=e.announce,s=e.keyboard,u=e.paginationNeeded,c=e.totalsPosition,d=e.selectionsAPI,p=e.isNewHeadCellMenuEnabled;if(t.target.classList.contains("excluded"))og(t);else{var f=null==d?void 0:d.isModal();if(!yg(t,f))switch(t.key){case mu.UP:case mu.DOWN:case mu.LEFT:case mu.RIGHT:og(t),Sg({evt:t,rootElement:n,cell:r,selectionDispatch:o,isSelectionsEnabled:i,setFocusedCellCoord:a,announce:l,totalsPosition:c,isSelectionMode:f,isNewHeadCellMenuEnabled:p});break;case mu.SPACE:og(t),r.isSelectable&&i&&o({type:fu.SELECT,payload:{cell:r,evt:t,announce:l}});break;case mu.ENTER:og(t),f&&(null==d||d.confirm(),l({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case mu.ESC:og(t),null==d||d.cancel(),l({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case mu.TAB:Eg({evt:t,rootElement:n,setFocusedCellCoord:a,keyboard:s,isSelectionMode:f,paginationNeeded:u,isNewHeadCellMenuEnabled:p});break;case mu.C:og(t),hg(t)&&kn(t)}}}({evt:e,rootElement:f,selectionsAPI:p,cell:l,selectionDispatch:R,isSelectionsEnabled:D,setFocusedCellCoord:w,announce:i,keyboard:m,paginationNeeded:u,totalsPosition:c,isNewHeadCellMenuEnabled:A})},onKeyUp:function(e){return function(e,t){e.key===mu.SHIFT&&t({type:fu.SELECT_MULTI_END})}(e,R)},onMouseDown:function(){return function(e,t,n,r,o){var i=e.pageRowIdx,a=e.pageColIdx,l=o.atTop?i+2:i+1;mg([l,a],t,n,r)}(l,f,w,m,c)}},x.createElement(Fv,{fontSize:C.fontSize,lines:null===(o=g.viewState)||void 0===o?void 0:o.maxLineCount},l.qText))})))})),c.atBottom?x.createElement(Yv,null):void 0)},Zv=k(Kv),Xv=function(e){var t=e.column,n=e.isLastColumn,r=e.onColumnResize,o=t.pageColIdx,i=Yg(Wg,(function(e){return e.baseProps})),a=i.applyColumnWidths,l=i.interactions,s=Yg(Wg,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled})),u=Yg(Wg,(function(e){return e.columnWidths})),c=Yg(Wg,(function(e){return e.setColumnWidths}));if(!l.active)return null;return x.createElement(Rv,{columnWidth:u[o],isLastColumn:n,keyValue:"adjuster-".concat(o),isNewHeadCellMenuEnabled:s,updateWidthCallback:function(e){null==r||r();var t=W([],u,!0);t[o]=e,c(t)},confirmWidthCallback:function(e){a(e,t)},handleBlur:function(e){return function(e,t){var n=e.target;n.setAttribute("tabIndex","-1");var r=null==n?void 0:n.closest(".sn-table-cell"),o=null;t?null==(o=r)||o.setAttribute("tabIndex","0"):o=null==r?void 0:r.querySelector(".sn-table-head-menu-button"),null==o||o.focus()}(e,s)}})};function Jv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Qv=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Jv(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("defs",null,x.createElement("path",{id:"lock_svg__lock-a",d:"M13 7H8h5V4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3h10Z"})),x.createElement("use",{xlinkHref:"#lock_svg__lock-a",fillRule:"evenodd"}))));var ey=tu("div")({position:"absolute",left:0,bottom:0}),ty=tu(Tp,{shouldForwardProp:function(e){return!["isActivelySorted","textAlign","disabled","isNewHeadCellMenuEnabled"].includes(e)}})((function(e){var t=e.isActivelySorted,n=e.textAlign,r=e.disabled,o=e.theme,i=e.isNewHeadCellMenuEnabled;return{textAlign:n,height:"auto",maxWidth:"100%",fontSize:"inherit",fontFamily:"inherit",padding:o.spacing(.5,1),color:"inherit",alignItems:"flex-end",cursor:r?"auto":"pointer",justifySelf:n,"&&:focus, &&:hover":H(H({},i&&{background:"transparent",boxShadow:"none"}),{"& svg":H({},!i&&{opacity:t?1:.5})}),"& svg":{opacity:t?1:0,fontSize:Ph},"& .Mui-disabled":{color:"inherit"},"& .MuiButton-endIcon, .MuiButton-startIcon":{marginBottom:"2px",visibility:r?"hidden":"visible"}}})),ny=tu("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1}),ry=tu(yp,{shouldForwardProp:function(e){return"isLocked"!==e&&"isNewHeadCellMenuEnabled"!==e}})((function(e){var t=e.theme,n=e.isLocked,r=e.isNewHeadCellMenuEnabled;return H(H({width:"100%",display:"grid",flexDirection:"inherit",gridAutoFlow:"dense",gap:t.spacing(.5),fontSize:"inherit",fontFamily:"inherit"},r&&{alignItems:"end",overflow:"hidden"}),{"&&:hover, &&:focus-within":{"& .sn-table-head-menu-button":{opacity:1}},"& > div:last-child":{alignSelf:"flex-end"},"&.aligned-left":{gridTemplateColumns:n?"".concat(20,"px 2fr ").concat(vu,"px"):"1fr ".concat(vu,"px")},"&.aligned-center":{gridTemplateColumns:"".concat(vu,"px 2fr ").concat(vu,"px"),"& > div:first-child":{gridColumn:1},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:3}},"&.aligned-right":{gridTemplateColumns:n?"".concat(vu,"px 2fr ").concat(20,"px"):"".concat(vu,"px 1fr"),"& > div:first-child":{gridColumn:n?3:"unset"},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:1}}})})),oy=tu("div")({display:"flex",alignSelf:"flex-end"}),iy=tu(yp)({display:"flex",alignItems:"center",width:"".concat(20,"px"),height:"".concat(vu,"px"),flexShrink:0,flexDirection:"inherit","&.aligned-right":{justifyContent:"flex-start"},"&.aligned-center, &.aligned-left":{justifyContent:"flex-end"}}),ay=tu(yp,{shouldForwardProp:function(e){return"isVisible"!==e&&"rightAligned"!==e}})((function(e){var t=e.rightAligned;return H(H({},t?{marginRight:"auto"}:{marginLeft:"auto"}),{height:"".concat(vu,"px"),display:"flex"})})),ly=tu(Tp,{shouldForwardProp:function(e){return"isVisible"!==e&&"isNewHeadCellMenuEnabled"!==e}})((function(e){var t=e.isVisible,n=e.isNewHeadCellMenuEnabled;return H({opacity:t?1:0},!n&&{"&:focus":{opacity:1}})})),sy=tu($p)((function(e){return{"&.MuiDivider-root":{margin:e.theme.spacing(.5)}}})),uy=tu(Yf)((function(e){var t=e.theme;return{borderRadius:"4px",margin:t.spacing(0,.5),padding:t.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}})),cy=tu("div")((function(){return{display:"flex",justifyContent:"space-between",alignItems:"center"}})),dy=tu(gf)((function(e){return{marginRight:e.theme.spacing(1.5),lineHeight:0}}));tu("div")((function(e){return{height:"350px",boxSizing:"border-box",background:e.theme.palette.common.white}}));function py(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fy=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){py(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M2 6.5h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1Zm5.5 0h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1Zm5.5 0h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1Z"}))));var my=new Map,hy={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},gy=function(e,t){return e.some((function(e){return t[e]>0}))},by={},vy=function(e){var t,n,r=e.autoFocus,o=e.id,i=e.onClick,a=e.itemTitle,l=e.icon,s=e.enabled,u=e.subMenus,c=S(!1),d=c[0],p=c[1],f=A(null);return x.createElement(x.Fragment,null,x.createElement(uy,{ref:u?f:null,key:o,"data-testid":"menu-item-".concat(o),className:"sn-table-head-menu-item",onClick:function(e){i&&(i(e),by={}),(null==u?void 0:u.length)&&(p(!0),by[a]=p)},disabled:!s,autoFocus:r,onKeyDown:Mv},x.createElement(cy,null,x.createElement(dy,null,l),x.createElement(fd,{variant:"body2"},a)),(null==u?void 0:u.length)?x.createElement(gb,null):null),(null==u?void 0:u.length)&&x.createElement(xy,{anchorEl:f.current,open:d,onClose:function(){return p(!1)},menuGroups:(t=u,n=by,t.map((function(e){return e.map((function(e){var t=e.onClick,r=j(e,["onClick"]);return H(H({},r),t?{onClick:function(e){Object.entries(n).map((function(e){return(0,e[1])(!1)})),t(e)}}:{})}))}))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"}}))},yy=function(e){return e.menuGroup.map((function(e){return x.createElement(vy,H({key:e.id},e))}))},xy=function(e){var t=e.anchorEl,n=e.open,r=e.onClose,o=e.menuGroups,i=e.transformOrigin,a=e.anchorOrigin,l=e.buttonId,s=e.menuId;return o.length?x.createElement($f,H({className:"sn-table-head-menu",id:s,open:n,anchorEl:t,onClose:r,"aria-labelledby":l},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{}),function(e){var t=e.itemGroups;return t.map((function(e,n){return[yy({menuGroup:e}),n<t.length-1?x.createElement(sy,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0]}))}({itemGroups:o})):null},Sy=function(e){var t=e.column,n=e.tabIndex,r=t.isDim,o=t.qLibraryId,i=t.fieldId,a=t.headTextAlign,l=t.pageColIdx,s=Yg(Wg,(function(e){return e.baseProps})),u=s.translator,c=s.embed,d=s.model,p=s.interactions,f=s.layout,m=A(null),h=A(null),g=S(!1),b=g[0],v=g[1],y=S(!1),w=y[0],R=y[1],D=function(e,t){var n=Yg(Wg,(function(e){return e.baseProps})),r=n.app,o=n.layout,i=S(null),a=i[0],l=i[1],s=S(hy),u=s[0],c=s[1];return C((function(){if(r&&r.getField&&e&&e.isDim&&t){var n=e.qLibraryId,i=e.fieldId;if(n){var a="".concat(r.id,"-").concat(n);my.get(a)?l(my.get(a)):r.createSessionObject(function(e,t){return void 0===t&&(t="$"),{qInfo:{qType:"tableListbox"},qListObjectDef:{qLibraryId:e,qStateName:t}}}(n,o.qStateName)).then((function(e){var t={selectAll:function(){return e.selectListObjectAll("/qListObjectDef")},clear:function(){return e.clearSelections("/qListObjectDef").then((function(e){return e}))},selectPossible:function(){return e.selectListObjectPossible("/qListObjectDef")},selectAlternative:function(){return e.selectListObjectAlternative("/qListObjectDef")},selectExcluded:function(){return e.selectListObjectExcluded("/qListObjectDef")}};l(t),my.set(a,t)}))}else r.getField(i,o.qStateName).then(l)}}),[r,e,o.qStateName,t]),{fieldInstance:a,selectionActionsEnabledStatus:u,resetSelectionActionsEnabledStatus:L((function(){return c(hy)}),[]),updateSelectionActionsEnabledStatus:function(t){var n=t.qHyperCube.qDimensionInfo.find((function(t){return t.qFallbackTitle===e.label}));n&&c({canSelectAll:gy(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:gy(["qSelected"],n.qStateCounts),canSelectPossible:gy(["qOption"],n.qStateCounts),canSelectAlternative:gy(["qAlternative"],n.qStateCounts),canSelectExcluded:gy(["qAlternative","qExcluded"],n.qStateCounts)})}}}(t,b),P=D.fieldInstance,I=D.selectionActionsEnabledStatus,T=D.resetSelectionActionsEnabledStatus,M=D.updateSelectionActionsEnabledStatus,q=Yg(Wg,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled})),k=L((function(){var e=o?{qLibraryId:o,type:"dimension"}:i;c.__DO_NOT_USE__.popover(h.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},stateName:f.qStateName}),c.on("fieldPopoverClose",(function(){R(!1)}))}),[c,i,o,f.qStateName]),O=E((function(){return W(W([],r&&p.select?[[{id:1,itemTitle:u.get("SNTable.MenuItem.Search"),onClick:function(e){e.stopPropagation(),v(!1),R(!0),k()},icon:x.createElement(Ab,null),enabled:!0}],[{id:1,itemTitle:u.get("SNTable.MenuItem.Selections"),icon:x.createElement(Pb,null),enabled:!0,subMenus:[[{id:1,itemTitle:u.get("SNTable.MenuItem.SelectAll"),onClick:function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){switch(e.label){case 0:return v(!1),[4,null==P?void 0:P.selectAll()];case 1:return e.sent(),[2]}}))}))},icon:x.createElement(Tb,null),enabled:I.canSelectAll},{id:2,itemTitle:u.get("SNTable.MenuItem.SelectPossible"),onClick:function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){switch(e.label){case 0:return v(!1),[4,null==P?void 0:P.selectPossible()];case 1:return e.sent(),[2]}}))}))},icon:x.createElement(kb,null),enabled:I.canSelectPossible},{id:3,itemTitle:u.get("SNTable.MenuItem.SelectAlternative"),onClick:function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){switch(e.label){case 0:return v(!1),[4,null==P?void 0:P.selectAlternative()];case 1:return e.sent(),[2]}}))}))},icon:x.createElement(Nb,null),enabled:I.canSelectAlternative},{id:4,itemTitle:u.get("SNTable.MenuItem.SelectExcluded"),onClick:function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){switch(e.label){case 0:return v(!1),[4,null==P?void 0:P.selectExcluded()];case 1:return e.sent(),[2]}}))}))},icon:x.createElement(Fb,null),enabled:I.canSelectExcluded}],[{id:1,itemTitle:u.get("SNTable.MenuItem.ClearSelections"),onClick:function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){switch(e.label){case 0:return v(!1),[4,null==P?void 0:P.clear()];case 1:return e.sent(),[2]}}))}))},icon:x.createElement(Lb,null),enabled:I.canClearSelections}]]}]]:[],!0),[[{id:1,itemTitle:u.get("SNTable.MenuItem.AdjustColumnSize"),onClick:function(e){og(e),v(!1),cg(m)},icon:x.createElement(Hb,null),enabled:!0}]],!1)}),[r,p.select,u,I,k,P]);C((function(){b||T()}),[b,T]);var N=f.qInfo.qId,_="sn-table-head-menu-button-".concat(l,"-").concat(N),F="sn-table-head-menu-".concat(l,"-").concat(N);return O.length?x.createElement(ay,{rightAligned:"right"===a},x.createElement(ly,{isVisible:w||b,ref:m,size:"small",tabIndex:n,className:"sn-table-head-menu-button",id:_,"aria-controls":b?F:void 0,"aria-expanded":b?"true":void 0,"aria-haspopup":"true",onClick:function(){return B(void 0,void 0,void 0,(function(){var e;return $(this,(function(t){switch(t.label){case 0:return b||!d?[3,2]:[4,d.getLayout()];case 1:e=t.sent(),M(e),t.label=2;case 2:return v(!b),[2]}}))}))},"aria-label":u.get("SNTable.Accessibility.ColumnOptions"),isNewHeadCellMenuEnabled:q},x.createElement(fy,{height:Ph})),x.createElement("div",{ref:h}),x.createElement(xy,{open:b,anchorEl:m.current,onClose:function(){return v(!1)},menuGroups:O,buttonId:_,menuId:F})):null},Ey=function(e){var t,n=e.children,r=e.column,o=e.isInteractionEnabled,i=e.open,a=e.setOpen,l=Yg(Wg,(function(e){return e.baseProps})),s=l.keyboard,u=l.translator,c=l.changeSortOrder,d=l.interactions,p=l.embed,f=l.app,m=l.model,h=Yg(Wg,(function(e){return 0===e.focusedCellCoord[0]})),g=Yg(Wg,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled})),b=A(null),v=A(null),y=function(e){var t=e.sortDirection,n=e.isLocked,r=e.headTextAlign,o="A"===t?x.createElement(wb,{height:Ph}):x.createElement(Eb,{height:Ph}),i=n?x.createElement(iy,{className:"aligned-".concat(r)},x.createElement(Qv,{height:Ph,"data-testid":"head-cell-lock-icon"})):void 0;return"right"===r?{startIcon:o,lockIcon:i}:{endIcon:o,lockIcon:i}}(r),S=y.startIcon,E=y.endIcon,C=y.lockIcon,w=o&&ug(s)?0:-1,R={A:u.get("SNTable.Accessibility.Ascending"),D:u.get("SNTable.Accessibility.Descending")};return x.createElement(ry,{isLocked:Boolean(C),className:"aligned-".concat(r.headTextAlign),isNewHeadCellMenuEnabled:g},C&&x.createElement(oy,null,C),x.createElement(ty,{className:"sn-table-head-label",isActivelySorted:r.isActivelySorted,textAlign:r.headTextAlign,color:"inherit",size:"small",startIcon:S,endIcon:E,tabIndex:g?-1:w,disabled:!o,onClick:g?function(){}:function(){return o&&c(r)},isNewHeadCellMenuEnabled:g},n,h&&x.createElement(ny,{"data-testid":"VHL-for-col-".concat(r.pageColIdx)},"".concat(R[r.sortDirection]," ").concat(u.get("SNTable.SortLabel.PressSpaceToSort")))),o&&(g?x.createElement(x.Fragment,null,x.createElement($b,{headerData:r,translator:u,anchorRef:b,handleHeadCellMenuKeyDown:Mv,menuAvailabilityFlags:(t={},t[jb.SORTING]=!0,t[jb.SEARCHING]=!0,t[jb.SELECTIONS]=!0,t[jb.ADJUST_HEADER_SIZE]=!0,t),open:i,setOpen:a,interactions:d,sortRelatedArgs:{sortFromMenu:function(e,t){return e.stopPropagation(),c(r,t)}},searchRelatedArgs:{embed:p,listboxRef:v},selectionRelatedArgs:{app:f,model:m},adjustHeaderSizeRelatedArgs:{setFocusOnClosetHeaderAdjuster:cg},shouldShowMenuIcon:!0}),x.createElement(ey,{ref:v}),x.createElement(ey,{ref:b})):x.createElement(Sy,{column:r,tabIndex:w})))},Cy=tu(Xm,{shouldForwardProp:function(e){return"headerStyle"!==e&&"isNewHeadCellMenuEnabled"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e}})((function(e){var t=e.headerStyle,n=e.isNewHeadCellMenuEnabled,r=e.interactions,o=e.hoverBackground,i=e.background;return H(H(H(H(H({},Ih),t),n&&{cursor:"pointer",background:i}),{pointer:"cursor",verticalAlign:"bottom","&&:focus-visible":H(H({},!n&&{boxShadow:"none"}),n&&{background:r.active?o:i})}),n&&{"&&:hover":{background:r.active?o:i}})})),wy=function(e){var t=e.column,n=e.columnIndex,r=e.columnsLength,o=S(!1),i=o[0],a=o[1],l=Yg(Wg,(function(e){return e.baseProps})),s=l.styling,u=l.interactions,c=l.rootElement,d=l.keyboard,p=l.styling.head,f=p.activeBackground,m=p.background,h=p.hoverBackground,g=Yg(Wg,(function(e){return e.tableData})).columns,b=Yg(Wg,(function(e){return e.columnWidths})),v=Yg(Wg,(function(e){var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),y=Yg(Wg,(function(e){return e.setFocusedCellCoord})),E=Yg(Wg,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled})),C=Yg(Wg,(function(e){var t=e.focusedCellCoord,r=t[0],o=t[1];return 0===r&&o===n})),w=!!u.active&&!v,R=t.isActivelySorted?gu[t.sortDirection]:void 0,A=n===r-1,D=[0,t.pageColIdx],P={width:b[n]-(A?8:9),zIndex:g.length-n},I=function(){return a(!0)},T=!!E&&0===t.colIdx&&!d.enabled&&C&&w?0:-1;return x.createElement(Cy,{headerStyle:s.head,style:P,key:t.id,align:t.headTextAlign,className:"sn-table-head-cell sn-table-cell","aria-sort":R,tabIndex:T,title:u.passive?t.label:void 0,onKeyDown:function(e){return Lv({evt:e,rootElement:c,cellCoord:D,setFocusedCellCoord:y,isInteractionEnabled:w,handleOpenMenu:I,isNewHeadCellMenuEnabled:E})},onMouseDown:function(e){return function(e){var t,n=e.evt,r=e.rootElement,o=e.cellCoord,i=e.setFocusedCellCoord,a=e.keyboard,l=e.isInteractionEnabled;n.preventDefault(),l&&(i(o),a.enabled&&!a.active?null===(t=a.focus)||void 0===t||t.call(a):dg({focusType:hu.FOCUS_BUTTON,cell:ig(r,o)}))}({evt:e,rootElement:c,cellCoord:D,setFocusedCellCoord:y,keyboard:d,isInteractionEnabled:w})},isNewHeadCellMenuEnabled:E,background:i?f:m,hoverBackground:h,interactions:u,onClick:I},x.createElement(Ey,{column:t,isInteractionEnabled:w,open:i,setOpen:a},x.createElement(Fv,{fontSize:s.head.fontSize},t.label)),x.createElement(Xv,{column:t,isLastColumn:A}))},Ry=k((function(){var e,t=Yg(Wg,(function(e){return e.tableData})).columns,n=Yg(Wg,(function(e){return e.baseProps})),r=n.styling,o=n.viewService,i=Yg(Wg,(function(e){return e.setHeadRowHeight})),a=Yg(Wg,(function(e){return e.columnWidths})),l=A(null);return C((function(){l.current&&i(l.current.clientHeight)}),[r.head.fontSize,a,i]),(null===(e=o.viewState)||void 0===e?void 0:e.skipHeader)?null:x.createElement(lh,null,x.createElement(mh,{ref:l,className:"sn-table-row sn-table-head-row"},t.map((function(e,n){return x.createElement(wy,{column:e,columnIndex:n,columnsLength:t.length})}))))})),Ay=function(e){var t,n,r=e.pageInfo,o=e.setPageInfo,i=e.direction,a=e.footerContainer,l=e.announce,s=r.page,u=r.rowsPerPage,c=Yg(Wg,(function(e){return e.tableData})),d=c.totalColumnCount,p=c.totalRowCount,f=c.totalPages,m=c.paginationNeeded,h=c.rows,g=c.columns,b=c.totalsPosition,v=Yg(Wg,(function(e){return e.baseProps})),y=v.rootElement,S=v.keyboard,E=v.translator,w=v.theme,R=v.interactions,D=v.styling,P=v.viewService,I=v.layout,T=v.rect,M=Yg(Wg,(function(e){return e.focusedCellCoord})),q=Yg(Wg,(function(e){return e.setFocusedCellCoord})),k=Yg(Wg,(function(e){return e.setYScrollbarWidth})),O=Yg(Wg,(function(e){return e.showRightBorder})),N=Yg(Wg,(function(e){return e.selectionDispatch})),_=Yg(Wg,(function(e){var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),F=Yg(Wg,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled})),z=A(!1),j=A(null),B=A(null),$=qv(j).yScrollbarWidth,W="".concat(E.get("SNTable.Accessibility.RowsAndColumns",[String(h.length+1),String(g.length)])," ").concat(E.get("SNTable.Accessibility.NavigationInstructions")),U=Vn(I,P),G=U&&null!==(t=P.scrollLeft)&&void 0!==t?t:0,Y=U&&null!==(n=P.rowPartialHeight)&&void 0!==n?n:0,K=L((function(){z.current=y.getElementsByTagName("table")[0].contains(document.activeElement)}),[y]),Z=L((function(e){o(H(H({},r),{page:e})),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),f.toString()]],politeness:"assertive"})}),[r,o,f,l]),X=L((function(e){o(H(H({},r),{page:0,rowsPerPage:e})),l({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[l,r,o]);return function(e,t,n){C((function(){var r=e.current;if(r){var o=function(e){return function(e,t,n){var r,o=e.currentTarget,i=e.relatedTarget,a=o.contains(i),l=null==i?void 0:i.closest(".sn-table-head-menu");!n.enabled||a||l||t.current||(o.querySelector(".sn-table-announcer-1").innerHTML="",o.querySelector(".sn-table-announcer-2").innerHTML="",null===(r=n.blur)||void 0===r||r.call(n,!1))}(e,t,n)};return r.addEventListener("focusout",o),function(){r.removeEventListener("focusout",o)}}}),[e,t,n])}(B,z,S),Tv(j,i,P),function(){var e=Yg(Wg,(function(e){return e.baseProps})),t=e.rootElement,n=e.keyboard,r=Yg(Wg,(function(e){return e.focusedCellCoord})),o=Yg(Wg,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled}));V((function(){var e=o||r[0]>0?hu.FOCUS:hu.FOCUS_BUTTON;e=n.active?e:hu.BLUR;var i=n.active?ig(t,r):ag(t);dg({focusType:e,cell:i})}),[n.active,t,o])}(),C((function(){var e=j.current;e&&(e.scrollLeft=G,e.scrollTop=Y)}),[r,p,G,Y]),Iv((function(){!function(e){var t,n=e.focusedCellCoord,r=e.rootElement,o=e.shouldRefocus,i=e.isSelectionMode,a=e.setFocusedCellCoord,l=e.keyboard,s=e.announce,u=e.totalsPosition,c=e.isNewHeadCellMenuEnabled;dg({focusType:hu.REMOVE_TAB,cell:ag(r)});var d=[u.atTop?2:1,n[1]],p=i?d:c?yu:xu;if(ug(l)){var f=o.current?hu.FOCUS:hu.ADD_TAB;o.current=!1;var m=ig(r,p);if(dg({focusType:f,cell:m}),i){var h=null===(t=null==m?void 0:m.classList)||void 0===t?void 0:t.contains("selected");s({keys:["".concat(m.textContent,","),h?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.NotSelectedValue"]})}}a(p)}({focusedCellCoord:M,rootElement:y,shouldRefocus:z,setFocusedCellCoord:q,isSelectionMode:_,keyboard:S,announce:l,totalsPosition:b,isNewHeadCellMenuEnabled:F})}),[h.length,p,d,s,F]),Iv((function(){k($)}),[$]),Iv((function(){N({type:fu.UPDATE_PAGE_ROWS,payload:{pageRows:h}})}),[h]),x.createElement(Av,{ref:B,background:w.background,dir:i,onKeyDown:function(e){!function(e){var t,n=e.evt,r=e.totalRowCount,o=e.page,i=e.rowsPerPage,a=e.handleChangePage,l=e.setShouldRefocus,s=e.keyboard,u=e.isSelectionMode;if(gg(n)){og(n);var c=Math.ceil(r/i)-1;n.key===mu.RIGHT&&o<c?(l(),a(o+1)):n.key===mu.LEFT&&o>0&&(l(),a(o-1))}else n.key===mu.ESC&&s.enabled&&!u?(og(n),null===(t=s.blur)||void 0===t||t.call(s,!0)):bg(n.key)&&og(n)}({evt:e,totalRowCount:p,page:s,rowsPerPage:u,handleChangePage:Z,setShouldRefocus:K,keyboard:S,isSelectionMode:_})},"data-testid":"sn-table"},x.createElement(_v,null),x.createElement(Ov,{ref:j,className:"sn-table-container",fullHeight:a||!R.active||!m,interactions:R,tabIndex:-1,role:"application","data-testid":"table-container"},x.createElement(Nv,{styling:D,showRightBorder:O,stickyHeader:!0,"aria-label":W},x.createElement(Ry,null),x.createElement(Zv,H({},e,{setShouldRefocus:K,tableWrapperRef:B})))),x.createElement(Ev,{footerContainer:a,pageInfo:r,paginationNeeded:m,theme:w,totalRowCount:p,totalColumnCount:d,totalPages:f,keyboard:S,translator:E,interactions:R,rect:T,layout:I,handleChangePage:Z,handleChangeRowsPerPage:X,isSelectionMode:_}))},Dy=k(Ay),Py=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Iy(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||Py(r)&&Py(o)))return!1;var r,o;return!0}function Ty(e,t){var n;void 0===t&&(t=Iy);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var My="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Ly(e){cancelAnimationFrame(e.id)}function qy(e,t){var n=My();var r={id:requestAnimationFrame((function o(){My()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var ky=-1;function Oy(e){if(void 0===e&&(e=!1),-1===ky||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),ky=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return ky}var Ny=null;function _y(e){if(void 0===e&&(e=!1),null===Ny||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Ny="positive-descending":(t.scrollLeft=1,Ny=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Ny}return Ny}var Fy=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function zy(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,Ru(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Ru(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Ty((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=Ty((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=Ty((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(_y()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&Ly(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=qy(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}wu(t,e),t.getDerivedStateFromProps=function(e,t){return Hy(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=Oy();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(_y()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Ly(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?Fy:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),A=w[0],D=w[1],P=[];if(r>0&&g)for(var I=A;I<=D;I++)for(var T=E;T<=C;T++)P.push(R(t,{columnIndex:T,data:d,isScrolling:v?x:void 0,key:f({columnIndex:T,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,T)}));var M=a(this.props,this._instanceProps),L=l(this.props,this._instanceProps);return R(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Gn({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:P,ref:s,style:{height:M,pointerEvents:x?"none":void 0,width:L}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof r){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(N),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var Hy=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},jy=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},By=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},$y=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},Wy=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?Vy(e,t,n,i,0,r):Uy(e,t,n,Math.max(0,i),r)},Vy=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=$y(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},Uy=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&$y(e,t,r,n).offset<o;)r+=a,a*=2;return Vy(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},Gy=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=$y(e,t,n,i),u="column"===e?By(t,i):jy(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},Yy=zy({getColumnOffset:function(e,t,n){return $y("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return Wy("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=$y("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=$y("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:jy,getEstimatedTotalWidth:By,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return Gy("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return Gy("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return $y("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return Wy("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=$y("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=$y("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),Ky=function(e,t){return e};function Zy(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,Ru(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Ru(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Ty((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=Ty((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=Ty((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(_y()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&Ly(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=qy(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}wu(t,e),t.getDerivedStateFromProps=function(e,t){return Xy(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?Oy():0:s.scrollHeight>s.clientHeight?Oy():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(_y()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Ly(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?Ky:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],A=[];if(u>0)for(var D=C;D<=w;D++)A.push(R(t,{data:c,key:p(D,c),index:D,isScrolling:b?y:void 0,style:this._getItemStyle(D)}));var P=r(this.props,this._instanceProps);return R(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:Gn({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(l||s||"div",{children:A,ref:a,style:{height:x?"100%":P,pointerEvents:y?"none":void 0,width:x?P:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(N),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Xy=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Jy=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},Qy=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=Jy(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},ex=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&Jy(e,n,t).offset<r;)n+=i,i*=2;return Qy(e,t,Math.min(n,o-1),Math.floor(n/2),r)},tx=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},nx=Zy({getItemOffset:function(e,t,n){return Jy(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:tx,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=Jy(e,t,o),p=tx(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=m-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?Qy(e,t,o,0,n):ex(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=Jy(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=Jy(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function rx(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var ox=["style"],ix=["style"];function ax(e,t){var n=e.style,r=qr(e,ox),o=t.style,i=qr(t,ix);return!rx(n,o)&&!rx(r,i)}var lx=function(e){var t=e.style;return x.createElement("div",{className:"sn-table-cell",style:H(H({},t),{borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"})})},sx=x.memo(lx,ax),ux=function(){},cx=function(e){return e.preventDefault()};var dx,px=function(e){var t,n=e.columnIndex,r=e.rowIndex,o=e.style,i=e.data,a=i.rowsInPage,l=i.columns,s=i.bodyStyle,u=i.isHoverEnabled,c=i.maxLineCount,d=Yg(Wg,(function(e){return e.hoverIndex===r})),p=Yg(Wg,(function(e){return e.setHoverIndex})),f=Yg(Wg,(function(e){return e.baseProps})).interactions,m=Yg(Wg,(function(e){return e.showRightBorder})),h=null===(t=a[r])||void 0===t?void 0:t["col-".concat(n)],g=function(e){var t=Yg(Wg,(function(e){return e.baseProps})).interactions,n=Yg(Wg,(function(e){return e.selectionDispatch})),r="object"==typeof e,o=Yg(Wg,(function(t){return r?Cg(e,t.selectionState):pu.INACTIVE})),i=t.active&&t.select;if(r&&i){var a=Hv(cx,e,n,ux);return{handleMouseDown:a.handleMouseDown,handleMouseOver:a.handleMouseOver,handleMouseUp:a.handleMouseUp,cellSelectionState:o}}return{cellSelectionState:o}}(h),b=g.handleMouseDown,v=g.handleMouseOver,y=g.handleMouseUp,S=g.cellSelectionState;if("object"==typeof h){var E=function(e,t,n,r,o){var i=o.hoverColors;o.lastRowBottomBorder;var a=j(o,["hoverColors","lastRowBottomBorder"]),l=t.stylingIDs.length?zg(a,e.qAttrExps,t.stylingIDs):a;return r===pu.SELECTED?H(H({},l),Ah.SELECTED):r===pu.EXCLUDED?H(H({},l),{color:n?null==i?void 0:i.color:l.color,background:"".concat(Ah.EXCLUDED_BACKGROUND,", ").concat(n?null==i?void 0:i.background:l.background)}):n?H(H({},l),i):l}(h,l[n],u&&d,S,s),C={rowindex:r,columnindex:n};return x.createElement("div",H({className:"sn-table-cell ".concat(S),style:H(H(H({},o),E),{display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:h.isLastRow?"0px":"".concat(1,"px"),borderRightWidth:h.isLastColumn&&!m?"0px":"".concat(1,"px"),borderStyle:"solid",justifyContent:h.align,padding:"4px ".concat(12,"px"),boxSizing:"border-box",cursor:"default"}),onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:u?function(){return p(r)}:void 0,onMouseLeave:u?function(){return p(-1)}:void 0,title:f.passive?h.qText:void 0},C),x.createElement(Fv,{wordBreak:!h.isNumeric,lines:c},h.qText))}return x.createElement(sx,{style:H(H(H({},o),s),{borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"})})},fx=x.memo(px,ax),mx=function(e){var t=A(e);return t.current=e,t},hx=function(e){var t=e.qLeft,n=e.qTop,r=e.qWidth,o=e.qHeight;return"".concat(t,"-").concat(n,"-").concat(r,"-").concat(o)},gx=function(e,t){var n=A(new Set),r=A(new Set),o=A(new Set),i=mx(e),a=mx(t),l=E((function(){return{enqueue:function(e){var t=hx(e);o.current.has(t)||(n.current.add(e),o.current.add(t),1===n.current.size&&setTimeout((function(){return B(void 0,void 0,void 0,(function(){var e,t,l;return $(this,(function(s){switch(s.label){case 0:if(0===(e=Array.from(n.current.values())).length)return[2];n.current.clear(),r.current.add(e),s.label=1;case 1:return s.trys.push([1,3,4,5]),t=function(e){var t=[];return e.forEach((function(e){if(t.length>0){var n=t[t.length-1];!function(e,t){return e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth}(n,e)?function(e,t){return e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight}(n,e)?n.qWidth+=e.qWidth:t.push(H({},e)):n.qHeight+=e.qHeight}else t.push(H({},e))})),t}(e),[4,i.current(t)];case 2:return l=s.sent(),r.current.has(e)&&a.current(l),[3,5];case 3:return s.sent(),e.forEach((function(e){o.current.delete(hx(e))})),[3,5];case 4:return r.current.delete(e),[7];case 5:return[2]}}))}))}),75))},clear:function(){n.current.clear(),r.current.clear(),o.current.clear()}}}),[i,a]);return l},bx=function(e,t,n,r,o){var i=e[n];if(!i)return!0;for(var a=t;a<t+r;a++){var l=i["col-".concat(a)];if((null==l?void 0:l.rowIdx)!==o)return!0}return!1},vx=function(e,t,n,r){var o=e.slice(n,r);return 0===o.length||o.some((function(e){return!(null==e?void 0:e["col-".concat(t)])}))},yx=function(e,t,n,r,o,i){e.forEach((function(e){e.qMatrix.forEach((function(a,l){var s=e.qArea.qTop-t.page*t.rowsPerPage,u=function(e,t,n,r,o,i,a,l){var s,u=r.qTop+n,c=o+n,d=null!==(s=e[c])&&void 0!==s?s:{key:"row-".concat(c)};return t.forEach((function(e,t){var n,o=t+r.qLeft,s=i[o],p=s.colIdx,f=s.isDim,m=s.isLocked,h=s.id,g=s.bodyTextAlign,b=s.selectionColIdx,v=_n(e);d[h]=H(H({},e),{align:Bn(e,g),rowIdx:u,colIdx:p,isSelectable:f&&!m,pageRowIdx:c,pageColIdx:o,selectionColIdx:b,isLastRow:u===a.qcy-1,isLastColumn:o===a.qcx-1,isNumeric:v}),l(null!==(n=e.qText)&&void 0!==n?n:"",c,o,v)})),{row:d,pageRowIdx:c}}(n,a,l,e.qArea,s,r,o.qHyperCube.qSize,i),c=u.row,d=u.pageRowIdx;n[d]=c}))}))},xx=function(e){var t=e.layout,n=e.model,r=e.theme,o=e.initialDataPages,i=e.pageInfo,a=e.rowCount,l=e.visibleRowCount,s=e.visibleColumnCount,u=e.columns,c=e.setCellSize,d=e.gridState,p=A([]),f=mx(c),m=L((function(e,n){var r=Array.isArray(n)?n.slice(0,a):function(e){return Array(e).fill(void 0)}(a);return yx(e,i,r,u,t,f.current),p.current=r,r}),[a,i,u,t,f]),h=S((function(){return m(null!=o?o:[])})),g=h[0],b=h[1];V((function(){b(m(null!=o?o:[]))}),[o]);var v=gx((function(e){return n.getHyperCubeData("/qHyperCubeDef",e)}),(function(e){return b((function(t){return m(e,t)}))})),y=L((function(e,t,n,r){for(var o=e;o<e+n;o++)if(vx(p.current,o,t,r)){var i={qLeft:o,qTop:t,qHeight:r,qWidth:1};v.enqueue(i)}}),[p,v]),x=L((function(e,t,n,r){for(var o=t;o<t+r;o++){var a=Math.max(0,o-i.page*i.rowsPerPage);if(bx(p.current,e,a,n,o)){var l={qLeft:e,qTop:o,qHeight:1,qWidth:n};v.enqueue(l)}}}),[p,v,i]),E=r.name();return C((function(){var e=t.qHyperCube.qSize,n=e.qcx,r=e.qcy,o=d.current.overscanRowStartIndex,a=d.current.overscanColumnStartIndex,u=o+i.page*i.rowsPerPage,c=n-a,p=i.rowsPerPage-o,f=Math.min(100,c,n,s+5),m=Math.min(100,p,r,l+25);return x(a,u,f,m),function(){v.clear()}}),[t,l,s,i,v,x,d,E]),{rowsInPage:g,loadRows:x,loadColumns:y}},Sx=function(e){var t,n=e.style,r=e.columnWidths,o=e.rowHeight,i=e.pageInfo,a=e.rowCount,l=e.gridRef,s=e.lineRef,u=e.columns,c=e.boldText,d=e.gridState,p=e.isSnapshot,f=e.viewService,m=e.maxNbrLines,h=void 0===m?3:m,g=A({lastScrollToRatio:0,resetAfterRowIndex:0,heights:[],totalHeight:0,count:0,measuredCells:new Map}),b=Yg(Wg,(function(e){return e.baseProps})),v=b.layout,y=b.rect,x=S(o||24),E=x[0],C=x[1],w=Kt(H(H({},n),{bold:c})),R=w.measureText,D=w.estimateLineCount,P=parseInt(null!==(t=n.fontSize)&&void 0!==t?t:Ih.fontSize,10)*Ig,I=8e6/a-8-1,T=Math.max(0,Math.min(h,Math.round(I/P))),M=L((function(e,t,n){var o=u?function(e,t){var n=e-71;return n-(t.isLocked?24:0)}(r[t],u[t]):function(e){return e-24-1}(r[t]),i=Math.min(T,D({text:e.trim(),maxWidth:o,isNumeric:n}));return Math.max(1,i)*P+8+1}),[r,P,T,u,D]),q=L((function(e,t,n,r,o){void 0===r&&(r=!1),void 0===o&&(o=!1);var i="".concat(t,"-").concat(n);if(!g.current.measuredCells.has(i)){g.current.measuredCells.set(i,[e,t,n,r]);var a=M(e,n,r),l=g.current.heights[t],s=a-l;s>0?(g.current.totalHeight+=s,g.current.heights[t]=a):void 0===l&&(g.current.count+=1,g.current.totalHeight+=a,g.current.heights[t]=a),o||p||C(g.current.totalHeight/g.current.count)}}),[M,p]),k=L((function(e){var t;return null!==(t=g.current.heights[e])&&void 0!==t?t:E}),[g,E]),O=L((function(){g.current.lastScrollToRatio=0,g.current.resetAfterRowIndex=0,g.current.heights=[],g.current.totalHeight=0,g.current.count=0,g.current.measuredCells.clear()}),[g]),N=mx(q),_=L((function(){var e=new Map(g.current.measuredCells);O(),e.forEach((function(e){var t=e[0],n=e[1],r=e[2],o=e[3];N.current(t,n,r,o,!0)})),p||C(g.current.totalHeight/g.current.count)}),[O,p,N]);V((function(){O()}),[v,i]),V((function(){_()}),[R,y.width]);return(null==l?void 0:l.current)?l.current.resetAfterRowIndex(g.current.resetAfterRowIndex,!1):(null==s?void 0:s.current)&&s.current.resetAfterIndex(g.current.resetAfterRowIndex,!1),f.estimatedRowHeight=E,{setCellSize:q,getRowHeight:k,rowMeta:g,estimatedRowHeight:E,maxLineCount:T,resizeVisibleCells:function(e){var t;if(d){O();for(var n=d.current,r=n.overscanRowStartIndex,o=n.overscanRowStopIndex,i=Math.min(o,v.qHyperCube.qSize.qcy-1),a=function(n){var r=null!==(t=e[n])&&void 0!==t?t:{};Object.values(r).forEach((function(e){var t;"object"==typeof e&&q(null!==(t=e.qText)&&void 0!==t?t:"",n,e.pageColIdx,e.isNumeric)}))},l=r;l<=i;l++)a(l)}},resizeAllCells:_,resetRowMeta:O}};!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(dx||(dx={}));var Ex={enabled:!1},Cx=function(){},wx={current:null};var Rx=function(e,t,n,r,o){var i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(n.height/o)),l=E((function(){return r.reduce((function(e,t){return e.width<n.width&&(e.width+=t,e.count+=1),e}),{count:0,width:0})}),[n,r]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:l}},Ax=function(e){var t,n=e.columnIndex,r=e.data,o=e.rowIndex,i=null===(t=r.rowsInPage[o])||void 0===t?void 0:t["col-".concat(n)];return"".concat(null==i?void 0:i.qElemNumber,"-").concat(null==i?void 0:i.qText,"-").concat(o,"-").concat(n)},Dx={overflow:"hidden",willChange:"auto"},Px=q((function(e,t){var n,r,o,i=e.rect,a=e.columns,l=e.innerForwardRef,s=e.pageInfo,u=e.bodyStyle,c=e.rowHeight,d=e.headerAndTotalsHeight,p=e.syncHeight,f=Yg(Wg,(function(e){return e.baseProps})),m=f.layout,h=f.model,g=f.theme,b=f.viewService,v=Yg(Wg,(function(e){return e.columnWidths})),y=Yg(Wg,(function(e){return e.initialDataPages})),S=null===(n=b.viewState)||void 0===n?void 0:n.maxLineCount,w=A(null),R=A({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),D=!!(null===(o=null===(r=Og(m))||void 0===r?void 0:r.content)||void 0===o?void 0:o.hoverEffect),P=function(){var e=A(0),t=A(0),n=A(dx.None),r=A(dx.None);return{scrollHandler:L((function(o){var i=o.scrollTop,a=o.scrollLeft;i>t.current?n.current=dx.Down:i<t.current?n.current=dx.Up:n.current=dx.None,a>e.current?r.current=dx.Right:a<e.current?r.current=dx.Left:r.current=dx.None,t.current=i,e.current=a}),[t,e,n,r]),verticalScrollDirection:n,horizontalScrollDirection:r}}(),I=P.scrollHandler,T=P.verticalScrollDirection,M=P.horizontalScrollDirection,q=Rx(m,s,i,v,c),k=q.rowCount,N=q.visibleRowCount,F=q.visibleColumnCount,z=Sx({pageInfo:s,style:u,rowHeight:c,columnWidths:v,gridRef:w,rowCount:k,gridState:R,isSnapshot:!!m.snapshotData,viewService:b,maxNbrLines:S}),H=z.setCellSize,j=z.getRowHeight,B=z.rowMeta,$=z.estimatedRowHeight,W=z.maxLineCount,U=z.resizeVisibleCells,G=xx({layout:m,model:h,theme:g,initialDataPages:y,pageInfo:s,rowCount:k,visibleRowCount:N,visibleColumnCount:F,columns:a,setCellSize:H,gridState:R}),Y=G.rowsInPage,K=function(e){var t=e.layout,n=e.loadRows,r=e.loadColumns,o=e.verticalScrollDirection,i=e.horizontalScrollDirection,a=e.rowCount,l=e.pageInfo,s=e.gridState,u=e.viewService,c=L((function(e){var c=e.overscanColumnStartIndex,d=e.overscanColumnStopIndex,p=e.overscanRowStartIndex,f=e.overscanRowStopIndex,m=e.visibleColumnStartIndex,h=e.visibleColumnStopIndex,g=e.visibleRowStartIndex,b=e.visibleRowStopIndex;if(s.current.overscanColumnStartIndex=c,s.current.overscanColumnStopIndex=d,s.current.overscanRowStartIndex=p,s.current.overscanRowStopIndex=f,!(p>a)){var v=c,y=p+l.page*l.rowsPerPage,x=d-c+1,S=f-p+1;if(u.visibleLeft=m,u.visibleWidth=h-m+1,u.visibleTop=g+l.page*l.rowsPerPage,u.visibleHeight=b-g+1,u.page=l.page,u.rowsPerPage=l.rowsPerPage,o.current===dx.Down)n(v,y,x,p+(E=S+25)>a?a-p:E);else if(o.current===dx.Up){var E=S+25,C=l.page*l.rowsPerPage,w=Math.max(C,y-25);n(v,w,x,E)}if(i.current===dx.Right){var R=t.qHyperCube.qSize.qcx-v,A=x+5,D=Math.min(R,A);r(v,y,D,S)}else if(i.current===dx.Left){var P=Math.max(0,v-5);A=Math.min(t.qHyperCube.qSize.qcx,x+5),r(P,y,A,S)}}}),[s,a,l.page,l.rowsPerPage,u,o,i,n,t.qHyperCube.qSize.qcx,r]);return c}({layout:m,loadRows:G.loadRows,loadColumns:G.loadColumns,verticalScrollDirection:T,horizontalScrollDirection:M,rowCount:k,pageInfo:s,gridState:R,viewService:b}),Z=E((function(){return{rowsInPage:Y,columns:a,bodyStyle:u,isHoverEnabled:D,maxLineCount:W}}),[Y,a,u,D,W]),X=function(e,t,n,r){var o=e.height;return n*r<(o-=t)&&(o=Math.min(n*r,o)),o}(i,d,k,$);return O((function(){var e,t;p(null!==(t=null===(e=l.current)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0,!0)}),[k,p,l]),O((function(){var e,t,n;p(null!==(t=null===(e=l.current)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0,!1),1===B.current.lastScrollToRatio&&(null===(n=w.current)||void 0===n||n.scrollToItem({rowIndex:k-1,align:"start"}))})),function(e){var t=Yg(Wg,(function(e){return e.baseProps})).selectionsAPI,n=Yg(Wg,(function(e){return e.selectionDispatch}));C((function(){n({type:fu.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[n,e]),zv({selectionsAPI:t,selectionDispatch:n,setShouldRefocus:Cx,keyboard:Ex,tableWrapperRef:wx})}(Y),V((function(){var e;null===(e=w.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[m,s,g.name(),i.width,v]),_(t,(function(){return{interpolatedScrollTo:function(e,t){var n,r,o,i,a,s=(null!==(r=null===(n=l.current)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:X)-X,u=Math.round(s*e);B.current.lastScrollToRatio=e,1===B.current.lastScrollToRatio?(null===(o=w.current)||void 0===o||o.scrollToItem({rowIndex:k-1,align:"start"}),null===(i=w.current)||void 0===i||i.scrollTo({scrollLeft:t})):null===(a=w.current)||void 0===a||a.scrollTo({scrollTop:u,scrollLeft:t})},resizeCells:function(){var e;null===(e=w.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),U(Y)}}}),[l,X,B,k,U,Y]),x.createElement(Yy,{"data-key":"body",ref:w,innerRef:l,style:Dx,columnCount:m.qHyperCube.qSize.qcx,columnWidth:function(e){return v[e]},height:X,rowCount:k,rowHeight:j,estimatedRowHeight:$,width:i.width,itemData:Z,onItemsRendered:K,onScroll:I,itemKey:Ax,className:"sn-table-body"},fx)})),Ix=k(Px),Tx=function(e){var t=e.width,n=e.height,r=e.children;return x.createElement("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:n}},r)},Mx=tu("div",{shouldForwardProp:function(e){return"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"isNewHeadCellMenuEnabled"!==e}})((function(e){var t=e.isNewHeadCellMenuEnabled,n=e.interactions,r=e.hoverBackground,o=e.background,i=e.applicableStyle;return H(H(H({},i),t&&{background:o}),{"&&:hover":H({},t&&{background:n.active?r:o})})})),Lx=function(e){var t=e.index,n=e.style,r=e.data,o=S(!1),i=o[0],a=o[1],l=r.columns,s=j(r.headerStyle,[]),u=r.columResizeHandler,c=Yg(Wg,(function(e){return e.baseProps})),d=c.interactions,p=c.styling.head,f=p.activeBackground,m=p.background,h=p.hoverBackground,g=Yg(Wg,(function(e){var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),b=Yg(Wg,(function(e){return e.showRightBorder})),v=Yg(Wg,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled})),y=l[t],E=l.length-1===t,C=!!d.active&&!g,w="right"===y.headTextAlign?"row-reverse":"row";return x.createElement(Mx,{className:"sn-table-cell",title:d.passive?y.label:void 0,onClick:function(){return a(!0)},applicableStyle:s,style:H(H(H({},n),v?{cursor:"pointer"}:{cursor:"default"}),{display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:E&&!b?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:y.headTextAlign,boxSizing:"border-box",zIndex:l.length-t,flexDirection:w,userSelect:"none"}),interactions:d,hoverBackground:h,background:i?f:m,isNewHeadCellMenuEnabled:v},x.createElement(Ey,{column:y,isInteractionEnabled:C,open:i,setOpen:a},x.createElement(Fv,{wordBreak:!0,lines:3},y.label)),x.createElement(Xv,{column:y,isLastColumn:E,onColumnResize:u}))},qx=function(e,t,n,r,o){O((function(){var t;null===(t=null==e?void 0:e.current)||void 0===t||t.resetAfterIndex(0,!0)}),[t,n,e,r,o])},kx={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},Ox=function(e){var t=e.rect,n=e.forwardRef,r=e.columns,o=e.pageInfo,i=e.headerStyle,a=e.rowHeight,l=e.columResizeHandler,s=Yg(Wg,(function(e){return e.baseProps})),u=s.layout,c=s.theme,d=Yg(Wg,(function(e){return e.columnWidths}));return qx(n,u,o,d,c.name()),x.createElement(nx,{ref:n,layout:"horizontal",style:kx,itemCount:u.qHyperCube.qSize.qcx,itemSize:function(e){return d[e]},height:a,width:t.width,itemData:{columns:r,headerStyle:i,columResizeHandler:l}},Lx)},Nx=k(Ox),_x=x.forwardRef((function(e,t){var n=e.children,r=e.width,o=e.height,i=e.onScroll,a=Yg(Wg,(function(e){return e.baseProps})).interactions;return x.createElement("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:r,height:o},onScroll:i},n)})),Fx=function(e){var t=e.children,n=e.rect;return x.createElement("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:n.width,height:n.height}},t)},zx=function(e){var t=e.index,n=e.style,r=e.data,o=Yg(Wg,(function(e){return e.baseProps})),i=o.layout,a=o.interactions,l=Yg(Wg,(function(e){return e.showRightBorder})),s=r.totalsStyle;s.hoverColors;var u=j(s,["hoverColors"]),c=r.columns,d=r.totals,p=c[t].totalInfo,f=c[t].totalsTextAlign,m=i.qHyperCube.qSize.qcx-1===t;return x.createElement("div",{className:"sn-table-cell",title:a.passive?p:void 0,style:H(H(H({},n),u),{display:"flex",alignItems:d.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:m&&!l?"0px":"1px",borderTopWidth:d.atBottom?"1px":"0px",borderBottomWidth:d.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,boxSizing:"border-box",cursor:"default",fontWeight:"600"})},x.createElement(Fv,{wordBreak:!Nn(p),lines:3},p))},Hx=function(e){var t=e.rect,n=e.forwardRef,r=e.pageInfo,o=e.totals,i=e.rowHeight,a=e.columns,l=Yg(Wg,(function(e){return e.baseProps})),s=l.layout,u=l.styling,c=l.theme,d=Yg(Wg,(function(e){return e.columnWidths}));return qx(n,s,r,d,c.name()),x.createElement(nx,{ref:n,layout:"horizontal",style:kx,itemCount:s.qHyperCube.qSize.qcx,itemSize:function(e){return d[e]},height:i,width:t.width,itemData:{totalsStyle:u.totals,columns:a,totals:o}},zx)},jx=k(Hx),Bx=function(e){var t=e.columns,n=e.columnWidths,r=e.pageInfo,o=e.headerRef,i=e.totalsRef,a=e.totalsPosition,l=e.isSnapshot,s=e.viewService,u=Yg(Wg,(function(e){return e.baseProps})).styling,c=Sx({style:u.head,columnWidths:n,lineRef:o,rowCount:1,pageInfo:r,boldText:!0,columns:t,isSnapshot:l,viewService:s}),d=Sx({style:u.totals,columnWidths:n,lineRef:i,rowCount:1,pageInfo:r,boldText:!0,isSnapshot:l,viewService:s});t.forEach((function(e,t){c.setCellSize(e.label,0,t),d.setCellSize(e.totalInfo,0,t,Nn(e.totalInfo))}));var p=c.getRowHeight(0)+8,f=d.getRowHeight(0),m=l?s.estimatedRowHeight:function(e){var t=e.fontSize,n=void 0===t?Ih.fontSize:t;return Math.max(24,Mg(n))}(u.body);return{headerRowHeight:p,totalsRowHeight:f,bodyRowHeight:m,headerAndTotalsHeight:a.atTop||a.atBottom?p+f:p,resizeAllHeaderCells:c.resizeAllCells,resizeAllTotalCells:d.resizeAllCells}},$x=function(e){var t,n=e.pageInfo,r=Yg(Wg,(function(e){return e.tableData})),o=r.totalsPosition,i=r.columns,a=r.paginationNeeded,l=Yg(Wg,(function(e){return e.baseProps})),s=l.layout,u=l.theme,c=l.styling,d=l.rect,p=l.viewService,f=Yg(Wg,(function(e){return e.columnWidths})),m=Yg(Wg,(function(e){return e.setYScrollbarWidth})),h=A(null),g=A(null),b=A(null),v=A(null),y=A(),C=qv(h),w=C.xScrollbarWidth,R=C.yScrollbarWidth,D=E((function(){var e;return H(H({},c.body),{background:null!==(e=u.background.color)&&void 0!==e?e:"transparent"})}),[u.background.color,c]),P=Bx({columns:i,columnWidths:f,pageInfo:n,totalsPosition:o,headerRef:g,totalsRef:b,isSnapshot:!!s.snapshotData,viewService:p}),I=P.headerRowHeight,T=P.totalsRowHeight,M=P.bodyRowHeight,q=P.headerAndTotalsHeight,k=P.resizeAllHeaderCells,N=P.resizeAllTotalCells,_=E((function(){return function(e,t){var n=e.height-(t?41:0);return{width:e.width,height:n}}(d,a)}),[d,a]),F=E((function(){return function(e,t,n){return{width:e.width-n,height:e.height-t}}(_,w,R)}),[_,w,R]),z=Rx(s,n,F,f,M).rowCount,j=S(z*M+q),B=j[0],$=j[1],W=f.reduce((function(e,t){return e+t}),0),V=function(e,t,n,r){return L((function(o){var i,a,l,s=o.currentTarget,u=s.scrollHeight,c=s.clientHeight,d=s.scrollTop,p=s.scrollLeft,f=Math.max(0,Math.min(1,d/(u-c)));r.scrollTopRatio=f,r.scrollLeft=p,null===(i=n.current)||void 0===i||i.interpolatedScrollTo(Number.isNaN(f)?0:f,p),null===(a=e.current)||void 0===a||a.scrollTo(p),null===(l=t.current)||void 0===l||l.scrollTo(p)}),[r,n,e,t])}(g,b,v,p),U=L((function(e,t){void 0===t&&(t=!1);var n=e+q;(B<F.height&&n>F.height||t)&&$(n)}),[B,q,F.height]),G=L((function(){var e;h.current&&(h.current.scrollTop=0),null===(e=v.current)||void 0===e||e.resizeCells(),k(),N()}),[h,k,N]);O((function(){h.current&&(h.current.scrollLeft=0,h.current.scrollTop=0)}),[i.length]);var Y=u.name();O((function(){h.current&&(h.current.scrollTop=0)}),[n,z,Y]),Iv((function(){m(R)}),[R]);var K=x.createElement(jx,{rect:F,pageInfo:n,columns:i,forwardRef:b,totals:o,rowHeight:T});return x.createElement(_x,{ref:h,width:_.width,height:_.height,onScroll:V},x.createElement(Tx,{width:W,height:B},x.createElement(Fx,{rect:F},(null===(t=p.viewState)||void 0===t?void 0:t.skipHeader)?null:x.createElement(Nx,{headerStyle:c.head,rect:F,pageInfo:n,columns:i,forwardRef:g,rowHeight:I,columResizeHandler:G}),o.atTop?K:null,x.createElement(Ix,{ref:v,innerForwardRef:y,bodyStyle:D,rect:F,pageInfo:n,columns:i,rowHeight:M,headerAndTotalsHeight:q,syncHeight:U}),o.atBottom?K:null)))},Wx=k($x),Vx=function(){var e=Yg(Wg,(function(e){return e.baseProps})),t=e.theme,n=e.keyboard,r=e.translator,o=e.interactions,i=e.rect,a=e.layout,l=Yg(Wg,(function(e){return e.tableData})),s=l.paginationNeeded,u=l.totalRowCount,c=l.totalColumnCount,d=l.totalPages,p=Yg(Wg,(function(e){return e.pageInfo})),f=Yg(Wg,(function(e){return e.setPage}));return x.createElement(Av,{"data-testid":"sn-table",background:t.background,dir:"ltr"},x.createElement(Wx,{pageInfo:p}),x.createElement(Ev,{paginationNeeded:s,handleChangePage:function(e){return f(e)},pageInfo:p,totalRowCount:u,totalColumnCount:c,totalPages:d,keyboard:n,translator:r,theme:t,interactions:o,rect:i,layout:a}))},Ux=k(Vx);var Gx,Yx={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбцов","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um in den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerungen zu wechseln. Alle Angaben zur Tastaturnavigation finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate in table cells and tab to move to pagination controls. For the full range of keyboard navigation, see the documentation.","es-ES":"Use las teclas de flecha para navegar en las celdas de la tabla y la pestaña para moverse a los controles de paginación. Para conocer la gama completa de navegación con teclado, consulte la documentación.","fr-FR":"Utilisez les touches fléchées pour parcourir les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Pour connaître la gamme complète des commandes de navigation au clavier, voir la documentation.","it-IT":"Utilizzare i tasti freccia per navigare nelle celle della tabella e il tasto TAB per passare ai controlli di paginazione. Per informazioni complete sulla navigazione da tastiera, vedere la documentazione.","ja-JP":"矢印キーで表のセル内を移動し、タブ キーでページネーション コントロールに移動します。キーボード ナビゲーションの全範囲については、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 테이블 셀을 탐색하고 탭을 사용하여 페이지 매김 컨트롤로 이동합니다. 전체 키보드 탐색 범위는 설명서를 참조하십시오.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren in tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Raadpleeg de documentatie voor een volledig overzicht van de toetsenbordnavigatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się po komórkach tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Pełne informacje o nawigacji przy użyciu klawiatury zawiera dokumentacja.","pt-BR":"Use as setas para navegar nas células da tabela e Tab para mover para os controles de paginação. Para toda a gama de navegação do teclado, consulte a documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения по ячейкам таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Полный перечень возможностей навигации с помощью клавиатуры см. в документации.","sv-SE":"Använd piltangenterna för att navigera i tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Se dokumentationen för komplett information om tangentbordsnavigering.","tr-TR":"Tablo hücrelerinde gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Tam kapsamlı klavye gezintisi için belgelere bakın.","zh-CN":"使用箭头键在表格单元格中导航,使用 tab 键移动到分页控件。有关键盘导航的完整范围,请参阅文档。","zh-TW":"使用方向鍵以在表格儲存格中導覽,並使用 Tab 以前往分頁控制。如需完整的鍵盤導覽,請參閱文件。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Selecties wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{1}의 {0}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},SNTable_Pagination_FirstPage:{id:"SNTable.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};!function(e){e.FIRST="first-announcer-element",e.SECOND="second-announcer-element"}(Gx||(Gx={}));var Kx=function(e,n){return t((function(){return function(e){if(e&&e.get&&e.add){var t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(Yx).forEach((function(t){e.add(Yx[t])}))}}(n),function(){return function(e,t,n){var r=n||null;return function(n){var o,i=n.keys,a=n.shouldBeAtomic,l=void 0===a||a,s=n.politeness,u=void 0===s?"polite":s,c=i.map((function(e){if(Array.isArray(e)){var n=e[0],r=e.slice(1);return t.get(n,r)}return t.get(e)})).join(" "),d=e.querySelector(".sn-table-announcer-1"),p=e.querySelector(".sn-table-announcer-2");r===Gx.FIRST?(o=p,r=Gx.SECOND):(o=d,r=Gx.FIRST),o.innerHTML=o.innerHTML.endsWith(" ­")?c:"".concat(c," ­"),o.setAttribute("aria-atomic",l.toString()),o.setAttribute("aria-live",u)}}(e,n)}}),[e,n.language()])},Zx={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},Xx=function(e){var t=e.isNewHeadCellMenuEnabled,n=e.app,l=e.model,s=e.rootElement,u=e.layout,c=e.interactions,d=e.translator,p=e.selectionsAPI,f=e.theme,m=e.changeSortOrder,h=e.keyboard,g=e.rect,b=e.embed,v=e.reactRoot,y=e.applyColumnWidths,S=e.isFontLoaded,E=e.viewService,C=r(),w=C.direction,R=C.footerContainer,A=Vn(u,E),D=Un(u,E),P=Kx(s,d),I=A?{page:E.page||Zx.page,rowsPerPage:E.rowsPerPage||Zx.rowsPerPage,rowsPerPageOptions:Zx.rowsPerPageOptions}:Zx,T=o(I),M=T[0],L=T[1],q=i((function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){return D?[2,Wn(l,u,M,L,E)]:[2,null]}))}))}),[u,M,l,c,D])[0];a((function(){!!(D&&v&&l&&(u.snapshotData||n)&&u&&q&&m&&f&&p&&S&&b)&&function(e,t){var n=e.app,r=e.model,o=e.direction,i=e.selectionsAPI,a=e.layout,l=e.translator,s=e.interactions,u=e.theme,c=e.keyboard,d=e.rootElement,p=e.embed,f=e.changeSortOrder,m=e.applyColumnWidths,h=e.tableData,g=e.rect,b=e.viewService,v=j(e,["app","model","direction","selectionsAPI","layout","translator","interactions","theme","keyboard","rootElement","embed","changeSortOrder","applyColumnWidths","tableData","rect","viewService"]),y=Kg(o);null==t||t.render(x.createElement(Zi,{stylisPlugins:"rtl"===o?[bu]:void 0},x.createElement(ru,{theme:y},x.createElement(Gg,{app:n,model:r,tableData:h,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:g,viewService:b,isNewHeadCellMenuEnabled:v.isNewHeadCellMenuEnabled},x.createElement(Dy,H({},v,{direction:o}))))))}({app:n,model:l,rootElement:s,layout:u,tableData:q,direction:w,pageInfo:M,setPageInfo:L,interactions:c,translator:d,selectionsAPI:p,theme:f,changeSortOrder:m,keyboard:h,rect:g,footerContainer:R,announce:P,embed:b,applyColumnWidths:y,viewService:E,isNewHeadCellMenuEnabled:t},v)}),[n,l,v,q,c,w,f.name(),h.active,P,m,y,D,u,p,b,s,M,L,d,g,R,S,t])},Jx=function(e,n,r){return t((function(){return function(e,t,n){if(t)return function(r,o){return B(void 0,void 0,void 0,(function(){var i,a,l,s,u,c,d,p,f,m;return $(this,(function(h){switch(h.label){case 0:return i=r.isDim,a=r.colIdx,l=r.qReverseSort,s=r.sortDirection,u=r.isActivelySorted,c=i?a:a-e,[4,t.getEffectiveProperties()];case 1:return d=h.sent(),p=d.qHyperCubeDef.qInterColumnSortOrder,f=[],m=o&&o!==s||!o&&u,u||(p.splice(p.indexOf(a),1),p.unshift(a),f.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:"[".concat(p.join(","),"]")})),(n&&m||!n&&u)&&f.push({qPath:"/qHyperCubeDef/".concat(i?"qDimensions":"qMeasures","/").concat(c,"/qDef/qReverseSort"),qOp:"Replace",qValue:(!l).toString()}),t.applyPatches(f,!0),[2]}}))}))}}(e.qDimensionInfo.length,n,r)}),[e.qDimensionInfo.length,n,r])};var Qx=function(e,t,n){return B(void 0,void 0,void 0,(function(){var r,o;return $(this,(function(i){switch(i.label){case 0:return r=t.qHyperCube.qDataPages,0===n&&void 0!==r&&0!==r.length?[3,2]:(o=n*Math.min(Th,t.qHyperCube.qSize.qcy),[4,e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:o,qWidth:50,qHeight:100}])]);case 1:r=i.sent(),i.label=2;case 2:return[2,{initialDataPages:r,derivedFrom:{layout:t,page:n}}]}}))}))},eS=function(e){var n=e.app,r=e.layout,l=e.model,s=e.rect,u=e.theme,c=e.keyboard,d=e.translator,p=e.interactions,f=e.selectionsAPI,m=e.changeSortOrder,h=e.rootElement,g=e.embed,b=e.reactRoot,v=e.applyColumnWidths,y=e.isFontLoaded,S=e.viewService,E=e.isNewHeadCellMenuEnabled,C=!Un(r,S),w=t((function(){return function(e,t,n){var r=Hn(e,n),o=$n(e),i=e.qHyperCube.qSize.qcy,a=Math.min(Th,i),l=i>Th&&!!t.active;return{totalsPosition:r,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:l}}(r,p,S)}),[r,p,S]),R=function(e,n){var r=o(0),i=r[0],a=r[1],l=Math.min(Th,e.qHyperCube.qSize.qcy),s=t((function(){return{page:i,rowsPerPage:l,rowsPerPageOptions:[]}}),[l,i]);if(n){var u=Math.floor(e.qHyperCube.qSize.qcy/Th);u<i&&a(u)}return{pageInfo:s,setPage:a}}(r,C),A=R.pageInfo,D=R.setPage,P=function(e){var t=e.model,n=e.layout,r=e.shouldRender,o=e.page,a=i((function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){return r&&t?[2,Qx(t,n,o)]:[2,void 0]}))}))}),[t,n,o])[0],l=(null==a?void 0:a.derivedFrom.layout)!==n||(null==a?void 0:a.derivedFrom.page)!==o;return{initialDataPages:null==a?void 0:a.initialDataPages,isLoading:l}}({model:l,layout:r,page:A.page,shouldRender:C}),I=P.initialDataPages,T=P.isLoading;a((function(){C&&l&&m&&I&&!T&&y&&function(e,t){var n=e.app,r=e.selectionsAPI,o=e.layout,i=e.model,a=e.translator,l=e.interactions,s=e.theme,u=e.keyboard,c=e.rect,d=e.rootElement,p=e.embed,f=e.changeSortOrder,m=e.tableData,h=e.applyColumnWidths,g=e.setPage,b=e.pageInfo,v=e.initialDataPages,y=e.viewService,S=e.isNewHeadCellMenuEnabled,E=Kg("ltr");t.render(x.createElement(x.StrictMode,null,x.createElement(ru,{theme:E},x.createElement(Gg,{app:n,selectionsAPI:r,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,rect:c,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,isNewHeadCellMenuEnabled:S},x.createElement(Ux,null)))))}({app:n,layout:r,model:l,rect:s,theme:u,keyboard:c,translator:d,interactions:p,selectionsAPI:f,rootElement:h,embed:g,changeSortOrder:m,tableData:w,applyColumnWidths:v,setPage:D,pageInfo:A,initialDataPages:I,viewService:S,isNewHeadCellMenuEnabled:E},b)}),[n,r,l,s,u.name(),c.active,d,p,f,m,C,h,g,b,w,v,D,A,T,I,y,E])};var tS={properties:{initial:{version:JSON.stringify("2.9.1"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]}},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:Mn,exportProperties:In};function nS(e,t){var n=e.getElementsByClassName("sn-table-container")[0];if(!n)return{};var r=(null==n?void 0:n.getBoundingClientRect())||{},o=e.getElementsByClassName("sn-table-head-row")[0],i=(null==o?void 0:o.getBoundingClientRect())||{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],l=(null==a?void 0:a.getBoundingClientRect())||{height:0},s=e.getElementsByClassName("sn-table-data-row"),u={top:r.y+i.height+(t.atTop?l.height:0),bottom:r.y+r.height-(t.atBottom?l.height:0)},c=function(e,t){if(!e)return-1;for(var n=0;n<e.length;n++)if(e[n].getBoundingClientRect().bottom>t.top)return n;return-1}(s,u),d=function(e,t){if(!e)return-1;for(var n=e.length-1;n>-1;n--){var r=e[n].getBoundingClientRect();if(t.bottom>r.top)return n}return-1}(s,u),p=function(e,t,n){if(!e||0===e.length||n<0)return 0;var r=e[n].getBoundingClientRect();return Math.max(t.top-r.top,0)}(s,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}var rS=function(e,t){if(t)for(var n=0;n<t.length;n++){var r=t[n].getAttribute("rowindex");if(r&&parseInt(r,10)===e)return t[n]}},oS=function(e,t,n){if(!e)return!1;var r=e.y+e.height/2;return r>=t&&r<=n};var iS=function(e,t,n,r){var o;if(e<0)return 0;var i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||Zx.rowsPerPage,l=(null===(o=r.viewState)||void 0===o?void 0:o.isMultiPage)?0:3;return Math.min(i,a,e-t+1+l)},aS=function(e,t,n){if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;var r=Hn(e,t);if(Un(e,t)){var o=nS(n,r),i=o.visibleRowStartIndex,a=void 0===i?-1:i,l=o.visibleRowEndIndex,s=void 0===l?-1:l;return{rowPartialHeight:o.rowPartialHeight,scrollLeft:t.scrollLeft,visibleTop:t.qTop+a,visibleHeight:iS(s,a,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}}var u=function(e,t){var n=e.querySelector(".sn-table-body"),r=null==n?void 0:n.getBoundingClientRect(),o=null==n?void 0:n.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!r)return{};var i=t.scrollTopRatio,a=void 0===i?0:i,l=t.visibleTop,s=void 0===l?0:l,u=t.visibleHeight,c=void 0===u?0:u,d=t.page,p=void 0===d?0:d,f=t.rowsPerPage,m=p*(void 0===f?0:f),h=s-m,g=h+c-1,b=rS(h,o),v=null==b?void 0:b.getBoundingClientRect();if(!b||!v)return{};var y=r.y;if(1-a<.001)return{visibleRowStartIndex:h+(v.y>=y-4?0:1)+m,visibleRowEndIndex:g+m};var x=r.y+r.height,S=(oS(v,y,x)?h:h+1)+m,E=g+m,C=rS(g,o),w=null==C?void 0:C.getBoundingClientRect();return C&&w&&(oS(w,y,x)||(E=g-1+m)),{visibleRowStartIndex:S,visibleRowEndIndex:E}}(n,t),c=u.visibleRowStartIndex,d=void 0===c?-1:c,p=u.visibleRowEndIndex,f=void 0===p?-1:p;return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:d,visibleHeight:iS(f,d,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}},lS=function(e){return e.getStyle("","","object.straightTableV2.backgroundColor")},sS=function(e){return e.getStyle("object","straightTableV2","backgroundColor")};function uS(o){return{qae:tS,ext:qn(o),component:function(){var y,x=u(),S=function(e){var n=t((function(){return K(e)}),[e]);return a((function(){return function(){return n.unmount()}}),[n]),n}(x),E=c(),C=d(),w=p(),R=f(),A=m(),D=h(),P=g(),I=r().freeResize,T=b(),M=(null===(y=null==E?void 0:E.snapshotData)||void 0===y?void 0:y.content)&&!I?H(H({},T),E.snapshotData.content.size):T,L=function(e){var n=r().viewState;return t((function(){return function(e,t){var n,r,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(r=null===(n=null==t?void 0:t.content)||void 0===n?void 0:n.rowPartialHeight)&&void 0!==r?r:0,visibleTop:null!==(i=null===(o=null==t?void 0:t.content)||void 0===o?void 0:o.visibleTop)&&void 0!==i?i:null==e?void 0:e.visibleTop,visibleHeight:null!==(l=null===(a=null==t?void 0:t.content)||void 0===a?void 0:a.visibleHeight)&&void 0!==l?l:null==e?void 0:e.visibleHeight,scrollLeft:null!==(c=null!==(u=null===(s=null==t?void 0:t.content)||void 0===s?void 0:s.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==c?c:0,scrollTopRatio:null!==(p=null===(d=null==t?void 0:t.content)||void 0===d?void 0:d.scrollTopRatio)&&void 0!==p?p:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(m=null===(f=null==t?void 0:t.content)||void 0===f?void 0:f.rowsPerPage)&&void 0!==m?m:null==e?void 0:e.rowsPerPage,page:null!==(g=null===(h=null==t?void 0:t.content)||void 0===h?void 0:h.page)&&void 0!==g?g:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(v=null===(b=null==t?void 0:t.content)||void 0===b?void 0:b.estimatedRowHeight)&&void 0!==v?v:0}}(n,e.snapshotData)}),[n,e.snapshotData,e.usePagination])}(E),q=v(),k=((n,r,o)=>{const i=e();return t((()=>({...i,background:qe(i,n,r,o)})),[i.name(),n,r,o])})(x,lS,sS),O=o.flags.isEnabled("HEAD_CELL_MENU_TEST_FLAG"),N=Jx(E.qHyperCube,w,O),_=On(E.qHyperCube,w),F=function(e,t){var n=_g(t,e,!1),r=n.fontSize,o=n.fontFamily,a=Fg(t,e),l=a.fontSize,s=a.fontFamily,u=i((function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){switch(e.label){case 0:return[4,document.fonts.load("600 ".concat(r," ").concat(o))];case 1:return e.sent(),[4,document.fonts.load("".concat(l," ").concat(s))];case 2:return e.sent(),[2,!0]}}))}))}),[r,o,l,s]),c=u[0],d=u[1];return d?(console.warn("Failed to load font:",d),!0):!!c}(k,E);!function(){var e=this;null==n||n((function(t,n){n.target&&n.target.closest(".sn-table-cell")&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:function(){return B(e,void 0,void 0,(function(){return $(this,(function(e){return kn(n),[2]}))}))}})}))}(),o.flags.isEnabled("PS_20907_TABLE_DOWNLOAD")&&function(e){var t=e.layout,n=e.viewService,r=e.model,o=e.rootElement,i=e.contentRect;l((function(e){return B(void 0,void 0,void 0,(function(){var a,l,s,u,c,d,p,f,m,h,g;return $(this,(function(b){switch(b.label){case 0:return e.snapshotData&&r&&!e.snapshotData.content?r.getHyperCubeData?(e.qHyperCube||(e.qHyperCube={}),a=aS(t,n,o),l=a.rowPartialHeight,s=a.scrollLeft,u=a.scrollTopRatio,c=a.visibleLeft,d=a.visibleWidth,p=a.visibleTop,f=a.visibleHeight,m=a.rowsPerPage,h=a.page,g=e.qHyperCube,[4,r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=p?p:0,qWidth:t.qHyperCube.qSize.qcx,qHeight:null!=f?f:0}])]):[3,2]:[2,e];case 1:g.qDataPages=b.sent(),e.snapshotData.content={rowPartialHeight:l,scrollLeft:s,scrollTopRatio:u,visibleLeft:c,visibleWidth:d,visibleTop:p,visibleHeight:f,rowsPerPage:m,page:h,size:{width:i.width,height:i.height},estimatedRowHeight:n.estimatedRowHeight},b.label=2;case 2:return[2,e]}}))}))})),s((function(){return{getViewState:function(){return aS(t,n,o)}}}),[t,n,o])}({layout:E,viewService:L,model:w,rootElement:x,contentRect:T}),eS({isNewHeadCellMenuEnabled:O,app:C,layout:E,model:w,rect:M,theme:k,keyboard:P,translator:A,interactions:R,selectionsAPI:D,changeSortOrder:N,rootElement:x,embed:q,reactRoot:S,applyColumnWidths:_,isFontLoaded:F,viewService:L}),Xx({isNewHeadCellMenuEnabled:O,app:C,model:w,rootElement:x,layout:E,interactions:R,translator:A,selectionsAPI:D,theme:k,changeSortOrder:N,keyboard:P,rect:M,embed:q,reactRoot:S,applyColumnWidths:_,isFontLoaded:F,viewService:L})}}}export{uS as default};
193
+ `),tS.rippleVisible,sS,550,(({theme:e})=>e.transitions.easing.easeInOut),tS.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),tS.child,tS.childLeaving,uS,550,(({theme:e})=>e.transitions.easing.easeInOut),tS.childPulsate,cS,(({theme:e})=>e.transitions.easing.easeInOut));var fS=y.forwardRef((function(e,t){const n=Tx({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Hi(n,nS),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=y.useRef(0),f=y.useRef(null),m=y.useRef(null);y.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=y.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Ni.jsx(pS,{classes:{ripple:dc(o.ripple,tS.ripple),rippleVisible:dc(o.rippleVisible,tS.rippleVisible),ripplePulsate:dc(o.ripplePulsate,tS.ripplePulsate),child:dc(o.child,tS.child),childLeaving:dc(o.childLeaving,tS.childLeaving),childPulsate:dc(o.childPulsate,tS.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Ni.jsx(dS,$i({className:dc(tS.root,o.root,i),ref:m},a,{children:Ni.jsx(om,{component:null,exit:!0,children:l})}))}));function mS(e){return ux("MuiButtonBase",e)}var hS=cx("MuiButtonBase",["root","disabled","focusVisible"]);const gS=["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"],bS=Nx("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"},[`&.${hS.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),vS=y.forwardRef((function(e,t){const n=Tx({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:P,tabIndex:I=0,TouchRippleProps:L,touchRippleRef:D,type:M}=n,O=Hi(n,gS),T=y.useRef(null),k=y.useRef(null),_=Yy(k,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=ox(),[z,$]=y.useState(!1);s&&z&&$(!1),y.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),T.current.focus()}})),[]);const[H,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const W=H&&!u&&!s;function G(e,t,n=c){return Uy((r=>{t&&t(r);return!n&&k.current&&k.current[e](r),!0}))}y.useEffect((()=>{z&&d&&!u&&H&&k.current.pulsate()}),[u,d,z,H]);const V=G("start",E),U=G("stop",h),Y=G("stop",g),K=G("stop",w),X=G("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=G("start",P),Z=G("stop",R),Q=G("stop",A),ee=G("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=Uy((e=>{T.current||(T.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=T.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=y.useRef(!1),oe=Uy((e=>{d&&!re.current&&z&&k.current&&" "===e.key&&(re.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=Uy((e=>{d&&" "===e.key&&k.current&&z&&!e.defaultPrevented&&(re.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(O.href||O.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===M?"button":M,le.disabled=s):(O.href||O.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Yy(t,j,T),ue=$i({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=md({root:["root",t&&"disabled",n&&"focusVisible"]},mS,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Ni.jsxs(bS,$i({as:ae,className:dc(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:I,type:M},le,O,{children:[i,W?Ni.jsx(fS,$i({ref:_,center:o},L)):null]}))}));var yS=vS;function xS(e){return ux("MuiTypography",e)}cx("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const SS=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ES=Nx("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${jy(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>$i({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}))),CS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},wS={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},RS=y.forwardRef((function(e,t){const n=Tx({props:e,name:"MuiTypography"}),r=(e=>wS[e]||e)(n.color),o=yy($i({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=CS}=o,f=Hi(o,SS),m=$i({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||CS[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return md({root:["root",i,"inherit"!==e.align&&`align${jy(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},xS,a)})(m);return Ni.jsx(ES,$i({as:h,ref:t,ownerState:m,className:dc(g.root,a)},f))}));var AS=RS;const PS=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function IS(e){const t=[],n=[];return Array.from(e.querySelectorAll(PS)).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 LS(){return!0}function DS(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=IS,isEnabled:a=LS,open:l}=e,s=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),m=y.useRef(null),h=Qc(t.ref,m),g=y.useRef(null);y.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),y.useEffect((()=>{if(!l||!m.current)return;const e=Kc(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),y.useEffect((()=>{if(!l||!m.current)return;const e=Kc(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Ni.jsxs(y.Fragment,{children:[Ni.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Ni.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const MS=y.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=Qc(y.isValidElement(n)?n.ref:null,t);if(Hc((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Hc((()=>{if(i&&!o)return Jc(t,i),()=>{Jc(t,null)}}),[t,i,o]),o){if(y.isValidElement(n)){const e={ref:l};return y.cloneElement(n,e)}return Ni.jsx(y.Fragment,{children:n})}return Ni.jsx(y.Fragment,{children:i?F.createPortal(n,i):i})}));function OS(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function TS(e){return parseInt(Xc(e).getComputedStyle(e).paddingRight,10)||0}function kS(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&OS(e,o)}))}function _S(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function qS(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Kc(e);return t.body===e?Xc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=fd(Kc(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${TS(r)+e}px`;const t=Kc(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${TS(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Kc(r).body;else{const t=r.parentElement,n=Xc(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 NS=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&OS(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);kS(t,e.mount,e.modalRef,r,!0);const o=_S(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=_S(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=qS(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=_S(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&OS(e.modalRef,t),kS(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&OS(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function FS(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=NS,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),m=y.useRef(null),h=Qc(m,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},C=Zc((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Kc(f.current).body;o.add(S(),e),m.current&&E()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=Zc((e=>{f.current=e,e&&(c&&w()?E():m.current&&OS(m.current,x))})),A=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{A()}),[A]),y.useEffect((()=>{c?C():v&&i||A()}),[c,A,v,i,C]);const P=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Jx(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=$i({},n,t);return $i({role:"presentation"},r,{onKeyDown:P(r),ref:h})},getBackdropProps:(e={})=>$i({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Uc((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Uc((()=>{b(!0),l&&l(),i&&A()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const jS=["onChange","maxRows","minRows","style","value"];function zS(e){return parseInt(e,10)||0}const $S={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function HS(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const BS=y.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=Hi(e,jS),{current:s}=y.useRef(null!=a),u=y.useRef(null),c=Qc(t,u),d=y.useRef(null),p=y.useRef(0),[f,m]=y.useState({outerHeightStyle:0}),h=y.useCallback((()=>{const t=u.current,n=Xc(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=zS(n.paddingBottom)+zS(n.paddingTop),s=zS(n.borderBottomWidth)+zS(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},b=y.useCallback((()=>{const e=h();HS(e)||m((t=>g(t,e)))}),[h]);Hc((()=>{const e=()=>{p.current=0,(()=>{const e=h();HS(e)||F.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=Yc(e),n=u.current,r=Xc(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),Hc((()=>{b()})),y.useEffect((()=>{p.current=0}),[a]);return Ni.jsxs(y.Fragment,{children:[Ni.jsx("textarea",$i({value:a,onChange:e=>{p.current=0,s||b(),n&&n(e)},ref:c,rows:o,style:$i({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Ni.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:$i({},$S,i,{paddingTop:0,paddingBottom:0})})]})}));function WS({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var GS=y.createContext(void 0);function VS(){return y.useContext(GS)}function US(e){return Ni.jsx(gy,$i({},e,{defaultTheme:Mx,themeId:lv}))}function YS(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function KS(e,t=!1){return e&&(YS(e.value)&&""!==e.value||t&&YS(e.defaultValue)&&""!==e.defaultValue)}function XS(e){return ux("MuiInputBase",e)}var JS=cx("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const ZS=["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"],QS=(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${jy(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},eE=(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]},tE=Nx("div",{name:"MuiInputBase",slot:"Root",overridesResolver:QS})((({theme:e,ownerState:t})=>$i({},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",[`&.${JS.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$i({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),nE=Nx("input",{name:"MuiInputBase",slot:"Input",overridesResolver:eE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=$i({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 $i({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] + .${JS.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},[`&.${JS.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"})})),rE=Ni.jsx(US,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),oE=y.forwardRef((function(e,t){var n;const r=Tx({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:x,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:A,onFocus:P,onKeyDown:I,onKeyUp:L,placeholder:D,readOnly:M,renderSuffix:O,rows:T,slotProps:k={},slots:_={},startAdornment:q,type:N="text",value:F}=r,j=Hi(r,ZS),z=null!=b.value?b.value:F,{current:$}=y.useRef(null!=z),H=y.useRef(),B=y.useCallback((e=>{}),[]),W=Yy(H,v,b.ref,B),[G,V]=y.useState(!1),U=VS(),Y=WS({props:r,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:G,y.useEffect((()=>{!U&&d&&G&&(V(!1),w&&w())}),[U,d,G,w]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=y.useCallback((e=>{KS(e)?K&&K():X&&X()}),[K,X]);Hy((()=>{$&&J({value:z})}),[z,J,$]);y.useEffect((()=>{J(H.current)}),[]);let Z=g,Q=b;E&&"input"===Z&&(Q=$i(T?{type:void 0,minRows:T,maxRows:T}:{type:void 0,maxRows:x,minRows:S},Q),Z=BS);y.useEffect((()=>{U&&U.setAdornedStart(Boolean(q))}),[U,q]);const ee=$i({},r,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:U,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:E,size:Y.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return md({root:["root",`color${jy(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${jy(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},XS,t)})(ee),ne=_.root||s.Root||tE,re=k.root||u.root||{},oe=_.input||s.Input||nE;return Q=$i({},Q,null!=(n=k.input)?n:u.input),Ni.jsxs(y.Fragment,{children:[!p&&rE,Ni.jsxs(ne,$i({},re,!Xx(ne)&&{ownerState:$i({},ee,re.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),A&&A(e)}},j,{className:dc(te.root,re.className,l,M&&"MuiInputBase-readOnly"),children:[q,Ni.jsx(GS.Provider,{value:null,children:Ni.jsx(oe,$i({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:C,placeholder:D,readOnly:M,required:Y.required,rows:T,value:z,onKeyDown:I,onKeyUp:L,type:N},Q,!Xx(oe)&&{as:Z,ownerState:$i({},ee,Q.ownerState)},{ref:W,className:dc(te.input,Q.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(av(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(P&&P(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):V(!0))}}))}),f,O?O($i({},Y,{startAdornment:q})):null]}))]})}));var iE=oE;function aE(e){return ux("MuiInput",e)}var lE=$i({},JS,cx("MuiInput",["root","underline","input"]));function sE(e){return ux("MuiOutlinedInput",e)}var uE=$i({},JS,cx("MuiOutlinedInput",["root","notchedOutline","input"]));function cE(e){return ux("MuiFilledInput",e)}var dE=$i({},JS,cx("MuiFilledInput",["root","underline","input"])),pE=function(e,t){function n(n,r){return Ni.jsx(Bx,$i({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Bx.muiName,y.memo(y.forwardRef(n))}(Ni.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const fE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],mE={entering:{opacity:1},entered:{opacity:1}},hE=y.forwardRef((function(e,t){const n=Ox(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:b=Zf}=e,v=Hi(e,fE),x=y.useRef(null),S=Yy(x,a.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(d),w=E(((e,t)=>{Wx(e);const r=Gx({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),R=E(c),A=E(m),P=E((e=>{const t=Gx({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),I=E(f);return Ni.jsx(b,$i({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:P,onExited:I,onExiting:A,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,$i({style:$i({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},mE[e],h,a.props.style),ref:S},t))}))}));var gE=hE;function bE(e){return ux("MuiBackdrop",e)}cx("MuiBackdrop",["root","invisible"]);const vE=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],yE=Nx("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>$i({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"}))),xE=y.forwardRef((function(e,t){var n,r,o;const i=Tx({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=gE,transitionDuration:g}=i,b=Hi(i,vE),v=$i({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return md({root:["root",n&&"invisible"]},bE,t)})(v),x=null!=(n=f.root)?n:c.root;return Ni.jsx(h,$i({in:p,timeout:g},b,{children:Ni.jsx(yE,$i({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:dc(y.root,l,null==x?void 0:x.className),ownerState:$i({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var SE=xE;var EE=cx("MuiBox",["root"]);const CE=Dx(),wE=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=cv("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(uy);return y.forwardRef((function(e,a){const l=hy(n),s=yy(e),{className:u,component:c="div"}=s,d=Hi(s,xy);return Ni.jsx(i,$i({as:c,ref:a,className:dc(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:lv,defaultTheme:CE,defaultClassName:EE.root,generateClassName:lx.generate});var RE=wE;function AE(e){return ux("MuiButton",e)}var PE=cx("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var IE=y.createContext({});var LE=y.createContext(void 0);const DE=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ME=e=>$i({},"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}}),OE=Nx(yS,{shouldForwardProp:e=>kx(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${jy(n.color)}`],t[`size${jy(n.size)}`],t[`${n.variant}Size${jy(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 $i({},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":$i({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:_y(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})`:_y(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})`:_y(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":$i({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${PE.focusVisible}`]:$i({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${PE.disabled}`]:$i({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 ${_y(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"},[`&.${PE.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${PE.disabled}`]:{boxShadow:"none"}})),TE=Nx("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${jy(n.size)}`]]}})((({ownerState:e})=>$i({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},ME(e)))),kE=Nx("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${jy(n.size)}`]]}})((({ownerState:e})=>$i({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},ME(e)))),_E=y.forwardRef((function(e,t){const n=y.useContext(IE),r=y.useContext(LE),o=Tx({props:ix(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,x=Hi(o,DE),S=$i({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return $i({},a,md({root:["root",i,`${i}${jy(t)}`,`size${jy(o)}`,`${i}Size${jy(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${jy(o)}`],endIcon:["endIcon",`iconSize${jy(o)}`]},AE,a))})(S),C=g&&Ni.jsx(TE,{className:E.startIcon,ownerState:S,children:g}),w=p&&Ni.jsx(kE,{className:E.endIcon,ownerState:S,children:p}),R=r||"";return Ni.jsxs(OE,$i({ownerState:S,className:dc(n.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:dc(E.focusVisible,f),ref:t,type:b},x,{classes:E,children:[C,i,w]}))}));var qE=_E;function NE(e){return ux("MuiModal",e)}cx("MuiModal",["root","hidden","backdrop"]);const FE=["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"],jE=Nx("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})=>$i({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),zE=Nx(SE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),$E=y.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Tx({name:"MuiModal",props:e}),{BackdropComponent:u=zE,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:P,open:I,slotProps:L,slots:D}=s,M=Hi(s,FE),O=$i({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:A}),{getRootProps:T,getBackdropProps:k,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=FS($i({},O,{rootRef:t})),z=$i({},O,{exited:F}),$=(e=>{const{open:t,exited:n,classes:r}=e;return md({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},NE,r)})(z),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),j){const{onEnter:e,onExited:t}=_();H.onEnter=e,H.onExited=t}const B=null!=(n=null!=(r=null==D?void 0:D.root)?r:g.Root)?n:jE,W=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:u,G=null!=(a=null==L?void 0:L.root)?a:b.root,V=null!=(l=null==L?void 0:L.backdrop)?l:b.backdrop,U=eS({elementType:B,externalSlotProps:G,externalForwardedProps:M,getSlotProps:T,additionalProps:{ref:t,as:h},ownerState:z,className:dc(d,null==G?void 0:G.className,null==$?void 0:$.root,!z.open&&z.exited&&(null==$?void 0:$.hidden))}),Y=eS({elementType:W,externalSlotProps:V,additionalProps:c,getSlotProps:e=>k($i({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:dc(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:z});return A||I||j&&!F?Ni.jsx(MS,{ref:q,container:m,disablePortal:E,children:Ni.jsxs(B,$i({},U,{children:[!R&&u?Ni.jsx(W,$i({},Y)):null,Ni.jsx(DS,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:I,children:y.cloneElement(f,H)})]}))}):null}));var HE=$E;function BE(e){return ux("MuiDivider",e)}var WE=cx("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const GE=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],VE=Nx("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})=>$i({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)`:_y(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})=>$i({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>$i({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>$i({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>$i({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),UE=Nx("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>$i({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)`}))),YE=y.forwardRef((function(e,t){const n=Tx({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Hi(n,GE),m=$i({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return md({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},BE,r)})(m);return Ni.jsx(VE,$i({as:a,className:dc(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Ni.jsx(UE,{className:h.wrapper,ownerState:m,children:o}):null}))}));YE.muiSkipListHighlight=!0;var KE=YE;const XE=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],JE=Nx(tE,{shouldForwardProp:e=>kx(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...QS(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return $i({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${dE.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${dE.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${dE.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${dE.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${dE.disabled}, .${dE.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${dE.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&$i({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),ZE=Nx(nE,{name:"MuiFilledInput",slot:"Input",overridesResolver:eE})((({theme:e,ownerState:t})=>$i({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),QE=y.forwardRef((function(e,t){var n,r,o,i;const a=Tx({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=Hi(a,XE),g=$i({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:n}=e;return $i({},t,md({root:["root",!n&&"underline"],input:["input"]},cE,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Fy(v,null!=p?p:s):v,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:JE,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:ZE;return Ni.jsx(iE,$i({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));QE.muiName="Input";var eC=QE;const tC=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function nC(e){return`scale(${e}, ${e**2})`}const rC={entering:{opacity:1,transform:nC(1)},entered:{opacity:1,transform:"none"}},oC="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),iC=y.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=Zf}=e,g=Hi(e,tC),b=y.useRef(),v=y.useRef(),x=Ox(),S=y.useRef(null),E=Yy(S,o.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{Wx(e);const{duration:n,delay:r,easing:o}=Gx({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:oC?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),A=C(s),P=C(p),I=C((e=>{const{duration:t,delay:n,easing:r}=Gx({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:oC?o:.666*o,delay:oC?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=nC(.75),c&&c(e)})),L=C(d);return y.useEffect((()=>()=>{clearTimeout(b.current)}),[]),Ni.jsx(h,$i({appear:r,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:w,onExit:I,onExited:L,onExiting:P,addEndListener:e=>{"auto"===m&&(b.current=setTimeout(e,v.current||0)),n&&n(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>y.cloneElement(o,$i({style:$i({opacity:0,transform:nC(.75),visibility:"exited"!==e||a?void 0:"hidden"},rC[e],f,o.props.style),ref:E},t))}))}));iC.muiSupportAuto=!0;var aC=iC;const lC=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],sC=Nx(tE,{shouldForwardProp:e=>kx(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...QS(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),$i({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${lE.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${lE.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${lE.disabled}, .${lE.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${lE.disabled}:before`]:{borderBottomStyle:"dotted"}})})),uC=Nx(nE,{name:"MuiInput",slot:"Input",overridesResolver:eE})({}),cC=y.forwardRef((function(e,t){var n,r,o,i;const a=Tx({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=Hi(a,lC),b=(e=>{const{classes:t,disableUnderline:n}=e;return $i({},t,md({root:["root",!n&&"underline"],input:["input"]},aE,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Fy(null!=f?f:u,v):v,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:sC,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:uC;return Ni.jsx(iE,$i({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));cC.muiName="Input";var dC=cC;function pC(e){return ux("MuiLink",e)}var fC=cx("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const mC={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var hC=({theme:e,ownerState:t})=>{const n=(e=>mC[e]||e)(t.color),r=vv(e,`palette.${n}`,!1)||t.color,o=vv(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:_y(r,.4)};const gC=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],bC=Nx(AS,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${jy(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>$i({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&$i({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:hC({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${fC.focusVisible}`]:{outline:"auto"}}))),vC=y.forwardRef((function(e,t){const n=Tx({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=Hi(n,gC),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=ox(),[b,v]=y.useState(!1),x=Yy(t,g),S=$i({},n,{color:o,component:i,focusVisible:b,underline:u,variant:c}),E=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return md({root:["root",`underline${jy(o)}`,"button"===n&&"button",r&&"focusVisible"]},pC,t)})(S);return Ni.jsx(bC,$i({color:o,className:dc(E.root,r),classes:s,component:i,onBlur:e=>{m(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&v(!0),l&&l(e)},ref:x,ownerState:S,variant:c,sx:[...Object.keys(mC).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var yC=vC;var xC=y.createContext({});function SC(e){return ux("MuiList",e)}cx("MuiList",["root","padding","dense","subheader"]);const EC=["children","className","component","dense","disablePadding","subheader"],CC=Nx("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})=>$i({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var wC=y.forwardRef((function(e,t){const n=Tx({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Hi(n,EC),c=y.useMemo((()=>({dense:a})),[a]),d=$i({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return md({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},SC,t)})(d);return Ni.jsx(xC.Provider,{value:c,children:Ni.jsxs(CC,$i({as:i,className:dc(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function RC(e){return ux("MuiListItemIcon",e)}var AC=cx("MuiListItemIcon",["root","alignItemsFlexStart"]);const PC=["className"],IC=Nx("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})=>$i({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var LC=y.forwardRef((function(e,t){const n=Tx({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Hi(n,PC),i=$i({},n,{alignItems:y.useContext(xC).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return md({root:["root","flex-start"===t&&"alignItemsFlexStart"]},RC,n)})(i);return Ni.jsx(IC,$i({className:dc(a.root,r),ownerState:i,ref:t},o))}));var DC=cx("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const MC=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function OC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function TC(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function kC(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 _C(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&kC(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var qC=y.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Hi(e,MC),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Hy((()=>{r&&p.current.focus()}),[r]),y.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(zy(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=Yy(p,t);let h=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return Ni.jsx(wC,$i({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=zy(t).activeElement;if("ArrowDown"===n)e.preventDefault(),_C(t,r,s,l,OC);else if("ArrowUp"===n)e.preventDefault(),_C(t,r,s,l,TC);else if("Home"===n)e.preventDefault(),_C(t,null,s,l,OC);else if("End"===n)e.preventDefault(),_C(t,null,s,l,TC);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&kC(r,o);o.previousKeyMatched&&(s||_C(t,r,!1,l,OC,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function NC(e){return ux("MuiPopover",e)}cx("MuiPopover",["root","paper"]);const FC=["onEntering"],jC=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],zC=["slotProps"];function $C(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function HC(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function BC(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function WC(e){return"function"==typeof e?e():e}const GC=Nx(HE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),VC=Nx(Kx,{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});var UC=y.forwardRef((function(e,t){var n,r,o;const i=Tx({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=aC,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,A=Hi(i.TransitionProps,FC),P=Hi(i,jC),I=null!=(n=null==x?void 0:x.paper)?n:b,L=y.useRef(),D=Yy(L,I.ref),M=$i({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:A}),O=(e=>{const{classes:t}=e;return md({root:["root"],paper:["paper"]},NC,t)})(M),T=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=WC(l),t=(e&&1===e.nodeType?e:zy(L.current).body).getBoundingClientRect();return{top:t.top+$C(t,s.vertical),left:t.left+HC(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),k=y.useCallback((e=>({vertical:$C(e,S.vertical),horizontal:HC(e,S.horizontal)})),[S.horizontal,S.vertical]),_=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=k(t);if("none"===c)return{top:null,left:null,transformOrigin:BC(n)};const r=T();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=$y(WC(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:BC(n)}}),[l,c,T,k,h]),[q,N]=y.useState(g),F=y.useCallback((()=>{const e=L.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);y.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);y.useEffect((()=>{g&&F()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),y.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{F()})),t=$y(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=f||(l?zy(WC(l)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:GC,H=null!=(o=null==v?void 0:v.paper)?o:VC,B=eS({elementType:H,externalSlotProps:$i({},I,{style:q?I.style:$i({},I.style,{opacity:0})}),additionalProps:{elevation:m,ref:D},ownerState:M,className:dc(O.paper,null==I?void 0:I.className)}),W=eS({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:M,className:dc(O.root,p)}),{slotProps:G}=W,V=Hi(W,zC);return Ni.jsx($,$i({},V,!Xx($)&&{slotProps:G,disableScrollLock:R},{children:Ni.jsx(E,$i({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},A,{children:Ni.jsx(H,$i({},B,{children:d}))}))}))}));function YC(e){return ux("MuiMenu",e)}cx("MuiMenu",["root","paper","list"]);const KC=["onEntering"],XC=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],JC={vertical:"top",horizontal:"right"},ZC={vertical:"top",horizontal:"left"},QC=Nx(UC,{shouldForwardProp:e=>kx(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ew=Nx(VC,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),tw=Nx(qC,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var nw=y.forwardRef((function(e,t){var n,r;const o=Tx({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=Hi(o.TransitionProps,KC),S=Hi(o,XC),E=Ox(),C="rtl"===E.direction,w=$i({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:x,variant:g}),R=(e=>{const{classes:t}=e;return md({root:["root"],paper:["paper"],list:["list"]},YC,t)})(w),A=i&&!s&&d,P=y.useRef(null);let I=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))}));const L=null!=(n=b.paper)?n:ew,D=null!=(r=v.paper)?r:p,M=eS({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,l]}),O=eS({elementType:L,externalSlotProps:D,ownerState:w,className:R.paper});return Ni.jsx(QC,$i({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?JC:ZC,slots:{paper:L,root:b.root},slotProps:{root:M,paper:O},open:d,ref:t,transitionDuration:m,TransitionProps:$i({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,E),h&&h(e,t)}},x),ownerState:w},S,{classes:f,children:Ni.jsx(tw,$i({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:P,autoFocus:i&&(-1===I||s),autoFocusItem:A,variant:g},u,{className:dc(R.list,u.className),children:a}))}))}));function rw(e){return ux("MuiMenuItem",e)}var ow=cx("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const iw=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],aw=Nx(yS,{shouldForwardProp:e=>kx(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})=>$i({},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"}},[`&.${ow.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_y(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ow.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:_y(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ow.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_y(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})`:_y(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ow.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ow.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${WE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${WE.inset}`]:{marginLeft:52},[`& .${DC.root}`]:{marginTop:0,marginBottom:0},[`& .${DC.inset}`]:{paddingLeft:36},[`& .${AC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$i({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${AC.root} svg`]:{fontSize:"1.25rem"}}))));var lw=y.forwardRef((function(e,t){const n=Tx({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=Hi(n,iw),f=y.useContext(xC),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=y.useRef(null);Hy((()=>{r&&h.current&&h.current.focus()}),[r]);const g=$i({},n,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return $i({},a,md({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},rw,a))})(n),v=Yy(h,t);let x;return n.disabled||(x=void 0!==c?c:-1),Ni.jsx(xC.Provider,{value:m,children:Ni.jsx(aw,$i({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:dc(b.focusVisible,s),className:dc(b.root,d)},p,{ownerState:g,classes:b}))})}));function sw(e){return ux("MuiNativeSelect",e)}var uw=cx("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const cw=["className","disabled","error","IconComponent","inputRef","variant"],dw=({ownerState:e,theme:t})=>$i({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":$i({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${uw.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),pw=Nx("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:kx,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${uw.multiple}`]:t.multiple}]}})(dw),fw=({ownerState:e,theme:t})=>$i({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${uw.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),mw=Nx("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${jy(n.variant)}`],n.open&&t.iconOpen]}})(fw),hw=y.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=Hi(e,cw),u=$i({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return md({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${jy(n)}`,i&&"iconOpen",r&&"disabled"]},sw,t)})(u);return Ni.jsxs(y.Fragment,{children:[Ni.jsx(pw,$i({ownerState:u,className:dc(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:Ni.jsx(mw,{as:i,ownerState:u,className:c.icon})]})}));var gw,bw=hw;const vw=["children","classes","className","label","notched"],yw=Nx("fieldset",{shouldForwardProp:kx})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),xw=Nx("legend",{shouldForwardProp:kx})((({ownerState:e,theme:t})=>$i({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&$i({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const Sw=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Ew=Nx(tE,{shouldForwardProp:e=>kx(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:QS})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return $i({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${uE.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${uE.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${uE.focused} .${uE.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${uE.error} .${uE.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${uE.disabled} .${uE.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&$i({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Cw=Nx((function(e){const{className:t,label:n,notched:r}=e,o=Hi(e,vw),i=null!=n&&""!==n,a=$i({},e,{notched:r,withLabel:i});return Ni.jsx(yw,$i({"aria-hidden":!0,className:t,ownerState:a},o,{children:Ni.jsx(xw,{ownerState:a,children:i?Ni.jsx("span",{children:n}):gw||(gw=Ni.jsx("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),ww=Nx(nE,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:eE})((({theme:e,ownerState:t})=>$i({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),Rw=y.forwardRef((function(e,t){var n,r,o,i,a;const l=Tx({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=Hi(l,Sw),b=(e=>{const{classes:t}=e;return $i({},t,md({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},sE,t))})(l),v=VS(),x=WS({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=$i({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:v,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:h}),E=null!=(n=null!=(r=m.root)?r:s.Root)?n:Ew,C=null!=(o=null!=(i=m.input)?i:s.Input)?o:ww;return Ni.jsx(iE,$i({slots:{root:E,input:C},renderSuffix:e=>Ni.jsx(Cw,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=Ni.jsxs(y.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:$i({},b,{notchedOutline:null})}))}));Rw.muiName="Input";var Aw=Rw;function Pw(e){return ux("MuiSelect",e)}var Iw,Lw=cx("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Dw=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Mw=Nx("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Lw.select}`]:t.select},{[`&.${Lw.select}`]:t[n.variant]},{[`&.${Lw.error}`]:t.error},{[`&.${Lw.multiple}`]:t.multiple}]}})(dw,{[`&.${Lw.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Ow=Nx("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${jy(n.variant)}`],n.open&&t.iconOpen]}})(fw),Tw=Nx("input",{shouldForwardProp:e=>_x(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function kw(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function _w(e){return null==e||"string"==typeof e&&!e.trim()}const qw=y.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:b={},multiple:v,name:x,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:A,readOnly:P,renderValue:I,SelectDisplayProps:L={},tabIndex:D,value:M,variant:O="standard"}=e,T=Hi(e,Dw),[k,_]=Vy({controlled:M,default:c,name:"Select"}),[q,N]=Vy({controlled:A,default:u,name:"Select"}),F=y.useRef(null),j=y.useRef(null),[z,$]=y.useState(null),{current:H}=y.useRef(null!=A),[B,W]=y.useState(),G=Yy(t,h),V=y.useCallback((e=>{j.current=e,e&&$(e)}),[]),U=null==z?void 0:z.parentNode;y.useImperativeHandle(G,(()=>({focus:()=>{j.current.focus()},node:F.current,value:k})),[k]),y.useEffect((()=>{u&&q&&z&&!H&&(W(a?null:U.clientWidth),j.current.focus())}),[z,a]),y.useEffect((()=>{i&&j.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=zy(j.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&j.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),H||(W(a?null:U.clientWidth),N(e))},K=y.Children.toArray(l),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(k)?k.slice():[];const t=k.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),k!==n&&(_(n),E)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:x}}),E(o,e)}v||Y(!1,t)}},J=null!==z&&q;let Z,Q;delete T["aria-invalid"];const ee=[];let te=!1;(KS({value:k})||p)&&(I?Z=I(k):te=!0);const ne=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(k))throw new Error(av(2));t=k.some((t=>kw(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=kw(k,e.props.value),t&&te&&(Q=e.props.children);return y.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Q);let re,oe=B;!a&&H&&z&&(oe=U.clientWidth),re=void 0!==D?D:d?null:0;const ie=L.id||(x?`mui-component-select-${x}`:void 0),ae=$i({},e,{variant:O,value:k,open:J,error:f}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return md({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${jy(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},Pw,t)})(ae),se=$i({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),ue=Gy();return Ni.jsxs(y.Fragment,{children:[Ni.jsx(Mw,$i({ref:V,tabIndex:re,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!P){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||P?null:e=>{0===e.button&&(e.preventDefault(),j.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:k,name:x}}),S(e))},onFocus:w},L,{ownerState:ae,className:dc(L.className,le.select,s),id:ie,children:_w(Z)?Iw||(Iw=Ni.jsx("span",{className:"notranslate",children:"​"})):Z})),Ni.jsx(Tw,$i({"aria-invalid":f,value:Array.isArray(k)?k.join(","):k,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(_(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},T)),Ni.jsx(Ow,{as:m,className:le.icon,ownerState:ae}),Ni.jsx(nw,$i({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:$i({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:$i({},b.slotProps,{paper:$i({},se,{style:$i({minWidth:oe},null!=se?se.style:null)})}),children:ne}))]})}));var Nw=qw;const Fw=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],jw=["root"],zw={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>kx(e)&&"variant"!==e,slot:"Root"},$w=Nx(dC,zw)(""),Hw=Nx(Aw,zw)(""),Bw=Nx(eC,zw)(""),Ww=y.forwardRef((function(e,t){const n=Tx({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=pE,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=n,R=Hi(n,Fw),A=b?bw:Nw,P=WS({props:n,muiFormControl:VS(),states:["variant","error"]}),I=P.variant||w,L=$i({},n,{variant:I,classes:i}),D=(e=>{const{classes:t}=e;return t})(L),M=Hi(D,jw),O=d||{standard:Ni.jsx($w,{ownerState:L}),outlined:Ni.jsx(Hw,{label:f,ownerState:L}),filled:Ni.jsx(Bw,{ownerState:L})}[I],T=Yy(t,O.ref);return Ni.jsx(y.Fragment,{children:y.cloneElement(O,$i({inputComponent:A,inputProps:$i({children:o,error:P.error,IconComponent:u,variant:I,type:void 0,multiple:g},b?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:$i({id:c},C)},p,{classes:p?Fy(M,p.classes):M},d?d.props.inputProps:{})},g&&b&&"outlined"===I?{notched:!0}:{},{ref:T,className:dc(O.props.className,a,D.root)},!d&&{variant:I},R))})}));Ww.muiName="Select";var Gw=Ww,Vw=(e={})=>x.createElement(Vb,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:Lb.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Uw={MuiAccordion:{styleOverrides:{root:{backgroundColor:Lb.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Lb.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(Bb,{"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 ${Lb.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Lb.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Lb.MISC_FOCUS_BORDER}`,borderRadius:kb,backgroundColor:Lb.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 ${Lb.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Lb.WHITE,color:Lb.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:kb},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Lb.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Lb.GREYSCALE_0_15,backgroundColor:Lb.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Lb.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Lb.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Lb.GREEN_PALE},"&:active":{backgroundColor:Lb.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Lb.GREEN_PALE,boxShadow:`0 0 0 3px ${_y(Lb.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Lb.BLUE_PALE},"&:active":{backgroundColor:Lb.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Lb.BLUE_PALE,boxShadow:`0 0 0 3px ${_y(Lb.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:kb,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Lb.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Lb.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Lb.GREYSCALE_0_15,backgroundColor:Lb.GREYSCALE_100_60,"&:active":{backgroundColor:Lb.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Lb.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Lb.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Lb.PURPLE,"&.Mui-focusVisible":{borderColor:Lb.PURPLE,boxShadow:`0 0 0 3px ${_y(Lb.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Lb.GREEN,"&.Mui-focusVisible":{borderColor:Lb.GREEN,boxShadow:`0 0 0 3px ${_y(Lb.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Lb.BLUE,"&.Mui-focusVisible":{borderColor:Lb.BLUE,boxShadow:`0 0 0 3px ${_y(Lb.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Lb.ORANGE,"&.Mui-focusVisible":{borderColor:Lb.ORANGE,boxShadow:`0 0 0 3px ${_y(Lb.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Lb.RED,"&.Mui-focusVisible":{borderColor:Lb.RED,boxShadow:`0 0 0 3px ${_y(Lb.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Lb.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Lb.PURPLE_PALE},"&:active":{backgroundColor:Lb.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Lb.PURPLE_PALE,boxShadow:`0 0 0 3px ${_y(Lb.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Lb.GREEN_PALE},"&:active":{backgroundColor:Lb.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Lb.GREEN_PALE,boxShadow:`0 0 0 3px ${_y(Lb.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Lb.BLUE_PALE},"&:active":{backgroundColor:Lb.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Lb.BLUE_PALE,boxShadow:`0 0 0 3px ${_y(Lb.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Lb.ORANGE_PALE},"&:active":{backgroundColor:Lb.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Lb.ORANGE_PALE,boxShadow:`0 0 0 3px ${_y(Lb.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Lb.RED_PALE},"&:active":{backgroundColor:Lb.RED_DARK},"&.Mui-focusVisible":{borderColor:Lb.RED_PALE,boxShadow:`0 0 0 3px ${_y(Lb.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:Lb.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Lb.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:kb,boxShadow:`inset 0 0 0 2px ${Lb.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(Gb,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Db,borderRadius:kb,color:Lb.TEXT_PRIMARY,backgroundColor:Lb.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Lb.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Lb.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Lb.GREYSCALE_0_05,color:Lb.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Lb.GREEN,borderColor:Lb.GREEN},"&.MuiChip-outlinedInfo":{color:Lb.BLUE,borderColor:Lb.BLUE},"&.MuiChip-outlinedWarning":{color:Lb.ORANGE,borderColor:Lb.ORANGE},"&.MuiChip-outlinedError":{color:Lb.RED,borderColor:Lb.RED}},outlined:{border:`solid 1px ${Lb.GREYSCALE_0_15}`,backgroundColor:Lb.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:kb,boxShadow:"none",backgroundColor:Lb.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Lb.GREEN,borderColor:Lb.GREEN},outlinedSecondary:{color:Lb.BLUE,borderColor:Lb.BLUE},label:{fontFamily:jb.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(Gb,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(Bb,{"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:kb},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:kb,fontSize:Mb,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Lb.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Lb.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Lb.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Lb.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Lb.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:kb,border:`solid 1px ${Lb.GREYSCALE_0_15}`,color:Lb.GREYSCALE_0_60,marginRight:0,width:Tb,height:Tb},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Lb.GREYSCALE_0_15}`},clearIndicator:{borderRadius:kb,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Lb.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Mb}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Db,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Lb.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Lb.GREYSCALE_25,fontSize:Db,fontFamily:jb.FONT_FAMILY,fontWeight:Nb,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Lb.TEXT_PRIMARY},"&.Mui-error":{color:Lb.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Lb.TEXT_SECONDARY,content:"'(optional)'",fontWeight:qb,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Lb.TEXT_SECONDARY,content:"'(required)'",fontWeight:qb,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Mb,lineHeight:"16px",backgroundColor:Lb.WHITE,borderRadius:kb,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lb.GREYSCALE_0_05}`,borderColor:Lb.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lb.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Lb.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Lb.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lb.RED}`,boxShadow:`0px 0px 0px 1px ${Lb.RED}, inset 0 2px 0 0 ${Lb.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lb.GREYSCALE_0_10}`,borderColor:Lb.GREYSCALE_0_10,backgroundColor:Lb.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Lb.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Lb.GREYSCALE_0_15,borderRadius:kb,boxShadow:`inset 0 2px 0 0 ${Lb.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(Bb,{...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:Lb.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Lb.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Lb.GREYSCALE_0_03},"&:active":{backgroundColor:Lb.GREYSCALE_0_10},"&:focus":{backgroundColor:Lb.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Lb.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Lb.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Lb.GREYSCALE_0_30,"&:hover":{backgroundColor:Lb.GREYSCALE_0_0,borderColor:Lb.GREYSCALE_0_15},"& ~svg":{color:Lb.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Lb.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:kb}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Lb.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Lb.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Lb.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Mb,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Db,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Db,fontWeight:Nb,color:Lb.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Nb}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Lb.GREYSCALE_0_15}, 0px 0px 0px 1px ${Lb.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(Kb,null),checkedIcon:x.createElement(Xb,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Lb.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Lb.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Lb.GREEN_PALE,boxShadow:`0 0 0 3px ${_y(Lb.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Lb.BLUE_PALE,boxShadow:`0 0 0 3px ${_y(Lb.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Lb.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Lb.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(Vw,null),checkedIcon:x.createElement(Ub,null),indeterminateIcon:x.createElement(Yb,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:kb,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Lb.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Lb.GREYSCALE_0_55,color:Lb.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:Lb.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Lb.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Lb.GREYSCALE_0_55,"&:hover":{color:Lb.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:Lb.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Lb.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Mb,color:Lb.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Nb},secondary:{fontSize:Db,color:Lb.GREYSCALE_45,fontWeight:qb,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Mb,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Lb.GREYSCALE_0_03},"&:active":{backgroundColor:Lb.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Mb,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Lb.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Db,borderBottom:`solid 1px ${Lb.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Mb,color:Lb.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Lb.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Lb.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Lb.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Lb.RED}}},"&.Mui-focusVisible":{backgroundColor:Lb.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:Lb.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:Lb.GREEN,height:"24px","&.Mui-disabled":{color:Lb.GREYSCALE_0_15}},rail:{backgroundColor:Lb.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Lb.GREYSCALE_0_05}`,borderRadius:kb,boxShadow:`inset 0px 0px 0px 1px ${Lb.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Lb.GREYSCALE_0_05}`,borderRadius:kb},thumb:{height:"16px",width:"16px",borderRadius:kb,backgroundColor:Lb.WHITE,boxShadow:`0px 1px 2px 0px ${Lb.GREYSCALE_0_15}, 0px 0px 0px 1px ${Lb.GREYSCALE_0_05}`,"&:hover":{borderRadius:kb,boxShadow:`0 2px 4px 0 ${Lb.GREYSCALE_0_30}, 0 0 0 1px ${Lb.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Lb.GREYSCALE_0_15}, 0 0 0 1px ${Lb.GREYSCALE_0_06}, 0 0 0 2px ${Lb.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Lb.GREYSCALE_0_15}, 0 0 0 1px ${Lb.GREYSCALE_0_06}, 0 0 0 2px ${Lb.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Lb.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Lb.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Lb.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Lb.GREYSCALE_0_15},markLabel:{color:Lb.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Lb.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Lb.WHITE,color:Lb.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:Lb.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:Lb.GREEN_PALE,boxShadow:`0 0 0 3px ${_y(Lb.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Lb.BLUE_PALE,boxShadow:`0 0 0 3px ${_y(Lb.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Lb.GREYSCALE_0_15,borderRadius:kb},thumb:{height:"16px",width:"16px",borderRadius:kb,backgroundColor:Lb.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:Mb,fontWeight:Nb,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Lb.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Lb.MISC_FOCUS_BORDER}`,backgroundColor:Lb.GREYSCALE_0_03,borderRadius:kb},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Lb.GREYSCALE_25,"&.Mui-selected":{color:Lb.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Mb,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Lb.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Lb.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Lb.GREYSCALE_85}`,borderRight:`1px solid ${Lb.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Nb,backgroundColor:Lb.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:Lb.GREYSCALE_98,borderBottom:`1px solid ${Lb.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Lb.GREYSCALE_85}`,borderTop:`1px solid ${Lb.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Lb.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Lb.GREYSCALE_0_05,"&:hover":{backgroundColor:Lb.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Lb.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(Jb,{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 ${Lb.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Mb,borderRadius:kb,padding:"7px 16px",border:`1px solid ${Lb.GREYSCALE_0_15}`,backgroundColor:Lb.GREYSCALE_100_60,color:Lb.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Lb.GREYSCALE_0_10,border:`1px solid ${Lb.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Lb.GREYSCALE_0_03,border:`1px solid ${Lb.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Lb.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Lb.MISC_FOCUS_BORDER}`,border:`1px solid ${Lb.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Lb.GREYSCALE_25,backgroundColor:Lb.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Lb.GREYSCALE_0_10,border:`1px solid ${Lb.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Db,height:24,width:24,padding:7},sizeLarge:{fontSize:Ob,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Mb,borderRadius:kb}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:Lb.GREYSCALE_20},tooltip:{backgroundColor:Lb.GREYSCALE_20,fontSize:Db,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var Yw=e=>Uw;const Kw={mode:"light",primary:{light:Lb.GREEN_PALE,main:Lb.GREEN,dark:Lb.GREEN_DARK,contrastText:Lb.WHITE},secondary:{light:Lb.BLUE_PALE,main:Lb.BLUE,dark:Lb.BLUE_DARK,contrastText:Lb.WHITE},error:{light:Lb.RED_PALE,main:Lb.RED,dark:Lb.RED_DARK,contrastText:Lb.WHITE},warning:{light:Lb.ORANGE_PALE,main:Lb.ORANGE,dark:Lb.ORANGE_DARK,contrastText:Lb.WHITE},success:{light:Lb.GREEN_PALE,main:Lb.GREEN,dark:Lb.GREEN_DARK,contrastText:Lb.WHITE},info:{light:Lb.BLUE_PALE,main:Lb.BLUE,dark:Lb.BLUE_DARK,contrastText:Lb.WHITE},text:{primary:Lb.TEXT_PRIMARY,secondary:Lb.TEXT_SECONDARY,disabled:Lb.GREYSCALE_0_30},action:{hover:Lb.GREYSCALE_0_03,hoverOpacity:.05,selected:Lb.GREYSCALE_0_05,focus:Lb.MISC_FOCUS_BORDER},amethyst:{main:Lb.PURPLE,light:Lb.PURPLE_PALE,dark:Lb.PURPLE_DARK,contrastText:Lb.WHITE},background:{paper:Lb.WHITE,default:Lb.GREYSCALE_95},divider:Lb.GREYSCALE_0_15},Xw=e=>({components:Yw(),palette:Kw,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:Mb,fontWeightLight:_b,fontWeightRegular:qb,fontWeightMedium:Nb,fontWeightBold:Fb,htmlFontSize:Mb,fontFamily:jb.FONT_FAMILY,button:{fontWeight:Nb,fontSize:Mb,textTransform:"none"},body1:{fontSize:Ob,lineHeight:"24px"},body2:{fontSize:Mb,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Tb,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Ob,fontWeight:Nb,lineHeight:"16px"},h6:{fontSize:Mb,fontWeight:Nb,lineHeight:"16px"},caption:{color:Lb.TEXT_SECONDARY},subtitle1:{fontSize:Mb,color:Lb.TEXT_SECONDARY},subtitle2:{fontSize:Db,color:Lb.TEXT_SECONDARY}},shape:{borderRadius:kb}}),Jw={...Ib,MISC_FOCUS_BORDER:Lb.MISC_FOCUS_BORDER},Zw=Xw().palette,Qw={TEXT:Zw.text.primary,DISABLED:Zw.text.disabled,HOVER:Zw.action.hover,WHITE:Jw.GREYSCALE_100,BORDER_LIGHT:Jw.GREYSCALE_90,BORDER_MEDIUM:Jw.GREYSCALE_85,BORDER_HEAVY:Jw.GREYSCALE_50,DARK_MODE_TEXT:Jw.GREYSCALE_95,DARK_MODE_BORDER:Jw.GREYSCALE_95,DARK_MODE_DISABLED:Jw.GREYSCALE_70,DARK_MODE_BACKGROUND:Jw.GREYSCALE_20},eR=(e,t)=>{const n=qe(e),r=n.l<70;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},tR=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,nR=e=>{const t=tR.exec(e);if(t){const[,e,n,r,o]=t;return se(+n,+r,+o,+e/255)}return se(e)},rR=e=>{const t=nR(e);return Number.isNaN(t.r)?null:t.toString()},oR=e=>{if(void 0===e)return;const t=nR(e);return t.opacity=1,t.toString()},iR=(e,t,n)=>{var r,o,i,a;const l=null!==(r=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==r?r:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,n)},aR=e=>{e.stopPropagation(),e.preventDefault()},lR=(e,t)=>{var n;return null===(n=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===n?void 0:n.getElementsByClassName("sn-table-cell")[t[1]]},sR=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),uR=e=>{const t=e.nextElementSibling;var n;return t?"HR"===t.tagName?uR(t):t:null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[0]},cR=e=>{const t=e.previousElementSibling;if(!t){var n,r;const t=null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n.length;return null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[t-1]}return"HR"===t.tagName?cR(t):t},dR=e=>!e.enabled||e.active,pR=e=>{setTimeout((()=>{var t;const n=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${Ir}`);null==n||n.setAttribute("tabIndex","0"),null==n||n.focus()}),0)},fR=({focusType:e,cell:t})=>{if(t)switch(e){case sf.FOCUS:t.focus(),t.setAttribute("tabIndex","0");break;case sf.FOCUS_BUTTON:const e=t.querySelector(".sn-table-head-label");null==e||e.focus();break;case sf.BLUR:t.blur(),t.setAttribute("tabIndex","-1");break;case sf.ADD_TAB:t.setAttribute("tabIndex","0");break;case sf.REMOVE_TAB:t.setAttribute("tabIndex","-1")}},mR=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:o,allowedRows:i})=>{const a=((e,t,n,r={top:0,bottom:0})=>{const o=t.getElementsByClassName("sn-table-row").length,i=t.getElementsByClassName("sn-table-head-cell").length;let[a,l]=n;switch(e.key){case lf.DOWN:a<o-1-r.bottom&&a++;break;case lf.UP:a>r.top&&a--;break;case lf.RIGHT:if(r.top>0)break;l<i-1?l++:a<o-1&&(a++,l=0);break;case lf.LEFT:if(r.top>0)break;l>0?l--:a>0&&(a--,l=i-1)}return[a,l]})(e,t,n,i),l=lR(t,a);return fR({focusType:o,cell:l}),r(a),l},hR=(e,t)=>{let n=sR(e);const r=n?((e,t)=>{const n=e.getElementsByClassName("sn-table-head-cell").length,r=e.getElementsByClassName("sn-table-cell");let o=0;for(let e=0;e<r.length;e++)if(r[e]===t){o=e;break}return[Math.ceil(o/n),o%n]})(e,n):mf;n=n||lR(e,mf),fR({cell:n,focusType:sf.FOCUS}),t(r)},gR=(e,t,n,r)=>{var o;(fR({focusType:sf.REMOVE_TAB,cell:sR(t)}),n(e),r.enabled&&!r.active)?null===(o=r.focus)||void 0===o||o.call(r):fR({focusType:sf.ADD_TAB,cell:lR(t,e)})},bR=e=>e.ctrlKey||e.metaKey,vR=e=>e.shiftKey&&bR(e),yR=e=>[lf.LEFT,lf.RIGHT,lf.UP,lf.DOWN].includes(e),xR=e=>e.shiftKey&&yR(e.key),SR=(e,t=!1)=>e.key===lf.ESC&&!t||(e.key===lf.LEFT||e.key===lf.RIGHT)&&vR(e),ER=(e,t,n)=>{if(n)return sf.FOCUS;const r=t.key===lf.UP&&1===e[0],o=t.key===lf.LEFT&&1===e[0]&&0===e[1];return r||o?sf.FOCUS_BUTTON:sf.FOCUS},CR=({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:l,isSelectionMode:s,isNewHeadCellMenuEnabled:u})=>{const c=l.atTop?2:1,d=[n.pageRowIdx+c,n.pageColIdx],p={top:s?c:0,bottom:s&&l.atBottom?1:0},f=ER(d,e,u);f===sf.FOCUS&&fR({focusType:sf.REMOVE_TAB,cell:e.currentTarget});const m=mR({evt:e,rootElement:t,cellCoord:d,setFocusedCellCoord:i,focusType:f,allowedRows:p});e.key!==lf.UP&&e.key!==lf.DOWN||(e.key===lf.UP&&((e,t)=>{const n=t.getElementsByClassName("sn-table-container")[0];if(null==n||!n.scrollTo)return;const[r,o]=e;if(r<2)n.scrollTo({top:0,behavior:"auto"});else{var i;const e=t.getElementsByClassName("sn-table-head-cell")[0],a=null===(i=t.getElementsByClassName("sn-table-row")[r])||void 0===i?void 0:i.getElementsByClassName("sn-table-cell")[o];if(!a||!e)return;if(a.offsetTop-e.offsetHeight<n.scrollTop){const t=n.scrollTop-a.offsetHeight-e.offsetHeight;n.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})([n.pageRowIdx,n.pageColIdx],t),((e,t,n)=>t.shiftKey&&(t.key===lf.UP&&0!==n.pageRowIdx||t.key===lf.DOWN&&!n.isLastRow)&&e&&n.isSelectable)(o,e,n)?r({type:af.SELECT_MULTI_ADD,payload:{cell:n,evt:e,announce:a}}):((e,t,n=!1)=>{n&&t&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})})(a,m,s))},wR=({evt:e,rootElement:t,setFocusedCellCoord:n,keyboard:r,isSelectionMode:o,paginationNeeded:i,isNewHeadCellMenuEnabled:a})=>{if((null==r?void 0:r.enabled)&&o&&(e.shiftKey||!e.shiftKey&&!i))aR(e),iR(e.currentTarget,r,e.shiftKey);else if(e.shiftKey&&!a){n([0,t.querySelectorAll(".sn-table-head-cell").length-1])}},RR=(e,t)=>{const{colIdx:n,rows:r,api:o}=t;let i=of.INACTIVE;return null!=o&&o.isModal()&&(i=n!==e.selectionColIdx?of.EXCLUDED:void 0!==r[e.qElemNumber]?of.SELECTED:of.POSSIBLE),i},AR=(e,t,n)=>{const r=Object.keys(n).length,o=r>=Object.keys(t).length;if(r){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===r?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",r.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},PR=(e,t)=>{const{api:n,rows:r,colIdx:o}=e,{cell:i,announce:a,evt:l}=t;let s={};if(-1===o)null==n||n.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;s={...r}}return s=((e,t,n)=>{const{qElemNumber:r,rowIdx:o}=t;return n.ctrlKey||n.metaKey?{[r]:o}:(void 0!==e[r]?delete e[r]:e[r]=o,{...e})})(s,i,l),AR(a,r,s),Object.keys(s).length?(null==n||n.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(s),[i.selectionColIdx]]}),{...e,rows:s,colIdx:i.selectionColIdx}):(null==n||n.cancel(),{...e,rows:s,colIdx:-1})},IR=(e,t)=>{var n;const{api:r,rows:o,colIdx:i,pageRows:a,firstCell:l}=e,{cell:s,announce:u,evt:c}=t;let d={};return l||"key"in c&&xR(c)?(-1===i?null==r||r.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,n,r,o)=>{const i={...t};if("key"in r&&xR(r)){i[n.qElemNumber]=n.rowIdx;const t=r.key===lf.DOWN?1:-1;return i[e[n.pageRowIdx+t][n.pageColIdx].qElemNumber]=n.rowIdx+t,i}if(!o)return t;const a=Math.min(o.pageRowIdx,n.pageRowIdx),l=Math.max(o.pageRowIdx,n.pageRowIdx);for(let t=a;t<=l;t++){const n=e[t][o.pageColIdx];i[n.qElemNumber]=n.rowIdx}return i})(a,d,s,c,l),AR(u,o,d),{...e,rows:d,colIdx:null!==(n=null==l?void 0:l.selectionColIdx)&&void 0!==n?n:s.selectionColIdx,isSelectMultiValues:!0}):e},LR=e=>{const{api:t,rows:n,colIdx:r,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(n),[r]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},DR=(e,t)=>{var n;switch(t.type){case af.SELECT:return PR(e,t.payload);case af.SELECT_MOUSE_DOWN:return((e,{cell:t,mouseupOutsideCallback:n})=>!n||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",n),{...e,firstCell:t,mouseupOutsideCallback:n}))(e,t.payload);case af.SELECT_MOUSE_UP:return((e,t)=>LR(e.isSelectMultiValues||e.firstCell!==t.cell?e:PR(e,t)))(e,t.payload);case af.SELECT_MULTI_ADD:return IR(e,t.payload);case af.SELECT_MULTI_END:return LR(e);case af.RESET:return null!==(n=e.api)&&void 0!==n&&n.isModal()?e:{...e,rows:{},colIdx:-1};case af.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case af.UPDATE_PAGE_ROWS:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},MR=4/3,OR={hover:{darker:.15,brighter:.3,opacity:.03},active:{darker:.3,brighter:.5,opacity:.05}},TR=e=>parseInt(e,10)*MR+8+1,kR=e=>!!e&&(null!==e.color||e.index>-1);function _R(e,t,n={}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const qR=e=>je(e)?Qw.WHITE:Qw.TEXT,NR=(e,t)=>e?{borderBottomColor:Qw.DARK_MODE_BORDER,borderRightColor:Qw.DARK_MODE_BORDER,borderLeftColor:Qw.DARK_MODE_BORDER,borderTopColor:Qw.DARK_MODE_BORDER}:{borderLeftColor:Qw.BORDER_MEDIUM,borderRightColor:Qw.BORDER_MEDIUM,borderTopColor:Qw.BORDER_HEAVY,borderBottomColor:t?Qw.BORDER_HEAVY:Qw.BORDER_LIGHT},FR=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},jR=(e,t,n,r=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),l={fontFamily:o,color:kR(null==n?void 0:n.fontColor)?_R(Qw.TEXT,t,null==n?void 0:n.fontColor):i||Qw.TEXT,fontSize:(null==n?void 0:n.fontSize)&&`${n.fontSize}px`||a,padding:n&&"padding"in n?null==n?void 0:n.padding:void 0,...NR(t.background.isDark,r)};return Object.keys(l).forEach((e=>{const t=e;null==l[t]&&delete l[t]})),l};function zR(e,t,n,r){var o,i;const a=null===(o=FR(e))||void 0===o?void 0:o.header,l=jR("header",t,a,n);var s,u;(l.background=t.background.isTransparent?Qw.WHITE:oR(t.background.color),null!=r&&r.isNewHeadCellMenuEnabled)&&(l.hoverBackground=eR(null!==(s=l.background)&&void 0!==s?s:Qw.WHITE,OR.hover),l.activeBackground=eR(null!==(u=l.background)&&void 0!==u?u:Qw.WHITE,OR.active));return l.color=null!==(i=l.color)&&void 0!==i?i:je(l.background)?Qw.DARK_MODE_TEXT:Qw.TEXT,l}function $R(e,t,n,r){var o;const i=null===(o=FR(e))||void 0===o?void 0:o.content,a=jR("content",t,i);a.background=t.background.color;const l=((e,t,n)=>{if(e&&t&&n)return TR(e)*(t+2)<n.clientHeight-40?"1px":"0px";return"0px"})(null==a?void 0:a.fontSize,n,r),s=null==i?void 0:i.hoverColor,u=null==i?void 0:i.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),d=t.getStyle("object","","straightTableV2.content.hover.color"),p=kR(u)||!!d,f=kR(s)||!!c,m=p||f;let h;h=kR(s)?_R(Qw.HOVER,t,s):c||(p?"":Qw.HOVER);const g=m?_R(qR(h),t,kR(u)?u:d):"";return{...a,lastRowBottomBorder:l,hoverColors:{background:h,color:g}}}function HR(e,t,n){var r;const o={};return null==t||null===(r=t.qValues)||void 0===r||r.forEach(((e,t)=>{const r=e.qText&&rR(e.qText);r&&"none"!==r&&(o[n[t]]=r)})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=qR(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background}}const BR=(e,t,n,r,o)=>{const i=S((()=>{const i=n.totalsPosition.atTop,a=$R(e,t,n.rows.length,r),l=zR(e,t,!i,o),s=function(e,t,n){var r;const o=null===(r=FR(e))||void 0===r?void 0:r.content,i=jR("content",t,o),{borderBottomColor:a,borderTopColor:l,background:s}=zR(e,t,n);return{...i,borderBottomColor:a,background:s,borderTopColor:l}}(e,t,i);return{body:a,head:l,totals:s}}),[e,t.name(),n,r]);return i},WR=new Map;const GR=D({}),VR=function(e){const t=D([()=>{},new Set]);return WR.set(e,t),({children:n,value:r})=>{const o=M(r),i=M(new Set);C((()=>{o.current=r,i.current.forEach((e=>{e(r)}))}),[r]);const a=O((()=>o.current),[o]),l=S((()=>[a,i.current]),[a]);return Ni.jsx(e.Provider,{value:r,children:Ni.jsx(t.Provider,{value:l,children:n})})}}(GR),UR={rows:[],columns:[],totalsPosition:{}},YR=({app:e,children:t,tableData:n=UR,selectionsAPI:r,cellCoordMock:o,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,setPage:h,pageInfo:g,initialDataPages:b,rect:v,viewService:y,isNewHeadCellMenuEnabled:x,isLinksEnabled:C})=>{const w=S((()=>({isNewHeadCellMenuEnabled:x,isLinksEnabled:C})),[x,C]),[R,A]=E(0),[P,I]=E(o||ff),[D,M]=((e,t)=>{const[n,r]=L(DR,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[n,r]})(n.rows,r),[O,T]=E(-1),k=BR(i,u,n,d,w),[_,q,N,F]=((e,t,n,{head:r,body:o},i)=>{const a=t.atBottom||t.atTop,l=tn({...r,fontWeight:wb},{maxNbrLinesOfText:3}).measureText,s=tn({...o,fontWeight:wb},{maxNbrLinesOfText:3}).measureText,{estimateWidth:u}=tn(r,{maxNbrLinesOfText:3}),c=S((()=>(e,t,n,r,o)=>{let c=25;return c+=28,r&&(c+=24),o&&(c+=20),i||(c=r?99:71),Math.max(l(e)+c,a?s(t)+24+1:0,u(n))}),[u,l,s,a,i]),[d,p]=E(0),[f,m]=E((()=>Pb(e,n,c,i)));ln((()=>{m(Pb(e,n-d,c,i))}),[e,n,d,c]);const h=S((()=>((e,t,n)=>!!(e&&e.length>0)&&e.reduce(((e,t)=>e+t))+t<n)(f,d,n)),[f,d,n]);return[f,m,p,h]})(n.columns,n.totalsPosition,v.width,k,x),j=S((()=>({app:e,selectionsAPI:r,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,styling:k,rect:v,viewService:y})),[e,r,i,a,l,s,u.name(),c.active,d,p,f,m,k,v,y]);return Ni.jsx(VR,{value:{headRowHeight:R,setHeadRowHeight:A,focusedCellCoord:P,setFocusedCellCoord:I,selectionState:D,selectionDispatch:M,hoverIndex:O,setHoverIndex:T,columnWidths:_,setColumnWidths:q,baseProps:j,tableData:n,setYScrollbarWidth:N,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:F,featureFlags:w},children:t})};function KR(e,t){const n=function(e){return WR.get(e)}(e),[r,o]=w(n),[,i]=L((e=>e+1),0),a=M(t),l=M(),s=r();if(void 0===s)throw new Error("You must call useContextSelector inside a valid context.");const u=S((()=>t(s)),[s,t]);return C((()=>{a.current=t,l.current=u}),[s,u,t]),C((()=>{const e=e=>{(a.current&&a.current(e))!==l.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function XR(e){var t;const n=yb();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),vp({...n,direction:e})}const JR=Nx(RE,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${Lr}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${Lr}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),ZR=Nx(RE)({position:"absolute",height:"100%",width:"3px"}),QR=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,isNewHeadCellMenuEnabled:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:c})=>{const d=S((()=>({initWidth:e,columnWidth:e,initX:0})),[e]),p=r||o?Dr.PixelsMin:Dr.PixelsMinTable,f=n?0:1,m={left:r&&!c?d.columnWidth-f:"100%"},h=e=>{const t=Math.max(d.initWidth+e,p);d.columnWidth=t,a(t)},g=()=>{if(d.columnWidth!==d.initWidth){const e={type:Mr.Pixels,pixels:d.columnWidth};l(e)}else null==u||u(!1)},b=e=>{const t=e.clientX-d.initX;h(t)},v=e=>{aR(e),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",v),g()},y=e=>{const t=e.touches[0].clientX-d.initX;h(t)},E=e=>{aR(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",E),g()},C=!r&&s?e=>{if(e.key===Pr.LEFT||e.key===Pr.RIGHT){aR(e);const t=d.columnWidth-d.initWidth,n=5,r=e.key===Pr.LEFT?t-n:t+n;h(r)}else e.key===Pr.SPACE||e.key===Pr.ENTER?(aR(e),s(e),g()):e.key===Pr.ESC&&(aR(e),s(e),h(d.initWidth))}:void 0;return x.createElement(JR,{className:Ir,isLastColumn:n,hoverColor:i,style:m,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",v),null==u||u(!0),d.initX=e.clientX},onDoubleClick:()=>l({type:Mr.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",E),null==u||u(!0),d.initX=e.touches[0].clientX)},onKeyDown:C,onBlur:s,"data-testid":Ir},x.createElement(ZR,{className:Lr}))};function eA(){return eA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eA.apply(this,arguments)}function tA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){nA(e,t,n[t])}))}return e}function nA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oA(e){return"large"===e?"20px":"small"===e?"12px":"inherit"===e?"null":"16px"}var iA=function(e){var t=e.d,n=e.size,r=e.style,o=rA(e,["d","size","style"]);return x.createElement("i",eA({style:tA({fontSize:oA(n),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},r)},o),x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},x.createElement("path",{d:t})))};function aA(e){return x.createElement(iA,Object.assign({d:"M15,4 L1,4 L1,2 L15,2 L15,4 Z M15,14 L1,14 L1,12 L15,12 L15,14 Z M15,9 L1,9 L1,7 L15,7 L15,9 Z"},e))}function lA(){return lA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lA.apply(this,arguments)}const sA=Nx(RE,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),uA=Nx(aA,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),cA=Nx(nw)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),dA=Nx(KE)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),pA=Nx(lw)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),fA=Nx(lw,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden ",boxSizing:"border-box !important",background:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),mA=Nx("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),hA=Nx("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),gA=Nx(AS)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),bA=Nx(LC)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function vA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const yA=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){vA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"}))));let xA={};const SA=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=E(!1),p=M(null),f=O((e=>{e.stopPropagation(),d(!1)}),[d]);return x.createElement(x.Fragment,null,x.createElement(fA,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),xA={}),null!=a&&a.length&&(d(!0),xA[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&x.createElement(mA,null),x.createElement(hA,null,x.createElement(bA,null,x.createElement(o,null)),x.createElement(gA,{variant:"body2"},r)),null!=a&&a.length?x.createElement(yA,null):null),(null==a?void 0:a.length)&&x.createElement(CA,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=xA,m.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(h).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var m,h},EA=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&x.createElement(pA,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>x.createElement(SA,lA({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),CA=({anchorEl:e,open:t,onClose:n,ariaLabel:r,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?x.createElement(cA,lA({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,"aria-labelledby":r},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[EA({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?x.createElement(dA,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null,wA={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},RA=(e,t)=>e.some((e=>t[e]>0));function AA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const PA=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){AA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"}))));function IA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const LA=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){IA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"}))));function DA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const MA=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){DA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"}))));function OA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const TA=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){OA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"}))));function kA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _A=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){kA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function qA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const NA=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"}))));function FA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jA=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){FA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function zA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $A=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function HA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const BA=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){HA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function WA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const GA=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){WA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"}))));let VA=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const UA=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:l,fieldInstance:s,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnColumnAdjuster:d})=>{const p=[];if(n[VA.SORTING]&&p.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"A")),r(!1),await(null==i?void 0:i(e))},icon:PA,enabled:!!e.isActivelySorted||"D"===e.sortDirection,isActive:e.isActivelySorted&&"A"===e.sortDirection,autoFocus:e.isActivelySorted?"A"===e.sortDirection:"D"===e.sortDirection},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"D")),r(!1),await(null==i?void 0:i(e))},icon:TA,enabled:!!e.isActivelySorted||"A"===e.sortDirection,isActive:e.isActivelySorted&&"D"===e.sortDirection,autoFocus:e.isActivelySorted?"D"===e.sortDirection:"A"===e.sortDirection}]}]),e.isDim&&null!=a&&a.select){const e=[];n[VA.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),l()},icon:_A,enabled:!0}]}]),n[VA.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:GA,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAll())},icon:NA,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectPossible())},icon:BA,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAlternative())},icon:jA,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectExcluded())},icon:$A,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.clear())},icon:LA,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return n[VA.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==d||d(c)},icon:MA,enabled:!0}]}]),p},YA=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=un({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:b}=r,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:S,updateSelectionActionsEnabledStatus:w}=(({headerData:e,app:t})=>{const[n,r]=E(null),[o,i]=E(wA);return C((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:O((()=>i(wA)),[]),updateSelectionActionsEnabledStatus:O((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:RA(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:RA(["qSelected"],n.qStateCounts),canSelectPossible:RA(["qOption"],n.qStateCounts),canSelectAlternative:RA(["qAlternative"],n.qStateCounts),canSelectExcluded:RA(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),R=O((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}})}}),[c,b,g]);C((()=>{e||(S(),null!=d&&d.model&&d.model.getLayout().then((e=>{w(e)})).catch((e=>console.error(e))))}),[e,S,w,null==d?void 0:d.model]);const A=O((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?x.createElement(sA,{rightAligned:"right"===h,shouldShowMenuIcon:s},s&&x.createElement(uA,{size:"small",className:Ar,"data-testid":Ar,"aria-controls":e?"nebula-table-utils-head-menu":void 0,"aria-expanded":e?"true":void 0,"aria-haspopup":"true",isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},x.createElement(aA,null)),x.createElement(CA,{open:e,anchorEl:n.current,onClose:A,menuGroups:UA({headerData:r,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:R,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),ariaLabel:"nebula-table-utils-head-menu-button",handleHeadCellMenuKeyDown:a})):null},KA=e=>e.isDark?{background:e.color,borderColor:Qw.DARK_MODE_BORDER,color:Qw.DARK_MODE_TEXT,disabledColor:Qw.DARK_MODE_DISABLED,iconColor:Qw.DARK_MODE_TEXT}:{background:e.color,borderColor:Qw.BORDER_MEDIUM,color:Qw.TEXT,disabledColor:Qw.DISABLED},XA=Nx(RE,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),JA=Nx(Gw,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),ZA=Nx(qE,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),QA=Nx(AS)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),eP=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=S((()=>KA(r.background)),[r]);if(!n.active)return null;const a=o?x.createElement(XA,{footerStyle:i},e):null;return t?j.createPortal(e,t):a},tP=D({}),nP=()=>w(tP),rP=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=S((()=>KA(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=un({translator:d}),E=S((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:v})),[t,n,r,o,i,a,l,s,u,c,y,p,f,m,h,b,g,v]);return x.createElement(tP.Provider,{value:E},e)};let oP=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),iP=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});function aP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lP=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){aP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"}))));function sP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const uP=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){sP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"}))));function cP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const dP=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){cP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})))),pP={FirstPage:uP,PreviousPage:lP,NextPage:yA,LastPage:dP,FirstPageRTL:dP,PreviousPageRTL:yA,NextPageRTL:lP,LastPageRTL:uP},fP=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=nP(),u=pP[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},mP=()=>{const{pageInfo:e,width:t}=nP(),n=0===e.page,{IconComponent:r,styledProps:o}=fP({type:oP.FirstPage,disabledCondition:n,pageNumber:0});return t<=iP.FirstPage?null:x.createElement(ZA,o,x.createElement(r,{height:Rr}))},hP=(e,t,n=!1)=>{n&&e.key===Pr.TAB&&!e.shiftKey&&(aR(e),iR(e.target,t,!1))},gP=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=nP(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=fP({type:oP.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>hP(e,t,r):null;return o<=iP.LastPage?null:x.createElement(ZA,lA({},l,{onKeyDown:s}),x.createElement(a,{height:Rr}))},bP=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=nP(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=fP({type:oP.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>iP.FirstPage&&o>iP.LastPage)&&t.enabled?e=>hP(e,t,r):null;return x.createElement(ZA,lA({},l,{onKeyDown:s}),x.createElement(a,{height:Rr}))},vP=()=>{const{pageInfo:e}=nP(),t=0===e.page,{IconComponent:n,styledProps:r}=fP({type:oP.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return x.createElement(ZA,r,x.createElement(n,{height:Rr}))},yP=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=nP(),{page:o,rowsPerPage:i}=n;if(t<=iP.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return x.createElement(QA,{variant:"caption"},a)},xP=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=nP(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return x.createElement(x.Fragment,null,x.createElement(QA,{variant:"caption",id:d},u,":"),x.createElement(JA,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},SP=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=nP();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>iP.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=x.createElement(x.Fragment,null,t.rowsPerPageOptions.map((e=>x.createElement("option",{key:e,value:e},e))));return x.createElement(xP,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},EP=1e3,CP="…",wP=({totalPages:e,page:t})=>{const n=Math.min(e,EP),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-EP):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return x.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(x.createElement("option",{key:"startMoreOptions",value:CP,disabled:!0},CP)),o<e-1&&a.push(x.createElement("option",{key:"endMoreOptions",value:CP,disabled:!0},CP)),x.createElement(x.Fragment,null,a)},RP=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=nP(),{page:o}=e;if(t<=iP.SelectPage)return null;const i=x.createElement(wP,{totalPages:n,page:o});return x.createElement(xP,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})};var AP=k((e=>x.createElement(rP,e,x.createElement(SP,null),x.createElement(RP,null),x.createElement(yP,null),x.createElement(mP,null),x.createElement(vP,null),x.createElement(bP,null),x.createElement(gP,null))));const PP=e=>x.createElement(eP,e,x.createElement(AP,e)),IP=Qp(ph,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.tableColorFromTheme}))),LP=Qp(ph,{shouldForwardProp:e=>"isNewHeadCellMenuEnabled"!==e&&"lines"!==e&&"allIconsDisabled"!==e&&"wordBreak"!==e&&"headCell"!==e&&"isPagination"!==e&&"virtualizedCell"!==e})((({isNewHeadCellMenuEnabled:e,lines:t,wordBreak:n,allIconsDisabled:r=!1,headCell:o=!1,isPagination:i=!1,virtualizedCell:a=!1})=>({lineHeight:"calc(4/3)",fontSize:"inherit",...(e?o||a:n||1===t)&&{height:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:e&&o&&i?"break-word":"break-all",display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical",...e&&{whiteSpace:r||a?"normal":"nowrap"}}}))),DP=Qp(ph)({overflow:"hidden",textOverflow:"ellipsis"});function MP(e,t){const n=M(!1);C((()=>{n.current?e():n.current=!0}),t)}const OP=(e,t,n)=>{C((()=>{const r=e.current;if(!r)return;const o=e=>((e,t,n)=>{if(0===e.deltaX)return;e.stopPropagation();const r=n.scrollWidth-n.offsetWidth;let{scrollLeft:o}=n,i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(r,i)):Math.max(0,Math.min(r,i)))})(e,"rtl"===t,r),i=e=>{var t;n.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return r.addEventListener("wheel",o),r.addEventListener("scroll",i),()=>{r.removeEventListener("wheel",o),r.removeEventListener("scroll",i)}}),[e,t,n])},TP=e=>{var t;const{key:n,currentTarget:r}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:r;if(n===lf.DOWN||n===lf.UP){const t=e=>n===lf.DOWN?uR(e):cR(e);aR(e);let r=t(o);for(;r;){if("true"!==r.ariaDisabled){r.focus();break}r=t(r)}}},kP=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,isInteractionEnabled:o,handleOpenMenu:i,isNewHeadCellMenuEnabled:a})=>{var l;if(!o)return void aR(e);if(SR(e))return;const s=!(null!==(l=e.currentTarget.closest(".sn-table-cell"))&&void 0!==l&&l.nextSibling);switch(e.key){case lf.LEFT:case lf.RIGHT:aR(e),e.key===lf.RIGHT&&s&&!a?hR(t,r):(a&&fR({focusType:sf.REMOVE_TAB,cell:e.currentTarget}),mR({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:a?sf.FOCUS:sf.FOCUS_BUTTON}));break;case lf.DOWN:aR(e),fR({focusType:sf.REMOVE_TAB,cell:sR(t)}),mR({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:sf.FOCUS});break;case!a&&lf.TAB:((e,t,n,r,o)=>{const i=e.currentTarget.classList.contains("sn-table-head-label");i&&e.shiftKey&&n[1]>0?r([n[0],n[1]-1]):i||e.shiftKey||(o?(aR(e),hR(t,r)):r([n[0],n[1]+1]))})(e,t,n,r,s);break;case lf.C:aR(e),bR(e)&&po(e.currentTarget);break;case a&&lf.ENTER:case a&&lf.SPACE:i&&i(e)}},_P=e=>{const{layout:t,rect:n,theme:r}=KR(GR,(e=>e.baseProps)),o=r.name(),[i,a]=E(0),[l,s]=E(0);return _((()=>{if(e.current){var t;const{offsetWidth:n=0,offsetHeight:r=0,clientWidth:o=0,clientHeight:i=0}=null!==(t=e.current)&&void 0!==t?t:{},l=r-i;s(n-o),a(l)}}),[e,t,n,o]),{xScrollbarWidth:i,yScrollbarWidth:l}},qP=Qp("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),NP=Qp(eb,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.active?"auto":"hidden",border:"none"}))),FP=Qp(Ng,{shouldForwardProp:e=>"showRightBorder"!==e&&"styling"!==e})((({showRightBorder:e,styling:t})=>({tableLayout:"fixed",width:"min-content",borderRight:e?`1px solid ${t.body.borderRightColor}`:void 0}))),jP=()=>Ni.jsxs(Ni.Fragment,{children:[Ni.jsx(qP,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),Ni.jsx(qP,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"})]}),zP=e=>e.stopPropagation(),$P=({href:e,text:t,interactions:n,color:r})=>x.createElement(yC,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:zP,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),HP=({children:e,fontSize:t="",wordBreak:n=!1,isPagination:r=!1,virtualizedCell:o=!1,lines:i=3,headCell:a=!1,allIconsDisabled:l=!1})=>{const s=KR(GR,(e=>e.featureFlags.isNewHeadCellMenuEnabled));if(s&&a)return Ni.jsx(LP,{component:"span",className:"sn-table-cell-text",lines:i,isPagination:r,isNewHeadCellMenuEnabled:!0,headCell:!0,allIconsDisabled:l,children:e});const u=parseInt(t||Cb,10),c=Ni.jsx(LP,{component:"span",className:"sn-table-cell-text",wordBreak:n,lines:i,...s&&{virtualizedCell:o,allIconsDisabled:l},children:e});return n?c:Ni.jsx(DP,{minHeight:u*Eb,maxHeight:u*Eb*i,children:c})},BP=({cell:e,style:t,virtualizedCell:n})=>{var r;const{isNewHeadCellMenuEnabled:o,isLinksEnabled:i}=KR(GR,(e=>e.featureFlags)),{interactions:a,viewService:l}=KR(GR,(e=>e.baseProps)),s=KR(GR,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()}));let u=e.representation.text;return e.representation.type===So.Link&&i&&!s&&(u=Ni.jsx($P,{href:e.representation.url,text:e.representation.text,interactions:a,color:t.cellForegroundColor})),Ni.jsx(HP,{wordBreak:!e.isNumeric,fontSize:t.fontSize,lines:null===(r=l.viewState)||void 0===r?void 0:r.maxLineCount,...o&&{virtualizedCell:n},children:u})},WP=({selectionsAPI:e,selectionDispatch:t,setShouldRefocus:n,keyboard:r,tableWrapperRef:o})=>{C((()=>{const i=()=>{t({type:af.RESET})},a=()=>{t({type:af.CLEAR})},l=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))n();else if(r.enabled){var t;null===(t=r.blur)||void 0===t||t.call(r,!0)}i()};return null==e||e.on("deactivated",i),null==e||e.on("canceled",i),null==e||e.on("confirmed",l),null==e||e.on("cleared",a),()=>{null==e||e.removeListener("deactivated",i),null==e||e.removeListener("canceled",i),null==e||e.removeListener("confirmed",l),null==e||e.removeListener("cleared",a)}}),[e,r,t,n,o])},GP=(e,t,n,r)=>({handleMouseDown:r=>{null==e||e(r);const o=r.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>n({type:af.SELECT_MULTI_END});n({type:af.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&n({type:af.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:e=>{0===e.button&&n({type:af.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:r}})}}),VP=Qp(Wg,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),UP=Qp(fb,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e})((({hover:e,hoverColors:t})=>({"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),YP=Qp(Xg,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...Rb,...e,padding:t.spacing(.5,1.5),verticalAlign:"top"}))),KP=Qp(Xg,{shouldForwardProp:e=>"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...Rb,...e,fontWeight:wb,position:"sticky",padding:r.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t&&n,bottom:!t&&0,verticalAlign:t?"bottom":"top"})));function XP(e){return t=>{const{cell:n,styling:r,announce:o,onMouseDown:i}=t,a=KR(GR,(e=>RR(n,e.selectionState))),l=KR(GR,(e=>e.selectionDispatch)),{handleMouseDown:s,handleMouseOver:u,handleMouseUp:c}=GP(i,n,l,o),d=function(e,t){let n={};switch(t){case of.SELECTED:n=Sb.SELECTED;break;case of.POSSIBLE:n=Sb.POSSIBLE;break;case of.EXCLUDED:n={background:`${Sb.EXCLUDED_BACKGROUND}, ${e.background}`,selectedCellClass:of.EXCLUDED}}return{...e,...n}}(r,a);return Ni.jsx(e,{...t,styling:d,onMouseUp:c,onMouseDown:s,onMouseOver:u})}}function JP(e,t){let n=(r=YP,e=>{const{styling:{selectedCellClass:t,...n},component:o,align:i,children:a,scope:l,tabIndex:s,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,title:m}=e;return Ni.jsx(r,{cellStyle:n,component:o,scope:l,align:i,tabIndex:s,className:`sn-table-cell ${t||""}`,title:m,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,children:a})});var r;return t&&(n=XP(n)),e&&(n=function(e){return t=>{const{cell:n,column:r,styling:o}=t,i=S((()=>HR(o,n.qAttrExps,r.qAttrExprInfoIDs)),[o,n.qAttrExps,r.qAttrExprInfoIDs]);return Ni.jsx(e,{...t,styling:i})}}(n)),n}const ZP=()=>{const{columns:e,totalsPosition:{atTop:t},rows:n}=KR(GR,(e=>e.tableData)),{rootElement:r,selectionsAPI:o,keyboard:i,styling:a,interactions:l}=KR(GR,(e=>e.baseProps)),s=KR(GR,(e=>e.headRowHeight)),u=KR(GR,(e=>e.setFocusedCellCoord)),c=KR(GR,(e=>e.featureFlags.isNewHeadCellMenuEnabled));return Ni.jsx(fb,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,d)=>{const p=[t?1:n.length+1,d],f=t&&0===d&&!i.enabled?0:-1;return Ni.jsx(KP,{totalsStyle:a.totals,headRowHeight:s,atTop:t,align:e.totalsTextAlign,className:"sn-table-cell",tabIndex:c?-1:f,title:l.passive?e.totalInfo:void 0,onKeyDown:e=>{((e,t,n,r,o,i=!1)=>{if(i)aR(e);else if(!SR(e))switch(e.key){case lf.LEFT:case lf.RIGHT:case lf.UP:case lf.DOWN:{aR(e);const i=ER(n,e,o);i===sf.FOCUS&&fR({focusType:sf.REMOVE_TAB,cell:e.currentTarget}),mR({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:i});break}case lf.TAB:wR({evt:e,rootElement:t,setFocusedCellCoord:r,isNewHeadCellMenuEnabled:o});break;case lf.C:aR(e),bR(e)&&po(e.currentTarget);break;case lf.SPACE:e.preventDefault()}})(e,r,p,u,c,null==o?void 0:o.isModal())},onMouseDown:()=>{gR(p,r,u,i)},children:Ni.jsx(HP,{wordBreak:!e.isTotalNumeric,fontSize:a.totals.fontSize,children:e.totalInfo})},e.id)}))})};var QP=k(ZP);const eI=({setShouldRefocus:e,tableWrapperRef:t,announce:n})=>{var r;const{rows:o,columns:i,paginationNeeded:a,totalsPosition:l}=KR(GR,(e=>e.tableData)),{selectionsAPI:s,rootElement:u,keyboard:c,layout:d,interactions:p,styling:{body:{hoverColors:f,lastRowBottomBorder:m,...h}}}=KR(GR,(e=>e.baseProps)),g=KR(GR,(e=>e.setFocusedCellCoord)),b=KR(GR,(e=>e.selectionDispatch)),v=KR(GR,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),y=!!p.active&&!!p.select,x=S((()=>i.map((({qAttrExprInfoIDs:e})=>JP(e.some((e=>"cellBackgroundColor"===e||"cellForegroundColor"===e)),y)))),[i,y]),E=!(null===(r=FR(d))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect);return WP({keyboard:c,selectionDispatch:b,selectionsAPI:s,setShouldRefocus:e,tableWrapperRef:t}),Ni.jsxs(VP,{lastRowBottomBorder:m,children:[l.atTop?Ni.jsx(QP,{}):void 0,o.map(((e,t)=>Ni.jsx(UP,{hoverColors:f,hover:E,tabIndex:-1,className:"sn-table-row sn-table-data-row",rowindex:t,children:i.map(((r,o)=>{const{id:i}=r,d=e[o],f=x[o],m=v||0!==t||0!==o||l.atTop||c.enabled?-1:0,S=HR({},d.qAttrExps,r.qAttrExprInfoIDs);return f&&Ni.jsx(f,{scope:0===o?"row":void 0,component:0===o?"th":void 0,cell:d,column:r,align:d.align,styling:h,tabIndex:m,announce:n,title:p.passive?d.qText:void 0,onKeyDown:e=>{(({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,keyboard:l,paginationNeeded:s,totalsPosition:u,selectionsAPI:c,isNewHeadCellMenuEnabled:d})=>{if(e.currentTarget.classList.contains("excluded"))return void aR(e);const p=null==c?void 0:c.isModal();if(!SR(e,p))switch(e.key){case lf.UP:case lf.DOWN:case lf.LEFT:case lf.RIGHT:aR(e),CR({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:u,isSelectionMode:p,isNewHeadCellMenuEnabled:d});break;case lf.SPACE:aR(e),n.isSelectable&&o&&r({type:af.SELECT,payload:{cell:n,evt:e,announce:a}});break;case lf.ENTER:aR(e),p&&(null==c||c.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case lf.ESC:aR(e),null==c||c.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case lf.TAB:wR({evt:e,rootElement:t,setFocusedCellCoord:i,keyboard:l,isSelectionMode:p,paginationNeeded:s,isNewHeadCellMenuEnabled:d});break;case lf.C:aR(e),bR(e)&&po(e.currentTarget)}})({evt:e,rootElement:u,selectionsAPI:s,cell:d,selectionDispatch:b,isSelectionsEnabled:y,setFocusedCellCoord:g,announce:n,keyboard:c,paginationNeeded:a,totalsPosition:l,isNewHeadCellMenuEnabled:v})},onKeyUp:e=>((e,t)=>{e.key===lf.SHIFT&&t({type:af.SELECT_MULTI_END})})(e,b),onMouseDown:()=>((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,l=o.atTop?i+2:i+1;gR([l,a],t,n,r)})(d,u,g,c,l),children:Ni.jsx(BP,{cell:d,style:S})},i)}))},`row-${t}`))),l.atBottom?Ni.jsx(QP,{}):void 0]})};var tI=k(eI);const nI=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o}=e,{applyColumnWidths:i,interactions:a}=KR(GR,(e=>e.baseProps)),l=KR(GR,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),s=KR(GR,(e=>e.columnWidths)),u=KR(GR,(e=>e.setColumnWidths));if(!a.active)return null;return Ni.jsx(QR,{columnWidth:s[o],isLastColumn:t,keyValue:`adjuster-${o}`,isNewHeadCellMenuEnabled:l,updateWidthCallback:e=>{null==n||n();const t=[...s];t[o]=e,u(t)},confirmWidthCallback:t=>{i(t,e)},handleBlur:e=>((e,t)=>{var n;e.setAttribute("tabIndex","-1");const r=e.closest(".sn-table-cell");let o=null;var i;t?(o=r,null===(i=o)||void 0===i||i.setAttribute("tabIndex","0")):o=null==r?void 0:r.querySelector(".sn-table-head-menu-button"),null===(n=o)||void 0===n||n.focus()})(e.currentTarget,l),setIsAdjustingWidth:r})};function rI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const oI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){rI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"}))));function iI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const aI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){iI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"}))));function lI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){lI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),x.createElement("use",{fillRule:"evenodd"})))),uI=Qp("div")({position:"absolute",left:0,bottom:0}),cI=Qp(Ch,{shouldForwardProp:e=>!["isActivelySorted","textAlign","disabled","isNewHeadCellMenuEnabled"].includes(e)})((({isActivelySorted:e,textAlign:t,disabled:n,theme:r,isNewHeadCellMenuEnabled:o})=>({textAlign:t,height:"auto",...!o&&{maxWidth:"100%"},fontSize:"inherit",fontFamily:"inherit",padding:r.spacing(.5,1),color:"inherit",alignItems:"flex-end",cursor:n?"auto":"pointer",justifySelf:t,alignSelf:"center","&&:focus, &&:hover":{...o&&{background:"transparent",boxShadow:"none"},"& svg":{...!o&&{opacity:e?1:.5}}},"& svg":{opacity:e?1:0,fontSize:Cb},"& .Mui-disabled":{color:"inherit"},"& .MuiButton-endIcon, .MuiButton-startIcon":{marginBottom:"2px",visibility:n?"hidden":"visible"}}))),dI=Qp("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1}),pI=Qp(ph,{shouldForwardProp:e=>"isLocked"!==e&&"isNewHeadCellMenuEnabled"!==e&&"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e})((({theme:e,isLocked:t,isNewHeadCellMenuEnabled:n,shouldShowMenuIcon:r,shouldShowLockIcon:o})=>{const i=r?"24px":"";let a="",l="",s=null;return n?(a=o?`20px 2fr ${i}`:`1fr ${i}`,l=o?`${i} 2fr 20px`:`${i} 1fr`,s=o):(a=t?"20px 2fr 24px":"1fr 24px",l=t?"24px 2fr 20px":"24px 1fr",s=t),{width:"100%",display:"grid",flexDirection:"inherit",gridAutoFlow:"dense",gap:e.spacing(.5),fontSize:"inherit",fontFamily:"inherit",...n&&{alignItems:"end",overflow:"hidden"},"&&:hover, &&:focus-within":{"& .sn-table-head-menu-button":{opacity:1}},"& > div:last-child":{alignSelf:"flex-end"},"&.aligned-left":{gridTemplateColumns:a},"&.aligned-center":{gridTemplateColumns:"24px 2fr 24px","& > div:first-child":{gridColumn:1},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:3}},"&.aligned-right":{gridTemplateColumns:l,"& > div:first-child":{gridColumn:s?3:"unset"},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:1}}}})),fI=Qp("div")({display:"flex",alignSelf:"flex-end"}),mI=Qp(ph)({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit","&.aligned-right":{justifyContent:"flex-start"},"&.aligned-center, &.aligned-left":{justifyContent:"flex-end"}}),hI=Qp(ph,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),gI=Qp(Ch,{shouldForwardProp:e=>"isVisible"!==e&&"isNewHeadCellMenuEnabled"!==e})((({isVisible:e,isNewHeadCellMenuEnabled:t})=>({opacity:e?1:0,...!t&&{"&:focus":{opacity:1}}}))),bI=Qp(qh)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),vI=Qp(Dg)((({theme:e})=>({borderRadius:"4px",margin:e.spacing(0,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}))),yI=Qp("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),xI=Qp(Zh)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0})));Qp("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const SI=({sortDirection:e,isLocked:t,headTextAlign:n})=>{const r="A"===e?Ni.jsx(oI,{height:Cb}):Ni.jsx(aI,{height:Cb}),o=t?Ni.jsx(mI,{className:`aligned-${n}`,children:Ni.jsx(sI,{height:Cb,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===n?{startIcon:r,lockIcon:o}:{endIcon:r,lockIcon:o}};function EI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const CI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){EI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"}))));function wI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const RI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){wI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"}))));function AI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const PI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){AI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M2 6.5h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1m5.5 0h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1m5.5 0h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1"}))));function II(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const LI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){II(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function DI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const MI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){DI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"}))));function OI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const TI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){OI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function kI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _I=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){kI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function qI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const NI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function FI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){FI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})))),zI=new Map,$I={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},HI=(e,t)=>e.some((e=>t[e]>0));function BI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const WI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){BI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"}))));let GI={};const VI=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a})=>{const[l,s]=E(!1),u=M(null);return Ni.jsxs(Ni.Fragment,{children:[Ni.jsxs(vI,{ref:a?u:null,"data-testid":`menu-item-${t}`,className:"sn-table-head-menu-item",onClick:e=>{n&&(n(e),GI={}),null!=a&&a.length&&(s(!0),GI[r]=s)},disabled:!i,autoFocus:e,onKeyDown:TP,children:[Ni.jsxs(yI,{children:[Ni.jsx(xI,{children:o}),Ni.jsx(Qm,{variant:"body2",children:r})]}),null!=a&&a.length?Ni.jsx(WI,{}):null]},t),(null==a?void 0:a.length)&&Ni.jsx(KI,{anchorEl:u.current,open:l,onClose:()=>s(!1),menuGroups:(c=a,d=GI,c.map((e=>e.map((({onClick:e,...t})=>({...t,...e?{onClick:t=>{Object.entries(d).map((([,e])=>e(!1))),e(t)}}:{}})))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"}})]});var c,d},UI=({menuGroup:e})=>e.map((e=>Ni.jsx(VI,{...e},e.id))),YI=({itemGroups:e})=>e.map(((t,n)=>[UI({menuGroup:t}),n<e.length-1?Ni.jsx(bI,{"data-testid":"group-divider",variant:"middle"},"divider"):void 0])),KI=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,buttonId:a,menuId:l})=>r.length?Ni.jsx(Rg,{className:"sn-table-head-menu",id:l,open:t,anchorEl:e,onClose:n,"aria-labelledby":a,...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},children:YI({itemGroups:r})}):null,XI=({column:e,tabIndex:t})=>{const{isDim:n,qLibraryId:r,fieldId:o,headTextAlign:i,pageColIdx:a}=e,{translator:l,embed:s,model:u,interactions:c,layout:d}=KR(GR,(e=>e.baseProps)),p=M(null),f=M(null),[m,h]=E(!1),[g,b]=E(!1),{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:w}=((e,t)=>{const{app:n,layout:r}=KR(GR,(e=>e.baseProps)),[o,i]=E(null),[a,l]=E($I);return C((()=>{if(!(n&&n.getField&&e&&e.isDim&&t))return;const{qLibraryId:o,fieldId:a}=e;if(o){const e=`${n.id}-${o}`;zI.get(e)?i(zI.get(e)):n.createSessionObject(((e,t="$")=>({qInfo:{qType:"tableListbox"},qListObjectDef:{qLibraryId:e,qStateName:t}}))(o,r.qStateName)).then((t=>{const n={selectAll:()=>t.selectListObjectAll("/qListObjectDef"),clear:()=>t.clearSelections("/qListObjectDef").then((e=>e)),selectPossible:()=>t.selectListObjectPossible("/qListObjectDef"),selectAlternative:()=>t.selectListObjectAlternative("/qListObjectDef"),selectExcluded:()=>t.selectListObjectExcluded("/qListObjectDef")};i(n),zI.set(e,n)}))}else n.getField(a,r.qStateName).then(i)}),[n,e,r.qStateName,t]),{fieldInstance:o,selectionActionsEnabledStatus:a,resetSelectionActionsEnabledStatus:O((()=>l($I)),[]),updateSelectionActionsEnabledStatus:t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&l({canSelectAll:HI(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:HI(["qSelected"],n.qStateCounts),canSelectPossible:HI(["qOption"],n.qStateCounts),canSelectAlternative:HI(["qAlternative"],n.qStateCounts),canSelectExcluded:HI(["qAlternative","qExcluded"],n.qStateCounts)})}}})(e,m),R=KR(GR,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),A=O((()=>{const e=r?{qLibraryId:r,type:"dimension"}:o;s.__DO_NOT_USE__.popover(f.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},stateName:d.qStateName}),s.on("fieldPopoverClose",(()=>{b(!1)}))}),[s,o,r,d.qStateName]),P=S((()=>[...n&&c.select?[[{id:1,itemTitle:l.get("SNTable.MenuItem.Search"),onClick:e=>{e.stopPropagation(),h(!1),b(!0),A()},icon:Ni.jsx(LI,{}),enabled:!0}],[{id:1,itemTitle:l.get("SNTable.MenuItem.Selections"),icon:Ni.jsx(jI,{}),enabled:!0,subMenus:[[{id:1,itemTitle:l.get("SNTable.MenuItem.SelectAll"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectAll())},icon:Ni.jsx(MI,{}),enabled:y.canSelectAll},{id:2,itemTitle:l.get("SNTable.MenuItem.SelectPossible"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectPossible())},icon:Ni.jsx(NI,{}),enabled:y.canSelectPossible},{id:3,itemTitle:l.get("SNTable.MenuItem.SelectAlternative"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectAlternative())},icon:Ni.jsx(TI,{}),enabled:y.canSelectAlternative},{id:4,itemTitle:l.get("SNTable.MenuItem.SelectExcluded"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectExcluded())},icon:Ni.jsx(_I,{}),enabled:y.canSelectExcluded}],[{id:1,itemTitle:l.get("SNTable.MenuItem.ClearSelections"),onClick:async()=>{h(!1),await(null==v?void 0:v.clear())},icon:Ni.jsx(CI,{}),enabled:y.canClearSelections}]]}]]:[],[{id:1,itemTitle:l.get("SNTable.MenuItem.AdjustColumnSize"),onClick:e=>{aR(e),h(!1),pR(p)},icon:Ni.jsx(RI,{}),enabled:!0}]]),[n,c.select,l,y,A,v]);C((()=>{m||x()}),[m,x]);const I=d.qInfo.qId,L=`sn-table-head-menu-button-${a}-${I}`,D=`sn-table-head-menu-${a}-${I}`;return P.length?Ni.jsxs(hI,{rightAligned:"right"===i,children:[Ni.jsx(gI,{isVisible:g||m,ref:p,size:"small",tabIndex:t,className:"sn-table-head-menu-button",id:L,"aria-controls":m?D:void 0,"aria-expanded":m?"true":void 0,"aria-haspopup":"true",onClick:async()=>{if(!m&&u){const e=await u.getLayout();w(e)}h(!m)},"aria-label":l.get("SNTable.Accessibility.ColumnOptions"),isNewHeadCellMenuEnabled:R,children:Ni.jsx(PI,{height:Cb})}),Ni.jsx("div",{ref:f}),Ni.jsx(KI,{open:m,anchorEl:p.current,onClose:()=>h(!1),menuGroups:P,buttonId:L,menuId:D})]}):null},JI=({children:e,column:t,isInteractionEnabled:n,open:r,setOpen:o,getHeadCellsIconsVisibilityStatus:i})=>{const{shouldShowLockIcon:a,shouldShowMenuIcon:l}=i(),{keyboard:s,translator:u,changeSortOrder:c,interactions:d,embed:p,app:f,model:m}=KR(GR,(e=>e.baseProps)),h=KR(GR,(e=>0===e.focusedCellCoord[0])),g=KR(GR,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),b=M(null),v=M(null),{startIcon:y,endIcon:x,lockIcon:S}=SI(t),E=n&&dR(s)?0:-1,C={A:u.get("SNTable.Accessibility.Ascending"),D:u.get("SNTable.Accessibility.Descending")};return Ni.jsxs(pI,{isLocked:Boolean(S),className:`aligned-${t.headTextAlign}`,isNewHeadCellMenuEnabled:g,...g&&{shouldShowMenuIcon:l,shouldShowLockIcon:a},children:[(g?a:S)&&Ni.jsx(fI,{children:S}),Ni.jsxs(cI,{className:"sn-table-head-label",isActivelySorted:t.isActivelySorted,textAlign:t.headTextAlign,color:"inherit",size:"small",...!g&&{startIcon:y,endIcon:x},tabIndex:g?-1:E,disabled:!n,onClick:g?()=>{}:()=>n&&c(t),isNewHeadCellMenuEnabled:g,children:[e,h&&Ni.jsx(dI,{"data-testid":`VHL-for-col-${t.pageColIdx}`,children:`${C[t.sortDirection]} ${u.get("SNTable.SortLabel.PressSpaceToSort")}`})]}),n&&(g?Ni.jsxs(Ni.Fragment,{children:[Ni.jsx(YA,{headerData:t,translator:u,anchorRef:b,handleHeadCellMenuKeyDown:TP,menuAvailabilityFlags:{[VA.SORTING]:!0,[VA.SEARCHING]:!0,[VA.SELECTIONS]:!0,[VA.ADJUST_HEADER_SIZE]:!0},open:r,setOpen:o,interactions:d,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),c(t,n))},searchRelatedArgs:{embed:p,listboxRef:v},selectionRelatedArgs:{app:f,model:m},adjustHeaderSizeRelatedArgs:{setFocusOnColumnAdjuster:pR},shouldShowMenuIcon:!g||l}),Ni.jsx(uI,{ref:v}),Ni.jsx(uI,{ref:b})]}):Ni.jsx(XI,{column:t,tabIndex:E}))]})},ZI=({styling:e,column:t,columnWidths:n,isNewHeadCellMenuEnabled:r})=>{const{measureText:o}=tn({fontSize:e.head.fontSize,fontFamily:e.head.fontFamily,fontWeight:wb}),i=O((()=>{var e;if(!r)return{shouldShowMenuIcon:!0,shouldShowSortIcon:!0,shouldShowLockIcon:!0};let i=!1,a=!1,l=!1;const s=t.isLocked,u=t.isActivelySorted,c=(null!==(e=n[t.colIdx])&&void 0!==e?e:n[t.pageColIdx])-25,d=s?24:0,p=u?20:0;let f=o(t.label);return s&&f+d<=c&&(l=!0,f+=d,u&&f+p<=c&&(a=!0,f+=p)),!s&&u&&f+p<=c&&(a=!0,f+=p),f+28<=c&&(i=!0,f+=28),{shouldShowMenuIcon:i,shouldShowSortIcon:a,shouldShowLockIcon:l}}),[r,t.colIdx,t.pageColIdx,t.isLocked,t.label,t.isActivelySorted,n,o]);return{getHeadCellsIconsVisibilityStatus:i,allIconsDisabled:Object.values(i()).every((e=>!1===e))}},QI=({isInteractionEnabled:e,columnsData:t})=>{const[n,r]=E(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,n]=E(!1);return ln((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}})([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e&&!(e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(Ir)})(t)&&!o&&r(!0),setIsAdjustingWidth:i}},eL=(e,t,n,r)=>{const o=e&&t&&n;return e=>o&&e===r},tL=Qp(Xg,{shouldForwardProp:e=>"headerStyle"!==e&&"isNewHeadCellMenuEnabled"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,isNewHeadCellMenuEnabled:t,interactions:n,hoverBackground:r,background:o})=>({...Rb,...e,...t&&{cursor:"pointer",background:o},pointer:"cursor",verticalAlign:"bottom","&&:focus-visible":{...!t&&{boxShadow:"none"},...t&&{background:n.active?r:o}},...t&&{"&&:hover":{background:n.active?r:o}}}))),nL=Qp("div")({display:"flex",alignItems:"center"}),rL=Qp("span",{shouldForwardProp:e=>"align"!==e})((({align:e})=>({minWidth:Cb,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),oL=({column:e,columnIndex:t,columnsLength:n})=>{const{styling:r,interactions:o,rootElement:i,keyboard:a,styling:{head:{activeBackground:l,background:s,hoverBackground:u}}}=KR(GR,(e=>e.baseProps)),{columns:c}=KR(GR,(e=>e.tableData)),d=KR(GR,(e=>e.columnWidths)),p=KR(GR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),f=KR(GR,(e=>e.setFocusedCellCoord)),m=KR(GR,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),h=KR(GR,(({focusedCellCoord:[e,n]})=>0===e&&n===t)),g=!!o.active&&!p,{open:b,setOpen:v,handleOpenMenu:y,setIsAdjustingWidth:x}=QI({isInteractionEnabled:g,columnsData:c}),{getHeadCellsIconsVisibilityStatus:S,allIconsDisabled:E}=ZI({styling:r,column:e,columnWidths:d,isNewHeadCellMenuEnabled:m}),C=e.isActivelySorted?uf[e.sortDirection]:void 0,w=t===n-1,R=[0,e.pageColIdx],A={width:d[t]-(w?8:9),zIndex:c.length-t},{startIcon:P,endIcon:I}=SI(e),L=!!m&&0===e.colIdx&&!a.enabled&&h&&g?0:-1,D=S(),M=eL(m,D.shouldShowSortIcon,e.isActivelySorted,e.headTextAlign);return Ni.jsxs(tL,{headerStyle:r.head,style:A,align:e.headTextAlign,className:"sn-table-head-cell sn-table-cell","aria-sort":C,tabIndex:L,title:o.passive?e.label:void 0,onKeyDown:e=>kP({evt:e,rootElement:i,cellCoord:R,setFocusedCellCoord:f,isInteractionEnabled:g,handleOpenMenu:y,isNewHeadCellMenuEnabled:m}),onMouseDown:e=>(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,keyboard:o,isInteractionEnabled:i})=>{var a;e.preventDefault(),i&&(r(n),o.enabled&&!o.active?null===(a=o.focus)||void 0===a||a.call(o):fR({focusType:sf.FOCUS_BUTTON,cell:lR(t,n)}))})({evt:e,rootElement:i,cellCoord:R,setFocusedCellCoord:f,keyboard:a,isInteractionEnabled:g}),isNewHeadCellMenuEnabled:m,background:b?l:s,hoverBackground:u,interactions:o,onClick:y,children:[Ni.jsx(JI,{column:e,isInteractionEnabled:g,open:b,setOpen:v,getHeadCellsIconsVisibilityStatus:S,children:m?Ni.jsxs(nL,{children:[M("right")&&Ni.jsx(rL,{align:e.headTextAlign,children:P}),Ni.jsx(HP,{allIconsDisabled:E,isPagination:!0,headCell:!0,children:e.label}),M("left")&&Ni.jsx(rL,{align:e.headTextAlign,children:I})]}):Ni.jsx(HP,{fontSize:r.head.fontSize,children:e.label})}),Ni.jsx(nI,{column:e,isLastColumn:w,setIsAdjustingWidth:x})]},e.id)},iL=()=>{var e;const{columns:t}=KR(GR,(e=>e.tableData)),{styling:n,viewService:r}=KR(GR,(e=>e.baseProps)),o=KR(GR,(e=>e.setHeadRowHeight)),i=KR(GR,(e=>e.columnWidths)),a=M(null);return C((()=>{a.current&&o(a.current.clientHeight)}),[n.head.fontSize,i,o]),null!==(e=r.viewState)&&void 0!==e&&e.skipHeader?null:Ni.jsx(ab,{children:Ni.jsx(fb,{ref:a,className:"sn-table-row sn-table-head-row",children:t.map(((e,n)=>Ni.jsx(oL,{column:e,columnIndex:n,columnsLength:t.length},e.id)))})})};var aL=k(iL);const lL=e=>{var t,n;const{pageInfo:r,setPageInfo:o,direction:i,footerContainer:a,announce:l}=e,{page:s,rowsPerPage:u}=r,{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:f,rows:m,columns:h,totalsPosition:g}=KR(GR,(e=>e.tableData)),{rootElement:b,keyboard:v,translator:y,theme:x,interactions:S,styling:E,viewService:w,layout:R,rect:A}=KR(GR,(e=>e.baseProps)),P=KR(GR,(e=>e.focusedCellCoord)),I=KR(GR,(e=>e.setFocusedCellCoord)),L=KR(GR,(e=>e.setYScrollbarWidth)),D=KR(GR,(e=>e.showRightBorder)),T=KR(GR,(e=>e.selectionDispatch)),k=KR(GR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),_=KR(GR,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),q=M(!1),N=M(null),F=M(null),{yScrollbarWidth:j}=_P(N),z=`${y.get("SNTable.Accessibility.RowsAndColumns",[String(m.length+1),String(h.length)])} ${y.get("SNTable.Accessibility.NavigationInstructions")}`,$=Ai(R,w),H=$&&null!==(t=w.scrollLeft)&&void 0!==t?t:0,B=$&&null!==(n=w.rowPartialHeight)&&void 0!==n?n:0,W=O((()=>{q.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),G=O((e=>{o({...r,page:e}),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),p.toString()]],politeness:"assertive"})}),[r,o,p,l]),V=O((e=>{o({...r,page:0,rowsPerPage:e}),l({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[l,r,o]);return((e,t,n)=>{C((()=>{const r=e.current;if(!r)return;const o=e=>((e,t,n)=>{const r=e.currentTarget,o=e.relatedTarget,i=!(null==r||!r.contains(o)),a=null==o?void 0:o.closest(".sn-table-head-menu");if(n.enabled&&!i&&!a&&!t.current&&r){var l;const e=r.querySelector(".sn-table-announcer-1"),t=r.querySelector(".sn-table-announcer-2");e&&t&&(e.innerHTML="",t.innerHTML=""),null===(l=n.blur)||void 0===l||l.call(n,!1)}})(e,t,n);return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}}),[e,t,n])})(F,q,v),OP(N,i,w),(()=>{const{rootElement:e,keyboard:t}=KR(GR,(e=>e.baseProps)),n=KR(GR,(e=>e.focusedCellCoord)),r=KR(GR,(e=>e.featureFlags.isNewHeadCellMenuEnabled));ln((()=>{let o=r||n[0]>0?sf.FOCUS:sf.FOCUS_BUTTON;o=t.active?o:sf.BLUR;const i=t.active?lR(e,n):sR(e);fR({focusType:o,cell:i})}),[t.active,e,r])})(),C((()=>{const e=N.current;e&&(e.scrollLeft=H,e.scrollTop=B)}),[r,d,H,B]),MP((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:l,isNewHeadCellMenuEnabled:s})=>{fR({focusType:sf.REMOVE_TAB,cell:sR(t)});const u=[l.atTop?2:1,e[1]],c=r?u:s?ff:mf;if(dR(i)){const e=n.current?sf.FOCUS:sf.ADD_TAB;n.current=!1;const o=lR(t,c);if(fR({focusType:e,cell:o}),r){var d;const e=null==o||null===(d=o.classList)||void 0===d?void 0:d.contains("selected");a({keys:[`${null==o?void 0:o.textContent},`,e?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.NotSelectedValue"]})}}o(c)})({focusedCellCoord:P,rootElement:b,shouldRefocus:q,setFocusedCellCoord:I,isSelectionMode:k,keyboard:v,announce:l,totalsPosition:g,isNewHeadCellMenuEnabled:_})}),[m.length,d,c,s,_]),MP((()=>{L(j)}),[j]),MP((()=>{T({type:af.UPDATE_PAGE_ROWS,payload:{pageRows:m}})}),[m]),Ni.jsxs(IP,{ref:F,background:x.background,dir:i,onKeyDown:e=>{(({evt:e,totalRowCount:t,page:n,rowsPerPage:r,handleChangePage:o,setShouldRefocus:i,keyboard:a,isSelectionMode:l})=>{if(vR(e)){aR(e);const a=Math.ceil(t/r)-1;e.key===lf.RIGHT&&n<a?(i(),o(n+1)):e.key===lf.LEFT&&n>0&&(i(),o(n-1))}else if(e.key===lf.ESC&&a.enabled&&!l){var s;aR(e),null===(s=a.blur)||void 0===s||s.call(a,!0)}else yR(e.key)&&aR(e)})({evt:e,totalRowCount:d,page:s,rowsPerPage:u,handleChangePage:G,setShouldRefocus:W,keyboard:v,isSelectionMode:k})},"data-testid":"sn-table",children:[Ni.jsx(jP,{}),Ni.jsx(NP,{ref:N,className:"sn-table-container",fullHeight:a||!S.active||!f,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:Ni.jsxs(FP,{styling:E,showRightBorder:D,stickyHeader:!0,"aria-label":z,children:[Ni.jsx(aL,{}),Ni.jsx(tI,{...e,setShouldRefocus:W,tableWrapperRef:F})]})}),Ni.jsx(PP,{footerContainer:a,pageInfo:r,paginationNeeded:f,theme:x,totalRowCount:d,totalColumnCount:c,totalPages:p,keyboard:v,translator:y,interactions:S,rect:A,layout:R,handleChangePage:G,handleChangeRowsPerPage:V,isSelectionMode:k})]})};var sL=k(lL);function uL(){return uL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uL.apply(this,arguments)}function cL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dL(e,t){return dL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dL(e,t)}function pL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dL(e,t)}var fL=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function mL(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||fL(r)&&fL(o)))return!1;var r,o;return!0}function hL(e,t){var n;void 0===t&&(t=mL);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}function gL(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var bL="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function vL(e){cancelAnimationFrame(e.id)}function yL(e,t){var n=bL();var r={id:requestAnimationFrame((function o(){bL()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var xL=-1;function SL(e){if(void 0===e&&(e=!1),-1===xL||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),xL=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return xL}var EL=null;function CL(e){if(void 0===e&&(e=!1),null===EL||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?EL="positive-descending":(t.scrollLeft=1,EL=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),EL}return EL}var wL=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function RL(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,cL(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:cL(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=hL((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=hL((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=hL((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(CL()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&vL(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=yL(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}pL(t,e),t.getDerivedStateFromProps=function(e,t){return AL(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=SL();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(CL()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&vL(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?wL:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),A=w[0],P=w[1],I=[];if(r>0&&g)for(var L=A;L<=P;L++)for(var D=E;D<=C;D++)I.push(R(t,{columnIndex:D,data:d,isScrolling:v?x:void 0,key:f({columnIndex:D,data:d,rowIndex:L}),rowIndex:L,style:this._getItemStyle(L,D)}));var M=a(this.props,this._instanceProps),O=l(this.props,this._instanceProps);return R(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:uL({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:I,ref:s,style:{height:M,pointerEvents:x?"none":void 0,width:O}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof r){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var AL=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},PL=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},IL=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},LL=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},DL=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?ML(e,t,n,i,0,r):OL(e,t,n,Math.max(0,i),r)},ML=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=LL(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},OL=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&LL(e,t,r,n).offset<o;)r+=a,a*=2;return ML(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},TL=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=LL(e,t,n,i),u="column"===e?IL(t,i):PL(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},kL=RL({getColumnOffset:function(e,t,n){return LL("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return DL("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=LL("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=LL("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:PL,getEstimatedTotalWidth:IL,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return TL("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return TL("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return LL("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return DL("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=LL("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=LL("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),_L=function(e,t){return e};function qL(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,cL(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:cL(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=hL((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=hL((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=hL((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(CL()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&vL(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=yL(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}pL(t,e),t.getDerivedStateFromProps=function(e,t){return NL(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?SL():0:s.scrollHeight>s.clientHeight?SL():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(CL()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&vL(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?_L:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],A=[];if(u>0)for(var P=C;P<=w;P++)A.push(R(t,{data:c,key:p(P,c),index:P,isScrolling:b?y:void 0,style:this._getItemStyle(P)}));var I=r(this.props,this._instanceProps);return R(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:uL({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(l||s||"div",{children:A,ref:a,style:{height:x?"100%":I,pointerEvents:y?"none":void 0,width:x?I:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var NL=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},FL=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},jL=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=FL(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},zL=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&FL(e,n,t).offset<r;)n+=i,i*=2;return jL(e,t,Math.min(n,o-1),Math.floor(n/2),r)},$L=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},HL=qL({getItemOffset:function(e,t,n){return FL(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:$L,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=FL(e,t,o),p=$L(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=m-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?jL(e,t,o,0,n):zL(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=FL(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=FL(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function BL(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var WL=["style"],GL=["style"];function VL(e,t){var n=e.style,r=gL(e,WL),o=t.style,i=gL(t,GL);return!BL(n,o)&&!BL(r,i)}const UL=({style:e})=>Ni.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var YL=x.memo(UL,VL);const KL=()=>{},XL=e=>e.preventDefault();const JL=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const{rowsInPage:i,columns:a,bodyStyle:l,isHoverEnabled:s}=r,u=KR(GR,(e=>e.hoverIndex===t)),c=KR(GR,(e=>e.setHoverIndex)),{interactions:d}=KR(GR,(e=>e.baseProps)),p=KR(GR,(e=>e.showRightBorder)),f=null===(o=i[t])||void 0===o?void 0:o[e],{handleMouseDown:m,handleMouseOver:h,handleMouseUp:g,cellSelectionState:b}=function(e){const{interactions:t}=KR(GR,(e=>e.baseProps)),n=KR(GR,(e=>e.selectionDispatch)),r="object"==typeof e,o=KR(GR,(t=>r?RR(e,t.selectionState):of.INACTIVE)),i=t.active&&t.select;if(r&&i){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=GP(XL,e,n,KL);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(f);if("object"==typeof f){const r=((e,t,n,r,o)=>{const{hoverColors:i,lastRowBottomBorder:a,...l}=o,s=t.qAttrExprInfoIDs.length?HR(l,e.qAttrExps,t.qAttrExprInfoIDs):l;return r===of.SELECTED?{...s,...Sb.SELECTED}:r===of.EXCLUDED?{...s,color:n?null==i?void 0:i.color:s.color,background:`${Sb.EXCLUDED_BACKGROUND}, ${n?null==i?void 0:i.background:s.background}`}:n?{...s,...i}:s})(f,a[e],s&&u,b,l),o={rowindex:t,columnindex:e};return Ni.jsx("div",{className:`sn-table-cell ${b}`,style:{...n,...r,display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:f.isLastRow?"0px":"1px",borderRightWidth:f.isLastColumn&&!p?"0px":"1px",borderStyle:"solid",justifyContent:f.align,padding:"4px 12px",boxSizing:"border-box",cursor:"default"},onMouseDown:m,onMouseUp:g,onMouseOver:h,onMouseEnter:s?()=>c(t):void 0,onMouseLeave:s?()=>c(-1):void 0,title:d.passive?f.qText:void 0,...o,children:Ni.jsx(BP,{cell:f,style:r,virtualizedCell:!0})})}return Ni.jsx(YL,{style:{...n,...l,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var ZL=x.memo(JL,VL);const QL=e=>{const t=M(e);return t.current=e,t},eD=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,tD=(e,t,n,r,o)=>{const i=e[n];if(!i)return!0;for(let e=t;e<t+r;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},nD=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some((e=>!(null!=e&&e[t])))},rD=(e,t,n,r,o,i)=>{e.forEach((e=>{e.qMatrix.forEach(((a,l)=>{const s=e.qArea.qTop-t.page*t.rowsPerPage,{row:u,pageRowIdx:c}=((e,t,n,r,o,i,a,l)=>{var s;const{qSize:u}=a.qHyperCube,c=r.qTop+n,d=o+n,p=null!==(s=e[d])&&void 0!==s?s:[];return t.forEach(((e,t)=>{var n;const o=t+r.qLeft,{colIdx:a,isDim:s,isLocked:f,bodyTextAlign:m,selectionColIdx:h,qAttrExprInfoIDs:g,representation:b}=i[o],v=bi(e);p[o]={...e,align:wi(e,m),rowIdx:c,colIdx:a,isSelectable:s&&!f,pageRowIdx:d,pageColIdx:o,selectionColIdx:h,isLastRow:c===u.qcy-1,isLastColumn:o===u.qcx-1,isNumeric:v,representation:hi(e,b,g.findIndex((e=>"url"===e)),g.findIndex((e=>"urlLabel"===e)))},l(null!==(n=e.qText)&&void 0!==n?n:"",d,o,v)})),{row:p,pageRowIdx:d}})(n,a,l,e.qArea,s,r,o,i);n[c]=u}))}))},oD=({layout:e,model:t,theme:n,initialDataPages:r,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:l,columns:s,setCellSize:u,gridState:c})=>{const d=M([]),p=QL(u),f=O(((t,n)=>{const r=Array.isArray(n)?n.slice(0,i):(e=>Array(e).fill(void 0))(i);return rD(t,o,r,s,e,p.current),d.current=r,r}),[i,o,s,e,p]),[m,h]=E((()=>f(null!=r?r:[])));ln((()=>{h(f(null!=r?r:[]))}),[r]);const g=((e,t)=>{const n=M(new Set),r=M(new Set),o=M(new Set),i=QL(e),a=QL(t),l=S((()=>({enqueue:e=>{const t=eD(e);o.current.has(t)||(n.current.add(e),o.current.add(t),1===n.current.size&&setTimeout((async()=>{const e=Array.from(n.current.values());if(0!==e.length){n.current.clear(),r.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const n=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(n,e)?n.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(n,e)?n.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),n=await i.current(t);r.current.has(e)&&a.current(n)}catch(t){e.forEach((e=>{o.current.delete(eD(e))}))}finally{r.current.delete(e)}}}),75))},clear:()=>{n.current.clear(),r.current.clear(),o.current.clear()}})),[i,a]);return l})((e=>t.getHyperCubeData("/qHyperCubeDef",e)),(e=>h((t=>f(e,t))))),b=O(((e,t,n,r)=>{for(let o=e;o<e+n;o++)if(nD(d.current,o,t,r)){const e={qLeft:o,qTop:t,qHeight:r,qWidth:1};g.enqueue(e)}}),[d,g]),v=O(((e,t,n,r)=>{for(let i=t;i<t+r;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(tD(d.current,e,t,n,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:n};g.enqueue(t)}}}),[d,g,o]),y=n.name();return C((()=>{const{qcx:t,qcy:n}=e.qHyperCube.qSize,r=c.current.overscanRowStartIndex,i=c.current.overscanColumnStartIndex,s=r+o.page*o.rowsPerPage,u=t-i,d=o.rowsPerPage-r,p=Math.min(100,u,t,l+5),f=Math.min(100,d,n,a+25);return v(i,s,p,f),()=>{g.clear()}}),[e,a,l,o,g,v,c,y]),{rowsInPage:m,loadRows:v,loadColumns:b}},iD=({style:e,columnWidths:t,rowHeight:n,pageInfo:r,rowCount:o,gridRef:i,lineRef:a,columns:l,fontWeight:s,gridState:u,isSnapshot:c,viewService:d,maxNbrLines:p=3,allColumnsIconVisibilityStatus:f,isNewHeadCellMenuEnabled:m=!1})=>{var h;const g=M({lastScrollToRatio:0,resetAfterRowIndex:0,heights:[],totalHeight:0,count:0,measuredCells:new Map}),{layout:b,rect:v}=KR(GR,(e=>e.baseProps)),[y,x]=E(n||24),{measureText:S,estimateLineCount:C}=tn({...e,fontWeight:s}),w=parseInt(null!==(h=e.fontSize)&&void 0!==h?h:Rb.fontSize,10)*MR,R=8e6/o-8-1,A=Math.max(0,Math.min(p,Math.round(R/w))),P=O(((e,n,r)=>{const o=l?(({isNewHeadCellMenuEnabled:e,width:t,column:n,columnIconsVisibilityStatus:r})=>{let o=0;if(!e)return o=t-71,o-=n.isLocked?24:0,Math.max(0,o);let i=0,a=0,l=0;if(r){const{shouldShowLockIcon:e,shouldShowSortIcon:t,shouldShowMenuIcon:n}=r,o=4;i=e?20+o:0,a=t?20:0,l=n?o+24:0}return o=t-25-i-a-l,Math.max(0,o)})({isNewHeadCellMenuEnabled:m,width:t[n],column:l[n],columnIconsVisibilityStatus:null==f?void 0:f[n]}):(e=>Math.max(0,e-24-1))(t[n]),i=Math.min(A,C({text:e.trim(),maxWidth:o,isNumeric:r}));return Math.max(1,i)*w+8+1}),[t,w,A,l,C,f,m]),I=O(((e,t,n,r=!1,o=!1)=>{const i=`${t}-${n}`;if(g.current.measuredCells.has(i))return;g.current.measuredCells.set(i,[e,t,n,r]);const a=P(e,n,r),l=g.current.heights[t],s=a-l;s>0?(g.current.totalHeight+=s,g.current.heights[t]=a):void 0===l&&(g.current.count+=1,g.current.totalHeight+=a,g.current.heights[t]=a),o||c||x(g.current.totalHeight/g.current.count)}),[P,c]),L=O((e=>{var t;return null!==(t=g.current.heights[e])&&void 0!==t?t:y}),[g,y]),D=O((()=>{g.current.lastScrollToRatio=0,g.current.resetAfterRowIndex=0,g.current.heights=[],g.current.totalHeight=0,g.current.count=0,g.current.measuredCells.clear()}),[g]),T=QL(I),k=O((()=>{const e=new Map(g.current.measuredCells);D(),e.forEach((([e,t,n,r])=>{T.current(e,t,n,r,!0)})),c||x(g.current.totalHeight/g.current.count)}),[D,c,T]);ln((()=>{D()}),[b,r]),ln((()=>{k()}),[S,v.width]);return null!=i&&i.current?i.current.resetAfterRowIndex(g.current.resetAfterRowIndex,!1):null!=a&&a.current&&a.current.resetAfterIndex(g.current.resetAfterRowIndex,!1),d.estimatedRowHeight=y,{setCellSize:I,getRowHeight:L,rowMeta:g,estimatedRowHeight:y,maxLineCount:A,resizeVisibleCells:e=>{if(!u)return;D();const{overscanRowStartIndex:t,overscanRowStopIndex:n}=u.current,r=Math.min(n,b.qHyperCube.qSize.qcy-1);for(let n=t;n<=r;n++){var o;const t=null!==(o=e[n])&&void 0!==o?o:{};Object.values(t).forEach((e=>{var t;"object"==typeof e&&I(null!==(t=e.qText)&&void 0!==t?t:"",n,e.pageColIdx,e.isNumeric)}))}},resizeAllCells:k,resetRowMeta:D}};var aD;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(aD||(aD={}));const lD={enabled:!1},sD=()=>{},uD={current:null};const cD=(e,t,n,r,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(n.height/o)),l=S((()=>r.reduce(((e,t)=>e.width<n.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[n,r]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:l}},dD=({columnIndex:e,data:t,rowIndex:n})=>{var r;const o=null===(r=t.rowsInPage[n])||void 0===r?void 0:r[e];return`${null==o?void 0:o.qElemNumber}-${null==o?void 0:o.qText}-${n}-${e}`},pD={overflow:"hidden",willChange:"auto"};var fD=k(T(((e,t)=>{var n,r;const{rect:o,columns:i,innerForwardRef:a,pageInfo:l,bodyStyle:s,rowHeight:u,headerAndTotalsHeight:c,syncHeight:d}=e,{layout:p,model:f,theme:m,viewService:h}=KR(GR,(e=>e.baseProps)),g=KR(GR,(e=>e.columnWidths)),b=KR(GR,(e=>e.initialDataPages)),v=null===(n=h.viewState)||void 0===n?void 0:n.maxLineCount,y=KR(GR,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),x=M(null),E=M({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),w=!(null===(r=FR(p))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{scrollHandler:R,verticalScrollDirection:A,horizontalScrollDirection:P}=(()=>{const e=M(0),t=M(0),n=M(aD.None),r=M(aD.None);return{scrollHandler:O((({scrollTop:o,scrollLeft:i})=>{o>t.current?n.current=aD.Down:o<t.current?n.current=aD.Up:n.current=aD.None,i>e.current?r.current=aD.Right:i<e.current?r.current=aD.Left:r.current=aD.None,t.current=o,e.current=i}),[t,e,n,r]),verticalScrollDirection:n,horizontalScrollDirection:r}})(),{rowCount:I,visibleRowCount:L,visibleColumnCount:D}=cD(p,l,o,g,u),{setCellSize:T,getRowHeight:k,rowMeta:q,estimatedRowHeight:F,maxLineCount:j,resizeVisibleCells:z}=iD({pageInfo:l,style:s,rowHeight:u,columnWidths:g,gridRef:x,rowCount:I,gridState:E,isSnapshot:!!p.snapshotData,viewService:h,maxNbrLines:v,isNewHeadCellMenuEnabled:y}),{rowsInPage:$,loadRows:H,loadColumns:B}=oD({layout:p,model:f,theme:m,initialDataPages:b,pageInfo:l,rowCount:I,visibleRowCount:L,visibleColumnCount:D,columns:i,setCellSize:T,gridState:E}),W=(({layout:e,loadRows:t,loadColumns:n,verticalScrollDirection:r,horizontalScrollDirection:o,rowCount:i,pageInfo:a,gridState:l,viewService:s})=>O((({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p,visibleColumnStartIndex:f,visibleColumnStopIndex:m,visibleRowStartIndex:h,visibleRowStopIndex:g})=>{if(l.current.overscanColumnStartIndex=u,l.current.overscanColumnStopIndex=c,l.current.overscanRowStartIndex=d,l.current.overscanRowStopIndex=p,d>i)return;const b=u,v=d+a.page*a.rowsPerPage,y=c-u+1,x=p-d+1;if(s.visibleLeft=f,s.visibleWidth=m-f+1,s.visibleTop=h+a.page*a.rowsPerPage,s.visibleHeight=g-h+1,s.page=a.page,s.rowsPerPage=a.rowsPerPage,r.current===aD.Down){const e=x+25;t(b,v,y,d+e>i?i-d:e)}else if(r.current===aD.Up){const e=x+25,n=a.page*a.rowsPerPage,r=Math.max(n,v-25);t(b,r,y,e)}if(o.current===aD.Right){const t=e.qHyperCube.qSize.qcx-b,r=y+5,o=Math.min(t,r);n(b,v,o,x)}else if(o.current===aD.Left){const t=Math.max(0,b-5),r=Math.min(e.qHyperCube.qSize.qcx,y+5);n(t,v,r,x)}}),[l,i,a.page,a.rowsPerPage,s,r,o,t,e.qHyperCube.qSize.qcx,n]))({layout:p,loadRows:H,loadColumns:B,verticalScrollDirection:A,horizontalScrollDirection:P,rowCount:I,pageInfo:l,gridState:E,viewService:h}),G=S((()=>({rowsInPage:$,columns:i,bodyStyle:s,isHoverEnabled:w,maxLineCount:j})),[$,i,s,w,j]),V=((e,t,n,r)=>{let{height:o}=e;return o-=t,n*r<o&&(o=Math.min(n*r,o)),o})(o,c,I,F);return _((()=>{var e,t;d(null!==(e=null===(t=a.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!0)}),[I,d,a]),_((()=>{var e,t,n;(d(null!==(e=null===(t=a.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!1),1===q.current.lastScrollToRatio)&&(null===(n=x.current)||void 0===n||n.scrollToItem({rowIndex:I-1,align:"start"}))})),function(e){const{selectionsAPI:t}=KR(GR,(e=>e.baseProps)),n=KR(GR,(e=>e.selectionDispatch));C((()=>{n({type:af.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[n,e]),WP({selectionsAPI:t,selectionDispatch:n,setShouldRefocus:sD,keyboard:lD,tableWrapperRef:uD})}($),ln((()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[p,l,m.name(),o.width,g]),N(t,(()=>({interpolatedScrollTo:(e,t)=>{var n,r;const o=(null!==(n=null===(r=a.current)||void 0===r?void 0:r.clientHeight)&&void 0!==n?n:V)-V,i=Math.round(o*e);var l,s,u;(q.current.lastScrollToRatio=e,1===q.current.lastScrollToRatio)?(null===(l=x.current)||void 0===l||l.scrollToItem({rowIndex:I-1,align:"start"}),null===(s=x.current)||void 0===s||s.scrollTo({scrollLeft:t})):null===(u=x.current)||void 0===u||u.scrollTo({scrollTop:i,scrollLeft:t})},resizeCells:()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),z($)}})),[a,V,q,I,z,$]),Ni.jsx(kL,{"data-key":"body",ref:x,innerRef:a,style:pD,columnCount:p.qHyperCube.qSize.qcx,columnWidth:e=>g[e],height:V,rowCount:I,rowHeight:k,estimatedRowHeight:F,width:o.width,itemData:G,onItemsRendered:W,onScroll:R,itemKey:dD,className:"sn-table-body",children:ZL})})));const mD=({width:e,height:t,children:n})=>Ni.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:n}),hD=Qp("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"isNewHeadCellMenuEnabled"!==e})((({isNewHeadCellMenuEnabled:e,interactions:t,hoverBackground:n,background:r,applicableStyle:o})=>({...o,...e&&{background:r},"&&:hover":{...e&&{background:t.active?n:r}}}))),gD=({index:e,style:t,data:n})=>{const{columns:r,headerStyle:{...o},columResizeHandler:i,allColumnsIconVisibilityStatusRef:a}=n,{styling:l,interactions:s,styling:{head:{activeBackground:u,background:c,hoverBackground:d}}}=KR(GR,(e=>e.baseProps)),p=KR(GR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),f=KR(GR,(e=>e.showRightBorder)),m=KR(GR,(e=>e.columnWidths)),h=KR(GR,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),g=!!s.active&&!p,{open:b,setOpen:v,handleOpenMenu:y,setIsAdjustingWidth:x}=QI({isInteractionEnabled:g,columnsData:r}),S=r[e],E=r.length-1===e,C="right"===S.headTextAlign?"row-reverse":"row",{getHeadCellsIconsVisibilityStatus:w,allIconsDisabled:R}=ZI({styling:l,column:S,columnWidths:m,isNewHeadCellMenuEnabled:h}),{startIcon:A,endIcon:P}=SI(S),I=w();a.current[e]=I;const L=eL(h,I.shouldShowSortIcon,S.isActivelySorted,S.headTextAlign);return Ni.jsxs(hD,{className:"sn-table-cell",title:s.passive?S.label:void 0,onClick:y,applicableStyle:o,style:{...t,cursor:h?"pointer":"default",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:E&&!f?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:S.headTextAlign,boxSizing:"border-box",zIndex:r.length-e,flexDirection:C,userSelect:"none"},interactions:s,hoverBackground:d,background:b?u:c,isNewHeadCellMenuEnabled:h,children:[Ni.jsx(JI,{column:S,isInteractionEnabled:g,open:b,setOpen:v,getHeadCellsIconsVisibilityStatus:w,children:h?Ni.jsxs(nL,{children:[L("right")&&Ni.jsx(rL,{align:S.headTextAlign,children:A}),Ni.jsx(HP,{allIconsDisabled:R,headCell:!0,virtualizedCell:!0,children:S.label}),L("left")&&Ni.jsx(rL,{align:S.headTextAlign,children:P})]}):Ni.jsx(HP,{wordBreak:!0,lines:3,children:S.label})}),Ni.jsx(nI,{column:S,isLastColumn:E,onColumnResize:i,setIsAdjustingWidth:x})]})},bD=(e,t,n,r,o)=>{_((()=>{var t;null==e||null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!0)}),[t,n,e,r,o])},vD={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},yD=e=>{const{rect:t,forwardRef:n,columns:r,pageInfo:o,headerStyle:i,rowHeight:a,columResizeHandler:l,allColumnsIconVisibilityStatusRef:s}=e,{layout:u,theme:c}=KR(GR,(e=>e.baseProps)),d=KR(GR,(e=>e.columnWidths));return bD(n,u,o,d,c.name()),Ni.jsx(HL,{ref:n,layout:"horizontal",style:vD,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:a,width:t.width,itemData:{columns:r,headerStyle:i,columResizeHandler:l,allColumnsIconVisibilityStatusRef:s},children:gD})};var xD=k(yD);const SD=x.forwardRef(((e,t)=>{const{children:n,width:r,height:o,onScroll:i}=e,{interactions:a}=KR(GR,(e=>e.baseProps));return Ni.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:r,height:o},onScroll:i,children:n})})),ED=({children:e,rect:t})=>Ni.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:t.width,height:t.height},children:e}),CD=({index:e,style:t,data:n})=>{const{layout:r,interactions:o}=KR(GR,(e=>e.baseProps)),i=KR(GR,(e=>e.showRightBorder)),a=KR(GR,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),{totalsStyle:{hoverColors:l,...s},columns:u,totals:c}=n,d=u[e].totalInfo,{totalsTextAlign:p,isTotalNumeric:f}=u[e],m=r.qHyperCube.qSize.qcx-1===e;return Ni.jsx("div",{className:"sn-table-cell",title:o.passive?d:void 0,style:{...t,...s,display:"flex",alignItems:c.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:m&&!i?"0px":"1px",borderTopWidth:c.atBottom?"1px":"0px",borderBottomWidth:c.atTop?"1px":"0px",padding:"4px 12px",justifyContent:p,boxSizing:"border-box",cursor:"default",fontWeight:wb},children:Ni.jsx(HP,{wordBreak:!f,lines:3,...a&&{virtualizedCell:!0},children:d})})},wD=e=>{const{rect:t,forwardRef:n,pageInfo:r,totals:o,rowHeight:i,columns:a}=e,{layout:l,styling:s,theme:u}=KR(GR,(e=>e.baseProps)),c=KR(GR,(e=>e.columnWidths));return bD(n,l,r,c,u.name()),Ni.jsx(HL,{ref:n,layout:"horizontal",style:vD,itemCount:l.qHyperCube.qSize.qcx,itemSize:e=>c[e],height:i,width:t.width,itemData:{totalsStyle:s.totals,columns:a,totals:o},children:CD})};var RD=k(wD);const AD=({columns:e,columnWidths:t,pageInfo:n,headerRef:r,totalsRef:o,totalsPosition:i,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s})=>{const{styling:u}=KR(GR,(e=>e.baseProps)),c=KR(GR,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),d=iD({style:u.head,columnWidths:t,lineRef:r,rowCount:1,pageInfo:n,fontWeight:wb,columns:e,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s,isNewHeadCellMenuEnabled:c}),p=iD({style:u.totals,columnWidths:t,lineRef:o,rowCount:1,pageInfo:n,fontWeight:wb,isSnapshot:a,viewService:l,isNewHeadCellMenuEnabled:c});e.forEach(((e,t)=>{d.setCellSize(e.label,0,t),p.setCellSize(e.totalInfo,0,t,gi(e.totalInfo))}));const f=d.getRowHeight(0)+8,m=p.getRowHeight(0);return{headerRowHeight:f,totalsRowHeight:m,bodyRowHeight:a?l.estimatedRowHeight:(({fontSize:e=Rb.fontSize})=>Math.max(24,TR(e)))(u.body),headerAndTotalsHeight:i.atTop||i.atBottom?f+m:f,resizeAllHeaderCells:d.resizeAllCells,resizeAllTotalCells:p.resizeAllCells}},PD=e=>{var t;const{pageInfo:n}=e,{totalsPosition:r,columns:o,paginationNeeded:i}=KR(GR,(e=>e.tableData)),{layout:a,theme:l,styling:s,rect:u,viewService:c}=KR(GR,(e=>e.baseProps)),d=KR(GR,(e=>e.columnWidths)),p=KR(GR,(e=>e.setYScrollbarWidth)),f=M(null),m=M(null),h=M(null),g=M(null),b=M(),{xScrollbarWidth:v,yScrollbarWidth:y}=_P(f),x=S((()=>{var e;return{...s.body,background:null!==(e=l.background.color)&&void 0!==e?e:"transparent"}}),[l.background.color,s]),C=M([]),{headerRowHeight:w,totalsRowHeight:R,bodyRowHeight:A,headerAndTotalsHeight:P,resizeAllHeaderCells:I,resizeAllTotalCells:L}=AD({columns:o,columnWidths:d,pageInfo:n,totalsPosition:r,headerRef:m,totalsRef:h,isSnapshot:!!a.snapshotData,viewService:c,allColumnsIconVisibilityStatus:C.current}),D=S((()=>((e,t)=>{const n=e.height-(t?41:0);return{width:e.width,height:n}})(u,i)),[u,i]),T=S((()=>((e,t,n)=>({width:e.width-n,height:e.height-t}))(D,v,y)),[D,v,y]),{rowCount:k}=cD(a,n,T,d,A),[q,N]=E(k*A+P),F=d.reduce(((e,t)=>e+t),0),j=((e,t,n,r)=>O((o=>{var i,a,l;const{scrollHeight:s,clientHeight:u,scrollTop:c,scrollLeft:d}=o.currentTarget,p=Math.max(0,Math.min(1,c/(s-u)));r.scrollTopRatio=p,r.scrollLeft=d,null===(i=n.current)||void 0===i||i.interpolatedScrollTo(Number.isNaN(p)?0:p,d),null===(a=e.current)||void 0===a||a.scrollTo(d),null===(l=t.current)||void 0===l||l.scrollTo(d)}),[r,n,e,t]))(m,h,g,c),z=O(((e,t=!1)=>{const n=e+P;(q<T.height&&n>T.height||t)&&N(n)}),[q,P,T.height]),$=O((()=>{var e;f.current&&(f.current.scrollTop=0),null===(e=g.current)||void 0===e||e.resizeCells(),I(),L()}),[f,I,L]);_((()=>{f.current&&(f.current.scrollLeft=0,f.current.scrollTop=0)}),[o.length]);const H=l.name();_((()=>{f.current&&(f.current.scrollTop=0)}),[n,k,H]),MP((()=>{p(y)}),[y]);const B=Ni.jsx(RD,{rect:T,pageInfo:n,columns:o,forwardRef:h,totals:r,rowHeight:R});return Ni.jsx(SD,{ref:f,width:D.width,height:D.height,onScroll:j,children:Ni.jsx(mD,{width:F,height:q,children:Ni.jsxs(ED,{rect:T,children:[null!==(t=c.viewState)&&void 0!==t&&t.skipHeader?null:Ni.jsx(xD,{headerStyle:s.head,rect:T,pageInfo:n,columns:o,forwardRef:m,rowHeight:w,columResizeHandler:$,allColumnsIconVisibilityStatusRef:C}),r.atTop?B:null,Ni.jsx(fD,{ref:g,innerForwardRef:b,bodyStyle:x,rect:T,pageInfo:n,columns:o,rowHeight:A,headerAndTotalsHeight:P,syncHeight:z}),r.atBottom?B:null]})})})};var ID=k(PD);const LD=()=>{const{theme:e,keyboard:t,translator:n,interactions:r,rect:o,layout:i}=KR(GR,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:l,totalColumnCount:s,totalPages:u}=KR(GR,(e=>e.tableData)),c=KR(GR,(e=>e.pageInfo)),d=KR(GR,(e=>e.setPage));return Ni.jsxs(IP,{"data-testid":"sn-table",background:e.background,dir:"ltr",children:[Ni.jsx(ID,{pageInfo:c}),Ni.jsx(PP,{paginationNeeded:a,handleChangePage:e=>d(e),pageInfo:c,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:t,translator:n,theme:e,interactions:r,rect:o,layout:i})]})};var DD=k(LD);var MD,OD={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбцов","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um in den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerungen zu wechseln. Alle Angaben zur Tastaturnavigation finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate in table cells and tab to move to pagination controls. For the full range of keyboard navigation, see the documentation.","es-ES":"Use las teclas de flecha para navegar en las celdas de la tabla y la pestaña para moverse a los controles de paginación. Para conocer la gama completa de navegación con teclado, consulte la documentación.","fr-FR":"Utilisez les touches fléchées pour parcourir les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Pour connaître la gamme complète des commandes de navigation au clavier, voir la documentation.","it-IT":"Utilizzare i tasti freccia per navigare nelle celle della tabella e il tasto TAB per passare ai controlli di paginazione. Per informazioni complete sulla navigazione da tastiera, vedere la documentazione.","ja-JP":"矢印キーで表のセル内を移動し、タブ キーでページネーション コントロールに移動します。キーボード ナビゲーションの全範囲については、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 테이블 셀을 탐색하고 탭을 사용하여 페이지 매김 컨트롤로 이동합니다. 전체 키보드 탐색 범위는 설명서를 참조하십시오.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren in tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Raadpleeg de documentatie voor een volledig overzicht van de toetsenbordnavigatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się po komórkach tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Pełne informacje o nawigacji przy użyciu klawiatury zawiera dokumentacja.","pt-BR":"Use as setas para navegar nas células da tabela e Tab para mover para os controles de paginação. Para toda a gama de navegação do teclado, consulte a documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения по ячейкам таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Полный перечень возможностей навигации с помощью клавиатуры см. в документации.","sv-SE":"Använd piltangenterna för att navigera i tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Se dokumentationen för komplett information om tangentbordsnavigering.","tr-TR":"Tablo hücrelerinde gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Tam kapsamlı klavye gezintisi için belgelere bakın.","zh-CN":"使用箭头键在表格单元格中导航,使用 tab 键移动到分页控件。有关键盘导航的完整范围,请参阅文档。","zh-TW":"使用方向鍵以在表格儲存格中導覽,並使用 Tab 以前往分頁控制。如需完整的鍵盤導覽,請參閱文件。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Selecties wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{1}의 {0}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},SNTable_Pagination_FirstPage:{id:"SNTable.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};!function(e){e.FIRST="first-announcer-element",e.SECOND="second-announcer-element"}(MD||(MD={}));const TD=(e,n)=>t((()=>(function(e){if(e&&e.get&&e.add){const t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(OD).forEach((t=>{e.add(OD[t])}))}}(n),()=>((e,t,n)=>{let r=n||null;return({keys:n,shouldBeAtomic:o=!0,politeness:i="polite"})=>{const a=n.map((e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)})).join(" "),l=e.querySelector(".sn-table-announcer-1"),s=e.querySelector(".sn-table-announcer-2");let u;r===MD.FIRST?(u=s,r=MD.SECOND):(u=l,r=MD.FIRST),u.innerHTML=u.innerHTML.endsWith(" ­")?a:`${a} ­`,u.setAttribute("aria-atomic",o.toString()),u.setAttribute("aria-live",i)}})(e,n))),[e,n.language()]),kD={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},_D=({isNewHeadCellMenuEnabled:e,app:t,model:n,rootElement:l,layout:s,interactions:u,translator:c,selectionsAPI:d,theme:p,changeSortOrder:f,keyboard:m,rect:h,embed:g,reactRoot:b,applyColumnWidths:v,isFontLoaded:y,viewService:x,isLinksEnabled:S})=>{const{direction:E,footerContainer:C}=r(),w=Ai(s,x),R=Pi(s,x),A=TD(l,c),P=w?{page:x.page||kD.page,rowsPerPage:x.rowsPerPage||kD.rowsPerPage,rowsPerPageOptions:kD.rowsPerPageOptions}:kD,[I,L]=o(P),[D]=i((async()=>R?async function(e,t,n,r,o){var i,a;const{page:l,rowsPerPage:s,rowsPerPageOptions:u}=n,c=t.qHyperCube.qSize.qcx,d=t.qHyperCube.qSize.qcy,p=Math.ceil(d/s),f=null!==(i=o.visibleTop)&&void 0!==i?i:l*s,m=null!==(a=o.visibleHeight)&&void 0!==a?a:Math.min(s,d-f);if(l>0&&f>=d)return r({...n,page:0}),null;if(m*c>vi)return r({...n,rowsPerPage:yi(c,u),page:0}),null;const h=d>10,g=xi(t,o),b=Ri(t),v=!!t.snapshotData,y=v?t.qHyperCube.qDataPages:await e.getHyperCubeData("/qHyperCubeDef",[{qTop:f,qLeft:0,qHeight:m,qWidth:c}]);o&&!v&&(o.qTop=f,o.qHeight=m,o.rowsPerPage=n.rowsPerPage,o.page=n.page);const x=(null==y?void 0:y[0].qMatrix.map(((e,t)=>{const n=[];return b.forEach(((r,o)=>{n[o]={...e[o],align:wi(e[o],r.bodyTextAlign),rowIdx:t+f,colIdx:r.colIdx,pageRowIdx:t,pageColIdx:o,selectionColIdx:r.selectionColIdx,isSelectable:r.isDim&&!r.isLocked,isLastRow:t===m-1,isNumeric:bi(e[o]),representation:hi(e[o],r.representation,r.qAttrExprInfoIDs.findIndex((e=>"url"===e)),r.qAttrExprInfoIDs.findIndex((e=>"urlLabel"===e)))}})),n})))||[];return{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:h,totalsPosition:g,columns:b,rows:x}}(n,s,I,L,x):null),[s,I,n,u,R]);a((()=>{!!(R&&b&&n&&(s.snapshotData||t)&&s&&D&&f&&p&&d&&y&&g)&&function(e,t){const{app:n,model:r,direction:o,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,tableData:h,rect:g,viewService:b,isLinksEnabled:v,...y}=e,x=XR(o);null==t||t.render(Ni.jsx(fs,{stylisPlugins:"rtl"===o?[pf]:void 0,children:Ni.jsx(tf,{theme:x,children:Ni.jsx(YR,{app:n,model:r,tableData:h,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:g,viewService:b,isNewHeadCellMenuEnabled:y.isNewHeadCellMenuEnabled,isLinksEnabled:v,children:Ni.jsx(sL,{...y,direction:o})})})}))}({app:t,model:n,rootElement:l,layout:s,tableData:D,direction:E,pageInfo:I,setPageInfo:L,interactions:u,translator:c,selectionsAPI:d,theme:p,changeSortOrder:f,keyboard:m,rect:h,footerContainer:C,announce:A,embed:g,applyColumnWidths:v,viewService:x,isNewHeadCellMenuEnabled:e,isLinksEnabled:S},b)}),[t,n,b,D,u,E,p.name(),m.active,A,f,v,R,s,d,g,l,I,L,c,h,C,y,e,S])};const qD=({model:e,layout:t,shouldRender:n,page:r})=>{const[o]=i((async()=>{if(n&&e)return(async(e,t,n)=>{let{qDataPages:r}=t.qHyperCube;if(0!==n||void 0===r||0===r.length){const o=n*Math.min(Ab,t.qHyperCube.qSize.qcy);r=await e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:o,qWidth:50,qHeight:100}])}return{initialDataPages:r,derivedFrom:{layout:t,page:n}}})(e,t,r)}),[e,t,r]),a=(null==o?void 0:o.derivedFrom.layout)!==t||(null==o?void 0:o.derivedFrom.page)!==r;return{initialDataPages:null==o?void 0:o.initialDataPages,isLoading:a}},ND=({app:e,layout:n,model:r,rect:i,theme:l,keyboard:s,translator:u,interactions:c,selectionsAPI:d,changeSortOrder:p,rootElement:f,embed:m,reactRoot:h,applyColumnWidths:g,isFontLoaded:b,viewService:v,isNewHeadCellMenuEnabled:y,isLinksEnabled:S})=>{const E=!Pi(n,v),C=t((()=>function(e,t,n){const r=xi(e,n),o=Ri(e),i=e.qHyperCube.qSize.qcy,a=Math.min(Ab,i),l=i>Ab&&!!t.active;return{totalsPosition:r,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:l}}(n,c,v)),[n,c,v]),{pageInfo:w,setPage:R}=((e,n)=>{const[r,i]=o(0),a=Math.min(Ab,e.qHyperCube.qSize.qcy),l=t((()=>({page:r,rowsPerPage:a,rowsPerPageOptions:[]})),[a,r]);if(n){const t=Math.floor(e.qHyperCube.qSize.qcy/Ab);t<r&&i(t)}return{pageInfo:l,setPage:i}})(n,E),{initialDataPages:A,isLoading:P}=qD({model:r,layout:n,page:w.page,shouldRender:E});a((()=>{E&&r&&p&&A&&!P&&b&&function(e,t){const{app:n,selectionsAPI:r,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rect:c,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,isNewHeadCellMenuEnabled:S,isLinksEnabled:E}=e,C=XR("ltr");t.render(Ni.jsx(x.StrictMode,{children:Ni.jsx(tf,{theme:C,children:Ni.jsx(YR,{app:n,selectionsAPI:r,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,rect:c,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,isNewHeadCellMenuEnabled:S,isLinksEnabled:E,children:Ni.jsx(DD,{})})})}))}({app:e,layout:n,model:r,rect:i,theme:l,keyboard:s,translator:u,interactions:c,selectionsAPI:d,rootElement:f,embed:m,changeSortOrder:p,tableData:C,applyColumnWidths:g,setPage:R,pageInfo:w,initialDataPages:A,viewService:v,isNewHeadCellMenuEnabled:y,isLinksEnabled:S},h)}),[e,n,r,i,l.name(),s.active,u,c,d,p,E,f,m,h,C,g,R,w,P,A,b,y,S])};var FD={properties:{initial:{version:JSON.stringify("3.1.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]}},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:jr,exportProperties:Nr};function jD(e,t){const n=e.getElementsByClassName("sn-table-container")[0];if(!n)return{};const r=(null==n?void 0:n.getBoundingClientRect())||{},o=e.getElementsByClassName("sn-table-head-row")[0],i=(null==o?void 0:o.getBoundingClientRect())||{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],l=(null==a?void 0:a.getBoundingClientRect())||{height:0},s=e.getElementsByClassName("sn-table-data-row"),u={top:r.y+i.height+(t.atTop?l.height:0),bottom:r.y+r.height-(t.atBottom?l.height:0)},c=((e,t)=>{if(!e)return-1;for(let n=0;n<e.length;n++)if(e[n].getBoundingClientRect().bottom>t.top)return n;return-1})(s,u),d=((e,t)=>{if(!e)return-1;for(let n=e.length-1;n>-1;n--){const r=e[n].getBoundingClientRect();if(t.bottom>r.top)return n}return-1})(s,u),p=((e,t,n)=>{if(!e||0===e.length||n<0)return 0;const r=e[n].getBoundingClientRect();return Math.max(t.top-r.top,0)})(s,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const zD=(e,t)=>{if(t)for(let n=0;n<t.length;n++){const r=t[n].getAttribute("rowindex");if(r&&parseInt(r,10)===e)return t[n]}},$D=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const HD=(e,t,n,r)=>{var o;if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||kD.rowsPerPage,l=null!==(o=r.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+l)},BD=(e,t,n)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const r=xi(e,t);if(Pi(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=jD(n,r);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:HD(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const n=e.querySelector(".sn-table-body"),r=null==n?void 0:n.getBoundingClientRect(),o=null==n?void 0:n.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!r)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:l=0,page:s=0,rowsPerPage:u=0}=t,c=s*u,d=a-c,p=d+l-1,f=zD(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=r.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=r.y+r.height,b=($D(m,h,g)?d:d+1)+c;let v=p+c;const y=zD(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&($D(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(n,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:HD(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}},WD=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),GD=e=>e.getStyle("object","straightTableV2","backgroundColor");function VD(o){return{qae:FD,ext:co(o),component(){var y;const x=u(),S=(e=>{const n=t((()=>on(e)),[e]);return a((()=>()=>n.unmount()),[n]),n})(x),E=c(),C=d(),w=p(),R=f(),A=m(),P=h(),I=g(),{freeResize:L}=r(),D=b(),M=null!=E&&null!==(y=E.snapshotData)&&void 0!==y&&y.content&&!L?{...D,...E.snapshotData.content.size}:D,O=(e=>{const{viewState:n}=r();return t((()=>((e,t)=>{var n,r,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.rowPartialHeight)&&void 0!==n?n:0,visibleTop:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.visibleTop)&&void 0!==o?o:null==e?void 0:e.visibleTop,visibleHeight:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.visibleHeight)&&void 0!==a?a:null==e?void 0:e.visibleHeight,scrollLeft:null!==(s=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==s?s:0,scrollTopRatio:null!==(d=null==t||null===(p=t.content)||void 0===p?void 0:p.scrollTopRatio)&&void 0!==d?d:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(f=null==t||null===(m=t.content)||void 0===m?void 0:m.rowsPerPage)&&void 0!==f?f:null==e?void 0:e.rowsPerPage,page:null!==(h=null==t||null===(g=t.content)||void 0===g?void 0:g.page)&&void 0!==h?h:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(b=null==t||null===(v=t.content)||void 0===v?void 0:v.estimatedRowHeight)&&void 0!==b?b:0}})(n,e.snapshotData)),[n,e.snapshotData,e.usePagination])})(E),T=v(),k=((n,r,o)=>{const i=e();return t((()=>({...i,background:ze(i,n,r,o)})),[i.name(),n,r,o])})(x,WD,GD),_=o.flags.isEnabled("CLIENT_IM_5716_TABLE_COL_WIDTH"),q=o.flags.isEnabled("CLIENT_IM_5715_LINKS"),N=((e,n,r)=>t((()=>((e,t,n)=>{if(t)return async(r,o)=>{const{isDim:i,colIdx:a,qReverseSort:l,sortDirection:s,isActivelySorted:u}=r,c=i?a:a-e,d=(await t.getEffectiveProperties()).qHyperCubeDef.qInterColumnSortOrder,p=[],f=o&&o!==s||!o&&u;u||(d.splice(d.indexOf(a),1),d.unshift(a),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),(n&&f||!n&&u)&&p.push({qPath:`/qHyperCubeDef/${i?"qDimensions":"qMeasures"}/${c}/qDef/qReverseSort`,qOp:"Replace",qValue:(!l).toString()}),t.applyPatches(p,!0)}})(e.qDimensionInfo.length,n,r)),[e.qDimensionInfo.length,n,r]))(E.qHyperCube,w,_),F=fo(E.qHyperCube,w),j=((e,t)=>{const{fontSize:n,fontFamily:r}=zR(t,e,!1),{fontSize:o,fontFamily:a}=$R(t,e),[l,s]=i((async()=>(await document.fonts.load(`600 ${n} ${r}`),await document.fonts.load(`${o} ${a}`),!0)),[n,r,o,a]);return s?(console.warn("Failed to load font:",s),!0):!!l})(k,E);null==n||n(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(".sn-table-cell");r&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{po(r)}})})),o.flags.isEnabled("PS_20907_TABLE_DOWNLOAD")&&(({layout:e,viewService:t,model:n,rootElement:r,contentRect:o})=>{l((async i=>{if(!i.snapshotData||!n||i.snapshotData.content)return i;if(n.getHyperCubeData){i.qHyperCube||(i.qHyperCube={});const{rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=BD(e,t,r);i.qHyperCube.qDataPages=await n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=d?d:0,qWidth:e.qHyperCube.qSize.qcx,qHeight:null!=p?p:0}]),i.snapshotData.content={rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return i})),s((()=>({getViewState:()=>BD(e,t,r)})),[e,t,r])})({layout:E,viewService:O,model:w,rootElement:x,contentRect:D}),ND({isNewHeadCellMenuEnabled:_,isLinksEnabled:q,app:C,layout:E,model:w,rect:M,theme:k,keyboard:I,translator:A,interactions:R,selectionsAPI:P,changeSortOrder:N,rootElement:x,embed:T,reactRoot:S,applyColumnWidths:F,isFontLoaded:j,viewService:O}),_D({isNewHeadCellMenuEnabled:_,isLinksEnabled:q,app:C,model:w,rootElement:x,layout:E,interactions:R,translator:A,selectionsAPI:P,theme:k,changeSortOrder:N,keyboard:I,rect:M,embed:T,reactRoot:S,applyColumnWidths:F,isFontLoaded:j,viewService:O})}}}export{VD as default};