@nebula.js/sn-table 2.9.0 → 2.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +11 -11
- package/core/package.json +1 -1
- package/dist/sn-table.js +13 -13
- package/dist/sn-table.systemjs.js +11 -11
- package/package.json +2 -2
- package/sn-table-ext/dist/sn-table.js +13 -13
- package/sn-table-ext/sn-table.qext +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-table v2.9.
|
|
3
|
-
* Copyright (c)
|
|
2
|
+
* @nebula.js/sn-table v2.9.3
|
|
3
|
+
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
System.register(["@nebula.js/stardust","react","react-dom"],(function(e){"use strict";var t,n,r,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,A,D,P,I,T,L,M,q,k,O,N,_,F,z,j;return{setters:[function(e){t=e.useTheme,n=e.useMemo,r=e.onContextMenu,o=e.useOptions,i=e.useState,a=e.usePromise,l=e.useEffect,s=e.onTakeSnapshot,u=e.useImperativeHandle,c=e.useElement,d=e.useStaleLayout,p=e.useApp,f=e.useModel,m=e.useInteractionState,h=e.useTranslator,g=e.useSelections,b=e.useKeyboard,v=e.useRect,y=e.useEmbed},function(e){x=e.useState,S=e.useMemo,E=e,C=e.default,w=e.useEffect,R=e.useContext,A=e.createElement,D=e.useRef,P=e.Children,I=e.isValidElement,T=e.cloneElement,L=e.useReducer,M=e.createContext,q=e.useCallback,k=e.forwardRef,O=e.memo,N=e.useLayoutEffect,_=e.PureComponent,F=e.useImperativeHandle},function(e){z=e.default,j=e}],execute:function(){e("default",(function(e){return{qae:TS,ext:kn(e),component:function(){var t,n=c(),i=RS(n),a=d(),l=p(),s=f(),u=m(),x=h(),S=g(),E=b(),C=o().freeResize,w=v(),R=(null===(t=null==a?void 0:a.snapshotData)||void 0===t?void 0:t.content)&&!C?H(H({},w),a.snapshotData.content.size):w,A=_S(a),D=y(),P=Oe(n,FS,zS),I=e.flags.isEnabled("HEAD_CELL_MENU_TEST_FLAG"),T=AS(a.qHyperCube,s,I),L=Nn(a.qHyperCube,s),M=IS(P,a);!function(){var e=this;null==r||r((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 $(e,void 0,void 0,(function(){return W(this,(function(e){return On(n),[2]}))}))}})}))}(),e.flags.isEnabled("PS_20907_TABLE_DOWNLOAD")&&NS({layout:a,viewService:A,model:s,rootElement:n,contentRect:w}),PS({isNewHeadCellMenuEnabled:I,app:l,layout:a,model:s,rect:R,theme:P,keyboard:E,translator:x,interactions:u,selectionsAPI:S,changeSortOrder:T,rootElement:n,embed:D,reactRoot:i,applyColumnWidths:L,isFontLoaded:M,viewService:A}),wS({isNewHeadCellMenuEnabled:I,app:l,model:s,rootElement:n,layout:a,interactions:u,translator:x,selectionsAPI:S,theme:P,changeSortOrder:T,keyboard:E,rect:R,embed:D,reactRoot:i,applyColumnWidths:L,isFontLoaded:M,viewService:A})}}}));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 B(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 $(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 W(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 V(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 U(e,t){const[n,r]=x(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}"function"==typeof SuppressedError&&SuppressedError;var G={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 Y=({translator:e})=>(S((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(G).forEach((t=>{e.add(G[t])}))}}(e)),[e]),e);function K(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Z,X=z;function J(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Q(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ee(){}Z=X.createRoot,X.hydrateRoot;var te=.7,ne=1/te,re="\\s*([+-]?\\d+)\\s*",oe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ae=/^#([0-9a-f]{3,8})$/,le=new RegExp(`^rgb\\(${re},${re},${re}\\)$`),se=new RegExp(`^rgb\\(${ie},${ie},${ie}\\)$`),ue=new RegExp(`^rgba\\(${re},${re},${re},${oe}\\)$`),ce=new RegExp(`^rgba\\(${ie},${ie},${ie},${oe}\\)$`),de=new RegExp(`^hsl\\(${oe},${ie},${ie}\\)$`),pe=new RegExp(`^hsla\\(${oe},${ie},${ie},${oe}\\)$`),fe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function me(){return this.rgb().formatHex()}function he(){return this.rgb().formatRgb()}function ge(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ae.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?be(t):3===n?new Se(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ve(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ve(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=le.exec(e))?new Se(t[1],t[2],t[3],1):(t=se.exec(e))?new Se(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ue.exec(e))?ve(t[1],t[2],t[3],t[4]):(t=ce.exec(e))?ve(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=de.exec(e))?De(t[1],t[2]/100,t[3]/100,1):(t=pe.exec(e))?De(t[1],t[2]/100,t[3]/100,t[4]):fe.hasOwnProperty(e)?be(fe[e]):"transparent"===e?new Se(NaN,NaN,NaN,0):null}function be(e){return new Se(e>>16&255,e>>8&255,255&e,1)}function ve(e,t,n,r){return r<=0&&(e=t=n=NaN),new Se(e,t,n,r)}function ye(e){return e instanceof ee||(e=ge(e)),e?new Se((e=e.rgb()).r,e.g,e.b,e.opacity):new Se}function xe(e,t,n,r){return 1===arguments.length?ye(e):new Se(e,t,n,null==r?1:r)}function Se(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ee(){return`#${Ae(this.r)}${Ae(this.g)}${Ae(this.b)}`}function Ce(){const e=we(this.opacity);return`${1===e?"rgb(":"rgba("}${Re(this.r)}, ${Re(this.g)}, ${Re(this.b)}${1===e?")":`, ${e})`}`}function we(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Re(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ae(e){return((e=Re(e))<16?"0":"")+e.toString(16)}function De(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ie(e,t,n,r)}function Pe(e){if(e instanceof Ie)return new Ie(e.h,e.s,e.l,e.opacity);if(e instanceof ee||(e=ge(e)),!e)return new Ie;if(e instanceof Ie)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 Ie(a,l,s,e.opacity)}function Ie(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Te(e){return(e=(e||0)%360)<0?e+360:e}function Le(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)}J(ee,ge,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:me,formatHex:me,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Pe(this).formatHsl()},formatRgb:he,toString:he}),J(Se,xe,Q(ee,{brighter(e){return e=null==e?ne:Math.pow(ne,e),new Se(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?te:Math.pow(te,e),new Se(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Se(Re(this.r),Re(this.g),Re(this.b),we(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:Ee,formatHex:Ee,formatHex8:function(){return`#${Ae(this.r)}${Ae(this.g)}${Ae(this.b)}${Ae(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ce,toString:Ce})),J(Ie,(function(e,t,n,r){return 1===arguments.length?Pe(e):new Ie(e,t,n,null==r?1:r)}),Q(ee,{brighter(e){return e=null==e?ne:Math.pow(ne,e),new Ie(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?te:Math.pow(te,e),new Ie(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 Se(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 Ie(Te(this.h),Le(this.s),Le(this.l),we(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=we(this.opacity);return`${1===e?"hsl(":"hsla("}${Te(this.h)}, ${100*Le(this.s)}%, ${100*Le(this.l)}%${1===e?")":`, ${e})`}`}}));const qe=e=>{if(e){const t=xe(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},ke=(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===xe(e).opacity)(c);return{tableColorFromTheme:s||"inherit",color:c,isDark:qe(d?l:c),isTransparent:d}},Oe=(e,r,o)=>{const i=t();return n((()=>({...i,background:ke(i,e,r,o)})),[i.name(),e,r,o])};var Ne=Object.prototype.hasOwnProperty,_e=Object.prototype.toString,Fe=Object.defineProperty,ze=Object.getOwnPropertyDescriptor,je=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===_e.call(e)},He=function(e){if(!e||"[object Object]"!==_e.call(e))return!1;var t,n=Ne.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Ne.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Ne.call(e,t)},Be=function(e,t){Fe&&"__proto__"===t.name?Fe(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},$e=function(e,t){if("__proto__"===t){if(!Ne.call(e,t))return;if(ze)return ze(e,t).value}return e[t]};function We(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ve(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ue(){}!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=$e(l,n),l!==(o=$e(t,n))&&(c&&o&&(He(o)||(i=je(o)))?(i?(i=!1,a=r&&je(r)?r:[]):a=r&&He(r)?r:{},Be(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&Be(l,{name:n,newValue:o}));return l}));var Ge=1/.7,Ye="\\s*([+-]?\\d+)\\s*",Ke="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ze="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Xe=/^#([0-9a-f]{3,8})$/,Je=new RegExp(`^rgb\\(${Ye},${Ye},${Ye}\\)$`),Qe=new RegExp(`^rgb\\(${Ze},${Ze},${Ze}\\)$`),et=new RegExp(`^rgba\\(${Ye},${Ye},${Ye},${Ke}\\)$`),tt=new RegExp(`^rgba\\(${Ze},${Ze},${Ze},${Ke}\\)$`),nt=new RegExp(`^hsl\\(${Ke},${Ze},${Ze}\\)$`),rt=new RegExp(`^hsla\\(${Ke},${Ze},${Ze},${Ke}\\)$`),ot={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 it(){return this.rgb().formatHex()}function at(){return this.rgb().formatRgb()}function lt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Xe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?st(t):3===n?new pt(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ut(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ut(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=Je.exec(e))?new pt(t[1],t[2],t[3],1):(t=Qe.exec(e))?new pt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=et.exec(e))?ut(t[1],t[2],t[3],t[4]):(t=tt.exec(e))?ut(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=nt.exec(e))?vt(t[1],t[2]/100,t[3]/100,1):(t=rt.exec(e))?vt(t[1],t[2]/100,t[3]/100,t[4]):ot.hasOwnProperty(e)?st(ot[e]):"transparent"===e?new pt(NaN,NaN,NaN,0):null}function st(e){return new pt(e>>16&255,e>>8&255,255&e,1)}function ut(e,t,n,r){return r<=0&&(e=t=n=NaN),new pt(e,t,n,r)}function ct(e){return e instanceof Ue||(e=lt(e)),e?new pt((e=e.rgb()).r,e.g,e.b,e.opacity):new pt}function dt(e,t,n,r){return 1===arguments.length?ct(e):new pt(e,t,n,null==r?1:r)}function pt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ft(){return`#${bt(this.r)}${bt(this.g)}${bt(this.b)}`}function mt(){const e=ht(this.opacity);return`${1===e?"rgb(":"rgba("}${gt(this.r)}, ${gt(this.g)}, ${gt(this.b)}${1===e?")":`, ${e})`}`}function ht(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function bt(e){return((e=gt(e))<16?"0":"")+e.toString(16)}function vt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new xt(e,t,n,r)}function yt(e){if(e instanceof xt)return new xt(e.h,e.s,e.l,e.opacity);if(e instanceof Ue||(e=lt(e)),!e)return new xt;if(e instanceof xt)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 xt(a,l,s,e.opacity)}function xt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function St(e){return(e=(e||0)%360)<0?e+360:e}function Et(e){return Math.max(0,Math.min(1,e||0))}function Ct(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}We(Ue,lt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:it,formatHex:it,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return yt(this).formatHsl()},formatRgb:at,toString:at}),We(pt,dt,Ve(Ue,{brighter(e){return e=null==e?Ge:Math.pow(Ge,e),new pt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new pt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new pt(gt(this.r),gt(this.g),gt(this.b),ht(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:ft,formatHex:ft,formatHex8:function(){return`#${bt(this.r)}${bt(this.g)}${bt(this.b)}${bt(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:mt,toString:mt})),We(xt,(function(e,t,n,r){return 1===arguments.length?yt(e):new xt(e,t,n,null==r?1:r)}),Ve(Ue,{brighter(e){return e=null==e?Ge:Math.pow(Ge,e),new xt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new xt(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 pt(Ct(e>=240?e-240:e+120,o,r),Ct(e,o,r),Ct(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new xt(St(this.h),Et(this.s),Et(this.l),ht(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=ht(this.opacity);return`${1===e?"hsl(":"hsla("}${St(this.h)}, ${100*Et(this.s)}%, ${100*Et(this.l)}%${1===e?")":`, ${e})`}`}}));const wt=Math.PI/180,Rt=180/Math.PI,At=4/29,Dt=6/29,Pt=3*Dt*Dt;function It(e){if(e instanceof Tt)return new Tt(e.l,e.a,e.b,e.opacity);if(e instanceof Ot)return Nt(e);e instanceof pt||(e=ct(e));var t,n,r=kt(e.r),o=kt(e.g),i=kt(e.b),a=Lt((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Lt((.4360747*r+.3850649*o+.1430804*i)/.96422),n=Lt((.0139322*r+.0971045*o+.7141733*i)/.82521)),new Tt(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Tt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Lt(e){return e>.008856451679035631?Math.pow(e,1/3):e/Pt+At}function Mt(e){return e>Dt?e*e*e:Pt*(e-At)}function qt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function kt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ot(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Nt(e){if(isNaN(e.h))return new Tt(e.l,0,0,e.opacity);var t=e.h*wt;return new Tt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}We(Tt,(function(e,t,n,r){return 1===arguments.length?It(e):new Tt(e,t,n,null==r?1:r)}),Ve(Ue,{brighter(e){return new Tt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Tt(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 pt(qt(3.1338561*(t=.96422*Mt(t))-1.6168667*(e=1*Mt(e))-.4906146*(n=.82521*Mt(n))),qt(-.9787684*t+1.9161415*e+.033454*n),qt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),We(Ot,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ot)return new Ot(e.h,e.c,e.l,e.opacity);if(e instanceof Tt||(e=It(e)),0===e.a&&0===e.b)return new Ot(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Rt;return new Ot(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ot(e,t,n,null==r?1:r)}),Ve(Ue,{brighter(e){return new Ot(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ot(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Nt(this).rgb()}}));var _t=e=>()=>e;function Ft(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):_t(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?Ft: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):_t(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=dt(e)).r,(t=dt(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Ft(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 zt,jt=["__proto__","constructor"];function Ht(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!jt.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 Bt(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 $t(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 Wt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ut)):void 0===t&&(t=Vt);for(var n,r,o,i,a,l=new Kt(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 Kt(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Yt)}function Vt(e){return e.children}function Ut(e){return Array.isArray(e)?e[1]:null}function Gt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Yt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Kt(e){this.data=e,this.depth=this.height=0,this.parent=null}Kt.prototype=Wt.prototype={constructor:Kt,count:function(){return this.eachAfter($t)},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 Wt(this).eachBefore(Gt)},[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)}},zt=function(e){
|
|
7
|
+
System.register(["@nebula.js/stardust","react","react-dom"],(function(e){"use strict";var t,n,r,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,A,D,P,I,T,M,L,q,k,O,N,_,F,z,H;return{setters:[function(e){t=e.useTheme,n=e.useMemo,r=e.onContextMenu,o=e.useOptions,i=e.useState,a=e.usePromise,l=e.useEffect,s=e.onTakeSnapshot,u=e.useImperativeHandle,c=e.useElement,d=e.useStaleLayout,p=e.useApp,f=e.useModel,m=e.useInteractionState,h=e.useTranslator,g=e.useSelections,b=e.useKeyboard,v=e.useRect,y=e.useEmbed},function(e){x=e.useState,S=e.useMemo,E=e,C=e.default,w=e.useEffect,R=e.useContext,A=e.createElement,D=e.useRef,P=e.Children,I=e.isValidElement,T=e.cloneElement,M=e.useReducer,L=e.createContext,q=e.useCallback,k=e.forwardRef,O=e.memo,N=e.useLayoutEffect,_=e.PureComponent,F=e.useImperativeHandle},function(e){z=e.default,H=e}],execute:function(){e("default",(function(e){return{qae:xS,ext:kn(e),component:function(){var t,n=c(),i=hS(n),a=d(),l=p(),s=f(),u=m(),x=h(),S=g(),E=b(),C=o().freeResize,w=v(),R=(null===(t=null==a?void 0:a.snapshotData)||void 0===t?void 0:t.content)&&!C?j(j({},w),a.snapshotData.content.size):w,A=DS(a),D=y(),P=Oe(n,PS,IS),I=e.flags.isEnabled("HEAD_CELL_MENU_TEST_FLAG"),T=gS(a.qHyperCube,s,I),M=Nn(a.qHyperCube,s),L=yS(P,a);!function(){var e=this;null==r||r((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 $(e,void 0,void 0,(function(){return W(this,(function(e){return On(n),[2]}))}))}})}))}(),e.flags.isEnabled("PS_20907_TABLE_DOWNLOAD")&&AS({layout:a,viewService:A,model:s,rootElement:n,contentRect:w}),vS({isNewHeadCellMenuEnabled:I,app:l,layout:a,model:s,rect:R,theme:P,keyboard:E,translator:x,interactions:u,selectionsAPI:S,changeSortOrder:T,rootElement:n,embed:D,reactRoot:i,applyColumnWidths:M,isFontLoaded:L,viewService:A}),mS({isNewHeadCellMenuEnabled:I,app:l,model:s,rootElement:n,layout:a,interactions:u,translator:x,selectionsAPI:S,theme:P,changeSortOrder:T,keyboard:E,rect:R,embed:D,reactRoot:i,applyColumnWidths:M,isFontLoaded:L,viewService:A})}}}));var j=function(){return j=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},j.apply(this,arguments)};function B(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 $(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 W(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 V(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 U(e,t){const[n,r]=x(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}"function"==typeof SuppressedError&&SuppressedError;var G={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 Y=({translator:e})=>(S((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(G).forEach((t=>{e.add(G[t])}))}}(e)),[e]),e);function K(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Z,X=z;function J(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Q(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ee(){}Z=X.createRoot,X.hydrateRoot;var te=.7,ne=1/te,re="\\s*([+-]?\\d+)\\s*",oe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ae=/^#([0-9a-f]{3,8})$/,le=new RegExp(`^rgb\\(${re},${re},${re}\\)$`),se=new RegExp(`^rgb\\(${ie},${ie},${ie}\\)$`),ue=new RegExp(`^rgba\\(${re},${re},${re},${oe}\\)$`),ce=new RegExp(`^rgba\\(${ie},${ie},${ie},${oe}\\)$`),de=new RegExp(`^hsl\\(${oe},${ie},${ie}\\)$`),pe=new RegExp(`^hsla\\(${oe},${ie},${ie},${oe}\\)$`),fe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function me(){return this.rgb().formatHex()}function he(){return this.rgb().formatRgb()}function ge(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ae.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?be(t):3===n?new Se(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ve(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ve(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=le.exec(e))?new Se(t[1],t[2],t[3],1):(t=se.exec(e))?new Se(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ue.exec(e))?ve(t[1],t[2],t[3],t[4]):(t=ce.exec(e))?ve(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=de.exec(e))?De(t[1],t[2]/100,t[3]/100,1):(t=pe.exec(e))?De(t[1],t[2]/100,t[3]/100,t[4]):fe.hasOwnProperty(e)?be(fe[e]):"transparent"===e?new Se(NaN,NaN,NaN,0):null}function be(e){return new Se(e>>16&255,e>>8&255,255&e,1)}function ve(e,t,n,r){return r<=0&&(e=t=n=NaN),new Se(e,t,n,r)}function ye(e){return e instanceof ee||(e=ge(e)),e?new Se((e=e.rgb()).r,e.g,e.b,e.opacity):new Se}function xe(e,t,n,r){return 1===arguments.length?ye(e):new Se(e,t,n,null==r?1:r)}function Se(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ee(){return`#${Ae(this.r)}${Ae(this.g)}${Ae(this.b)}`}function Ce(){const e=we(this.opacity);return`${1===e?"rgb(":"rgba("}${Re(this.r)}, ${Re(this.g)}, ${Re(this.b)}${1===e?")":`, ${e})`}`}function we(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Re(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ae(e){return((e=Re(e))<16?"0":"")+e.toString(16)}function De(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ie(e,t,n,r)}function Pe(e){if(e instanceof Ie)return new Ie(e.h,e.s,e.l,e.opacity);if(e instanceof ee||(e=ge(e)),!e)return new Ie;if(e instanceof Ie)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 Ie(a,l,s,e.opacity)}function Ie(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Te(e){return(e=(e||0)%360)<0?e+360:e}function Me(e){return Math.max(0,Math.min(1,e||0))}function Le(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}J(ee,ge,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:me,formatHex:me,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Pe(this).formatHsl()},formatRgb:he,toString:he}),J(Se,xe,Q(ee,{brighter(e){return e=null==e?ne:Math.pow(ne,e),new Se(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?te:Math.pow(te,e),new Se(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Se(Re(this.r),Re(this.g),Re(this.b),we(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:Ee,formatHex:Ee,formatHex8:function(){return`#${Ae(this.r)}${Ae(this.g)}${Ae(this.b)}${Ae(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ce,toString:Ce})),J(Ie,(function(e,t,n,r){return 1===arguments.length?Pe(e):new Ie(e,t,n,null==r?1:r)}),Q(ee,{brighter(e){return e=null==e?ne:Math.pow(ne,e),new Ie(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?te:Math.pow(te,e),new Ie(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 Se(Le(e>=240?e-240:e+120,o,r),Le(e,o,r),Le(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Ie(Te(this.h),Me(this.s),Me(this.l),we(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=we(this.opacity);return`${1===e?"hsl(":"hsla("}${Te(this.h)}, ${100*Me(this.s)}%, ${100*Me(this.l)}%${1===e?")":`, ${e})`}`}}));const qe=e=>{if(e){const t=xe(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},ke=(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===xe(e).opacity)(c);return{tableColorFromTheme:s||"inherit",color:c,isDark:qe(d?l:c),isTransparent:d}},Oe=(e,r,o)=>{const i=t();return n((()=>({...i,background:ke(i,e,r,o)})),[i.name(),e,r,o])};var Ne=Object.prototype.hasOwnProperty,_e=Object.prototype.toString,Fe=Object.defineProperty,ze=Object.getOwnPropertyDescriptor,He=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===_e.call(e)},je=function(e){if(!e||"[object Object]"!==_e.call(e))return!1;var t,n=Ne.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Ne.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Ne.call(e,t)},Be=function(e,t){Fe&&"__proto__"===t.name?Fe(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},$e=function(e,t){if("__proto__"===t){if(!Ne.call(e,t))return;if(ze)return ze(e,t).value}return e[t]};function We(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ve(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ue(){}!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=$e(l,n),l!==(o=$e(t,n))&&(c&&o&&(je(o)||(i=He(o)))?(i?(i=!1,a=r&&He(r)?r:[]):a=r&&je(r)?r:{},Be(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&Be(l,{name:n,newValue:o}));return l}));var Ge=1/.7,Ye="\\s*([+-]?\\d+)\\s*",Ke="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ze="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Xe=/^#([0-9a-f]{3,8})$/,Je=new RegExp(`^rgb\\(${Ye},${Ye},${Ye}\\)$`),Qe=new RegExp(`^rgb\\(${Ze},${Ze},${Ze}\\)$`),et=new RegExp(`^rgba\\(${Ye},${Ye},${Ye},${Ke}\\)$`),tt=new RegExp(`^rgba\\(${Ze},${Ze},${Ze},${Ke}\\)$`),nt=new RegExp(`^hsl\\(${Ke},${Ze},${Ze}\\)$`),rt=new RegExp(`^hsla\\(${Ke},${Ze},${Ze},${Ke}\\)$`),ot={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 it(){return this.rgb().formatHex()}function at(){return this.rgb().formatRgb()}function lt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Xe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?st(t):3===n?new pt(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ut(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ut(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=Je.exec(e))?new pt(t[1],t[2],t[3],1):(t=Qe.exec(e))?new pt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=et.exec(e))?ut(t[1],t[2],t[3],t[4]):(t=tt.exec(e))?ut(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=nt.exec(e))?vt(t[1],t[2]/100,t[3]/100,1):(t=rt.exec(e))?vt(t[1],t[2]/100,t[3]/100,t[4]):ot.hasOwnProperty(e)?st(ot[e]):"transparent"===e?new pt(NaN,NaN,NaN,0):null}function st(e){return new pt(e>>16&255,e>>8&255,255&e,1)}function ut(e,t,n,r){return r<=0&&(e=t=n=NaN),new pt(e,t,n,r)}function ct(e){return e instanceof Ue||(e=lt(e)),e?new pt((e=e.rgb()).r,e.g,e.b,e.opacity):new pt}function dt(e,t,n,r){return 1===arguments.length?ct(e):new pt(e,t,n,null==r?1:r)}function pt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ft(){return`#${bt(this.r)}${bt(this.g)}${bt(this.b)}`}function mt(){const e=ht(this.opacity);return`${1===e?"rgb(":"rgba("}${gt(this.r)}, ${gt(this.g)}, ${gt(this.b)}${1===e?")":`, ${e})`}`}function ht(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function bt(e){return((e=gt(e))<16?"0":"")+e.toString(16)}function vt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new xt(e,t,n,r)}function yt(e){if(e instanceof xt)return new xt(e.h,e.s,e.l,e.opacity);if(e instanceof Ue||(e=lt(e)),!e)return new xt;if(e instanceof xt)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 xt(a,l,s,e.opacity)}function xt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function St(e){return(e=(e||0)%360)<0?e+360:e}function Et(e){return Math.max(0,Math.min(1,e||0))}function Ct(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}We(Ue,lt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:it,formatHex:it,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return yt(this).formatHsl()},formatRgb:at,toString:at}),We(pt,dt,Ve(Ue,{brighter(e){return e=null==e?Ge:Math.pow(Ge,e),new pt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new pt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new pt(gt(this.r),gt(this.g),gt(this.b),ht(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:ft,formatHex:ft,formatHex8:function(){return`#${bt(this.r)}${bt(this.g)}${bt(this.b)}${bt(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:mt,toString:mt})),We(xt,(function(e,t,n,r){return 1===arguments.length?yt(e):new xt(e,t,n,null==r?1:r)}),Ve(Ue,{brighter(e){return e=null==e?Ge:Math.pow(Ge,e),new xt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new xt(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 pt(Ct(e>=240?e-240:e+120,o,r),Ct(e,o,r),Ct(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new xt(St(this.h),Et(this.s),Et(this.l),ht(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=ht(this.opacity);return`${1===e?"hsl(":"hsla("}${St(this.h)}, ${100*Et(this.s)}%, ${100*Et(this.l)}%${1===e?")":`, ${e})`}`}}));const wt=Math.PI/180,Rt=180/Math.PI,At=4/29,Dt=6/29,Pt=3*Dt*Dt;function It(e){if(e instanceof Tt)return new Tt(e.l,e.a,e.b,e.opacity);if(e instanceof Ot)return Nt(e);e instanceof pt||(e=ct(e));var t,n,r=kt(e.r),o=kt(e.g),i=kt(e.b),a=Mt((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Mt((.4360747*r+.3850649*o+.1430804*i)/.96422),n=Mt((.0139322*r+.0971045*o+.7141733*i)/.82521)),new Tt(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Tt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Mt(e){return e>.008856451679035631?Math.pow(e,1/3):e/Pt+At}function Lt(e){return e>Dt?e*e*e:Pt*(e-At)}function qt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function kt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ot(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Nt(e){if(isNaN(e.h))return new Tt(e.l,0,0,e.opacity);var t=e.h*wt;return new Tt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}We(Tt,(function(e,t,n,r){return 1===arguments.length?It(e):new Tt(e,t,n,null==r?1:r)}),Ve(Ue,{brighter(e){return new Tt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Tt(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 pt(qt(3.1338561*(t=.96422*Lt(t))-1.6168667*(e=1*Lt(e))-.4906146*(n=.82521*Lt(n))),qt(-.9787684*t+1.9161415*e+.033454*n),qt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),We(Ot,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ot)return new Ot(e.h,e.c,e.l,e.opacity);if(e instanceof Tt||(e=It(e)),0===e.a&&0===e.b)return new Ot(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Rt;return new Ot(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ot(e,t,n,null==r?1:r)}),Ve(Ue,{brighter(e){return new Ot(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ot(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Nt(this).rgb()}}));var _t=e=>()=>e;function Ft(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):_t(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?Ft: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):_t(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=dt(e)).r,(t=dt(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Ft(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 zt,Ht=["__proto__","constructor"];function jt(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!Ht.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 Bt(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 $t(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 Wt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ut)):void 0===t&&(t=Vt);for(var n,r,o,i,a,l=new Kt(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 Kt(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Yt)}function Vt(e){return e.children}function Ut(e){return Array.isArray(e)?e[1]:null}function Gt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Yt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Kt(e){this.data=e,this.depth=this.height=0,this.parent=null}Kt.prototype=Wt.prototype={constructor:Kt,count:function(){return this.eachAfter($t)},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 Wt(this).eachBefore(Gt)},[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)}},zt=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}},zt({exports:{}});function Zt(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 Xt({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}=S((()=>{const i=document.createElement("canvas").getContext("2d");i.font=`${n}${n?" ":""}${r?"600 ":""}${e} ${t}`;const a=Bt(i.measureText.bind(i)),l=e=>+a(e).width.toFixed(2),s=Bt((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,i=e;do{r+=1,i=Zt(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 Jt(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Qt(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 en(e){return e>0?0:1}function tn(e){return e.translator.get("Visualizations.Descriptions.Column")}function nn(e){return{measures:{min:en,max:1e3,description:()=>tn(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;Jt(r,n.getDimensions().length+n.getMeasures().length-1)},remove(e,t,n,r){const{qColumnOrder:o}=n.hcProperties;Qt(o,(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r)}},dimensions:{min:en,max:1e3,description:()=>tn(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;return Jt(r,n.getDimensions().length-1),e},remove(e,t,n,r){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=n.hcProperties;Qt(o,r)}}}}var rn={};!function(e){(()=>{var t={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(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](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:()=>Le});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 L(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 M(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){M(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(!M(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);M(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(M(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=L(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=L(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 j="movingAverage";function H(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)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===j)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=H(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=H(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(j))return!1;var i=H(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 Le={modifiers:Te,apply:qe,applyModifiers:ke,cleanUpMeasure:Oe,destroy:function(e){e&&Me[e.id]&&Me[e.id].masterItemSubscriber&&(Me[e.id].masterItemSubscriber&&Me[e.id].masterItemSubscriber.unsubscribe(),delete Me[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=je(e);Ge({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Je({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Me={};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;Me[n.id]=Me[n.id]||{isFirstTime:!0};var u=Me[n.id].isFirstTime;if(Me[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=Me[n.id].lastReloadTime;if(Me[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:je(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=je(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:je(e),properties:n,layout:r})}))}function _e(e){var t=je(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 je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function He(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&&He(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=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Ie(t)&&(t.disabled||!Te[t.type]&&He(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:je(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=je(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)?(Me[t.id].masterItemSubscriber=Me[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()}))}}),Me[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),e.default=o.default,Object.defineProperty(e,"__esModule",{value:!0})})()}(rn);var on=K(rn);const an="12px",ln="nebula-table-utils-head-menu-button";var sn;!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"}(sn||(sn={}));const un="nebula-table-utils-column-adjuster",cn=`${un}-border`;var dn,pn;!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"}(dn||(dn={})),function(e){e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage"}(pn||(pn={}));const fn={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}},mn=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)=>(!on.hasActiveModifiers({measures:[e],properties:t.properties})||on.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"))}},hn={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:pn.Auto,translation:"Common.Auto"},{value:pn.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:pn.Pixels,translation:"Object.Table.Column.Pixels"},{value:pn.percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:pn.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)===pn.Pixels},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(dn.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)===pn.Percentage},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(dn.PercentageMax,e.qDef.columnWidth.percentage))}}},gn={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"}]},...fn,...hn},bn={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"}},vn=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:mn(e)}),yn=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:bn},presentation:{type:"items",translation:"properties.presentation",items:gn}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:vn(e)},presentation:{type:"items",translation:"properties.presentation",items:gn}}}}}:{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:{...bn,...gn}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",grouped:!0,items:{...vn(e),...gn}}}},xn={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}}}}}}}]},Sn=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"))}},En=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}},Cn=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[xn,Sn(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1}]},...En(e)}}),wn={uses:"sorting"},Rn={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},An=e=>({type:"items",component:"accordion",items:{data:yn(e),sorting:wn,addOns:Rn,settings:Cn(e)}});var Dn={exports:{}};self,Dn.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:()=>Le});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 L(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 M(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){M(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(!M(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);M(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(M(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=L(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=L(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 j="movingAverage";function H(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)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===j)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=H(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=H(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(j))return!1;var i=H(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 Le={modifiers:Te,apply:qe,applyModifiers:ke,cleanUpMeasure:Oe,destroy:function(e){e&&Me[e.id]&&Me[e.id].masterItemSubscriber&&(Me[e.id].masterItemSubscriber&&Me[e.id].masterItemSubscriber.unsubscribe(),delete Me[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=je(e);Ge({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Je({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Me={};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;Me[n.id]=Me[n.id]||{isFirstTime:!0};var u=Me[n.id].isFirstTime;if(Me[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=Me[n.id].lastReloadTime;if(Me[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:je(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=je(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:je(e),properties:n,layout:r})}))}function _e(e){var t=je(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 je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function He(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&&He(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=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Ie(t)&&(t.disabled||!Te[t.type]&&He(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:je(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=je(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)?(Me[t.id].masterItemSubscriber=Me[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()}))}}),Me[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])},L=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},M=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},j=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=[]))},H=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?M():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})&&j({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}),H({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),L("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),L("qMode",b,v,"S"),L("qReductionMode",b,v,"N"),L("qSortbyYValue",b,v),L("qIndentMode",b,v),L("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 Le="qHyperCubeDef.qMeasures",Me="measures",qe="qHyperCubeDef.qDimensions",ke="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const He={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:je,arrayName:Me,itemPath:ze}),we({properties:e,arrayPath:qe,quarantineName:je,arrayName:ke,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Le,quarantineName:je,arrayName:Me,itemPath:ze}),Re({properties:e,arrayPath:qe,quarantineName:je,arrayName:ke,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:ze}),we({properties:e,arrayPath:_e,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:_e,quarantineName:je,arrayName:Fe,itemPath:ze})}},Be={hypercube:V,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:Te,conditionalShow:He}})(),r.default})();var Pn=K(Dn.exports),In=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:dn.PixelsDefault:-1}(n,e,t)}));return o},Tn=function(e){var t=e.propertyTree,n=e.hyperCubePath,r=Pn.hypercube.exportProperties({propertyTree:t,hyperCubePath:n}),o=r.properties.qHyperCubeDef,i=o.qColumnOrder,a=o.qDimensions,l=o.qMeasures,s=In(a,l,i);return Ht(r,"properties.qHyperCubeDef",H(H({},r.properties.qHyperCubeDef),{columnWidths:s})),Pn.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),Pn.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),Pn.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),r},Ln=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:pn.FitToContent}:{type:pn.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=Pn.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});Pn.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 Ln(e,t,r)})),measures:a.filter((function(e){return e>=o})).map((function(e){return Ln(t,e,r,o)}))}}(u,c,d,p),m=f.dimensions,h=f.measures;return Array.isArray(p)&&p.length>0&&(Ht(l,"qProperty.qHyperCubeDef.qDimensions",m),Ht(l,"qProperty.qHyperCubeDef.qMeasures",h)),a&&(Ht(l,"qProperty.totals.show",!1),Ht(l,"qProperty.usePagination",!0)),Pn.conditionalShow.unquarantine(l.qProperty),l};const qn=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 kn(e){return{definition:An(e),...qn(e),data:nn(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)=>Tn({propertyTree:e,hyperCubePath:t})}}var On=function(e){return $(void 0,void 0,void 0,(function(){var t,n,r,o;return W(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 Nn=function(e,t){return n((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,t)}),[e,t])},_n=function(e){return!Number.isNaN(+e)},Fn=function(e){return!(!e.qNum&&0!==e.qNum||!_n(e.qNum))},zn=1e4;function jn(e,t){return V([],t,!0).reverse().find((function(t){return t*e<=zn}))||Math.floor(zn/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 Bn(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 $n=function(e,t){return"auto"!==t?t:Fn(e)?"right":"left"};var Wn=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:Bn(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 Vn(e,t,n,r,o){var i,a;return $(this,void 0,void 0,(function(){var l,s,u,c,d,p,f,m,h,g,b,v,y,x,S;return W(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>zn?(r(H(H({},n),{rowsPerPage:jn(c,u),page:0})),[2,null]):(h=d>10,g=Hn(t,o),b=Wn(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:$n(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 Un=function(e,t){var n;return!(!e.snapshotData&&!(null===(n=t.viewState)||void 0===n?void 0:n.visibleHeight))},Gn=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||Un(e,t)};function Yn(){return Yn=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},Yn.apply(this,arguments)}function Kn(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function Zn(e){if(!Kn(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Zn(e[n])})),t}function Xn(e,t,n={clone:!0}){const r=n.clone?Yn({},e):e;return Kn(e)&&Kn(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Kn(t[o])&&o in e&&Kn(e[o])?r[o]=Xn(e[o],t[o],n):n.clone?r[o]=Kn(t[o])?Zn(t[o]):t[o]:r[o]=t[o])})),r}var Jn={exports:{}};function Qn(){}function er(){}er.resetWarningCache=Qn;Jn.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:er,resetWarningCache:Qn};return n.PropTypes=n,n}();var tr=K(Jn.exports);function nr(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 rr(e){if("string"!=typeof e)throw new Error(nr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function or(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function ir(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function ar(e){return e&&e.ownerDocument||document}function lr(e){return ar(e).defaultView||window}function sr(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var ur="undefined"!=typeof window?E.useLayoutEffect:E.useEffect;let cr=0;const dr=E["useId".toString()];function pr(e){if(void 0!==dr){const t=dr();return null!=e?e:t}return function(e){const[t,n]=E.useState(e),r=e||t;return E.useEffect((()=>{null==t&&(cr+=1,n(`mui-${cr}`))}),[t]),r}(e)}function fr({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=E.useRef(void 0!==e),[i,a]=E.useState(t);return[o?e:i,E.useCallback((e=>{o||a(e)}),[])]}function mr(e){const t=E.useRef(e);return ur((()=>{t.current=e})),E.useRef(((...e)=>(0,t.current)(...e))).current}function hr(...e){return E.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{sr(e,t)}))}),e)}let gr,br=!0,vr=!1;const yr={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 xr(e){e.metaKey||e.altKey||e.ctrlKey||(br=!0)}function Sr(){br=!1}function Er(){"hidden"===this.visibilityState&&vr&&(br=!0)}function Cr(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return br||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!yr[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function wr(){const e=E.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",xr,!0),t.addEventListener("mousedown",Sr,!0),t.addEventListener("pointerdown",Sr,!0),t.addEventListener("touchstart",Sr,!0),t.addEventListener("visibilitychange",Er,!0))}),[]),t=E.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Cr(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(vr=!0,window.clearTimeout(gr),gr=window.setTimeout((()=>{vr=!1}),100),t.current=!1,!0)},ref:e}}function Rr(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Ar(e,t){const n=Yn({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Yn({},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]=Yn({},i),Object.keys(o).forEach((e=>{n[r][e]=Ar(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Dr(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 Pr=e=>e;var Ir=(()=>{let e=Pr;return{configure(t){e=t},generate:t=>e(t),reset(){e=Pr}}})();const Tr={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 Lr(e,t,n="Mui"){const r=Tr[t];return r?`${n}-${r}`:`${Ir.generate(e)}-${t}`}function Mr(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Lr(e,t,n)})),r}var qr="$$material";function kr(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 Or={exports:{}},Nr={},_r=60103,Fr=60106,zr=60107,jr=60108,Hr=60114,Br=60109,$r=60110,Wr=60112,Vr=60113,Ur=60120,Gr=60115,Yr=60116,Kr=60121,Zr=60122,Xr=60117,Jr=60129,Qr=60131;if("function"==typeof Symbol&&Symbol.for){var eo=Symbol.for;_r=eo("react.element"),Fr=eo("react.portal"),zr=eo("react.fragment"),jr=eo("react.strict_mode"),Hr=eo("react.profiler"),Br=eo("react.provider"),$r=eo("react.context"),Wr=eo("react.forward_ref"),Vr=eo("react.suspense"),Ur=eo("react.suspense_list"),Gr=eo("react.memo"),Yr=eo("react.lazy"),Kr=eo("react.block"),Zr=eo("react.server.block"),Xr=eo("react.fundamental"),Jr=eo("react.debug_trace_mode"),Qr=eo("react.legacy_hidden")}function to(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case _r:switch(e=e.type){case zr:case Hr:case jr:case Vr:case Ur:return e;default:switch(e=e&&e.$$typeof){case $r:case Wr:case Yr:case Gr:case Br:return e;default:return t}}case Fr:return t}}}var no=Br,ro=_r,oo=Wr,io=zr,ao=Yr,lo=Gr,so=Fr,uo=Hr,co=jr,po=Vr;Nr.ContextConsumer=$r,Nr.ContextProvider=no,Nr.Element=ro,Nr.ForwardRef=oo,Nr.Fragment=io,Nr.Lazy=ao,Nr.Memo=lo,Nr.Portal=so,Nr.Profiler=uo,Nr.StrictMode=co,Nr.Suspense=po,Nr.isAsyncMode=function(){return!1},Nr.isConcurrentMode=function(){return!1},Nr.isContextConsumer=function(e){return to(e)===$r},Nr.isContextProvider=function(e){return to(e)===Br},Nr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===_r},Nr.isForwardRef=function(e){return to(e)===Wr},Nr.isFragment=function(e){return to(e)===zr},Nr.isLazy=function(e){return to(e)===Yr},Nr.isMemo=function(e){return to(e)===Gr},Nr.isPortal=function(e){return to(e)===Fr},Nr.isProfiler=function(e){return to(e)===Hr},Nr.isStrictMode=function(e){return to(e)===jr},Nr.isSuspense=function(e){return to(e)===Vr},Nr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===zr||e===Hr||e===Jr||e===jr||e===Vr||e===Ur||e===Qr||"object"==typeof e&&null!==e&&(e.$$typeof===Yr||e.$$typeof===Gr||e.$$typeof===Br||e.$$typeof===$r||e.$$typeof===Wr||e.$$typeof===Xr||e.$$typeof===Kr||e[0]===Zr)},Nr.typeOf=to,Or.exports=Nr;var fo=Or.exports,mo=K((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 ho(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,M=0,k=h=f=0,N=0,_=0,F=0,z=0,j=s.length,H=j-1,B="",$="",W="",V="";N<j;){if(m=s.charCodeAt(N),N===H&&0!==C+R+w+E&&(0!==C&&(m=47===C?10:47),R=w=E=0,j++,H++),0===C+R+w+E){if(N===H&&(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<j;){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<H;++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++<H&&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:_=L}if(z=(h=t(r,_,h,m,p+1)).length,0<q&&(x=l(3,h,_=n(L,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===M&&(I=M)}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*M==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)}M=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=M[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(L,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,L=[],M=[],q=0,k=null,O=0;return u.use=function e(t){switch(t){case void 0:case null:q=M.length=0;break;default:if("function"==typeof t)M[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 go={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 bo(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var vo=/^((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)-.*))$/,yo=bo((function(e){return vo.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),xo={exports:{}},So={},Eo="function"==typeof Symbol&&Symbol.for,Co=Eo?Symbol.for("react.element"):60103,wo=Eo?Symbol.for("react.portal"):60106,Ro=Eo?Symbol.for("react.fragment"):60107,Ao=Eo?Symbol.for("react.strict_mode"):60108,Do=Eo?Symbol.for("react.profiler"):60114,Po=Eo?Symbol.for("react.provider"):60109,Io=Eo?Symbol.for("react.context"):60110,To=Eo?Symbol.for("react.async_mode"):60111,Lo=Eo?Symbol.for("react.concurrent_mode"):60111,Mo=Eo?Symbol.for("react.forward_ref"):60112,qo=Eo?Symbol.for("react.suspense"):60113,ko=Eo?Symbol.for("react.suspense_list"):60120,Oo=Eo?Symbol.for("react.memo"):60115,No=Eo?Symbol.for("react.lazy"):60116,_o=Eo?Symbol.for("react.block"):60121,Fo=Eo?Symbol.for("react.fundamental"):60117,zo=Eo?Symbol.for("react.responder"):60118,jo=Eo?Symbol.for("react.scope"):60119;function Ho(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Co:switch(e=e.type){case To:case Lo:case Ro:case Do:case Ao:case qo:return e;default:switch(e=e&&e.$$typeof){case Io:case Mo:case No:case Oo:case Po:return e;default:return t}}case wo:return t}}}function Bo(e){return Ho(e)===Lo}So.AsyncMode=To,So.ConcurrentMode=Lo,So.ContextConsumer=Io,So.ContextProvider=Po,So.Element=Co,So.ForwardRef=Mo,So.Fragment=Ro,So.Lazy=No,So.Memo=Oo,So.Portal=wo,So.Profiler=Do,So.StrictMode=Ao,So.Suspense=qo,So.isAsyncMode=function(e){return Bo(e)||Ho(e)===To},So.isConcurrentMode=Bo,So.isContextConsumer=function(e){return Ho(e)===Io},So.isContextProvider=function(e){return Ho(e)===Po},So.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Co},So.isForwardRef=function(e){return Ho(e)===Mo},So.isFragment=function(e){return Ho(e)===Ro},So.isLazy=function(e){return Ho(e)===No},So.isMemo=function(e){return Ho(e)===Oo},So.isPortal=function(e){return Ho(e)===wo},So.isProfiler=function(e){return Ho(e)===Do},So.isStrictMode=function(e){return Ho(e)===Ao},So.isSuspense=function(e){return Ho(e)===qo},So.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ro||e===Lo||e===Do||e===Ao||e===qo||e===ko||"object"==typeof e&&null!==e&&(e.$$typeof===No||e.$$typeof===Oo||e.$$typeof===Po||e.$$typeof===Io||e.$$typeof===Mo||e.$$typeof===Fo||e.$$typeof===zo||e.$$typeof===jo||e.$$typeof===_o)},So.typeOf=Ho,xo.exports=So;var $o=xo.exports,Wo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Vo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Uo={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Go={};function Yo(e){return $o.isMemo(e)?Uo:Go[e.$$typeof]||Wo}Go[$o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Go[$o.Memo]=Uo;var Ko=Object.defineProperty,Zo=Object.getOwnPropertyNames,Xo=Object.getOwnPropertySymbols,Jo=Object.getOwnPropertyDescriptor,Qo=Object.getPrototypeOf,ei=Object.prototype;var ti=function e(t,n,r){if("string"!=typeof n){if(ei){var o=Qo(n);o&&o!==ei&&e(t,o,r)}var i=Zo(n);Xo&&(i=i.concat(Xo(n)));for(var a=Yo(t),l=Yo(n),s=0;s<i.length;++s){var u=i[s];if(!(Vo[u]||r&&r[u]||l&&l[u]||a&&a[u])){var c=Jo(n,u);try{Ko(t,u,c)}catch(e){}}}}return t},ni=K(ti);function ri(){return(ri=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 oi=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},ii=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!fo.typeOf(e)},ai=Object.freeze([]),li=Object.freeze({});function si(e){return"function"==typeof e}function ui(e){return e.displayName||e.name||"Component"}function ci(e){return e&&"string"==typeof e.styledComponentId}var di="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",pi="undefined"!=typeof window&&"HTMLElement"in window,fi=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))),mi={};function hi(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 gi=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&&hi(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}(),bi=new Map,vi=new Map,yi=1,xi=function(e){if(bi.has(e))return bi.get(e);for(;vi.has(yi);)yi++;var t=yi++;return bi.set(e,t),vi.set(t,e),t},Si=function(e){return vi.get(e)},Ei=function(e,t){t>=yi&&(yi=t+1),bi.set(e,t),vi.set(t,e)},Ci="style["+di+'][data-styled-version="5.3.11"]',wi=new RegExp("^"+di+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Ri=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)},Ai=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(wi);if(l){var s=0|parseInt(l[1],10),u=l[2];0!==s&&(Ei(u,s),Ri(e,u,l[3]),e.getTag().insertRules(s,r)),r.length=0}else r.push(a)}}},Di=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(di))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(di,"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},Pi=function(){function e(e){var t=this.element=Di(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}hi(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}(),Ii=function(){function e(e){var t=this.element=Di(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}(),Ti=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}(),Li=pi,Mi={isServer:!pi,useCSSOMInjection:!fi},qi=function(){function e(e,t,n){void 0===e&&(e=li),void 0===t&&(t={}),this.options=ri({},Mi,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&pi&&Li&&(Li=!1,function(e){for(var t=document.querySelectorAll(Ci),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(di)&&(Ai(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return xi(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(ri({},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 Ti(o):r?new Pi(o):new Ii(o),new gi(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(xi(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(xi(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(xi(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=Si(o);if(void 0!==i){var a=e.names.get(i),l=t.getGroup(o);if(a&&l&&a.size){var s=di+".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}(),ki=/(a)(d)/gi,Oi=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ni(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Oi(t%52)+n;return(Oi(t%52)+n).replace(ki,"$1-$2")}var _i=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Fi=function(e){return _i(5381,e)};function zi(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(si(n)&&!ci(n))return!1}return!0}var ji=Fi("5.3.11"),Hi=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&zi(e),this.componentId=t,this.baseHash=_i(ji,t),this.baseStyle=n,qi.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=ia(this.rules,e,t,n).join(""),a=Ni(_i(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=_i(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=ia(p,e,t,n),m=Array.isArray(f)?f.join(""):f;u=_i(u,m+d),c+=m}}if(c){var h=Ni(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}(),Bi=/^\s*\/\/.*$/gm,$i=[":","[",".","#"];function Wi(e){var t,n,r,o,i=void 0===e?li:e,a=i.options,l=void 0===a?li:a,s=i.plugins,u=void 0===s?ai:s,c=new ho(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!==$i.indexOf(i[n.length])||i.match(o)?e:"."+t};function m(e,i,a,l){void 0===l&&(l="&");var s=e.replace(Bi,""),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||hi(15),_i(e,t.name)}),5381).toString():"",m}var Vi=C.createContext();Vi.Consumer;var Ui=C.createContext(),Gi=(Ui.Consumer,new qi),Yi=Wi();function Ki(){return R(Vi)||Gi}function Zi(){return R(Ui)||Yi}function Xi(e){var t=x(e.stylisPlugins),n=t[0],r=t[1],o=Ki(),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]),a=S((function(){return Wi({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return w((function(){mo(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),C.createElement(Vi.Provider,{value:i},C.createElement(Ui.Provider,{value:a},e.children))}var Ji=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Yi);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 hi(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=Yi),this.name+e.hash},e}(),Qi=/([A-Z])/,ea=/([A-Z])/g,ta=/^ms-/,na=function(e){return"-"+e.toLowerCase()};function ra(e){return Qi.test(e)?e.replace(ea,na).replace(ta,"-ms-"):e}var oa=function(e){return null==e||!1===e||""===e};function ia(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,l=e.length;a<l;a+=1)""!==(o=ia(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return oa(e)?"":ci(e)?"."+e.styledComponentId:si(e)?"function"!=typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!t?e:ia(e(t),t,n,r):e instanceof Ji?n?(e.inject(n,r),e.getName(r)):e:ii(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!oa(t[a])&&(Array.isArray(t[a])&&t[a].isCss||si(t[a])?i.push(ra(a)+":",t[a],";"):ii(t[a])?i.push.apply(i,e(t[a],a)):i.push(ra(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in go||r.startsWith("--")?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var s}var aa=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function la(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 si(e)||ii(e)?aa(ia(oi(ai,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:aa(ia(oi(e,n)))}var sa=function(e,t,n){return void 0===n&&(n=li),e.theme!==n.theme&&e.theme||t||n.theme},ua=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ca=/(^-|-$)/g;function da(e){return e.replace(ua,"-").replace(ca,"")}var pa=function(e){return Ni(Fi(e)>>>0)};function fa(e){return"string"==typeof e&&!0}var ma=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ha=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ga(e,t,n){var r=e[n];ma(t)&&ma(r)?ba(r,t):e[n]=t}function ba(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(ma(a))for(var l in a)ha(l)&&ga(e,a[l],l)}return e}var va=C.createContext();va.Consumer;var ya={};function xa(e,t,n){var r=ci(e),o=!fa(e),i=t.attrs,a=void 0===i?ai:i,l=t.componentId,s=void 0===l?function(e,t){var n="string"!=typeof e?"sc":da(e);ya[n]=(ya[n]||0)+1;var r=n+"-"+pa("5.3.11"+n+ya[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,u=t.displayName,c=void 0===u?function(e){return fa(e)?"styled."+e:"Styled("+ui(e)+")"}(e):u,d=t.displayName&&t.componentId?da(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=li);var r=ri({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in si(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]}(sa(t,R(va),a)||li,t,o),p=d[0],f=d[1],m=function(e,t,n,r){var o=Ki(),i=Zi();return t?e.generateAndInjectStyles(li,o,i):e.generateAndInjectStyles(n,o,i)}(i,r,p),h=n,g=f.$as||t.$as||f.as||t.as||c,b=fa(g),v=f!==t?ri({},t,{},f):t,y={};for(var x in v)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?y.as=v[x]:(s?s(x,yo,g):!b||yo(x))&&(y[x]=v[x]));return t.style&&f.style!==t.style&&(y.style=ri({},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,A(g,y)}(m,e,t,g)};return b.displayName=c,(m=C.forwardRef(b)).attrs=p,m.componentStyle=h,m.displayName=c,m.shouldForwardProp=f,m.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):ai,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+"-"+(fa(e)?e:da(ui(e)));return xa(e,ri({},o,{attrs:p,componentId:i}),n)},Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?ba({},e.defaultProps,t):t}}),Object.defineProperty(m,"toString",{value:function(){return"."+m.styledComponentId}}),o&&ni(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),m}var Sa=function(e){return function e(t,n,r){if(void 0===r&&(r=li),!fo.isValidElementType(n))return hi(1,String(n));var o=function(){return t(n,r,la.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,ri({},r,{},o))},o.attrs=function(o){return e(t,n,ri({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(xa,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){Sa[e]=Sa(e)}));var Ea=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=zi(e),qi.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(ia(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&&qi.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Ca(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=la.apply(void 0,[e].concat(n)).join(""),i=pa(o);return new Ji(i,o)}var wa=Sa;const Ra=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=la.apply(void 0,[e].concat(n)),i="sc-global-"+pa(JSON.stringify(o)),a=new Ea(o,i);function l(e){var t=Ki(),n=Zi(),r=R(va),o=D(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,mi,n,o);else{var i=ri({},t,{theme:sa(t,r,l.defaultProps)});a.renderStyles(e,i,n,o)}}return C.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 Aa=Ra;
|
|
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}},zt({exports:{}});function Zt(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 Xt({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}=S((()=>{const i=document.createElement("canvas").getContext("2d");i.font=`${n}${n?" ":""}${r?"600 ":""}${e} ${t}`;const a=Bt(i.measureText.bind(i)),l=e=>+a(e).width.toFixed(2),s=Bt((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,i=e;do{r+=1,i=Zt(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 Jt(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Qt(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 en(e){return e>0?0:1}function tn(e){return e.translator.get("Visualizations.Descriptions.Column")}function nn(e){return{measures:{min:en,max:1e3,description:()=>tn(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;Jt(r,n.getDimensions().length+n.getMeasures().length-1)},remove(e,t,n,r){const{qColumnOrder:o}=n.hcProperties;Qt(o,(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r)}},dimensions:{min:en,max:1e3,description:()=>tn(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;return Jt(r,n.getDimensions().length-1),e},remove(e,t,n,r){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=n.hcProperties;Qt(o,r)}}}}var rn={};!function(e){(()=>{var t={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(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](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.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()}})(),e.default=o.default,Object.defineProperty(e,"__esModule",{value:!0})})()}(rn);var on=K(rn);const an="12px",ln="nebula-table-utils-head-menu-button";var sn;!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"}(sn||(sn={}));const un="nebula-table-utils-column-adjuster",cn=`${un}-border`;var dn,pn;!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"}(dn||(dn={})),function(e){e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage"}(pn||(pn={}));const fn={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}},mn=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)=>(!on.hasActiveModifiers({measures:[e],properties:t.properties})||on.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"))}},hn={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:pn.Auto,translation:"Common.Auto"},{value:pn.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:pn.Pixels,translation:"Object.Table.Column.Pixels"},{value:pn.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:pn.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)===pn.Pixels},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(dn.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)===pn.Percentage},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(dn.PercentageMax,e.qDef.columnWidth.percentage))}}},gn={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"}]},...fn,...hn},bn={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"}},vn=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:mn(e)}),yn=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:bn},presentation:{type:"items",translation:"properties.presentation",items:gn}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:vn(e)},presentation:{type:"items",translation:"properties.presentation",items:gn}}}}}:{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:{...bn,...gn}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",grouped:!0,items:{...vn(e),...gn}}}},xn={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}}}}}}}]},Sn=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"))}},En=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}},Cn=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[xn,Sn(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1}]},...En(e)}}),wn={uses:"sorting"},Rn={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},An=e=>({type:"items",component:"accordion",items:{data:yn(e),sorting:wn,addOns:Rn,settings:Cn(e)}});var Dn={exports:{}};self,Dn.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 Pn=K(Dn.exports),In=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:dn.PixelsDefault:-1}(n,e,t)}));return o},Tn=function(e){var t=e.propertyTree,n=e.hyperCubePath,r=Pn.hypercube.exportProperties({propertyTree:t,hyperCubePath:n}),o=r.properties.qHyperCubeDef,i=o.qColumnOrder,a=o.qDimensions,l=o.qMeasures,s=In(a,l,i);return jt(r,"properties.qHyperCubeDef",j(j({},r.properties.qHyperCubeDef),{columnWidths:s})),Pn.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),Pn.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),Pn.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),r},Mn=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="number"==typeof a&&a>0?{type:pn.Pixels,pixels:a}:{type:pn.FitToContent}}return i},Ln=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.extension,o=e.hypercubePath,i=e.defaultPropertyValues,a=e.viewDataMode,l=Pn.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});Pn.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 Mn(e,t,r)})),measures:a.filter((function(e){return e>=o})).map((function(e){return Mn(t,e,r,o)}))}}(u,c,d,p),m=f.dimensions,h=f.measures;return Array.isArray(p)&&p.length>0&&(jt(l,"qProperty.qHyperCubeDef.qDimensions",m),jt(l,"qProperty.qHyperCubeDef.qMeasures",h)),a&&(jt(l,"qProperty.totals.show",!1),jt(l,"qProperty.usePagination",!0)),Pn.conditionalShow.unquarantine(l.qProperty),l};const qn=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 kn(e){return{definition:An(e),...qn(e),data:nn(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 Ln({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o})},exportProperties:(e,t)=>Tn({propertyTree:e,hyperCubePath:t})}}var On=function(e){return $(void 0,void 0,void 0,(function(){var t,n,r,o;return W(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 Nn=function(e,t){return n((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(j(j({},s),n))}:{qPath:l,qOp:"Add",qValue:JSON.stringify(n)};null==t||t.applyPatches([u],!0)}}(e,t)}),[e,t])},_n=function(e){return!Number.isNaN(+e)},Fn=function(e){return!(!e.qNum&&0!==e.qNum||!_n(e.qNum))},zn=1e4;function Hn(e,t){return V([],t,!0).reverse().find((function(t){return t*e<=zn}))||Math.floor(zn/e)}function jn(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 Bn(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 $n=function(e,t){return"auto"!==t?t:Fn(e)?"right":"left"};var Wn=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 j({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:Bn(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 Vn(e,t,n,r,o){var i,a;return $(this,void 0,void 0,(function(){var l,s,u,c,d,p,f,m,h,g,b,v,y,x,S;return W(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(j(j({},n),{page:0})),[2,null]):m*c>zn?(r(j(j({},n),{rowsPerPage:Hn(c,u),page:0})),[2,null]):(h=d>10,g=jn(t,o),b=Wn(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]=j(j({},e[o]),{align:$n(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 Un=function(e,t){var n;return!(!e.snapshotData&&!(null===(n=t.viewState)||void 0===n?void 0:n.visibleHeight))},Gn=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||Un(e,t)};function Yn(){return Yn=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},Yn.apply(this,arguments)}function Kn(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function Zn(e){if(!Kn(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Zn(e[n])})),t}function Xn(e,t,n={clone:!0}){const r=n.clone?Yn({},e):e;return Kn(e)&&Kn(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Kn(t[o])&&o in e&&Kn(e[o])?r[o]=Xn(e[o],t[o],n):n.clone?r[o]=Kn(t[o])?Zn(t[o]):t[o]:r[o]=t[o])})),r}var Jn={exports:{}};function Qn(){}function er(){}er.resetWarningCache=Qn;Jn.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:er,resetWarningCache:Qn};return n.PropTypes=n,n}();var tr=K(Jn.exports);function nr(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 rr(e){if("string"!=typeof e)throw new Error(nr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function or(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function ir(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function ar(e){return e&&e.ownerDocument||document}function lr(e){return ar(e).defaultView||window}function sr(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var ur="undefined"!=typeof window?E.useLayoutEffect:E.useEffect;let cr=0;const dr=E["useId".toString()];function pr(e){if(void 0!==dr){const t=dr();return null!=e?e:t}return function(e){const[t,n]=E.useState(e),r=e||t;return E.useEffect((()=>{null==t&&(cr+=1,n(`mui-${cr}`))}),[t]),r}(e)}function fr({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=E.useRef(void 0!==e),[i,a]=E.useState(t);return[o?e:i,E.useCallback((e=>{o||a(e)}),[])]}function mr(e){const t=E.useRef(e);return ur((()=>{t.current=e})),E.useRef(((...e)=>(0,t.current)(...e))).current}function hr(...e){return E.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{sr(e,t)}))}),e)}let gr,br=!0,vr=!1;const yr={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 xr(e){e.metaKey||e.altKey||e.ctrlKey||(br=!0)}function Sr(){br=!1}function Er(){"hidden"===this.visibilityState&&vr&&(br=!0)}function Cr(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return br||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!yr[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function wr(){const e=E.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",xr,!0),t.addEventListener("mousedown",Sr,!0),t.addEventListener("pointerdown",Sr,!0),t.addEventListener("touchstart",Sr,!0),t.addEventListener("visibilitychange",Er,!0))}),[]),t=E.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Cr(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(vr=!0,window.clearTimeout(gr),gr=window.setTimeout((()=>{vr=!1}),100),t.current=!1,!0)},ref:e}}function Rr(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Ar(e,t){const n=Yn({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Yn({},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]=Yn({},i),Object.keys(o).forEach((e=>{n[r][e]=Ar(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Dr(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 Pr=e=>e;var Ir=(()=>{let e=Pr;return{configure(t){e=t},generate:t=>e(t),reset(){e=Pr}}})();const Tr={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 Mr(e,t,n="Mui"){const r=Tr[t];return r?`${n}-${r}`:`${Ir.generate(e)}-${t}`}function Lr(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Mr(e,t,n)})),r}var qr="$$material";function kr(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 Or={exports:{}},Nr={},_r=60103,Fr=60106,zr=60107,Hr=60108,jr=60114,Br=60109,$r=60110,Wr=60112,Vr=60113,Ur=60120,Gr=60115,Yr=60116,Kr=60121,Zr=60122,Xr=60117,Jr=60129,Qr=60131;if("function"==typeof Symbol&&Symbol.for){var eo=Symbol.for;_r=eo("react.element"),Fr=eo("react.portal"),zr=eo("react.fragment"),Hr=eo("react.strict_mode"),jr=eo("react.profiler"),Br=eo("react.provider"),$r=eo("react.context"),Wr=eo("react.forward_ref"),Vr=eo("react.suspense"),Ur=eo("react.suspense_list"),Gr=eo("react.memo"),Yr=eo("react.lazy"),Kr=eo("react.block"),Zr=eo("react.server.block"),Xr=eo("react.fundamental"),Jr=eo("react.debug_trace_mode"),Qr=eo("react.legacy_hidden")}function to(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case _r:switch(e=e.type){case zr:case jr:case Hr:case Vr:case Ur:return e;default:switch(e=e&&e.$$typeof){case $r:case Wr:case Yr:case Gr:case Br:return e;default:return t}}case Fr:return t}}}var no=Br,ro=_r,oo=Wr,io=zr,ao=Yr,lo=Gr,so=Fr,uo=jr,co=Hr,po=Vr;Nr.ContextConsumer=$r,Nr.ContextProvider=no,Nr.Element=ro,Nr.ForwardRef=oo,Nr.Fragment=io,Nr.Lazy=ao,Nr.Memo=lo,Nr.Portal=so,Nr.Profiler=uo,Nr.StrictMode=co,Nr.Suspense=po,Nr.isAsyncMode=function(){return!1},Nr.isConcurrentMode=function(){return!1},Nr.isContextConsumer=function(e){return to(e)===$r},Nr.isContextProvider=function(e){return to(e)===Br},Nr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===_r},Nr.isForwardRef=function(e){return to(e)===Wr},Nr.isFragment=function(e){return to(e)===zr},Nr.isLazy=function(e){return to(e)===Yr},Nr.isMemo=function(e){return to(e)===Gr},Nr.isPortal=function(e){return to(e)===Fr},Nr.isProfiler=function(e){return to(e)===jr},Nr.isStrictMode=function(e){return to(e)===Hr},Nr.isSuspense=function(e){return to(e)===Vr},Nr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===zr||e===jr||e===Jr||e===Hr||e===Vr||e===Ur||e===Qr||"object"==typeof e&&null!==e&&(e.$$typeof===Yr||e.$$typeof===Gr||e.$$typeof===Br||e.$$typeof===$r||e.$$typeof===Wr||e.$$typeof===Xr||e.$$typeof===Kr||e[0]===Zr)},Nr.typeOf=to,Or.exports=Nr;var fo=Or.exports,mo=K((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 ho(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 go={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 bo(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var vo=/^((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)-.*))$/,yo=bo((function(e){return vo.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),xo={exports:{}},So={},Eo="function"==typeof Symbol&&Symbol.for,Co=Eo?Symbol.for("react.element"):60103,wo=Eo?Symbol.for("react.portal"):60106,Ro=Eo?Symbol.for("react.fragment"):60107,Ao=Eo?Symbol.for("react.strict_mode"):60108,Do=Eo?Symbol.for("react.profiler"):60114,Po=Eo?Symbol.for("react.provider"):60109,Io=Eo?Symbol.for("react.context"):60110,To=Eo?Symbol.for("react.async_mode"):60111,Mo=Eo?Symbol.for("react.concurrent_mode"):60111,Lo=Eo?Symbol.for("react.forward_ref"):60112,qo=Eo?Symbol.for("react.suspense"):60113,ko=Eo?Symbol.for("react.suspense_list"):60120,Oo=Eo?Symbol.for("react.memo"):60115,No=Eo?Symbol.for("react.lazy"):60116,_o=Eo?Symbol.for("react.block"):60121,Fo=Eo?Symbol.for("react.fundamental"):60117,zo=Eo?Symbol.for("react.responder"):60118,Ho=Eo?Symbol.for("react.scope"):60119;function jo(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Co:switch(e=e.type){case To:case Mo:case Ro:case Do:case Ao:case qo:return e;default:switch(e=e&&e.$$typeof){case Io:case Lo:case No:case Oo:case Po:return e;default:return t}}case wo:return t}}}function Bo(e){return jo(e)===Mo}So.AsyncMode=To,So.ConcurrentMode=Mo,So.ContextConsumer=Io,So.ContextProvider=Po,So.Element=Co,So.ForwardRef=Lo,So.Fragment=Ro,So.Lazy=No,So.Memo=Oo,So.Portal=wo,So.Profiler=Do,So.StrictMode=Ao,So.Suspense=qo,So.isAsyncMode=function(e){return Bo(e)||jo(e)===To},So.isConcurrentMode=Bo,So.isContextConsumer=function(e){return jo(e)===Io},So.isContextProvider=function(e){return jo(e)===Po},So.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Co},So.isForwardRef=function(e){return jo(e)===Lo},So.isFragment=function(e){return jo(e)===Ro},So.isLazy=function(e){return jo(e)===No},So.isMemo=function(e){return jo(e)===Oo},So.isPortal=function(e){return jo(e)===wo},So.isProfiler=function(e){return jo(e)===Do},So.isStrictMode=function(e){return jo(e)===Ao},So.isSuspense=function(e){return jo(e)===qo},So.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ro||e===Mo||e===Do||e===Ao||e===qo||e===ko||"object"==typeof e&&null!==e&&(e.$$typeof===No||e.$$typeof===Oo||e.$$typeof===Po||e.$$typeof===Io||e.$$typeof===Lo||e.$$typeof===Fo||e.$$typeof===zo||e.$$typeof===Ho||e.$$typeof===_o)},So.typeOf=jo,xo.exports=So;var $o=xo.exports,Wo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Vo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Uo={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Go={};function Yo(e){return $o.isMemo(e)?Uo:Go[e.$$typeof]||Wo}Go[$o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Go[$o.Memo]=Uo;var Ko=Object.defineProperty,Zo=Object.getOwnPropertyNames,Xo=Object.getOwnPropertySymbols,Jo=Object.getOwnPropertyDescriptor,Qo=Object.getPrototypeOf,ei=Object.prototype;var ti=function e(t,n,r){if("string"!=typeof n){if(ei){var o=Qo(n);o&&o!==ei&&e(t,o,r)}var i=Zo(n);Xo&&(i=i.concat(Xo(n)));for(var a=Yo(t),l=Yo(n),s=0;s<i.length;++s){var u=i[s];if(!(Vo[u]||r&&r[u]||l&&l[u]||a&&a[u])){var c=Jo(n,u);try{Ko(t,u,c)}catch(e){}}}}return t},ni=K(ti);function ri(){return(ri=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 oi=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},ii=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!fo.typeOf(e)},ai=Object.freeze([]),li=Object.freeze({});function si(e){return"function"==typeof e}function ui(e){return e.displayName||e.name||"Component"}function ci(e){return e&&"string"==typeof e.styledComponentId}var di="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",pi="undefined"!=typeof window&&"HTMLElement"in window,fi=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))),mi={};function hi(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 gi=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&&hi(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}(),bi=new Map,vi=new Map,yi=1,xi=function(e){if(bi.has(e))return bi.get(e);for(;vi.has(yi);)yi++;var t=yi++;return bi.set(e,t),vi.set(t,e),t},Si=function(e){return vi.get(e)},Ei=function(e,t){t>=yi&&(yi=t+1),bi.set(e,t),vi.set(t,e)},Ci="style["+di+'][data-styled-version="5.3.11"]',wi=new RegExp("^"+di+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Ri=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)},Ai=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(wi);if(l){var s=0|parseInt(l[1],10),u=l[2];0!==s&&(Ei(u,s),Ri(e,u,l[3]),e.getTag().insertRules(s,r)),r.length=0}else r.push(a)}}},Di=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(di))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(di,"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},Pi=function(){function e(e){var t=this.element=Di(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}hi(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}(),Ii=function(){function e(e){var t=this.element=Di(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}(),Ti=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}(),Mi=pi,Li={isServer:!pi,useCSSOMInjection:!fi},qi=function(){function e(e,t,n){void 0===e&&(e=li),void 0===t&&(t={}),this.options=ri({},Li,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&pi&&Mi&&(Mi=!1,function(e){for(var t=document.querySelectorAll(Ci),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(di)&&(Ai(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return xi(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(ri({},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 Ti(o):r?new Pi(o):new Ii(o),new gi(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(xi(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(xi(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(xi(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=Si(o);if(void 0!==i){var a=e.names.get(i),l=t.getGroup(o);if(a&&l&&a.size){var s=di+".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}(),ki=/(a)(d)/gi,Oi=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ni(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Oi(t%52)+n;return(Oi(t%52)+n).replace(ki,"$1-$2")}var _i=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Fi=function(e){return _i(5381,e)};function zi(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(si(n)&&!ci(n))return!1}return!0}var Hi=Fi("5.3.11"),ji=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&zi(e),this.componentId=t,this.baseHash=_i(Hi,t),this.baseStyle=n,qi.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=ia(this.rules,e,t,n).join(""),a=Ni(_i(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=_i(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=ia(p,e,t,n),m=Array.isArray(f)?f.join(""):f;u=_i(u,m+d),c+=m}}if(c){var h=Ni(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}(),Bi=/^\s*\/\/.*$/gm,$i=[":","[",".","#"];function Wi(e){var t,n,r,o,i=void 0===e?li:e,a=i.options,l=void 0===a?li:a,s=i.plugins,u=void 0===s?ai:s,c=new ho(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!==$i.indexOf(i[n.length])||i.match(o)?e:"."+t};function m(e,i,a,l){void 0===l&&(l="&");var s=e.replace(Bi,""),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||hi(15),_i(e,t.name)}),5381).toString():"",m}var Vi=C.createContext();Vi.Consumer;var Ui=C.createContext(),Gi=(Ui.Consumer,new qi),Yi=Wi();function Ki(){return R(Vi)||Gi}function Zi(){return R(Ui)||Yi}function Xi(e){var t=x(e.stylisPlugins),n=t[0],r=t[1],o=Ki(),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]),a=S((function(){return Wi({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return w((function(){mo(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),C.createElement(Vi.Provider,{value:i},C.createElement(Ui.Provider,{value:a},e.children))}var Ji=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Yi);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 hi(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=Yi),this.name+e.hash},e}(),Qi=/([A-Z])/,ea=/([A-Z])/g,ta=/^ms-/,na=function(e){return"-"+e.toLowerCase()};function ra(e){return Qi.test(e)?e.replace(ea,na).replace(ta,"-ms-"):e}var oa=function(e){return null==e||!1===e||""===e};function ia(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,l=e.length;a<l;a+=1)""!==(o=ia(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return oa(e)?"":ci(e)?"."+e.styledComponentId:si(e)?"function"!=typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!t?e:ia(e(t),t,n,r):e instanceof Ji?n?(e.inject(n,r),e.getName(r)):e:ii(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!oa(t[a])&&(Array.isArray(t[a])&&t[a].isCss||si(t[a])?i.push(ra(a)+":",t[a],";"):ii(t[a])?i.push.apply(i,e(t[a],a)):i.push(ra(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in go||r.startsWith("--")?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var s}var aa=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function la(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 si(e)||ii(e)?aa(ia(oi(ai,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:aa(ia(oi(e,n)))}var sa=function(e,t,n){return void 0===n&&(n=li),e.theme!==n.theme&&e.theme||t||n.theme},ua=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ca=/(^-|-$)/g;function da(e){return e.replace(ua,"-").replace(ca,"")}var pa=function(e){return Ni(Fi(e)>>>0)};function fa(e){return"string"==typeof e&&!0}var ma=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ha=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ga(e,t,n){var r=e[n];ma(t)&&ma(r)?ba(r,t):e[n]=t}function ba(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(ma(a))for(var l in a)ha(l)&&ga(e,a[l],l)}return e}var va=C.createContext();va.Consumer;var ya={};function xa(e,t,n){var r=ci(e),o=!fa(e),i=t.attrs,a=void 0===i?ai:i,l=t.componentId,s=void 0===l?function(e,t){var n="string"!=typeof e?"sc":da(e);ya[n]=(ya[n]||0)+1;var r=n+"-"+pa("5.3.11"+n+ya[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,u=t.displayName,c=void 0===u?function(e){return fa(e)?"styled."+e:"Styled("+ui(e)+")"}(e):u,d=t.displayName&&t.componentId?da(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 ji(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=li);var r=ri({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in si(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]}(sa(t,R(va),a)||li,t,o),p=d[0],f=d[1],m=function(e,t,n,r){var o=Ki(),i=Zi();return t?e.generateAndInjectStyles(li,o,i):e.generateAndInjectStyles(n,o,i)}(i,r,p),h=n,g=f.$as||t.$as||f.as||t.as||c,b=fa(g),v=f!==t?ri({},t,{},f):t,y={};for(var x in v)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?y.as=v[x]:(s?s(x,yo,g):!b||yo(x))&&(y[x]=v[x]));return t.style&&f.style!==t.style&&(y.style=ri({},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,A(g,y)}(m,e,t,g)};return b.displayName=c,(m=C.forwardRef(b)).attrs=p,m.componentStyle=h,m.displayName=c,m.shouldForwardProp=f,m.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):ai,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+"-"+(fa(e)?e:da(ui(e)));return xa(e,ri({},o,{attrs:p,componentId:i}),n)},Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?ba({},e.defaultProps,t):t}}),Object.defineProperty(m,"toString",{value:function(){return"."+m.styledComponentId}}),o&&ni(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),m}var Sa=function(e){return function e(t,n,r){if(void 0===r&&(r=li),!fo.isValidElementType(n))return hi(1,String(n));var o=function(){return t(n,r,la.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,ri({},r,{},o))},o.attrs=function(o){return e(t,n,ri({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(xa,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){Sa[e]=Sa(e)}));var Ea=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=zi(e),qi.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(ia(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&&qi.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Ca(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=la.apply(void 0,[e].concat(n)).join(""),i=pa(o);return new Ji(i,o)}var wa=Sa;const Ra=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=la.apply(void 0,[e].concat(n)),i="sc-global-"+pa(JSON.stringify(o)),a=new Ea(o,i);function l(e){var t=Ki(),n=Zi(),r=R(va),o=D(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,mi,n,o);else{var i=ri({},t,{theme:sa(t,r,l.defaultProps)});a.renderStyles(e,i,n,o)}}return C.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 Aa=Ra;
|
|
10
10
|
/** @license MUI v5.10.0
|
|
11
11
|
*
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
function Da(e,t){let n;return n=t?wa(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):wa(e),n}Ra.propTypes={defaultTheme:tr.object,styles:tr.oneOfType([tr.string,tr.object,tr.func])};const Pa=["values","unit","step"],Ia=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)=>Yn({},e,{[t.key]:t.val})),{})};var Ta={borderRadius:4};function La(e,t){return t?Xn(e,t,{clone:!1}):e}const Ma={xs:0,sm:600,md:900,lg:1200,xl:1536},qa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ma[e]}px)`};function ka(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||qa;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||qa;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 Oa(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 Na(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Oa(e,n)||r,t&&(o=t(o,r,e)),o}function _a(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=Oa(e.theme,r)||{};return ka(e,i,(e=>{let r=Na(a,o,e);return e===r&&"string"==typeof e&&(r=Na(a,o,`${t}${"default"===e?"":rr(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Fa={m:"margin",p:"padding"},za={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ja={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(!ja[e])return[e];e=ja[e]}const[t,n]=e.split(""),r=Fa[t],o=za[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Ba=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$a=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Wa(e,t,n,r){var o;const i=null!=(o=Oa(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 Va(e){return Wa(e,"spacing",8)}function Ua(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 Ga(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Ua(t,n),e)),{})}(Ha(n),r);return ka(e,e[n],o)}function Ya(e,t){const n=Va(e.theme);return Object.keys(e).map((r=>Ga(e,t,r,n))).reduce(La,{})}function Ka(e){return Ya(e,Ba)}function Za(e){return Ya(e,$a)}function Xa(...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]?La(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Ja(e){return"number"!=typeof e?e:`${e}px solid`}Ka.propTypes={},Ka.filterProps=Ba,Za.propTypes={},Za.filterProps=$a;const Qa=_a({prop:"border",themeKey:"borders",transform:Ja}),el=_a({prop:"borderTop",themeKey:"borders",transform:Ja}),tl=_a({prop:"borderRight",themeKey:"borders",transform:Ja}),nl=_a({prop:"borderBottom",themeKey:"borders",transform:Ja}),rl=_a({prop:"borderLeft",themeKey:"borders",transform:Ja}),ol=_a({prop:"borderColor",themeKey:"palette"}),il=_a({prop:"borderTopColor",themeKey:"palette"}),al=_a({prop:"borderRightColor",themeKey:"palette"}),ll=_a({prop:"borderBottomColor",themeKey:"palette"}),sl=_a({prop:"borderLeftColor",themeKey:"palette"}),ul=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Wa(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Ua(t,e)});return ka(e,e.borderRadius,n)}return null};ul.propTypes={},ul.filterProps=["borderRadius"],Xa(Qa,el,tl,nl,rl,ol,il,al,ll,sl,ul);const cl=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Wa(e.theme,"spacing",8),n=e=>({gap:Ua(t,e)});return ka(e,e.gap,n)}return null};cl.propTypes={},cl.filterProps=["gap"];const dl=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Wa(e.theme,"spacing",8),n=e=>({columnGap:Ua(t,e)});return ka(e,e.columnGap,n)}return null};dl.propTypes={},dl.filterProps=["columnGap"];const pl=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Wa(e.theme,"spacing",8),n=e=>({rowGap:Ua(t,e)});return ka(e,e.rowGap,n)}return null};pl.propTypes={},pl.filterProps=["rowGap"];function fl(e,t){return"grey"===t?t:e}Xa(cl,dl,pl,_a({prop:"gridColumn"}),_a({prop:"gridRow"}),_a({prop:"gridAutoFlow"}),_a({prop:"gridAutoColumns"}),_a({prop:"gridAutoRows"}),_a({prop:"gridTemplateColumns"}),_a({prop:"gridTemplateRows"}),_a({prop:"gridTemplateAreas"}),_a({prop:"gridArea"}));function ml(e){return e<=1&&0!==e?100*e+"%":e}Xa(_a({prop:"color",themeKey:"palette",transform:fl}),_a({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:fl}),_a({prop:"backgroundColor",themeKey:"palette",transform:fl}));const hl=_a({prop:"width",transform:ml}),gl=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:ml(t)}};return ka(e,e.maxWidth,t)}return null};gl.filterProps=["maxWidth"];const bl=_a({prop:"minWidth",transform:ml}),vl=_a({prop:"height",transform:ml}),yl=_a({prop:"maxHeight",transform:ml}),xl=_a({prop:"minHeight",transform:ml});_a({prop:"size",cssProperty:"width",transform:ml}),_a({prop:"size",cssProperty:"height",transform:ml});Xa(hl,gl,bl,vl,yl,xl,_a({prop:"boxSizing"}));var Sl={border:{themeKey:"borders",transform:Ja},borderTop:{themeKey:"borders",transform:Ja},borderRight:{themeKey:"borders",transform:Ja},borderBottom:{themeKey:"borders",transform:Ja},borderLeft:{themeKey:"borders",transform:Ja},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ul},color:{themeKey:"palette",transform:fl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:fl},backgroundColor:{themeKey:"palette",transform:fl},p:{style:Za},pt:{style:Za},pr:{style:Za},pb:{style:Za},pl:{style:Za},px:{style:Za},py:{style:Za},padding:{style:Za},paddingTop:{style:Za},paddingRight:{style:Za},paddingBottom:{style:Za},paddingLeft:{style:Za},paddingX:{style:Za},paddingY:{style:Za},paddingInline:{style:Za},paddingInlineStart:{style:Za},paddingInlineEnd:{style:Za},paddingBlock:{style:Za},paddingBlockStart:{style:Za},paddingBlockEnd:{style:Za},m:{style:Ka},mt:{style:Ka},mr:{style:Ka},mb:{style:Ka},ml:{style:Ka},mx:{style:Ka},my:{style:Ka},margin:{style:Ka},marginTop:{style:Ka},marginRight:{style:Ka},marginBottom:{style:Ka},marginLeft:{style:Ka},marginX:{style:Ka},marginY:{style:Ka},marginInline:{style:Ka},marginInlineStart:{style:Ka},marginInlineEnd:{style:Ka},marginBlock:{style:Ka},marginBlockStart:{style:Ka},marginBlockEnd:{style:Ka},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:cl},rowGap:{style:pl},columnGap:{style:dl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ml},maxWidth:{style:gl},minWidth:{transform:ml},height:{transform:ml},maxHeight:{transform:ml},minHeight:{transform:ml},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const El=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=Oa(n,l)||{};if(u)return u(o);return ka(o,t,(t=>{let n=Na(c,s,t);return t===n&&"string"==typeof t&&(n=Na(c,s,`${e}${"default"===t?"":rr(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:Sl;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=La(s,e(n,o,i,a));else{const e=ka({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=La(s,e):s[n]=t({sx:o,theme:i})}else s=La(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)}}();El.filterProps=["sx"];var Cl=El;const wl=["breakpoints","palette","spacing","shape"];function Rl(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=kr(e,wl),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=kr(e,Pa),i=Ia(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 Yn({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=Va({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=Xn({breakpoints:l,direction:"ltr",components:{},palette:Yn({mode:"light"},r),spacing:s,shape:Yn({},Ta,i)},a);return u=t.reduce(((e,t)=>Xn(e,t)),u),u.unstable_sxConfig=Yn({},Sl,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Cl({sx:e,theme:this})},u}function Al(e=null){const t=E.useContext(va);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Dl=Rl();function Pl(e=Dl){return Al(e)}var Il={exports:{}},Tl={},Ll=C,Ml=Symbol.for("react.element"),ql=Symbol.for("react.fragment"),kl=Object.prototype.hasOwnProperty,Ol=Ll.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Nl={key:!0,ref:!0,__self:!0,__source:!0};function _l(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)kl.call(t,r)&&!Nl.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:Ml,type:e,key:i,ref:a,props:o,_owner:Ol.current}}Tl.Fragment=ql,Tl.jsx=_l,Tl.jsxs=_l,Il.exports=Tl;var Fl=Il.exports;function zl({styles:e,themeId:t,defaultTheme:n={}}){const r=Pl(n),o="function"==typeof e?e(t&&r[t]||r):e;return Fl.jsx(Aa,{styles:o})}const jl=["sx"],Hl=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Sl;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Bl(e){const{sx:t}=e,n=kr(e,jl),{systemProps:r,otherProps:o}=Hl(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Kn(n)?Yn({},r,n):r}:Yn({},r,t),Yn({},o,{sx:i})}function $l(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=$l(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Wl(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=$l(e))&&(r&&(r+=" "),r+=t);return r}const Vl=["className","component"];const Ul=["variant"];function Gl(e){return 0===e.length}function Yl(e){const{variant:t}=e,n=kr(e,Ul);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?Gl(r)?e[t]:rr(e[t]):`${Gl(r)?t:rr(t)}${rr(e[t].toString())}`})),r}const Kl=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];const Zl=e=>{const t={};return e&&e.forEach((e=>{const n=Yl(e.props);t[n]=e.style})),t},Xl=(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[Yl(n.props)])})),o};function Jl(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Ql=Rl(),es=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function ts({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function ns(e){return e?(t,n)=>n[e]:null}const rs=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(Yn({},t,{theme:ts(Yn({},t,{defaultTheme:n,themeId:r}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){return[o,...Xl(t,Zl(i),i)]}return o};function os({props:e,name:t,defaultTheme:n,themeId:r}){let o=Pl(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?Ar(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function is(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function as(e){if(e.type)return e;if("#"===e.charAt(0))return as(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(nr(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(nr(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function ls(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 ss(e){let t="hsl"===(e=as(e)).type||"hsla"===e.type?as(function(e){e=as(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])),ls({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 us(e,t){return e=as(e),t=is(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,ls(e)}function cs(e,t){if(e=as(e),t=is(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 ls(e)}function ds(e,t){if(e=as(e),t=is(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 ls(e)}var ps=E.createContext(null);function fs(){return E.useContext(ps)}var ms="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function hs(e){const{children:t,theme:n}=e,r=fs(),o=E.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Yn({},e,t)}(r,n);return null!=e&&(e[ms]=null!==r),e}),[n,r]);return Fl.jsx(ps.Provider,{value:o,children:t})}const gs={};function bs(e,t,n,r=!1){return E.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Yn({},t,{[e]:i}):i;return r?()=>a:a}return Yn({},t,e?{[e]:n}:n)}),[e,t,n,r])}function vs(e){const{children:t,theme:n,themeId:r}=e,o=Al(gs),i=fs()||gs,a=bs(r,o,n),l=bs(r,i,n,!0);return Fl.jsx(hs,{theme:l,children:Fl.jsx(va.Provider,{value:a,children:t})})}var ys={black:"#000",white:"#fff"};var xs={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 Ss={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 Es={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 Cs={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 ws={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 Rs={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 As={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 Ds=["mode","contrastThreshold","tonalOffset"],Ps={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:ys.white,default:ys.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}},Is={text:{primary:ys.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:ys.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 Ts(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=ds(e.main,o):"dark"===t&&(e.dark=cs(e.main,i)))}function Ls(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=kr(e,Ds),i=e.primary||function(e="light"){return"dark"===e?{main:ws[200],light:ws[50],dark:ws[400]}:{main:ws[700],light:ws[400],dark:ws[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Ss[200],light:Ss[50],dark:Ss[400]}:{main:Ss[500],light:Ss[300],dark:Ss[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Es[500],light:Es[300],dark:Es[700]}:{main:Es[700],light:Es[400],dark:Es[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Rs[400],light:Rs[300],dark:Rs[700]}:{main:Rs[700],light:Rs[500],dark:Rs[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:As[400],light:As[300],dark:As[700]}:{main:As[800],light:As[500],dark:As[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Cs[400],light:Cs[300],dark:Cs[700]}:{main:"#ed6c02",light:Cs[500],dark:Cs[900]}}(t);function d(e){const t=function(e,t){const n=ss(e),r=ss(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Is.text.primary)>=n?Is.text.primary:Ps.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Yn({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(nr(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(nr(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ts(e,"light",o,r),Ts(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Is,light:Ps};return Xn(Yn({common:Yn({},ys),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:xs,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Ms=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const qs={textTransform:"uppercase"},ks='"Roboto", "Helvetica", "Arial", sans-serif';function Os(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=ks,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=kr(n,Ms),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return Yn({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===ks?{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,qs),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,qs),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Xn(Yn({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Ns(...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 _s=["none",Ns(0,2,1,-1,0,1,1,0,0,1,3,0),Ns(0,3,1,-2,0,2,2,0,0,1,5,0),Ns(0,3,3,-2,0,3,4,0,0,1,8,0),Ns(0,2,4,-1,0,4,5,0,0,1,10,0),Ns(0,3,5,-1,0,5,8,0,0,1,14,0),Ns(0,3,5,-1,0,6,10,0,0,1,18,0),Ns(0,4,5,-2,0,7,10,1,0,2,16,1),Ns(0,5,5,-3,0,8,10,1,0,3,14,2),Ns(0,5,6,-3,0,9,12,1,0,3,16,2),Ns(0,6,6,-3,0,10,14,1,0,4,18,3),Ns(0,6,7,-4,0,11,15,1,0,4,20,3),Ns(0,7,8,-4,0,12,17,2,0,5,22,4),Ns(0,7,8,-4,0,13,19,2,0,5,24,4),Ns(0,7,9,-4,0,14,21,2,0,5,26,4),Ns(0,8,9,-5,0,15,22,2,0,6,28,5),Ns(0,8,10,-5,0,16,24,2,0,6,30,5),Ns(0,8,11,-5,0,17,26,2,0,6,32,5),Ns(0,9,11,-5,0,18,28,2,0,7,34,6),Ns(0,9,12,-6,0,19,29,2,0,7,36,6),Ns(0,10,13,-6,0,20,31,3,0,8,38,7),Ns(0,10,13,-6,0,21,33,3,0,8,40,7),Ns(0,10,14,-6,0,22,35,3,0,8,42,7),Ns(0,11,14,-7,0,23,36,3,0,9,44,8),Ns(0,11,15,-7,0,24,38,3,0,9,46,8)];const Fs=["duration","easing","delay"],zs={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)"},js={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Hs(e){return`${Math.round(e)}ms`}function Bs(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function $s(e){const t=Yn({},zs,e.easing),n=Yn({},js,e.duration);return Yn({getAutoHeightDuration:Bs,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return kr(r,Fs),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Hs(o)} ${i} ${"string"==typeof a?a:Hs(a)}`)).join(",")}},e,{easing:t,duration:n})}var Ws={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Vs=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Us(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=kr(e,Vs);if(e.vars)throw new Error(nr(18));const l=Ls(r),s=Rl(e);let u=Xn(s,{mixins:(c=s.breakpoints,d=n,Yn({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:_s.slice(),typography:Os(l,i),transitions:$s(o),zIndex:Yn({},Ws)});var c,d;return u=Xn(u,a),u=t.reduce(((e,t)=>Xn(e,t)),u),u.unstable_sxConfig=Yn({},Sl,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Cl({sx:e,theme:this})},u}var Gs=Us();function Ys(){const e=Pl(Gs);return e[qr]||e}function Ks({props:e,name:t}){return os({props:e,name:t,defaultTheme:Gs,themeId:qr})}const Zs=e=>Jl(e)&&"classes"!==e,Xs=Jl,Js=function(e={}){const{themeId:t,defaultTheme:n=Ql,rootShouldForwardProp:r=Jl,slotShouldForwardProp:o=Jl}=e,i=e=>Cl(Yn({},e,{theme:ts(Yn({},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=ns(es(s))}=a,p=kr(a,Kl),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=Jl;"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=Da(e,Yn({shouldForwardProp:h,label:undefined},p)),b=(r,...o)=>{const a=o?o.map((e=>{if("function"==typeof e&&e.__emotion_real!==e)return r=>rs({styledArg:e,props:r,defaultTheme:n,themeId:t});if(Kn(e)){let t,n=e;return e&&e.variants&&(t=e.variants,delete n.variants,n=n=>{let r=e;return Xl(n,Zl(t),t).forEach((e=>{r=Xn(r,e)})),r}),n}return e})):[];let s=r;if(Kn(r)){let e;r&&r.variants&&(e=r.variants,delete s.variants,s=t=>{let n=r;return Xl(t,Zl(e),e).forEach((e=>{n=Xn(n,e)})),n})}else"function"==typeof r&&r.__emotion_real!==r&&(s=e=>rs({styledArg:r,props:e,defaultTheme:n,themeId:t}));l&&d&&a.push((e=>{const r=ts(Yn({},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(Yn({},e,{theme:r})):o})),d(e,t)}return null})),l&&!f&&a.push((e=>{const r=ts(Yn({},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 Xl(e,t,i)})(e,((e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),Zl(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:qr,defaultTheme:Gs,rootShouldForwardProp:Zs});var Qs=Js;const eu=["theme"];function tu(e){let{theme:t}=e,n=kr(e,eu);const r=t[qr];return Fl.jsx(vs,Yn({},n,{themeId:r?qr:void 0,theme:r||t}))}var nu=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},ru={},ou={exports:{}};
|
|
15
|
+
function Da(e,t){let n;return n=t?wa(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):wa(e),n}Ra.propTypes={defaultTheme:tr.object,styles:tr.oneOfType([tr.string,tr.object,tr.func])};const Pa=["values","unit","step"],Ia=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)=>Yn({},e,{[t.key]:t.val})),{})};var Ta={borderRadius:4};function Ma(e,t){return t?Xn(e,t,{clone:!1}):e}const La={xs:0,sm:600,md:900,lg:1200,xl:1536},qa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${La[e]}px)`};function ka(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||qa;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||qa;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||La).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Oa(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 Na(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Oa(e,n)||r,t&&(o=t(o,r,e)),o}function _a(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=Oa(e.theme,r)||{};return ka(e,i,(e=>{let r=Na(a,o,e);return e===r&&"string"==typeof e&&(r=Na(a,o,`${t}${"default"===e?"":rr(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Fa={m:"margin",p:"padding"},za={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ha={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ja=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Ha[e])return[e];e=Ha[e]}const[t,n]=e.split(""),r=Fa[t],o=za[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Ba=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$a=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Wa(e,t,n,r){var o;const i=null!=(o=Oa(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 Va(e){return Wa(e,"spacing",8)}function Ua(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 Ga(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Ua(t,n),e)),{})}(ja(n),r);return ka(e,e[n],o)}function Ya(e,t){const n=Va(e.theme);return Object.keys(e).map((r=>Ga(e,t,r,n))).reduce(Ma,{})}function Ka(e){return Ya(e,Ba)}function Za(e){return Ya(e,$a)}function Xa(...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]?Ma(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Ja(e){return"number"!=typeof e?e:`${e}px solid`}function Qa(e,t){return _a({prop:e,themeKey:"borders",transform:t})}Ka.propTypes={},Ka.filterProps=Ba,Za.propTypes={},Za.filterProps=$a;const el=Qa("border",Ja),tl=Qa("borderTop",Ja),nl=Qa("borderRight",Ja),rl=Qa("borderBottom",Ja),ol=Qa("borderLeft",Ja),il=Qa("borderColor"),al=Qa("borderTopColor"),ll=Qa("borderRightColor"),sl=Qa("borderBottomColor"),ul=Qa("borderLeftColor"),cl=Qa("outline",Ja),dl=Qa("outlineColor"),pl=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Wa(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Ua(t,e)});return ka(e,e.borderRadius,n)}return null};pl.propTypes={},pl.filterProps=["borderRadius"],Xa(el,tl,nl,rl,ol,il,al,ll,sl,ul,pl,cl,dl);const fl=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Wa(e.theme,"spacing",8),n=e=>({gap:Ua(t,e)});return ka(e,e.gap,n)}return null};fl.propTypes={},fl.filterProps=["gap"];const ml=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Wa(e.theme,"spacing",8),n=e=>({columnGap:Ua(t,e)});return ka(e,e.columnGap,n)}return null};ml.propTypes={},ml.filterProps=["columnGap"];const hl=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Wa(e.theme,"spacing",8),n=e=>({rowGap:Ua(t,e)});return ka(e,e.rowGap,n)}return null};hl.propTypes={},hl.filterProps=["rowGap"];function gl(e,t){return"grey"===t?t:e}Xa(fl,ml,hl,_a({prop:"gridColumn"}),_a({prop:"gridRow"}),_a({prop:"gridAutoFlow"}),_a({prop:"gridAutoColumns"}),_a({prop:"gridAutoRows"}),_a({prop:"gridTemplateColumns"}),_a({prop:"gridTemplateRows"}),_a({prop:"gridTemplateAreas"}),_a({prop:"gridArea"}));function bl(e){return e<=1&&0!==e?100*e+"%":e}Xa(_a({prop:"color",themeKey:"palette",transform:gl}),_a({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gl}),_a({prop:"backgroundColor",themeKey:"palette",transform:gl}));const vl=_a({prop:"width",transform:bl}),yl=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])||La[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:bl(t)}};return ka(e,e.maxWidth,t)}return null};yl.filterProps=["maxWidth"];const xl=_a({prop:"minWidth",transform:bl}),Sl=_a({prop:"height",transform:bl}),El=_a({prop:"maxHeight",transform:bl}),Cl=_a({prop:"minHeight",transform:bl});_a({prop:"size",cssProperty:"width",transform:bl}),_a({prop:"size",cssProperty:"height",transform:bl});Xa(vl,yl,xl,Sl,El,Cl,_a({prop:"boxSizing"}));var wl={border:{themeKey:"borders",transform:Ja},borderTop:{themeKey:"borders",transform:Ja},borderRight:{themeKey:"borders",transform:Ja},borderBottom:{themeKey:"borders",transform:Ja},borderLeft:{themeKey:"borders",transform:Ja},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ja},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:pl},color:{themeKey:"palette",transform:gl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gl},backgroundColor:{themeKey:"palette",transform:gl},p:{style:Za},pt:{style:Za},pr:{style:Za},pb:{style:Za},pl:{style:Za},px:{style:Za},py:{style:Za},padding:{style:Za},paddingTop:{style:Za},paddingRight:{style:Za},paddingBottom:{style:Za},paddingLeft:{style:Za},paddingX:{style:Za},paddingY:{style:Za},paddingInline:{style:Za},paddingInlineStart:{style:Za},paddingInlineEnd:{style:Za},paddingBlock:{style:Za},paddingBlockStart:{style:Za},paddingBlockEnd:{style:Za},m:{style:Ka},mt:{style:Ka},mr:{style:Ka},mb:{style:Ka},ml:{style:Ka},mx:{style:Ka},my:{style:Ka},margin:{style:Ka},marginTop:{style:Ka},marginRight:{style:Ka},marginBottom:{style:Ka},marginLeft:{style:Ka},marginX:{style:Ka},marginY:{style:Ka},marginInline:{style:Ka},marginInlineStart:{style:Ka},marginInlineEnd:{style:Ka},marginBlock:{style:Ka},marginBlockStart:{style:Ka},marginBlockEnd:{style:Ka},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:fl},rowGap:{style:hl},columnGap:{style:ml},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:bl},maxWidth:{style:yl},minWidth:{transform:bl},height:{transform:bl},maxHeight:{transform:bl},minHeight:{transform:bl},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Rl=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=Oa(n,l)||{};if(u)return u(o);return ka(o,t,(t=>{let n=Na(c,s,t);return t===n&&"string"==typeof t&&(n=Na(c,s,`${e}${"default"===t?"":rr(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:wl;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=Ma(s,e(n,o,i,a));else{const e=ka({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=Ma(s,e):s[n]=t({sx:o,theme:i})}else s=Ma(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)}}();Rl.filterProps=["sx"];var Al=Rl;const Dl=["breakpoints","palette","spacing","shape"];function Pl(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=kr(e,Dl),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=kr(e,Pa),i=Ia(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 Yn({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=Va({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=Xn({breakpoints:l,direction:"ltr",components:{},palette:Yn({mode:"light"},r),spacing:s,shape:Yn({},Ta,i)},a);return u=t.reduce(((e,t)=>Xn(e,t)),u),u.unstable_sxConfig=Yn({},wl,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Al({sx:e,theme:this})},u}function Il(e=null){const t=E.useContext(va);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Tl=Pl();function Ml(e=Tl){return Il(e)}var Ll={exports:{}},ql={},kl=C,Ol=Symbol.for("react.element"),Nl=Symbol.for("react.fragment"),_l=Object.prototype.hasOwnProperty,Fl=kl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,zl={key:!0,ref:!0,__self:!0,__source:!0};function Hl(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)_l.call(t,r)&&!zl.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:Ol,type:e,key:i,ref:a,props:o,_owner:Fl.current}}ql.Fragment=Nl,ql.jsx=Hl,ql.jsxs=Hl,Ll.exports=ql;var jl=Ll.exports;function Bl({styles:e,themeId:t,defaultTheme:n={}}){const r=Ml(n),o="function"==typeof e?e(t&&r[t]||r):e;return jl.jsx(Aa,{styles:o})}const $l=["sx"],Wl=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:wl;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Vl(e){const{sx:t}=e,n=kr(e,$l),{systemProps:r,otherProps:o}=Wl(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Kn(n)?Yn({},r,n):r}:Yn({},r,t),Yn({},o,{sx:i})}function Ul(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=Ul(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Gl(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ul(e))&&(r&&(r+=" "),r+=t);return r}const Yl=["className","component"];const Kl=["variant"];function Zl(e){return 0===e.length}function Xl(e){const{variant:t}=e,n=kr(e,Kl);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?Zl(r)?e[t]:rr(e[t]):`${Zl(r)?t:rr(t)}${rr(e[t].toString())}`})),r}const Jl=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];const Ql=e=>{const t={};return e&&e.forEach((e=>{const n=Xl(e.props);t[n]=e.style})),t},es=(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[Xl(n.props)])})),o};function ts(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const ns=Pl(),rs=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function os({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function is(e){return e?(t,n)=>n[e]:null}const as=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(Yn({},t,{theme:os(Yn({},t,{defaultTheme:n,themeId:r}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){return[o,...es(t,Ql(i),i)]}return o};function ls({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ml(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?Ar(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function ss(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function us(e){if(e.type)return e;if("#"===e.charAt(0))return us(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(nr(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(nr(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function cs(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 ds(e){let t="hsl"===(e=us(e)).type||"hsla"===e.type?us(function(e){e=us(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])),cs({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 ps(e,t){return e=us(e),t=ss(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,cs(e)}function fs(e,t){if(e=us(e),t=ss(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 cs(e)}function ms(e,t){if(e=us(e),t=ss(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 cs(e)}var hs=E.createContext(null);function gs(){return E.useContext(hs)}var bs="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function vs(e){const{children:t,theme:n}=e,r=gs(),o=E.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Yn({},e,t)}(r,n);return null!=e&&(e[bs]=null!==r),e}),[n,r]);return jl.jsx(hs.Provider,{value:o,children:t})}const ys={};function xs(e,t,n,r=!1){return E.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Yn({},t,{[e]:i}):i;return r?()=>a:a}return Yn({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Ss(e){const{children:t,theme:n,themeId:r}=e,o=Il(ys),i=gs()||ys,a=xs(r,o,n),l=xs(r,i,n,!0);return jl.jsx(vs,{theme:l,children:jl.jsx(va.Provider,{value:a,children:t})})}var Es={black:"#000",white:"#fff"};var Cs={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 ws={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 Rs={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 As={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 Ds={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 Ps={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 Is={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 Ts=["mode","contrastThreshold","tonalOffset"],Ms={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:Es.white,default:Es.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}},Ls={text:{primary:Es.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:Es.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 qs(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=ms(e.main,o):"dark"===t&&(e.dark=fs(e.main,i)))}function ks(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=kr(e,Ts),i=e.primary||function(e="light"){return"dark"===e?{main:Ds[200],light:Ds[50],dark:Ds[400]}:{main:Ds[700],light:Ds[400],dark:Ds[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:ws[200],light:ws[50],dark:ws[400]}:{main:ws[500],light:ws[300],dark:ws[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Rs[500],light:Rs[300],dark:Rs[700]}:{main:Rs[700],light:Rs[400],dark:Rs[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Ps[400],light:Ps[300],dark:Ps[700]}:{main:Ps[700],light:Ps[500],dark:Ps[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Is[400],light:Is[300],dark:Is[700]}:{main:Is[800],light:Is[500],dark:Is[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:As[400],light:As[300],dark:As[700]}:{main:"#ed6c02",light:As[500],dark:As[900]}}(t);function d(e){const t=function(e,t){const n=ds(e),r=ds(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Ls.text.primary)>=n?Ls.text.primary:Ms.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Yn({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(nr(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(nr(12,t?` (${t})`:"",JSON.stringify(e.main)));return qs(e,"light",o,r),qs(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Ls,light:Ms};return Xn(Yn({common:Yn({},Es),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:Cs,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Os=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ns={textTransform:"uppercase"},_s='"Roboto", "Helvetica", "Arial", sans-serif';function Fs(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=_s,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=kr(n,Os),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return Yn({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===_s?{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,Ns),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Ns),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Xn(Yn({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function zs(...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 Hs=["none",zs(0,2,1,-1,0,1,1,0,0,1,3,0),zs(0,3,1,-2,0,2,2,0,0,1,5,0),zs(0,3,3,-2,0,3,4,0,0,1,8,0),zs(0,2,4,-1,0,4,5,0,0,1,10,0),zs(0,3,5,-1,0,5,8,0,0,1,14,0),zs(0,3,5,-1,0,6,10,0,0,1,18,0),zs(0,4,5,-2,0,7,10,1,0,2,16,1),zs(0,5,5,-3,0,8,10,1,0,3,14,2),zs(0,5,6,-3,0,9,12,1,0,3,16,2),zs(0,6,6,-3,0,10,14,1,0,4,18,3),zs(0,6,7,-4,0,11,15,1,0,4,20,3),zs(0,7,8,-4,0,12,17,2,0,5,22,4),zs(0,7,8,-4,0,13,19,2,0,5,24,4),zs(0,7,9,-4,0,14,21,2,0,5,26,4),zs(0,8,9,-5,0,15,22,2,0,6,28,5),zs(0,8,10,-5,0,16,24,2,0,6,30,5),zs(0,8,11,-5,0,17,26,2,0,6,32,5),zs(0,9,11,-5,0,18,28,2,0,7,34,6),zs(0,9,12,-6,0,19,29,2,0,7,36,6),zs(0,10,13,-6,0,20,31,3,0,8,38,7),zs(0,10,13,-6,0,21,33,3,0,8,40,7),zs(0,10,14,-6,0,22,35,3,0,8,42,7),zs(0,11,14,-7,0,23,36,3,0,9,44,8),zs(0,11,15,-7,0,24,38,3,0,9,46,8)];const js=["duration","easing","delay"],Bs={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)"},$s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ws(e){return`${Math.round(e)}ms`}function Vs(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Us(e){const t=Yn({},Bs,e.easing),n=Yn({},$s,e.duration);return Yn({getAutoHeightDuration:Vs,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return kr(r,js),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Ws(o)} ${i} ${"string"==typeof a?a:Ws(a)}`)).join(",")}},e,{easing:t,duration:n})}var Gs={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Ys=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ks(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=kr(e,Ys);if(e.vars)throw new Error(nr(18));const l=ks(r),s=Pl(e);let u=Xn(s,{mixins:(c=s.breakpoints,d=n,Yn({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Hs.slice(),typography:Fs(l,i),transitions:Us(o),zIndex:Yn({},Gs)});var c,d;return u=Xn(u,a),u=t.reduce(((e,t)=>Xn(e,t)),u),u.unstable_sxConfig=Yn({},wl,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Al({sx:e,theme:this})},u}var Zs=Ks();function Xs(){const e=Ml(Zs);return e[qr]||e}function Js({props:e,name:t}){return ls({props:e,name:t,defaultTheme:Zs,themeId:qr})}const Qs=e=>ts(e)&&"classes"!==e,eu=ts,tu=function(e={}){const{themeId:t,defaultTheme:n=ns,rootShouldForwardProp:r=ts,slotShouldForwardProp:o=ts}=e,i=e=>Al(Yn({},e,{theme:os(Yn({},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=is(rs(s))}=a,p=kr(a,Jl),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=ts;"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=Da(e,Yn({shouldForwardProp:h,label:undefined},p)),b=(r,...o)=>{const a=o?o.map((e=>{if("function"==typeof e&&e.__emotion_real!==e)return r=>as({styledArg:e,props:r,defaultTheme:n,themeId:t});if(Kn(e)){let t,n=e;return e&&e.variants&&(t=e.variants,delete n.variants,n=n=>{let r=e;return es(n,Ql(t),t).forEach((e=>{r=Xn(r,e)})),r}),n}return e})):[];let s=r;if(Kn(r)){let e;r&&r.variants&&(e=r.variants,delete s.variants,s=t=>{let n=r;return es(t,Ql(e),e).forEach((e=>{n=Xn(n,e)})),n})}else"function"==typeof r&&r.__emotion_real!==r&&(s=e=>as({styledArg:r,props:e,defaultTheme:n,themeId:t}));l&&d&&a.push((e=>{const r=os(Yn({},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(Yn({},e,{theme:r})):o})),d(e,t)}return null})),l&&!f&&a.push((e=>{const r=os(Yn({},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 es(e,t,i)})(e,((e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),Ql(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:qr,defaultTheme:Zs,rootShouldForwardProp:Qs});var nu=tu;const ru=["theme"];function ou(e){let{theme:t}=e,n=kr(e,ru);const r=t[qr];return jl.jsx(Ss,Yn({},n,{themeId:r?qr:void 0,theme:r||t}))}var iu=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},au={},lu={exports:{}};
|
|
16
16
|
/*!
|
|
17
17
|
* Converts CSS stylesheets between left-to-right and right-to-left.
|
|
18
18
|
* https://github.com/cssjanus/cssjanus
|
|
@@ -20,7 +20,7 @@ function Da(e,t){let n;return n=t?wa(e).withConfig({displayName:t.label,shouldFo
|
|
|
20
20
|
* Copyright 2008 Google Inc.
|
|
21
21
|
* Copyright 2010 Trevor Parscal
|
|
22
22
|
*/
|
|
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"),L=new RegExp(a+"([ns]?)e-resize","gi"),M=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"),j=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+d,"gi"),H=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(L,"$1$2"+e).replace(M,"$1$2e-resize").replace(y,"w-resize").replace(_,U).replace(F,Y).replace(z,Z).replace(j,Z).replace(H,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)}(ou,ou.exports);var iu=ou.exports;Object.defineProperty(ru,"__esModule",{value:!0}),ru.STYLIS_PROPERTY_CONTEXT=void 0;var au,lu=(au=iu)&&au.__esModule?au:{default:au};var su=ru.STYLIS_PROPERTY_CONTEXT=-1;function uu(e,t){if(e===su)return lu.default.transform(t)}Object.defineProperty(uu,"name",{value:"stylisRTLPlugin"});var cu,du,pu,fu,mu,hu=ru.default=uu;!function(e){e.SELECTED="selected",e.POSSIBLE="possible",e.EXCLUDED="excluded",e.INACTIVE="inactive"}(cu||(cu={})),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"}(du||(du={})),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"}(pu||(pu={})),function(e){e.FOCUS="focus",e.FOCUS_BUTTON="focusButton",e.BLUR="blur",e.ADD_TAB="addTab",e.REMOVE_TAB="removeTab"}(fu||(fu={})),function(e){e.A="ascending",e.D="descending"}(mu||(mu={}));var gu=24,bu=[0,0],vu=[1,0];function yu(e){if(e.type)return e;if("#"===e.charAt(0))return yu(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 xu(e,t){return e=yu(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 Su(e,t){return Su=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Su(e,t)}function Eu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Su(e,t)}function Cu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const wu={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"},Ru={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",...wu,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)"},Au=12,Du=14,Pu=16,Iu=24,Tu=3,Lu=300,Mu=400,qu=600,ku=700,Ou={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};xu(Ru.GREYSCALE_0,.05),xu(Ru.GREEN_PALE,.5),xu(Ru.BLUE_PALE,.5),xu(Ru.GREEN_PALE,.5),xu(Ru.BLUE_PALE,.5),xu(Ru.GREEN_PALE,.5),xu(Ru.BLUE_PALE,.5);var Nu;function _u(){return _u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_u.apply(this,arguments)}xu(Ru.GREEN_PALE,.5),xu(Ru.BLUE_PALE,.5),xu(Ru.GREEN_PALE,.5),xu(Ru.BLUE_PALE,.5);var Fu,zu=function(e){return E.createElement("svg",_u({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Nu||(Nu=E.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})))};function ju(){return ju=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},ju.apply(this,arguments)}var Hu=function(e){return E.createElement("svg",ju({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Fu||(Fu=E.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 Bu({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return C.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 $u=(e={})=>C.createElement(Bu,{...e},C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},C.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),C.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"}))),Wu=(e={})=>C.createElement(Bu,{...e},C.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},C.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),C.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Vu=(e={})=>C.createElement(Bu,{fontSize:"medium",...e},C.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},C.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Uu=(e={})=>C.createElement(Bu,{fontSize:"medium",...e},C.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C.createElement("defs",null,C.createElement("rect",{id:"radio-checked-path-1",x:"0",y:"0",width:"16",height:"16",rx:"8"})),C.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},C.createElement("mask",{id:"radio-checked-mask-2",fill:"white"},C.createElement("use",{href:"#radio-checked-path-1"})),C.createElement("use",{fill:"currentColor",href:"#radio-checked-path-1"}),C.createElement("circle",{fill:"#FFFFFF",mask:"url(#radio-checked-mask-2)",cx:"8",cy:"8",r:"3"})))),Gu=({className:e})=>C.createElement(Bu,{fontSize:"small",className:e},C.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},C.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},C.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},C.createElement("g",{transform:"translate(4.324187, 1.300372)"},C.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"}),C.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 Yu(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=Yu(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ku(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Yu(e))&&(r&&(r+=" "),r+=t);return r}function Zu(e){return Lr("MuiSvgIcon",e)}Mr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Xu=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Ju=Qs("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${rr(n.color)}`],t[`fontSize${rr(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]}})),Qu=E.forwardRef((function(e,t){const n=Ks({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=kr(n,Xu),f=E.isValidElement(r)&&"svg"===r.type,m=Yn({},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 Dr({root:["root","inherit"!==t&&`color${rr(t)}`,`fontSize${rr(n)}`]},Zu,r)})(m);return Fl.jsxs(Ju,Yn({as:a,className:Ku(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?Fl.jsx("title",{children:c}):null]}))}));Qu.muiName="SvgIcon";var ec=Qu;var tc,nc={},rc=Symbol.for("react.element"),oc=Symbol.for("react.portal"),ic=Symbol.for("react.fragment"),ac=Symbol.for("react.strict_mode"),lc=Symbol.for("react.profiler"),sc=Symbol.for("react.provider"),uc=Symbol.for("react.context"),cc=Symbol.for("react.server_context"),dc=Symbol.for("react.forward_ref"),pc=Symbol.for("react.suspense"),fc=Symbol.for("react.suspense_list"),mc=Symbol.for("react.memo"),hc=Symbol.for("react.lazy"),gc=Symbol.for("react.offscreen");
|
|
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)}(lu,lu.exports);var su=lu.exports;Object.defineProperty(au,"__esModule",{value:!0}),au.STYLIS_PROPERTY_CONTEXT=void 0;var uu,cu=(uu=su)&&uu.__esModule?uu:{default:uu};var du=au.STYLIS_PROPERTY_CONTEXT=-1;function pu(e,t){if(e===du)return cu.default.transform(t)}Object.defineProperty(pu,"name",{value:"stylisRTLPlugin"});var fu,mu,hu,gu,bu,vu=au.default=pu;!function(e){e.SELECTED="selected",e.POSSIBLE="possible",e.EXCLUDED="excluded",e.INACTIVE="inactive"}(fu||(fu={})),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"}(mu||(mu={})),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"}(hu||(hu={})),function(e){e.FOCUS="focus",e.FOCUS_BUTTON="focusButton",e.BLUR="blur",e.ADD_TAB="addTab",e.REMOVE_TAB="removeTab"}(gu||(gu={})),function(e){e.A="ascending",e.D="descending"}(bu||(bu={}));var yu=24,xu=[0,0],Su=[1,0];function Eu(e){if(e.type)return e;if("#"===e.charAt(0))return Eu(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 Cu(e,t){return e=Eu(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 wu(e,t){return wu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wu(e,t)}function Ru(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wu(e,t)}function Au(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const Du={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"},Pu={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",...Du,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)"},Iu=12,Tu=14,Mu=16,Lu=24,qu=3,ku=300,Ou=400,Nu=600,_u=700,Fu={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Cu(Pu.GREYSCALE_0,.05),Cu(Pu.GREEN_PALE,.5),Cu(Pu.BLUE_PALE,.5),Cu(Pu.GREEN_PALE,.5),Cu(Pu.BLUE_PALE,.5),Cu(Pu.GREEN_PALE,.5),Cu(Pu.BLUE_PALE,.5);var zu;function Hu(){return Hu=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},Hu.apply(this,arguments)}Cu(Pu.GREEN_PALE,.5),Cu(Pu.BLUE_PALE,.5),Cu(Pu.GREEN_PALE,.5),Cu(Pu.BLUE_PALE,.5);var ju,Bu=function(e){return E.createElement("svg",Hu({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),zu||(zu=E.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})))};function $u(){return $u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$u.apply(this,arguments)}var Wu=function(e){return E.createElement("svg",$u({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),ju||(ju=E.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 Vu({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return C.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 Uu=(e={})=>C.createElement(Vu,{...e},C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},C.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),C.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"}))),Gu=(e={})=>C.createElement(Vu,{...e},C.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},C.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),C.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Yu=(e={})=>C.createElement(Vu,{fontSize:"medium",...e},C.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},C.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Ku=(e={})=>C.createElement(Vu,{fontSize:"medium",...e},C.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C.createElement("defs",null,C.createElement("rect",{id:"radio-checked-path-1",x:"0",y:"0",width:"16",height:"16",rx:"8"})),C.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},C.createElement("mask",{id:"radio-checked-mask-2",fill:"white"},C.createElement("use",{href:"#radio-checked-path-1"})),C.createElement("use",{fill:"currentColor",href:"#radio-checked-path-1"}),C.createElement("circle",{fill:"#FFFFFF",mask:"url(#radio-checked-mask-2)",cx:"8",cy:"8",r:"3"})))),Zu=({className:e})=>C.createElement(Vu,{fontSize:"small",className:e},C.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},C.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},C.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},C.createElement("g",{transform:"translate(4.324187, 1.300372)"},C.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"}),C.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 Xu(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=Xu(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ju(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Xu(e))&&(r&&(r+=" "),r+=t);return r}function Qu(e){return Mr("MuiSvgIcon",e)}Lr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ec=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],tc=nu("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${rr(n.color)}`],t[`fontSize${rr(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]}})),nc=E.forwardRef((function(e,t){const n=Js({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=kr(n,ec),f=E.isValidElement(r)&&"svg"===r.type,m=Yn({},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 Dr({root:["root","inherit"!==t&&`color${rr(t)}`,`fontSize${rr(n)}`]},Qu,r)})(m);return jl.jsxs(tc,Yn({as:a,className:Ju(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?jl.jsx("title",{children:c}):null]}))}));nc.muiName="SvgIcon";var rc=nc;var oc,ic={},ac=Symbol.for("react.element"),lc=Symbol.for("react.portal"),sc=Symbol.for("react.fragment"),uc=Symbol.for("react.strict_mode"),cc=Symbol.for("react.profiler"),dc=Symbol.for("react.provider"),pc=Symbol.for("react.context"),fc=Symbol.for("react.server_context"),mc=Symbol.for("react.forward_ref"),hc=Symbol.for("react.suspense"),gc=Symbol.for("react.suspense_list"),bc=Symbol.for("react.memo"),vc=Symbol.for("react.lazy"),yc=Symbol.for("react.offscreen");
|
|
24
24
|
/**
|
|
25
25
|
* @license React
|
|
26
26
|
* react-is.production.min.js
|
|
@@ -29,7 +29,7 @@ function Da(e,t){let n;return n=t?wa(e).withConfig({displayName:t.label,shouldFo
|
|
|
29
29
|
*
|
|
30
30
|
* This source code is licensed under the MIT license found in the
|
|
31
31
|
* LICENSE file in the root directory of this source tree.
|
|
32
|
-
*/function
|
|
32
|
+
*/function xc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ac:switch(e=e.type){case sc:case cc:case uc:case hc:case gc:return e;default:switch(e=e&&e.$$typeof){case fc:case pc:case mc:case vc:case bc:case dc:return e;default:return t}}case lc:return t}}}oc=Symbol.for("react.module.reference"),ic.ContextConsumer=pc,ic.ContextProvider=dc,ic.Element=ac,ic.ForwardRef=mc,ic.Fragment=sc,ic.Lazy=vc,ic.Memo=bc,ic.Portal=lc,ic.Profiler=cc,ic.StrictMode=uc,ic.Suspense=hc,ic.SuspenseList=gc,ic.isAsyncMode=function(){return!1},ic.isConcurrentMode=function(){return!1},ic.isContextConsumer=function(e){return xc(e)===pc},ic.isContextProvider=function(e){return xc(e)===dc},ic.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ac},ic.isForwardRef=function(e){return xc(e)===mc},ic.isFragment=function(e){return xc(e)===sc},ic.isLazy=function(e){return xc(e)===vc},ic.isMemo=function(e){return xc(e)===bc},ic.isPortal=function(e){return xc(e)===lc},ic.isProfiler=function(e){return xc(e)===cc},ic.isStrictMode=function(e){return xc(e)===uc},ic.isSuspense=function(e){return xc(e)===hc},ic.isSuspenseList=function(e){return xc(e)===gc},ic.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===sc||e===cc||e===uc||e===hc||e===gc||e===yc||"object"==typeof e&&null!==e&&(e.$$typeof===vc||e.$$typeof===bc||e.$$typeof===dc||e.$$typeof===pc||e.$$typeof===mc||e.$$typeof===oc||void 0!==e.getModuleId)},ic.typeOf=xc;var Sc=!1,Ec=C.createContext(null),Cc="unmounted",wc="exited",Rc="entering",Ac="entered",Dc="exiting",Pc=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=wc,r.appearStatus=Rc):o=Ac:o=t.unmountOnExit||t.mountOnEnter?Cc:wc,r.state={status:o},r.nextCallback=null,r}Ru(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Cc?{status:wc}: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!==Rc&&n!==Ac&&(t=Rc):n!==Rc&&n!==Ac||(t=Dc)}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===Rc){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===wc&&this.setState({status:Cc})},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||Sc?this.safeSetState({status:Ac},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Rc},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Ac},(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&&!Sc?(this.props.onExit(r),this.safeSetState({status:Dc},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:wc},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:wc},(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===Cc)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=kr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return C.createElement(Ec.Provider,{value:null},"function"==typeof n?n(e,r):C.cloneElement(C.Children.only(n),r))},t}(C.Component);function Ic(){}Pc.contextType=Ec,Pc.propTypes={},Pc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ic,onEntering:Ic,onEntered:Ic,onExit:Ic,onExiting:Ic,onExited:Ic},Pc.UNMOUNTED=Cc,Pc.EXITED=wc,Pc.ENTERING=Rc,Pc.ENTERED=Ac,Pc.EXITING=Dc;var Tc=Pc;function Mc(e,t){var n=Object.create(null);return e&&P.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&I(e)?t(e):e}(e)})),n}function Lc(e,t,n){return null!=n[t]?n[t]:e.props[t]}function qc(e,t,n){var r=Mc(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(I(a)){var l=i in t,s=i in r,u=t[i],c=I(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&I(u)&&(o[i]=T(a,{onExited:n.bind(null,a),in:u.props.in,exit:Lc(a,"exit",e),enter:Lc(a,"enter",e)})):o[i]=T(a,{in:!1}):o[i]=T(a,{onExited:n.bind(null,a),in:!0,exit:Lc(a,"exit",e),enter:Lc(a,"enter",e)})}})),o}var kc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Oc=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Au(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Ru(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,Mc(n.children,(function(e){return T(e,{onExited:r.bind(null,e),in:!0,appear:Lc(e,"appear",n),enter:Lc(e,"enter",n),exit:Lc(e,"exit",n)})}))):qc(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Mc(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Yn({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=kr(e,["component","childFactory"]),o=this.state.contextValue,i=kc(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?C.createElement(Ec.Provider,{value:o},i):C.createElement(Ec.Provider,{value:o},C.createElement(t,r,i))},t}(C.Component);Oc.propTypes={},Oc.defaultProps={component:"div",childFactory:function(e){return e}};var Nc=Oc;const _c=e=>e.scrollTop;function Fc(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 zc(e){return Mr("MuiPaper",e)}Lr("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 Hc=["className","component","elevation","square","variant"],jc=nu("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 Yn({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&&Yn({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${ps("#fff",iu(t.elevation))}, ${ps("#fff",iu(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var Bc=E.forwardRef((function(e,t){const n=Js({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=kr(n,Hc),u=Yn({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Dr({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},zc,o)})(u);return jl.jsx(jc,Yn({as:o,ownerState:u,className:Ju(c.root,r),ref:t},s))}));var $c=Lr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Wc=["center","classes","className"];let Vc,Uc,Gc,Yc,Kc=e=>e;const Zc=Ca(Vc||(Vc=Kc`
|
|
33
33
|
0% {
|
|
34
34
|
transform: scale(0);
|
|
35
35
|
opacity: 0.1;
|
|
@@ -39,7 +39,7 @@ function Da(e,t){let n;return n=t?wa(e).withConfig({displayName:t.label,shouldFo
|
|
|
39
39
|
transform: scale(1);
|
|
40
40
|
opacity: 0.3;
|
|
41
41
|
}
|
|
42
|
-
`)),
|
|
42
|
+
`)),Xc=Ca(Uc||(Uc=Kc`
|
|
43
43
|
0% {
|
|
44
44
|
opacity: 1;
|
|
45
45
|
}
|
|
@@ -47,7 +47,7 @@ function Da(e,t){let n;return n=t?wa(e).withConfig({displayName:t.label,shouldFo
|
|
|
47
47
|
100% {
|
|
48
48
|
opacity: 0;
|
|
49
49
|
}
|
|
50
|
-
`)),
|
|
50
|
+
`)),Jc=Ca(Gc||(Gc=Kc`
|
|
51
51
|
0% {
|
|
52
52
|
transform: scale(1);
|
|
53
53
|
}
|
|
@@ -59,7 +59,7 @@ function Da(e,t){let n;return n=t?wa(e).withConfig({displayName:t.label,shouldFo
|
|
|
59
59
|
100% {
|
|
60
60
|
transform: scale(1);
|
|
61
61
|
}
|
|
62
|
-
`)),
|
|
62
|
+
`)),Qc=nu("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ed=nu((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]=E.useState(!1),p=Ju(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Ju(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),E.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),jl.jsx("span",{className:p,style:f,children:jl.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Yc||(Yc=Kc`
|
|
63
63
|
opacity: 0;
|
|
64
64
|
position: absolute;
|
|
65
65
|
|
|
@@ -102,4 +102,4 @@ function Da(e,t){let n;return n=t?wa(e).withConfig({displayName:t.label,shouldFo
|
|
|
102
102
|
animation-iteration-count: infinite;
|
|
103
103
|
animation-delay: 200ms;
|
|
104
104
|
}
|
|
105
|
-
`),jc.rippleVisible,Gc,550,(({theme:e})=>e.transitions.easing.easeInOut),jc.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),jc.child,jc.childLeaving,Yc,550,(({theme:e})=>e.transitions.easing.easeInOut),jc.childPulsate,Kc,(({theme:e})=>e.transitions.easing.easeInOut));var Jc=E.forwardRef((function(e,t){const n=Ks({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=kr(n,Hc),[l,s]=E.useState([]),u=E.useRef(0),c=E.useRef(null);E.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=E.useRef(!1),p=E.useRef(0),f=E.useRef(null),m=E.useRef(null);E.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=E.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Fl.jsx(Xc,{classes:{ripple:Ku(o.ripple,jc.ripple),rippleVisible:Ku(o.rippleVisible,jc.rippleVisible),ripplePulsate:Ku(o.ripplePulsate,jc.ripplePulsate),child:Ku(o.child,jc.child),childLeaving:Ku(o.childLeaving,jc.childLeaving),childPulsate:Ku(o.childPulsate,jc.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=E.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=E.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=E.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 E.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Fl.jsx(Zc,Yn({className:Ku(jc.root,o.root,i),ref:m},a,{children:Fl.jsx(qc,{component:null,exit:!0,children:l})}))}));function Qc(e){return Lr("MuiButtonBase",e)}var ed=Mr("MuiButtonBase",["root","disabled","focusVisible"]);const td=["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"],nd=Qs("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"},[`&.${ed.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),rd=E.forwardRef((function(e,t){const n=Ks({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:y,onKeyUp:x,onMouseDown:S,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:D,tabIndex:P=0,TouchRippleProps:I,touchRippleRef:T,type:L}=n,M=kr(n,td),q=E.useRef(null),k=E.useRef(null),O=hr(k,T),{isFocusVisibleRef:N,onFocus:_,onBlur:F,ref:z}=wr(),[j,H]=E.useState(!1);s&&j&&H(!1),E.useImperativeHandle(r,(()=>({focusVisible:()=>{H(!0),q.current.focus()}})),[]);const[B,$]=E.useState(!1);E.useEffect((()=>{$(!0)}),[]);const W=B&&!u&&!s;function V(e,t,n=c){return mr((r=>{t&&t(r);return!n&&k.current&&k.current[e](r),!0}))}E.useEffect((()=>{j&&d&&!u&&B&&k.current.pulsate()}),[u,d,j,B]);const U=V("start",S),G=V("stop",h),Y=V("stop",g),K=V("stop",w),Z=V("stop",(e=>{j&&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&&H(!1),f&&f(e)}),!1),te=mr((e=>{q.current||(q.current=e.currentTarget),_(e),!0===N.current&&(H(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=q.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=E.useRef(!1),oe=mr((e=>{d&&!re.current&&j&&k.current&&" "===e.key&&(re.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=mr((e=>{d&&" "===e.key&&k.current&&j&&!e.defaultPrevented&&(re.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(M.href||M.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===L?"button":L,le.disabled=s):(M.href||M.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=hr(t,z,q),ue=Yn({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:P,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Dr({root:["root",t&&"disabled",n&&"focusVisible"]},Qc,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Fl.jsxs(nd,Yn({as:ae,className:Ku(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:L},le,M,{children:[i,W?Fl.jsx(Jc,Yn({ref:O,center:o},I)):null]}))}));var od=rd;function id(e){return Lr("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 ad=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ld=Qs("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${rr(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Yn({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}))),sd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ud={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},cd=E.forwardRef((function(e,t){const n=Ks({props:e,name:"MuiTypography"}),r=(e=>ud[e]||e)(n.color),o=Bl(Yn({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=sd}=o,f=kr(o,ad),m=Yn({},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]||sd[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Dr({root:["root",i,"inherit"!==e.align&&`align${rr(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},id,a)})(m);return Fl.jsx(ld,Yn({as:h,ref:t,ownerState:m,className:Ku(g.root,a)},f))}));var dd=cd;function pd(e){return"string"==typeof e}function fd(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 md(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=md(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function hd(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=md(e))&&(r&&(r+=" "),r+=t);return r}function gd(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 bd=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function vd(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=kr(e,bd),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=hd(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Yn({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Yn({},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=fd(Yn({},o,r)),l=gd(r),s=gd(o),u=t(a),c=hd(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=Yn({},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=Yn({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Yn({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||pd(e)?t:Yn({},t,{ownerState:Yn({},t.ownerState,n)})}(n,Yn({},s,{ref:hr(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const yd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function xd(e){const t=[],n=[];return Array.from(e.querySelectorAll(yd)).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 Sd(){return!0}function Ed(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=xd,isEnabled:a=Sd,open:l}=e,s=E.useRef(!1),u=E.useRef(null),c=E.useRef(null),d=E.useRef(null),p=E.useRef(null),f=E.useRef(!1),m=E.useRef(null),h=hr(t.ref,m),g=E.useRef(null);E.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),E.useEffect((()=>{if(!l||!m.current)return;const e=ar(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]),E.useEffect((()=>{if(!l||!m.current)return;const e=ar(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 Fl.jsxs(E.Fragment,{children:[Fl.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),E.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)}}),Fl.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Cd=E.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=E.useState(null),l=hr(E.isValidElement(n)?n.ref:null,t);if(ur((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),ur((()=>{if(i&&!o)return sr(t,i),()=>{sr(t,null)}}),[t,i,o]),o){if(E.isValidElement(n)){const e={ref:l};return E.cloneElement(n,e)}return Fl.jsx(E.Fragment,{children:n})}return Fl.jsx(E.Fragment,{children:i?j.createPortal(n,i):i})}));function wd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Rd(e){return parseInt(lr(e).getComputedStyle(e).paddingRight,10)||0}function Ad(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&&wd(e,o)}))}function Dd(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Pd(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=ar(e);return t.body===e?lr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Rr(ar(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Rd(r)+e}px`;const t=ar(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Rd(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=ar(r).body;else{const t=r.parentElement,n=lr(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 Id=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&&wd(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);Ad(t,e.mount,e.modalRef,r,!0);const o=Dd(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=Dd(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Pd(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Dd(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&&wd(e.modalRef,t),Ad(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&&wd(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Td(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Id,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=E.useRef({}),f=E.useRef(null),m=E.useRef(null),h=hr(m,d),[g,b]=E.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},C=mr((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ar(f.current).body;o.add(x(),e),m.current&&S()})),w=E.useCallback((()=>o.isTopModal(x())),[o]),R=mr((e=>{f.current=e,e&&(c&&w()?S():m.current&&wd(m.current,y))})),A=E.useCallback((()=>{o.remove(x(),y)}),[y,o]);E.useEffect((()=>()=>{A()}),[A]),E.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=fd(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Yn({},n,t);return Yn({role:"presentation"},r,{onKeyDown:D(r),ref:h})},getBackdropProps:(e={})=>Yn({"aria-hidden":!0},e,{onClick:P(e),open:c}),getTransitionProps:()=>({onEnter:or((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:or((()=>{b(!0),l&&l(),i&&A()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const Ld=["onChange","maxRows","minRows","style","value"];function Md(e){return parseInt(e,10)||0}const qd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function kd(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Od=E.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=kr(e,Ld),{current:s}=E.useRef(null!=a),u=E.useRef(null),c=hr(t,u),d=E.useRef(null),p=E.useRef(0),[f,m]=E.useState({outerHeightStyle:0}),h=E.useCallback((()=>{const t=u.current,n=lr(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=Md(n.paddingBottom)+Md(n.paddingTop),s=Md(n.borderBottomWidth)+Md(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=E.useCallback((()=>{const e=h();kd(e)||m((t=>g(t,e)))}),[h]);ur((()=>{const e=()=>{p.current=0,(()=>{const e=h();kd(e)||j.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=ir(e),n=u.current,r=lr(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]),ur((()=>{b()})),E.useEffect((()=>{p.current=0}),[a]);return Fl.jsxs(E.Fragment,{children:[Fl.jsx("textarea",Yn({value:a,onChange:e=>{p.current=0,s||b(),n&&n(e)},ref:c,rows:o,style:Yn({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Fl.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Yn({},qd,i,{paddingTop:0,paddingBottom:0})})]})}));function Nd({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 _d=E.createContext(void 0);function Fd(){return E.useContext(_d)}function zd(e){return Fl.jsx(zl,Yn({},e,{defaultTheme:Gs,themeId:qr}))}function jd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Hd(e,t=!1){return e&&(jd(e.value)&&""!==e.value||t&&jd(e.defaultValue)&&""!==e.defaultValue)}function Bd(e){return Lr("MuiInputBase",e)}var $d=Mr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Wd=["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"],Vd=(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${rr(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ud=(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]},Gd=Qs("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Vd})((({theme:e,ownerState:t})=>Yn({},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",[`&.${$d.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Yn({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Yd=Qs("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ud})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Yn({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 Yn({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] + .${$d.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},[`&.${$d.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"})})),Kd=Fl.jsx(zd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Zd=E.forwardRef((function(e,t){var n;const r=Ks({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:y,minRows:x,multiline:S=!1,name:C,onBlur:w,onChange:R,onClick:A,onFocus:D,onKeyDown:P,onKeyUp:I,placeholder:T,readOnly:L,renderSuffix:M,rows:q,slotProps:k={},slots:O={},startAdornment:N,type:_="text",value:F}=r,z=kr(r,Wd),j=null!=b.value?b.value:F,{current:H}=E.useRef(null!=j),B=E.useRef(),$=E.useCallback((e=>{}),[]),W=hr(B,v,b.ref,$),[V,U]=E.useState(!1),G=Fd(),Y=Nd({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:V,E.useEffect((()=>{!G&&d&&V&&(U(!1),w&&w())}),[G,d,V,w]);const K=G&&G.onFilled,Z=G&&G.onEmpty,X=E.useCallback((e=>{Hd(e)?K&&K():Z&&Z()}),[K,Z]);ur((()=>{H&&X({value:j})}),[j,X,H]);E.useEffect((()=>{X(B.current)}),[]);let J=g,Q=b;S&&"input"===J&&(Q=Yn(q?{type:void 0,minRows:q,maxRows:q}:{type:void 0,maxRows:y,minRows:x},Q),J=Od);E.useEffect((()=>{G&&G.setAdornedStart(Boolean(N))}),[G,N]);const ee=Yn({},r,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:G,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:S,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 Dr({root:["root",`color${rr(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${rr(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"]},Bd,t)})(ee),ne=O.root||s.Root||Gd,re=k.root||u.root||{},oe=O.input||s.Input||Yd;return Q=Yn({},Q,null!=(n=k.input)?n:u.input),Fl.jsxs(E.Fragment,{children:[!p&&Kd,Fl.jsxs(ne,Yn({},re,!pd(ne)&&{ownerState:Yn({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),A&&A(e)}},z,{className:Ku(te.root,re.className,l,L&&"MuiInputBase-readOnly"),children:[N,Fl.jsx(_d.Provider,{value:null,children:Fl.jsx(oe,Yn({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:L,required:Y.required,rows:q,value:j,onKeyDown:P,onKeyUp:I,type:_},Q,!pd(oe)&&{as:J,ownerState:Yn({},ee,Q.ownerState)},{ref:W,className:Ku(te.input,Q.className,L&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||B.current;if(null==t)throw new Error(nr(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,M?M(Yn({},Y,{startAdornment:N})):null]}))]})}));var Xd=Zd;function Jd(e){return Lr("MuiInput",e)}var Qd=Yn({},$d,Mr("MuiInput",["root","underline","input"]));function ep(e){return Lr("MuiOutlinedInput",e)}var tp=Yn({},$d,Mr("MuiOutlinedInput",["root","notchedOutline","input"]));function np(e){return Lr("MuiFilledInput",e)}var rp=Yn({},$d,Mr("MuiFilledInput",["root","underline","input"])),op=function(e,t){function n(n,r){return Fl.jsx(ec,Yn({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=ec.muiName,E.memo(E.forwardRef(n))}(Fl.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const ip=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ap={entering:{opacity:1},entered:{opacity:1}},lp=E.forwardRef((function(e,t){const n=Ys(),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=Dc}=e,v=kr(e,ip),y=E.useRef(null),x=hr(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},C=S(d),w=S(((e,t)=>{kc(e);const r=Oc({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=S(c),A=S(m),D=S((e=>{const t=Oc({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=S(f);return Fl.jsx(b,Yn({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:R,onEntering:C,onExit:D,onExited:P,onExiting:A,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>E.cloneElement(a,Yn({style:Yn({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},ap[e],h,a.props.style),ref:x},t))}))}));var sp=lp;function up(e){return Lr("MuiBackdrop",e)}Mr("MuiBackdrop",["root","invisible"]);const cp=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],dp=Qs("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Yn({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"}))),pp=E.forwardRef((function(e,t){var n,r,o;const i=Ks({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=sp,transitionDuration:g}=i,b=kr(i,cp),v=Yn({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Dr({root:["root",n&&"invisible"]},up,t)})(v),x=null!=(n=f.root)?n:c.root;return Fl.jsx(h,Yn({in:p,timeout:g},b,{children:Fl.jsx(dp,Yn({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Ku(y.root,l,null==x?void 0:x.className),ownerState:Yn({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var fp=pp;const mp=Us(),hp=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Da("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Cl);return E.forwardRef((function(e,a){const l=Pl(n),s=Bl(e),{className:u,component:c="div"}=s,d=kr(s,Vl);return Fl.jsx(i,Yn({as:c,ref:a,className:Wl(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:qr,defaultTheme:mp,defaultClassName:"MuiBox-root",generateClassName:Ir.generate});var gp=hp;function bp(e){return Lr("MuiButton",e)}var vp=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 yp=E.createContext({});var xp=E.createContext(void 0);const Sp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ep=e=>Yn({},"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}}),Cp=Qs(od,{shouldForwardProp:e=>Zs(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${rr(n.color)}`],t[`size${rr(n.size)}`],t[`${n.variant}Size${rr(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 Yn({},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":Yn({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:us(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})`:us(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})`:us(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":Yn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${vp.focusVisible}`]:Yn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${vp.disabled}`]:Yn({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 ${us(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"},[`&.${vp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${vp.disabled}`]:{boxShadow:"none"}})),wp=Qs("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${rr(n.size)}`]]}})((({ownerState:e})=>Yn({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ep(e)))),Rp=Qs("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${rr(n.size)}`]]}})((({ownerState:e})=>Yn({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ep(e)))),Ap=E.forwardRef((function(e,t){const n=E.useContext(yp),r=E.useContext(xp),o=Ks({props:Ar(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,y=kr(o,Sp),x=Yn({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Yn({},a,Dr({root:["root",i,`${i}${rr(t)}`,`size${rr(o)}`,`${i}Size${rr(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${rr(o)}`],endIcon:["endIcon",`iconSize${rr(o)}`]},bp,a))})(x),C=g&&Fl.jsx(wp,{className:S.startIcon,ownerState:x,children:g}),w=p&&Fl.jsx(Rp,{className:S.endIcon,ownerState:x,children:p}),R=r||"";return Fl.jsxs(Cp,Yn({ownerState:x,className:Ku(n.className,S.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Ku(S.focusVisible,f),ref:t,type:b},y,{classes:S,children:[C,i,w]}))}));var Dp=Ap;function Pp(e){return Lr("MuiModal",e)}Mr("MuiModal",["root","hidden","backdrop"]);const Ip=["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"],Tp=Qs("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})=>Yn({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Lp=Qs(fp,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Mp=E.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Ks({name:"MuiModal",props:e}),{BackdropComponent:u=Lp,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:D,open:P,slotProps:I,slots:T}=s,L=kr(s,Ip),M=Yn({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:A}),{getRootProps:q,getBackdropProps:k,getTransitionProps:O,portalRef:N,isTopModal:_,exited:F,hasTransition:z}=Td(Yn({},M,{rootRef:t})),j=Yn({},M,{exited:F}),H=(e=>{const{open:t,exited:n,classes:r}=e;return Dr({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Pp,r)})(j),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:Tp,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=vd({elementType:$,externalSlotProps:V,externalForwardedProps:L,getSlotProps:q,additionalProps:{ref:t,as:h},ownerState:j,className:Ku(d,null==V?void 0:V.className,null==H?void 0:H.root,!j.open&&j.exited&&(null==H?void 0:H.hidden))}),Y=vd({elementType:W,externalSlotProps:U,additionalProps:c,getSlotProps:e=>k(Yn({},e,{onClick:t=>{D&&D(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Ku(null==U?void 0:U.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:j});return A||P||z&&!F?Fl.jsx(Cd,{ref:N,container:m,disablePortal:S,children:Fl.jsxs($,Yn({},G,{children:[!R&&u?Fl.jsx(W,Yn({},Y)):null,Fl.jsx(Ed,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:_,open:P,children:E.cloneElement(f,B)})]}))}):null}));var qp=Mp;function kp(e){return Lr("MuiDivider",e)}var Op=Mr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Np=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],_p=Qs("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})=>Yn({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)`:us(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})=>Yn({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Yn({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Yn({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Yn({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Fp=Qs("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Yn({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)`}))),zp=E.forwardRef((function(e,t){const n=Ks({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=kr(n,Np),m=Yn({},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 Dr({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"]},kp,r)})(m);return Fl.jsx(_p,Yn({as:a,className:Ku(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Fl.jsx(Fp,{className:h.wrapper,ownerState:m,children:o}):null}))}));zp.muiSkipListHighlight=!0;var jp=zp;const Hp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Bp=Qs(Gd,{shouldForwardProp:e=>Zs(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Vd(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 Yn({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}},[`&.${rp.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${rp.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"},[`&.${rp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${rp.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(.${rp.disabled}, .${rp.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${rp.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Yn({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),$p=Qs(Yd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ud})((({theme:e,ownerState:t})=>Yn({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.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),Wp=E.forwardRef((function(e,t){var n,r,o,i;const a=Ks({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=kr(a,Hp),g=Yn({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:n}=e;return Yn({},t,Dr({root:["root",!n&&"underline"],input:["input"]},np,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Xn(null!=p?p:s,v):v,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:Bp,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:$p;return Fl.jsx(Xd,Yn({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));Wp.muiName="Input";var Vp=Wp;const Up=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Gp(e){return`scale(${e}, ${e**2})`}const Yp={entering:{opacity:1,transform:Gp(1)},entered:{opacity:1,transform:"none"}},Kp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Zp=E.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=Dc}=e,g=kr(e,Up),b=E.useRef(),v=E.useRef(),y=Ys(),x=E.useRef(null),S=hr(x,o.ref,t),C=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{kc(e);const{duration:n,delay:r,easing:o}=Oc({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:Kp?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}=Oc({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:Kp?o:.666*o,delay:Kp?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Gp(.75),c&&c(e)})),I=C(d);return E.useEffect((()=>()=>{clearTimeout(b.current)}),[]),Fl.jsx(h,Yn({appear:r,in:a,nodeRef:x,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(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>E.cloneElement(o,Yn({style:Yn({opacity:0,transform:Gp(.75),visibility:"exited"!==e||a?void 0:"hidden"},Yp[e],f,o.props.style),ref:S},t))}))}));Zp.muiSupportAuto=!0;var Xp=Zp;const Jp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Qp=Qs(Gd,{shouldForwardProp:e=>Zs(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Vd(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})`),Yn({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"},[`&.${Qd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qd.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(.${Qd.disabled}, .${Qd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Qd.disabled}:before`]:{borderBottomStyle:"dotted"}})})),ef=Qs(Yd,{name:"MuiInput",slot:"Input",overridesResolver:Ud})({}),tf=E.forwardRef((function(e,t){var n,r,o,i;const a=Ks({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=kr(a,Jp),b=(e=>{const{classes:t,disableUnderline:n}=e;return Yn({},t,Dr({root:["root",!n&&"underline"],input:["input"]},Jd,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Xn(null!=f?f:u,v):v,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:Qp,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:ef;return Fl.jsx(Xd,Yn({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));tf.muiName="Input";var nf=tf;var rf=E.createContext({});function of(e){return Lr("MuiList",e)}Mr("MuiList",["root","padding","dense","subheader"]);const af=["children","className","component","dense","disablePadding","subheader"],lf=Qs("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})=>Yn({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var sf=E.forwardRef((function(e,t){const n=Ks({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=kr(n,af),c=E.useMemo((()=>({dense:a})),[a]),d=Yn({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Dr({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},of,t)})(d);return Fl.jsx(rf.Provider,{value:c,children:Fl.jsxs(lf,Yn({as:i,className:Ku(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function uf(e){return Lr("MuiListItem",e)}var cf=Mr("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var df=Mr("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function pf(e){return Lr("MuiListItemSecondaryAction",e)}Mr("MuiListItemSecondaryAction",["root","disableGutters"]);const ff=["className"],mf=Qs("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>Yn({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),hf=E.forwardRef((function(e,t){const n=Ks({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=kr(n,ff),i=Yn({},n,{disableGutters:E.useContext(rf).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return Dr({root:["root",t&&"disableGutters"]},pf,n)})(i);return Fl.jsx(mf,Yn({className:Ku(a.root,r),ownerState:i,ref:t},o))}));hf.muiName="ListItemSecondaryAction";var gf=hf;const bf=["className"],vf=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],yf=Qs("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>Yn({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Yn({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${df.root}`]:{paddingRight:48}},{[`&.${cf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${cf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:us(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${cf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:us(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${cf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${cf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:us(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})`:us(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),xf=Qs("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Sf=E.forwardRef((function(e,t){const n=Ks({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,className:l,component:s,components:u={},componentsProps:c={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:m=!1,disableGutters:h=!1,disablePadding:g=!1,divider:b=!1,focusVisibleClassName:v,secondaryAction:y,selected:x=!1,slotProps:S={},slots:C={}}=n,w=kr(n.ContainerProps,bf),R=kr(n,vf),A=E.useContext(rf),D=E.useMemo((()=>({dense:f||A.dense||!1,alignItems:r,disableGutters:h})),[r,A.dense,f,h]),P=E.useRef(null);ur((()=>{o&&P.current&&P.current.focus()}),[o]);const I=E.Children.toArray(a),T=I.length&&(L=I[I.length-1],M=["ListItemSecondaryAction"],E.isValidElement(L)&&-1!==M.indexOf(null!=(q=L.type.muiName)?q:null==(k=L.type)||null==(k=k._payload)||null==(k=k.value)?void 0:k.muiName));var L,M,q,k;const O=Yn({},n,{alignItems:r,autoFocus:o,button:i,dense:D.dense,disabled:m,disableGutters:h,disablePadding:g,divider:b,hasSecondaryAction:T,selected:x}),N=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:l,divider:s,hasSecondaryAction:u,selected:c}=e;return Dr({root:["root",o&&"dense",!a&&"gutters",!l&&"padding",s&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},uf,r)})(O),_=hr(P,t),F=C.root||u.Root||yf,z=S.root||c.root||{},j=Yn({className:Ku(N.root,z.className,l),disabled:m},R);let H=s||"li";return i&&(j.component=s||"div",j.focusVisibleClassName=Ku(cf.focusVisible,v),H=od),T?(H=j.component||s?H:"div","li"===d&&("li"===H?H="div":"li"===j.component&&(j.component="div")),Fl.jsx(rf.Provider,{value:D,children:Fl.jsxs(xf,Yn({as:d,className:Ku(N.container,p),ref:_,ownerState:O},w,{children:[Fl.jsx(F,Yn({},z,!pd(F)&&{as:H,ownerState:Yn({},O,z.ownerState)},j,{children:I})),I.pop()]}))})):Fl.jsx(rf.Provider,{value:D,children:Fl.jsxs(F,Yn({},z,{as:H,ref:_},!pd(F)&&{ownerState:Yn({},O,z.ownerState)},j,{children:[I,y&&Fl.jsx(gf,{children:y})]}))})}));var Ef=Sf;function Cf(e){return Lr("MuiListItemIcon",e)}var wf=Mr("MuiListItemIcon",["root","alignItemsFlexStart"]);const Rf=["className"],Af=Qs("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})=>Yn({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Df=E.forwardRef((function(e,t){const n=Ks({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=kr(n,Rf),i=Yn({},n,{alignItems:E.useContext(rf).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Dr({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Cf,n)})(i);return Fl.jsx(Af,Yn({className:Ku(a.root,r),ownerState:i,ref:t},o))}));var Pf=Mr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const If=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Tf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Lf(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Mf(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 qf(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")&&Mf(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var kf=E.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=kr(e,If),p=E.useRef(null),f=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ur((()=>{r&&p.current.focus()}),[r]),E.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Rr(ar(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=hr(p,t);let h=-1;E.Children.forEach(i,((e,t)=>{E.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=E.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),E.cloneElement(e,t)}return e}));return Fl.jsx(sf,Yn({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=ar(t).activeElement;if("ArrowDown"===n)e.preventDefault(),qf(t,r,s,l,Tf);else if("ArrowUp"===n)e.preventDefault(),qf(t,r,s,l,Lf);else if("Home"===n)e.preventDefault(),qf(t,null,s,l,Tf);else if("End"===n)e.preventDefault(),qf(t,null,s,l,Lf);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&&Mf(r,o);o.previousKeyMatched&&(s||qf(t,r,!1,l,Tf,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function Of(e){return Lr("MuiPopover",e)}Mr("MuiPopover",["root","paper"]);const Nf=["onEntering"],_f=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ff=["slotProps"];function zf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function jf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Hf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Bf(e){return"function"==typeof e?e():e}const $f=Qs(qp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Wf=Qs(zc,{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 Vf=E.forwardRef((function(e,t){var n,r,o;const i=Ks({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:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Xp,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,A=kr(i.TransitionProps,Nf),D=kr(i,_f),P=null!=(n=null==y?void 0:y.paper)?n:b,I=E.useRef(),T=hr(I,P.ref),L=Yn({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:P,transformOrigin:x,TransitionComponent:S,transitionDuration:C,TransitionProps:A}),M=(e=>{const{classes:t}=e;return Dr({root:["root"],paper:["paper"]},Of,t)})(L),q=E.useCallback((()=>{if("anchorPosition"===c)return u;const e=Bf(l),t=(e&&1===e.nodeType?e:ar(I.current).body).getBoundingClientRect();return{top:t.top+zf(t,s.vertical),left:t.left+jf(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),k=E.useCallback((e=>({vertical:zf(e,x.vertical),horizontal:jf(e,x.horizontal)})),[x.horizontal,x.vertical]),O=E.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=k(t);if("none"===c)return{top:null,left:null,transformOrigin:Hf(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=lr(Bf(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:Hf(n)}}),[l,c,q,k,h]),[N,_]=E.useState(g),F=E.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]);E.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);E.useEffect((()=>{g&&F()})),E.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),E.useEffect((()=>{if(!g)return;const e=ir((()=>{F()})),t=lr(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||S.muiSupportAuto||(z=void 0);const j=f||(l?ar(Bf(l)).body:void 0),H=null!=(r=null==v?void 0:v.root)?r:$f,B=null!=(o=null==v?void 0:v.paper)?o:Wf,$=vd({elementType:B,externalSlotProps:Yn({},P,{style:N?P.style:Yn({},P.style,{opacity:0})}),additionalProps:{elevation:m,ref:T},ownerState:L,className:Ku(M.paper,null==P?void 0:P.className)}),W=vd({elementType:H,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:D,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:L,className:Ku(M.root,p)}),{slotProps:V}=W,U=kr(W,Ff);return Fl.jsx(H,Yn({},U,!pd(H)&&{slotProps:V,disableScrollLock:R},{children:Fl.jsx(S,Yn({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{_(!1)},timeout:z},A,{children:Fl.jsx(B,Yn({},$,{children:d}))}))}))}));function Uf(e){return Lr("MuiMenu",e)}Mr("MuiMenu",["root","paper","list"]);const Gf=["onEntering"],Yf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Kf={vertical:"top",horizontal:"right"},Zf={vertical:"top",horizontal:"left"},Xf=Qs(Vf,{shouldForwardProp:e=>Zs(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jf=Qs(Wf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Qf=Qs(kf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var em=E.forwardRef((function(e,t){var n,r;const o=Ks({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,y=kr(o.TransitionProps,Gf),x=kr(o,Yf),S=Ys(),C="rtl"===S.direction,w=Yn({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),R=(e=>{const{classes:t}=e;return Dr({root:["root"],paper:["paper"],list:["list"]},Uf,t)})(w),A=i&&!s&&d,D=E.useRef(null);let P=-1;E.Children.map(a,((e,t)=>{E.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,L=vd({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,l]}),M=vd({elementType:I,externalSlotProps:T,ownerState:w,className:R.paper});return Fl.jsx(Xf,Yn({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Kf:Zf,slots:{paper:I,root:b.root},slotProps:{root:L,paper:M},open:d,ref:t,transitionDuration:m,TransitionProps:Yn({onEntering:(e,t)=>{D.current&&D.current.adjustStyleForScrollbar(e,S),h&&h(e,t)}},y),ownerState:w},x,{classes:f,children:Fl.jsx(Qf,Yn({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:D,autoFocus:i&&(-1===P||s),autoFocusItem:A,variant:g},u,{className:Ku(R.list,u.className),children:a}))}))}));function tm(e){return Lr("MuiMenuItem",e)}var nm=Mr("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const rm=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],om=Qs(od,{shouldForwardProp:e=>Zs(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})=>Yn({},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"}},[`&.${nm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:us(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nm.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:us(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${nm.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:us(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})`:us(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${nm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${nm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Op.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Op.inset}`]:{marginLeft:52},[`& .${Pf.root}`]:{marginTop:0,marginBottom:0},[`& .${Pf.inset}`]:{paddingLeft:36},[`& .${wf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Yn({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${wf.root} svg`]:{fontSize:"1.25rem"}}))));var im=E.forwardRef((function(e,t){const n=Ks({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=kr(n,rm),f=E.useContext(rf),m=E.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=E.useRef(null);ur((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Yn({},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 Yn({},a,Dr({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},tm,a))})(n),v=hr(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),Fl.jsx(rf.Provider,{value:m,children:Fl.jsx(om,Yn({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:Ku(b.focusVisible,s),className:Ku(b.root,d)},p,{ownerState:g,classes:b}))})}));function am(e){return Lr("MuiNativeSelect",e)}var lm=Mr("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const sm=["className","disabled","error","IconComponent","inputRef","variant"],um=({ownerState:e,theme:t})=>Yn({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Yn({},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"},[`&.${lm.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}}),cm=Qs("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Zs,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${lm.multiple}`]:t.multiple}]}})(um),dm=({ownerState:e,theme:t})=>Yn({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${lm.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),pm=Qs("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${rr(n.variant)}`],n.open&&t.iconOpen]}})(dm);var fm,mm=E.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=kr(e,sm),u=Yn({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Dr({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${rr(n)}`,i&&"iconOpen",r&&"disabled"]},am,t)})(u);return Fl.jsxs(E.Fragment,{children:[Fl.jsx(cm,Yn({ownerState:u,className:Ku(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:Fl.jsx(pm,{as:i,ownerState:u,className:c.icon})]})}));const hm=["children","classes","className","label","notched"],gm=Qs("fieldset",{shouldForwardProp:Zs})({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%"}),bm=Qs("legend",{shouldForwardProp:Zs})((({ownerState:e,theme:t})=>Yn({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&&Yn({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 vm=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ym=Qs(Gd,{shouldForwardProp:e=>Zs(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Vd})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Yn({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${tp.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${tp.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${tp.focused} .${tp.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${tp.error} .${tp.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${tp.disabled} .${tp.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Yn({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),xm=Qs((function(e){const{className:t,label:n,notched:r}=e,o=kr(e,hm),i=null!=n&&""!==n,a=Yn({},e,{notched:r,withLabel:i});return Fl.jsx(gm,Yn({"aria-hidden":!0,className:t,ownerState:a},o,{children:Fl.jsx(bm,{ownerState:a,children:i?Fl.jsx("span",{children:n}):fm||(fm=Fl.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}})),Sm=Qs(Yd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ud})((({theme:e,ownerState:t})=>Yn({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}))),Em=E.forwardRef((function(e,t){var n,r,o,i,a;const l=Ks({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=kr(l,vm),b=(e=>{const{classes:t}=e;return Yn({},t,Dr({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ep,t))})(l),v=Fd(),y=Nd({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Yn({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),S=null!=(n=null!=(r=m.root)?r:s.Root)?n:ym,C=null!=(o=null!=(i=m.input)?i:s.Input)?o:Sm;return Fl.jsx(Xd,Yn({slots:{root:S,input:C},renderSuffix:e=>Fl.jsx(xm,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Fl.jsxs(E.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:Yn({},b,{notchedOutline:null})}))}));Em.muiName="Input";var Cm=Em;function wm(e){return Lr("MuiSelect",e)}var Rm,Am=Mr("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Dm=["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"],Pm=Qs("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Am.select}`]:t.select},{[`&.${Am.select}`]:t[n.variant]},{[`&.${Am.error}`]:t.error},{[`&.${Am.multiple}`]:t.multiple}]}})(um,{[`&.${Am.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Im=Qs("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${rr(n.variant)}`],n.open&&t.iconOpen]}})(dm),Tm=Qs("input",{shouldForwardProp:e=>Xs(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 Lm(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Mm(e){return null==e||"string"==typeof e&&!e.trim()}const qm=E.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:y,onBlur:x,onChange:S,onClose:C,onFocus:w,onOpen:R,open:A,readOnly:D,renderValue:P,SelectDisplayProps:I={},tabIndex:T,value:L,variant:M="standard"}=e,q=kr(e,Dm),[k,O]=fr({controlled:L,default:c,name:"Select"}),[N,_]=fr({controlled:A,default:u,name:"Select"}),F=E.useRef(null),z=E.useRef(null),[j,H]=E.useState(null),{current:B}=E.useRef(null!=A),[$,W]=E.useState(),V=hr(t,h),U=E.useCallback((e=>{z.current=e,e&&H(e)}),[]),G=null==j?void 0:j.parentNode;E.useImperativeHandle(V,(()=>({focus:()=>{z.current.focus()},node:F.current,value:k})),[k]),E.useEffect((()=>{u&&N&&j&&!B&&(W(a?null:G.clientWidth),z.current.focus())}),[j,a]),E.useEffect((()=>{i&&z.current.focus()}),[i]),E.useEffect((()=>{if(!g)return;const e=ar(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=E.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),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),S(o,e)}v||Y(!1,t)}},X=null!==j&&N;let J,Q;delete q["aria-invalid"];const ee=[];let te=!1;(Hd({value:k})||p)&&(P?J=P(k):te=!0);const ne=K.map((e=>{if(!E.isValidElement(e))return null;let t;if(v){if(!Array.isArray(k))throw new Error(nr(2));t=k.some((t=>Lm(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Lm(k,e.props.value),t&&te&&(Q=e.props.children);return E.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&&j&&(oe=G.clientWidth),re=void 0!==T?T:d?null:0;const ie=I.id||(y?`mui-component-select-${y}`:void 0),ae=Yn({},e,{variant:M,value:k,open:X,error:f}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Dr({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${rr(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},wm,t)})(ae),se=Yn({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),ue=pr();return Fl.jsxs(E.Fragment,{children:[Fl.jsx(Pm,Yn({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&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:k,name:y}}),x(e))},onFocus:w},I,{ownerState:ae,className:Ku(I.className,le.select,s),id:ie,children:Mm(J)?Rm||(Rm=Fl.jsx("span",{className:"notranslate",children:""})):J})),Fl.jsx(Tm,Yn({"aria-invalid":f,value:Array.isArray(k)?k.join(","):k,name:y,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),S&&S(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},q)),Fl.jsx(Im,{as:m,className:le.icon,ownerState:ae}),Fl.jsx(em,Yn({id:`menu-${y||""}`,anchorEl:G,open:X,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Yn({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Yn({},b.slotProps,{paper:Yn({},se,{style:Yn({minWidth:oe},null!=se?se.style:null)})}),children:ne}))]})}));var km=qm;const Om=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Nm=["root"],_m={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Zs(e)&&"variant"!==e,slot:"Root"},Fm=Qs(nf,_m)(""),zm=Qs(Cm,_m)(""),jm=Qs(Vp,_m)(""),Hm=E.forwardRef((function(e,t){const n=Ks({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=op,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:C,variant:w="outlined"}=n,R=kr(n,Om),A=b?mm:km,D=Nd({props:n,muiFormControl:Fd(),states:["variant","error"]}),P=D.variant||w,I=Yn({},n,{variant:P,classes:i}),T=(e=>{const{classes:t}=e;return t})(I),L=kr(T,Nm),M=d||{standard:Fl.jsx(Fm,{ownerState:I}),outlined:Fl.jsx(zm,{label:f,ownerState:I}),filled:Fl.jsx(jm,{ownerState:I})}[P],q=hr(t,M.ref);return Fl.jsx(E.Fragment,{children:E.cloneElement(M,Yn({inputComponent:A,inputProps:Yn({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:y,open:x,renderValue:S,SelectDisplayProps:Yn({id:c},C)},p,{classes:p?Xn(L,p.classes):L},d?d.props.inputProps:{})},g&&b&&"outlined"===P?{notched:!0}:{},{ref:q,className:Ku(M.props.className,a,T.root)},!d&&{variant:P},R))})}));Hm.muiName="Select";var Bm=Hm;var $m=E.createContext();function Wm(e){return Lr("MuiTable",e)}Mr("MuiTable",["root","stickyHeader"]);const Vm=["className","component","padding","size","stickyHeader"],Um=Qs("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Yn({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Yn({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),Gm="table",Ym=E.forwardRef((function(e,t){const n=Ks({props:e,name:"MuiTable"}),{className:r,component:o=Gm,padding:i="normal",size:a="medium",stickyHeader:l=!1}=n,s=kr(n,Vm),u=Yn({},n,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:n}=e;return Dr({root:["root",n&&"stickyHeader"]},Wm,t)})(u),d=E.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return Fl.jsx($m.Provider,{value:d,children:Fl.jsx(Um,Yn({as:o,role:o===Gm?null:"table",ref:t,className:Ku(c.root,r),ownerState:u},s))})}));var Km=Ym;var Zm=E.createContext();function Xm(e){return Lr("MuiTableBody",e)}Mr("MuiTableBody",["root"]);const Jm=["className","component"],Qm=Qs("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),eh={variant:"body"},th="tbody";var nh=E.forwardRef((function(e,t){const n=Ks({props:e,name:"MuiTableBody"}),{className:r,component:o=th}=n,i=kr(n,Jm),a=Yn({},n,{component:o}),l=(e=>{const{classes:t}=e;return Dr({root:["root"]},Xm,t)})(a);return Fl.jsx(Zm.Provider,{value:eh,children:Fl.jsx(Qm,Yn({className:Ku(l.root,r),as:o,ref:t,role:o===th?null:"rowgroup",ownerState:a},i))})}));function rh(e){return Lr("MuiTableCell",e)}var oh=Mr("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const ih=["align","className","component","padding","scope","size","sortDirection","variant"],ah=Qs("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${rr(n.size)}`],"normal"!==n.padding&&t[`padding${rr(n.padding)}`],"inherit"!==n.align&&t[`align${rr(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Yn({},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?ds(us(e.palette.divider,1),.88):cs(us(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",[`&.${oh.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}))),lh=E.forwardRef((function(e,t){const n=Ks({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=n,d=kr(n,ih),p=E.useContext($m),f=E.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=Yn({},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}),y=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return Dr({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${rr(r)}`,"normal"!==o&&`padding${rr(o)}`,`size${rr(i)}`]},rh,t)})(v);let x=null;return u&&(x="asc"===u?"ascending":"descending"),Fl.jsx(ah,Yn({as:h,ref:t,className:Ku(y.root,o),"aria-sort":x,scope:g,ownerState:v},d))}));var sh=lh;function uh(e){return Lr("MuiTableContainer",e)}Mr("MuiTableContainer",["root"]);const ch=["className","component"],dh=Qs("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var ph=E.forwardRef((function(e,t){const n=Ks({props:e,name:"MuiTableContainer"}),{className:r,component:o="div"}=n,i=kr(n,ch),a=Yn({},n,{component:o}),l=(e=>{const{classes:t}=e;return Dr({root:["root"]},uh,t)})(a);return Fl.jsx(dh,Yn({ref:t,as:o,className:Ku(l.root,r),ownerState:a},i))}));function fh(e){return Lr("MuiTableHead",e)}Mr("MuiTableHead",["root"]);const mh=["className","component"],hh=Qs("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),gh={variant:"head"},bh="thead";var vh=E.forwardRef((function(e,t){const n=Ks({props:e,name:"MuiTableHead"}),{className:r,component:o=bh}=n,i=kr(n,mh),a=Yn({},n,{component:o}),l=(e=>{const{classes:t}=e;return Dr({root:["root"]},fh,t)})(a);return Fl.jsx(Zm.Provider,{value:gh,children:Fl.jsx(hh,Yn({as:o,className:Ku(l.root,r),ref:t,role:o===bh?null:"rowgroup",ownerState:a},i))})}));function yh(e){return Lr("MuiTableRow",e)}var xh=Mr("MuiTableRow",["root","selected","hover","head","footer"]);const Sh=["className","component","hover","selected"],Eh=Qs("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,[`&.${xh.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${xh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:us(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}))`:us(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Ch="tr",wh=E.forwardRef((function(e,t){const n=Ks({props:e,name:"MuiTableRow"}),{className:r,component:o=Ch,hover:i=!1,selected:a=!1}=n,l=kr(n,Sh),s=E.useContext(Zm),u=Yn({},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 Dr({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},yh,t)})(u);return Fl.jsx(Eh,Yn({as:o,ref:t,className:Ku(c.root,r),role:o===Ch?null:"row",ownerState:u},l))}));var Rh=wh,Ah=(e={})=>C.createElement(Bu,{...e},C.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},C.createElement("rect",{stroke:Ru.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})))),Dh=({className:e})=>C.createElement(Bu,{fontSize:"small",className:e},C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},C.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"}))),Ph=({className:e})=>C.createElement(Bu,{fontSize:"small",className:e},C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},C.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"}))),Ih=({className:e})=>C.createElement(Bu,{fontSize:"small",className:e},C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},C.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 Th={MuiAccordion:{styleOverrides:{root:{backgroundColor:Ru.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Ru.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:C.createElement(zu,{"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 ${Ru.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Ru.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Ru.MISC_FOCUS_BORDER}`,borderRadius:Tu,backgroundColor:Ru.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 ${Ru.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Ru.WHITE,color:Ru.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:Tu},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Ru.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Ru.GREYSCALE_0_15,backgroundColor:Ru.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Ru.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Ru.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Ru.GREEN_PALE},"&:active":{backgroundColor:Ru.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Ru.GREEN_PALE,boxShadow:`0 0 0 3px ${us(Ru.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Ru.BLUE_PALE},"&:active":{backgroundColor:Ru.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Ru.BLUE_PALE,boxShadow:`0 0 0 3px ${us(Ru.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:Tu,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Ru.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Ru.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Ru.GREYSCALE_0_15,backgroundColor:Ru.GREYSCALE_100_60,"&:active":{backgroundColor:Ru.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Ru.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Ru.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Ru.PURPLE,"&.Mui-focusVisible":{borderColor:Ru.PURPLE,boxShadow:`0 0 0 3px ${us(Ru.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Ru.GREEN,"&.Mui-focusVisible":{borderColor:Ru.GREEN,boxShadow:`0 0 0 3px ${us(Ru.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Ru.BLUE,"&.Mui-focusVisible":{borderColor:Ru.BLUE,boxShadow:`0 0 0 3px ${us(Ru.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Ru.ORANGE,"&.Mui-focusVisible":{borderColor:Ru.ORANGE,boxShadow:`0 0 0 3px ${us(Ru.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Ru.RED,"&.Mui-focusVisible":{borderColor:Ru.RED,boxShadow:`0 0 0 3px ${us(Ru.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Ru.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Ru.PURPLE_PALE},"&:active":{backgroundColor:Ru.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Ru.PURPLE_PALE,boxShadow:`0 0 0 3px ${us(Ru.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Ru.GREEN_PALE},"&:active":{backgroundColor:Ru.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Ru.GREEN_PALE,boxShadow:`0 0 0 3px ${us(Ru.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Ru.BLUE_PALE},"&:active":{backgroundColor:Ru.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Ru.BLUE_PALE,boxShadow:`0 0 0 3px ${us(Ru.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Ru.ORANGE_PALE},"&:active":{backgroundColor:Ru.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Ru.ORANGE_PALE,boxShadow:`0 0 0 3px ${us(Ru.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Ru.RED_PALE},"&:active":{backgroundColor:Ru.RED_DARK},"&.Mui-focusVisible":{borderColor:Ru.RED_PALE,boxShadow:`0 0 0 3px ${us(Ru.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:Ru.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Ru.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Tu,boxShadow:`inset 0 0 0 2px ${Ru.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:C.createElement(Hu,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Au,borderRadius:Tu,color:Ru.TEXT_PRIMARY,backgroundColor:Ru.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Ru.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Ru.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Ru.GREYSCALE_0_05,color:Ru.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Ru.GREEN,borderColor:Ru.GREEN},"&.MuiChip-outlinedInfo":{color:Ru.BLUE,borderColor:Ru.BLUE},"&.MuiChip-outlinedWarning":{color:Ru.ORANGE,borderColor:Ru.ORANGE},"&.MuiChip-outlinedError":{color:Ru.RED,borderColor:Ru.RED}},outlined:{border:`solid 1px ${Ru.GREYSCALE_0_15}`,backgroundColor:Ru.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Tu,boxShadow:"none",backgroundColor:Ru.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Ru.GREEN,borderColor:Ru.GREEN},outlinedSecondary:{color:Ru.BLUE,borderColor:Ru.BLUE},label:{fontFamily:Ou.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:C.createElement(Hu,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:C.createElement(zu,{"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:Tu},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:Du,height:"32px",'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Ru.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Ru.GREYSCALE_0_10},"&:hover":{backgroundColor:Ru.GREYSCALE_0_03}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Tu,border:`solid 1px ${Ru.GREYSCALE_0_15}`,color:Ru.GREYSCALE_0_60,marginRight:0,width:Iu,height:Iu},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Ru.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Tu,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Ru.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Du}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Au,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Ru.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Ru.GREYSCALE_25,fontSize:Au,fontFamily:Ou.FONT_FAMILY,fontWeight:qu,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Ru.TEXT_PRIMARY},"&.Mui-error":{color:Ru.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Ru.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Mu,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Ru.TEXT_SECONDARY,content:"'(required)'",fontWeight:Mu,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Du,lineHeight:"16px",backgroundColor:Ru.WHITE,borderRadius:Tu,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ru.GREYSCALE_0_05}`,borderColor:Ru.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ru.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Ru.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Ru.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ru.RED}`,boxShadow:`0px 0px 0px 1px ${Ru.RED}, inset 0 2px 0 0 ${Ru.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ru.GREYSCALE_0_10}`,borderColor:Ru.GREYSCALE_0_10,backgroundColor:Ru.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Ru.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Ru.GREYSCALE_0_15,borderRadius:Tu,boxShadow:`inset 0 2px 0 0 ${Ru.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>C.createElement(zu,{...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:Ru.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Ru.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Ru.GREYSCALE_0_03},"&:active":{backgroundColor:Ru.GREYSCALE_0_10},"&:focus":{backgroundColor:Ru.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Ru.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Ru.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Ru.GREYSCALE_0_30,"&:hover":{backgroundColor:Ru.GREYSCALE_0_0,borderColor:Ru.GREYSCALE_0_15},"& ~svg":{color:Ru.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Ru.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Tu}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Ru.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Ru.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Ru.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Du,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Au,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Au,fontWeight:qu,color:Ru.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:qu}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Ru.GREYSCALE_0_15}, 0px 0px 0px 1px ${Ru.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:C.createElement(Vu,null),checkedIcon:C.createElement(Uu,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Ru.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Ru.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Ru.GREEN_PALE,boxShadow:`0 0 0 3px ${us(Ru.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Ru.BLUE_PALE,boxShadow:`0 0 0 3px ${us(Ru.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Ru.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Ru.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:C.createElement(Ah,null),checkedIcon:C.createElement($u,null),indeterminateIcon:C.createElement(Wu,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Tu,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Ru.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Ru.GREYSCALE_0_55,color:Ru.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:Ru.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Ru.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Ru.GREYSCALE_0_55,"&:hover":{color:Ru.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDataGrid:{defaultProps:{className:"sprout-data-grid-pro",slots:{columnSortedAscendingIcon:Dh,columnSortedDescendingIcon:Ph,columnMenuSortAscendingIcon:Dh,columnMenuSortDescendingIcon:Ph,quickFilterIcon:({className:e})=>C.createElement(Ih,{className:`sprout-data-grid-pro-filter-search-icon ${e}`})},slotProps:{toolbar:{className:"sprout-data-grid-pro-toolbar"}}},styleOverrides:{root:{borderColor:Ru.GREYSCALE_85,borderRadius:0,"& .sprout-data-grid-pro-toolbar":{marginTop:0,"& .sprout-data-grid-pro-filter-search-icon":{paddingLeft:"8px",paddingRight:"4px",color:Ru.GREYSCALE_55},"& > div":{"&:after":{borderBottom:`1px solid ${Ru.GREYSCALE_0_15}`},"&:hover::before":{borderBottom:`1px solid ${Ru.GREYSCALE_0_15}`}}}},columnHeaders:{backgroundColor:Ru.GREYSCALE_98},withBorderColor:{borderColor:Ru.GREYSCALE_85,"&.MuiDataGrid-cell--withRightBorder:last-of-type":{borderRightWidth:0},"&.MuiDataGrid-columnHeader--withRightBorder:last-of-type":{borderRightWidth:0}},row:{"&:hover":{backgroundColor:Ru.GREYSCALE_0_03},"&.MuiDataGrid-row.Mui-selected":{backgroundColor:Ru.GREYSCALE_0_05,"&:hover":{backgroundColor:Ru.GREYSCALE_0_03}}},menu:{"& svg.MuiSvgIcon-root":{fontSize:Pu}},filterIcon:{fontSize:Pu},pinnedColumnHeaders:{backgroundColor:Ru.GREYSCALE_98},pinnedColumns:{backgroundColor:Ru.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:Ru.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Ru.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Du,color:Ru.TEXT_PRIMARY,lineHeight:"16px",fontWeight:qu},secondary:{fontSize:Au,color:Ru.GREYSCALE_45,fontWeight:Mu,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Du,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Ru.GREYSCALE_0_03},"&:active":{backgroundColor:Ru.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Du,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Ru.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Au,borderBottom:`solid 1px ${Ru.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Du,color:Ru.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Ru.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Ru.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Ru.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:Ru.RED}}},"&.Mui-focusVisible":{backgroundColor:Ru.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:Ru.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:Ru.GREEN,height:"24px","&.Mui-disabled":{color:Ru.GREYSCALE_0_15}},rail:{backgroundColor:Ru.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Ru.GREYSCALE_0_05}`,borderRadius:Tu,boxShadow:`inset 0px 0px 0px 1px ${Ru.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Ru.GREYSCALE_0_05}`,borderRadius:Tu},thumb:{height:"16px",width:"16px",borderRadius:Tu,backgroundColor:Ru.WHITE,boxShadow:`0px 1px 2px 0px ${Ru.GREYSCALE_0_15}, 0px 0px 0px 1px ${Ru.GREYSCALE_0_05}`,"&:hover":{borderRadius:Tu,boxShadow:`0 2px 4px 0 ${Ru.GREYSCALE_0_30}, 0 0 0 1px ${Ru.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Ru.GREYSCALE_0_15}, 0 0 0 1px ${Ru.GREYSCALE_0_06}, 0 0 0 2px ${Ru.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Ru.GREYSCALE_0_15}, 0 0 0 1px ${Ru.GREYSCALE_0_06}, 0 0 0 2px ${Ru.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Ru.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Ru.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Ru.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Ru.GREYSCALE_0_15},markLabel:{color:Ru.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Ru.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Ru.WHITE,color:Ru.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:Ru.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:Ru.GREEN_PALE,boxShadow:`0 0 0 3px ${us(Ru.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Ru.BLUE_PALE,boxShadow:`0 0 0 3px ${us(Ru.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Ru.GREYSCALE_0_15,borderRadius:Tu},thumb:{height:"16px",width:"16px",borderRadius:Tu,backgroundColor:Ru.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:Du,fontWeight:qu,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Ru.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Ru.MISC_FOCUS_BORDER}`,backgroundColor:Ru.GREYSCALE_0_03,borderRadius:Tu},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Ru.GREYSCALE_25,"&.Mui-selected":{color:Ru.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Du,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Ru.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Ru.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Ru.GREYSCALE_85}`,borderRight:`1px solid ${Ru.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:qu,backgroundColor:Ru.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:Ru.GREYSCALE_98,borderBottom:`1px solid ${Ru.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Ru.GREYSCALE_85}`,borderTop:`1px solid ${Ru.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Ru.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Ru.GREYSCALE_0_05,"&:hover":{backgroundColor:Ru.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Ru.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>C.createElement(Gu,{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 ${Ru.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:16,width:32,fontSize:Du,borderRadius:Tu,padding:"7px 16px",border:`1px solid ${Ru.GREYSCALE_0_15}`,backgroundColor:Ru.GREYSCALE_100_60,color:Ru.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Ru.GREYSCALE_0_10,border:`1px solid ${Ru.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Ru.GREYSCALE_0_03,border:`1px solid ${Ru.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Ru.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Ru.MISC_FOCUS_BORDER}`,border:`1px solid ${Ru.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Ru.GREYSCALE_25,backgroundColor:Ru.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Ru.GREYSCALE_0_10,border:`1px solid ${Ru.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Au,height:24,width:24,padding:7},sizeLarge:{fontSize:Pu,height:40,width:40,lineHeight:20}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Du,borderRadius:Tu}}},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:Ru.GREYSCALE_20},tooltip:{backgroundColor:Ru.GREYSCALE_20,fontSize:Au,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var Lh=e=>Th;const Mh={mode:"light",primary:{light:Ru.GREEN_PALE,main:Ru.GREEN,dark:Ru.GREEN_DARK,contrastText:Ru.WHITE},secondary:{light:Ru.BLUE_PALE,main:Ru.BLUE,dark:Ru.BLUE_DARK,contrastText:Ru.WHITE},error:{light:Ru.RED_PALE,main:Ru.RED,dark:Ru.RED_DARK,contrastText:Ru.WHITE},warning:{light:Ru.ORANGE_PALE,main:Ru.ORANGE,dark:Ru.ORANGE_DARK,contrastText:Ru.WHITE},success:{light:Ru.GREEN_PALE,main:Ru.GREEN,dark:Ru.GREEN_DARK,contrastText:Ru.WHITE},info:{light:Ru.BLUE_PALE,main:Ru.BLUE,dark:Ru.BLUE_DARK,contrastText:Ru.WHITE},text:{primary:Ru.TEXT_PRIMARY,secondary:Ru.TEXT_SECONDARY,disabled:Ru.GREYSCALE_0_30},action:{hover:Ru.GREYSCALE_0_03,hoverOpacity:.05,selected:Ru.GREYSCALE_0_05},amethyst:{main:Ru.PURPLE,light:Ru.PURPLE_PALE,dark:Ru.PURPLE_DARK,contrastText:Ru.WHITE},background:{paper:Ru.WHITE,default:Ru.GREYSCALE_95},divider:Ru.GREYSCALE_0_15},qh=e=>({components:Lh(),palette:Mh,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:Du,fontWeightLight:Lu,fontWeightRegular:Mu,fontWeightMedium:qu,fontWeightBold:ku,htmlFontSize:Du,fontFamily:Ou.FONT_FAMILY,button:{fontWeight:qu,fontSize:Du,textTransform:"none"},body1:{fontSize:Pu,lineHeight:"24px"},body2:{fontSize:Du,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Iu,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Pu,fontWeight:qu,lineHeight:"16px"},h6:{fontSize:Du,fontWeight:qu,lineHeight:"16px"},caption:{color:Ru.TEXT_SECONDARY},subtitle1:{fontSize:Du,color:Ru.TEXT_SECONDARY},subtitle2:{fontSize:Au,color:Ru.TEXT_SECONDARY}},shape:{borderRadius:Tu}}),kh={...wu,MISC_FOCUS_BORDER:Ru.MISC_FOCUS_BORDER},Oh=(e="light")=>qh();var Nh=Oh().palette,_h={SELECTED:{color:kh.GREYSCALE_100,background:Nh.primary.light,selectedCellClass:cu.SELECTED},POSSIBLE:{color:Nh.text.primary,background:kh.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)"},Fh=4/3,zh="12px",jh={height:"auto",fontSize:zh,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"}},Hh=25e4,Bh=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(dn.PixelsMax,Math.max(dn.PixelsMinTable,m)),i-=r[a]};switch(s){case pn.Pixels:m=u||dn.PixelsDefault,h();break;case pn.Percentage:m=(c||dn.PercentageDefault)/100*t,h();break;case pn.FitToContent:m=n(d,f,p,e.isLocked),h();break;case pn.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(dn.PixelsMinTable,a)}))}return r};const $h=Oh().palette,Wh={TEXT:$h.text.primary,DISABLED:$h.text.disabled,HOVER:$h.action.hover,WHITE:kh.GREYSCALE_100,BORDER_LIGHT:kh.GREYSCALE_90,BORDER_MEDIUM:kh.GREYSCALE_85,BORDER_HEAVY:kh.GREYSCALE_50,DARK_MODE_TEXT:kh.GREYSCALE_95,DARK_MODE_BORDER:kh.GREYSCALE_95,DARK_MODE_DISABLED:kh.GREYSCALE_70,DARK_MODE_BACKGROUND:kh.GREYSCALE_20},Vh=Math.PI/180,Uh=180/Math.PI,Gh=.96422,Yh=1,Kh=.82521,Zh=4/29,Xh=6/29,Jh=3*Xh*Xh,Qh=Xh*Xh*Xh;function eg(e){if(e instanceof tg)return new tg(e.l,e.a,e.b,e.opacity);if(e instanceof lg)return sg(e);e instanceof Se||(e=ye(e));var t,n,r=ig(e.r),o=ig(e.g),i=ig(e.b),a=ng((.2225045*r+.7168786*o+.0606169*i)/Yh);return r===o&&o===i?t=n=a:(t=ng((.4360747*r+.3850649*o+.1430804*i)/Gh),n=ng((.0139322*r+.0971045*o+.7141733*i)/Kh)),new tg(116*a-16,500*(t-a),200*(a-n),e.opacity)}function tg(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ng(e){return e>Qh?Math.pow(e,1/3):e/Jh+Zh}function rg(e){return e>Xh?e*e*e:Jh*(e-Zh)}function og(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ig(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ag(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof lg)return new lg(e.h,e.c,e.l,e.opacity);if(e instanceof tg||(e=eg(e)),0===e.a&&0===e.b)return new lg(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Uh;return new lg(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new lg(e,t,n,null==r?1:r)}function lg(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function sg(e){if(isNaN(e.h))return new tg(e.l,0,0,e.opacity);var t=e.h*Vh;return new tg(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}J(tg,(function(e,t,n,r){return 1===arguments.length?eg(e):new tg(e,t,n,null==r?1:r)}),Q(ee,{brighter(e){return new tg(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new tg(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 Se(og(3.1338561*(t=Gh*rg(t))-1.6168667*(e=Yh*rg(e))-.4906146*(n=Kh*rg(n))),og(-.9787684*t+1.9161415*e+.033454*n),og(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),J(lg,ag,Q(ee,{brighter(e){return new lg(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new lg(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return sg(this).rgb()}}));const ug=(e,t)=>{const n=ag(e),r=n.l<70,o=100===n.l;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):o?xe(`rgba(0, 0, 0, ${t.opacity})`).toString():r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},cg=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,dg=e=>{const t=cg.exec(e);if(t){const[,e,n,r,o]=t;return xe(+n,+r,+o,+e/255)}return xe(e)},pg=e=>{const t=dg(e);return Number.isNaN(t.r)?null:t.toString()},fg=e=>{if(void 0===e)return;const t=dg(e);return t.opacity=1,t.toString()},mg=(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)},hg=e=>{e.stopPropagation(),e.preventDefault()};var gg=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]]},bg=function(e){return e.querySelector("td[tabindex='0'], th[tabindex='0']")},vg=function(e){var t,n,r=e.nextElementSibling;return r?"HR"===r.tagName?vg(r):r:null===(n=null===(t=e.parentElement)||void 0===t?void 0:t.children)||void 0===n?void 0:n[0]},yg=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?yg(i):i},xg=function(e){return!e.enabled||e.active},Sg=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(un));null==r||r.setAttribute("tabIndex","0"),null==r||r.focus()}),0)},Eg=function(e){var t=e.focusType,n=e.cell;if(n)switch(t){case fu.FOCUS:n.focus(),n.setAttribute("tabIndex","0");break;case fu.FOCUS_BUTTON:n.querySelector(".sn-table-head-label").focus();break;case fu.BLUR:n.blur(),n.setAttribute("tabIndex","-1");break;case fu.ADD_TAB:n.setAttribute("tabIndex","0");break;case fu.REMOVE_TAB:n.setAttribute("tabIndex","-1")}},Cg=function(e,t,n,r,o,i){var 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 pu.DOWN:a<o-1-r.bottom&&a++;break;case pu.UP:a>r.top&&a--;break;case pu.RIGHT:if(r.top>0)break;l<i-1?l++:a<o-1&&(a++,l=0);break;case pu.LEFT:if(r.top>0)break;l>0?l--:a>0&&(a--,l=i-1)}return[a,l]}(e,t,n,i),l=gg(t,a);return Eg({focusType:o,cell:l}),r(a),l},wg=function(e,t){var n=bg(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):vu;n=n||gg(e,vu),Eg({cell:n,focusType:fu.FOCUS}),t(r)},Rg=function(e,t,n,r){var o;Eg({focusType:fu.REMOVE_TAB,cell:bg(t)}),n(e),r.enabled&&!r.active?null===(o=r.focus)||void 0===o||o.call(r):Eg({focusType:fu.ADD_TAB,cell:gg(t,e)})},Ag=function(e){return e.ctrlKey||e.metaKey},Dg=function(e){return e.shiftKey&&Ag(e)},Pg=function(e){return[pu.LEFT,pu.RIGHT,pu.UP,pu.DOWN].includes(e)},Ig=function(e){return e.shiftKey&&Pg(e.key)},Tg=function(e,t){return void 0===t&&(t=!1),e.key===pu.ESC&&!t||(e.key===pu.LEFT||e.key===pu.RIGHT)&&Dg(e)},Lg=function(e,t){var n=t.key===pu.UP&&1===e[0],r=t.key===pu.LEFT&&1===e[0]&&0===e[1];return n||r?fu.FOCUS_BUTTON:fu.FOCUS},Mg=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=s.atTop?2:1,d=[r.pageRowIdx+c,r.pageColIdx],p={top:u?c:0,bottom:u&&s.atBottom?1:0},f=Lg(d,t);f===fu.FOCUS&&Eg({focusType:fu.REMOVE_TAB,cell:t.target});var m=Cg(t,n,d,a,f,p);t.key!==pu.UP&&t.key!==pu.DOWN||(t.key===pu.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===pu.UP&&0!==n.pageRowIdx||t.key===pu.DOWN&&!n.isLastRow)&&e&&n.isSelectable}(i,t,r)?o({type:du.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,m,u))},qg=function(e){var t=e.evt,n=e.rootElement,r=e.setFocusedCellCoord,o=e.keyboard,i=e.isSelectionMode,a=e.paginationNeeded;if((null==o?void 0:o.enabled)&&i&&(t.shiftKey||!t.shiftKey&&!a))hg(t),mg(t.target,o,t.shiftKey);else if(t.shiftKey){r([0,n.querySelectorAll(".sn-table-head-cell").length-1])}},kg=function(e,t){var n=t.colIdx,r=t.rows,o=t.api,i=cu.INACTIVE;return(null==o?void 0:o.isModal())&&(i=n!==e.selectionColIdx?cu.EXCLUDED:void 0!==r[e.qElemNumber]?cu.SELECTED:cu.POSSIBLE),i},Og=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"]})},Ng=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),Og(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}))},_g=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&&Ig(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&&Ig(r)){i[n.qElemNumber]=n.rowIdx;var a=r.key===pu.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),Og(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},Fg=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})},zg=function(e,t){var n;switch(t.type){case du.SELECT:return Ng(e,t.payload);case du.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 du.SELECT_MOUSE_UP:return function(e,t){return Fg(e.isSelectMultiValues||e.firstCell!==t.cell?e:Ng(e,t))}(e,t.payload);case du.SELECT_MULTI_ADD:return _g(e,t.payload);case du.SELECT_MULTI_END:return Fg(e);case du.RESET:return(null===(n=e.api)||void 0===n?void 0:n.isModal())?e:H(H({},e),{rows:{},colIdx:-1});case du.CLEAR:return Object.keys(e.rows).length?H(H({},e),{rows:{}}):e;case du.UPDATE_PAGE_ROWS:return H(H({},e),{pageRows:t.payload.pageRows});default:throw new Error("reducer called with invalid action type")}},jg=4/3,Hg={hover:{darker:.15,brighter:.3,opacity:.03},active:{darker:.3,brighter:.5,opacity:.05}},Bg=function(e){return parseInt(e,10)*jg+8+1},$g=function(e){return!!e&&(null!==e.color||e.index>-1)};function Wg(e,t,n){void 0===n&&(n={});var r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}var Vg=function(e){return qe(e)?Wh.WHITE:Wh.TEXT},Ug=function(e){var t;return null===(t=e.components)||void 0===t?void 0:t.find((function(e){return"theme"===e.key}))},Gg=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:$g(null==n?void 0:n.fontColor)?Wg(Wh.TEXT,t,null==n?void 0:n.fontColor):i||Wh.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:Wh.DARK_MODE_BORDER,borderRightColor:Wh.DARK_MODE_BORDER,borderLeftColor:Wh.DARK_MODE_BORDER,borderTopColor:Wh.DARK_MODE_BORDER}:{borderLeftColor:Wh.BORDER_MEDIUM,borderRightColor:Wh.BORDER_MEDIUM,borderTopColor:Wh.BORDER_HEAVY,borderBottomColor:t?Wh.BORDER_HEAVY:Wh.BORDER_LIGHT}}(t.background.isDark,r));return Object.keys(l).forEach((function(e){var t=e;null==l[t]&&delete l[t]})),l};function Yg(e,t,n,r){var o,i,a,l,s=null===(o=Ug(e))||void 0===o?void 0:o.header,u=Gg("header",t,s,n);return u.background=t.background.isTransparent?Wh.WHITE:fg(t.background.color),(null==r?void 0:r.isNewHeadCellMenuEnabled)&&(u.hoverBackground=ug(null!==(i=u.background)&&void 0!==i?i:Wh.WHITE,Hg.hover),u.activeBackground=ug(null!==(a=u.background)&&void 0!==a?a:Wh.WHITE,Hg.active)),u.color=null!==(l=u.color)&&void 0!==l?l:qe(u.background)?Wh.DARK_MODE_TEXT:Wh.TEXT,u}function Kg(e,t,n,r){var o,i=null===(o=Ug(e))||void 0===o?void 0:o.content,a=Gg("content",t,i);a.background=t.background.color;var l,s=function(e,t,n){return e&&t&&n&&Bg(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=$g(c)||!!p,m=$g(u)||!!d,h=f||m;l=$g(u)?Wg(Wh.HOVER,t,u):d||(f?"":Wh.HOVER);var g=h?Wg(Vg(l),t,$g(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&&pg(e.qText);r&&"none"!==r&&(o[n[t]]=r)})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=Vg(o.cellBackgroundColor)),H(H({},e),{color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background})}var Xg=function(e,t,n,r,o){var i=S((function(){var i=n.totalsPosition.atTop,a=Kg(e,t,n.rows.length,r),l=Yg(e,t,!i,o),s=function(e,t,n){var r,o=null===(r=Ug(e))||void 0===r?void 0:r.content,i=Gg("content",t,o),a=Yg(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 Qg,eb,tb=M({}),nb=(Qg=tb,eb=M([function(){},new Set]),Jg.set(Qg,eb),function(e){var t=e.children,n=e.value,r=D(n),o=D(new Set);w((function(){r.current=n,o.current.forEach((function(e){e(n)}))}),[n]);var i=q((function(){return r.current}),[r]),a=S((function(){return[i,o.current]}),[i]);return C.createElement(Qg.Provider,{value:n},C.createElement(eb.Provider,{value:a},t))}),rb={rows:[],columns:[],totalsPosition:{}},ob=function(e){var t=e.app,n=e.children,r=e.tableData,o=void 0===r?rb: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,E=e.rect,w=e.viewService,R={isNewHeadCellMenuEnabled:e.isNewHeadCellMenuEnabled},A=x(0),D=A[0],P=A[1],I=x(a||bu),T=I[0],M=I[1],q=function(e,t){var n=L(zg,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[n[0],n[1]]}(o.rows,i),k=q[0],O=q[1],N=x(-1),_=N[0],F=N[1],z=Xg(l,d,o,f,R),j=function(e,t,n,r){var o=r.head,i=r.body,a=t.atBottom||t.atTop,l=Xt(H(H({},o),{bold:!0,maxNbrLinesOfText:3})).measureText,s=Xt(H(H({},i),{bold:!0,maxNbrLinesOfText:3})).measureText,u=Xt(H(H({},o),{bold:!1,maxNbrLinesOfText:3})).estimateWidth,c=S((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=x(0),p=d[0],f=d[1],m=x((function(){return Bh(e,n,c)})),h=m[0],g=m[1];U((function(){g(Bh(e,n-p,c))}),[e,n,p,c]);var b=S((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,E.width,z),B=j[0],$=j[1],W=j[2],V=j[3],G=S((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:E,viewService:w}}),[t,i,l,s,u,c,d.name(),p.active,f,m,h,g,z,E,w]);return C.createElement(nb,{value:{headRowHeight:D,setHeadRowHeight:P,focusedCellCoord:T,setFocusedCellCoord:M,selectionState:k,selectionDispatch:O,hoverIndex:_,setHoverIndex:F,columnWidths:B,setColumnWidths:$,baseProps:G,tableData:o,setYScrollbarWidth:W,setPage:b,pageInfo:v,initialDataPages:y,showRightBorder:V,featureFlags:R}},n)};function ib(e,t){var n=function(e){return Jg.get(e)}(e),r=R(n),o=r[0],i=r[1],a=L((function(e){return e+1}),0)[1],l=D(t),s=D(),u=o();if(void 0===u)throw new Error("You must call useContextSelector inside a valid context.");var c=S((function(){return t(u)}),[u,t]);return w((function(){l.current=t,s.current=c}),[u,c,t]),w((function(){var e=function(e){(l.current&&l.current(e))!==s.current&&a()};return i.add(e),function(){i.delete(e)}}),[i]),c}function ab(e){var t,n,r=Oh();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={}),Us(H(H({},r),{direction:e}))}function lb(){return lb=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},lb.apply(this,arguments)}function sb(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){ub(e,t,n[t])}))}return e}function ub(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cb(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 db(e){return"large"===e?"20px":"small"===e?"12px":"inherit"===e?"null":"16px"}var pb=function(e){var t=e.d,n=e.size,r=e.style,o=cb(e,["d","size","style"]);return C.createElement("i",lb({style:sb({fontSize:db(n),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},r)},o),C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},C.createElement("path",{d:t})))};function fb(e){return C.createElement(pb,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 mb={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},hb=(e,t)=>e.some((e=>t[e]>0)),gb=Qs(gp,{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"}))),bb=Qs(fb,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),vb=Qs(em)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),yb=Qs(jp)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),xb=Qs(Ef)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:e.spacing(.25,2),marginBottom:e.spacing(.5)}))),Sb=Qs(im,{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")}))),Eb=Qs("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"}))),Cb=Qs("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),wb=Qs(dd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),Rb=Qs(Df)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function Ab(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Db=(e,t)=>C.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){Ab(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),C.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})),Pb=k(Db);let Ib={};const Tb=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=x(!1),p=D(null),f=q((e=>{e.stopPropagation(),d(!1)}),[d]);return C.createElement(C.Fragment,null,C.createElement(Sb,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{n&&(await n(e),Ib={}),null!=a&&a.length&&(d(!0),Ib[r]=d)},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&C.createElement(Eb,null),C.createElement(Cb,null,C.createElement(Rb,null,C.createElement(o,null)),C.createElement(wb,{variant:"body2"},r)),null!=a&&a.length?C.createElement(Pb,null):null),(null==a?void 0:a.length)&&C.createElement(Mb,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=Ib,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},Lb=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&C.createElement(xb,null,e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>C.createElement(Tb,{key:e.id,...e,isSubMenu:t,handleHeadCellMenuKeyDown:n})))].filter(Boolean)]})),Mb=({anchorEl:e,open:t,onClose:n,ariaLabel:r,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?C.createElement(vb,{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)=>[Lb({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?C.createElement(yb,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null;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=(e,t)=>C.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),C.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"})),Ob=k(kb);function Nb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _b=(e,t)=>C.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){Nb(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),C.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"})),Fb=k(_b);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 jb=(e,t)=>C.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),C.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"})),Hb=k(jb);function Bb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $b=(e,t)=>C.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){Bb(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),C.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"})),Wb=k($b);function Vb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ub=(e,t)=>C.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){Vb(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),C.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"})),Gb=k(Ub);function Yb(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=(e,t)=>C.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){Yb(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),C.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"})),Zb=k(Kb);function Xb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jb=(e,t)=>C.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){Xb(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),C.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"})),Qb=k(Jb);function ev(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const tv=(e,t)=>C.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){ev(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),C.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"})),nv=k(tv);function rv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ov=(e,t)=>C.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){rv(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),C.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"})),iv=k(ov);function av(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lv=(e,t)=>C.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){av(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),C.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"})),sv=k(lv);var uv;!function(e){e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize"}(uv||(uv={}));const cv=({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[uv.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:Fb,enabled:!!e.isActivelySorted||"D"===e.sortDirection,isActive:e.isActivelySorted&&"A"===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:Ob,enabled:!!e.isActivelySorted||"A"===e.sortDirection,isActive:e.isActivelySorted&&"D"===e.sortDirection}]}]),e.isDim&&null!=a&&a.select){const e=[];n[uv.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),l()},icon:Hb,enabled:!0}]}]),n[uv.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:Wb,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:Gb,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:Qb,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:nv,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:iv,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:Zb,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return n[uv.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:sv,enabled:!0}]}]),p},dv=({open:e,setOpen:t,tabIndex:n,anchorRef:r,headerData:o,translator:i,interactions:a,handleHeadCellMenuKeyDown:l,menuAvailabilityFlags:s,shouldShowMenuIcon:u=!0,sortRelatedArgs:c,searchRelatedArgs:d,selectionRelatedArgs:p,adjustHeaderSizeRelatedArgs:f})=>{var m;const h=Y({translator:i}),{headTextAlign:g,qLibraryId:b,fieldId:v}=o,{fieldInstance:y,selectionActionsEnabledStatus:S,resetSelectionActionsEnabledStatus:E,updateSelectionActionsEnabledStatus:R}=(({headerData:e,app:t})=>{const[n,r]=x(null),[o,i]=x(mb);return w((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:q((()=>i(mb)),[]),updateSelectionActionsEnabledStatus:q((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:hb(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:hb(["qSelected"],n.qStateCounts),canSelectPossible:hb(["qOption"],n.qStateCounts),canSelectAlternative:hb(["qAlternative"],n.qStateCounts),canSelectExcluded:hb(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:o,app:null==p?void 0:p.app}),A=q((()=>{const e=b?{qLibraryId:b,type:"dimension"}:v;if(null!=d&&d.embed&&d.listboxRef){const{embed:t,listboxRef:n}=d;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}})}}),[d,v,b]);w((()=>{e||(E(),null!=p&&p.model&&p.model.getLayout().then((e=>{R(e)})).catch((e=>console.error(e))))}),[e,E,R,null==p?void 0:p.model]);const D=q((e=>{e.stopPropagation(),t(!1)}),[t]);return a.active?C.createElement(gb,{tabIndex:n,rightAligned:"right"===g,shouldShowMenuIcon:u},u&&C.createElement(bb,{size:"small",className:ln,"data-testid":ln,"aria-controls":e?"nebula-table-utils-head-menu":void 0,"aria-expanded":e?"true":void 0,"aria-haspopup":"true",isInteractionsActive:null!==(m=a.active)&&void 0!==m&&m},C.createElement(fb,null)),C.createElement(Mb,{open:e,anchorEl:r.current,onClose:D,menuGroups:cv({headerData:o,translator:h,menuAvailabilityFlags:s,setOpen:t,...c,embedListbox:A,interactions:a,fieldInstance:y,selectionActionsEnabledStatus:S,anchorRef:r,setFocusOnClosetHeaderAdjuster:null==f?void 0:f.setFocusOnClosetHeaderAdjuster}),ariaLabel:"nebula-table-utils-head-menu-button",handleHeadCellMenuKeyDown:l})):null},pv=Qs(gp,{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}`}))),fv=Qs(Bm,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),mv=Qs(Dp,{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)}))),hv=Qs(dd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),gv=e=>e.isDark?{background:e.color,borderColor:Wh.DARK_MODE_BORDER,color:Wh.DARK_MODE_TEXT,disabledColor:Wh.DARK_MODE_DISABLED,iconColor:Wh.DARK_MODE_TEXT}:{background:e.color,borderColor:Wh.BORDER_MEDIUM,color:Wh.TEXT,disabledColor:Wh.DISABLED},bv=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=S((()=>gv(r.background)),[r]);if(!n.active)return null;const a=o?C.createElement(pv,{footerStyle:i},e):null;return t?z.createPortal(e,t):a},vv=M({}),yv=()=>R(vv),xv=({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((()=>gv(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=Y({translator:d}),x=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 C.createElement(vv.Provider,{value:x},e)};var Sv,Ev;!function(e){e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage"}(Sv||(Sv={})),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 Cv=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=yv(),{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 C.createElement(hv,{variant:"caption"},a)},wv=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=yv(),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 C.createElement(C.Fragment,null,C.createElement(hv,{variant:"caption",id:d},u,":"),C.createElement(fv,{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}=yv();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>Ev.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=C.createElement(C.Fragment,null,t.rowsPerPageOptions.map((e=>C.createElement("option",{key:e,value:e},e))));return C.createElement(wv,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},Av=1e3,Dv="…",Pv=({totalPages:e,page:t})=>{const n=Math.min(e,Av),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-Av):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return C.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(C.createElement("option",{key:"startMoreOptions",value:Dv,disabled:!0},Dv)),o<e-1&&a.push(C.createElement("option",{key:"endMoreOptions",value:Dv,disabled:!0},Dv)),C.createElement(C.Fragment,null,a)},Iv=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=yv(),{page:o}=e;if(t<=Ev.SelectPage)return null;const i=C.createElement(Pv,{totalPages:n,page:o});return C.createElement(wv,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})};function Tv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Lv=(e,t)=>C.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){Tv(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),C.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),Mv=k(Lv);function qv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kv=(e,t)=>C.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){qv(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),C.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8l6-6ZM4 2v12H2V2h2Z"})),Ov=k(kv);function Nv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _v=(e,t)=>C.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){Nv(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),C.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5 3.5 2ZM14 2v12h-2V2h2Z"})),Fv=k(_v),zv={FirstPage:Ov,PreviousPage:Mv,NextPage:Pb,LastPage:Fv,FirstPageRTL:Fv,PreviousPageRTL:Pb,NextPageRTL:Mv,LastPageRTL:Ov},jv=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=yv(),u=zv[`${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}},Hv=()=>{const{pageInfo:e,width:t}=yv(),n=0===e.page,{IconComponent:r,styledProps:o}=jv({type:Sv.FirstPage,disabledCondition:n,pageNumber:0});return t<=Ev.FirstPage?null:C.createElement(mv,{...o},C.createElement(r,{height:an}))},Bv=()=>{const{pageInfo:e}=yv(),t=0===e.page,{IconComponent:n,styledProps:r}=jv({type:Sv.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return C.createElement(mv,{...r},C.createElement(n,{height:an}))},$v=(e,t,n=!1)=>{n&&e.key===sn.TAB&&!e.shiftKey&&(hg(e),mg(e.target,t,!1))},Wv=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=yv(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=jv({type:Sv.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>Ev.FirstPage&&o>Ev.LastPage)&&t.enabled?e=>$v(e,t,r):null;return C.createElement(mv,{...l,onKeyDown:s},C.createElement(a,{height:an}))},Vv=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=yv(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=jv({type:Sv.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>$v(e,t,r):null;return o<=Ev.LastPage?null:C.createElement(mv,{...l,onKeyDown:s},C.createElement(a,{height:an}))};var Uv=O((e=>C.createElement(xv,{...e},C.createElement(Rv,null),C.createElement(Iv,null),C.createElement(Cv,null),C.createElement(Hv,null),C.createElement(Bv,null),C.createElement(Wv,null),C.createElement(Vv,null))));const Gv=e=>C.createElement(bv,{...e},C.createElement(Uv,{...e})),Yv=Qs(gp,{shouldForwardProp:e=>"isLastColumn"!==e})((({isLastColumn:e})=>({PointerEvent:"all",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)":{[`& .${cn}`]:{background:"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, :active":{outline:"none",[`& .${cn}`]:{background:"#177fe6"}}}))),Kv=Qs(gp)({position:"absolute",height:"100%",width:"3px"}),Zv=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,isNewHeadCellMenuEnabled:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s})=>{const u=S((()=>({initWidth:e,columnWidth:e,initX:0})),[e]),c=r||o?dn.PixelsMin:dn.PixelsMinTable,d=n?0:1,p={left:r?u.columnWidth-d:"100%"},f=e=>{const t=Math.max(u.initWidth+e,c);u.columnWidth=t,i(t)},m=()=>{if(u.columnWidth!==u.initWidth){const e={type:pn.Pixels,pixels:u.columnWidth};a(e)}else null==s||s(!1)},h=e=>{const t=e.clientX-u.initX;f(t)},g=e=>{hg(e),document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",g),m()},b=e=>{const t=e.touches[0].clientX-u.initX;f(t)},v=e=>{e.preventDefault(),e.stopPropagation(),document.removeEventListener("touchmove",b),document.removeEventListener("touchend",v),m()},y=!r&&l?e=>{if(e.key===sn.LEFT||e.key===sn.RIGHT){hg(e);const t=u.columnWidth-u.initWidth,n=5,r=e.key===sn.LEFT?t-n:t+n;f(r)}else e.key===sn.SPACE||e.key===sn.ENTER?(hg(e),l(e),m()):e.key===sn.ESC&&(hg(e),l(e),f(u.initWidth))}:void 0;return C.createElement(Yv,{className:un,isLastColumn:n,style:p,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",h),document.addEventListener("mouseup",g),null==s||s(!0),u.initX=e.clientX},onDoubleClick:()=>a({type:pn.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",b),document.addEventListener("touchend",v),null==s||s(!0),u.initX=e.touches[0].clientX)},onKeyDown:y,onBlur:l,"data-testid":un},C.createElement(Kv,{className:cn}))};var Xv=Qs(gp,{shouldForwardProp:function(e){return"background"!==e}})((function(e){return{height:"100%",background:e.background.tableColorFromTheme}})),Jv=Qs(gp,{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"})})),Qv=Qs(gp)({overflow:"hidden",textOverflow:"ellipsis"});function ey(e,t){var n=D(!1);w((function(){n.current?e():n.current=!0}),t)}var ty=function(e,t,n){w((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])},ny=function(e){var t,n=e.key,r=e.target,o=null!==(t=document.activeElement)&&void 0!==t?t:r;if(n===pu.DOWN||n===pu.UP){var i=function(e){return n===pu.DOWN?vg(e):yg(e)};hg(e);for(var a=i(o);a;){if("true"!==a.ariaDisabled){a.focus();break}a=i(a)}}},ry=function(e){var t,n=e.evt,r=e.rootElement,o=e.cellCoord,i=e.setFocusedCellCoord;if(e.isInteractionEnabled){if(!Tg(n)){var a=!(null===(t=n.target.closest(".sn-table-cell"))||void 0===t?void 0:t.nextSibling);switch(n.key){case pu.LEFT:case pu.RIGHT:hg(n),n.key===pu.RIGHT&&a?wg(r,i):Cg(n,r,o,i,fu.FOCUS_BUTTON);break;case pu.DOWN:hg(n),Eg({focusType:fu.REMOVE_TAB,cell:bg(r)}),Cg(n,r,o,i,fu.FOCUS);break;case pu.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?(hg(e),wg(t,r)):r([n[0],n[1]+1]))}(n,r,o,i,a);break;case pu.C:hg(n),Ag(n)&&On(n)}}}else hg(n)},oy=function(e){var t=ib(tb,(function(e){return e.baseProps})),n=t.layout,r=t.rect,o=t.theme.name(),i=x(0),a=i[0],l=i[1],s=x(0),u=s[0],c=s[1];return N((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}},iy=Qs("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),ay=Qs(ph,{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"}})),ly=Qs(Km,{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}})),sy=function(){return C.createElement(C.Fragment,null,C.createElement(iy,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),C.createElement(iy,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"}))},uy=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||zh,10),u=C.createElement(Jv,{component:"span",className:"sn-table-cell-text",wordBreak:i,lines:l},t);return i?u:C.createElement(Qv,{minHeight:s*Fh,maxHeight:s*Fh*l},u)},cy=function(e){var t=e.selectionsAPI,n=e.selectionDispatch,r=e.setShouldRefocus,o=e.keyboard,i=e.tableWrapperRef;w((function(){var e=function(){n({type:du.RESET})},a=function(){n({type:du.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])},dy=function(e,t,n,r){return{handleMouseDown:function(r){if(null==e||e(r),t.isSelectable){n({type:du.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:function(){return n({type:du.SELECT_MULTI_END})}}})}},handleMouseOver:function(e){1===e.buttons&&n({type:du.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:function(e){0===e.button&&n({type:du.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:r}})}}},py=Qs(nh,{shouldForwardProp:function(e){return"lastRowBottomBorder"!==e}})((function(e){return{"& tr:last-child":{"& td, th":{borderBottomWidth:e.lastRowBottomBorder}}}})),fy=Qs(Rh,{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}})})),my=Qs(sh,{shouldForwardProp:function(e){return"cellStyle"!==e}})((function(e){var t=e.cellStyle,n=e.theme;return H(H(H({},jh),t),{padding:n.spacing(.5,1.5)})})),hy=Qs(sh,{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({},jh),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 gy(e){return function(t){var n=t.cell,r=t.styling,o=t.announce,i=t.onMouseDown,a=ib(tb,(function(e){return kg(n,e.selectionState)})),l=ib(tb,(function(e){return e.selectionDispatch})),s=dy(i,n,l,o),u=s.handleMouseDown,c=s.handleMouseOver,d=s.handleMouseUp,p=function(e,t){var n={};switch(t){case cu.SELECTED:n=_h.SELECTED;break;case cu.POSSIBLE:n=_h.POSSIBLE;break;case cu.EXCLUDED:n={background:"".concat(_h.EXCLUDED_BACKGROUND,", ").concat(e.background),selectedCellClass:cu.EXCLUDED}}return H(H({},e),n)}(r,a);return C.createElement(e,H({},t,{styling:p,onMouseUp:d,onMouseDown:u,onMouseOver:c}))}}function by(e,t){var n,r=(n=my,function(e){var t=e.styling,r=t.selectedCellClass,o=B(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 C.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=gy(r)),e&&(r=function(e){return function(t){var n=t.cell,r=t.column,o=t.styling,i=S((function(){return Zg(o,n.qAttrExps,r.stylingIDs)}),[o,n.qAttrExps,r.stylingIDs]);return C.createElement(e,H({},t,{styling:i}))}}(r)),r}var vy=function(){var e=ib(tb,(function(e){return e.tableData})),t=e.columns,n=e.totalsPosition.atTop,r=e.rows,o=ib(tb,(function(e){return e.baseProps})),i=o.rootElement,a=o.selectionsAPI,l=o.keyboard,s=o.styling,u=o.interactions,c=ib(tb,(function(e){return e.headRowHeight})),d=ib(tb,(function(e){return e.setFocusedCellCoord}));return C.createElement(Rh,{className:"sn-table-row sn-table-totals-row"},t.map((function(e,t){var o=[n?1:r.length+1,t],p=n&&0===t&&!l.enabled?0:-1;return C.createElement(hy,{totalsStyle:s.totals,headRowHeight:c,atTop:n,key:e.id,align:e.totalsTextAlign,className:"sn-table-cell",tabIndex:p,title:u.passive?e.totalInfo:void 0,onKeyDown:function(e){!function(e,t,n,r,o){if(void 0===o&&(o=!1),o)hg(e);else if(!Tg(e))switch(e.key){case pu.LEFT:case pu.RIGHT:case pu.UP:case pu.DOWN:hg(e);var i=Lg(n,e);i===fu.FOCUS&&Eg({focusType:fu.REMOVE_TAB,cell:e.target}),Cg(e,t,n,r,i);break;case pu.TAB:qg({evt:e,rootElement:t,setFocusedCellCoord:r});break;case pu.C:hg(e),Ag(e)&&On(e);break;case pu.SPACE:e.preventDefault()}}(e,i,o,d,null==a?void 0:a.isModal())},onMouseDown:function(){Rg(o,i,d,l)}},C.createElement(uy,{fontSize:s.totals.fontSize},e.totalInfo))})))},yy=O(vy),xy=function(e){var t,n,r=e.setShouldRefocus,o=e.tableWrapperRef,i=e.announce,a=ib(tb,(function(e){return e.tableData})),l=a.rows,s=a.columns,u=a.paginationNeeded,c=a.totalsPosition,d=ib(tb,(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,x=v.lastRowBottomBorder,E=B(v,["hoverColors","lastRowBottomBorder"]),w=ib(tb,(function(e){return e.setFocusedCellCoord})),R=ib(tb,(function(e){return e.selectionDispatch})),A=!!b.active&&!!b.select,D=JSON.stringify(s.map((function(e){return e.stylingIDs}))),P=S((function(){return JSON.parse(D).map((function(e){return by(!!e.length,A)}))}),[D,A]),I=!!(null===(n=null===(t=Ug(h))||void 0===t?void 0:t.content)||void 0===n?void 0:n.hoverEffect);return cy({keyboard:m,selectionDispatch:R,selectionsAPI:p,setShouldRefocus:r,tableWrapperRef:o}),C.createElement(py,{lastRowBottomBorder:x},c.atTop?C.createElement(yy,null):void 0,l.map((function(e,t){return C.createElement(fy,{hoverColors:y,hover:I,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=P[r],d=0!==t||0!==r||c.atTop||m.enabled?-1:0;return s&&C.createElement(s,{scope:0===r?"row":null,component:0===r?"th":null,cell:l,column:n,key:a,align:l.align,styling:E,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;if(t.target.classList.contains("excluded"))hg(t);else{var p=null==d?void 0:d.isModal();if(!Tg(t,p))switch(t.key){case pu.UP:case pu.DOWN:case pu.LEFT:case pu.RIGHT:hg(t),Mg({evt:t,rootElement:n,cell:r,selectionDispatch:o,isSelectionsEnabled:i,setFocusedCellCoord:a,announce:l,totalsPosition:c,isSelectionMode:p});break;case pu.SPACE:hg(t),r.isSelectable&&i&&o({type:du.SELECT,payload:{cell:r,evt:t,announce:l}});break;case pu.ENTER:hg(t),p&&(null==d||d.confirm(),l({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case pu.ESC:hg(t),null==d||d.cancel(),l({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case pu.TAB:qg({evt:t,rootElement:n,setFocusedCellCoord:a,keyboard:s,isSelectionMode:p,paginationNeeded:u});break;case pu.C:hg(t),Ag(t)&&On(t)}}}({evt:e,rootElement:f,selectionsAPI:p,cell:l,selectionDispatch:R,isSelectionsEnabled:A,setFocusedCellCoord:w,announce:i,keyboard:m,paginationNeeded:u,totalsPosition:c})},onKeyUp:function(e){return function(e,t){e.key===pu.SHIFT&&t({type:du.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;Rg([l,a],t,n,r)}(l,f,w,m,c)}},C.createElement(uy,{fontSize:E.fontSize,lines:null===(o=g.viewState)||void 0===o?void 0:o.maxLineCount},l.qText))})))})),c.atBottom?C.createElement(yy,null):void 0)},Sy=O(xy),Ey=function(e){var t=e.column,n=e.isLastColumn,r=e.onColumnResize,o=t.pageColIdx,i=ib(tb,(function(e){return e.baseProps})),a=i.applyColumnWidths,l=i.interactions,s=ib(tb,(function(e){return e.featureFlags})).isNewHeadCellMenuEnabled,u=ib(tb,(function(e){return e.columnWidths})),c=ib(tb,(function(e){return e.setColumnWidths}));if(!l.active)return null;return C.createElement(Zv,{columnWidth:u[o],isLastColumn:n,keyValue:"adjuster-".concat(o),isNewHeadCellMenuEnabled:s,updateWidthCallback:function(e){null==r||r();var t=V([],u,!0);t[o]=e,c(t)},confirmWidthCallback:function(e){a(e,t)},handleBlur:function(e){return function(e){var t=e.target;t.setAttribute("tabIndex","-1");var n=null==t?void 0:t.closest(".sn-table-cell"),r=(null==n?void 0:n.querySelector(".sn-table-head-menu-button"))||(null==n?void 0:n.querySelector(".".concat(ln)));null==r||r.focus()}(e)}})};function Cy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wy=(e,t)=>C.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){Cy(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),C.createElement("defs",null,C.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"})),C.createElement("use",{xlinkHref:"#lock_svg__lock-a",fillRule:"evenodd"})),Ry=k(wy);var Ay=Qs("div")({position:"absolute",left:0,bottom:0}),Dy=Qs(Dp,{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"}),{"& svg":H({},!i&&{opacity:t?1:.5})}),"& svg":{opacity:t?1:0,fontSize:zh},"& .Mui-disabled":{color:"inherit"},"& .MuiButton-endIcon, .MuiButton-startIcon":{marginBottom:"2px",visibility:r?"hidden":"visible"}}})),Py=Qs("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1}),Iy=Qs(gp,{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(gu,"px"):"1fr ".concat(gu,"px")},"&.aligned-center":{gridTemplateColumns:"".concat(gu,"px 2fr ").concat(gu,"px"),"& > div:first-child":{gridColumn:1},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:3}},"&.aligned-right":{gridTemplateColumns:n?"".concat(gu,"px 2fr ").concat(20,"px"):"".concat(gu,"px 1fr"),"& > div:first-child":{gridColumn:n?3:"unset"},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:1}}})})),Ty=Qs("div")({display:"flex",alignSelf:"flex-end"}),Ly=Qs(gp)({display:"flex",alignItems:"center",width:"".concat(20,"px"),height:"".concat(gu,"px"),flexShrink:0,flexDirection:"inherit","&.aligned-right":{justifyContent:"flex-start"},"&.aligned-center, &.aligned-left":{justifyContent:"flex-end"}}),My=Qs(gp,{shouldForwardProp:function(e){return"isVisible"!==e&&"rightAligned"!==e}})((function(e){var t=e.rightAligned;return H(H({},t?{marginRight:"auto"}:{marginLeft:"auto"}),{height:"".concat(gu,"px"),display:"flex"})})),qy=Qs(Dp,{shouldForwardProp:function(e){return"isVisible"!==e&&"rightAligned"!==e}})((function(e){return{opacity:e.isVisible?1:0,"&:focus":{opacity:1}}})),ky=Qs(jp)((function(e){return{"&.MuiDivider-root":{margin:e.theme.spacing(.5)}}})),Oy=Qs(im)((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"}}})),Ny=Qs("div")((function(){return{display:"flex",justifyContent:"space-between",alignItems:"center"}})),_y=Qs(Df)((function(e){return{marginRight:e.theme.spacing(1.5),lineHeight:0}}));Qs("div")((function(e){return{height:"350px",boxSizing:"border-box",background:e.theme.palette.common.white}}));function Fy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zy=(e,t)=>C.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){Fy(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),C.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"})),jy=k(zy);var Hy=new Map,By={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},$y=function(e,t){return e.some((function(e){return t[e]>0}))},Wy={},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=x(!1),d=c[0],p=c[1],f=D(null);return C.createElement(C.Fragment,null,C.createElement(Oy,{ref:u?f:null,key:o,"data-testid":"menu-item-".concat(o),className:"sn-table-head-menu-item",onClick:function(e){i&&(i(e),Wy={}),(null==u?void 0:u.length)&&(p(!0),Wy[a]=p)},disabled:!s,autoFocus:r,onKeyDown:ny},C.createElement(Ny,null,C.createElement(_y,null,l),C.createElement(dd,{variant:"body2"},a)),(null==u?void 0:u.length)?C.createElement(Pb,null):null),(null==u?void 0:u.length)&&C.createElement(Gy,{anchorEl:f.current,open:d,onClose:function(){return p(!1)},menuGroups:(t=u,n=Wy,t.map((function(e){return e.map((function(e){var t=e.onClick,r=B(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"}}))},Uy=function(e){return e.menuGroup.map((function(e){return C.createElement(Vy,H({key:e.id},e))}))},Gy=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?C.createElement(em,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[Uy({menuGroup:e}),n<t.length-1?C.createElement(ky,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0]}))}({itemGroups:o})):null},Yy=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=ib(tb,(function(e){return e.baseProps})),u=s.translator,c=s.embed,d=s.model,p=s.interactions,f=s.layout,m=D(null),h=D(null),g=x(!1),b=g[0],v=g[1],y=x(!1),E=y[0],R=y[1],A=function(e,t){var n=ib(tb,(function(e){return e.baseProps})),r=n.app,o=n.layout,i=x(null),a=i[0],l=i[1],s=x(By),u=s[0],c=s[1];return w((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);Hy.get(a)?l(Hy.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),Hy.set(a,t)}))}else r.getField(i,o.qStateName).then(l)}}),[r,e,o.qStateName,t]),{fieldInstance:a,selectionActionsEnabledStatus:u,resetSelectionActionsEnabledStatus:q((function(){return c(By)}),[]),updateSelectionActionsEnabledStatus:function(t){var n=t.qHyperCube.qDimensionInfo.find((function(t){return t.qFallbackTitle===e.label}));n&&c({canSelectAll:$y(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:$y(["qSelected"],n.qStateCounts),canSelectPossible:$y(["qOption"],n.qStateCounts),canSelectAlternative:$y(["qAlternative"],n.qStateCounts),canSelectExcluded:$y(["qAlternative","qExcluded"],n.qStateCounts)})}}}(t,b),P=A.fieldInstance,I=A.selectionActionsEnabledStatus,T=A.resetSelectionActionsEnabledStatus,L=A.updateSelectionActionsEnabledStatus,M=q((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]),k=S((function(){return V(V([],r&&p.select?[[{id:1,itemTitle:u.get("SNTable.MenuItem.Search"),onClick:function(e){e.stopPropagation(),v(!1),R(!0),M()},icon:C.createElement(Hb,null),enabled:!0}],[{id:1,itemTitle:u.get("SNTable.MenuItem.Selections"),icon:C.createElement(Wb,null),enabled:!0,subMenus:[[{id:1,itemTitle:u.get("SNTable.MenuItem.SelectAll"),onClick:function(){return $(void 0,void 0,void 0,(function(){return W(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:C.createElement(Gb,null),enabled:I.canSelectAll},{id:2,itemTitle:u.get("SNTable.MenuItem.SelectPossible"),onClick:function(){return $(void 0,void 0,void 0,(function(){return W(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:C.createElement(Qb,null),enabled:I.canSelectPossible},{id:3,itemTitle:u.get("SNTable.MenuItem.SelectAlternative"),onClick:function(){return $(void 0,void 0,void 0,(function(){return W(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:C.createElement(nv,null),enabled:I.canSelectAlternative},{id:4,itemTitle:u.get("SNTable.MenuItem.SelectExcluded"),onClick:function(){return $(void 0,void 0,void 0,(function(){return W(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:C.createElement(iv,null),enabled:I.canSelectExcluded}],[{id:1,itemTitle:u.get("SNTable.MenuItem.ClearSelections"),onClick:function(){return $(void 0,void 0,void 0,(function(){return W(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:C.createElement(Zb,null),enabled:I.canClearSelections}]]}]]:[],!0),[[{id:1,itemTitle:u.get("SNTable.MenuItem.AdjustColumnSize"),onClick:function(e){hg(e),v(!1),Sg(m)},icon:C.createElement(sv,null),enabled:!0}]],!1)}),[r,p.select,u,I,M,P]);w((function(){b||T()}),[b,T]);var O=f.qInfo.qId,N="sn-table-head-menu-button-".concat(l,"-").concat(O),_="sn-table-head-menu-".concat(l,"-").concat(O);return k.length?C.createElement(My,{rightAligned:"right"===a},C.createElement(qy,{isVisible:E||b,ref:m,size:"small",tabIndex:n,className:"sn-table-head-menu-button",id:N,"aria-controls":b?_:void 0,"aria-expanded":b?"true":void 0,"aria-haspopup":"true",onClick:function(){return $(void 0,void 0,void 0,(function(){var e;return W(this,(function(t){switch(t.label){case 0:return b||!d?[3,2]:[4,d.getLayout()];case 1:e=t.sent(),L(e),t.label=2;case 2:return v(!b),[2]}}))}))},"aria-label":u.get("SNTable.Accessibility.ColumnOptions")},C.createElement(jy,{height:zh})),C.createElement("div",{ref:h}),C.createElement(Gy,{open:b,anchorEl:m.current,onClose:function(){return v(!1)},menuGroups:k,buttonId:N,menuId:_})):null},Ky=function(e){var t,n=e.children,r=e.column,o=e.isInteractionEnabled,i=e.open,a=e.setOpen,l=ib(tb,(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=ib(tb,(function(e){return 0===e.focusedCellCoord[0]})),g=ib(tb,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled})),b=D(null),v=D(null),y=function(e){var t=e.sortDirection,n=e.isLocked,r=e.headTextAlign,o="A"===t?C.createElement(Fb,{height:zh}):C.createElement(Ob,{height:zh}),i=n?C.createElement(Ly,{className:"aligned-".concat(r)},C.createElement(Ry,{height:zh,"data-testid":"head-cell-lock-icon"})):void 0;return"right"===r?{startIcon:o,lockIcon:i}:{endIcon:o,lockIcon:i}}(r),x=y.startIcon,S=y.endIcon,E=y.lockIcon,w=o&&xg(s)?0:-1,R={A:u.get("SNTable.Accessibility.Ascending"),D:u.get("SNTable.Accessibility.Descending")};return C.createElement(Iy,{isLocked:Boolean(E),className:"aligned-".concat(r.headTextAlign),isNewHeadCellMenuEnabled:g},E&&C.createElement(Ty,null,E),C.createElement(Dy,{className:"sn-table-head-label",isActivelySorted:r.isActivelySorted,textAlign:r.headTextAlign,color:"inherit",size:"small",startIcon:x,endIcon:S,tabIndex:w,disabled:!o,onClick:g?function(){}:function(){return o&&c(r)},isNewHeadCellMenuEnabled:g},n,h&&C.createElement(Py,{"data-testid":"VHL-for-col-".concat(r.pageColIdx)},"".concat(R[r.sortDirection]," ").concat(u.get("SNTable.SortLabel.PressSpaceToSort")))),o&&(g?C.createElement(C.Fragment,null,C.createElement(dv,{headerData:r,translator:u,tabIndex:w,anchorRef:b,handleHeadCellMenuKeyDown:ny,menuAvailabilityFlags:(t={},t[uv.SORTING]=!0,t[uv.SEARCHING]=!0,t[uv.SELECTIONS]=!0,t[uv.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:Sg},shouldShowMenuIcon:!0}),C.createElement(Ay,{ref:v}),C.createElement(Ay,{ref:b})):C.createElement(Yy,{column:r,tabIndex:w})))},Zy=Qs(sh,{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({},jh),t),n&&{cursor:"pointer",background:i}),{pointer:"cursor",verticalAlign:"bottom","&:focus":{boxShadow:"none"},"&&:hover":H({},n&&{background:r.active?o:i})})})),Xy=function(e){var t=e.column,n=e.columnIndex,r=e.columnsLength,o=x(!1),i=o[0],a=o[1],l=ib(tb,(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=ib(tb,(function(e){return e.tableData})).columns,b=ib(tb,(function(e){return e.columnWidths})),v=ib(tb,(function(e){var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),y=ib(tb,(function(e){return e.setFocusedCellCoord})),S=ib(tb,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled})),E=!!u.active&&!v,w=t.isActivelySorted?mu[t.sortDirection]:void 0,R=n===r-1,A=[0,t.pageColIdx],D={width:b[n]-(R?8:9),zIndex:g.length-n};return C.createElement(Zy,{headerStyle:s.head,style:D,key:t.id,align:t.headTextAlign,className:"sn-table-head-cell sn-table-cell","aria-sort":w,tabIndex:-1,title:u.passive?t.label:void 0,onKeyDown:function(e){return ry({evt:e,rootElement:c,cellCoord:A,setFocusedCellCoord:y,isInteractionEnabled: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):Eg({focusType:fu.FOCUS_BUTTON,cell:gg(r,o)}))}({evt:e,rootElement:c,cellCoord:A,setFocusedCellCoord:y,keyboard:d,isInteractionEnabled:E})},isNewHeadCellMenuEnabled:S,background:i?f:m,hoverBackground:h,interactions:u,onClick:function(){return a(!0)}},C.createElement(Ky,{column:t,isInteractionEnabled:E,open:i,setOpen:a},C.createElement(uy,{fontSize:s.head.fontSize},t.label)),C.createElement(Ey,{column:t,isLastColumn:R}))},Jy=O((function(){var e,t=ib(tb,(function(e){return e.tableData})).columns,n=ib(tb,(function(e){return e.baseProps})),r=n.styling,o=n.viewService,i=ib(tb,(function(e){return e.setHeadRowHeight})),a=ib(tb,(function(e){return e.columnWidths})),l=D(null);return w((function(){l.current&&i(l.current.clientHeight)}),[r.head.fontSize,a,i]),(null===(e=o.viewState)||void 0===e?void 0:e.skipHeader)?null:C.createElement(vh,null,C.createElement(Rh,{ref:l,className:"sn-table-row sn-table-head-row"},t.map((function(e,n){return C.createElement(Xy,{column:e,columnIndex:n,columnsLength:t.length})}))))})),Qy=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=ib(tb,(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=ib(tb,(function(e){return e.baseProps})),y=v.rootElement,x=v.keyboard,S=v.translator,E=v.theme,R=v.interactions,A=v.styling,P=v.viewService,I=v.layout,T=v.rect,L=ib(tb,(function(e){return e.focusedCellCoord})),M=ib(tb,(function(e){return e.setFocusedCellCoord})),k=ib(tb,(function(e){return e.setYScrollbarWidth})),O=ib(tb,(function(e){return e.showRightBorder})),N=ib(tb,(function(e){return e.selectionDispatch})),_=ib(tb,(function(e){var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),F=D(!1),z=D(null),j=D(null),B=oy(z).yScrollbarWidth,$="".concat(S.get("SNTable.Accessibility.RowsAndColumns",[String(h.length+1),String(g.length)])," ").concat(S.get("SNTable.Accessibility.NavigationInstructions")),W=Un(I,P),V=W&&null!==(t=P.scrollLeft)&&void 0!==t?t:0,U=W&&null!==(n=P.rowPartialHeight)&&void 0!==n?n:0,G=q((function(){F.current=y.getElementsByTagName("table")[0].contains(document.activeElement)}),[y]),Y=q((function(e){o(H(H({},r),{page:e})),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),f.toString()]],politeness:"assertive"})}),[r,o,f,l]),K=q((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){w((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])}(j,F,x),ty(z,i,P),function(){var e=ib(tb,(function(e){return e.baseProps})),t=e.rootElement,n=e.keyboard,r=ib(tb,(function(e){return e.focusedCellCoord}));w((function(){var e=r[0]>0?fu.FOCUS:fu.FOCUS_BUTTON;e=n.active?e:fu.BLUR;var o=n.active?gg(t,r):bg(t);Eg({focusType:e,cell:o})}),[n.active,t])}(),w((function(){var e=z.current;e&&(e.scrollLeft=V,e.scrollTop=U)}),[r,p,V,U]),ey((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;Eg({focusType:fu.REMOVE_TAB,cell:bg(r)});var c=[u.atTop?2:1,n[1]],d=i?c:vu;if(xg(l)){var p=o.current?fu.FOCUS:fu.ADD_TAB;o.current=!1;var f=gg(r,d);if(Eg({focusType:p,cell:f}),i){var m=null===(t=null==f?void 0:f.classList)||void 0===t?void 0:t.contains("selected");s({keys:["".concat(f.textContent,","),m?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.NotSelectedValue"]})}}a(d)}({focusedCellCoord:L,rootElement:y,shouldRefocus:F,setFocusedCellCoord:M,isSelectionMode:_,keyboard:x,announce:l,totalsPosition:b})}),[h.length,p,d,s]),ey((function(){k(B)}),[B]),ey((function(){N({type:du.UPDATE_PAGE_ROWS,payload:{pageRows:h}})}),[h]),C.createElement(Xv,{ref:j,background:E.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(Dg(n)){hg(n);var c=Math.ceil(r/i)-1;n.key===pu.RIGHT&&o<c?(l(),a(o+1)):n.key===pu.LEFT&&o>0&&(l(),a(o-1))}else n.key===pu.ESC&&s.enabled&&!u?(hg(n),null===(t=s.blur)||void 0===t||t.call(s,!0)):Pg(n.key)&&hg(n)}({evt:e,totalRowCount:p,page:s,rowsPerPage:u,handleChangePage:Y,setShouldRefocus:G,keyboard:x,isSelectionMode:_})},"data-testid":"sn-table"},C.createElement(sy,null),C.createElement(ay,{ref:z,className:"sn-table-container",fullHeight:a||!R.active||!m,interactions:R,tabIndex:-1,role:"application","data-testid":"table-container"},C.createElement(ly,{styling:A,showRightBorder:O,stickyHeader:!0,"aria-label":$},C.createElement(Jy,null),C.createElement(Sy,H({},e,{setShouldRefocus:G,tableWrapperRef:j})))),C.createElement(Gv,{footerContainer:a,pageInfo:r,paginationNeeded:m,theme:E,totalRowCount:p,totalColumnCount:d,totalPages:f,keyboard:x,translator:S,interactions:R,rect:T,layout:I,handleChangePage:Y,handleChangeRowsPerPage:K,isSelectionMode:_}))},ex=O(Qy),tx=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function nx(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||tx(r)&&tx(o)))return!1;var r,o;return!0}function rx(e,t){var n;void 0===t&&(t=nx);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 ox="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function ix(e){cancelAnimationFrame(e.id)}function ax(e,t){var n=ox();var r={id:requestAnimationFrame((function o(){ox()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var lx=-1;function sx(e){if(void 0===e&&(e=!1),-1===lx||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),lx=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return lx}var ux=null;function cx(e){if(void 0===e&&(e=!1),null===ux||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?ux="positive-descending":(t.scrollLeft=1,ux=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),ux}return ux}var dx=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function px(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,Cu(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Cu(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=rx((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=rx((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=rx((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(cx()){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&&ix(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=ax(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Eu(t,e),t.getDerivedStateFromProps=function(e,t){return fx(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=sx();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(cx()){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&&ix(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?dx: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(),R=w[0],D=w[1],P=[];if(r>0&&g)for(var I=R;I<=D;I++)for(var T=E;T<=C;T++)P.push(A(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 L=a(this.props,this._instanceProps),M=l(this.props,this._instanceProps);return A(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Yn({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},A(u||c||"div",{children:P,ref:s,style:{height:L,pointerEvents:x?"none":void 0,width:M}}))},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}(_),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var fx=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},mx=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},hx=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},gx=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]},bx=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?vx(e,t,n,i,0,r):yx(e,t,n,Math.max(0,i),r)},vx=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=gx(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},yx=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&gx(e,t,r,n).offset<o;)r+=a,a*=2;return vx(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},xx=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=gx(e,t,n,i),u="column"===e?hx(t,i):mx(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}},Sx=px({getColumnOffset:function(e,t,n){return gx("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return bx("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=gx("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=gx("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:mx,getEstimatedTotalWidth:hx,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return xx("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return xx("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return gx("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return bx("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=gx("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=gx("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}}),Ex=function(e,t){return e};function Cx(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,Cu(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Cu(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=rx((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=rx((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=rx((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(cx()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&ix(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=ax(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Eu(t,e),t.getDerivedStateFromProps=function(e,t){return wx(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?sx():0:s.scrollHeight>s.clientHeight?sx():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(cx()){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&&ix(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?Ex: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],R=[];if(u>0)for(var D=C;D<=w;D++)R.push(A(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 A(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:Yn({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},A(l||s||"div",{children:R,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}(_),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var wx=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Rx=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]},Ax=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=Rx(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},Dx=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&Rx(e,n,t).offset<r;)n+=i,i*=2;return Ax(e,t,Math.min(n,o-1),Math.floor(n/2),r)},Px=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},Ix=Cx({getItemOffset:function(e,t,n){return Rx(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:Px,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=Rx(e,t,o),p=Px(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?Ax(e,t,o,0,n):Dx(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=Rx(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=Rx(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 Tx(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 Lx=["style"],Mx=["style"];function qx(e,t){var n=e.style,r=kr(e,Lx),o=t.style,i=kr(t,Mx);return!Tx(n,o)&&!Tx(r,i)}var kx=function(e){var t=e.style;return C.createElement("div",{className:"sn-table-cell",style:H(H({},t),{borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"})})},Ox=C.memo(kx,qx),Nx=function(){},_x=function(e){return e.preventDefault()};var Fx,zx=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=ib(tb,(function(e){return e.hoverIndex===r})),p=ib(tb,(function(e){return e.setHoverIndex})),f=ib(tb,(function(e){return e.baseProps})).interactions,m=ib(tb,(function(e){return e.showRightBorder})),h=null===(t=a[r])||void 0===t?void 0:t["col-".concat(n)],g=function(e){var t=ib(tb,(function(e){return e.baseProps})).interactions,n=ib(tb,(function(e){return e.selectionDispatch})),r="object"==typeof e,o=ib(tb,(function(t){return r?kg(e,t.selectionState):cu.INACTIVE})),i=t.active&&t.select;if(r&&i){var a=dy(_x,e,n,Nx);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,x=g.cellSelectionState;if("object"==typeof h){var S=function(e,t,n,r,o){var i=o.hoverColors;o.lastRowBottomBorder;var a=B(o,["hoverColors","lastRowBottomBorder"]),l=t.stylingIDs.length?Zg(a,e.qAttrExps,t.stylingIDs):a;return r===cu.SELECTED?H(H({},l),_h.SELECTED):r===cu.EXCLUDED?H(H({},l),{color:n?null==i?void 0:i.color:l.color,background:"".concat(_h.EXCLUDED_BACKGROUND,", ").concat(n?null==i?void 0:i.background:l.background)}):n?H(H({},l),i):l}(h,l[n],u&&d,x,s),E={rowindex:r,columnindex:n};return C.createElement("div",H({className:"sn-table-cell ".concat(x),style:H(H(H({},o),S),{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},E),C.createElement(uy,{wordBreak:!h.isNumeric,lines:c},h.qText))}return C.createElement(Ox,{style:H(H(H({},o),s),{borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"})})},jx=C.memo(zx,qx),Hx=function(e){var t=D(e);return t.current=e,t},Bx=function(e){var t=e.qLeft,n=e.qTop,r=e.qWidth,o=e.qHeight;return"".concat(t,"-").concat(n,"-").concat(r,"-").concat(o)},$x=function(e,t){var n=D(new Set),r=D(new Set),o=D(new Set),i=Hx(e),a=Hx(t),l=S((function(){return{enqueue:function(e){var t=Bx(e);o.current.has(t)||(n.current.add(e),o.current.add(t),1===n.current.size&&setTimeout((function(){return $(void 0,void 0,void 0,(function(){var e,t,l;return W(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(Bx(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},Wx=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)])}))},Ux=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=Fn(e);d[h]=H(H({},e),{align:$n(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}))}))},Gx=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=D([]),f=Hx(c),m=q((function(e,n){var r=Array.isArray(n)?n.slice(0,a):function(e){return Array(e).fill(void 0)}(a);return Ux(e,i,r,u,t,f.current),p.current=r,r}),[a,i,u,t,f]),h=x((function(){return m(null!=o?o:[])})),g=h[0],b=h[1];U((function(){b(m(null!=o?o:[]))}),[o]);var v=$x((function(e){return n.getHyperCubeData("/qHyperCubeDef",e)}),(function(e){return b((function(t){return m(e,t)}))})),y=q((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]),S=q((function(e,t,n,r){for(var o=t;o<t+r;o++){var a=Math.max(0,o-i.page*i.rowsPerPage);if(Wx(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 w((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 S(a,u,f,m),function(){v.clear()}}),[t,l,s,i,v,S,d,E]),{rowsInPage:g,loadRows:S,loadColumns:y}},Yx=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=D({lastScrollToRatio:0,resetAfterRowIndex:0,heights:[],totalHeight:0,count:0,measuredCells:new Map}),b=ib(tb,(function(e){return e.baseProps})),v=b.layout,y=b.rect,S=x(o||24),E=S[0],C=S[1],w=Xt(H(H({},n),{bold:c})),R=w.measureText,A=w.estimateLineCount,P=parseInt(null!==(t=n.fontSize)&&void 0!==t?t:jh.fontSize,10)*jg,I=8e6/a-8-1,T=Math.max(0,Math.min(h,Math.round(I/P))),L=q((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,A({text:e.trim(),maxWidth:o,isNumeric:n}));return Math.max(1,i)*P+8+1}),[r,P,T,u,A]),M=q((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=L(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)}}),[L,p]),k=q((function(e){var t;return null!==(t=g.current.heights[e])&&void 0!==t?t:E}),[g,E]),O=q((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=Hx(M),_=q((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]);U((function(){O()}),[v,i]),U((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:M,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&&M(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"}(Fx||(Fx={}));var Kx={enabled:!1},Zx=function(){},Xx={current:null};var Jx=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=S((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}},Qx=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)},eS={overflow:"hidden",willChange:"auto"},tS=k((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=ib(tb,(function(e){return e.baseProps})),m=f.layout,h=f.model,g=f.theme,b=f.viewService,v=ib(tb,(function(e){return e.columnWidths})),y=ib(tb,(function(e){return e.initialDataPages})),x=null===(n=b.viewState)||void 0===n?void 0:n.maxLineCount,E=D(null),R=D({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),A=!!(null===(o=null===(r=Ug(m))||void 0===r?void 0:r.content)||void 0===o?void 0:o.hoverEffect),P=function(){var e=D(0),t=D(0),n=D(Fx.None),r=D(Fx.None);return{scrollHandler:q((function(o){var i=o.scrollTop,a=o.scrollLeft;i>t.current?n.current=Fx.Down:i<t.current?n.current=Fx.Up:n.current=Fx.None,a>e.current?r.current=Fx.Right:a<e.current?r.current=Fx.Left:r.current=Fx.None,t.current=i,e.current=a}),[t,e,n,r]),verticalScrollDirection:n,horizontalScrollDirection:r}}(),I=P.scrollHandler,T=P.verticalScrollDirection,L=P.horizontalScrollDirection,M=Jx(m,s,i,v,c),k=M.rowCount,O=M.visibleRowCount,_=M.visibleColumnCount,z=Yx({pageInfo:s,style:u,rowHeight:c,columnWidths:v,gridRef:E,rowCount:k,gridState:R,isSnapshot:!!m.snapshotData,viewService:b,maxNbrLines:x}),j=z.setCellSize,H=z.getRowHeight,B=z.rowMeta,$=z.estimatedRowHeight,W=z.maxLineCount,V=z.resizeVisibleCells,G=Gx({layout:m,model:h,theme:g,initialDataPages:y,pageInfo:s,rowCount:k,visibleRowCount:O,visibleColumnCount:_,columns:a,setCellSize:j,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=q((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===Fx.Down)n(v,y,x,p+(E=S+25)>a?a-p:E);else if(o.current===Fx.Up){var E=S+25,C=l.page*l.rowsPerPage,w=Math.max(C,y-25);n(v,w,x,E)}if(i.current===Fx.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===Fx.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:L,rowCount:k,pageInfo:s,gridState:R,viewService:b}),Z=S((function(){return{rowsInPage:Y,columns:a,bodyStyle:u,isHoverEnabled:A,maxLineCount:W}}),[Y,a,u,A,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 N((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]),N((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=E.current)||void 0===n||n.scrollToItem({rowIndex:k-1,align:"start"}))})),function(e){var t=ib(tb,(function(e){return e.baseProps})).selectionsAPI,n=ib(tb,(function(e){return e.selectionDispatch}));w((function(){n({type:du.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[n,e]),cy({selectionsAPI:t,selectionDispatch:n,setShouldRefocus:Zx,keyboard:Kx,tableWrapperRef:Xx})}(Y),U((function(){var e;null===(e=E.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[m,s,g.name(),i.width,v]),F(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=E.current)||void 0===o||o.scrollToItem({rowIndex:k-1,align:"start"}),null===(i=E.current)||void 0===i||i.scrollTo({scrollLeft:t})):null===(a=E.current)||void 0===a||a.scrollTo({scrollTop:u,scrollLeft:t})},resizeCells:function(){var e;null===(e=E.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),V(Y)}}}),[l,X,B,k,V,Y]),C.createElement(Sx,{"data-key":"body",ref:E,innerRef:l,style:eS,columnCount:m.qHyperCube.qSize.qcx,columnWidth:function(e){return v[e]},height:X,rowCount:k,rowHeight:H,estimatedRowHeight:$,width:i.width,itemData:Z,onItemsRendered:K,onScroll:I,itemKey:Qx,className:"sn-table-body"},jx)})),nS=O(tS),rS=function(e){var t=e.width,n=e.height,r=e.children;return C.createElement("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:n}},r)},oS=Qs("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})})})),iS=function(e){var t=e.index,n=e.style,r=e.data,o=x(!1),i=o[0],a=o[1],l=r.columns,s=B(r.headerStyle,[]),u=r.columResizeHandler,c=ib(tb,(function(e){return e.baseProps})),d=c.interactions,p=c.styling.head,f=p.activeBackground,m=p.background,h=p.hoverBackground,g=ib(tb,(function(e){var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),b=ib(tb,(function(e){return e.showRightBorder})),v=ib(tb,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled})),y=l[t],S=l.length-1===t,E=!!d.active&&!g,w="right"===y.headTextAlign?"row-reverse":"row";return C.createElement(oS,{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:S&&!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},C.createElement(Ky,{column:y,isInteractionEnabled:E,open:i,setOpen:a},C.createElement(uy,{wordBreak:!0,lines:3},y.label)),C.createElement(Ey,{column:y,isLastColumn:S,onColumnResize:u}))},aS=function(e,t,n,r,o){N((function(){var t;null===(t=null==e?void 0:e.current)||void 0===t||t.resetAfterIndex(0,!0)}),[t,n,e,r,o])},lS={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},sS=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=ib(tb,(function(e){return e.baseProps})),u=s.layout,c=s.theme,d=ib(tb,(function(e){return e.columnWidths}));return aS(n,u,o,d,c.name()),C.createElement(Ix,{ref:n,layout:"horizontal",style:lS,itemCount:u.qHyperCube.qSize.qcx,itemSize:function(e){return d[e]},height:a,width:t.width,itemData:{columns:r,headerStyle:i,columResizeHandler:l}},iS)},uS=O(sS),cS=C.forwardRef((function(e,t){var n=e.children,r=e.width,o=e.height,i=e.onScroll,a=ib(tb,(function(e){return e.baseProps})).interactions;return C.createElement("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:r,height:o},onScroll:i},n)})),dS=function(e){var t=e.children,n=e.rect;return C.createElement("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:n.width,height:n.height}},t)},pS=function(e){var t=e.index,n=e.style,r=e.data,o=ib(tb,(function(e){return e.baseProps})),i=o.layout,a=o.interactions,l=ib(tb,(function(e){return e.showRightBorder})),s=r.totalsStyle;s.hoverColors;var u=B(s,["hoverColors"]),c=r.columns,d=r.totals,p=c[t].totalInfo,f=c[t].totalsTextAlign,m=i.qHyperCube.qSize.qcx-1===t;return C.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"})},C.createElement(uy,{wordBreak:!_n(p),lines:3},p))},fS=function(e){var t=e.rect,n=e.forwardRef,r=e.pageInfo,o=e.totals,i=e.rowHeight,a=e.columns,l=ib(tb,(function(e){return e.baseProps})),s=l.layout,u=l.styling,c=l.theme,d=ib(tb,(function(e){return e.columnWidths}));return aS(n,s,r,d,c.name()),C.createElement(Ix,{ref:n,layout:"horizontal",style:lS,itemCount:s.qHyperCube.qSize.qcx,itemSize:function(e){return d[e]},height:i,width:t.width,itemData:{totalsStyle:u.totals,columns:a,totals:o}},pS)},mS=O(fS),hS=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=ib(tb,(function(e){return e.baseProps})).styling,c=Yx({style:u.head,columnWidths:n,lineRef:o,rowCount:1,pageInfo:r,boldText:!0,columns:t,isSnapshot:l,viewService:s}),d=Yx({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,_n(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?jh.fontSize:t;return Math.max(24,Bg(n))}(u.body);return{headerRowHeight:p,totalsRowHeight:f,bodyRowHeight:m,headerAndTotalsHeight:a.atTop||a.atBottom?p+f:p,resizeAllHeaderCells:c.resizeAllCells,resizeAllTotalCells:d.resizeAllCells}},gS=function(e){var t,n=e.pageInfo,r=ib(tb,(function(e){return e.tableData})),o=r.totalsPosition,i=r.columns,a=r.paginationNeeded,l=ib(tb,(function(e){return e.baseProps})),s=l.layout,u=l.theme,c=l.styling,d=l.rect,p=l.viewService,f=ib(tb,(function(e){return e.columnWidths})),m=ib(tb,(function(e){return e.setYScrollbarWidth})),h=D(null),g=D(null),b=D(null),v=D(null),y=D(),E=oy(h),w=E.xScrollbarWidth,R=E.yScrollbarWidth,A=S((function(){var e;return H(H({},c.body),{background:null!==(e=u.background.color)&&void 0!==e?e:"transparent"})}),[u.background.color,c]),P=hS({columns:i,columnWidths:f,pageInfo:n,totalsPosition:o,headerRef:g,totalsRef:b,isSnapshot:!!s.snapshotData,viewService:p}),I=P.headerRowHeight,T=P.totalsRowHeight,L=P.bodyRowHeight,M=P.headerAndTotalsHeight,k=P.resizeAllHeaderCells,O=P.resizeAllTotalCells,_=S((function(){return function(e,t){var n=e.height-(t?41:0);return{width:e.width,height:n}}(d,a)}),[d,a]),F=S((function(){return function(e,t,n){return{width:e.width-n,height:e.height-t}}(_,w,R)}),[_,w,R]),z=Jx(s,n,F,f,L).rowCount,j=x(z*L+M),B=j[0],$=j[1],W=f.reduce((function(e,t){return e+t}),0),V=function(e,t,n,r){return q((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=q((function(e,t){void 0===t&&(t=!1);var n=e+M;(B<F.height&&n>F.height||t)&&$(n)}),[B,M,F.height]),G=q((function(){var e;h.current&&(h.current.scrollTop=0),null===(e=v.current)||void 0===e||e.resizeCells(),k(),O()}),[h,k,O]);N((function(){h.current&&(h.current.scrollLeft=0,h.current.scrollTop=0)}),[i.length]);var Y=u.name();N((function(){h.current&&(h.current.scrollTop=0)}),[n,z,Y]),ey((function(){m(R)}),[R]);var K=C.createElement(mS,{rect:F,pageInfo:n,columns:i,forwardRef:b,totals:o,rowHeight:T});return C.createElement(cS,{ref:h,width:_.width,height:_.height,onScroll:V},C.createElement(rS,{width:W,height:B},C.createElement(dS,{rect:F},(null===(t=p.viewState)||void 0===t?void 0:t.skipHeader)?null:C.createElement(uS,{headerStyle:c.head,rect:F,pageInfo:n,columns:i,forwardRef:g,rowHeight:I,columResizeHandler:G}),o.atTop?K:null,C.createElement(nS,{ref:v,innerForwardRef:y,bodyStyle:A,rect:F,pageInfo:n,columns:i,rowHeight:L,headerAndTotalsHeight:M,syncHeight:U}),o.atBottom?K:null)))},bS=O(gS),vS=function(){var e=ib(tb,(function(e){return e.baseProps})),t=e.theme,n=e.keyboard,r=e.translator,o=e.interactions,i=e.rect,a=e.layout,l=ib(tb,(function(e){return e.tableData})),s=l.paginationNeeded,u=l.totalRowCount,c=l.totalColumnCount,d=l.totalPages,p=ib(tb,(function(e){return e.pageInfo})),f=ib(tb,(function(e){return e.setPage}));return C.createElement(Xv,{"data-testid":"sn-table",background:t.background,dir:"ltr"},C.createElement(bS,{pageInfo:p}),C.createElement(Gv,{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}))},yS=O(vS);var xS,SS={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"}(xS||(xS={}));var ES=function(e,t){return n((function(){return function(e){if(e&&e.get&&e.add){var t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(SS).forEach((function(t){e.add(SS[t])}))}}(t),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===xS.FIRST?(o=p,r=xS.SECOND):(o=d,r=xS.FIRST),o.innerHTML=o.innerHTML.endsWith(" ")?c:"".concat(c," "),o.setAttribute("aria-atomic",l.toString()),o.setAttribute("aria-live",u)}}(e,t)}}),[e,t.language()])},CS={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},wS=function(e){var t=e.isNewHeadCellMenuEnabled,n=e.app,r=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,x=e.isFontLoaded,S=e.viewService,E=o(),w=E.direction,R=E.footerContainer,A=Un(u,S),D=Gn(u,S),P=ES(s,d),I=A?{page:S.page||CS.page,rowsPerPage:S.rowsPerPage||CS.rowsPerPage,rowsPerPageOptions:CS.rowsPerPageOptions}:CS,T=i(I),L=T[0],M=T[1],q=a((function(){return $(void 0,void 0,void 0,(function(){return W(this,(function(e){return D?[2,Vn(r,u,L,M,S)]:[2,null]}))}))}),[u,L,r,c,D])[0];l((function(){!!(D&&v&&r&&(u.snapshotData||n)&&u&&q&&m&&f&&p&&x&&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=B(e,["app","model","direction","selectionsAPI","layout","translator","interactions","theme","keyboard","rootElement","embed","changeSortOrder","applyColumnWidths","tableData","rect","viewService"]),y=ab(o);null==t||t.render(C.createElement(Xi,{stylisPlugins:"rtl"===o?[hu]:void 0},C.createElement(tu,{theme:y},C.createElement(ob,{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},C.createElement(ex,H({},v,{direction:o}))))))}({app:n,model:r,rootElement:s,layout:u,tableData:q,direction:w,pageInfo:L,setPageInfo:M,interactions:c,translator:d,selectionsAPI:p,theme:f,changeSortOrder:m,keyboard:h,rect:g,footerContainer:R,announce:P,embed:b,applyColumnWidths:y,viewService:S,isNewHeadCellMenuEnabled:t},v)}),[n,r,v,q,c,w,f.name(),h.active,P,m,y,D,u,p,b,s,L,M,d,g,R,x,t])},RS=function(e){var t=n((function(){return Z(e)}),[e]);return l((function(){return function(){return t.unmount()}}),[t]),t},AS=function(e,t,r){return n((function(){return function(e,t,n){if(t)return function(r,o){return $(void 0,void 0,void 0,(function(){var i,a,l,s,u,c,d,p,f,m;return W(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,t,r)}),[e.qDimensionInfo.length,t,r])};var DS=function(e,t,n){return $(void 0,void 0,void 0,(function(){var r,o;return W(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(Hh,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}}]}}))}))},PS=function(e){var t=e.app,r=e.layout,o=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,x=e.viewService,S=e.isNewHeadCellMenuEnabled,E=!Gn(r,x),w=n((function(){return function(e,t,n){var r=Hn(e,n),o=Wn(e),i=e.qHyperCube.qSize.qcy,a=Math.min(Hh,i),l=i>Hh&&!!t.active;return{totalsPosition:r,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:l}}(r,p,x)}),[r,p,x]),R=function(e,t){var r=i(0),o=r[0],a=r[1],l=Math.min(Hh,e.qHyperCube.qSize.qcy),s=n((function(){return{page:o,rowsPerPage:l,rowsPerPageOptions:[]}}),[l,o]);if(t){var u=Math.floor(e.qHyperCube.qSize.qcy/Hh);u<o&&a(u)}return{pageInfo:s,setPage:a}}(r,E),A=R.pageInfo,D=R.setPage,P=function(e){var t=e.model,n=e.layout,r=e.shouldRender,o=e.page,i=a((function(){return $(void 0,void 0,void 0,(function(){return W(this,(function(e){return r&&t?[2,DS(t,n,o)]:[2,void 0]}))}))}),[t,n,o])[0],l=(null==i?void 0:i.derivedFrom.layout)!==n||(null==i?void 0:i.derivedFrom.page)!==o;return{initialDataPages:null==i?void 0:i.initialDataPages,isLoading:l}}({model:o,layout:r,page:A.page,shouldRender:E}),I=P.initialDataPages,T=P.isLoading;l((function(){E&&o&&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,x=e.isNewHeadCellMenuEnabled,S=ab("ltr");t.render(C.createElement(C.StrictMode,null,C.createElement(tu,{theme:S},C.createElement(ob,{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:x},C.createElement(yS,null)))))}({app:t,layout:r,model:o,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:x,isNewHeadCellMenuEnabled:S},b)}),[t,r,o,s,u.name(),c.active,d,p,f,m,E,h,g,b,w,v,D,A,T,I,y,S])},IS=function(e,t){var n=Yg(t,e,!1),r=n.fontSize,o=n.fontFamily,i=Kg(t,e),l=i.fontSize,s=i.fontFamily,u=a((function(){return $(void 0,void 0,void 0,(function(){return W(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};var TS={properties:{initial:{version:JSON.stringify("2.9.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:Mn,exportProperties:Tn};function LS(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 MS=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]}},qS=function(e,t,n){if(!e)return!1;var r=e.y+e.height/2;return r>=t&&r<=n};var kS=function(e,t,n,r){var o;if(e<0)return 0;var i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||CS.rowsPerPage,l=(null===(o=r.viewState)||void 0===o?void 0:o.isMultiPage)?0:3;return Math.min(i,a,e-t+1+l)},OS=function(e,t,n){if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;var r=Hn(e,t);if(Gn(e,t)){var o=LS(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:kS(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=MS(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=(qS(v,y,x)?h:h+1)+m,E=g+m,C=MS(g,o),w=null==C?void 0:C.getBoundingClientRect();return C&&w&&(qS(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:kS(f,d,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}},NS=function(e){var t=e.layout,n=e.viewService,r=e.model,o=e.rootElement,i=e.contentRect;s((function(e){return $(void 0,void 0,void 0,(function(){var a,l,s,u,c,d,p,f,m,h,g;return W(this,(function(b){switch(b.label){case 0:return e.snapshotData&&r&&!e.snapshotData.content?r.getHyperCubeData?(e.qHyperCube||(e.qHyperCube={}),a=OS(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]}}))}))})),u((function(){return{getViewState:function(){return OS(t,n,o)}}}),[t,n,o])},_S=function(e){var t=o().viewState;return n((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}}(t,e.snapshotData)}),[t,e.snapshotData,e.usePagination])},FS=function(e){return e.getStyle("","","object.straightTableV2.backgroundColor")},zS=function(e){return e.getStyle("object","straightTableV2","backgroundColor")}}}}));
|
|
105
|
+
`),$c.rippleVisible,Zc,550,(({theme:e})=>e.transitions.easing.easeInOut),$c.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),$c.child,$c.childLeaving,Xc,550,(({theme:e})=>e.transitions.easing.easeInOut),$c.childPulsate,Jc,(({theme:e})=>e.transitions.easing.easeInOut));var td=E.forwardRef((function(e,t){const n=Js({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=kr(n,Wc),[l,s]=E.useState([]),u=E.useRef(0),c=E.useRef(null);E.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=E.useRef(!1),p=E.useRef(0),f=E.useRef(null),m=E.useRef(null);E.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=E.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,jl.jsx(ed,{classes:{ripple:Ju(o.ripple,$c.ripple),rippleVisible:Ju(o.rippleVisible,$c.rippleVisible),ripplePulsate:Ju(o.ripplePulsate,$c.ripplePulsate),child:Ju(o.child,$c.child),childLeaving:Ju(o.childLeaving,$c.childLeaving),childPulsate:Ju(o.childPulsate,$c.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=E.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=E.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=E.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 E.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),jl.jsx(Qc,Yn({className:Ju($c.root,o.root,i),ref:m},a,{children:jl.jsx(Nc,{component:null,exit:!0,children:l})}))}));function nd(e){return Mr("MuiButtonBase",e)}var rd=Lr("MuiButtonBase",["root","disabled","focusVisible"]);const od=["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"],id=nu("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"},[`&.${rd.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ad=E.forwardRef((function(e,t){const n=Js({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:y,onKeyUp:x,onMouseDown:S,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:D,tabIndex:P=0,TouchRippleProps:I,touchRippleRef:T,type:M}=n,L=kr(n,od),q=E.useRef(null),k=E.useRef(null),O=hr(k,T),{isFocusVisibleRef:N,onFocus:_,onBlur:F,ref:z}=wr(),[H,j]=E.useState(!1);s&&H&&j(!1),E.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),q.current.focus()}})),[]);const[B,$]=E.useState(!1);E.useEffect((()=>{$(!0)}),[]);const W=B&&!u&&!s;function V(e,t,n=c){return mr((r=>{t&&t(r);return!n&&k.current&&k.current[e](r),!0}))}E.useEffect((()=>{H&&d&&!u&&B&&k.current.pulsate()}),[u,d,H,B]);const U=V("start",S),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=mr((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=E.useRef(!1),oe=mr((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(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=mr((e=>{d&&" "===e.key&&k.current&&H&&!e.defaultPrevented&&(re.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),x&&x(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=hr(t,z,q),ue=Yn({},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=Dr({root:["root",t&&"disabled",n&&"focusVisible"]},nd,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return jl.jsxs(id,Yn({as:ae,className:Ju(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?jl.jsx(td,Yn({ref:O,center:o},I)):null]}))}));var ld=ad;function sd(e){return Mr("MuiTypography",e)}Lr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ud=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],cd=nu("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${rr(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Yn({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}))),dd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},pd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},fd=E.forwardRef((function(e,t){const n=Js({props:e,name:"MuiTypography"}),r=(e=>pd[e]||e)(n.color),o=Vl(Yn({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=dd}=o,f=kr(o,ud),m=Yn({},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]||dd[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Dr({root:["root",i,"inherit"!==e.align&&`align${rr(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},sd,a)})(m);return jl.jsx(cd,Yn({as:h,ref:t,ownerState:m,className:Ju(g.root,a)},f))}));var md=fd;function hd(e){return"string"==typeof e}function gd(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 bd(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=bd(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function vd(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=bd(e))&&(r&&(r+=" "),r+=t);return r}function yd(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 xd=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Sd(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=kr(e,xd),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=vd(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Yn({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Yn({},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=gd(Yn({},o,r)),l=yd(r),s=yd(o),u=t(a),c=vd(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=Yn({},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=Yn({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Yn({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||hd(e)?t:Yn({},t,{ownerState:Yn({},t.ownerState,n)})}(n,Yn({},s,{ref:hr(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const Ed=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Cd(e){const t=[],n=[];return Array.from(e.querySelectorAll(Ed)).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 wd(){return!0}function Rd(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Cd,isEnabled:a=wd,open:l}=e,s=E.useRef(!1),u=E.useRef(null),c=E.useRef(null),d=E.useRef(null),p=E.useRef(null),f=E.useRef(!1),m=E.useRef(null),h=hr(t.ref,m),g=E.useRef(null);E.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),E.useEffect((()=>{if(!l||!m.current)return;const e=ar(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]),E.useEffect((()=>{if(!l||!m.current)return;const e=ar(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 jl.jsxs(E.Fragment,{children:[jl.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),E.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)}}),jl.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Ad=E.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=E.useState(null),l=hr(E.isValidElement(n)?n.ref:null,t);if(ur((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),ur((()=>{if(i&&!o)return sr(t,i),()=>{sr(t,null)}}),[t,i,o]),o){if(E.isValidElement(n)){const e={ref:l};return E.cloneElement(n,e)}return jl.jsx(E.Fragment,{children:n})}return jl.jsx(E.Fragment,{children:i?H.createPortal(n,i):i})}));function Dd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Pd(e){return parseInt(lr(e).getComputedStyle(e).paddingRight,10)||0}function Id(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&&Dd(e,o)}))}function Td(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Md(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=ar(e);return t.body===e?lr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Rr(ar(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Pd(r)+e}px`;const t=ar(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Pd(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=ar(r).body;else{const t=r.parentElement,n=lr(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 Ld=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&&Dd(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);Id(t,e.mount,e.modalRef,r,!0);const o=Td(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=Td(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Md(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Td(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&&Dd(e.modalRef,t),Id(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&&Dd(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function qd(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Ld,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=E.useRef({}),f=E.useRef(null),m=E.useRef(null),h=hr(m,d),[g,b]=E.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},C=mr((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ar(f.current).body;o.add(x(),e),m.current&&S()})),w=E.useCallback((()=>o.isTopModal(x())),[o]),R=mr((e=>{f.current=e,e&&(c&&w()?S():m.current&&Dd(m.current,y))})),A=E.useCallback((()=>{o.remove(x(),y)}),[y,o]);E.useEffect((()=>()=>{A()}),[A]),E.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=gd(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Yn({},n,t);return Yn({role:"presentation"},r,{onKeyDown:D(r),ref:h})},getBackdropProps:(e={})=>Yn({"aria-hidden":!0},e,{onClick:P(e),open:c}),getTransitionProps:()=>({onEnter:or((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:or((()=>{b(!0),l&&l(),i&&A()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const kd=["onChange","maxRows","minRows","style","value"];function Od(e){return parseInt(e,10)||0}const Nd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function _d(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Fd=E.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=kr(e,kd),{current:s}=E.useRef(null!=a),u=E.useRef(null),c=hr(t,u),d=E.useRef(null),p=E.useRef(0),[f,m]=E.useState({outerHeightStyle:0}),h=E.useCallback((()=>{const t=u.current,n=lr(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=Od(n.paddingBottom)+Od(n.paddingTop),s=Od(n.borderBottomWidth)+Od(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=E.useCallback((()=>{const e=h();_d(e)||m((t=>g(t,e)))}),[h]);ur((()=>{const e=()=>{p.current=0,(()=>{const e=h();_d(e)||H.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=ir(e),n=u.current,r=lr(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]),ur((()=>{b()})),E.useEffect((()=>{p.current=0}),[a]);return jl.jsxs(E.Fragment,{children:[jl.jsx("textarea",Yn({value:a,onChange:e=>{p.current=0,s||b(),n&&n(e)},ref:c,rows:o,style:Yn({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),jl.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Yn({},Nd,i,{paddingTop:0,paddingBottom:0})})]})}));function zd({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 Hd=E.createContext(void 0);function jd(){return E.useContext(Hd)}function Bd(e){return jl.jsx(Bl,Yn({},e,{defaultTheme:Zs,themeId:qr}))}function $d(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Wd(e,t=!1){return e&&($d(e.value)&&""!==e.value||t&&$d(e.defaultValue)&&""!==e.defaultValue)}function Vd(e){return Mr("MuiInputBase",e)}var Ud=Lr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Gd=["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"],Yd=(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${rr(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Kd=(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]},Zd=nu("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Yd})((({theme:e,ownerState:t})=>Yn({},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",[`&.${Ud.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Yn({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Xd=nu("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Kd})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Yn({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 Yn({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] + .${Ud.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},[`&.${Ud.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"})})),Jd=jl.jsx(Bd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Qd=E.forwardRef((function(e,t){var n;const r=Js({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:y,minRows:x,multiline:S=!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=kr(r,Gd),H=null!=b.value?b.value:F,{current:j}=E.useRef(null!=H),B=E.useRef(),$=E.useCallback((e=>{}),[]),W=hr(B,v,b.ref,$),[V,U]=E.useState(!1),G=jd(),Y=zd({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:V,E.useEffect((()=>{!G&&d&&V&&(U(!1),w&&w())}),[G,d,V,w]);const K=G&&G.onFilled,Z=G&&G.onEmpty,X=E.useCallback((e=>{Wd(e)?K&&K():Z&&Z()}),[K,Z]);ur((()=>{j&&X({value:H})}),[H,X,j]);E.useEffect((()=>{X(B.current)}),[]);let J=g,Q=b;S&&"input"===J&&(Q=Yn(q?{type:void 0,minRows:q,maxRows:q}:{type:void 0,maxRows:y,minRows:x},Q),J=Fd);E.useEffect((()=>{G&&G.setAdornedStart(Boolean(N))}),[G,N]);const ee=Yn({},r,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:G,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:S,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 Dr({root:["root",`color${rr(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${rr(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"]},Vd,t)})(ee),ne=O.root||s.Root||Zd,re=k.root||u.root||{},oe=O.input||s.Input||Xd;return Q=Yn({},Q,null!=(n=k.input)?n:u.input),jl.jsxs(E.Fragment,{children:[!p&&Jd,jl.jsxs(ne,Yn({},re,!hd(ne)&&{ownerState:Yn({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),A&&A(e)}},z,{className:Ju(te.root,re.className,l,M&&"MuiInputBase-readOnly"),children:[N,jl.jsx(Hd.Provider,{value:null,children:jl.jsx(oe,Yn({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,!hd(oe)&&{as:J,ownerState:Yn({},ee,Q.ownerState)},{ref:W,className:Ju(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(nr(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(Yn({},Y,{startAdornment:N})):null]}))]})}));var ep=Qd;function tp(e){return Mr("MuiInput",e)}var np=Yn({},Ud,Lr("MuiInput",["root","underline","input"]));function rp(e){return Mr("MuiOutlinedInput",e)}var op=Yn({},Ud,Lr("MuiOutlinedInput",["root","notchedOutline","input"]));function ip(e){return Mr("MuiFilledInput",e)}var ap=Yn({},Ud,Lr("MuiFilledInput",["root","underline","input"])),lp=function(e,t){function n(n,r){return jl.jsx(rc,Yn({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=rc.muiName,E.memo(E.forwardRef(n))}(jl.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const sp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],up={entering:{opacity:1},entered:{opacity:1}},cp=E.forwardRef((function(e,t){const n=Xs(),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=Tc}=e,v=kr(e,sp),y=E.useRef(null),x=hr(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},C=S(d),w=S(((e,t)=>{_c(e);const r=Fc({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=S(c),A=S(m),D=S((e=>{const t=Fc({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=S(f);return jl.jsx(b,Yn({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:R,onEntering:C,onExit:D,onExited:P,onExiting:A,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>E.cloneElement(a,Yn({style:Yn({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},up[e],h,a.props.style),ref:x},t))}))}));var dp=cp;function pp(e){return Mr("MuiBackdrop",e)}Lr("MuiBackdrop",["root","invisible"]);const fp=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],mp=nu("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Yn({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"}))),hp=E.forwardRef((function(e,t){var n,r,o;const i=Js({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=dp,transitionDuration:g}=i,b=kr(i,fp),v=Yn({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Dr({root:["root",n&&"invisible"]},pp,t)})(v),x=null!=(n=f.root)?n:c.root;return jl.jsx(h,Yn({in:p,timeout:g},b,{children:jl.jsx(mp,Yn({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Ju(y.root,l,null==x?void 0:x.className),ownerState:Yn({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var gp=hp;var bp=Lr("MuiBox",["root"]);const vp=Ks(),yp=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Da("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Al);return E.forwardRef((function(e,a){const l=Ml(n),s=Vl(e),{className:u,component:c="div"}=s,d=kr(s,Yl);return jl.jsx(i,Yn({as:c,ref:a,className:Gl(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:qr,defaultTheme:vp,defaultClassName:bp.root,generateClassName:Ir.generate});var xp=yp;function Sp(e){return Mr("MuiButton",e)}var Ep=Lr("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 Cp=E.createContext({});var wp=E.createContext(void 0);const Rp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ap=e=>Yn({},"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}}),Dp=nu(ld,{shouldForwardProp:e=>Qs(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${rr(n.color)}`],t[`size${rr(n.size)}`],t[`${n.variant}Size${rr(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 Yn({},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":Yn({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ps(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})`:ps(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})`:ps(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":Yn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ep.focusVisible}`]:Yn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ep.disabled}`]:Yn({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 ${ps(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"},[`&.${Ep.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ep.disabled}`]:{boxShadow:"none"}})),Pp=nu("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${rr(n.size)}`]]}})((({ownerState:e})=>Yn({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ap(e)))),Ip=nu("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${rr(n.size)}`]]}})((({ownerState:e})=>Yn({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ap(e)))),Tp=E.forwardRef((function(e,t){const n=E.useContext(Cp),r=E.useContext(wp),o=Js({props:Ar(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,y=kr(o,Rp),x=Yn({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Yn({},a,Dr({root:["root",i,`${i}${rr(t)}`,`size${rr(o)}`,`${i}Size${rr(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${rr(o)}`],endIcon:["endIcon",`iconSize${rr(o)}`]},Sp,a))})(x),C=g&&jl.jsx(Pp,{className:S.startIcon,ownerState:x,children:g}),w=p&&jl.jsx(Ip,{className:S.endIcon,ownerState:x,children:p}),R=r||"";return jl.jsxs(Dp,Yn({ownerState:x,className:Ju(n.className,S.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Ju(S.focusVisible,f),ref:t,type:b},y,{classes:S,children:[C,i,w]}))}));var Mp=Tp;function Lp(e){return Mr("MuiModal",e)}Lr("MuiModal",["root","hidden","backdrop"]);const qp=["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"],kp=nu("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})=>Yn({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Op=nu(gp,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Np=E.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Js({name:"MuiModal",props:e}),{BackdropComponent:u=Op,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:D,open:P,slotProps:I,slots:T}=s,M=kr(s,qp),L=Yn({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:A}),{getRootProps:q,getBackdropProps:k,getTransitionProps:O,portalRef:N,isTopModal:_,exited:F,hasTransition:z}=qd(Yn({},L,{rootRef:t})),H=Yn({},L,{exited:F}),j=(e=>{const{open:t,exited:n,classes:r}=e;return Dr({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Lp,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:kp,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=Sd({elementType:$,externalSlotProps:V,externalForwardedProps:M,getSlotProps:q,additionalProps:{ref:t,as:h},ownerState:H,className:Ju(d,null==V?void 0:V.className,null==j?void 0:j.root,!H.open&&H.exited&&(null==j?void 0:j.hidden))}),Y=Sd({elementType:W,externalSlotProps:U,additionalProps:c,getSlotProps:e=>k(Yn({},e,{onClick:t=>{D&&D(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Ju(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?jl.jsx(Ad,{ref:N,container:m,disablePortal:S,children:jl.jsxs($,Yn({},G,{children:[!R&&u?jl.jsx(W,Yn({},Y)):null,jl.jsx(Rd,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:_,open:P,children:E.cloneElement(f,B)})]}))}):null}));var _p=Np;function Fp(e){return Mr("MuiDivider",e)}var zp=Lr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Hp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],jp=nu("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})=>Yn({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)`:ps(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})=>Yn({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Yn({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Yn({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Yn({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Bp=nu("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Yn({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)`}))),$p=E.forwardRef((function(e,t){const n=Js({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=kr(n,Hp),m=Yn({},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 Dr({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"]},Fp,r)})(m);return jl.jsx(jp,Yn({as:a,className:Ju(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?jl.jsx(Bp,{className:h.wrapper,ownerState:m,children:o}):null}))}));$p.muiSkipListHighlight=!0;var Wp=$p;const Vp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Up=nu(Zd,{shouldForwardProp:e=>Qs(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Yd(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 Yn({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}},[`&.${ap.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${ap.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"},[`&.${ap.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ap.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(.${ap.disabled}, .${ap.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ap.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Yn({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}))})),Gp=nu(Xd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Kd})((({theme:e,ownerState:t})=>Yn({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}))),Yp=E.forwardRef((function(e,t){var n,r,o,i;const a=Js({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=kr(a,Vp),g=Yn({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:n}=e;return Yn({},t,Dr({root:["root",!n&&"underline"],input:["input"]},ip,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Xn(v,null!=p?p:s):v,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:Up,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:Gp;return jl.jsx(ep,Yn({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));Yp.muiName="Input";var Kp=Yp;const Zp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Xp(e){return`scale(${e}, ${e**2})`}const Jp={entering:{opacity:1,transform:Xp(1)},entered:{opacity:1,transform:"none"}},Qp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ef=E.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=Tc}=e,g=kr(e,Zp),b=E.useRef(),v=E.useRef(),y=Xs(),x=E.useRef(null),S=hr(x,o.ref,t),C=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{_c(e);const{duration:n,delay:r,easing:o}=Fc({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:Qp?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}=Fc({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:Qp?o:.666*o,delay:Qp?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Xp(.75),c&&c(e)})),I=C(d);return E.useEffect((()=>()=>{clearTimeout(b.current)}),[]),jl.jsx(h,Yn({appear:r,in:a,nodeRef:x,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(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>E.cloneElement(o,Yn({style:Yn({opacity:0,transform:Xp(.75),visibility:"exited"!==e||a?void 0:"hidden"},Jp[e],f,o.props.style),ref:S},t))}))}));ef.muiSupportAuto=!0;var tf=ef;const nf=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],rf=nu(Zd,{shouldForwardProp:e=>Qs(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Yd(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})`),Yn({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"},[`&.${np.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${np.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(.${np.disabled}, .${np.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${np.disabled}:before`]:{borderBottomStyle:"dotted"}})})),of=nu(Xd,{name:"MuiInput",slot:"Input",overridesResolver:Kd})({}),af=E.forwardRef((function(e,t){var n,r,o,i;const a=Js({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=kr(a,nf),b=(e=>{const{classes:t,disableUnderline:n}=e;return Yn({},t,Dr({root:["root",!n&&"underline"],input:["input"]},tp,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Xn(null!=f?f:u,v):v,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:rf,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:of;return jl.jsx(ep,Yn({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));af.muiName="Input";var lf=af;var sf=E.createContext({});function uf(e){return Mr("MuiList",e)}Lr("MuiList",["root","padding","dense","subheader"]);const cf=["children","className","component","dense","disablePadding","subheader"],df=nu("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})=>Yn({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var pf=E.forwardRef((function(e,t){const n=Js({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=kr(n,cf),c=E.useMemo((()=>({dense:a})),[a]),d=Yn({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Dr({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},uf,t)})(d);return jl.jsx(sf.Provider,{value:c,children:jl.jsxs(df,Yn({as:i,className:Ju(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function ff(e){return Mr("MuiListItemIcon",e)}var mf=Lr("MuiListItemIcon",["root","alignItemsFlexStart"]);const hf=["className"],gf=nu("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})=>Yn({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var bf=E.forwardRef((function(e,t){const n=Js({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=kr(n,hf),i=Yn({},n,{alignItems:E.useContext(sf).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Dr({root:["root","flex-start"===t&&"alignItemsFlexStart"]},ff,n)})(i);return jl.jsx(gf,Yn({className:Ju(a.root,r),ownerState:i,ref:t},o))}));var vf=Lr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const yf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function xf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Sf(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ef(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 Cf(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")&&Ef(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var wf=E.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=kr(e,yf),p=E.useRef(null),f=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ur((()=>{r&&p.current.focus()}),[r]),E.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Rr(ar(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=hr(p,t);let h=-1;E.Children.forEach(i,((e,t)=>{E.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=E.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),E.cloneElement(e,t)}return e}));return jl.jsx(pf,Yn({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=ar(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Cf(t,r,s,l,xf);else if("ArrowUp"===n)e.preventDefault(),Cf(t,r,s,l,Sf);else if("Home"===n)e.preventDefault(),Cf(t,null,s,l,xf);else if("End"===n)e.preventDefault(),Cf(t,null,s,l,Sf);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&&Ef(r,o);o.previousKeyMatched&&(s||Cf(t,r,!1,l,xf,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function Rf(e){return Mr("MuiPopover",e)}Lr("MuiPopover",["root","paper"]);const Af=["onEntering"],Df=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Pf=["slotProps"];function If(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Tf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Mf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Lf(e){return"function"==typeof e?e():e}const qf=nu(_p,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kf=nu(Bc,{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 Of=E.forwardRef((function(e,t){var n,r,o;const i=Js({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:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=tf,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,A=kr(i.TransitionProps,Af),D=kr(i,Df),P=null!=(n=null==y?void 0:y.paper)?n:b,I=E.useRef(),T=hr(I,P.ref),M=Yn({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:P,transformOrigin:x,TransitionComponent:S,transitionDuration:C,TransitionProps:A}),L=(e=>{const{classes:t}=e;return Dr({root:["root"],paper:["paper"]},Rf,t)})(M),q=E.useCallback((()=>{if("anchorPosition"===c)return u;const e=Lf(l),t=(e&&1===e.nodeType?e:ar(I.current).body).getBoundingClientRect();return{top:t.top+If(t,s.vertical),left:t.left+Tf(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),k=E.useCallback((e=>({vertical:If(e,x.vertical),horizontal:Tf(e,x.horizontal)})),[x.horizontal,x.vertical]),O=E.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=k(t);if("none"===c)return{top:null,left:null,transformOrigin:Mf(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=lr(Lf(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:Mf(n)}}),[l,c,q,k,h]),[N,_]=E.useState(g),F=E.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]);E.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);E.useEffect((()=>{g&&F()})),E.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),E.useEffect((()=>{if(!g)return;const e=ir((()=>{F()})),t=lr(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||S.muiSupportAuto||(z=void 0);const H=f||(l?ar(Lf(l)).body:void 0),j=null!=(r=null==v?void 0:v.root)?r:qf,B=null!=(o=null==v?void 0:v.paper)?o:kf,$=Sd({elementType:B,externalSlotProps:Yn({},P,{style:N?P.style:Yn({},P.style,{opacity:0})}),additionalProps:{elevation:m,ref:T},ownerState:M,className:Ju(L.paper,null==P?void 0:P.className)}),W=Sd({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:D,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:H,open:g},ownerState:M,className:Ju(L.root,p)}),{slotProps:V}=W,U=kr(W,Pf);return jl.jsx(j,Yn({},U,!hd(j)&&{slotProps:V,disableScrollLock:R},{children:jl.jsx(S,Yn({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{_(!1)},timeout:z},A,{children:jl.jsx(B,Yn({},$,{children:d}))}))}))}));function Nf(e){return Mr("MuiMenu",e)}Lr("MuiMenu",["root","paper","list"]);const _f=["onEntering"],Ff=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],zf={vertical:"top",horizontal:"right"},Hf={vertical:"top",horizontal:"left"},jf=nu(Of,{shouldForwardProp:e=>Qs(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bf=nu(kf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),$f=nu(wf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Wf=E.forwardRef((function(e,t){var n,r;const o=Js({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,y=kr(o.TransitionProps,_f),x=kr(o,Ff),S=Xs(),C="rtl"===S.direction,w=Yn({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),R=(e=>{const{classes:t}=e;return Dr({root:["root"],paper:["paper"],list:["list"]},Nf,t)})(w),A=i&&!s&&d,D=E.useRef(null);let P=-1;E.Children.map(a,((e,t)=>{E.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===P)&&(P=t))}));const I=null!=(n=b.paper)?n:Bf,T=null!=(r=v.paper)?r:p,M=Sd({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,l]}),L=Sd({elementType:I,externalSlotProps:T,ownerState:w,className:R.paper});return jl.jsx(jf,Yn({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?zf:Hf,slots:{paper:I,root:b.root},slotProps:{root:M,paper:L},open:d,ref:t,transitionDuration:m,TransitionProps:Yn({onEntering:(e,t)=>{D.current&&D.current.adjustStyleForScrollbar(e,S),h&&h(e,t)}},y),ownerState:w},x,{classes:f,children:jl.jsx($f,Yn({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:D,autoFocus:i&&(-1===P||s),autoFocusItem:A,variant:g},u,{className:Ju(R.list,u.className),children:a}))}))}));function Vf(e){return Mr("MuiMenuItem",e)}var Uf=Lr("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Gf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Yf=nu(ld,{shouldForwardProp:e=>Qs(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})=>Yn({},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"}},[`&.${Uf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ps(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Uf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ps(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Uf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ps(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})`:ps(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Uf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Uf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${zp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${zp.inset}`]:{marginLeft:52},[`& .${vf.root}`]:{marginTop:0,marginBottom:0},[`& .${vf.inset}`]:{paddingLeft:36},[`& .${mf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Yn({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${mf.root} svg`]:{fontSize:"1.25rem"}}))));var Kf=E.forwardRef((function(e,t){const n=Js({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=kr(n,Gf),f=E.useContext(sf),m=E.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=E.useRef(null);ur((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Yn({},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 Yn({},a,Dr({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Vf,a))})(n),v=hr(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),jl.jsx(sf.Provider,{value:m,children:jl.jsx(Yf,Yn({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:Ju(b.focusVisible,s),className:Ju(b.root,d)},p,{ownerState:g,classes:b}))})}));function Zf(e){return Mr("MuiNativeSelect",e)}var Xf=Lr("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Jf=["className","disabled","error","IconComponent","inputRef","variant"],Qf=({ownerState:e,theme:t})=>Yn({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Yn({},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"},[`&.${Xf.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}}),em=nu("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Qs,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Xf.multiple}`]:t.multiple}]}})(Qf),tm=({ownerState:e,theme:t})=>Yn({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Xf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),nm=nu("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${rr(n.variant)}`],n.open&&t.iconOpen]}})(tm);var rm,om=E.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=kr(e,Jf),u=Yn({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Dr({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${rr(n)}`,i&&"iconOpen",r&&"disabled"]},Zf,t)})(u);return jl.jsxs(E.Fragment,{children:[jl.jsx(em,Yn({ownerState:u,className:Ju(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:jl.jsx(nm,{as:i,ownerState:u,className:c.icon})]})}));const im=["children","classes","className","label","notched"],am=nu("fieldset",{shouldForwardProp:Qs})({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%"}),lm=nu("legend",{shouldForwardProp:Qs})((({ownerState:e,theme:t})=>Yn({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&&Yn({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 sm=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],um=nu(Zd,{shouldForwardProp:e=>Qs(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Yd})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Yn({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${op.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${op.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${op.focused} .${op.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${op.error} .${op.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${op.disabled} .${op.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Yn({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),cm=nu((function(e){const{className:t,label:n,notched:r}=e,o=kr(e,im),i=null!=n&&""!==n,a=Yn({},e,{notched:r,withLabel:i});return jl.jsx(am,Yn({"aria-hidden":!0,className:t,ownerState:a},o,{children:jl.jsx(lm,{ownerState:a,children:i?jl.jsx("span",{children:n}):rm||(rm=jl.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}})),dm=nu(Xd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Kd})((({theme:e,ownerState:t})=>Yn({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}))),pm=E.forwardRef((function(e,t){var n,r,o,i,a;const l=Js({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=kr(l,sm),b=(e=>{const{classes:t}=e;return Yn({},t,Dr({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},rp,t))})(l),v=jd(),y=zd({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Yn({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),S=null!=(n=null!=(r=m.root)?r:s.Root)?n:um,C=null!=(o=null!=(i=m.input)?i:s.Input)?o:dm;return jl.jsx(ep,Yn({slots:{root:S,input:C},renderSuffix:e=>jl.jsx(cm,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=jl.jsxs(E.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:Yn({},b,{notchedOutline:null})}))}));pm.muiName="Input";var fm=pm;function mm(e){return Mr("MuiSelect",e)}var hm,gm=Lr("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const bm=["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"],vm=nu("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${gm.select}`]:t.select},{[`&.${gm.select}`]:t[n.variant]},{[`&.${gm.error}`]:t.error},{[`&.${gm.multiple}`]:t.multiple}]}})(Qf,{[`&.${gm.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ym=nu("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${rr(n.variant)}`],n.open&&t.iconOpen]}})(tm),xm=nu("input",{shouldForwardProp:e=>eu(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 Sm(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Em(e){return null==e||"string"==typeof e&&!e.trim()}const Cm=E.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:y,onBlur:x,onChange:S,onClose:C,onFocus:w,onOpen:R,open:A,readOnly:D,renderValue:P,SelectDisplayProps:I={},tabIndex:T,value:M,variant:L="standard"}=e,q=kr(e,bm),[k,O]=fr({controlled:M,default:c,name:"Select"}),[N,_]=fr({controlled:A,default:u,name:"Select"}),F=E.useRef(null),z=E.useRef(null),[H,j]=E.useState(null),{current:B}=E.useRef(null!=A),[$,W]=E.useState(),V=hr(t,h),U=E.useCallback((e=>{z.current=e,e&&j(e)}),[]),G=null==H?void 0:H.parentNode;E.useImperativeHandle(V,(()=>({focus:()=>{z.current.focus()},node:F.current,value:k})),[k]),E.useEffect((()=>{u&&N&&H&&!B&&(W(a?null:G.clientWidth),z.current.focus())}),[H,a]),E.useEffect((()=>{i&&z.current.focus()}),[i]),E.useEffect((()=>{if(!g)return;const e=ar(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=E.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),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),S(o,e)}v||Y(!1,t)}},X=null!==H&&N;let J,Q;delete q["aria-invalid"];const ee=[];let te=!1;(Wd({value:k})||p)&&(P?J=P(k):te=!0);const ne=K.map((e=>{if(!E.isValidElement(e))return null;let t;if(v){if(!Array.isArray(k))throw new Error(nr(2));t=k.some((t=>Sm(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Sm(k,e.props.value),t&&te&&(Q=e.props.children);return E.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||(y?`mui-component-select-${y}`:void 0),ae=Yn({},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 Dr({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${rr(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},mm,t)})(ae),se=Yn({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),ue=pr();return jl.jsxs(E.Fragment,{children:[jl.jsx(vm,Yn({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&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:k,name:y}}),x(e))},onFocus:w},I,{ownerState:ae,className:Ju(I.className,le.select,s),id:ie,children:Em(J)?hm||(hm=jl.jsx("span",{className:"notranslate",children:""})):J})),jl.jsx(xm,Yn({"aria-invalid":f,value:Array.isArray(k)?k.join(","):k,name:y,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),S&&S(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},q)),jl.jsx(ym,{as:m,className:le.icon,ownerState:ae}),jl.jsx(Wf,Yn({id:`menu-${y||""}`,anchorEl:G,open:X,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Yn({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Yn({},b.slotProps,{paper:Yn({},se,{style:Yn({minWidth:oe},null!=se?se.style:null)})}),children:ne}))]})}));var wm=Cm;const Rm=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Am=["root"],Dm={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Qs(e)&&"variant"!==e,slot:"Root"},Pm=nu(lf,Dm)(""),Im=nu(fm,Dm)(""),Tm=nu(Kp,Dm)(""),Mm=E.forwardRef((function(e,t){const n=Js({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=lp,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:C,variant:w="outlined"}=n,R=kr(n,Rm),A=b?om:wm,D=zd({props:n,muiFormControl:jd(),states:["variant","error"]}),P=D.variant||w,I=Yn({},n,{variant:P,classes:i}),T=(e=>{const{classes:t}=e;return t})(I),M=kr(T,Am),L=d||{standard:jl.jsx(Pm,{ownerState:I}),outlined:jl.jsx(Im,{label:f,ownerState:I}),filled:jl.jsx(Tm,{ownerState:I})}[P],q=hr(t,L.ref);return jl.jsx(E.Fragment,{children:E.cloneElement(L,Yn({inputComponent:A,inputProps:Yn({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:y,open:x,renderValue:S,SelectDisplayProps:Yn({id:c},C)},p,{classes:p?Xn(M,p.classes):M},d?d.props.inputProps:{})},g&&b&&"outlined"===P?{notched:!0}:{},{ref:q,className:Ju(L.props.className,a,T.root)},!d&&{variant:P},R))})}));Mm.muiName="Select";var Lm=Mm;var qm=E.createContext();function km(e){return Mr("MuiTable",e)}Lr("MuiTable",["root","stickyHeader"]);const Om=["className","component","padding","size","stickyHeader"],Nm=nu("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Yn({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Yn({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),_m="table",Fm=E.forwardRef((function(e,t){const n=Js({props:e,name:"MuiTable"}),{className:r,component:o=_m,padding:i="normal",size:a="medium",stickyHeader:l=!1}=n,s=kr(n,Om),u=Yn({},n,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:n}=e;return Dr({root:["root",n&&"stickyHeader"]},km,t)})(u),d=E.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return jl.jsx(qm.Provider,{value:d,children:jl.jsx(Nm,Yn({as:o,role:o===_m?null:"table",ref:t,className:Ju(c.root,r),ownerState:u},s))})}));var zm=Fm;var Hm=E.createContext();function jm(e){return Mr("MuiTableBody",e)}Lr("MuiTableBody",["root"]);const Bm=["className","component"],$m=nu("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Wm={variant:"body"},Vm="tbody";var Um=E.forwardRef((function(e,t){const n=Js({props:e,name:"MuiTableBody"}),{className:r,component:o=Vm}=n,i=kr(n,Bm),a=Yn({},n,{component:o}),l=(e=>{const{classes:t}=e;return Dr({root:["root"]},jm,t)})(a);return jl.jsx(Hm.Provider,{value:Wm,children:jl.jsx($m,Yn({className:Ju(l.root,r),as:o,ref:t,role:o===Vm?null:"rowgroup",ownerState:a},i))})}));function Gm(e){return Mr("MuiTableCell",e)}var Ym=Lr("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const Km=["align","className","component","padding","scope","size","sortDirection","variant"],Zm=nu("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${rr(n.size)}`],"normal"!==n.padding&&t[`padding${rr(n.padding)}`],"inherit"!==n.align&&t[`align${rr(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Yn({},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?ms(ps(e.palette.divider,1),.88):fs(ps(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",[`&.${Ym.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}))),Xm=E.forwardRef((function(e,t){const n=Js({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=n,d=kr(n,Km),p=E.useContext(qm),f=E.useContext(Hm),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=Yn({},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}),y=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return Dr({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${rr(r)}`,"normal"!==o&&`padding${rr(o)}`,`size${rr(i)}`]},Gm,t)})(v);let x=null;return u&&(x="asc"===u?"ascending":"descending"),jl.jsx(Zm,Yn({as:h,ref:t,className:Ju(y.root,o),"aria-sort":x,scope:g,ownerState:v},d))}));var Jm=Xm;function Qm(e){return Mr("MuiTableContainer",e)}Lr("MuiTableContainer",["root"]);const eh=["className","component"],th=nu("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var nh=E.forwardRef((function(e,t){const n=Js({props:e,name:"MuiTableContainer"}),{className:r,component:o="div"}=n,i=kr(n,eh),a=Yn({},n,{component:o}),l=(e=>{const{classes:t}=e;return Dr({root:["root"]},Qm,t)})(a);return jl.jsx(th,Yn({ref:t,as:o,className:Ju(l.root,r),ownerState:a},i))}));function rh(e){return Mr("MuiTableHead",e)}Lr("MuiTableHead",["root"]);const oh=["className","component"],ih=nu("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),ah={variant:"head"},lh="thead";var sh=E.forwardRef((function(e,t){const n=Js({props:e,name:"MuiTableHead"}),{className:r,component:o=lh}=n,i=kr(n,oh),a=Yn({},n,{component:o}),l=(e=>{const{classes:t}=e;return Dr({root:["root"]},rh,t)})(a);return jl.jsx(Hm.Provider,{value:ah,children:jl.jsx(ih,Yn({as:o,className:Ju(l.root,r),ref:t,role:o===lh?null:"rowgroup",ownerState:a},i))})}));function uh(e){return Mr("MuiTableRow",e)}var ch=Lr("MuiTableRow",["root","selected","hover","head","footer"]);const dh=["className","component","hover","selected"],ph=nu("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,[`&.${ch.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ch.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ps(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}))`:ps(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),fh="tr",mh=E.forwardRef((function(e,t){const n=Js({props:e,name:"MuiTableRow"}),{className:r,component:o=fh,hover:i=!1,selected:a=!1}=n,l=kr(n,dh),s=E.useContext(Hm),u=Yn({},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 Dr({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},uh,t)})(u);return jl.jsx(ph,Yn({as:o,ref:t,className:Ju(c.root,r),role:o===fh?null:"row",ownerState:u},l))}));var hh=mh,gh=(e={})=>C.createElement(Vu,{...e},C.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},C.createElement("rect",{stroke:Pu.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})))),bh=({className:e})=>C.createElement(Vu,{fontSize:"small",className:e},C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},C.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"}))),vh=({className:e})=>C.createElement(Vu,{fontSize:"small",className:e},C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},C.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"}))),yh=({className:e})=>C.createElement(Vu,{fontSize:"small",className:e},C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},C.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 xh={MuiAccordion:{styleOverrides:{root:{backgroundColor:Pu.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Pu.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:C.createElement(Bu,{"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 ${Pu.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Pu.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Pu.MISC_FOCUS_BORDER}`,borderRadius:qu,backgroundColor:Pu.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 ${Pu.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Pu.WHITE,color:Pu.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:qu},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Pu.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Pu.GREYSCALE_0_15,backgroundColor:Pu.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Pu.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Pu.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Pu.GREEN_PALE},"&:active":{backgroundColor:Pu.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Pu.GREEN_PALE,boxShadow:`0 0 0 3px ${ps(Pu.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Pu.BLUE_PALE},"&:active":{backgroundColor:Pu.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Pu.BLUE_PALE,boxShadow:`0 0 0 3px ${ps(Pu.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:qu,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Pu.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Pu.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Pu.GREYSCALE_0_15,backgroundColor:Pu.GREYSCALE_100_60,"&:active":{backgroundColor:Pu.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Pu.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Pu.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Pu.PURPLE,"&.Mui-focusVisible":{borderColor:Pu.PURPLE,boxShadow:`0 0 0 3px ${ps(Pu.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Pu.GREEN,"&.Mui-focusVisible":{borderColor:Pu.GREEN,boxShadow:`0 0 0 3px ${ps(Pu.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Pu.BLUE,"&.Mui-focusVisible":{borderColor:Pu.BLUE,boxShadow:`0 0 0 3px ${ps(Pu.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Pu.ORANGE,"&.Mui-focusVisible":{borderColor:Pu.ORANGE,boxShadow:`0 0 0 3px ${ps(Pu.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Pu.RED,"&.Mui-focusVisible":{borderColor:Pu.RED,boxShadow:`0 0 0 3px ${ps(Pu.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Pu.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Pu.PURPLE_PALE},"&:active":{backgroundColor:Pu.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Pu.PURPLE_PALE,boxShadow:`0 0 0 3px ${ps(Pu.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Pu.GREEN_PALE},"&:active":{backgroundColor:Pu.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Pu.GREEN_PALE,boxShadow:`0 0 0 3px ${ps(Pu.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Pu.BLUE_PALE},"&:active":{backgroundColor:Pu.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Pu.BLUE_PALE,boxShadow:`0 0 0 3px ${ps(Pu.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Pu.ORANGE_PALE},"&:active":{backgroundColor:Pu.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Pu.ORANGE_PALE,boxShadow:`0 0 0 3px ${ps(Pu.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Pu.RED_PALE},"&:active":{backgroundColor:Pu.RED_DARK},"&.Mui-focusVisible":{borderColor:Pu.RED_PALE,boxShadow:`0 0 0 3px ${ps(Pu.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:Pu.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Pu.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:qu,boxShadow:`inset 0 0 0 2px ${Pu.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:C.createElement(Wu,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Iu,borderRadius:qu,color:Pu.TEXT_PRIMARY,backgroundColor:Pu.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Pu.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Pu.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Pu.GREYSCALE_0_05,color:Pu.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Pu.GREEN,borderColor:Pu.GREEN},"&.MuiChip-outlinedInfo":{color:Pu.BLUE,borderColor:Pu.BLUE},"&.MuiChip-outlinedWarning":{color:Pu.ORANGE,borderColor:Pu.ORANGE},"&.MuiChip-outlinedError":{color:Pu.RED,borderColor:Pu.RED}},outlined:{border:`solid 1px ${Pu.GREYSCALE_0_15}`,backgroundColor:Pu.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:qu,boxShadow:"none",backgroundColor:Pu.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Pu.GREEN,borderColor:Pu.GREEN},outlinedSecondary:{color:Pu.BLUE,borderColor:Pu.BLUE},label:{fontFamily:Fu.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:C.createElement(Wu,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:C.createElement(Bu,{"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:qu},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:Tu,height:"32px",'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Pu.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Pu.GREYSCALE_0_10},"&:hover":{backgroundColor:Pu.GREYSCALE_0_03}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:qu,border:`solid 1px ${Pu.GREYSCALE_0_15}`,color:Pu.GREYSCALE_0_60,marginRight:0,width:Lu,height:Lu},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Pu.GREYSCALE_0_15}`},clearIndicator:{borderRadius:qu,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Pu.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Tu}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Iu,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Pu.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Pu.GREYSCALE_25,fontSize:Iu,fontFamily:Fu.FONT_FAMILY,fontWeight:Nu,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Pu.TEXT_PRIMARY},"&.Mui-error":{color:Pu.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Pu.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Ou,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Pu.TEXT_SECONDARY,content:"'(required)'",fontWeight:Ou,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Tu,lineHeight:"16px",backgroundColor:Pu.WHITE,borderRadius:qu,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Pu.GREYSCALE_0_05}`,borderColor:Pu.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Pu.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Pu.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Pu.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Pu.RED}`,boxShadow:`0px 0px 0px 1px ${Pu.RED}, inset 0 2px 0 0 ${Pu.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Pu.GREYSCALE_0_10}`,borderColor:Pu.GREYSCALE_0_10,backgroundColor:Pu.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Pu.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Pu.GREYSCALE_0_15,borderRadius:qu,boxShadow:`inset 0 2px 0 0 ${Pu.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>C.createElement(Bu,{...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:Pu.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Pu.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Pu.GREYSCALE_0_03},"&:active":{backgroundColor:Pu.GREYSCALE_0_10},"&:focus":{backgroundColor:Pu.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Pu.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Pu.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Pu.GREYSCALE_0_30,"&:hover":{backgroundColor:Pu.GREYSCALE_0_0,borderColor:Pu.GREYSCALE_0_15},"& ~svg":{color:Pu.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Pu.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:qu}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Pu.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Pu.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Pu.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Tu,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Iu,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Iu,fontWeight:Nu,color:Pu.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Nu}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Pu.GREYSCALE_0_15}, 0px 0px 0px 1px ${Pu.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:C.createElement(Yu,null),checkedIcon:C.createElement(Ku,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Pu.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Pu.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Pu.GREEN_PALE,boxShadow:`0 0 0 3px ${ps(Pu.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Pu.BLUE_PALE,boxShadow:`0 0 0 3px ${ps(Pu.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Pu.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Pu.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:C.createElement(gh,null),checkedIcon:C.createElement(Uu,null),indeterminateIcon:C.createElement(Gu,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:qu,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Pu.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Pu.GREYSCALE_0_55,color:Pu.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:Pu.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Pu.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Pu.GREYSCALE_0_55,"&:hover":{color:Pu.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDataGrid:{defaultProps:{className:"sprout-data-grid-pro",slots:{columnSortedAscendingIcon:bh,columnSortedDescendingIcon:vh,columnMenuSortAscendingIcon:bh,columnMenuSortDescendingIcon:vh,quickFilterIcon:({className:e})=>C.createElement(yh,{className:`sprout-data-grid-pro-filter-search-icon ${e}`})},slotProps:{toolbar:{className:"sprout-data-grid-pro-toolbar"}}},styleOverrides:{root:{borderColor:Pu.GREYSCALE_85,borderRadius:0,"& .sprout-data-grid-pro-toolbar":{marginTop:0,"& .sprout-data-grid-pro-filter-search-icon":{paddingLeft:"8px",paddingRight:"4px",color:Pu.GREYSCALE_55},"& > div":{"&:after":{borderBottom:`1px solid ${Pu.GREYSCALE_0_15}`},"&:hover::before":{borderBottom:`1px solid ${Pu.GREYSCALE_0_15}`}}}},columnHeaders:{backgroundColor:Pu.GREYSCALE_98},withBorderColor:{borderColor:Pu.GREYSCALE_85,"&.MuiDataGrid-cell--withRightBorder:last-of-type":{borderRightWidth:0},"&.MuiDataGrid-columnHeader--withRightBorder:last-of-type":{borderRightWidth:0}},row:{"&:hover":{backgroundColor:Pu.GREYSCALE_0_03},"&.MuiDataGrid-row.Mui-selected":{backgroundColor:Pu.GREYSCALE_0_05,"&:hover":{backgroundColor:Pu.GREYSCALE_0_03}}},menu:{"& svg.MuiSvgIcon-root":{fontSize:Mu}},filterIcon:{fontSize:Mu},pinnedColumnHeaders:{backgroundColor:Pu.GREYSCALE_98},pinnedColumns:{backgroundColor:Pu.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:Pu.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Pu.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Tu,color:Pu.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Nu},secondary:{fontSize:Iu,color:Pu.GREYSCALE_45,fontWeight:Ou,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Tu,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Pu.GREYSCALE_0_03},"&:active":{backgroundColor:Pu.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Tu,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Pu.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Iu,borderBottom:`solid 1px ${Pu.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Tu,color:Pu.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Pu.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Pu.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Pu.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:Pu.RED}}},"&.Mui-focusVisible":{backgroundColor:Pu.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:Pu.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:Pu.GREEN,height:"24px","&.Mui-disabled":{color:Pu.GREYSCALE_0_15}},rail:{backgroundColor:Pu.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Pu.GREYSCALE_0_05}`,borderRadius:qu,boxShadow:`inset 0px 0px 0px 1px ${Pu.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Pu.GREYSCALE_0_05}`,borderRadius:qu},thumb:{height:"16px",width:"16px",borderRadius:qu,backgroundColor:Pu.WHITE,boxShadow:`0px 1px 2px 0px ${Pu.GREYSCALE_0_15}, 0px 0px 0px 1px ${Pu.GREYSCALE_0_05}`,"&:hover":{borderRadius:qu,boxShadow:`0 2px 4px 0 ${Pu.GREYSCALE_0_30}, 0 0 0 1px ${Pu.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Pu.GREYSCALE_0_15}, 0 0 0 1px ${Pu.GREYSCALE_0_06}, 0 0 0 2px ${Pu.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Pu.GREYSCALE_0_15}, 0 0 0 1px ${Pu.GREYSCALE_0_06}, 0 0 0 2px ${Pu.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Pu.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Pu.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Pu.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Pu.GREYSCALE_0_15},markLabel:{color:Pu.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Pu.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Pu.WHITE,color:Pu.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:Pu.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:Pu.GREEN_PALE,boxShadow:`0 0 0 3px ${ps(Pu.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Pu.BLUE_PALE,boxShadow:`0 0 0 3px ${ps(Pu.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Pu.GREYSCALE_0_15,borderRadius:qu},thumb:{height:"16px",width:"16px",borderRadius:qu,backgroundColor:Pu.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:Tu,fontWeight:Nu,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Pu.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Pu.MISC_FOCUS_BORDER}`,backgroundColor:Pu.GREYSCALE_0_03,borderRadius:qu},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Pu.GREYSCALE_25,"&.Mui-selected":{color:Pu.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Tu,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Pu.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Pu.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Pu.GREYSCALE_85}`,borderRight:`1px solid ${Pu.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Nu,backgroundColor:Pu.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:Pu.GREYSCALE_98,borderBottom:`1px solid ${Pu.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Pu.GREYSCALE_85}`,borderTop:`1px solid ${Pu.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Pu.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Pu.GREYSCALE_0_05,"&:hover":{backgroundColor:Pu.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Pu.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>C.createElement(Zu,{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 ${Pu.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:16,width:32,fontSize:Tu,borderRadius:qu,padding:"7px 16px",border:`1px solid ${Pu.GREYSCALE_0_15}`,backgroundColor:Pu.GREYSCALE_100_60,color:Pu.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Pu.GREYSCALE_0_10,border:`1px solid ${Pu.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Pu.GREYSCALE_0_03,border:`1px solid ${Pu.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Pu.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Pu.MISC_FOCUS_BORDER}`,border:`1px solid ${Pu.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Pu.GREYSCALE_25,backgroundColor:Pu.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Pu.GREYSCALE_0_10,border:`1px solid ${Pu.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Iu,height:24,width:24,padding:7},sizeLarge:{fontSize:Mu,height:40,width:40,lineHeight:20}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Tu,borderRadius:qu}}},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:Pu.GREYSCALE_20},tooltip:{backgroundColor:Pu.GREYSCALE_20,fontSize:Iu,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var Sh=e=>xh;const Eh={mode:"light",primary:{light:Pu.GREEN_PALE,main:Pu.GREEN,dark:Pu.GREEN_DARK,contrastText:Pu.WHITE},secondary:{light:Pu.BLUE_PALE,main:Pu.BLUE,dark:Pu.BLUE_DARK,contrastText:Pu.WHITE},error:{light:Pu.RED_PALE,main:Pu.RED,dark:Pu.RED_DARK,contrastText:Pu.WHITE},warning:{light:Pu.ORANGE_PALE,main:Pu.ORANGE,dark:Pu.ORANGE_DARK,contrastText:Pu.WHITE},success:{light:Pu.GREEN_PALE,main:Pu.GREEN,dark:Pu.GREEN_DARK,contrastText:Pu.WHITE},info:{light:Pu.BLUE_PALE,main:Pu.BLUE,dark:Pu.BLUE_DARK,contrastText:Pu.WHITE},text:{primary:Pu.TEXT_PRIMARY,secondary:Pu.TEXT_SECONDARY,disabled:Pu.GREYSCALE_0_30},action:{hover:Pu.GREYSCALE_0_03,hoverOpacity:.05,selected:Pu.GREYSCALE_0_05},amethyst:{main:Pu.PURPLE,light:Pu.PURPLE_PALE,dark:Pu.PURPLE_DARK,contrastText:Pu.WHITE},background:{paper:Pu.WHITE,default:Pu.GREYSCALE_95},divider:Pu.GREYSCALE_0_15},Ch=e=>({components:Sh(),palette:Eh,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:Tu,fontWeightLight:ku,fontWeightRegular:Ou,fontWeightMedium:Nu,fontWeightBold:_u,htmlFontSize:Tu,fontFamily:Fu.FONT_FAMILY,button:{fontWeight:Nu,fontSize:Tu,textTransform:"none"},body1:{fontSize:Mu,lineHeight:"24px"},body2:{fontSize:Tu,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Lu,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Mu,fontWeight:Nu,lineHeight:"16px"},h6:{fontSize:Tu,fontWeight:Nu,lineHeight:"16px"},caption:{color:Pu.TEXT_SECONDARY},subtitle1:{fontSize:Tu,color:Pu.TEXT_SECONDARY},subtitle2:{fontSize:Iu,color:Pu.TEXT_SECONDARY}},shape:{borderRadius:qu}}),wh={...Du,MISC_FOCUS_BORDER:Pu.MISC_FOCUS_BORDER},Rh=(e="light")=>Ch();var Ah=Rh().palette,Dh={SELECTED:{color:wh.GREYSCALE_100,background:Ah.primary.light,selectedCellClass:fu.SELECTED},POSSIBLE:{color:Ah.text.primary,background:wh.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)"},Ph=4/3,Ih="12px",Th={height:"auto",fontSize:Ih,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"}},Mh=25e4,Lh=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(dn.PixelsMax,Math.max(dn.PixelsMinTable,m)),i-=r[a]};switch(s){case pn.Pixels:m=u||dn.PixelsDefault,h();break;case pn.Percentage:m=(c||dn.PercentageDefault)/100*t,h();break;case pn.FitToContent:m=n(d,f,p,e.isLocked),h();break;case pn.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(dn.PixelsMinTable,a)}))}return r};const qh=Rh().palette,kh={TEXT:qh.text.primary,DISABLED:qh.text.disabled,HOVER:qh.action.hover,WHITE:wh.GREYSCALE_100,BORDER_LIGHT:wh.GREYSCALE_90,BORDER_MEDIUM:wh.GREYSCALE_85,BORDER_HEAVY:wh.GREYSCALE_50,DARK_MODE_TEXT:wh.GREYSCALE_95,DARK_MODE_BORDER:wh.GREYSCALE_95,DARK_MODE_DISABLED:wh.GREYSCALE_70,DARK_MODE_BACKGROUND:wh.GREYSCALE_20},Oh=Math.PI/180,Nh=180/Math.PI,_h=.96422,Fh=1,zh=.82521,Hh=4/29,jh=6/29,Bh=3*jh*jh,$h=jh*jh*jh;function Wh(e){if(e instanceof Vh)return new Vh(e.l,e.a,e.b,e.opacity);if(e instanceof Xh)return Jh(e);e instanceof Se||(e=ye(e));var t,n,r=Kh(e.r),o=Kh(e.g),i=Kh(e.b),a=Uh((.2225045*r+.7168786*o+.0606169*i)/Fh);return r===o&&o===i?t=n=a:(t=Uh((.4360747*r+.3850649*o+.1430804*i)/_h),n=Uh((.0139322*r+.0971045*o+.7141733*i)/zh)),new Vh(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Vh(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Uh(e){return e>$h?Math.pow(e,1/3):e/Bh+Hh}function Gh(e){return e>jh?e*e*e:Bh*(e-Hh)}function Yh(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Kh(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Zh(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Xh)return new Xh(e.h,e.c,e.l,e.opacity);if(e instanceof Vh||(e=Wh(e)),0===e.a&&0===e.b)return new Xh(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Nh;return new Xh(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Xh(e,t,n,null==r?1:r)}function Xh(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Jh(e){if(isNaN(e.h))return new Vh(e.l,0,0,e.opacity);var t=e.h*Oh;return new Vh(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}J(Vh,(function(e,t,n,r){return 1===arguments.length?Wh(e):new Vh(e,t,n,null==r?1:r)}),Q(ee,{brighter(e){return new Vh(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Vh(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 Se(Yh(3.1338561*(t=_h*Gh(t))-1.6168667*(e=Fh*Gh(e))-.4906146*(n=zh*Gh(n))),Yh(-.9787684*t+1.9161415*e+.033454*n),Yh(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),J(Xh,Zh,Q(ee,{brighter(e){return new Xh(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Xh(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Jh(this).rgb()}}));const Qh=(e,t)=>{const n=Zh(e),r=n.l<70,o=100===n.l;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):o?xe(`rgba(0, 0, 0, ${t.opacity})`).toString():r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},eg=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,tg=e=>{const t=eg.exec(e);if(t){const[,e,n,r,o]=t;return xe(+n,+r,+o,+e/255)}return xe(e)},ng=e=>{const t=tg(e);return Number.isNaN(t.r)?null:t.toString()},rg=e=>{if(void 0===e)return;const t=tg(e);return t.opacity=1,t.toString()},og=(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)},ig=e=>{e.stopPropagation(),e.preventDefault()};var ag=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]]},lg=function(e){return e.querySelector("td[tabindex='0'], th[tabindex='0']")},sg=function(e){var t,n,r=e.nextElementSibling;return r?"HR"===r.tagName?sg(r):r:null===(n=null===(t=e.parentElement)||void 0===t?void 0:t.children)||void 0===n?void 0:n[0]},ug=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?ug(i):i},cg=function(e){return!e.enabled||e.active},dg=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(un));null==r||r.setAttribute("tabIndex","0"),null==r||r.focus()}),0)},pg=function(e){var t=e.focusType,n=e.cell;if(n)switch(t){case gu.FOCUS:n.focus(),n.setAttribute("tabIndex","0");break;case gu.FOCUS_BUTTON:n.querySelector(".sn-table-head-label").focus();break;case gu.BLUR:n.blur(),n.setAttribute("tabIndex","-1");break;case gu.ADD_TAB:n.setAttribute("tabIndex","0");break;case gu.REMOVE_TAB:n.setAttribute("tabIndex","-1")}},fg=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 hu.DOWN:a<o-1-r.bottom&&a++;break;case hu.UP:a>r.top&&a--;break;case hu.RIGHT:if(r.top>0)break;l<i-1?l++:a<o-1&&(a++,l=0);break;case hu.LEFT:if(r.top>0)break;l>0?l--:a>0&&(a--,l=i-1)}return[a,l]}(t,n,r,e.allowedRows),l=ag(n,a);return pg({focusType:i,cell:l}),o(a),l},mg=function(e,t){var n=lg(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):Su;n=n||ag(e,Su),pg({cell:n,focusType:gu.FOCUS}),t(r)},hg=function(e,t,n,r){var o;pg({focusType:gu.REMOVE_TAB,cell:lg(t)}),n(e),r.enabled&&!r.active?null===(o=r.focus)||void 0===o||o.call(r):pg({focusType:gu.ADD_TAB,cell:ag(t,e)})},gg=function(e){return e.ctrlKey||e.metaKey},bg=function(e){return e.shiftKey&&gg(e)},vg=function(e){return[hu.LEFT,hu.RIGHT,hu.UP,hu.DOWN].includes(e)},yg=function(e){return e.shiftKey&&vg(e.key)},xg=function(e,t){return void 0===t&&(t=!1),e.key===hu.ESC&&!t||(e.key===hu.LEFT||e.key===hu.RIGHT)&&bg(e)},Sg=function(e,t,n){if(n)return gu.FOCUS;var r=t.key===hu.UP&&1===e[0],o=t.key===hu.LEFT&&1===e[0]&&0===e[1];return r||o?gu.FOCUS_BUTTON:gu.FOCUS},Eg=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=Sg(p,t,c);m===gu.FOCUS&&pg({focusType:gu.REMOVE_TAB,cell:t.target});var h=fg({evt:t,rootElement:n,cellCoord:p,setFocusedCellCoord:a,focusType:m,allowedRows:f});t.key!==hu.UP&&t.key!==hu.DOWN||(t.key===hu.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===hu.UP&&0!==n.pageRowIdx||t.key===hu.DOWN&&!n.isLastRow)&&e&&n.isSelectable}(i,t,r)?o({type:mu.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))},Cg=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))ig(t),og(t.target,o,t.shiftKey);else if(t.shiftKey&&!l){r([0,n.querySelectorAll(".sn-table-head-cell").length-1])}},wg=function(e,t){var n=t.colIdx,r=t.rows,o=t.api,i=fu.INACTIVE;return(null==o?void 0:o.isModal())&&(i=n!==e.selectionColIdx?fu.EXCLUDED:void 0!==r[e.qElemNumber]?fu.SELECTED:fu.POSSIBLE),i},Rg=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"]})},Ag=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=j({},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,j({},e))}(s,i,l),Rg(a,r,s),Object.keys(s).length?(null==n||n.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(s),[i.selectionColIdx]]}),j(j({},e),{rows:s,colIdx:i.selectionColIdx})):(null==n||n.cancel(),j(j({},e),{rows:s,colIdx:-1}))},Dg=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&&yg(c)?(-1===i?null==r||r.begin(["/qHyperCubeDef"]):d=j({},o),d=function(e,t,n,r,o){var i=j({},t);if("key"in r&&yg(r)){i[n.qElemNumber]=n.rowIdx;var a=r.key===hu.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),Rg(u,o,d),j(j({},e),{rows:d,colIdx:null!==(n=null==l?void 0:l.selectionColIdx)&&void 0!==n?n:s.selectionColIdx,isSelectMultiValues:!0})):e},Pg=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]]})),j(j({},e),{isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0})},Ig=function(e,t){var n;switch(t.type){case mu.SELECT:return Ag(e,t.payload);case mu.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),j(j({},e),{firstCell:n,mouseupOutsideCallback:r}))}(e,t.payload);case mu.SELECT_MOUSE_UP:return function(e,t){return Pg(e.isSelectMultiValues||e.firstCell!==t.cell?e:Ag(e,t))}(e,t.payload);case mu.SELECT_MULTI_ADD:return Dg(e,t.payload);case mu.SELECT_MULTI_END:return Pg(e);case mu.RESET:return(null===(n=e.api)||void 0===n?void 0:n.isModal())?e:j(j({},e),{rows:{},colIdx:-1});case mu.CLEAR:return Object.keys(e.rows).length?j(j({},e),{rows:{}}):e;case mu.UPDATE_PAGE_ROWS:return j(j({},e),{pageRows:t.payload.pageRows});default:throw new Error("reducer called with invalid action type")}},Tg=4/3,Mg={hover:{darker:.15,brighter:.3,opacity:.03},active:{darker:.3,brighter:.5,opacity:.05}},Lg=function(e){return parseInt(e,10)*Tg+8+1},qg=function(e){return!!e&&(null!==e.color||e.index>-1)};function kg(e,t,n){void 0===n&&(n={});var r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}var Og=function(e){return qe(e)?kh.WHITE:kh.TEXT},Ng=function(e){var t;return null===(t=e.components)||void 0===t?void 0:t.find((function(e){return"theme"===e.key}))},_g=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=j({fontFamily:o,color:qg(null==n?void 0:n.fontColor)?kg(kh.TEXT,t,null==n?void 0:n.fontColor):i||kh.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:kh.DARK_MODE_BORDER,borderRightColor:kh.DARK_MODE_BORDER,borderLeftColor:kh.DARK_MODE_BORDER,borderTopColor:kh.DARK_MODE_BORDER}:{borderLeftColor:kh.BORDER_MEDIUM,borderRightColor:kh.BORDER_MEDIUM,borderTopColor:kh.BORDER_HEAVY,borderBottomColor:t?kh.BORDER_HEAVY:kh.BORDER_LIGHT}}(t.background.isDark,r));return Object.keys(l).forEach((function(e){var t=e;null==l[t]&&delete l[t]})),l};function Fg(e,t,n,r){var o,i,a,l,s=null===(o=Ng(e))||void 0===o?void 0:o.header,u=_g("header",t,s,n);return u.background=t.background.isTransparent?kh.WHITE:rg(t.background.color),(null==r?void 0:r.isNewHeadCellMenuEnabled)&&(u.hoverBackground=Qh(null!==(i=u.background)&&void 0!==i?i:kh.WHITE,Mg.hover),u.activeBackground=Qh(null!==(a=u.background)&&void 0!==a?a:kh.WHITE,Mg.active)),u.color=null!==(l=u.color)&&void 0!==l?l:qe(u.background)?kh.DARK_MODE_TEXT:kh.TEXT,u}function zg(e,t,n,r){var o,i=null===(o=Ng(e))||void 0===o?void 0:o.content,a=_g("content",t,i);a.background=t.background.color;var l,s=function(e,t,n){return e&&t&&n&&Lg(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=qg(c)||!!p,m=qg(u)||!!d,h=f||m;l=qg(u)?kg(kh.HOVER,t,u):d||(f?"":kh.HOVER);var g=h?kg(Og(l),t,qg(c)?c:p):"";return j(j({},a),{lastRowBottomBorder:s,hoverColors:{background:l,color:g}})}function Hg(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&&ng(e.qText);r&&"none"!==r&&(o[n[t]]=r)})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=Og(o.cellBackgroundColor)),j(j({},e),{color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background})}var jg=function(e,t,n,r,o){var i=S((function(){var i=n.totalsPosition.atTop,a=zg(e,t,n.rows.length,r),l=Fg(e,t,!i,o),s=function(e,t,n){var r,o=null===(r=Ng(e))||void 0===r?void 0:r.content,i=_g("content",t,o),a=Fg(e,t,n),l=a.borderBottomColor,s=a.borderTopColor,u=a.background;return j(j({},i),{borderBottomColor:l,background:u,borderTopColor:s})}(e,t,i);return{body:a,head:l,totals:s}}),[e,t.name(),n,r]);return i},Bg=new Map;var $g,Wg,Vg=L({}),Ug=($g=Vg,Wg=L([function(){},new Set]),Bg.set($g,Wg),function(e){var t=e.children,n=e.value,r=D(n),o=D(new Set);w((function(){r.current=n,o.current.forEach((function(e){e(n)}))}),[n]);var i=q((function(){return r.current}),[r]),a=S((function(){return[i,o.current]}),[i]);return C.createElement($g.Provider,{value:n},C.createElement(Wg.Provider,{value:a},t))}),Gg={rows:[],columns:[],totalsPosition:{}},Yg=function(e){var t=e.app,n=e.children,r=e.tableData,o=void 0===r?Gg: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,E=e.rect,w=e.viewService,R={isNewHeadCellMenuEnabled:e.isNewHeadCellMenuEnabled},A=x(0),D=A[0],P=A[1],I=x(a||xu),T=I[0],L=I[1],q=function(e,t){var n=M(Ig,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[n[0],n[1]]}(o.rows,i),k=q[0],O=q[1],N=x(-1),_=N[0],F=N[1],z=jg(l,d,o,f,R),H=function(e,t,n,r){var o=r.head,i=r.body,a=t.atBottom||t.atTop,l=Xt(j(j({},o),{bold:!0,maxNbrLinesOfText:3})).measureText,s=Xt(j(j({},i),{bold:!0,maxNbrLinesOfText:3})).measureText,u=Xt(j(j({},o),{bold:!1,maxNbrLinesOfText:3})).estimateWidth,c=S((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=x(0),p=d[0],f=d[1],m=x((function(){return Lh(e,n,c)})),h=m[0],g=m[1];U((function(){g(Lh(e,n-p,c))}),[e,n,p,c]);var b=S((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,E.width,z),B=H[0],$=H[1],W=H[2],V=H[3],G=S((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:E,viewService:w}}),[t,i,l,s,u,c,d.name(),p.active,f,m,h,g,z,E,w]);return C.createElement(Ug,{value:{headRowHeight:D,setHeadRowHeight:P,focusedCellCoord:T,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:V,featureFlags:R}},n)};function Kg(e,t){var n=function(e){return Bg.get(e)}(e),r=R(n),o=r[0],i=r[1],a=M((function(e){return e+1}),0)[1],l=D(t),s=D(),u=o();if(void 0===u)throw new Error("You must call useContextSelector inside a valid context.");var c=S((function(){return t(u)}),[u,t]);return w((function(){l.current=t,s.current=c}),[u,c,t]),w((function(){var e=function(e){(l.current&&l.current(e))!==s.current&&a()};return i.add(e),function(){i.delete(e)}}),[i]),c}function Zg(e){var t,n,r=Rh();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={}),Ks(j(j({},r),{direction:e}))}function Xg(){return Xg=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},Xg.apply(this,arguments)}function Jg(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){Qg(e,t,n[t])}))}return e}function Qg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eb(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 tb(e){return"large"===e?"20px":"small"===e?"12px":"inherit"===e?"null":"16px"}var nb=function(e){var t=e.d,n=e.size,r=e.style,o=eb(e,["d","size","style"]);return C.createElement("i",Xg({style:Jg({fontSize:tb(n),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},r)},o),C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},C.createElement("path",{d:t})))};function rb(e){return C.createElement(nb,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 ob={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},ib=(e,t)=>e.some((e=>t[e]>0)),ab=nu(xp,{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"}))),lb=nu(rb,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),sb=nu(Wf)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),ub=nu(Wp)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),cb=nu(Kf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:e.spacing(.25,2),marginBottom:e.spacing(.5)}))),db=nu(Kf,{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")}))),pb=nu("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"}))),fb=nu("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),mb=nu(md)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),hb=nu(bf)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function gb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bb=(e,t)=>C.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){gb(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),C.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})),vb=k(bb);let yb={};const xb=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=x(!1),p=D(null),f=q((e=>{e.stopPropagation(),d(!1)}),[d]);return C.createElement(C.Fragment,null,C.createElement(db,{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),yb={}),null!=a&&a.length&&(d(!0),yb[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&C.createElement(pb,null),C.createElement(fb,null,C.createElement(hb,null,C.createElement(o,null)),C.createElement(mb,{variant:"body2"},r)),null!=a&&a.length?C.createElement(vb,null):null),(null==a?void 0:a.length)&&C.createElement(Eb,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=yb,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},Sb=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&C.createElement(cb,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>C.createElement(xb,{key:e.id,...e,isSubMenu:t,handleHeadCellMenuKeyDown:n})))].filter(Boolean)]})),Eb=({anchorEl:e,open:t,onClose:n,ariaLabel:r,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?C.createElement(sb,{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)=>[Sb({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?C.createElement(ub,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null;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=(e,t)=>C.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),C.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"})),Rb=k(wb);function Ab(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Db=(e,t)=>C.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){Ab(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),C.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"})),Pb=k(Db);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=(e,t)=>C.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),C.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"})),Mb=k(Tb);function Lb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qb=(e,t)=>C.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){Lb(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),C.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"})),kb=k(qb);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=(e,t)=>C.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),C.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"})),_b=k(Nb);function Fb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zb=(e,t)=>C.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){Fb(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),C.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"})),Hb=k(zb);function jb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bb=(e,t)=>C.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){jb(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),C.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"})),$b=k(Bb);function Wb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vb=(e,t)=>C.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){Wb(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),C.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"})),Ub=k(Vb);function Gb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Yb=(e,t)=>C.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){Gb(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),C.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"})),Kb=k(Yb);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 Xb=(e,t)=>C.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),C.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"})),Jb=k(Xb);var Qb;!function(e){e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize"}(Qb||(Qb={}));const ev=({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[Qb.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:Pb,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:Rb,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[Qb.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),l()},icon:Mb,enabled:!0}]}]),n[Qb.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:kb,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:_b,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:$b,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:Ub,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:Kb,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:Hb,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return n[Qb.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:Jb,enabled:!0}]}]),p},tv=({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=Y({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:b}=r,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:S,updateSelectionActionsEnabledStatus:E}=(({headerData:e,app:t})=>{const[n,r]=x(null),[o,i]=x(ob);return w((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:q((()=>i(ob)),[]),updateSelectionActionsEnabledStatus:q((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:ib(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:ib(["qSelected"],n.qStateCounts),canSelectPossible:ib(["qOption"],n.qStateCounts),canSelectAlternative:ib(["qAlternative"],n.qStateCounts),canSelectExcluded:ib(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),R=q((()=>{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]);w((()=>{e||(S(),null!=d&&d.model&&d.model.getLayout().then((e=>{E(e)})).catch((e=>console.error(e))))}),[e,S,E,null==d?void 0:d.model]);const A=q((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?C.createElement(ab,{rightAligned:"right"===h,shouldShowMenuIcon:s},s&&C.createElement(lb,{size:"small",className:ln,"data-testid":ln,"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},C.createElement(rb,null)),C.createElement(Eb,{open:e,anchorEl:n.current,onClose:A,menuGroups:ev({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},nv=nu(xp,{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}`}))),rv=nu(Lm,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),ov=nu(Mp,{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)}))),iv=nu(md)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),av=e=>e.isDark?{background:e.color,borderColor:kh.DARK_MODE_BORDER,color:kh.DARK_MODE_TEXT,disabledColor:kh.DARK_MODE_DISABLED,iconColor:kh.DARK_MODE_TEXT}:{background:e.color,borderColor:kh.BORDER_MEDIUM,color:kh.TEXT,disabledColor:kh.DISABLED},lv=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=S((()=>av(r.background)),[r]);if(!n.active)return null;const a=o?C.createElement(nv,{footerStyle:i},e):null;return t?z.createPortal(e,t):a},sv=L({}),uv=()=>R(sv),cv=({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((()=>av(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=Y({translator:d}),x=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 C.createElement(sv.Provider,{value:x},e)};var dv,pv;!function(e){e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage"}(dv||(dv={})),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"}(pv||(pv={}));const fv=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=uv(),{page:o,rowsPerPage:i}=n;if(t<=pv.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return C.createElement(iv,{variant:"caption"},a)},mv=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=uv(),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 C.createElement(C.Fragment,null,C.createElement(iv,{variant:"caption",id:d},u,":"),C.createElement(rv,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},hv=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=uv();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>pv.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=C.createElement(C.Fragment,null,t.rowsPerPageOptions.map((e=>C.createElement("option",{key:e,value:e},e))));return C.createElement(mv,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},gv=1e3,bv="…",vv=({totalPages:e,page:t})=>{const n=Math.min(e,gv),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-gv):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return C.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(C.createElement("option",{key:"startMoreOptions",value:bv,disabled:!0},bv)),o<e-1&&a.push(C.createElement("option",{key:"endMoreOptions",value:bv,disabled:!0},bv)),C.createElement(C.Fragment,null,a)},yv=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=uv(),{page:o}=e;if(t<=pv.SelectPage)return null;const i=C.createElement(vv,{totalPages:n,page:o});return C.createElement(mv,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})};function xv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Sv=(e,t)=>C.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){xv(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),C.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),Ev=k(Sv);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 wv=(e,t)=>C.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),C.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8l6-6ZM4 2v12H2V2h2Z"})),Rv=k(wv);function Av(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=(e,t)=>C.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){Av(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),C.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5 3.5 2ZM14 2v12h-2V2h2Z"})),Pv=k(Dv),Iv={FirstPage:Rv,PreviousPage:Ev,NextPage:vb,LastPage:Pv,FirstPageRTL:Pv,PreviousPageRTL:vb,NextPageRTL:Ev,LastPageRTL:Rv},Tv=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=uv(),u=Iv[`${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}},Mv=()=>{const{pageInfo:e,width:t}=uv(),n=0===e.page,{IconComponent:r,styledProps:o}=Tv({type:dv.FirstPage,disabledCondition:n,pageNumber:0});return t<=pv.FirstPage?null:C.createElement(ov,{...o},C.createElement(r,{height:an}))},Lv=()=>{const{pageInfo:e}=uv(),t=0===e.page,{IconComponent:n,styledProps:r}=Tv({type:dv.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return C.createElement(ov,{...r},C.createElement(n,{height:an}))},qv=(e,t,n=!1)=>{n&&e.key===sn.TAB&&!e.shiftKey&&(ig(e),og(e.target,t,!1))},kv=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=uv(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=Tv({type:dv.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>pv.FirstPage&&o>pv.LastPage)&&t.enabled?e=>qv(e,t,r):null;return C.createElement(ov,{...l,onKeyDown:s},C.createElement(a,{height:an}))},Ov=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=uv(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=Tv({type:dv.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>qv(e,t,r):null;return o<=pv.LastPage?null:C.createElement(ov,{...l,onKeyDown:s},C.createElement(a,{height:an}))};var Nv=O((e=>C.createElement(cv,{...e},C.createElement(hv,null),C.createElement(yv,null),C.createElement(fv,null),C.createElement(Mv,null),C.createElement(Lv,null),C.createElement(kv,null),C.createElement(Ov,null))));const _v=e=>C.createElement(lv,{...e},C.createElement(Nv,{...e})),Fv=nu(xp,{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)":{[`& .${cn}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, :active":{outline:"none",[`& .${cn}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),zv=nu(xp)({position:"absolute",height:"100%",width:"3px"}),Hv=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,isNewHeadCellMenuEnabled:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u})=>{const c=S((()=>({initWidth:e,columnWidth:e,initX:0})),[e]),d=r||o?dn.PixelsMin:dn.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:pn.Pixels,pixels:c.columnWidth};l(e)}else null==u||u(!1)},g=e=>{const t=e.clientX-c.initX;m(t)},b=e=>{ig(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()},x=!r&&s?e=>{if(e.key===sn.LEFT||e.key===sn.RIGHT){ig(e);const t=c.columnWidth-c.initWidth,n=5,r=e.key===sn.LEFT?t-n:t+n;m(r)}else e.key===sn.SPACE||e.key===sn.ENTER?(ig(e),s(e),h()):e.key===sn.ESC&&(ig(e),s(e),m(c.initWidth))}:void 0;return C.createElement(Fv,{className:un,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:pn.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:x,onBlur:s,"data-testid":un},C.createElement(zv,{className:cn}))};var jv=nu(xp,{shouldForwardProp:function(e){return"background"!==e}})((function(e){return{height:"100%",background:e.background.tableColorFromTheme}})),Bv=nu(xp,{shouldForwardProp:function(e){return"lines"!==e&&"wordBreak"!==e}})((function(e){var t=e.lines,n=e.wordBreak;return j({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"})})),$v=nu(xp)({overflow:"hidden",textOverflow:"ellipsis"});function Wv(e,t){var n=D(!1);w((function(){n.current?e():n.current=!0}),t)}var Vv=function(e,t,n){w((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])},Uv=function(e){var t,n=e.key,r=e.target,o=null!==(t=document.activeElement)&&void 0!==t?t:r;if(n===hu.DOWN||n===hu.UP){var i=function(e){return n===hu.DOWN?sg(e):ug(e)};ig(e);for(var a=i(o);a;){if("true"!==a.ariaDisabled){a.focus();break}a=i(a)}}},Gv=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(!xg(n)){var u=!(null===(t=n.target.closest(".sn-table-cell"))||void 0===t?void 0:t.nextSibling);switch(n.key){case hu.LEFT:case hu.RIGHT:ig(n),n.key===hu.RIGHT&&u&&!s?mg(r,i):(s&&pg({focusType:gu.REMOVE_TAB,cell:n.target}),fg({evt:n,rootElement:r,cellCoord:o,setFocusedCellCoord:i,focusType:s?gu.FOCUS:gu.FOCUS_BUTTON}));break;case hu.DOWN:ig(n),pg({focusType:gu.REMOVE_TAB,cell:lg(r)}),fg({evt:n,rootElement:r,cellCoord:o,setFocusedCellCoord:i,focusType:gu.FOCUS});break;case!s&&hu.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?(ig(e),mg(t,r)):r([n[0],n[1]+1]))}(n,r,o,i,u);break;case hu.C:ig(n),gg(n)&&On(n);break;case s&&hu.ENTER:case s&&hu.SPACE:l&&l()}}}else ig(n)},Yv=function(e){var t=Kg(Vg,(function(e){return e.baseProps})),n=t.layout,r=t.rect,o=t.theme.name(),i=x(0),a=i[0],l=i[1],s=x(0),u=s[0],c=s[1];return N((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=nu("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),Zv=nu(nh,{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"}})),Xv=nu(zm,{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}})),Jv=function(){return C.createElement(C.Fragment,null,C.createElement(Kv,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),C.createElement(Kv,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"}))},Qv=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||Ih,10),u=C.createElement(Bv,{component:"span",className:"sn-table-cell-text",wordBreak:i,lines:l},t);return i?u:C.createElement($v,{minHeight:s*Ph,maxHeight:s*Ph*l},u)},ey=function(e){var t=e.selectionsAPI,n=e.selectionDispatch,r=e.setShouldRefocus,o=e.keyboard,i=e.tableWrapperRef;w((function(){var e=function(){n({type:mu.RESET})},a=function(){n({type:mu.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])},ty=function(e,t,n,r){return{handleMouseDown:function(r){if(null==e||e(r),t.isSelectable){n({type:mu.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:function(){return n({type:mu.SELECT_MULTI_END})}}})}},handleMouseOver:function(e){1===e.buttons&&n({type:mu.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:function(e){0===e.button&&n({type:mu.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:r}})}}},ny=nu(Um,{shouldForwardProp:function(e){return"lastRowBottomBorder"!==e}})((function(e){return{"& tr:last-child":{"& td, th":{borderBottomWidth:e.lastRowBottomBorder}}}})),ry=nu(hh,{shouldForwardProp:function(e){return"hoverColors"!==e&&"hover"!==e}})((function(e){var t=e.hover,n=e.hoverColors;return j({"&&:hover":{background:"none"}},t&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":n}})})),oy=nu(Jm,{shouldForwardProp:function(e){return"cellStyle"!==e}})((function(e){var t=e.cellStyle,n=e.theme;return j(j(j({},Th),t),{padding:n.spacing(.5,1.5)})})),iy=nu(Jm,{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 j(j(j({},Th),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 ay(e){return function(t){var n=t.cell,r=t.styling,o=t.announce,i=t.onMouseDown,a=Kg(Vg,(function(e){return wg(n,e.selectionState)})),l=Kg(Vg,(function(e){return e.selectionDispatch})),s=ty(i,n,l,o),u=s.handleMouseDown,c=s.handleMouseOver,d=s.handleMouseUp,p=function(e,t){var n={};switch(t){case fu.SELECTED:n=Dh.SELECTED;break;case fu.POSSIBLE:n=Dh.POSSIBLE;break;case fu.EXCLUDED:n={background:"".concat(Dh.EXCLUDED_BACKGROUND,", ").concat(e.background),selectedCellClass:fu.EXCLUDED}}return j(j({},e),n)}(r,a);return C.createElement(e,j({},t,{styling:p,onMouseUp:d,onMouseDown:u,onMouseOver:c}))}}function ly(e,t){var n,r=(n=oy,function(e){var t=e.styling,r=t.selectedCellClass,o=B(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 C.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=ay(r)),e&&(r=function(e){return function(t){var n=t.cell,r=t.column,o=t.styling,i=S((function(){return Hg(o,n.qAttrExps,r.stylingIDs)}),[o,n.qAttrExps,r.stylingIDs]);return C.createElement(e,j({},t,{styling:i}))}}(r)),r}var sy=function(){var e=Kg(Vg,(function(e){return e.tableData})),t=e.columns,n=e.totalsPosition.atTop,r=e.rows,o=Kg(Vg,(function(e){return e.baseProps})),i=o.rootElement,a=o.selectionsAPI,l=o.keyboard,s=o.styling,u=o.interactions,c=Kg(Vg,(function(e){return e.headRowHeight})),d=Kg(Vg,(function(e){return e.setFocusedCellCoord})),p=Kg(Vg,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled}));return C.createElement(hh,{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 C.createElement(iy,{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)ig(e);else if(!xg(e))switch(e.key){case hu.LEFT:case hu.RIGHT:case hu.UP:case hu.DOWN:ig(e);var a=Sg(n,e,o);a===gu.FOCUS&&pg({focusType:gu.REMOVE_TAB,cell:e.target}),fg({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:a});break;case hu.TAB:Cg({evt:e,rootElement:t,setFocusedCellCoord:r,isNewHeadCellMenuEnabled:o});break;case hu.C:ig(e),gg(e)&&On(e);break;case hu.SPACE:e.preventDefault()}}(e,i,o,d,p,null==a?void 0:a.isModal())},onMouseDown:function(){hg(o,i,d,l)}},C.createElement(Qv,{fontSize:s.totals.fontSize},e.totalInfo))})))},uy=O(sy),cy=function(e){var t,n,r=e.setShouldRefocus,o=e.tableWrapperRef,i=e.announce,a=Kg(Vg,(function(e){return e.tableData})),l=a.rows,s=a.columns,u=a.paginationNeeded,c=a.totalsPosition,d=Kg(Vg,(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,x=v.lastRowBottomBorder,E=B(v,["hoverColors","lastRowBottomBorder"]),w=Kg(Vg,(function(e){return e.setFocusedCellCoord})),R=Kg(Vg,(function(e){return e.selectionDispatch})),A=Kg(Vg,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled})),D=!!b.active&&!!b.select,P=JSON.stringify(s.map((function(e){return e.stylingIDs}))),I=S((function(){return JSON.parse(P).map((function(e){return ly(!!e.length,D)}))}),[P,D]),T=!!(null===(n=null===(t=Ng(h))||void 0===t?void 0:t.content)||void 0===n?void 0:n.hoverEffect);return ey({keyboard:m,selectionDispatch:R,selectionsAPI:p,setShouldRefocus:r,tableWrapperRef:o}),C.createElement(ny,{lastRowBottomBorder:x},c.atTop?C.createElement(uy,null):void 0,l.map((function(e,t){return C.createElement(ry,{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&&C.createElement(s,{scope:0===r?"row":null,component:0===r?"th":null,cell:l,column:n,key:a,align:l.align,styling:E,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"))ig(t);else{var f=null==d?void 0:d.isModal();if(!xg(t,f))switch(t.key){case hu.UP:case hu.DOWN:case hu.LEFT:case hu.RIGHT:ig(t),Eg({evt:t,rootElement:n,cell:r,selectionDispatch:o,isSelectionsEnabled:i,setFocusedCellCoord:a,announce:l,totalsPosition:c,isSelectionMode:f,isNewHeadCellMenuEnabled:p});break;case hu.SPACE:ig(t),r.isSelectable&&i&&o({type:mu.SELECT,payload:{cell:r,evt:t,announce:l}});break;case hu.ENTER:ig(t),f&&(null==d||d.confirm(),l({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case hu.ESC:ig(t),null==d||d.cancel(),l({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case hu.TAB:Cg({evt:t,rootElement:n,setFocusedCellCoord:a,keyboard:s,isSelectionMode:f,paginationNeeded:u,isNewHeadCellMenuEnabled:p});break;case hu.C:ig(t),gg(t)&&On(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===hu.SHIFT&&t({type:mu.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;hg([l,a],t,n,r)}(l,f,w,m,c)}},C.createElement(Qv,{fontSize:E.fontSize,lines:null===(o=g.viewState)||void 0===o?void 0:o.maxLineCount},l.qText))})))})),c.atBottom?C.createElement(uy,null):void 0)},dy=O(cy),py=function(e){var t=e.column,n=e.isLastColumn,r=e.onColumnResize,o=t.pageColIdx,i=Kg(Vg,(function(e){return e.baseProps})),a=i.applyColumnWidths,l=i.interactions,s=Kg(Vg,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled})),u=Kg(Vg,(function(e){return e.columnWidths})),c=Kg(Vg,(function(e){return e.setColumnWidths}));if(!l.active)return null;return C.createElement(Hv,{columnWidth:u[o],isLastColumn:n,keyValue:"adjuster-".concat(o),isNewHeadCellMenuEnabled:s,updateWidthCallback:function(e){null==r||r();var t=V([],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 fy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const my=(e,t)=>C.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){fy(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),C.createElement("defs",null,C.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"})),C.createElement("use",{xlinkHref:"#lock_svg__lock-a",fillRule:"evenodd"})),hy=k(my);var gy=nu("div")({position:"absolute",left:0,bottom:0}),by=nu(Mp,{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":j(j({},i&&{background:"transparent",boxShadow:"none"}),{"& svg":j({},!i&&{opacity:t?1:.5})}),"& svg":{opacity:t?1:0,fontSize:Ih},"& .Mui-disabled":{color:"inherit"},"& .MuiButton-endIcon, .MuiButton-startIcon":{marginBottom:"2px",visibility:r?"hidden":"visible"}}})),vy=nu("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1}),yy=nu(xp,{shouldForwardProp:function(e){return"isLocked"!==e&&"isNewHeadCellMenuEnabled"!==e}})((function(e){var t=e.theme,n=e.isLocked,r=e.isNewHeadCellMenuEnabled;return j(j({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(yu,"px"):"1fr ".concat(yu,"px")},"&.aligned-center":{gridTemplateColumns:"".concat(yu,"px 2fr ").concat(yu,"px"),"& > div:first-child":{gridColumn:1},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:3}},"&.aligned-right":{gridTemplateColumns:n?"".concat(yu,"px 2fr ").concat(20,"px"):"".concat(yu,"px 1fr"),"& > div:first-child":{gridColumn:n?3:"unset"},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:1}}})})),xy=nu("div")({display:"flex",alignSelf:"flex-end"}),Sy=nu(xp)({display:"flex",alignItems:"center",width:"".concat(20,"px"),height:"".concat(yu,"px"),flexShrink:0,flexDirection:"inherit","&.aligned-right":{justifyContent:"flex-start"},"&.aligned-center, &.aligned-left":{justifyContent:"flex-end"}}),Ey=nu(xp,{shouldForwardProp:function(e){return"isVisible"!==e&&"rightAligned"!==e}})((function(e){var t=e.rightAligned;return j(j({},t?{marginRight:"auto"}:{marginLeft:"auto"}),{height:"".concat(yu,"px"),display:"flex"})})),Cy=nu(Mp,{shouldForwardProp:function(e){return"isVisible"!==e&&"isNewHeadCellMenuEnabled"!==e}})((function(e){var t=e.isVisible,n=e.isNewHeadCellMenuEnabled;return j({opacity:t?1:0},!n&&{"&:focus":{opacity:1}})})),wy=nu(Wp)((function(e){return{"&.MuiDivider-root":{margin:e.theme.spacing(.5)}}})),Ry=nu(Kf)((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"}}})),Ay=nu("div")((function(){return{display:"flex",justifyContent:"space-between",alignItems:"center"}})),Dy=nu(bf)((function(e){return{marginRight:e.theme.spacing(1.5),lineHeight:0}}));nu("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 Iy=(e,t)=>C.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),C.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"})),Ty=k(Iy);var My=new Map,Ly={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},qy=function(e,t){return e.some((function(e){return t[e]>0}))},ky={},Oy=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=x(!1),d=c[0],p=c[1],f=D(null);return C.createElement(C.Fragment,null,C.createElement(Ry,{ref:u?f:null,key:o,"data-testid":"menu-item-".concat(o),className:"sn-table-head-menu-item",onClick:function(e){i&&(i(e),ky={}),(null==u?void 0:u.length)&&(p(!0),ky[a]=p)},disabled:!s,autoFocus:r,onKeyDown:Uv},C.createElement(Ay,null,C.createElement(Dy,null,l),C.createElement(md,{variant:"body2"},a)),(null==u?void 0:u.length)?C.createElement(vb,null):null),(null==u?void 0:u.length)&&C.createElement(_y,{anchorEl:f.current,open:d,onClose:function(){return p(!1)},menuGroups:(t=u,n=ky,t.map((function(e){return e.map((function(e){var t=e.onClick,r=B(e,["onClick"]);return j(j({},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"}}))},Ny=function(e){return e.menuGroup.map((function(e){return C.createElement(Oy,j({key:e.id},e))}))},_y=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?C.createElement(Wf,j({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[Ny({menuGroup:e}),n<t.length-1?C.createElement(wy,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0]}))}({itemGroups:o})):null},Fy=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=Kg(Vg,(function(e){return e.baseProps})),u=s.translator,c=s.embed,d=s.model,p=s.interactions,f=s.layout,m=D(null),h=D(null),g=x(!1),b=g[0],v=g[1],y=x(!1),E=y[0],R=y[1],A=function(e,t){var n=Kg(Vg,(function(e){return e.baseProps})),r=n.app,o=n.layout,i=x(null),a=i[0],l=i[1],s=x(Ly),u=s[0],c=s[1];return w((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:q((function(){return c(Ly)}),[]),updateSelectionActionsEnabledStatus:function(t){var n=t.qHyperCube.qDimensionInfo.find((function(t){return t.qFallbackTitle===e.label}));n&&c({canSelectAll:qy(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:qy(["qSelected"],n.qStateCounts),canSelectPossible:qy(["qOption"],n.qStateCounts),canSelectAlternative:qy(["qAlternative"],n.qStateCounts),canSelectExcluded:qy(["qAlternative","qExcluded"],n.qStateCounts)})}}}(t,b),P=A.fieldInstance,I=A.selectionActionsEnabledStatus,T=A.resetSelectionActionsEnabledStatus,M=A.updateSelectionActionsEnabledStatus,L=Kg(Vg,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled})),k=q((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=S((function(){return V(V([],r&&p.select?[[{id:1,itemTitle:u.get("SNTable.MenuItem.Search"),onClick:function(e){e.stopPropagation(),v(!1),R(!0),k()},icon:C.createElement(Mb,null),enabled:!0}],[{id:1,itemTitle:u.get("SNTable.MenuItem.Selections"),icon:C.createElement(kb,null),enabled:!0,subMenus:[[{id:1,itemTitle:u.get("SNTable.MenuItem.SelectAll"),onClick:function(){return $(void 0,void 0,void 0,(function(){return W(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:C.createElement(_b,null),enabled:I.canSelectAll},{id:2,itemTitle:u.get("SNTable.MenuItem.SelectPossible"),onClick:function(){return $(void 0,void 0,void 0,(function(){return W(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:C.createElement($b,null),enabled:I.canSelectPossible},{id:3,itemTitle:u.get("SNTable.MenuItem.SelectAlternative"),onClick:function(){return $(void 0,void 0,void 0,(function(){return W(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:C.createElement(Ub,null),enabled:I.canSelectAlternative},{id:4,itemTitle:u.get("SNTable.MenuItem.SelectExcluded"),onClick:function(){return $(void 0,void 0,void 0,(function(){return W(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:C.createElement(Kb,null),enabled:I.canSelectExcluded}],[{id:1,itemTitle:u.get("SNTable.MenuItem.ClearSelections"),onClick:function(){return $(void 0,void 0,void 0,(function(){return W(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:C.createElement(Hb,null),enabled:I.canClearSelections}]]}]]:[],!0),[[{id:1,itemTitle:u.get("SNTable.MenuItem.AdjustColumnSize"),onClick:function(e){ig(e),v(!1),dg(m)},icon:C.createElement(Jb,null),enabled:!0}]],!1)}),[r,p.select,u,I,k,P]);w((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?C.createElement(Ey,{rightAligned:"right"===a},C.createElement(Cy,{isVisible:E||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 $(void 0,void 0,void 0,(function(){var e;return W(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:L},C.createElement(Ty,{height:Ih})),C.createElement("div",{ref:h}),C.createElement(_y,{open:b,anchorEl:m.current,onClose:function(){return v(!1)},menuGroups:O,buttonId:_,menuId:F})):null},zy=function(e){var t,n=e.children,r=e.column,o=e.isInteractionEnabled,i=e.open,a=e.setOpen,l=Kg(Vg,(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=Kg(Vg,(function(e){return 0===e.focusedCellCoord[0]})),g=Kg(Vg,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled})),b=D(null),v=D(null),y=function(e){var t=e.sortDirection,n=e.isLocked,r=e.headTextAlign,o="A"===t?C.createElement(Pb,{height:Ih}):C.createElement(Rb,{height:Ih}),i=n?C.createElement(Sy,{className:"aligned-".concat(r)},C.createElement(hy,{height:Ih,"data-testid":"head-cell-lock-icon"})):void 0;return"right"===r?{startIcon:o,lockIcon:i}:{endIcon:o,lockIcon:i}}(r),x=y.startIcon,S=y.endIcon,E=y.lockIcon,w=o&&cg(s)?0:-1,R={A:u.get("SNTable.Accessibility.Ascending"),D:u.get("SNTable.Accessibility.Descending")};return C.createElement(yy,{isLocked:Boolean(E),className:"aligned-".concat(r.headTextAlign),isNewHeadCellMenuEnabled:g},E&&C.createElement(xy,null,E),C.createElement(by,{className:"sn-table-head-label",isActivelySorted:r.isActivelySorted,textAlign:r.headTextAlign,color:"inherit",size:"small",startIcon:x,endIcon:S,tabIndex:g?-1:w,disabled:!o,onClick:g?function(){}:function(){return o&&c(r)},isNewHeadCellMenuEnabled:g},n,h&&C.createElement(vy,{"data-testid":"VHL-for-col-".concat(r.pageColIdx)},"".concat(R[r.sortDirection]," ").concat(u.get("SNTable.SortLabel.PressSpaceToSort")))),o&&(g?C.createElement(C.Fragment,null,C.createElement(tv,{headerData:r,translator:u,anchorRef:b,handleHeadCellMenuKeyDown:Uv,menuAvailabilityFlags:(t={},t[Qb.SORTING]=!0,t[Qb.SEARCHING]=!0,t[Qb.SELECTIONS]=!0,t[Qb.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:dg},shouldShowMenuIcon:!0}),C.createElement(gy,{ref:v}),C.createElement(gy,{ref:b})):C.createElement(Fy,{column:r,tabIndex:w})))},Hy=nu(Jm,{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 j(j(j(j(j({},Th),t),n&&{cursor:"pointer",background:i}),{pointer:"cursor",verticalAlign:"bottom","&&:focus-visible":j(j({},!n&&{boxShadow:"none"}),n&&{background:r.active?o:i})}),n&&{"&&:hover":{background:r.active?o:i}})})),jy=function(e){var t=e.column,n=e.columnIndex,r=e.columnsLength,o=x(!1),i=o[0],a=o[1],l=Kg(Vg,(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=Kg(Vg,(function(e){return e.tableData})).columns,b=Kg(Vg,(function(e){return e.columnWidths})),v=Kg(Vg,(function(e){var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),y=Kg(Vg,(function(e){return e.setFocusedCellCoord})),S=Kg(Vg,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled})),E=Kg(Vg,(function(e){var t=e.focusedCellCoord,r=t[0],o=t[1];return 0===r&&o===n})),w=!!u.active&&!v,R=t.isActivelySorted?bu[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=!!S&&0===t.colIdx&&!d.enabled&&E&&w?0:-1;return C.createElement(Hy,{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 Gv({evt:e,rootElement:c,cellCoord:D,setFocusedCellCoord:y,isInteractionEnabled:w,handleOpenMenu:I,isNewHeadCellMenuEnabled:S})},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):pg({focusType:gu.FOCUS_BUTTON,cell:ag(r,o)}))}({evt:e,rootElement:c,cellCoord:D,setFocusedCellCoord:y,keyboard:d,isInteractionEnabled:w})},isNewHeadCellMenuEnabled:S,background:i?f:m,hoverBackground:h,interactions:u,onClick:I},C.createElement(zy,{column:t,isInteractionEnabled:w,open:i,setOpen:a},C.createElement(Qv,{fontSize:s.head.fontSize},t.label)),C.createElement(py,{column:t,isLastColumn:A}))},By=O((function(){var e,t=Kg(Vg,(function(e){return e.tableData})).columns,n=Kg(Vg,(function(e){return e.baseProps})),r=n.styling,o=n.viewService,i=Kg(Vg,(function(e){return e.setHeadRowHeight})),a=Kg(Vg,(function(e){return e.columnWidths})),l=D(null);return w((function(){l.current&&i(l.current.clientHeight)}),[r.head.fontSize,a,i]),(null===(e=o.viewState)||void 0===e?void 0:e.skipHeader)?null:C.createElement(sh,null,C.createElement(hh,{ref:l,className:"sn-table-row sn-table-head-row"},t.map((function(e,n){return C.createElement(jy,{column:e,columnIndex:n,columnsLength:t.length})}))))})),$y=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=Kg(Vg,(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=Kg(Vg,(function(e){return e.baseProps})),y=v.rootElement,x=v.keyboard,S=v.translator,E=v.theme,R=v.interactions,A=v.styling,P=v.viewService,I=v.layout,T=v.rect,M=Kg(Vg,(function(e){return e.focusedCellCoord})),L=Kg(Vg,(function(e){return e.setFocusedCellCoord})),k=Kg(Vg,(function(e){return e.setYScrollbarWidth})),O=Kg(Vg,(function(e){return e.showRightBorder})),N=Kg(Vg,(function(e){return e.selectionDispatch})),_=Kg(Vg,(function(e){var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),F=Kg(Vg,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled})),z=D(!1),H=D(null),B=D(null),$=Yv(H).yScrollbarWidth,W="".concat(S.get("SNTable.Accessibility.RowsAndColumns",[String(h.length+1),String(g.length)])," ").concat(S.get("SNTable.Accessibility.NavigationInstructions")),V=Un(I,P),G=V&&null!==(t=P.scrollLeft)&&void 0!==t?t:0,Y=V&&null!==(n=P.rowPartialHeight)&&void 0!==n?n:0,K=q((function(){z.current=y.getElementsByTagName("table")[0].contains(document.activeElement)}),[y]),Z=q((function(e){o(j(j({},r),{page:e})),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),f.toString()]],politeness:"assertive"})}),[r,o,f,l]),X=q((function(e){o(j(j({},r),{page:0,rowsPerPage:e})),l({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[l,r,o]);return function(e,t,n){w((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,x),Vv(H,i,P),function(){var e=Kg(Vg,(function(e){return e.baseProps})),t=e.rootElement,n=e.keyboard,r=Kg(Vg,(function(e){return e.focusedCellCoord})),o=Kg(Vg,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled}));U((function(){var e=o||r[0]>0?gu.FOCUS:gu.FOCUS_BUTTON;e=n.active?e:gu.BLUR;var i=n.active?ag(t,r):lg(t);pg({focusType:e,cell:i})}),[n.active,t,o])}(),w((function(){var e=H.current;e&&(e.scrollLeft=G,e.scrollTop=Y)}),[r,p,G,Y]),Wv((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;pg({focusType:gu.REMOVE_TAB,cell:lg(r)});var d=[u.atTop?2:1,n[1]],p=i?d:c?xu:Su;if(cg(l)){var f=o.current?gu.FOCUS:gu.ADD_TAB;o.current=!1;var m=ag(r,p);if(pg({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:L,isSelectionMode:_,keyboard:x,announce:l,totalsPosition:b,isNewHeadCellMenuEnabled:F})}),[h.length,p,d,s,F]),Wv((function(){k($)}),[$]),Wv((function(){N({type:mu.UPDATE_PAGE_ROWS,payload:{pageRows:h}})}),[h]),C.createElement(jv,{ref:B,background:E.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(bg(n)){ig(n);var c=Math.ceil(r/i)-1;n.key===hu.RIGHT&&o<c?(l(),a(o+1)):n.key===hu.LEFT&&o>0&&(l(),a(o-1))}else n.key===hu.ESC&&s.enabled&&!u?(ig(n),null===(t=s.blur)||void 0===t||t.call(s,!0)):vg(n.key)&&ig(n)}({evt:e,totalRowCount:p,page:s,rowsPerPage:u,handleChangePage:Z,setShouldRefocus:K,keyboard:x,isSelectionMode:_})},"data-testid":"sn-table"},C.createElement(Jv,null),C.createElement(Zv,{ref:H,className:"sn-table-container",fullHeight:a||!R.active||!m,interactions:R,tabIndex:-1,role:"application","data-testid":"table-container"},C.createElement(Xv,{styling:A,showRightBorder:O,stickyHeader:!0,"aria-label":W},C.createElement(By,null),C.createElement(dy,j({},e,{setShouldRefocus:K,tableWrapperRef:B})))),C.createElement(_v,{footerContainer:a,pageInfo:r,paginationNeeded:m,theme:E,totalRowCount:p,totalColumnCount:d,totalPages:f,keyboard:x,translator:S,interactions:R,rect:T,layout:I,handleChangePage:Z,handleChangeRowsPerPage:X,isSelectionMode:_}))},Wy=O($y),Vy=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Uy(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||Vy(r)&&Vy(o)))return!1;var r,o;return!0}function Gy(e,t){var n;void 0===t&&(t=Uy);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 Yy="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Ky(e){cancelAnimationFrame(e.id)}function Zy(e,t){var n=Yy();var r={id:requestAnimationFrame((function o(){Yy()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var Xy=-1;function Jy(e){if(void 0===e&&(e=!1),-1===Xy||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Xy=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Xy}var Qy=null;function ex(e){if(void 0===e&&(e=!1),null===Qy||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?Qy="positive-descending":(t.scrollLeft=1,Qy=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Qy}return Qy}var tx=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function nx(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,Au(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Au(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=Gy((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=Gy((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=Gy((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(ex()){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&&Ky(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Zy(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Ru(t,e),t.getDerivedStateFromProps=function(e,t){return rx(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=Jy();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(ex()){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&&Ky(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?tx: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(),R=w[0],D=w[1],P=[];if(r>0&&g)for(var I=R;I<=D;I++)for(var T=E;T<=C;T++)P.push(A(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 A(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Yn({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},A(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}(_),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var rx=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},ox=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},ix=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},ax=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]},lx=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?sx(e,t,n,i,0,r):ux(e,t,n,Math.max(0,i),r)},sx=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=ax(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},ux=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&ax(e,t,r,n).offset<o;)r+=a,a*=2;return sx(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},cx=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=ax(e,t,n,i),u="column"===e?ix(t,i):ox(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}},dx=nx({getColumnOffset:function(e,t,n){return ax("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return lx("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=ax("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=ax("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:ox,getEstimatedTotalWidth:ix,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return cx("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return cx("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return ax("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return lx("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=ax("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=ax("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}}),px=function(e,t){return e};function fx(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,Au(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Au(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Gy((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=Gy((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=Gy((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(ex()){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&&Ky(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Zy(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Ru(t,e),t.getDerivedStateFromProps=function(e,t){return mx(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?Jy():0:s.scrollHeight>s.clientHeight?Jy():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(ex()){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&&Ky(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?px: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],R=[];if(u>0)for(var D=C;D<=w;D++)R.push(A(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 A(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:Yn({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},A(l||s||"div",{children:R,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}(_),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var mx=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},hx=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]},gx=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=hx(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},bx=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&hx(e,n,t).offset<r;)n+=i,i*=2;return gx(e,t,Math.min(n,o-1),Math.floor(n/2),r)},vx=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},yx=fx({getItemOffset:function(e,t,n){return hx(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:vx,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=hx(e,t,o),p=vx(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?gx(e,t,o,0,n):bx(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=hx(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=hx(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 xx(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 Sx=["style"],Ex=["style"];function Cx(e,t){var n=e.style,r=kr(e,Sx),o=t.style,i=kr(t,Ex);return!xx(n,o)&&!xx(r,i)}var wx=function(e){var t=e.style;return C.createElement("div",{className:"sn-table-cell",style:j(j({},t),{borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"})})},Rx=C.memo(wx,Cx),Ax=function(){},Dx=function(e){return e.preventDefault()};var Px,Ix=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=Kg(Vg,(function(e){return e.hoverIndex===r})),p=Kg(Vg,(function(e){return e.setHoverIndex})),f=Kg(Vg,(function(e){return e.baseProps})).interactions,m=Kg(Vg,(function(e){return e.showRightBorder})),h=null===(t=a[r])||void 0===t?void 0:t["col-".concat(n)],g=function(e){var t=Kg(Vg,(function(e){return e.baseProps})).interactions,n=Kg(Vg,(function(e){return e.selectionDispatch})),r="object"==typeof e,o=Kg(Vg,(function(t){return r?wg(e,t.selectionState):fu.INACTIVE})),i=t.active&&t.select;if(r&&i){var a=ty(Dx,e,n,Ax);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,x=g.cellSelectionState;if("object"==typeof h){var S=function(e,t,n,r,o){var i=o.hoverColors;o.lastRowBottomBorder;var a=B(o,["hoverColors","lastRowBottomBorder"]),l=t.stylingIDs.length?Hg(a,e.qAttrExps,t.stylingIDs):a;return r===fu.SELECTED?j(j({},l),Dh.SELECTED):r===fu.EXCLUDED?j(j({},l),{color:n?null==i?void 0:i.color:l.color,background:"".concat(Dh.EXCLUDED_BACKGROUND,", ").concat(n?null==i?void 0:i.background:l.background)}):n?j(j({},l),i):l}(h,l[n],u&&d,x,s),E={rowindex:r,columnindex:n};return C.createElement("div",j({className:"sn-table-cell ".concat(x),style:j(j(j({},o),S),{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},E),C.createElement(Qv,{wordBreak:!h.isNumeric,lines:c},h.qText))}return C.createElement(Rx,{style:j(j(j({},o),s),{borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"})})},Tx=C.memo(Ix,Cx),Mx=function(e){var t=D(e);return t.current=e,t},Lx=function(e){var t=e.qLeft,n=e.qTop,r=e.qWidth,o=e.qHeight;return"".concat(t,"-").concat(n,"-").concat(r,"-").concat(o)},qx=function(e,t){var n=D(new Set),r=D(new Set),o=D(new Set),i=Mx(e),a=Mx(t),l=S((function(){return{enqueue:function(e){var t=Lx(e);o.current.has(t)||(n.current.add(e),o.current.add(t),1===n.current.size&&setTimeout((function(){return $(void 0,void 0,void 0,(function(){var e,t,l;return W(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(j({},e)):n.qHeight+=e.qHeight}else t.push(j({},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(Lx(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},kx=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},Ox=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)])}))},Nx=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=Fn(e);d[h]=j(j({},e),{align:$n(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}))}))},_x=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=D([]),f=Mx(c),m=q((function(e,n){var r=Array.isArray(n)?n.slice(0,a):function(e){return Array(e).fill(void 0)}(a);return Nx(e,i,r,u,t,f.current),p.current=r,r}),[a,i,u,t,f]),h=x((function(){return m(null!=o?o:[])})),g=h[0],b=h[1];U((function(){b(m(null!=o?o:[]))}),[o]);var v=qx((function(e){return n.getHyperCubeData("/qHyperCubeDef",e)}),(function(e){return b((function(t){return m(e,t)}))})),y=q((function(e,t,n,r){for(var o=e;o<e+n;o++)if(Ox(p.current,o,t,r)){var i={qLeft:o,qTop:t,qHeight:r,qWidth:1};v.enqueue(i)}}),[p,v]),S=q((function(e,t,n,r){for(var o=t;o<t+r;o++){var a=Math.max(0,o-i.page*i.rowsPerPage);if(kx(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 w((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 S(a,u,f,m),function(){v.clear()}}),[t,l,s,i,v,S,d,E]),{rowsInPage:g,loadRows:S,loadColumns:y}},Fx=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=D({lastScrollToRatio:0,resetAfterRowIndex:0,heights:[],totalHeight:0,count:0,measuredCells:new Map}),b=Kg(Vg,(function(e){return e.baseProps})),v=b.layout,y=b.rect,S=x(o||24),E=S[0],C=S[1],w=Xt(j(j({},n),{bold:c})),R=w.measureText,A=w.estimateLineCount,P=parseInt(null!==(t=n.fontSize)&&void 0!==t?t:Th.fontSize,10)*Tg,I=8e6/a-8-1,T=Math.max(0,Math.min(h,Math.round(I/P))),M=q((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,A({text:e.trim(),maxWidth:o,isNumeric:n}));return Math.max(1,i)*P+8+1}),[r,P,T,u,A]),L=q((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=q((function(e){var t;return null!==(t=g.current.heights[e])&&void 0!==t?t:E}),[g,E]),O=q((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(L),_=q((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]);U((function(){O()}),[v,i]),U((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:L,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&&L(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"}(Px||(Px={}));var zx={enabled:!1},Hx=function(){},jx={current:null};var Bx=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=S((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}},$x=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)},Wx={overflow:"hidden",willChange:"auto"},Vx=k((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=Kg(Vg,(function(e){return e.baseProps})),m=f.layout,h=f.model,g=f.theme,b=f.viewService,v=Kg(Vg,(function(e){return e.columnWidths})),y=Kg(Vg,(function(e){return e.initialDataPages})),x=null===(n=b.viewState)||void 0===n?void 0:n.maxLineCount,E=D(null),R=D({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),A=!!(null===(o=null===(r=Ng(m))||void 0===r?void 0:r.content)||void 0===o?void 0:o.hoverEffect),P=function(){var e=D(0),t=D(0),n=D(Px.None),r=D(Px.None);return{scrollHandler:q((function(o){var i=o.scrollTop,a=o.scrollLeft;i>t.current?n.current=Px.Down:i<t.current?n.current=Px.Up:n.current=Px.None,a>e.current?r.current=Px.Right:a<e.current?r.current=Px.Left:r.current=Px.None,t.current=i,e.current=a}),[t,e,n,r]),verticalScrollDirection:n,horizontalScrollDirection:r}}(),I=P.scrollHandler,T=P.verticalScrollDirection,M=P.horizontalScrollDirection,L=Bx(m,s,i,v,c),k=L.rowCount,O=L.visibleRowCount,_=L.visibleColumnCount,z=Fx({pageInfo:s,style:u,rowHeight:c,columnWidths:v,gridRef:E,rowCount:k,gridState:R,isSnapshot:!!m.snapshotData,viewService:b,maxNbrLines:x}),H=z.setCellSize,j=z.getRowHeight,B=z.rowMeta,$=z.estimatedRowHeight,W=z.maxLineCount,V=z.resizeVisibleCells,G=_x({layout:m,model:h,theme:g,initialDataPages:y,pageInfo:s,rowCount:k,visibleRowCount:O,visibleColumnCount:_,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=q((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===Px.Down)n(v,y,x,p+(E=S+25)>a?a-p:E);else if(o.current===Px.Up){var E=S+25,C=l.page*l.rowsPerPage,w=Math.max(C,y-25);n(v,w,x,E)}if(i.current===Px.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===Px.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=S((function(){return{rowsInPage:Y,columns:a,bodyStyle:u,isHoverEnabled:A,maxLineCount:W}}),[Y,a,u,A,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 N((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]),N((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=E.current)||void 0===n||n.scrollToItem({rowIndex:k-1,align:"start"}))})),function(e){var t=Kg(Vg,(function(e){return e.baseProps})).selectionsAPI,n=Kg(Vg,(function(e){return e.selectionDispatch}));w((function(){n({type:mu.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[n,e]),ey({selectionsAPI:t,selectionDispatch:n,setShouldRefocus:Hx,keyboard:zx,tableWrapperRef:jx})}(Y),U((function(){var e;null===(e=E.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[m,s,g.name(),i.width,v]),F(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=E.current)||void 0===o||o.scrollToItem({rowIndex:k-1,align:"start"}),null===(i=E.current)||void 0===i||i.scrollTo({scrollLeft:t})):null===(a=E.current)||void 0===a||a.scrollTo({scrollTop:u,scrollLeft:t})},resizeCells:function(){var e;null===(e=E.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),V(Y)}}}),[l,X,B,k,V,Y]),C.createElement(dx,{"data-key":"body",ref:E,innerRef:l,style:Wx,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:$x,className:"sn-table-body"},Tx)})),Ux=O(Vx),Gx=function(e){var t=e.width,n=e.height,r=e.children;return C.createElement("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:n}},r)},Yx=nu("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 j(j(j({},i),t&&{background:o}),{"&&:hover":j({},t&&{background:n.active?r:o})})})),Kx=function(e){var t=e.index,n=e.style,r=e.data,o=x(!1),i=o[0],a=o[1],l=r.columns,s=B(r.headerStyle,[]),u=r.columResizeHandler,c=Kg(Vg,(function(e){return e.baseProps})),d=c.interactions,p=c.styling.head,f=p.activeBackground,m=p.background,h=p.hoverBackground,g=Kg(Vg,(function(e){var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),b=Kg(Vg,(function(e){return e.showRightBorder})),v=Kg(Vg,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled})),y=l[t],S=l.length-1===t,E=!!d.active&&!g,w="right"===y.headTextAlign?"row-reverse":"row";return C.createElement(Yx,{className:"sn-table-cell",title:d.passive?y.label:void 0,onClick:function(){return a(!0)},applicableStyle:s,style:j(j(j({},n),v?{cursor:"pointer"}:{cursor:"default"}),{display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:S&&!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},C.createElement(zy,{column:y,isInteractionEnabled:E,open:i,setOpen:a},C.createElement(Qv,{wordBreak:!0,lines:3},y.label)),C.createElement(py,{column:y,isLastColumn:S,onColumnResize:u}))},Zx=function(e,t,n,r,o){N((function(){var t;null===(t=null==e?void 0:e.current)||void 0===t||t.resetAfterIndex(0,!0)}),[t,n,e,r,o])},Xx={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},Jx=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=Kg(Vg,(function(e){return e.baseProps})),u=s.layout,c=s.theme,d=Kg(Vg,(function(e){return e.columnWidths}));return Zx(n,u,o,d,c.name()),C.createElement(yx,{ref:n,layout:"horizontal",style:Xx,itemCount:u.qHyperCube.qSize.qcx,itemSize:function(e){return d[e]},height:a,width:t.width,itemData:{columns:r,headerStyle:i,columResizeHandler:l}},Kx)},Qx=O(Jx),eS=C.forwardRef((function(e,t){var n=e.children,r=e.width,o=e.height,i=e.onScroll,a=Kg(Vg,(function(e){return e.baseProps})).interactions;return C.createElement("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:r,height:o},onScroll:i},n)})),tS=function(e){var t=e.children,n=e.rect;return C.createElement("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:n.width,height:n.height}},t)},nS=function(e){var t=e.index,n=e.style,r=e.data,o=Kg(Vg,(function(e){return e.baseProps})),i=o.layout,a=o.interactions,l=Kg(Vg,(function(e){return e.showRightBorder})),s=r.totalsStyle;s.hoverColors;var u=B(s,["hoverColors"]),c=r.columns,d=r.totals,p=c[t].totalInfo,f=c[t].totalsTextAlign,m=i.qHyperCube.qSize.qcx-1===t;return C.createElement("div",{className:"sn-table-cell",title:a.passive?p:void 0,style:j(j(j({},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"})},C.createElement(Qv,{wordBreak:!_n(p),lines:3},p))},rS=function(e){var t=e.rect,n=e.forwardRef,r=e.pageInfo,o=e.totals,i=e.rowHeight,a=e.columns,l=Kg(Vg,(function(e){return e.baseProps})),s=l.layout,u=l.styling,c=l.theme,d=Kg(Vg,(function(e){return e.columnWidths}));return Zx(n,s,r,d,c.name()),C.createElement(yx,{ref:n,layout:"horizontal",style:Xx,itemCount:s.qHyperCube.qSize.qcx,itemSize:function(e){return d[e]},height:i,width:t.width,itemData:{totalsStyle:u.totals,columns:a,totals:o}},nS)},oS=O(rS),iS=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=Kg(Vg,(function(e){return e.baseProps})).styling,c=Fx({style:u.head,columnWidths:n,lineRef:o,rowCount:1,pageInfo:r,boldText:!0,columns:t,isSnapshot:l,viewService:s}),d=Fx({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,_n(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?Th.fontSize:t;return Math.max(24,Lg(n))}(u.body);return{headerRowHeight:p,totalsRowHeight:f,bodyRowHeight:m,headerAndTotalsHeight:a.atTop||a.atBottom?p+f:p,resizeAllHeaderCells:c.resizeAllCells,resizeAllTotalCells:d.resizeAllCells}},aS=function(e){var t,n=e.pageInfo,r=Kg(Vg,(function(e){return e.tableData})),o=r.totalsPosition,i=r.columns,a=r.paginationNeeded,l=Kg(Vg,(function(e){return e.baseProps})),s=l.layout,u=l.theme,c=l.styling,d=l.rect,p=l.viewService,f=Kg(Vg,(function(e){return e.columnWidths})),m=Kg(Vg,(function(e){return e.setYScrollbarWidth})),h=D(null),g=D(null),b=D(null),v=D(null),y=D(),E=Yv(h),w=E.xScrollbarWidth,R=E.yScrollbarWidth,A=S((function(){var e;return j(j({},c.body),{background:null!==(e=u.background.color)&&void 0!==e?e:"transparent"})}),[u.background.color,c]),P=iS({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,L=P.headerAndTotalsHeight,k=P.resizeAllHeaderCells,O=P.resizeAllTotalCells,_=S((function(){return function(e,t){var n=e.height-(t?41:0);return{width:e.width,height:n}}(d,a)}),[d,a]),F=S((function(){return function(e,t,n){return{width:e.width-n,height:e.height-t}}(_,w,R)}),[_,w,R]),z=Bx(s,n,F,f,M).rowCount,H=x(z*M+L),B=H[0],$=H[1],W=f.reduce((function(e,t){return e+t}),0),V=function(e,t,n,r){return q((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=q((function(e,t){void 0===t&&(t=!1);var n=e+L;(B<F.height&&n>F.height||t)&&$(n)}),[B,L,F.height]),G=q((function(){var e;h.current&&(h.current.scrollTop=0),null===(e=v.current)||void 0===e||e.resizeCells(),k(),O()}),[h,k,O]);N((function(){h.current&&(h.current.scrollLeft=0,h.current.scrollTop=0)}),[i.length]);var Y=u.name();N((function(){h.current&&(h.current.scrollTop=0)}),[n,z,Y]),Wv((function(){m(R)}),[R]);var K=C.createElement(oS,{rect:F,pageInfo:n,columns:i,forwardRef:b,totals:o,rowHeight:T});return C.createElement(eS,{ref:h,width:_.width,height:_.height,onScroll:V},C.createElement(Gx,{width:W,height:B},C.createElement(tS,{rect:F},(null===(t=p.viewState)||void 0===t?void 0:t.skipHeader)?null:C.createElement(Qx,{headerStyle:c.head,rect:F,pageInfo:n,columns:i,forwardRef:g,rowHeight:I,columResizeHandler:G}),o.atTop?K:null,C.createElement(Ux,{ref:v,innerForwardRef:y,bodyStyle:A,rect:F,pageInfo:n,columns:i,rowHeight:M,headerAndTotalsHeight:L,syncHeight:U}),o.atBottom?K:null)))},lS=O(aS),sS=function(){var e=Kg(Vg,(function(e){return e.baseProps})),t=e.theme,n=e.keyboard,r=e.translator,o=e.interactions,i=e.rect,a=e.layout,l=Kg(Vg,(function(e){return e.tableData})),s=l.paginationNeeded,u=l.totalRowCount,c=l.totalColumnCount,d=l.totalPages,p=Kg(Vg,(function(e){return e.pageInfo})),f=Kg(Vg,(function(e){return e.setPage}));return C.createElement(jv,{"data-testid":"sn-table",background:t.background,dir:"ltr"},C.createElement(lS,{pageInfo:p}),C.createElement(_v,{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}))},uS=O(sS);var cS,dS={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"}(cS||(cS={}));var pS=function(e,t){return n((function(){return function(e){if(e&&e.get&&e.add){var t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(dS).forEach((function(t){e.add(dS[t])}))}}(t),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===cS.FIRST?(o=p,r=cS.SECOND):(o=d,r=cS.FIRST),o.innerHTML=o.innerHTML.endsWith(" ")?c:"".concat(c," "),o.setAttribute("aria-atomic",l.toString()),o.setAttribute("aria-live",u)}}(e,t)}}),[e,t.language()])},fS={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},mS=function(e){var t=e.isNewHeadCellMenuEnabled,n=e.app,r=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,x=e.isFontLoaded,S=e.viewService,E=o(),w=E.direction,R=E.footerContainer,A=Un(u,S),D=Gn(u,S),P=pS(s,d),I=A?{page:S.page||fS.page,rowsPerPage:S.rowsPerPage||fS.rowsPerPage,rowsPerPageOptions:fS.rowsPerPageOptions}:fS,T=i(I),M=T[0],L=T[1],q=a((function(){return $(void 0,void 0,void 0,(function(){return W(this,(function(e){return D?[2,Vn(r,u,M,L,S)]:[2,null]}))}))}),[u,M,r,c,D])[0];l((function(){!!(D&&v&&r&&(u.snapshotData||n)&&u&&q&&m&&f&&p&&x&&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=B(e,["app","model","direction","selectionsAPI","layout","translator","interactions","theme","keyboard","rootElement","embed","changeSortOrder","applyColumnWidths","tableData","rect","viewService"]),y=Zg(o);null==t||t.render(C.createElement(Xi,{stylisPlugins:"rtl"===o?[vu]:void 0},C.createElement(ou,{theme:y},C.createElement(Yg,{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},C.createElement(Wy,j({},v,{direction:o}))))))}({app:n,model:r,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:S,isNewHeadCellMenuEnabled:t},v)}),[n,r,v,q,c,w,f.name(),h.active,P,m,y,D,u,p,b,s,M,L,d,g,R,x,t])},hS=function(e){var t=n((function(){return Z(e)}),[e]);return l((function(){return function(){return t.unmount()}}),[t]),t},gS=function(e,t,r){return n((function(){return function(e,t,n){if(t)return function(r,o){return $(void 0,void 0,void 0,(function(){var i,a,l,s,u,c,d,p,f,m;return W(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,t,r)}),[e.qDimensionInfo.length,t,r])};var bS=function(e,t,n){return $(void 0,void 0,void 0,(function(){var r,o;return W(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(Mh,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}}]}}))}))},vS=function(e){var t=e.app,r=e.layout,o=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,x=e.viewService,S=e.isNewHeadCellMenuEnabled,E=!Gn(r,x),w=n((function(){return function(e,t,n){var r=jn(e,n),o=Wn(e),i=e.qHyperCube.qSize.qcy,a=Math.min(Mh,i),l=i>Mh&&!!t.active;return{totalsPosition:r,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:l}}(r,p,x)}),[r,p,x]),R=function(e,t){var r=i(0),o=r[0],a=r[1],l=Math.min(Mh,e.qHyperCube.qSize.qcy),s=n((function(){return{page:o,rowsPerPage:l,rowsPerPageOptions:[]}}),[l,o]);if(t){var u=Math.floor(e.qHyperCube.qSize.qcy/Mh);u<o&&a(u)}return{pageInfo:s,setPage:a}}(r,E),A=R.pageInfo,D=R.setPage,P=function(e){var t=e.model,n=e.layout,r=e.shouldRender,o=e.page,i=a((function(){return $(void 0,void 0,void 0,(function(){return W(this,(function(e){return r&&t?[2,bS(t,n,o)]:[2,void 0]}))}))}),[t,n,o])[0],l=(null==i?void 0:i.derivedFrom.layout)!==n||(null==i?void 0:i.derivedFrom.page)!==o;return{initialDataPages:null==i?void 0:i.initialDataPages,isLoading:l}}({model:o,layout:r,page:A.page,shouldRender:E}),I=P.initialDataPages,T=P.isLoading;l((function(){E&&o&&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,x=e.isNewHeadCellMenuEnabled,S=Zg("ltr");t.render(C.createElement(C.StrictMode,null,C.createElement(ou,{theme:S},C.createElement(Yg,{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:x},C.createElement(uS,null)))))}({app:t,layout:r,model:o,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:x,isNewHeadCellMenuEnabled:S},b)}),[t,r,o,s,u.name(),c.active,d,p,f,m,E,h,g,b,w,v,D,A,T,I,y,S])},yS=function(e,t){var n=Fg(t,e,!1),r=n.fontSize,o=n.fontFamily,i=zg(t,e),l=i.fontSize,s=i.fontFamily,u=a((function(){return $(void 0,void 0,void 0,(function(){return W(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};var xS={properties:{initial:{version:JSON.stringify("2.9.3"),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:Ln,exportProperties:Tn};function SS(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 ES=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]}},CS=function(e,t,n){if(!e)return!1;var r=e.y+e.height/2;return r>=t&&r<=n};var wS=function(e,t,n,r){var o;if(e<0)return 0;var i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||fS.rowsPerPage,l=(null===(o=r.viewState)||void 0===o?void 0:o.isMultiPage)?0:3;return Math.min(i,a,e-t+1+l)},RS=function(e,t,n){if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;var r=jn(e,t);if(Gn(e,t)){var o=SS(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:wS(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=ES(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=(CS(v,y,x)?h:h+1)+m,E=g+m,C=ES(g,o),w=null==C?void 0:C.getBoundingClientRect();return C&&w&&(CS(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:wS(f,d,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}},AS=function(e){var t=e.layout,n=e.viewService,r=e.model,o=e.rootElement,i=e.contentRect;s((function(e){return $(void 0,void 0,void 0,(function(){var a,l,s,u,c,d,p,f,m,h,g;return W(this,(function(b){switch(b.label){case 0:return e.snapshotData&&r&&!e.snapshotData.content?r.getHyperCubeData?(e.qHyperCube||(e.qHyperCube={}),a=RS(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]}}))}))})),u((function(){return{getViewState:function(){return RS(t,n,o)}}}),[t,n,o])},DS=function(e){var t=o().viewState;return n((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}}(t,e.snapshotData)}),[t,e.snapshotData,e.usePagination])},PS=function(e){return e.getStyle("","","object.straightTableV2.backgroundColor")},IS=function(e){return e.getStyle("object","straightTableV2","backgroundColor")}}}}));
|