@nebula.js/sn-table 6.54.0 → 6.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +5 -5
- package/dist/sn-table.js +12 -12
- package/dist/sn-table.systemjs.js +5 -5
- package/package.json +16 -14
- package/sn-table-ext/dist/sn-table.js +12 -12
- package/sn-table-ext/sn-table.qext +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-table v6.
|
|
2
|
+
* @nebula.js/sn-table v6.56.0
|
|
3
3
|
* Copyright (c) 2026 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -14,7 +14,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,u,c,d,p=e.le
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
function Ki(e,t){let n;return n=t?Di(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Di(e),n}function Yi(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function Xi(e){return e}Gi.propTypes={defaultTheme:Wi.object,styles:Wi.oneOfType([Wi.array,Wi.string,Wi.object,Wi.func])};var Ji=Object.freeze({__proto__:null,GlobalStyles:Gi,StyledEngineProvider:Ui,ThemeContext:xi,css:ki,default:Ki,internal_mutateStyles:Yi,internal_processStyles:function(e,t){return Yi(e,t)},internal_serializeStyles:Xi,keyframes:Li});function Zi(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Qi(e){if(E.isValidElement(e)||!Zi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Qi(e[n])}),t}function ea(e,t,n={clone:!0}){const r=n.clone?qn({},e):e;return Zi(e)&&Zi(t)&&Object.keys(t).forEach(o=>{E.isValidElement(t[o])?r[o]=t[o]:Zi(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Zi(e[o])?r[o]=ea(e[o],t[o],n):n.clone?r[o]=Zi(t[o])?Qi(t[o]):t[o]:r[o]=t[o]}),r}var ta=Object.freeze({__proto__:null,default:ea,isPlainObject:Zi});const na=["values","unit","step"];function ra(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Ln(e,na),i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>qn({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function 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 qn({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const oa={borderRadius:4};function ia(e,t){return t?ea(e,t,{clone:!1}):e}const aa={xs:0,sm:600,md:900,lg:1200,xl:1536},sa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${aa[e]}px)`};function la(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||sa;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||sa;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||aa).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function ua(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function ca(e){if("string"!=typeof e)throw new Error(Dn(7));return e.charAt(0).toUpperCase()+e.slice(1)}var da=Object.freeze({__proto__:null,default:ca});function pa(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 fa(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:pa(e,n)||r,t&&(o=t(o,r,e)),o}function ha(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=pa(e.theme,r)||{};return la(e,i,e=>{let r=fa(a,o,e);return e===r&&"string"==typeof e&&(r=fa(a,o,`${t}${"default"===e?"":ca(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const ma={m:"margin",p:"padding"},ga={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ba={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},va=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!ba[e])return[e];e=ba[e]}const[t,n]=e.split(""),r=ma[t],o=ga[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),ya=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],xa=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Sa(e,t,n,r){var o;const i=null!=(o=pa(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function wa(e){return Sa(e,"spacing",8)}function Ca(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 Ea(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Ca(t,n),e),{})}(va(n),r);return la(e,e[n],o)}function Ra(e,t){const n=wa(e.theme);return Object.keys(e).map(r=>Ea(e,t,r,n)).reduce(ia,{})}function Aa(e){return Ra(e,ya)}function Ia(e){return Ra(e,xa)}function ka(...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]?ia(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Pa(e){return"number"!=typeof e?e:`${e}px solid`}function Ma(e,t){return ha({prop:e,themeKey:"borders",transform:t})}Aa.propTypes={},Aa.filterProps=ya,Ia.propTypes={},Ia.filterProps=xa;const Da=Ma("border",Pa),Ta=Ma("borderTop",Pa),Oa=Ma("borderRight",Pa),qa=Ma("borderBottom",Pa),La=Ma("borderLeft",Pa),Na=Ma("borderColor"),ja=Ma("borderTopColor"),_a=Ma("borderRightColor"),za=Ma("borderBottomColor"),Fa=Ma("borderLeftColor"),$a=Ma("outline",Pa),Ha=Ma("outlineColor"),Ba=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Sa(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Ca(t,e)});return la(e,e.borderRadius,n)}return null};Ba.propTypes={},Ba.filterProps=["borderRadius"],ka(Da,Ta,Oa,qa,La,Na,ja,_a,za,Fa,Ba,$a,Ha);const Va=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Sa(e.theme,"spacing",8),n=e=>({gap:Ca(t,e)});return la(e,e.gap,n)}return null};Va.propTypes={},Va.filterProps=["gap"];const Wa=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Sa(e.theme,"spacing",8),n=e=>({columnGap:Ca(t,e)});return la(e,e.columnGap,n)}return null};Wa.propTypes={},Wa.filterProps=["columnGap"];const Ua=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Sa(e.theme,"spacing",8),n=e=>({rowGap:Ca(t,e)});return la(e,e.rowGap,n)}return null};Ua.propTypes={},Ua.filterProps=["rowGap"];function Ga(e,t){return"grey"===t?t:e}ka(Va,Wa,Ua,ha({prop:"gridColumn"}),ha({prop:"gridRow"}),ha({prop:"gridAutoFlow"}),ha({prop:"gridAutoColumns"}),ha({prop:"gridAutoRows"}),ha({prop:"gridTemplateColumns"}),ha({prop:"gridTemplateRows"}),ha({prop:"gridTemplateAreas"}),ha({prop:"gridArea"}));function Ka(e){return e<=1&&0!==e?100*e+"%":e}ka(ha({prop:"color",themeKey:"palette",transform:Ga}),ha({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ga}),ha({prop:"backgroundColor",themeKey:"palette",transform:Ga}));const Ya=ha({prop:"width",transform:Ka}),Xa=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])||aa[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:Ka(t)}};return la(e,e.maxWidth,t)}return null};Xa.filterProps=["maxWidth"];const Ja=ha({prop:"minWidth",transform:Ka}),Za=ha({prop:"height",transform:Ka}),Qa=ha({prop:"maxHeight",transform:Ka}),es=ha({prop:"minHeight",transform:Ka});ha({prop:"size",cssProperty:"width",transform:Ka}),ha({prop:"size",cssProperty:"height",transform:Ka});ka(Ya,Xa,Ja,Za,Qa,es,ha({prop:"boxSizing"}));const ts={border:{themeKey:"borders",transform:Pa},borderTop:{themeKey:"borders",transform:Pa},borderRight:{themeKey:"borders",transform:Pa},borderBottom:{themeKey:"borders",transform:Pa},borderLeft:{themeKey:"borders",transform:Pa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Pa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ba},color:{themeKey:"palette",transform:Ga},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ga},backgroundColor:{themeKey:"palette",transform:Ga},p:{style:Ia},pt:{style:Ia},pr:{style:Ia},pb:{style:Ia},pl:{style:Ia},px:{style:Ia},py:{style:Ia},padding:{style:Ia},paddingTop:{style:Ia},paddingRight:{style:Ia},paddingBottom:{style:Ia},paddingLeft:{style:Ia},paddingX:{style:Ia},paddingY:{style:Ia},paddingInline:{style:Ia},paddingInlineStart:{style:Ia},paddingInlineEnd:{style:Ia},paddingBlock:{style:Ia},paddingBlockStart:{style:Ia},paddingBlockEnd:{style:Ia},m:{style:Aa},mt:{style:Aa},mr:{style:Aa},mb:{style:Aa},ml:{style:Aa},mx:{style:Aa},my:{style:Aa},margin:{style:Aa},marginTop:{style:Aa},marginRight:{style:Aa},marginBottom:{style:Aa},marginLeft:{style:Aa},marginX:{style:Aa},marginY:{style:Aa},marginInline:{style:Aa},marginInlineStart:{style:Aa},marginInlineEnd:{style:Aa},marginBlock:{style:Aa},marginBlockStart:{style:Aa},marginBlockEnd:{style:Aa},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:Va},rowGap:{style:Ua},columnGap:{style:Wa},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ka},maxWidth:{style:Xa},minWidth:{transform:Ka},height:{transform:Ka},maxHeight:{transform:Ka},minHeight:{transform:Ka},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ns(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=pa(n,s)||{};if(u)return u(o);return la(o,t,t=>{let n=fa(c,l,t);return t===n&&"string"==typeof t&&(n=fa(c,l,`${e}${"default"===t?"":ca(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=null!=(r=i.unstable_sxConfig)?r:ts;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;const n=null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{});return n||{}}(i.breakpoints),l=Object.keys(o);let u=o;return Object.keys(r).forEach(n=>{const o=(a=r[n],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[n])u=ia(u,e(n,o,i,s));else{const e=la({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)?u=ia(u,e):u[n]=t({sx:o,theme:i,nested:!0})}else u=ia(u,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":ua(l,u)}:ua(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const rs=ns();function os(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}rs.filterProps=["sx"];const is=["breakpoints","palette","spacing","shape"];function as(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Ln(e,is),s=ra(n),l=function(e=8){if(e.mui)return e;const t=wa({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(o);let u=ea({breakpoints:s,direction:"ltr",components:{},palette:qn({mode:"light"},r),spacing:l,shape:qn({},oa,i)},a);return u.applyStyles=os,u=t.reduce((e,t)=>ea(e,t),u),u.unstable_sxConfig=qn({},ts,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return rs({sx:e,theme:this})},u}var ss=Object.freeze({__proto__:null,default:as,private_createBreakpoints:ra,unstable_applyStyles:os});function ls(e=null){const t=E.useContext(xi);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const us=as();function cs(e=us){return ls(e)}function ds(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function ps({styles:e,themeId:t,defaultTheme:n={}}){const r=cs(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>ds("function"==typeof e?e(o):e)):ds(i)),Yt.jsx(Gi,{styles:i})}const fs=["sx"];function hs(e){const{sx:t}=e,n=Ln(e,fs),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:ts;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Zi(n)?qn({},r,n):r}:qn({},r,t),qn({},o,{sx:i})}var ms=Object.freeze({__proto__:null,default:rs,extendSxProp:hs,unstable_createStyleFunctionSx:ns,unstable_defaultSxConfig:ts});const gs=e=>e,bs=(()=>{let e=gs;return{configure(t){e=t},generate:t=>e(t),reset(){e=gs}}})();function vs(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=vs(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ys(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=vs(e))&&(r&&(r+=" "),r+=t);return r}const xs=["className","component"];const Ss={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 ws(e,t,n="Mui"){const r=Ss[t];return r?`${n}-${r}`:`${bs.generate(e)}-${t}`}function Cs(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=ws(e,t,n)}),r}var Es,Rs,As={exports:{}},Is={};function ks(){if(Es)return Is;Es=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function h(f){if("object"==typeof f&&null!==f){var h=f.$$typeof;switch(h){case e:switch(f=f.type){case n:case o:case r:case l:case u:case p:return f;default:switch(f=f&&f.$$typeof){case a:case s:case d:case c:case i:return f;default:return h}}case t:return h}}}return Is.ContextConsumer=i,Is.ContextProvider=a,Is.Element=e,Is.ForwardRef=s,Is.Fragment=n,Is.Lazy=d,Is.Memo=c,Is.Portal=t,Is.Profiler=o,Is.StrictMode=r,Is.Suspense=l,Is.SuspenseList=u,Is.isContextConsumer=function(e){return h(e)===i},Is.isContextProvider=function(e){return h(e)===a},Is.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Is.isForwardRef=function(e){return h(e)===s},Is.isFragment=function(e){return h(e)===n},Is.isLazy=function(e){return h(e)===d},Is.isMemo=function(e){return h(e)===c},Is.isPortal=function(e){return h(e)===t},Is.isProfiler=function(e){return h(e)===o},Is.isStrictMode=function(e){return h(e)===r},Is.isSuspense=function(e){return h(e)===l},Is.isSuspenseList=function(e){return h(e)===u},Is.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===f||void 0!==e.getModuleId)},Is.typeOf=h,Is}function Ps(){return Rs||(Rs=1,As.exports=ks()),As.exports}var Ms=Ps();const Ds=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ts(e){const t=`${e}`.match(Ds);return t&&t[1]||""}function Os(e,t=""){return e.displayName||e.name||Ts(e)||t}function qs(e,t,n){const r=Os(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Ls=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Os(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ms.ForwardRef:return qs(e,e.render,"ForwardRef");case Ms.Memo:return qs(e,e.type,"memo");default:return}}},getFunctionName:Ts});function Ns(e,t){const n=qn({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=qn({},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]=qn({},i),Object.keys(o).forEach(e=>{n[r][e]=Ns(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}const js="undefined"!=typeof window?E.useLayoutEffect:E.useEffect;function _s(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var zs=Object.freeze({__proto__:null,default:_s});function Fs(e){if(e.type)return e;if("#"===e.charAt(0))return Fs(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(Dn(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(Dn(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}function $s(e,t){return e=Fs(e),t=function(e,t=0,n=1){return _s(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}function Hs(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Bs(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function Vs(e){return e&&e.ownerDocument||document}function Ws(e){return Vs(e).defaultView||window}function Us(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Gs=0;const Ks=E["useId".toString()];function Ys(e){if(void 0!==Ks){return Ks()}return function(e){const[t,n]=E.useState(e),r=t;return E.useEffect(()=>{null==t&&(Gs+=1,n(`mui-${Gs}`))},[t]),r}(e)}function Xs({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 Js(e){const t=E.useRef(e);return js(()=>{t.current=e}),E.useRef((...e)=>(0,t.current)(...e)).current}function Zs(...e){return E.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{Us(e,t)})},e)}const Qs={};const el=[];class tl{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new tl}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function nl(){const e=function(e,t){const n=E.useRef(Qs);return n.current===Qs&&(n.current=e(t)),n}(tl.create).current;return function(e){E.useEffect(e,el)}(e.disposeEffect),e}let rl=!0,ol=!1;const il=new tl,al={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 sl(e){e.metaKey||e.altKey||e.ctrlKey||(rl=!0)}function ll(){rl=!1}function ul(){"hidden"===this.visibilityState&&ol&&(rl=!0)}function cl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return rl||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!al[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function dl(){const e=E.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",sl,!0),t.addEventListener("mousedown",ll,!0),t.addEventListener("pointerdown",ll,!0),t.addEventListener("touchstart",ll,!0),t.addEventListener("visibilitychange",ul,!0))},[]),t=E.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!cl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ol=!0,il.start(100,()=>{ol=!1}),t.current=!1,!0)},ref:e}}function pl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function fl(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}function hl(e){return"string"==typeof e}function ml(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 gl(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 bl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function vl(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Ln(e,bl),s=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=ys(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=qn({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=qn({},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=ml(qn({},o,r)),s=gl(r),l=gl(o),u=t(a),c=ys(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=qn({},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=qn({},u,n,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(qn({},a,{externalSlotProps:s})),c=function(e,t,n){return void 0===e||hl(e)?t:qn({},t,{ownerState:qn({},t.ownerState,n)})}(n,qn({},l,{ref:Zs(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function yl(e){var t;return parseInt(E.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const xl=E.createContext(null);function Sl(){return E.useContext(xl)}var wl="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Cl(e){const{children:t,theme:n}=e,r=Sl(),o=E.useMemo(()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return qn({},e,t)}(r,n);return null!=e&&(e[wl]=null!==r),e},[n,r]);return Yt.jsx(xl.Provider,{value:o,children:t})}const El=["value"],Rl=E.createContext();function Al(e){let{value:t}=e,n=Ln(e,El);return Yt.jsx(Rl.Provider,qn({value:null==t||t},n))}const Il=E.createContext(void 0);function kl({value:e,children:t}){return Yt.jsx(Il.Provider,{value:e,children:t})}function Pl({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Ns(o.defaultProps,r):o.styleOverrides||o.variants?r:Ns(o,r)}({props:e,name:t,theme:{components:E.useContext(Il)}})}const Ml={};function Dl(e,t,n,r=!1){return E.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?qn({},t,{[e]:i}):i;return r?()=>a:a}return qn({},t,e?{[e]:n}:n)},[e,t,n,r])}function Tl(e){const{children:t,theme:n,themeId:r}=e,o=ls(Ml),i=Sl()||Ml,a=Dl(r,o,n),s=Dl(r,i,n,!0),l="rtl"===a.direction,u=function(e){const t=ls(),n=Ys()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",js(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",n),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${n}"]`))||i.remove()}},[o,n]),o?Yt.jsx(ps,{styles:o}):null}(a);return Yt.jsx(Cl,{theme:s,children:Yt.jsx(xi.Provider,{value:a,children:Yt.jsx(Al,{value:l,children:Yt.jsxs(kl,{value:null==a?void 0:a.components,children:[u,t]})})})})}function Ol(e){return Ol="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},Ol(e)}function ql(e){var t=function(e,t){if("object"!=Ol(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Ol(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Ol(t)?t:t+""}function Ll(e,t){return qn({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Nl,jl={},_l={exports:{}};function zl(){return Nl||(Nl=1,function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(_l)),_l.exports}var Fl,$l=Vt(Tn),Hl=Vt(zs);function Bl(){if(Fl)return jl;Fl=1;var e=zl();Object.defineProperty(jl,"__esModule",{value:!0}),jl.alpha=c,jl.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(e),l=i(t),u=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return s({type:"rgb",values:u})},jl.colorChannel=void 0,jl.darken=d,jl.decomposeColor=i,jl.emphasize=f,jl.getContrastRatio=function(e,t){const n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},jl.getLuminance=u,jl.hexToRgb=o,jl.hslToRgb=l,jl.lighten=p,jl.private_safeAlpha=function(e,t,n){try{return c(e,t)}catch(t){return e}},jl.private_safeColorChannel=void 0,jl.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},jl.private_safeEmphasize=function(e,t,n){try{return f(e,t)}catch(t){return e}},jl.private_safeLighten=function(e,t,n){try{return p(e,t)}catch(t){return e}},jl.recomposeColor=s,jl.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var t=e($l),n=e(Hl);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,s=e.substring(n+1,e.length-1);if("color"===r){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map(e=>parseFloat(e)),{type:r,values:s,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};jl.colorChannel=a;function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let u="rgb";const c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),s({type:u,values:c})}function u(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function d(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function p(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function f(e,t=.15){return u(e)>.5?d(e,t):p(e,t)}return jl.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},jl}var Vl=Bl();const Wl=["mode","contrastThreshold","tonalOffset"],Ul={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:Xt.white,default:Xt.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}},Gl={text:{primary:Xt.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:Xt.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 Kl(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=Vl.lighten(e.main,o):"dark"===t&&(e.dark=Vl.darken(e.main,i)))}function Yl(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Ln(e,Wl),i=e.primary||function(e="light"){return"dark"===e?{main:cn,light:un,dark:dn}:{main:pn,light:dn,dark:fn}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:rn,light:nn,dark:an}:{main:sn,light:on,dark:ln}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Qt,light:Jt,dark:en}:{main:en,light:Zt,dark:tn}}(t),l=e.info||function(e="light"){return"dark"===e?{main:mn,light:hn,dark:bn}:{main:bn,light:gn,dark:vn}}(t),u=e.success||function(e="light"){return"dark"===e?{main:xn,light:yn,dark:wn}:{main:Cn,light:Sn,dark:En}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:An,light:Rn,dark:kn}:{main:"#ed6c02",light:In,dark:Pn}}(t);function d(e){return Vl.getContrastRatio(e,Gl.text.primary)>=n?Gl.text.primary:Ul.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=qn({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Dn(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Dn(12,t?` (${t})`:"",JSON.stringify(e.main)));return Kl(e,"light",o,r),Kl(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Gl,light:Ul};return ea(qn({common:qn({},Xt),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Mn,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Xl=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Jl={textTransform:"uppercase"},Zl='"Roboto", "Helvetica", "Arial", sans-serif';function Ql(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Zl,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Ln(n,Xl),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,o,i)=>{return qn({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Zl?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,Jl),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Jl),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ea(qn({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function eu(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const tu=["none",eu(0,2,1,-1,0,1,1,0,0,1,3,0),eu(0,3,1,-2,0,2,2,0,0,1,5,0),eu(0,3,3,-2,0,3,4,0,0,1,8,0),eu(0,2,4,-1,0,4,5,0,0,1,10,0),eu(0,3,5,-1,0,5,8,0,0,1,14,0),eu(0,3,5,-1,0,6,10,0,0,1,18,0),eu(0,4,5,-2,0,7,10,1,0,2,16,1),eu(0,5,5,-3,0,8,10,1,0,3,14,2),eu(0,5,6,-3,0,9,12,1,0,3,16,2),eu(0,6,6,-3,0,10,14,1,0,4,18,3),eu(0,6,7,-4,0,11,15,1,0,4,20,3),eu(0,7,8,-4,0,12,17,2,0,5,22,4),eu(0,7,8,-4,0,13,19,2,0,5,24,4),eu(0,7,9,-4,0,14,21,2,0,5,26,4),eu(0,8,9,-5,0,15,22,2,0,6,28,5),eu(0,8,10,-5,0,16,24,2,0,6,30,5),eu(0,8,11,-5,0,17,26,2,0,6,32,5),eu(0,9,11,-5,0,18,28,2,0,7,34,6),eu(0,9,12,-6,0,19,29,2,0,7,36,6),eu(0,10,13,-6,0,20,31,3,0,8,38,7),eu(0,10,13,-6,0,21,33,3,0,8,40,7),eu(0,10,14,-6,0,22,35,3,0,8,42,7),eu(0,11,14,-7,0,23,36,3,0,9,44,8),eu(0,11,15,-7,0,24,38,3,0,9,46,8)],nu=["duration","easing","delay"],ru={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)"},ou={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function iu(e){return`${Math.round(e)}ms`}function au(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function su(e){const t=qn({},ru,e.easing),n=qn({},ou,e.duration);return qn({getAutoHeightDuration:au,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Ln(r,nu),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:iu(o)} ${i} ${"string"==typeof a?a:iu(a)}`).join(",")}},e,{easing:t,duration:n})}const lu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},uu=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function cu(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Ln(e,uu);if(e.vars&&void 0===e.generateCssVars)throw new Error(Dn(18));const s=Yl(r),l=as(e);let u=ea(l,{mixins:Ll(l.breakpoints,n),palette:s,shadows:tu.slice(),typography:Ql(s,i),transitions:su(o),zIndex:qn({},lu)});return u=ea(u,a),u=t.reduce((e,t)=>ea(e,t),u),u.unstable_sxConfig=qn({},ts,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return rs({sx:e,theme:this})},u}const du=cu();function pu(){const e=cs(du);return e[On]||e}var fu,hu={},mu={exports:{}};function gu(){return fu||(fu=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(mu)),mu.exports}var bu,vu={exports:{}};function yu(){return bu||(bu=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(vu)),vu.exports}var xu,Su=Vt(Ji),wu=Vt(ta),Cu=Vt(da),Eu=Vt(Ls),Ru=Vt(ss),Au=Vt(ms);function Iu(){if(xu)return hu;xu=1;var e=zl();Object.defineProperty(hu,"__esModule",{value:!0}),hu.default=function(e={}){const{themeId:i,defaultTheme:s=f,rootShouldForwardProp:l=d,slotShouldForwardProp:c=d}=e,p=e=>(0,a.default)((0,t.default)({},e,{theme:m((0,t.default)({},e,{defaultTheme:s,themeId:i}))}));return p.__mui_systemSx=!0,(e,a={})=>{(0,r.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:f,slot:v,skipVariantsResolver:y,skipSx:x,overridesResolver:S=g(h(v))}=a,w=(0,n.default)(a,u),C=f&&f.startsWith("Mui")||v?"components":"custom",E=void 0!==y?y:v&&"Root"!==v&&"root"!==v||!1,R=x||!1;let A=d;"Root"===v||"root"===v?A=l:v?A=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(A=void 0);const I=(0,r.default)(e,(0,t.default)({shouldForwardProp:A,label:void 0},w)),k=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?n=>{const r=m({theme:n.theme,defaultTheme:s,themeId:i});return b(e,(0,t.default)({},n,{theme:r}),r.modularCssLayers?C:void 0)}:e,P=(n,...r)=>{let o=k(n);const a=r?r.map(k):[];f&&S&&a.push(e=>{const n=m((0,t.default)({},e,{defaultTheme:s,themeId:i}));if(!n.components||!n.components[f]||!n.components[f].styleOverrides)return null;const r=n.components[f].styleOverrides,o={};return Object.entries(r).forEach(([r,i])=>{o[r]=b(i,(0,t.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),S(e,o)}),f&&!E&&a.push(e=>{var n;const r=m((0,t.default)({},e,{defaultTheme:s,themeId:i}));return b({variants:null==r||null==(n=r.components)||null==(n=n[f])?void 0:n.variants},(0,t.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),R||a.push(p);const l=a.length-r.length;if(Array.isArray(n)&&l>0){const e=new Array(l).fill("");o=[...n,...e],o.raw=[...n.raw,...e]}const u=I(o,...a);return e.muiName&&(u.muiName=e.muiName),u};return I.withConfig&&(P.withConfig=I.withConfig),P}},hu.shouldForwardProp=d,hu.systemDefaultTheme=void 0;var t=e(gu()),n=e(yu()),r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Su),o=wu;e(Cu),e(Eu);var i=e(Ru),a=e(Au);const s=["ownerState"],l=["variants"],u=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function p(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const f=hu.systemDefaultTheme=(0,i.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function b(e,o,i){let{ownerState:a}=o,u=(0,n.default)(o,s);const c="function"==typeof e?e((0,t.default)({ownerState:a},u)):e;if(Array.isArray(c))return c.flatMap(e=>b(e,(0,t.default)({ownerState:a},u),i));if(c&&"object"==typeof c&&Array.isArray(c.variants)){const{variants:e=[]}=c;let o=(0,n.default)(c,l);return e.forEach(e=>{let n=!0;if("function"==typeof e.props?n=e.props((0,t.default)({ownerState:a},u,a)):Object.keys(e.props).forEach(t=>{(null==a?void 0:a[t])!==e.props[t]&&u[t]!==e.props[t]&&(n=!1)}),n){Array.isArray(o)||(o=[o]);const n="function"==typeof e.style?e.style((0,t.default)({ownerState:a},u,a)):e.style;o.push(i?p((0,r.internal_serializeStyles)(n),i):n)}}),o}return i?p((0,r.internal_serializeStyles)(c),i):c}return hu}function ku(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Pu=e=>ku(e)&&"classes"!==e,Mu=Bt(Iu())({themeId:On,defaultTheme:du,rootShouldForwardProp:Pu}),Du=["theme"];function Tu(e){let{theme:t}=e,n=Ln(e,Du);const r=t[On];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=qn({},r,{vars:null}):t&&!t.vars&&(o=qn({},t,{vars:null}))),Yt.jsx(Tl,qn({},n,{themeId:r?On:void 0,theme:o}))}const Ou=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function qu(e){return Pl(e)}function Lu(e){return ws("MuiSvgIcon",e)}Cs("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Nu=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ju=Mu("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${ca(n.color)}`],t[`fontSize${ca(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,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==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}}),_u=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=Ln(n,Nu),f=E.isValidElement(r)&&"svg"===r.type,h=qn({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),m={};u||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return fl({root:["root","inherit"!==t&&`color${ca(t)}`,`fontSize${ca(n)}`]},Lu,r)})(h);return Yt.jsxs(ju,qn({as:a,className:ys(g.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,c?Yt.jsx("title",{children:c}):null]}))});function zu(e,t){function n(n,r){return Yt.jsx(_u,qn({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=_u.muiName,E.memo(E.forwardRef(n))}function Fu(e,t){return Fu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fu(e,t)}function $u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fu(e,t)}_u.muiName="SvgIcon";var Hu=!1,Bu=w.createContext(null),Vu="unmounted",Wu="exited",Uu="entering",Gu="entered",Ku="exiting",Yu=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=Wu,r.appearStatus=Uu):o=Gu:o=t.unmountOnExit||t.mountOnEnter?Vu:Wu,r.state={status:o},r.nextCallback=null,r}$u(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Vu?{status:Wu}: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!==Uu&&n!==Gu&&(t=Uu):n!==Uu&&n!==Gu||(t=Ku)}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===Uu){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:V.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Wu&&this.setState({status:Vu})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[V.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Hu?this.safeSetState({status:Gu},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:Uu},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:Gu},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:V.findDOMNode(this);t&&!Hu?(this.props.onExit(r),this.safeSetState({status:Ku},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Wu},function(){e.props.onExited(r)})})})):this.safeSetState({status:Wu},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:V.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===Vu)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=Ln(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return w.createElement(Bu.Provider,{value:null},"function"==typeof n?n(e,r):w.cloneElement(w.Children.only(n),r))},t}(w.Component);function Xu(){}function Ju(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zu(e,t){var n=Object.create(null);return e&&I.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&R(e)?t(e):e}(e)}),n}function Qu(e,t,n){return null!=n[t]?n[t]:e.props[t]}function ec(e,t,n){var r=Zu(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];s[o[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(R(a)){var s=i in t,l=i in r,u=t[i],c=R(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&R(u)&&(o[i]=A(a,{onExited:n.bind(null,a),in:u.props.in,exit:Qu(a,"exit",e),enter:Qu(a,"enter",e)})):o[i]=A(a,{in:!1}):o[i]=A(a,{onExited:n.bind(null,a),in:!0,exit:Qu(a,"exit",e),enter:Qu(a,"enter",e)})}}),o}Yu.contextType=Bu,Yu.propTypes={},Yu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xu,onEntering:Xu,onEntered:Xu,onExit:Xu,onExiting:Xu,onExited:Xu},Yu.UNMOUNTED=Vu,Yu.EXITED=Wu,Yu.ENTERING=Uu,Yu.ENTERED=Gu,Yu.EXITING=Ku;var tc=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},nc=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Ju(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}$u(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,Zu(n.children,function(e){return A(e,{onExited:r.bind(null,e),in:!0,appear:Qu(e,"appear",n),enter:Qu(e,"enter",n),exit:Qu(e,"exit",n)})})):ec(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Zu(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=qn({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Ln(e,["component","childFactory"]),o=this.state.contextValue,i=tc(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?w.createElement(Bu.Provider,{value:o},i):w.createElement(Bu.Provider,{value:o},w.createElement(t,r,i))},t}(w.Component);nc.propTypes={},nc.defaultProps={component:"div",childFactory:function(e){return e}};const rc=e=>e.scrollTop;function oc(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 ic(e){return ws("MuiPaper",e)}Cs("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 ac=["className","component","elevation","square","variant"],sc=Mu("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 qn({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&&qn({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Vl.alpha("#fff",Ou(t.elevation))}, ${Vl.alpha("#fff",Ou(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),lc=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=Ln(n,ac),u=qn({},n,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return fl({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},ic,o)})(u);return Yt.jsx(sc,qn({as:o,ownerState:u,className:ys(c.root,r),ref:t},l))});const uc=Cs("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),cc=["center","classes","className"];let dc,pc,fc,hc,mc=e=>e;const gc=Li(dc||(dc=mc`
|
|
17
|
+
function Ki(e,t){let n;return n=t?Di(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Di(e),n}function Yi(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function Xi(e){return e}Gi.propTypes={defaultTheme:Wi.object,styles:Wi.oneOfType([Wi.array,Wi.string,Wi.object,Wi.func])};var Ji=Object.freeze({__proto__:null,GlobalStyles:Gi,StyledEngineProvider:Ui,ThemeContext:xi,css:ki,default:Ki,internal_mutateStyles:Yi,internal_processStyles:function(e,t){return Yi(e,t)},internal_serializeStyles:Xi,keyframes:Li});function Zi(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Qi(e){if(E.isValidElement(e)||!Zi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Qi(e[n])}),t}function ea(e,t,n={clone:!0}){const r=n.clone?qn({},e):e;return Zi(e)&&Zi(t)&&Object.keys(t).forEach(o=>{E.isValidElement(t[o])?r[o]=t[o]:Zi(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Zi(e[o])?r[o]=ea(e[o],t[o],n):n.clone?r[o]=Zi(t[o])?Qi(t[o]):t[o]:r[o]=t[o]}),r}var ta=Object.freeze({__proto__:null,default:ea,isPlainObject:Zi});const na=["values","unit","step"];function ra(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Ln(e,na),i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>qn({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function 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 qn({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const oa={borderRadius:4};function ia(e,t){return t?ea(e,t,{clone:!1}):e}const aa={xs:0,sm:600,md:900,lg:1200,xl:1536},sa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${aa[e]}px)`};function la(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||sa;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||sa;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||aa).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function ua(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function ca(e){if("string"!=typeof e)throw new Error(Dn(7));return e.charAt(0).toUpperCase()+e.slice(1)}var da=Object.freeze({__proto__:null,default:ca});function pa(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 fa(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:pa(e,n)||r,t&&(o=t(o,r,e)),o}function ha(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=pa(e.theme,r)||{};return la(e,i,e=>{let r=fa(a,o,e);return e===r&&"string"==typeof e&&(r=fa(a,o,`${t}${"default"===e?"":ca(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const ma={m:"margin",p:"padding"},ga={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ba={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},va=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!ba[e])return[e];e=ba[e]}const[t,n]=e.split(""),r=ma[t],o=ga[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),ya=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],xa=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Sa(e,t,n,r){var o;const i=null!=(o=pa(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function wa(e){return Sa(e,"spacing",8)}function Ca(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 Ea(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Ca(t,n),e),{})}(va(n),r);return la(e,e[n],o)}function Ra(e,t){const n=wa(e.theme);return Object.keys(e).map(r=>Ea(e,t,r,n)).reduce(ia,{})}function Aa(e){return Ra(e,ya)}function Ia(e){return Ra(e,xa)}function ka(...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]?ia(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Pa(e){return"number"!=typeof e?e:`${e}px solid`}function Ma(e,t){return ha({prop:e,themeKey:"borders",transform:t})}Aa.propTypes={},Aa.filterProps=ya,Ia.propTypes={},Ia.filterProps=xa;const Da=Ma("border",Pa),Ta=Ma("borderTop",Pa),Oa=Ma("borderRight",Pa),qa=Ma("borderBottom",Pa),La=Ma("borderLeft",Pa),Na=Ma("borderColor"),ja=Ma("borderTopColor"),_a=Ma("borderRightColor"),za=Ma("borderBottomColor"),Fa=Ma("borderLeftColor"),$a=Ma("outline",Pa),Ha=Ma("outlineColor"),Ba=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Sa(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Ca(t,e)});return la(e,e.borderRadius,n)}return null};Ba.propTypes={},Ba.filterProps=["borderRadius"],ka(Da,Ta,Oa,qa,La,Na,ja,_a,za,Fa,Ba,$a,Ha);const Va=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Sa(e.theme,"spacing",8),n=e=>({gap:Ca(t,e)});return la(e,e.gap,n)}return null};Va.propTypes={},Va.filterProps=["gap"];const Wa=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Sa(e.theme,"spacing",8),n=e=>({columnGap:Ca(t,e)});return la(e,e.columnGap,n)}return null};Wa.propTypes={},Wa.filterProps=["columnGap"];const Ua=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Sa(e.theme,"spacing",8),n=e=>({rowGap:Ca(t,e)});return la(e,e.rowGap,n)}return null};Ua.propTypes={},Ua.filterProps=["rowGap"];function Ga(e,t){return"grey"===t?t:e}ka(Va,Wa,Ua,ha({prop:"gridColumn"}),ha({prop:"gridRow"}),ha({prop:"gridAutoFlow"}),ha({prop:"gridAutoColumns"}),ha({prop:"gridAutoRows"}),ha({prop:"gridTemplateColumns"}),ha({prop:"gridTemplateRows"}),ha({prop:"gridTemplateAreas"}),ha({prop:"gridArea"}));function Ka(e){return e<=1&&0!==e?100*e+"%":e}ka(ha({prop:"color",themeKey:"palette",transform:Ga}),ha({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ga}),ha({prop:"backgroundColor",themeKey:"palette",transform:Ga}));const Ya=ha({prop:"width",transform:Ka}),Xa=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])||aa[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:Ka(t)}};return la(e,e.maxWidth,t)}return null};Xa.filterProps=["maxWidth"];const Ja=ha({prop:"minWidth",transform:Ka}),Za=ha({prop:"height",transform:Ka}),Qa=ha({prop:"maxHeight",transform:Ka}),es=ha({prop:"minHeight",transform:Ka});ha({prop:"size",cssProperty:"width",transform:Ka}),ha({prop:"size",cssProperty:"height",transform:Ka});ka(Ya,Xa,Ja,Za,Qa,es,ha({prop:"boxSizing"}));const ts={border:{themeKey:"borders",transform:Pa},borderTop:{themeKey:"borders",transform:Pa},borderRight:{themeKey:"borders",transform:Pa},borderBottom:{themeKey:"borders",transform:Pa},borderLeft:{themeKey:"borders",transform:Pa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Pa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ba},color:{themeKey:"palette",transform:Ga},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ga},backgroundColor:{themeKey:"palette",transform:Ga},p:{style:Ia},pt:{style:Ia},pr:{style:Ia},pb:{style:Ia},pl:{style:Ia},px:{style:Ia},py:{style:Ia},padding:{style:Ia},paddingTop:{style:Ia},paddingRight:{style:Ia},paddingBottom:{style:Ia},paddingLeft:{style:Ia},paddingX:{style:Ia},paddingY:{style:Ia},paddingInline:{style:Ia},paddingInlineStart:{style:Ia},paddingInlineEnd:{style:Ia},paddingBlock:{style:Ia},paddingBlockStart:{style:Ia},paddingBlockEnd:{style:Ia},m:{style:Aa},mt:{style:Aa},mr:{style:Aa},mb:{style:Aa},ml:{style:Aa},mx:{style:Aa},my:{style:Aa},margin:{style:Aa},marginTop:{style:Aa},marginRight:{style:Aa},marginBottom:{style:Aa},marginLeft:{style:Aa},marginX:{style:Aa},marginY:{style:Aa},marginInline:{style:Aa},marginInlineStart:{style:Aa},marginInlineEnd:{style:Aa},marginBlock:{style:Aa},marginBlockStart:{style:Aa},marginBlockEnd:{style:Aa},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:Va},rowGap:{style:Ua},columnGap:{style:Wa},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ka},maxWidth:{style:Xa},minWidth:{transform:Ka},height:{transform:Ka},maxHeight:{transform:Ka},minHeight:{transform:Ka},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ns(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=pa(n,s)||{};if(u)return u(o);return la(o,t,t=>{let n=fa(c,l,t);return t===n&&"string"==typeof t&&(n=fa(c,l,`${e}${"default"===t?"":ca(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=null!=(r=i.unstable_sxConfig)?r:ts;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;const n=null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{});return n||{}}(i.breakpoints),l=Object.keys(o);let u=o;return Object.keys(r).forEach(n=>{const o=(a=r[n],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[n])u=ia(u,e(n,o,i,s));else{const e=la({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)?u=ia(u,e):u[n]=t({sx:o,theme:i,nested:!0})}else u=ia(u,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":ua(l,u)}:ua(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const rs=ns();function os(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}rs.filterProps=["sx"];const is=["breakpoints","palette","spacing","shape"];function as(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Ln(e,is),s=ra(n),l=function(e=8){if(e.mui)return e;const t=wa({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(o);let u=ea({breakpoints:s,direction:"ltr",components:{},palette:qn({mode:"light"},r),spacing:l,shape:qn({},oa,i)},a);return u.applyStyles=os,u=t.reduce((e,t)=>ea(e,t),u),u.unstable_sxConfig=qn({},ts,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return rs({sx:e,theme:this})},u}var ss=Object.freeze({__proto__:null,default:as,private_createBreakpoints:ra,unstable_applyStyles:os});function ls(e=null){const t=E.useContext(xi);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const us=as();function cs(e=us){return ls(e)}function ds(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function ps({styles:e,themeId:t,defaultTheme:n={}}){const r=cs(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>ds("function"==typeof e?e(o):e)):ds(i)),Yt.jsx(Gi,{styles:i})}const fs=["sx"];function hs(e){const{sx:t}=e,n=Ln(e,fs),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:ts;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Zi(n)?qn({},r,n):r}:qn({},r,t),qn({},o,{sx:i})}var ms=Object.freeze({__proto__:null,default:rs,extendSxProp:hs,unstable_createStyleFunctionSx:ns,unstable_defaultSxConfig:ts});const gs=e=>e,bs=(()=>{let e=gs;return{configure(t){e=t},generate:t=>e(t),reset(){e=gs}}})();function vs(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=vs(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ys(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=vs(e))&&(r&&(r+=" "),r+=t);return r}const xs=["className","component"];const Ss={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 ws(e,t,n="Mui"){const r=Ss[t];return r?`${n}-${r}`:`${bs.generate(e)}-${t}`}function Cs(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=ws(e,t,n)}),r}var Es,Rs,As={exports:{}},Is={};function ks(){if(Es)return Is;Es=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function h(f){if("object"==typeof f&&null!==f){var h=f.$$typeof;switch(h){case e:switch(f=f.type){case n:case o:case r:case l:case u:case p:return f;default:switch(f=f&&f.$$typeof){case a:case s:case d:case c:case i:return f;default:return h}}case t:return h}}}return Is.ContextConsumer=i,Is.ContextProvider=a,Is.Element=e,Is.ForwardRef=s,Is.Fragment=n,Is.Lazy=d,Is.Memo=c,Is.Portal=t,Is.Profiler=o,Is.StrictMode=r,Is.Suspense=l,Is.SuspenseList=u,Is.isContextConsumer=function(e){return h(e)===i},Is.isContextProvider=function(e){return h(e)===a},Is.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Is.isForwardRef=function(e){return h(e)===s},Is.isFragment=function(e){return h(e)===n},Is.isLazy=function(e){return h(e)===d},Is.isMemo=function(e){return h(e)===c},Is.isPortal=function(e){return h(e)===t},Is.isProfiler=function(e){return h(e)===o},Is.isStrictMode=function(e){return h(e)===r},Is.isSuspense=function(e){return h(e)===l},Is.isSuspenseList=function(e){return h(e)===u},Is.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===f||void 0!==e.getModuleId)},Is.typeOf=h,Is}function Ps(){return Rs||(Rs=1,As.exports=ks()),As.exports}var Ms=Ps();const Ds=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ts(e){const t=`${e}`.match(Ds);return t&&t[1]||""}function Os(e,t=""){return e.displayName||e.name||Ts(e)||t}function qs(e,t,n){const r=Os(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Ls=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Os(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ms.ForwardRef:return qs(e,e.render,"ForwardRef");case Ms.Memo:return qs(e,e.type,"memo");default:return}}},getFunctionName:Ts});function Ns(e,t){const n=qn({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=qn({},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]=qn({},i),Object.keys(o).forEach(e=>{n[r][e]=Ns(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}const js="undefined"!=typeof window?E.useLayoutEffect:E.useEffect;function _s(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var zs=Object.freeze({__proto__:null,default:_s});function Fs(e){if(e.type)return e;if("#"===e.charAt(0))return Fs(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(Dn(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(Dn(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}function $s(e,t){return e=Fs(e),t=function(e,t=0,n=1){return _s(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}function Hs(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Bs(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function Vs(e){return e&&e.ownerDocument||document}function Ws(e){return Vs(e).defaultView||window}function Us(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Gs=0;const Ks=E["useId".toString()];function Ys(e){if(void 0!==Ks){return Ks()}return function(e){const[t,n]=E.useState(e),r=t;return E.useEffect(()=>{null==t&&(Gs+=1,n(`mui-${Gs}`))},[t]),r}(e)}function Xs({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 Js(e){const t=E.useRef(e);return js(()=>{t.current=e}),E.useRef((...e)=>(0,t.current)(...e)).current}function Zs(...e){return E.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{Us(e,t)})},e)}const Qs={};const el=[];class tl{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new tl}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function nl(){const e=function(e,t){const n=E.useRef(Qs);return n.current===Qs&&(n.current=e(t)),n}(tl.create).current;return function(e){E.useEffect(e,el)}(e.disposeEffect),e}let rl=!0,ol=!1;const il=new tl,al={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 sl(e){e.metaKey||e.altKey||e.ctrlKey||(rl=!0)}function ll(){rl=!1}function ul(){"hidden"===this.visibilityState&&ol&&(rl=!0)}function cl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return rl||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!al[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function dl(){const e=E.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",sl,!0),t.addEventListener("mousedown",ll,!0),t.addEventListener("pointerdown",ll,!0),t.addEventListener("touchstart",ll,!0),t.addEventListener("visibilitychange",ul,!0))},[]),t=E.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!cl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ol=!0,il.start(100,()=>{ol=!1}),t.current=!1,!0)},ref:e}}function pl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function fl(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}function hl(e){return"string"==typeof e}function ml(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 gl(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 bl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function vl(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Ln(e,bl),s=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=ys(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=qn({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=qn({},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=ml(qn({},o,r)),s=gl(r),l=gl(o),u=t(a),c=ys(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=qn({},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=qn({},u,n,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(qn({},a,{externalSlotProps:s})),c=function(e,t,n){return void 0===e||hl(e)?t:qn({},t,{ownerState:qn({},t.ownerState,n)})}(n,qn({},l,{ref:Zs(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function yl(e){var t;return parseInt(E.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const xl=E.createContext(null);function Sl(){return E.useContext(xl)}var wl="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Cl(e){const{children:t,theme:n}=e,r=Sl(),o=E.useMemo(()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return qn({},e,t)}(r,n);return null!=e&&(e[wl]=null!==r),e},[n,r]);return Yt.jsx(xl.Provider,{value:o,children:t})}const El=["value"],Rl=E.createContext();function Al(e){let{value:t}=e,n=Ln(e,El);return Yt.jsx(Rl.Provider,qn({value:null==t||t},n))}const Il=E.createContext(void 0);function kl({value:e,children:t}){return Yt.jsx(Il.Provider,{value:e,children:t})}function Pl({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Ns(o.defaultProps,r):o.styleOverrides||o.variants?r:Ns(o,r)}({props:e,name:t,theme:{components:E.useContext(Il)}})}const Ml={};function Dl(e,t,n,r=!1){return E.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?qn({},t,{[e]:i}):i;return r?()=>a:a}return qn({},t,e?{[e]:n}:n)},[e,t,n,r])}function Tl(e){const{children:t,theme:n,themeId:r}=e,o=ls(Ml),i=Sl()||Ml,a=Dl(r,o,n),s=Dl(r,i,n,!0),l="rtl"===a.direction,u=function(e){const t=ls(),n=Ys()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",js(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",n),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${n}"]`))||i.remove()}},[o,n]),o?Yt.jsx(ps,{styles:o}):null}(a);return Yt.jsx(Cl,{theme:s,children:Yt.jsx(xi.Provider,{value:a,children:Yt.jsx(Al,{value:l,children:Yt.jsxs(kl,{value:null==a?void 0:a.components,children:[u,t]})})})})}function Ol(e){return Ol="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},Ol(e)}function ql(e){var t=function(e,t){if("object"!=Ol(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Ol(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Ol(t)?t:t+""}function Ll(e,t){return qn({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Nl,jl={},_l={exports:{}};function zl(){return Nl||(Nl=1,function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(_l)),_l.exports}var Fl,$l=Vt(Tn),Hl=Vt(zs);function Bl(){if(Fl)return jl;Fl=1;var e=zl();Object.defineProperty(jl,"__esModule",{value:!0}),jl.alpha=c,jl.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(e),l=i(t),u=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return s({type:"rgb",values:u})},jl.colorChannel=void 0,jl.darken=d,jl.decomposeColor=i,jl.emphasize=f,jl.getContrastRatio=function(e,t){const n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},jl.getLuminance=u,jl.hexToRgb=o,jl.hslToRgb=l,jl.lighten=p,jl.private_safeAlpha=function(e,t,n){try{return c(e,t)}catch(t){return e}},jl.private_safeColorChannel=void 0,jl.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},jl.private_safeEmphasize=function(e,t,n){try{return f(e,t)}catch(t){return e}},jl.private_safeLighten=function(e,t,n){try{return p(e,t)}catch(t){return e}},jl.recomposeColor=s,jl.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var t=e($l),n=e(Hl);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,s=e.substring(n+1,e.length-1);if("color"===r){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map(e=>parseFloat(e)),{type:r,values:s,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};jl.colorChannel=a;function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let u="rgb";const c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),s({type:u,values:c})}function u(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function d(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function p(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function f(e,t=.15){return u(e)>.5?d(e,t):p(e,t)}return jl.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},jl}var Vl=Bl();const Wl=["mode","contrastThreshold","tonalOffset"],Ul={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:Xt.white,default:Xt.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}},Gl={text:{primary:Xt.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:Xt.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 Kl(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=Vl.lighten(e.main,o):"dark"===t&&(e.dark=Vl.darken(e.main,i)))}function Yl(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Ln(e,Wl),i=e.primary||function(e="light"){return"dark"===e?{main:cn,light:un,dark:dn}:{main:pn,light:dn,dark:fn}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:rn,light:nn,dark:an}:{main:sn,light:on,dark:ln}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Qt,light:Jt,dark:en}:{main:en,light:Zt,dark:tn}}(t),l=e.info||function(e="light"){return"dark"===e?{main:mn,light:hn,dark:bn}:{main:bn,light:gn,dark:vn}}(t),u=e.success||function(e="light"){return"dark"===e?{main:xn,light:yn,dark:wn}:{main:Cn,light:Sn,dark:En}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:An,light:Rn,dark:kn}:{main:"#ed6c02",light:In,dark:Pn}}(t);function d(e){return Vl.getContrastRatio(e,Gl.text.primary)>=n?Gl.text.primary:Ul.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=qn({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Dn(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Dn(12,t?` (${t})`:"",JSON.stringify(e.main)));return Kl(e,"light",o,r),Kl(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Gl,light:Ul};return ea(qn({common:qn({},Xt),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Mn,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Xl=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Jl={textTransform:"uppercase"},Zl='"Roboto", "Helvetica", "Arial", sans-serif';function Ql(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Zl,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Ln(n,Xl),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,o,i)=>{return qn({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Zl?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,Jl),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Jl),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ea(qn({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function eu(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const tu=["none",eu(0,2,1,-1,0,1,1,0,0,1,3,0),eu(0,3,1,-2,0,2,2,0,0,1,5,0),eu(0,3,3,-2,0,3,4,0,0,1,8,0),eu(0,2,4,-1,0,4,5,0,0,1,10,0),eu(0,3,5,-1,0,5,8,0,0,1,14,0),eu(0,3,5,-1,0,6,10,0,0,1,18,0),eu(0,4,5,-2,0,7,10,1,0,2,16,1),eu(0,5,5,-3,0,8,10,1,0,3,14,2),eu(0,5,6,-3,0,9,12,1,0,3,16,2),eu(0,6,6,-3,0,10,14,1,0,4,18,3),eu(0,6,7,-4,0,11,15,1,0,4,20,3),eu(0,7,8,-4,0,12,17,2,0,5,22,4),eu(0,7,8,-4,0,13,19,2,0,5,24,4),eu(0,7,9,-4,0,14,21,2,0,5,26,4),eu(0,8,9,-5,0,15,22,2,0,6,28,5),eu(0,8,10,-5,0,16,24,2,0,6,30,5),eu(0,8,11,-5,0,17,26,2,0,6,32,5),eu(0,9,11,-5,0,18,28,2,0,7,34,6),eu(0,9,12,-6,0,19,29,2,0,7,36,6),eu(0,10,13,-6,0,20,31,3,0,8,38,7),eu(0,10,13,-6,0,21,33,3,0,8,40,7),eu(0,10,14,-6,0,22,35,3,0,8,42,7),eu(0,11,14,-7,0,23,36,3,0,9,44,8),eu(0,11,15,-7,0,24,38,3,0,9,46,8)],nu=["duration","easing","delay"],ru={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)"},ou={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function iu(e){return`${Math.round(e)}ms`}function au(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function su(e){const t=qn({},ru,e.easing),n=qn({},ou,e.duration);return qn({getAutoHeightDuration:au,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Ln(r,nu),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:iu(o)} ${i} ${"string"==typeof a?a:iu(a)}`).join(",")}},e,{easing:t,duration:n})}const lu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},uu=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function cu(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Ln(e,uu);if(e.vars&&void 0===e.generateCssVars)throw new Error(Dn(18));const s=Yl(r),l=as(e);let u=ea(l,{mixins:Ll(l.breakpoints,n),palette:s,shadows:tu.slice(),typography:Ql(s,i),transitions:su(o),zIndex:qn({},lu)});return u=ea(u,a),u=t.reduce((e,t)=>ea(e,t),u),u.unstable_sxConfig=qn({},ts,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return rs({sx:e,theme:this})},u}const du=cu();function pu(){const e=cs(du);return e[On]||e}var fu,hu={},mu={exports:{}};function gu(){return fu||(fu=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(mu)),mu.exports}var bu,vu={exports:{}};function yu(){return bu||(bu=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(vu)),vu.exports}var xu,Su=Vt(Ji),wu=Vt(ta),Cu=Vt(da),Eu=Vt(Ls),Ru=Vt(ss),Au=Vt(ms);function Iu(){if(xu)return hu;xu=1;var e=zl();Object.defineProperty(hu,"__esModule",{value:!0}),hu.default=function(e={}){const{themeId:i,defaultTheme:s=f,rootShouldForwardProp:l=d,slotShouldForwardProp:c=d}=e,p=e=>(0,a.default)((0,t.default)({},e,{theme:m((0,t.default)({},e,{defaultTheme:s,themeId:i}))}));return p.__mui_systemSx=!0,(e,a={})=>{(0,r.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:f,slot:v,skipVariantsResolver:y,skipSx:x,overridesResolver:S=g(h(v))}=a,w=(0,n.default)(a,u),C=f&&f.startsWith("Mui")||v?"components":"custom",E=void 0!==y?y:v&&"Root"!==v&&"root"!==v||!1,R=x||!1;let A=d;"Root"===v||"root"===v?A=l:v?A=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(A=void 0);const I=(0,r.default)(e,(0,t.default)({shouldForwardProp:A,label:void 0},w)),k=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?n=>{const r=m({theme:n.theme,defaultTheme:s,themeId:i});return b(e,(0,t.default)({},n,{theme:r}),r.modularCssLayers?C:void 0)}:e,P=(n,...r)=>{let o=k(n);const a=r?r.map(k):[];f&&S&&a.push(e=>{const n=m((0,t.default)({},e,{defaultTheme:s,themeId:i}));if(!n.components||!n.components[f]||!n.components[f].styleOverrides)return null;const r=n.components[f].styleOverrides,o={};return Object.entries(r).forEach(([r,i])=>{o[r]=b(i,(0,t.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),S(e,o)}),f&&!E&&a.push(e=>{var n;const r=m((0,t.default)({},e,{defaultTheme:s,themeId:i}));return b({variants:null==r||null==(n=r.components)||null==(n=n[f])?void 0:n.variants},(0,t.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),R||a.push(p);const l=a.length-r.length;if(Array.isArray(n)&&l>0){const e=new Array(l).fill("");o=[...n,...e],o.raw=[...n.raw,...e]}const u=I(o,...a);return e.muiName&&(u.muiName=e.muiName),u};return I.withConfig&&(P.withConfig=I.withConfig),P}},hu.shouldForwardProp=d,hu.systemDefaultTheme=void 0;var t=e(gu()),n=e(yu()),r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Su),o=wu;e(Cu),e(Eu);var i=e(Ru),a=e(Au);const s=["ownerState"],l=["variants"],u=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function p(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const f=hu.systemDefaultTheme=(0,i.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function b(e,o,i){let{ownerState:a}=o,u=(0,n.default)(o,s);const c="function"==typeof e?e((0,t.default)({ownerState:a},u)):e;if(Array.isArray(c))return c.flatMap(e=>b(e,(0,t.default)({ownerState:a},u),i));if(c&&"object"==typeof c&&Array.isArray(c.variants)){const{variants:e=[]}=c;let o=(0,n.default)(c,l);return e.forEach(e=>{let n=!0;if("function"==typeof e.props?n=e.props((0,t.default)({ownerState:a},u,a)):Object.keys(e.props).forEach(t=>{(null==a?void 0:a[t])!==e.props[t]&&u[t]!==e.props[t]&&(n=!1)}),n){Array.isArray(o)||(o=[o]);const n="function"==typeof e.style?e.style((0,t.default)({ownerState:a},u,a)):e.style;o.push(i?p((0,r.internal_serializeStyles)(n),i):n)}}),o}return i?p((0,r.internal_serializeStyles)(c),i):c}return hu}function ku(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Pu=e=>ku(e)&&"classes"!==e,Mu=Bt(Iu())({themeId:On,defaultTheme:du,rootShouldForwardProp:Pu}),Du=["theme"];function Tu(e){let{theme:t}=e,n=Ln(e,Du);const r=t[On];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=qn({},r,{vars:null}):t&&!t.vars&&(o=qn({},t,{vars:null}))),Yt.jsx(Tl,qn({},n,{themeId:r?On:void 0,theme:o}))}const Ou=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function qu(e){return Pl(e)}function Lu(e){return ws("MuiSvgIcon",e)}Cs("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Nu=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ju=Mu("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${ca(n.color)}`],t[`fontSize${ca(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,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==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}}),_u=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=Ln(n,Nu),f=E.isValidElement(r)&&"svg"===r.type,h=qn({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),m={};u||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return fl({root:["root","inherit"!==t&&`color${ca(t)}`,`fontSize${ca(n)}`]},Lu,r)})(h);return Yt.jsxs(ju,qn({as:a,className:ys(g.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,c?Yt.jsx("title",{children:c}):null]}))});function zu(e,t){function n(n,r){return Yt.jsx(_u,qn({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=_u.muiName,E.memo(E.forwardRef(n))}function Fu(e,t){return Fu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fu(e,t)}function $u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fu(e,t)}_u.muiName="SvgIcon";var Hu=!1,Bu=w.createContext(null),Vu="unmounted",Wu="exited",Uu="entering",Gu="entered",Ku="exiting",Yu=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=Wu,r.appearStatus=Uu):o=Gu:o=t.unmountOnExit||t.mountOnEnter?Vu:Wu,r.state={status:o},r.nextCallback=null,r}$u(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Vu?{status:Wu}: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!==Uu&&n!==Gu&&(t=Uu):n!==Uu&&n!==Gu||(t=Ku)}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===Uu){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:V.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Wu&&this.setState({status:Vu})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[V.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Hu?this.safeSetState({status:Gu},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:Uu},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:Gu},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:V.findDOMNode(this);t&&!Hu?(this.props.onExit(r),this.safeSetState({status:Ku},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Wu},function(){e.props.onExited(r)})})})):this.safeSetState({status:Wu},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:V.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===Vu)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=Ln(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return w.createElement(Bu.Provider,{value:null},"function"==typeof n?n(e,r):w.cloneElement(w.Children.only(n),r))},t}(w.Component);function Xu(){}function Ju(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zu(e,t){var n=Object.create(null);return e&&I.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&R(e)?t(e):e}(e)}),n}function Qu(e,t,n){return null!=n[t]?n[t]:e.props[t]}function ec(e,t,n){var r=Zu(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];s[o[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(R(a)){var s=i in t,l=i in r,u=t[i],c=R(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&R(u)&&(o[i]=A(a,{onExited:n.bind(null,a),in:u.props.in,exit:Qu(a,"exit",e),enter:Qu(a,"enter",e)})):o[i]=A(a,{in:!1}):o[i]=A(a,{onExited:n.bind(null,a),in:!0,exit:Qu(a,"exit",e),enter:Qu(a,"enter",e)})}}),o}Yu.contextType=Bu,Yu.propTypes={},Yu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xu,onEntering:Xu,onEntered:Xu,onExit:Xu,onExiting:Xu,onExited:Xu},Yu.UNMOUNTED=Vu,Yu.EXITED=Wu,Yu.ENTERING=Uu,Yu.ENTERED=Gu,Yu.EXITING=Ku;var tc=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},nc=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Ju(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}$u(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,Zu(n.children,function(e){return A(e,{onExited:r.bind(null,e),in:!0,appear:Qu(e,"appear",n),enter:Qu(e,"enter",n),exit:Qu(e,"exit",n)})})):ec(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Zu(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=qn({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Ln(e,["component","childFactory"]),o=this.state.contextValue,i=tc(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?w.createElement(Bu.Provider,{value:o},i):w.createElement(Bu.Provider,{value:o},w.createElement(t,r,i))},t}(w.Component);nc.propTypes={},nc.defaultProps={component:"div",childFactory:function(e){return e}};const rc=e=>e.scrollTop;function oc(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 ic(e){return ws("MuiPaper",e)}Cs("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 ac=["className","component","elevation","square","variant"],sc=Mu("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 qn({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&&qn({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Vl.alpha("#fff",Ou(t.elevation))}, ${Vl.alpha("#fff",Ou(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),lc=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=Ln(n,ac),u=qn({},n,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return fl({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},ic,o)})(u);return Yt.jsx(sc,qn({as:o,ownerState:u,className:ys(c.root,r),ref:t},l))});const uc=Cs("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),cc=["center","classes","className"];let dc,pc,fc,hc,mc=e=>e;const gc=Li(dc||(dc=mc`
|
|
18
18
|
0% {
|
|
19
19
|
transform: scale(0);
|
|
20
20
|
opacity: 0.1;
|
|
@@ -87,7 +87,7 @@ function Ki(e,t){let n;return n=t?Di(e).withConfig({displayName:t.label,shouldFo
|
|
|
87
87
|
animation-iteration-count: infinite;
|
|
88
88
|
animation-delay: 200ms;
|
|
89
89
|
}
|
|
90
|
-
`),uc.rippleVisible,gc,550,({theme:e})=>e.transitions.easing.easeInOut,uc.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,uc.child,uc.childLeaving,bc,550,({theme:e})=>e.transitions.easing.easeInOut,uc.childPulsate,vc,({theme:e})=>e.transitions.easing.easeInOut),Sc=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Ln(n,cc),[s,l]=E.useState([]),u=E.useRef(0),c=E.useRef(null);E.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=E.useRef(!1),p=nl(),f=E.useRef(null),h=E.useRef(null),m=E.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l(e=>[...e,Yt.jsx(xc,{classes:{ripple:ys(o.ripple,uc.ripple),rippleVisible:ys(o.rippleVisible,uc.rippleVisible),ripplePulsate:ys(o.ripplePulsate,uc.ripplePulsate),child:ys(o.child,uc.child),childLeaving:ys(o.childLeaving,uc.childLeaving),childPulsate:ys(o.childPulsate,uc.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 s=a?null:h.current,l=s?s.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(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,()=>{f.current&&(f.current(),f.current=null)})):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},[r,m,p]),b=E.useCallback(()=>{g({},{pulsate:!0})},[g]),v=E.useCallback((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,()=>{v(e,t)});f.current=null,l(e=>e.length>0?e.slice(1):e),c.current=t},[p]);return E.useImperativeHandle(t,()=>({pulsate:b,start:g,stop:v}),[b,g,v]),Yt.jsx(yc,qn({className:ys(uc.root,o.root,i),ref:h},a,{children:Yt.jsx(nc,{component:null,exit:!0,children:s})}))});function wc(e){return ws("MuiButtonBase",e)}const Cc=Cs("MuiButtonBase",["root","disabled","focusVisible"]),Ec=["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"],Rc=Mu("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"},[`&.${Cc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ac=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:C,onTouchEnd:R,onTouchMove:A,onTouchStart:I,tabIndex:k=0,TouchRippleProps:P,touchRippleRef:M,type:D}=n,T=Ln(n,Ec),O=E.useRef(null),q=E.useRef(null),L=Zs(q,M),{isFocusVisibleRef:N,onFocus:j,onBlur:_,ref:z}=dl(),[F,$]=E.useState(!1);l&&F&&$(!1),E.useImperativeHandle(r,()=>({focusVisible:()=>{$(!0),O.current.focus()}}),[]);const[H,B]=E.useState(!1);E.useEffect(()=>{B(!0)},[]);const V=H&&!u&&!l;function W(e,t,n=c){return Js(r=>{t&&t(r);return!n&&q.current&&q.current[e](r),!0})}E.useEffect(()=>{F&&d&&!u&&H&&q.current.pulsate()},[u,d,F,H]);const U=W("start",S),G=W("stop",m),K=W("stop",g),Y=W("stop",C),X=W("stop",e=>{F&&e.preventDefault(),w&&w(e)}),J=W("start",I),Z=W("stop",R),Q=W("stop",A),ee=W("stop",e=>{_(e),!1===N.current&&$(!1),f&&f(e)},!1),te=Js(e=>{O.current||(O.current=e.currentTarget),j(e),!0===N.current&&($(!0),v&&v(e)),b&&b(e)}),ne=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=E.useRef(!1),oe=Js(e=>{d&&!re.current&&F&&q.current&&" "===e.key&&(re.current=!0,q.current.stop(e,()=>{q.current.start(e)})),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))}),ie=Js(e=>{d&&" "===e.key&&q.current&&F&&!e.defaultPrevented&&(re.current=!1,q.current.stop(e,()=>{q.current.pulsate(e)})),x&&x(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)});let ae=s;"button"===ae&&(T.href||T.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===D?"button":D,se.disabled=l):(T.href||T.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=Zs(t,z,O),ue=qn({},n,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=fl({root:["root",t&&"disabled",n&&"focusVisible"]},wc,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Yt.jsxs(Rc,qn({as:ae,className:ys(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:Y,onDragLeave:K,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:k,type:D},se,T,{children:[i,V?Yt.jsx(Sc,qn({ref:L,center:o},P)):null]}))});function Ic(e){return ws("MuiIconButton",e)}const kc=Cs("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Pc=["edge","children","className","color","disabled","disableFocusRipple","size"],Mc=Mu(Ac,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${ca(n.color)}`],n.edge&&t[`edge${ca(n.edge)}`],t[`size${ca(n.size)}`]]}})(({theme:e,ownerState:t})=>qn({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Vl.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return qn({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&qn({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":qn({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vl.alpha(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${kc.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Dc=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium"}=n,c=Ln(n,Pc),d=qn({},n,{edge:r,color:a,disabled:s,disableFocusRipple:l,size:u}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return fl({root:["root",n&&"disabled","default"!==r&&`color${ca(r)}`,o&&`edge${ca(o)}`,`size${ca(i)}`]},Ic,t)})(d);return Yt.jsx(Mc,qn({className:ys(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))});function Tc(e){return ws("MuiTypography",e)}Cs("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Oc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],qc=Mu("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${ca(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>qn({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})),Lc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Nc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},jc=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiTypography"}),r=(e=>Nc[e]||e)(n.color),o=hs(qn({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Lc}=o,f=Ln(o,Oc),h=qn({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||Lc[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return fl({root:["root",i,"inherit"!==e.align&&`align${ca(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Tc,a)})(h);return Yt.jsx(qc,qn({as:m,ref:t,ownerState:h,className:ys(g.root,a)},f))});const _c=E.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=E.useState(null),s=Zs(E.isValidElement(n)?yl(n):null,t);if(js(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),js(()=>{if(i&&!o)return Us(t,i),()=>{Us(t,null)}},[t,i,o]),o){if(E.isValidElement(n)){const e={ref:s};return E.cloneElement(n,e)}return Yt.jsx(E.Fragment,{children:n})}return Yt.jsx(E.Fragment,{children:i?W.createPortal(n,i):i})}),zc=["onChange","maxRows","minRows","style","value"];function Fc(e){return parseInt(e,10)||0}const $c={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Hc(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Bc=E.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=Ln(e,zc),{current:l}=E.useRef(null!=a),u=E.useRef(null),c=Zs(t,u),d=E.useRef(null),p=E.useRef(null),f=E.useCallback(()=>{const t=u.current,n=p.current;if(!t||!n)return;const i=Ws(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,s=Fc(i.paddingBottom)+Fc(i.paddingTop),l=Fc(i.borderBottomWidth)+Fc(i.borderTopWidth),c=n.scrollHeight;n.value="x";const d=n.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-c)<=1}},[r,o,e.placeholder]),h=Js(()=>{const e=u.current,t=f();if(!e||!t||Hc(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n}),m=E.useCallback(()=>{const e=u.current,t=f();if(!e||!t||Hc(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[f]),g=E.useRef(-1);js(()=>{const e=Bs(m),t=null==u?void 0:u.current;if(!t)return;const n=Ws(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{h()&&(r.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[f,m,h]),js(()=>{m()});return Yt.jsxs(E.Fragment,{children:[Yt.jsx("textarea",qn({value:a,onChange:e=>{l||m(),n&&n(e)},ref:c,rows:o,style:i},s)),Yt.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:qn({},$c,i,{paddingTop:0,paddingBottom:0})})]})});function Vc({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}const Wc=E.createContext(void 0);function Uc(){return E.useContext(Wc)}function Gc(e){return Yt.jsx(ps,qn({},e,{defaultTheme:du,themeId:On}))}function Kc(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Yc(e,t=!1){return e&&(Kc(e.value)&&""!==e.value||t&&Kc(e.defaultValue)&&""!==e.defaultValue)}function Xc(e){return ws("MuiInputBase",e)}const Jc=Cs("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Zc=["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"],Qc=(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${ca(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},ed=(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]},td=Mu("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Qc})(({theme:e,ownerState:t})=>qn({},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",[`&.${Jc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&qn({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),nd=Mu("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ed})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=qn({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 qn({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] + .${Jc.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},[`&.${Jc.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"})}),rd=Yt.jsx(Gc,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),od=E.forwardRef(function(e,t){var n;const r=qu({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:x,multiline:S=!1,name:w,onBlur:C,onChange:R,onClick:A,onFocus:I,onKeyDown:k,onKeyUp:P,placeholder:M,readOnly:D,renderSuffix:T,rows:O,slotProps:q={},slots:L={},startAdornment:N,type:j="text",value:_}=r,z=Ln(r,Zc),F=null!=b.value?b.value:_,{current:$}=E.useRef(null!=F),H=E.useRef(),B=E.useCallback(e=>{},[]),V=Zs(H,v,b.ref,B),[W,U]=E.useState(!1),G=Uc(),K=Vc({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:W,E.useEffect(()=>{!G&&d&&W&&(U(!1),C&&C())},[G,d,W,C]);const Y=G&&G.onFilled,X=G&&G.onEmpty,J=E.useCallback(e=>{Yc(e)?Y&&Y():X&&X()},[Y,X]);js(()=>{$&&J({value:F})},[F,J,$]);E.useEffect(()=>{J(H.current)},[]);let Z=g,Q=b;S&&"input"===Z&&(Q=qn(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:x},Q),Z=Bc);E.useEffect(()=>{G&&G.setAdornedStart(Boolean(N))},[G,N]);const ee=qn({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:S,size:K.size,startAdornment:N,type:j}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return fl({root:["root",`color${ca(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${ca(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Xc,t)})(ee),ne=L.root||l.Root||td,re=q.root||u.root||{},oe=L.input||l.Input||nd;return Q=qn({},Q,null!=(n=q.input)?n:u.input),Yt.jsxs(E.Fragment,{children:[!p&&rd,Yt.jsxs(ne,qn({},re,!hl(ne)&&{ownerState:qn({},ee,re.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),A&&A(e)}},z,{className:ys(te.root,re.className,s,D&&"MuiInputBase-readOnly"),children:[N,Yt.jsx(Wc.Provider,{value:null,children:Yt.jsx(oe,qn({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:K.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:w,placeholder:M,readOnly:D,required:K.required,rows:O,value:F,onKeyDown:k,onKeyUp:P,type:j},Q,!hl(oe)&&{as:Z,ownerState:qn({},ee,Q.ownerState)},{ref:V,className:ys(te.input,Q.className,D&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),b.onBlur&&b.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(Dn(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(I&&I(e),b.onFocus&&b.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T(qn({},K,{startAdornment:N})):null]}))]})});function id(e){return ws("MuiInput",e)}const ad=qn({},Jc,Cs("MuiInput",["root","underline","input"]));function sd(e){return ws("MuiOutlinedInput",e)}const ld=qn({},Jc,Cs("MuiOutlinedInput",["root","notchedOutline","input"]));function ud(e){return ws("MuiFilledInput",e)}const cd=qn({},Jc,Cs("MuiFilledInput",["root","underline","input"]));var dd=zu(Yt.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const pd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],fd={entering:{opacity:1},entered:{opacity:1}},hd=E.forwardRef(function(e,t){const n=pu(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:b=Yu}=e,v=Ln(e,pd),y=E.useRef(null),x=Zs(y,yl(a),t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},w=S(d),C=S((e,t)=>{rc(e);const r=oc({style:m,timeout:g,easing:s},{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(h),I=S(e=>{const t=oc({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)}),k=S(f);return Yt.jsx(b,qn({appear:i,in:l,nodeRef:y,onEnter:C,onEntered:R,onEntering:w,onExit:I,onExited:k,onExiting:A,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>E.cloneElement(a,qn({style:qn({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},fd[e],m,a.props.style),ref:x},t))}))});function md(e){return ws("MuiBackdrop",e)}Cs("MuiBackdrop",["root","invisible"]);const gd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],bd=Mu("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>qn({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"})),vd=E.forwardRef(function(e,t){var n,r,o;const i=qu({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=hd,transitionDuration:g}=i,b=Ln(i,gd),v=qn({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return fl({root:["root",n&&"invisible"]},md,t)})(v),x=null!=(n=f.root)?n:c.root;return Yt.jsx(m,qn({in:p,timeout:g},b,{children:Yt.jsx(bd,qn({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:l,className:ys(y.root,s,null==x?void 0:x.className),ownerState:qn({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}),yd=Cs("MuiBox",["root"]),xd=cu(),Sd=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Ki("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(rs);return E.forwardRef(function(e,a){const s=cs(n),l=hs(e),{className:u,component:c="div"}=l,d=Ln(l,xs);return Yt.jsx(i,qn({as:c,ref:a,className:ys(u,o?o(r):r),theme:t&&s[t]||s},d))})}({themeId:On,defaultTheme:xd,defaultClassName:yd.root,generateClassName:bs.generate});function wd(e){return ws("MuiButton",e)}const Cd=Cs("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Ed=E.createContext({}),Rd=E.createContext(void 0),Ad=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Id=e=>qn({},"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}}),kd=Mu(Ac,{shouldForwardProp:e=>Pu(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ca(n.color)}`],t[`size${ca(n.size)}`],t[`${n.variant}Size${ca(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 qn({},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":qn({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Vl.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vl.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vl.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":qn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Cd.focusVisible}`]:qn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Cd.disabled}`]:qn({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 ${Vl.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Cd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Cd.disabled}`]:{boxShadow:"none"}}),Pd=Mu("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ca(n.size)}`]]}})(({ownerState:e})=>qn({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Id(e))),Md=Mu("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ca(n.size)}`]]}})(({ownerState:e})=>qn({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Id(e))),Dd=E.forwardRef(function(e,t){const n=E.useContext(Ed),r=E.useContext(Rd),o=qu({props:Ns(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,y=Ln(o,Ad),x=qn({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return qn({},a,fl({root:["root",i,`${i}${ca(t)}`,`size${ca(o)}`,`${i}Size${ca(o)}`,`color${ca(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ca(o)}`],endIcon:["icon","endIcon",`iconSize${ca(o)}`]},wd,a))})(x),w=g&&Yt.jsx(Pd,{className:S.startIcon,ownerState:x,children:g}),C=p&&Yt.jsx(Md,{className:S.endIcon,ownerState:x,children:p}),R=r||"";return Yt.jsxs(kd,qn({ownerState:x,className:ys(n.className,S.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:ys(S.focusVisible,f),ref:t,type:b},y,{classes:S,children:[w,i,C]}))});function Td(e){return ws("PrivateSwitchBase",e)}Cs("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Od=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],qd=Mu(Ac,{name:"MuiSwitchBase"})(({ownerState:e})=>qn({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),Ld=Mu("input",{name:"MuiSwitchBase",shouldForwardProp:Pu})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Nd=E.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:u=!1,icon:c,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:b,readOnly:v,required:y=!1,tabIndex:x,type:S,value:w}=e,C=Ln(e,Od),[E,R]=Xs({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),A=Uc();let I=s;A&&void 0===I&&(I=A.disabled);const k="checkbox"===S||"radio"===S,P=qn({},e,{checked:E,disabled:I,disableFocusRipple:l,edge:u}),M=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return fl({root:["root",n&&"checked",r&&"disabled",o&&`edge${ca(o)}`],input:["input"]},Td,t)})(P);return Yt.jsxs(qd,qn({component:"span",className:ys(M.root,i),centerRipple:!0,focusRipple:!l,disabled:I,tabIndex:null,role:void 0,onFocus:e=>{b&&b(e),A&&A.onFocus&&A.onFocus(e)},onBlur:e=>{m&&m(e),A&&A.onBlur&&A.onBlur(e)},ownerState:P,ref:t},C,{children:[Yt.jsx(Ld,qn({autoFocus:n,checked:r,defaultChecked:a,className:M.input,disabled:I,id:k?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;R(t),g&&g(e,t)},readOnly:v,ref:f,required:y,ownerState:P,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),E?o:c]}))});var jd=zu(Yt.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),_d=zu(Yt.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),zd=zu(Yt.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Fd(e){return ws("MuiCheckbox",e)}const $d=Cs("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Hd=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Bd=Mu(Nd,{shouldForwardProp:e=>Pu(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ca(n.size)}`],"default"!==n.color&&t[`color${ca(n.color)}`]]}})(({theme:e,ownerState:t})=>qn({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vl.alpha("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${$d.checked}, &.${$d.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${$d.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Vd=Yt.jsx(_d,{}),Wd=Yt.jsx(jd,{}),Ud=Yt.jsx(zd,{}),Gd=E.forwardRef(function(e,t){var n,r;const o=qu({props:e,name:"MuiCheckbox"}),{checkedIcon:i=Vd,color:a="primary",icon:s=Wd,indeterminate:l=!1,indeterminateIcon:u=Ud,inputProps:c,size:d="medium",className:p}=o,f=Ln(o,Hd),h=l?u:s,m=l?u:i,g=qn({},o,{color:a,indeterminate:l,size:d}),b=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e;return qn({},t,fl({root:["root",n&&"indeterminate",`color${ca(r)}`,`size${ca(o)}`]},Fd,t))})(g);return Yt.jsx(Bd,qn({type:"checkbox",inputProps:qn({"data-indeterminate":l},c),icon:E.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:E.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:ys(b.root,p)},f,{classes:b}))});function Kd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Yd(e){return parseInt(Ws(e).getComputedStyle(e).paddingRight,10)||0}function Xd(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&&Kd(e,o)})}function Jd(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function Zd(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Vs(e);return t.body===e?Ws(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=pl(Vs(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Yd(r)+e}px`;const t=Vs(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Yd(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Vs(r).body;else{const t=r.parentElement,n=Ws(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 Qd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ep(e){const t=[],n=[];return Array.from(e.querySelectorAll(Qd)).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 tp(){return!0}function np(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=ep,isEnabled:a=tp,open:s}=e,l=E.useRef(!1),u=E.useRef(null),c=E.useRef(null),d=E.useRef(null),p=E.useRef(null),f=E.useRef(!1),h=E.useRef(null),m=Zs(yl(t),h),g=E.useRef(null);E.useEffect(()=>{s&&h.current&&(f.current=!n)},[n,s]),E.useEffect(()=>{if(!s||!h.current)return;const e=Vs(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),E.useEffect(()=>{if(!s||!h.current)return;const e=Vs(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==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(h.current)),n.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Yt.jsxs(E.Fragment,{children:[Yt.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Yt.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const rp=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&&Kd(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);Xd(t,e.mount,e.modalRef,r,!0);const o=Jd(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=Jd(this.containers,t=>-1!==t.modals.indexOf(e)),r=this.containers[n];r.restore||(r.restore=Zd(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Jd(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&&Kd(e.modalRef,t),Xd(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&&Kd(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function op(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=rp,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=E.useRef({}),f=E.useRef(null),h=E.useRef(null),m=Zs(h,d),[g,b]=E.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},w=Js(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Vs(f.current).body;o.add(x(),e),h.current&&S()}),C=E.useCallback(()=>o.isTopModal(x()),[o]),R=Js(e=>{f.current=e,e&&(c&&C()?S():h.current&&Kd(h.current,y))}),A=E.useCallback(()=>{o.remove(x(),y)},[y,o]);E.useEffect(()=>()=>{A()},[A]),E.useEffect(()=>{c?w():v&&i||A()},[c,A,v,i,w]);const I=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},k=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=ml(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=qn({},n,t);return qn({role:"presentation"},r,{onKeyDown:I(r),ref:m})},getBackdropProps:(e={})=>qn({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:Hs(()=>{b(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:Hs(()=>{b(!0),s&&s(),i&&A()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:C,exited:g,hasTransition:v}}function ip(e){return ws("MuiModal",e)}Cs("MuiModal",["root","hidden","backdrop"]);const ap=["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"],sp=Mu("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})=>qn({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),lp=Mu(vd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),up=E.forwardRef(function(e,t){var n,r,o,i,a,s;const l=qu({name:"MuiModal",props:e}),{BackdropComponent:u=lp,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:C=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:I,open:k,slotProps:P,slots:M}=l,D=Ln(l,ap),T=qn({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:R,keepMounted:A}),{getRootProps:O,getBackdropProps:q,getTransitionProps:L,portalRef:N,isTopModal:j,exited:_,hasTransition:z}=op(qn({},T,{rootRef:t})),F=qn({},T,{exited:_}),$=(e=>{const{open:t,exited:n,classes:r}=e;return fl({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},ip,r)})(F),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),z){const{onEnter:e,onExited:t}=L();H.onEnter=e,H.onExited=t}const B=null!=(n=null!=(r=null==M?void 0:M.root)?r:g.Root)?n:sp,V=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==P?void 0:P.root)?a:b.root,U=null!=(s=null==P?void 0:P.backdrop)?s:b.backdrop,G=vl({elementType:B,externalSlotProps:W,externalForwardedProps:D,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:F,className:ys(d,null==W?void 0:W.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),K=vl({elementType:V,externalSlotProps:U,additionalProps:c,getSlotProps:e=>q(qn({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ys(null==U?void 0:U.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:F});return A||k||z&&!_?Yt.jsx(_c,{ref:N,container:h,disablePortal:S,children:Yt.jsxs(B,qn({},G,{children:[!R&&u?Yt.jsx(V,qn({},K)):null,Yt.jsx(np,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:w,isEnabled:j,open:k,children:E.cloneElement(f,H)})]}))}):null});function cp(e){return ws("MuiDivider",e)}const dp=Cs("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),pp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],fp=Mu("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})=>qn({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)`:Vl.alpha(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>qn({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>qn({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>qn({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>qn({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),hp=Mu("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>qn({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)`})),mp=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Ln(n,pp),h=qn({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return fl({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},cp,r)})(h);return Yt.jsx(fp,qn({as:a,className:ys(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?Yt.jsx(hp,{className:m.wrapper,ownerState:h,children:o}):null}))});mp.muiSkipListHighlight=!0;const gp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],bp=Mu(td,{shouldForwardProp:e=>Pu(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Qc(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)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return qn({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}},[`&.${cd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${cd.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!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"},[`&.${cd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${cd.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(.${cd.disabled}, .${cd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${cd.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&qn({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}))}),vp=Mu(nd,{name:"MuiFilledInput",slot:"Input",overridesResolver:ed})(({theme:e,ownerState:t})=>qn({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=qu({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=Ln(a,gp),g=qn({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:n}=e;return qn({},t,fl({root:["root",!n&&"underline"],input:["input"]},ud,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?ea(v,null!=p?p:l):v,x=null!=(n=null!=(r=f.root)?r:s.Root)?n:bp,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:vp;return Yt.jsx(od,qn({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))});yp.muiName="Input";const xp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Sp(e){return`scale(${e}, ${e**2})`}const wp={entering:{opacity:1,transform:Sp(1)},entered:{opacity:1,transform:"none"}},Cp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ep=E.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Yu}=e,g=Ln(e,xp),b=nl(),v=E.useRef(),y=pu(),x=E.useRef(null),S=Zs(x,yl(o),t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=w(u),R=w((e,t)=>{rc(e);const{duration:n,delay:r,easing:o}=oc({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(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:Cp?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)}),A=w(l),I=w(p),k=w(e=>{const{duration:t,delay:n,easing:r}=oc({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(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:Cp?o:.666*o,delay:Cp?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Sp(.75),c&&c(e)}),P=w(d);return Yt.jsx(m,qn({appear:r,in:a,nodeRef:x,onEnter:R,onEntered:A,onEntering:C,onExit:k,onExited:P,onExiting:I,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>E.cloneElement(o,qn({style:qn({opacity:0,transform:Sp(.75),visibility:"exited"!==e||a?void 0:"hidden"},wp[e],f,o.props.style),ref:S},t))}))});Ep.muiSupportAuto=!0;const Rp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Ap=Mu(td,{shouldForwardProp:e=>Pu(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Qc(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})`),qn({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"},[`&.${ad.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ad.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(.${ad.disabled}, .${ad.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ad.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Ip=Mu(nd,{name:"MuiInput",slot:"Input",overridesResolver:ed})({}),kp=E.forwardRef(function(e,t){var n,r,o,i;const a=qu({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=Ln(a,Rp),b=(e=>{const{classes:t,disableUnderline:n}=e;return qn({},t,fl({root:["root",!n&&"underline"],input:["input"]},id,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?ea(null!=f?f:u,v):v,x=null!=(n=null!=(r=h.root)?r:l.Root)?n:Ap,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:Ip;return Yt.jsx(od,qn({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))});function Pp(e){return ws("MuiInputAdornment",e)}kp.muiName="Input";const Mp=Cs("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Dp;const Tp=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Op=Mu("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ca(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(({theme:e,ownerState:t})=>qn({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${Mp.positionStart}&:not(.${Mp.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),qp=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:u}=n,c=Ln(n,Tp),d=Uc()||{};let p=u;u&&d.variant,d&&!p&&(p=d.variant);const f=qn({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:l,variant:p}),h=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return fl({root:["root",n&&"disablePointerEvents",o&&`position${ca(o)}`,a,r&&"hiddenLabel",i&&`size${ca(i)}`]},Pp,t)})(f);return Yt.jsx(Wc.Provider,{value:null,children:Yt.jsx(Op,qn({as:i,ownerState:f,className:ys(h.root,o),ref:t},c,{children:"string"!=typeof r||s?Yt.jsxs(E.Fragment,{children:["start"===l?Dp||(Dp=Yt.jsx("span",{className:"notranslate",children:""})):null,r]}):Yt.jsx(jc,{color:"text.secondary",children:r})}))})});function Lp(e){return ws("MuiLink",e)}const Np=Cs("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),jp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},_p=({theme:e,ownerState:t})=>{const n=(e=>jp[e]||e)(t.color),r=pa(e,`palette.${n}`,!1)||t.color,o=pa(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Vl.alpha(r,.4)},zp=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Fp=Mu(jc,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ca(n.underline)}`],"button"===n.component&&t.button]}})(({theme:e,ownerState:t})=>qn({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&qn({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:_p({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Np.focusVisible}`]:{outline:"auto"}})),$p=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:u="always",variant:c="inherit",sx:d}=n,p=Ln(n,zp),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=dl(),[b,v]=E.useState(!1),y=Zs(t,g),x=qn({},n,{color:o,component:i,focusVisible:b,underline:u,variant:c}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return fl({root:["root",`underline${ca(o)}`,"button"===n&&"button",r&&"focusVisible"]},Lp,t)})(x);return Yt.jsx(Fp,qn({color:o,className:ys(S.root,r),classes:l,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),s&&s(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(jp).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}),Hp=E.createContext({});function Bp(e){return ws("MuiList",e)}Cs("MuiList",["root","padding","dense","subheader"]);const Vp=["children","className","component","dense","disablePadding","subheader"],Wp=Mu("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})=>qn({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Up=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,u=Ln(n,Vp),c=E.useMemo(()=>({dense:a}),[a]),d=qn({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return fl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Bp,t)})(d);return Yt.jsx(Hp.Provider,{value:c,children:Yt.jsxs(Wp,qn({as:i,className:ys(p.root,o),ref:t,ownerState:d},u,{children:[l,r]}))})});function Gp(e){return ws("MuiListItem",e)}const Kp=Cs("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Yp=Cs("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Xp(e){return ws("MuiListItemSecondaryAction",e)}Cs("MuiListItemSecondaryAction",["root","disableGutters"]);const Jp=["className"],Zp=Mu("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>qn({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Qp=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Ln(n,Jp),i=qn({},n,{disableGutters:E.useContext(Hp).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return fl({root:["root",t&&"disableGutters"]},Xp,n)})(i);return Yt.jsx(Zp,qn({className:ys(a.root,r),ownerState:i,ref:t},o))});Qp.muiName="ListItemSecondaryAction";const ef=["className"],tf=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],nf=Mu("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})=>qn({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&qn({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Yp.root}`]:{paddingRight:48}},{[`&.${Kp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Kp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Kp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Kp.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"}},[`&.${Kp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),rf=Mu("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),of=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,className:s,component:l,components:u={},componentsProps:c={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:b=!1,focusVisibleClassName:v,secondaryAction:y,selected:x=!1,slotProps:S={},slots:w={}}=n,C=Ln(n.ContainerProps,ef),R=Ln(n,tf),A=E.useContext(Hp),I=E.useMemo(()=>({dense:f||A.dense||!1,alignItems:r,disableGutters:m}),[r,A.dense,f,m]),k=E.useRef(null);js(()=>{o&&k.current&&k.current.focus()},[o]);const P=E.Children.toArray(a),M=P.length&&(D=P[P.length-1],T=["ListItemSecondaryAction"],E.isValidElement(D)&&-1!==T.indexOf(null!=(O=D.type.muiName)?O:null==(q=D.type)||null==(q=q._payload)||null==(q=q.value)?void 0:q.muiName));var D,T,O,q;const L=qn({},n,{alignItems:r,autoFocus:o,button:i,dense:I.dense,disabled:h,disableGutters:m,disablePadding:g,divider:b,hasSecondaryAction:M,selected:x}),N=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return fl({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},Gp,r)})(L),j=Zs(k,t),_=w.root||u.Root||nf,z=S.root||c.root||{},F=qn({className:ys(N.root,z.className,s),disabled:h},R);let $=l||"li";return i&&(F.component=l||"div",F.focusVisibleClassName=ys(Kp.focusVisible,v),$=Ac),M?($=F.component||l?$:"div","li"===d&&("li"===$?$="div":"li"===F.component&&(F.component="div")),Yt.jsx(Hp.Provider,{value:I,children:Yt.jsxs(rf,qn({as:d,className:ys(N.container,p),ref:j,ownerState:L},C,{children:[Yt.jsx(_,qn({},z,!hl(_)&&{as:$,ownerState:qn({},L,z.ownerState)},F,{children:P})),P.pop()]}))})):Yt.jsx(Hp.Provider,{value:I,children:Yt.jsxs(_,qn({},z,{as:$,ref:j},!hl(_)&&{ownerState:qn({},L,z.ownerState)},F,{children:[P,y&&Yt.jsx(Qp,{children:y})]}))})});function af(e){return ws("MuiListItemIcon",e)}const sf=Cs("MuiListItemIcon",["root","alignItemsFlexStart"]),lf=["className"],uf=Mu("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})=>qn({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),cf=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Ln(n,lf),i=qn({},n,{alignItems:E.useContext(Hp).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return fl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},af,n)})(i);return Yt.jsx(uf,qn({className:ys(a.root,r),ownerState:i,ref:t},o))}),df=Cs("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),pf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ff(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function hf(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 gf(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&mf(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const bf=E.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Ln(e,pf),p=E.useRef(null),f=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});js(()=>{r&&p.current.focus()},[r]),E.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${pl(Vs(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}}),[]);const h=Zs(p,t);let m=-1;E.Children.forEach(i,(e,t)=>{E.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))});const g=E.Children.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),E.cloneElement(e,t)}return e});return Yt.jsx(Up,qn({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Vs(t).activeElement;if("ArrowDown"===n)e.preventDefault(),gf(t,r,l,s,ff);else if("ArrowUp"===n)e.preventDefault(),gf(t,r,l,s,hf);else if("Home"===n)e.preventDefault(),gf(t,null,l,s,ff);else if("End"===n)e.preventDefault(),gf(t,null,l,s,hf);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 l=r&&!o.repeating&&mf(r,o);o.previousKeyMatched&&(l||gf(t,r,!1,s,ff,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))});function vf(e){return ws("MuiPopover",e)}Cs("MuiPopover",["root","paper"]);const yf=["onEntering"],xf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Sf=["slotProps"];function wf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Cf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Ef(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Rf(e){return"function"==typeof e?e():e}const Af=Mu(up,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),If=Mu(lc,{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}),kf=E.forwardRef(function(e,t){var n,r,o;const i=qu({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Ep,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:R=!1}=i,A=Ln(i.TransitionProps,yf),I=Ln(i,xf),k=null!=(n=null==y?void 0:y.paper)?n:b,P=E.useRef(),M=Zs(P,k.ref),D=qn({},i,{anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:S,transitionDuration:w,TransitionProps:A}),T=(e=>{const{classes:t}=e;return fl({root:["root"],paper:["paper"]},vf,t)})(D),O=E.useCallback(()=>{if("anchorPosition"===c)return u;const e=Rf(s),t=(e&&1===e.nodeType?e:Vs(P.current).body).getBoundingClientRect();return{top:t.top+wf(t,l.vertical),left:t.left+Cf(t,l.horizontal)}},[s,l.horizontal,l.vertical,u,c]),q=E.useCallback(e=>({vertical:wf(e,x.vertical),horizontal:Cf(e,x.horizontal)}),[x.horizontal,x.vertical]),L=E.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=q(t);if("none"===c)return{top:null,left:null,transformOrigin:Ef(n)};const r=O();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,u=Ws(Rf(s)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(l>p){const e=l-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Ef(n)}},[s,c,O,q,m]),[N,j]=E.useState(g),_=E.useCallback(()=>{const e=P.current;if(!e)return;const t=L(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,j(!0)},[L]);E.useEffect(()=>(R&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_)),[s,R,_]);E.useEffect(()=>{g&&_()}),E.useImperativeHandle(a,()=>g?{updatePosition:()=>{_()}}:null,[g,_]),E.useEffect(()=>{if(!g)return;const e=Bs(()=>{_()}),t=Ws(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,g,_]);let z=w;"auto"!==w||S.muiSupportAuto||(z=void 0);const F=f||(s?Vs(Rf(s)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:Af,H=null!=(o=null==v?void 0:v.paper)?o:If,B=vl({elementType:H,externalSlotProps:qn({},k,{style:N?k.style:qn({},k.style,{opacity:0})}),additionalProps:{elevation:h,ref:M},ownerState:D,className:ys(T.paper,null==k?void 0:k.className)}),V=vl({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:I,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:D,className:ys(T.root,p)}),{slotProps:W}=V,U=Ln(V,Sf);return Yt.jsx($,qn({},U,!hl($)&&{slotProps:W,disableScrollLock:R},{children:Yt.jsx(S,qn({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),_()},onExited:()=>{j(!1)},timeout:z},A,{children:Yt.jsx(H,qn({},B,{children:d}))}))}))});function Pf(e){return ws("MuiMenu",e)}Cs("MuiMenu",["root","paper","list"]);const Mf=["onEntering"],Df=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Tf={vertical:"top",horizontal:"right"},Of={vertical:"top",horizontal:"left"},qf=Mu(kf,{shouldForwardProp:e=>Pu(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Lf=Mu(If,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Nf=Mu(bf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),jf=E.forwardRef(function(e,t){var n,r;const o=qu({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=Ln(o.TransitionProps,Mf),x=Ln(o,Df),S=(()=>{const e=E.useContext(Rl);return null!=e&&e})(),w=qn({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return fl({root:["root"],paper:["paper"],list:["list"]},Pf,t)})(w),R=i&&!l&&d,A=E.useRef(null);let I=-1;E.Children.map(a,(e,t)=>{E.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))});const k=null!=(n=b.paper)?n:Lf,P=null!=(r=v.paper)?r:p,M=vl({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[C.root,s]}),D=vl({elementType:k,externalSlotProps:P,ownerState:w,className:C.paper});return Yt.jsx(qf,qn({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Tf:Of,slots:{paper:k,root:b.root},slotProps:{root:M,paper:D},open:d,ref:t,transitionDuration:h,TransitionProps:qn({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:w},x,{classes:f,children:Yt.jsx(Nf,qn({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===I||l),autoFocusItem:R,variant:g},u,{className:ys(C.list,u.className),children:a}))}))});function _f(e){return ws("MuiMenuItem",e)}const zf=Cs("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ff=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],$f=Mu(Ac,{shouldForwardProp:e=>Pu(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})=>qn({},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"}},[`&.${zf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${zf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${zf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${zf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${zf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${dp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${dp.inset}`]:{marginLeft:52},[`& .${df.root}`]:{marginTop:0,marginBottom:0},[`& .${df.inset}`]:{paddingLeft:36},[`& .${sf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&qn({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${sf.root} svg`]:{fontSize:"1.25rem"}}))),Hf=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=n,p=Ln(n,Ff),f=E.useContext(Hp),h=E.useMemo(()=>({dense:i||f.dense||!1,disableGutters:s}),[f.dense,i,s]),m=E.useRef(null);js(()=>{r&&m.current&&m.current.focus()},[r]);const g=qn({},n,{dense:h.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return qn({},a,fl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},_f,a))})(n),v=Zs(m,t);let y;return n.disabled||(y=void 0!==c?c:-1),Yt.jsx(Hp.Provider,{value:h,children:Yt.jsx($f,qn({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:ys(b.focusVisible,l),className:ys(b.root,d)},p,{ownerState:g,classes:b}))})});function Bf(e){return ws("MuiNativeSelect",e)}const Vf=Cs("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Wf=["className","disabled","error","IconComponent","inputRef","variant"],Uf=({ownerState:e,theme:t})=>qn({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":qn({},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"},[`&.${Vf.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}}),Gf=Mu("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Pu,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Vf.multiple}`]:t.multiple}]}})(Uf),Kf=({ownerState:e,theme:t})=>qn({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Vf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Yf=Mu("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ca(n.variant)}`],n.open&&t.iconOpen]}})(Kf),Xf=E.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Ln(e,Wf),u=qn({},e,{disabled:r,variant:s,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return fl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ca(n)}`,i&&"iconOpen",r&&"disabled"]},Bf,t)})(u);return Yt.jsxs(E.Fragment,{children:[Yt.jsx(Gf,qn({ownerState:u,className:ys(c.select,n),disabled:r,ref:a||t},l)),e.multiple?null:Yt.jsx(Yf,{as:i,ownerState:u,className:c.icon})]})});var Jf;const Zf=["children","classes","className","label","notched"],Qf=Mu("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Pu})({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%"}),eh=Mu("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Pu})(({ownerState:e,theme:t})=>qn({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&&qn({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 th=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],nh=Mu(td,{shouldForwardProp:e=>Pu(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Qc})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return qn({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ld.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ld.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ld.focused} .${ld.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ld.error} .${ld.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ld.disabled} .${ld.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&qn({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),rh=Mu(function(e){const{className:t,label:n,notched:r}=e,o=Ln(e,Zf),i=null!=n&&""!==n,a=qn({},e,{notched:r,withLabel:i});return Yt.jsx(Qf,qn({"aria-hidden":!0,className:t,ownerState:a},o,{children:Yt.jsx(eh,{ownerState:a,children:i?Yt.jsx("span",{children:n}):Jf||(Jf=Yt.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}}),oh=Mu(nd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ed})(({theme:e,ownerState:t})=>qn({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})),ih=E.forwardRef(function(e,t){var n,r,o,i,a;const s=qu({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=s,g=Ln(s,th),b=(e=>{const{classes:t}=e;return qn({},t,fl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},sd,t))})(s),v=Uc(),y=Vc({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=qn({},s,{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:m}),S=null!=(n=null!=(r=h.root)?r:l.Root)?n:nh,w=null!=(o=null!=(i=h.input)?i:l.Input)?o:oh;return Yt.jsx(od,qn({slots:{root:S,input:w},renderSuffix:e=>Yt.jsx(rh,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Yt.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:m},g,{classes:qn({},b,{notchedOutline:null})}))});function ah(e){return ws("MuiSelect",e)}ih.muiName="Input";const sh=Cs("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var lh;const uh=["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"],ch=Mu("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${sh.select}`]:t.select},{[`&.${sh.select}`]:t[n.variant]},{[`&.${sh.error}`]:t.error},{[`&.${sh.multiple}`]:t.multiple}]}})(Uf,{[`&.${sh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),dh=Mu("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ca(n.variant)}`],n.open&&t.iconOpen]}})(Kf),ph=Mu("input",{shouldForwardProp:e=>ku(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 fh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function hh(e){return null==e||"string"==typeof e&&!e.trim()}const mh=E.forwardRef(function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:x,onChange:S,onClose:w,onFocus:C,onOpen:R,open:A,readOnly:I,renderValue:k,SelectDisplayProps:P={},tabIndex:M,value:D,variant:T="standard"}=e,O=Ln(e,uh),[q,L]=Xs({controlled:D,default:c,name:"Select"}),[N,j]=Xs({controlled:A,default:u,name:"Select"}),_=E.useRef(null),z=E.useRef(null),[F,$]=E.useState(null),{current:H}=E.useRef(null!=A),[B,V]=E.useState(),W=Zs(t,m),U=E.useCallback(e=>{z.current=e,e&&$(e)},[]),G=null==F?void 0:F.parentNode;E.useImperativeHandle(W,()=>({focus:()=>{z.current.focus()},node:_.current,value:q}),[q]),E.useEffect(()=>{u&&N&&F&&!H&&(V(a?null:G.clientWidth),z.current.focus())},[F,a]),E.useEffect(()=>{i&&z.current.focus()},[i]),E.useEffect(()=>{if(!g)return;const e=Vs(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[g]);const K=(e,t)=>{e?R&&R(t):w&&w(t),H||(V(a?null:G.clientWidth),j(e))},Y=E.Children.toArray(s),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(q)?q.slice():[];const t=q.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),q!==n&&(L(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||K(!1,t)}},J=null!==F&&N;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(Yc({value:q})||p)&&(k?Z=k(q):te=!0);const ne=Y.map(e=>{if(!E.isValidElement(e))return null;let t;if(v){if(!Array.isArray(q))throw new Error(Dn(2));t=q.some(t=>fh(t,e.props.value)),t&&te&&ee.push(e.props.children)}else t=fh(q,e.props.value),t&&te&&(Q=e.props.children);return E.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});te&&(Z=v?0===ee.length?null:ee.reduce((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e),[]):Q);let re,oe=B;!a&&H&&F&&(oe=G.clientWidth),re=void 0!==M?M:d?null:0;const ie=P.id||(y?`mui-component-select-${y}`:void 0),ae=qn({},e,{variant:T,value:q,open:J,error:f}),se=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return fl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ca(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},ah,t)})(ae),le=qn({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),ue=Ys();return Yt.jsxs(E.Fragment,{children:[Yt.jsx(ch,qn({ref:U,tabIndex:re,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!I){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),K(!0,e))}},onMouseDown:d||I?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),K(!0,e))},onBlur:e=>{!J&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:q,name:y}}),x(e))},onFocus:C},P,{ownerState:ae,className:ys(P.className,se.select,l),id:ie,children:hh(Z)?lh||(lh=Yt.jsx("span",{className:"notranslate",children:""})):Z})),Yt.jsx(ph,qn({"aria-invalid":f,value:Array.isArray(q)?q.join(","):q,name:y,ref:_,"aria-hidden":!0,onChange:e=>{const t=Y.find(t=>t.props.value===e.target.value);void 0!==t&&(L(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},O)),Yt.jsx(dh,{as:h,className:se.icon,ownerState:ae}),Yt.jsx(jf,qn({id:`menu-${y||""}`,anchorEl:G,open:J,onClose:e=>{K(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:qn({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:qn({},b.slotProps,{paper:qn({},le,{style:qn({minWidth:oe},null!=le?le.style:null)})}),children:ne}))]})}),gh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],bh=["root"],vh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Pu(e)&&"variant"!==e,slot:"Root"},yh=Mu(kp,vh)(""),xh=Mu(ih,vh)(""),Sh=Mu(yp,vh)(""),wh=E.forwardRef(function(e,t){const n=qu({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=dd,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:w,variant:C="outlined"}=n,R=Ln(n,gh),A=b?Xf:mh,I=Vc({props:n,muiFormControl:Uc(),states:["variant","error"]}),k=I.variant||C,P=qn({},n,{variant:k,classes:i}),M=(e=>{const{classes:t}=e;return t})(P),D=Ln(M,bh),T=d||{standard:Yt.jsx(yh,{ownerState:P}),outlined:Yt.jsx(xh,{label:f,ownerState:P}),filled:Yt.jsx(Sh,{ownerState:P})}[k],O=Zs(t,yl(T));return Yt.jsx(E.Fragment,{children:E.cloneElement(T,qn({inputComponent:A,inputProps:qn({children:o,error:I.error,IconComponent:u,variant:k,type:void 0,multiple:g},b?{id:c}:{autoWidth:r,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:m,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:qn({id:c},w)},p,{classes:p?ea(D,p.classes):D},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===k?{notched:!0}:{},{ref:O,className:ys(T.props.className,a,M.root)},!d&&{variant:k},R))})});wh.muiName="Select";const Ch=E.createContext();function Eh(e){return ws("MuiTable",e)}Cs("MuiTable",["root","stickyHeader"]);const Rh=["className","component","padding","size","stickyHeader"],Ah=Mu("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>qn({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":qn({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),Ih="table",kh=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiTable"}),{className:r,component:o=Ih,padding:i="normal",size:a="medium",stickyHeader:s=!1}=n,l=Ln(n,Rh),u=qn({},n,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:n}=e;return fl({root:["root",n&&"stickyHeader"]},Eh,t)})(u),d=E.useMemo(()=>({padding:i,size:a,stickyHeader:s}),[i,a,s]);return Yt.jsx(Ch.Provider,{value:d,children:Yt.jsx(Ah,qn({as:o,role:o===Ih?null:"table",ref:t,className:ys(c.root,r),ownerState:u},l))})}),Ph=E.createContext();function Mh(e){return ws("MuiTableBody",e)}Cs("MuiTableBody",["root"]);const Dh=["className","component"],Th=Mu("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Oh={variant:"body"},qh="tbody",Lh=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiTableBody"}),{className:r,component:o=qh}=n,i=Ln(n,Dh),a=qn({},n,{component:o}),s=(e=>{const{classes:t}=e;return fl({root:["root"]},Mh,t)})(a);return Yt.jsx(Ph.Provider,{value:Oh,children:Yt.jsx(Th,qn({className:ys(s.root,r),as:o,ref:t,role:o===qh?null:"rowgroup",ownerState:a},i))})});function Nh(e){return ws("MuiTableCell",e)}const jh=Cs("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),_h=["align","className","component","padding","scope","size","sortDirection","variant"],zh=Mu("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ca(n.size)}`],"normal"!==n.padding&&t[`padding${ca(n.padding)}`],"inherit"!==n.align&&t[`align${ca(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>qn({},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?Vl.lighten(Vl.alpha(e.palette.divider,1),.88):Vl.darken(Vl.alpha(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",[`&.${jh.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})),Fh=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=n,d=Ln(n,_h),p=E.useContext(Ch),f=E.useContext(Ph),h=f&&"head"===f.variant;let m;m=i||(h?"th":"td");let g=s;"td"===m?g=void 0:!g&&h&&(g="col");const b=c||f&&f.variant,v=qn({},n,{align:r,component:m,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(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 fl({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${ca(r)}`,"normal"!==o&&`padding${ca(o)}`,`size${ca(i)}`]},Nh,t)})(v);let x=null;return u&&(x="asc"===u?"ascending":"descending"),Yt.jsx(zh,qn({as:m,ref:t,className:ys(y.root,o),"aria-sort":x,scope:g,ownerState:v},d))});function $h(e){return ws("MuiTableContainer",e)}Cs("MuiTableContainer",["root"]);const Hh=["className","component"],Bh=Mu("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Vh=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiTableContainer"}),{className:r,component:o="div"}=n,i=Ln(n,Hh),a=qn({},n,{component:o}),s=(e=>{const{classes:t}=e;return fl({root:["root"]},$h,t)})(a);return Yt.jsx(Bh,qn({ref:t,as:o,className:ys(s.root,r),ownerState:a},i))});function Wh(e){return ws("MuiTableHead",e)}Cs("MuiTableHead",["root"]);const Uh=["className","component"],Gh=Mu("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Kh={variant:"head"},Yh="thead",Xh=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiTableHead"}),{className:r,component:o=Yh}=n,i=Ln(n,Uh),a=qn({},n,{component:o}),s=(e=>{const{classes:t}=e;return fl({root:["root"]},Wh,t)})(a);return Yt.jsx(Ph.Provider,{value:Kh,children:Yt.jsx(Gh,qn({as:o,className:ys(s.root,r),ref:t,role:o===Yh?null:"rowgroup",ownerState:a},i))})});function Jh(e){return ws("MuiTableRow",e)}const Zh=Cs("MuiTableRow",["root","selected","hover","head","footer"]),Qh=["className","component","hover","selected"],em=Mu("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,[`&.${Zh.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Zh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vl.alpha(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}))`:Vl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),tm="tr",nm=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiTableRow"}),{className:r,component:o=tm,hover:i=!1,selected:a=!1}=n,s=Ln(n,Qh),l=E.useContext(Ph),u=qn({},n,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),c=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return fl({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},Jh,t)})(u);return Yt.jsx(em,qn({as:o,ref:t,className:ys(c.root,r),role:o===tm?null:"row",ownerState:u},s))});function rm(e){return Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Yt.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function om({fontSize:e="medium",children:t=null,className:n=""}={}){return Yt.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})}function im(e={}){return Yt.jsx(om,{...e,children:Yt.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Yt.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Yt.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function am(e={}){return Yt.jsx(om,{fontSize:"medium",...e,children:Yt.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Yt.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Yt.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function sm(e){return Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Yt.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function lm(e={}){return Yt.jsx(om,{...e,children:Yt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yt.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Yt.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Yt.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function um(e={}){return Yt.jsx(om,{fontSize:"medium",...e,children:Yt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yt.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yt.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function cm({className:e}){return Yt.jsx(om,{fontSize:"small",className:e,children:Yt.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Yt.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yt.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Yt.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Yt.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Yt.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function dm(e={}){return Yt.jsx(om,{...e,children:Yt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yt.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yt.jsx("rect",{stroke:Tt.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var pm=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Tt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Tt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Yt.jsx(rm,{"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 ${Tt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Tt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`,borderRadius:jt,backgroundColor:Tt.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 ${Tt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Tt.WHITE,color:Tt.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:jt},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Tt.GREYSCALE_0_15,backgroundColor:Tt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Tt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Tt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Tt.GREEN_PALE},"&:active":{backgroundColor:Tt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Tt.GREEN_PALE,boxShadow:`0 0 0 3px ${$s(Tt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Tt.BLUE_PALE},"&:active":{backgroundColor:Tt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Tt.BLUE_PALE,boxShadow:`0 0 0 3px ${$s(Tt.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:jt,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Tt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Tt.GREYSCALE_0_42,backgroundColor:Tt.GREYSCALE_100_60,"&:active":{backgroundColor:Tt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Tt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Tt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Tt.PURPLE,"&.Mui-focusVisible":{borderColor:Tt.PURPLE,boxShadow:`0 0 0 3px ${$s(Tt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Tt.GREEN,"&.Mui-focusVisible":{borderColor:Tt.GREEN,boxShadow:`0 0 0 3px ${$s(Tt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Tt.BLUE,"&.Mui-focusVisible":{borderColor:Tt.BLUE,boxShadow:`0 0 0 3px ${$s(Tt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Tt.ORANGE,"&.Mui-focusVisible":{borderColor:Tt.ORANGE,boxShadow:`0 0 0 3px ${$s(Tt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Tt.RED,"&.Mui-focusVisible":{borderColor:Tt.RED,boxShadow:`0 0 0 3px ${$s(Tt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Tt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Tt.PURPLE_PALE},"&:active":{backgroundColor:Tt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Tt.PURPLE_PALE,boxShadow:`0 0 0 3px ${$s(Tt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Tt.GREEN_PALE},"&:active":{backgroundColor:Tt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Tt.GREEN_PALE,boxShadow:`0 0 0 3px ${$s(Tt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Tt.BLUE_PALE},"&:active":{backgroundColor:Tt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Tt.BLUE_PALE,boxShadow:`0 0 0 3px ${$s(Tt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Tt.ORANGE_PALE},"&:active":{backgroundColor:Tt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Tt.ORANGE_PALE,boxShadow:`0 0 0 3px ${$s(Tt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Tt.RED_PALE},"&:active":{backgroundColor:Tt.RED_DARK},"&.Mui-focusVisible":{borderColor:Tt.RED_PALE,boxShadow:`0 0 0 3px ${$s(Tt.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:Tt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Tt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:jt,boxShadow:`inset 0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Yt.jsx(sm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Ot,borderRadius:jt,color:Tt.TEXT_PRIMARY,backgroundColor:Tt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Tt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Tt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Tt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Tt.GREYSCALE_0_05,color:Tt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Tt.GREEN,borderColor:Tt.GREEN},"&.MuiChip-outlinedInfo":{color:Tt.BLUE,borderColor:Tt.BLUE},"&.MuiChip-outlinedWarning":{color:Tt.ORANGE,borderColor:Tt.ORANGE},"&.MuiChip-outlinedError":{color:Tt.RED,borderColor:Tt.RED}},outlined:{border:`solid 1px ${Tt.GREYSCALE_0_15}`,backgroundColor:Tt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:jt,boxShadow:"none",backgroundColor:Tt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Tt.GREEN,borderColor:Tt.GREEN},outlinedSecondary:{color:Tt.BLUE,borderColor:Tt.BLUE},label:{fontFamily:Ht.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Yt.jsx(sm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Yt.jsx(rm,{"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:jt},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:jt,fontSize:qt,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Tt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Tt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Tt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Tt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Tt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:jt,border:`solid 1px ${Tt.GREYSCALE_0_15}`,color:Tt.GREYSCALE_0_60,marginRight:0,width:Nt,height:Nt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Tt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:jt,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Tt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:qt}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Ot,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Tt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Tt.GREYSCALE_25,fontSize:Ot,fontFamily:Ht.FONT_FAMILY,fontWeight:Ft,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Tt.TEXT_PRIMARY},"&.Mui-error":{color:Tt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Tt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:zt,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Tt.TEXT_SECONDARY,content:"'(required)'",fontWeight:zt,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:qt,lineHeight:"16px",backgroundColor:Tt.WHITE,borderRadius:jt,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Tt.GREYSCALE_0_05}`,borderColor:Tt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Tt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Tt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Tt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Tt.RED}`,boxShadow:`0px 0px 0px 1px ${Tt.RED}, inset 0 2px 0 0 ${Tt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Tt.GREYSCALE_0_10}`,borderColor:Tt.GREYSCALE_0_10,backgroundColor:Tt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Tt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Tt.GREYSCALE_0_15,borderRadius:jt,boxShadow:`inset 0 2px 0 0 ${Tt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Yt.jsx(rm,{...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:Tt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Tt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Tt.GREYSCALE_0_03},"&:active":{backgroundColor:Tt.GREYSCALE_0_10},"&:focus":{backgroundColor:Tt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Tt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Tt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Tt.GREYSCALE_0_30,"&:hover":{backgroundColor:Tt.GREYSCALE_0_0,borderColor:Tt.GREYSCALE_0_15},"& ~svg":{color:Tt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Tt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:jt}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Tt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Tt.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:qt,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Ot,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Ot,fontWeight:Ft,color:Tt.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Ft}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Tt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Tt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Yt.jsx(um,{}),checkedIcon:Yt.jsx(am,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Tt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Tt.GREEN_PALE,boxShadow:`0 0 0 3px ${$s(Tt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Tt.BLUE_PALE,boxShadow:`0 0 0 3px ${$s(Tt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Tt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Tt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Yt.jsx(dm,{}),checkedIcon:Yt.jsx(im,{}),indeterminateIcon:Yt.jsx(lm,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:jt,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Tt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Tt.GREYSCALE_0_55,color:Tt.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:Tt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Tt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Tt.GREYSCALE_0_55,"&:hover":{color:Tt.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:Tt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Tt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:qt,color:Tt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Ft},secondary:{fontSize:Ot,color:Tt.GREYSCALE_45,fontWeight:zt,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:qt,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:qt,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Tt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Ot,borderBottom:`solid 1px ${Tt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:qt,color:Tt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Tt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Tt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Tt.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Tt.RED}}},"&.Mui-focusVisible":{backgroundColor:Tt.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:Tt.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:Tt.GREEN,height:"24px","&.Mui-disabled":{color:Tt.GREYSCALE_0_15}},rail:{backgroundColor:Tt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Tt.GREYSCALE_0_05}`,borderRadius:jt,boxShadow:`inset 0px 0px 0px 1px ${Tt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Tt.GREYSCALE_0_05}`,borderRadius:jt},thumb:{height:"16px",width:"16px",borderRadius:jt,backgroundColor:Tt.WHITE,boxShadow:`0px 1px 2px 0px ${Tt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Tt.GREYSCALE_0_05}`,"&:hover":{borderRadius:jt,boxShadow:`0 2px 4px 0 ${Tt.GREYSCALE_0_30}, 0 0 0 1px ${Tt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Tt.GREYSCALE_0_15}, 0 0 0 1px ${Tt.GREYSCALE_0_06}, 0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Tt.GREYSCALE_0_15}, 0 0 0 1px ${Tt.GREYSCALE_0_06}, 0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Tt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Tt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Tt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Tt.GREYSCALE_0_15},markLabel:{color:Tt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Tt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Tt.WHITE,color:Tt.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:Tt.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:Tt.GREEN_PALE,boxShadow:`0 0 0 3px ${$s(Tt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Tt.BLUE_PALE,boxShadow:`0 0 0 3px ${$s(Tt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Tt.GREYSCALE_0_15,borderRadius:jt},thumb:{height:"16px",width:"16px",borderRadius:jt,backgroundColor:Tt.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:qt,fontWeight:Ft,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Tt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`,backgroundColor:Tt.GREYSCALE_0_03,borderRadius:jt},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Tt.GREYSCALE_25,"&.Mui-selected":{color:Tt.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:qt,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:jt,"&:hover":{backgroundColor:Tt.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Tt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Tt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:jt,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Tt.GREYSCALE_0_05},"&:hover":{backgroundColor:Tt.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Tt.GREYSCALE_85}`,borderRight:`1px solid ${Tt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Ft,backgroundColor:Tt.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:Tt.GREYSCALE_98,borderBottom:`1px solid ${Tt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Tt.GREYSCALE_85}`,borderTop:`1px solid ${Tt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Tt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Tt.GREYSCALE_0_05,"&:hover":{backgroundColor:Tt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Tt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Yt.jsx(cm,{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 ${Tt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:qt,borderRadius:jt,padding:"7px 16px",border:`1px solid ${Tt.GREYSCALE_0_15}`,backgroundColor:Tt.GREYSCALE_100_60,color:Tt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Tt.GREYSCALE_0_10,border:`1px solid ${Tt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Tt.GREYSCALE_0_03,border:`1px solid ${Tt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Tt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Tt.MISC_FOCUS_BORDER}`,border:`1px solid ${Tt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Tt.GREYSCALE_25,backgroundColor:Tt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Tt.GREYSCALE_0_10,border:`1px solid ${Tt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Ot,height:24,width:24,padding:7},sizeLarge:{fontSize:Lt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:qt,borderRadius:jt}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:Tt.GREYSCALE_20},tooltip:{backgroundColor:Tt.GREYSCALE_20,fontSize:Ot,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const fm=e=>({mode:"light",primary:{ultraLight:Tt.GREEN_ULTRA_LIGHT,light:Tt.GREEN_PALE,main:Tt.GREEN,dark:Tt.GREEN_DARK,extraDark:Tt.GREEN_EXTRA_DARK,contrastText:Tt.WHITE},secondary:{ultraLight:Tt.BLUE_ULTRA_LIGHT,light:Tt.BLUE_PALE,main:Tt.BLUE,dark:Tt.BLUE_DARK,extraDark:Tt.BLUE_EXTRA_DARK,contrastText:Tt.WHITE},error:{ultraLight:Tt.RED_ULTRA_LIGHT,light:Tt.RED_PALE,main:Tt.RED,dark:Tt.RED_DARK,extraDark:Tt.RED_EXTRA_DARK,contrastText:Tt.WHITE},warning:{ultraLight:Tt.ORANGE_ULTRA_LIGHT,light:Tt.ORANGE_PALE,main:Tt.ORANGE,dark:Tt.ORANGE_DARK,extraDark:Tt.ORANGE_EXTRA_DARK,contrastText:Tt.WHITE},success:{ultraLight:Tt.GREEN_ULTRA_LIGHT,light:Tt.GREEN_PALE,main:Tt.GREEN,dark:Tt.GREEN_DARK,extraDark:Tt.GREEN_EXTRA_DARK,contrastText:Tt.WHITE},info:{ultraLight:Tt.BLUE_ULTRA_LIGHT,light:Tt.BLUE_PALE,main:Tt.BLUE,dark:Tt.BLUE_DARK,extraDark:Tt.BLUE_EXTRA_DARK,contrastText:Tt.WHITE},text:{primary:Tt.TEXT_PRIMARY,secondary:Tt.TEXT_SECONDARY,disabled:Tt.GREYSCALE_0_30},action:{hover:Tt.GREYSCALE_0_03,hoverOpacity:.03,selected:Tt.GREYSCALE_0_05,selectedOpacity:.05,focus:Tt.MISC_FOCUS_BORDER},amethyst:{ultraLight:Tt.WHITE,main:Tt.PURPLE,light:Tt.PURPLE_PALE,dark:Tt.PURPLE_DARK,extraDark:Tt.GREYSCALE_0_0,contrastText:Tt.WHITE},background:{paper:Tt.WHITE,default:Tt.GREYSCALE_95},divider:Tt.GREYSCALE_0_15}),hm=(e="light")=>cu({components:pm(),palette:fm(),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:qt,fontWeightLight:_t,fontWeightRegular:zt,fontWeightMedium:Ft,fontWeightBold:$t,htmlFontSize:qt,fontFamily:Ht.FONT_FAMILY,button:{fontWeight:Ft,fontSize:qt,textTransform:"none"},body1:{fontSize:Lt,lineHeight:"24px"},body2:{fontSize:qt,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Nt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Lt,fontWeight:Ft,lineHeight:"16px"},h6:{fontSize:qt,fontWeight:Ft,lineHeight:"16px"},caption:{color:Tt.TEXT_SECONDARY},subtitle1:{fontSize:qt,color:Tt.TEXT_SECONDARY},subtitle2:{fontSize:Ot,color:Tt.TEXT_SECONDARY}},shape:{borderRadius:jt}}),mm={...Dt},gm=hm().palette,bm={TEXT:gm.text.primary,DISABLED:gm.text.disabled,HOVER:gm.action.hover,WHITE:mm.GREYSCALE_100,BORDER_LIGHT:mm.GREYSCALE_90,BORDER_MEDIUM:mm.GREYSCALE_85,BORDER_HEAVY:mm.GREYSCALE_50,DARK_MODE_TEXT:mm.GREYSCALE_95,DARK_MODE_BORDER:mm.GREYSCALE_95,DARK_MODE_DISABLED:mm.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:mm.GREYSCALE_95,SELECTED:gm.primary.main,LINK:gm.info.main,ERROR:gm.error.main},vm=(e,t=bm.TEXT,n=bm.WHITE)=>{const r=se(e??""),o=se(t),i=se(n);return r.isInvalid()?t:function(e,t,n){const r=le(e,t),o=le(e,n);if(void 0!==r&&void 0!==o)return r>o?t:n}(r,i,o).getRGB()},ym=e=>{const t=e.getStyle("","","dataColors.selected")||bm.SELECTED,n=function(e,t){const n=se(ue),r=se(e),o=se(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=le(n,r),a=le(o,r),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?ue:"#000000"}(t,bm.TEXT);return{background:t,color:n}},xm=(e,t)=>{const n=se(e);return 0===n.a?(n.setAlpha(t.opacity),n.getString()):n.isDark()?n.getBrightenedColor(t.brighter).getString():n.getDarkenedColor(t.darker).getString()},Sm=(e,t,n)=>{const r=t?e.getColorPickerColor(t):"none";return"none"===r?n:r},wm=e=>{const t=se(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},Cm=(e,t,n)=>{const r=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;r?r.focus():t.focusSelection?.(n)},Em=e=>{e.stopPropagation(),e.preventDefault()},Rm=e=>!!e&&0===se(e).a,Am="#grid",Im=(e,t,n,r=bm.WHITE)=>e&&!Rm(e)?e:Rm(t)?n&&!Rm(n)?n:r:t,km=(e,t)=>{const n=t?.closest(e);return n&&window.getComputedStyle(n).backgroundColor},Pm=(e,t,n,r,o)=>{const i=km(".qv-object .qv-inner-object",n),a=km(".qv-panel-sheet",n),s=km(Am,n)??a,l=(e=>{const t=e.components?.find(e=>"general"===e.key),n=t?.bgColor?.colorExpression,r=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&n)return wm(n);if("none"===r)return"transparent";if(void 0===r)return;const i=se(r);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),u=r?.(t),c=o?.(t),d=l||u||i||c,p=Rm(d),f=!Rm(h=p?s:d)&&vm(h,bm.TEXT,bm.DARK_MODE_TEXT)===ne(bm.DARK_MODE_TEXT);var h;return{color:d,headerColor:Im(l,d,s),isDark:f}},Mm=(e,t,r,o)=>{const l=s(),u=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[n,r]=i([]);return a(()=>{let n;return e&&(n=new MutationObserver(e=>{r(e)}),n.observe(e,t)),()=>{n?.disconnect()}},[e,t]),n})(t.closest(Am),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter(({oldValue:e})=>e?.includes("background")).map(({oldValue:e})=>e).join(",");return n(()=>({...l,background:Pm(e,l,t,r,o)}),[l.name(),t,r,o,e,u])};const Dm=3,Tm=/\n/g;function Om(e,t,n){let r=0,o=e.length;if(Number.isNaN(t))return null;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),s=e.slice(0,i-1),l=n(a),u=n(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?r=i+1:o=i}return null}const qm=({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o)=>{const{maxNbrLinesOfText:i=Dm,allowLineBreaks:a=!0}=o??{};return()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const s=o.measureText.bind(o),l=vt(e=>{if(void 0===e)return 0;if(a){const t=e.split(Tm).map(e=>s(e).width);return t.reduce((e,t)=>t>e?t:e,0)}const t=e.replace(Tm," ");return s(t).width}),u=e=>+l(e).toFixed(2),c=vt(({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;const r=a?e.split(Tm):[e];let o=0;for(const e of r){let n=e;do{o+=1,n=Om(n,t,u)}while(null!==n&&o<i);if(o>=i)break}return o},({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`);return{measureText:e=>l(e),estimateWidth:e=>l("N")*e,estimateLineCount:c}}};function Lm({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=Dm,allowLineBreaks:a=!0}={},{estimateWidth:s,measureText:l,estimateLineCount:u}=k(()=>qm({fontStyle:n,fontWeight:r,fontSize:e,fontFamily:t},{maxNbrLinesOfText:i,allowLineBreaks:a})(),[n,r,e,t,i,a]);return{estimateWidth:s,measureText:l,estimateLineCount:u}}var Nm,jm={};var _m=function(){if(Nm)return jm;Nm=1;var e=V;return jm.createRoot=e.createRoot,jm.hydrateRoot=e.hydrateRoot,jm}();const zm="Source Sans Pro, sans-serif",Fm=(e,t,r)=>{const[,i,a]=function(e,t){const r=n(()=>({isLoading:!0}),t),[i,a]=o(async()=>{try{return await e()}finally{r.isLoading=!1}},t);return[i,r.isLoading,a]}(async()=>{const t=de(),n=e.getStyle("","","fontFamily"),r=e.getStyle("object","label.name","fontFamily"),o=e.getStyle("object","label.value","fontFamily"),i=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...i,n,r,o,zm].filter(e=>void 0!==e).map(async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)}))},[t,e,r]);return a?(console.warn("Failed to load fonts:",a),!0):!i};function $m(e,t){const[n,r]=P(t);n.some((e,n)=>e!==t[n])&&(r(t),e())}var Hm={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},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_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","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_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","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 Bm=({translator:e})=>(k(()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Hm).forEach(t=>{e.add(Hm[t])})}}(e)},[e]),e),Vm="12px",Wm="nebula-table-utils-head-menu-button",Um="nebula-table-utils-head-menu-wrapper",Gm="nebula-table-utils-head-menu",Km="nebula-table-utils-head-menu-list-id",Ym="sn-copy-cell";let Xm=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.F2="F2",e}({});const Jm="nebula-table-utils-column-adjuster";let Zm=function(e){return e[e.PixelsMin=30]="PixelsMin",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.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),Qm=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const eg={darker:.15,brighter:.3,opacity:.03},tg={darker:.3,brighter:.5,opacity:.05};let ng=function(e){return e.Cyclic="C",e}({});const rg=document.createElement("textarea");function og(e){rg.value=e,document.body.appendChild(rg),rg.select(),rg.setSelectionRange(0,rg.value.length),document.execCommand("copy"),document.body.removeChild(rg)}rg.style.position="absolute",rg.style.left="-9999px",rg.setAttribute("readonly","");const ig=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch(()=>{og(t)}):og(t))};function ag(e){return"init"in e}function sg(e){return"function"==typeof e.write}function lg(e){return"v"in e||"e"in e}function ug(e){if("e"in e)throw e.e;if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}function cg(e){return"function"==typeof(null==e?void 0:e.then)}function dg(e){if(!(e instanceof Error))return!1;const t=e.name,n=e.message.toLowerCase();return("RangeError"===t||"InternalError"===t)&&(n.includes("call stack")||n.includes("too much recursion")||n.includes("stack overflow"))}function pg(e,t,n){if(!n.p.has(e)){n.p.add(e);const r=()=>n.p.delete(e);t.then(r,r)}}function fg(e,t,n){const r=n.get(e),o=null==r?void 0:r.t,i=t.p;if(!(null==o?void 0:o.size))return i;if(!i.size)return o;const a=new Set(o);for(const e of i)a.add(e);return a}const hg=()=>{const e={},t=new WeakMap,n=n=>{var r,o;null==(r=t.get(e))||r.forEach(e=>e(n)),null==(o=t.get(n))||o.forEach(e=>e())};return n.add=(n,r)=>{const o=n||e;let i=t.get(o);return i||(i=new Set,t.set(o,i)),i.add(r),()=>{i.delete(r),i.size||t.delete(o)}},n};const mg=(e,t,n,...r)=>n.read(...r),gg=(e,t,n,...r)=>n.write(...r),bg=(e,t,n)=>n.INTERNAL_onInit(t),vg=(e,t,n,r)=>{var o;return null==(o=n.onMount)?void 0:o.call(n,r)},yg=(e,t,n)=>{var r;const o=e[0];let i=o.get(n);if(!i){const a=e[6],s=e[9];i={d:new Map,p:new Set,n:0},o.set(n,i),null==(r=a.i)||r.call(a,n),function(e){return!!e.INTERNAL_onInit}(n)&&s(e,t,n)}return i},xg=(e,t)=>{var n;const r=e[1],o=e[3],i=e[4],a=e[5],s=e[6],l=e[13];if(!(s.f||o.size||i.size||a.size))return;const u=[],c=e=>{try{e()}catch(e){u.push(e)}};do{s.f&&c(s.f);const u=new Set;for(const e of o){const t=null==(n=r.get(e))?void 0:n.l;if(t)for(const e of t)u.add(e)}o.clear();for(const e of a)u.add(e);a.clear();for(const e of i)u.add(e);i.clear();for(const e of u)c(e);o.size&&l(e,t)}while(o.size||a.size||i.size);if(u.length)throw new AggregateError(u)},Sg=(e,n)=>{const r=e[1],o=e[2],i=e[3],a=e[11],s=e[14],l=e[17];if(!i.size)return;const u=[],c=[],d=new WeakSet,p=new WeakSet,f=[],h=[];for(const t of i)f.push(t),h.push(a(e,n,t));for(;f.length;){const i=f.length-1,s=f[i],l=h[i];if(p.has(s))f.pop(),h.pop();else if(d.has(s)){if(o.get(s)===l.n)u.push(s),c.push(l);else if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&o.has(s))throw new Error("[Bug] invalidated atom exists");p.add(s),f.pop(),h.pop()}else{d.add(s);for(const t of fg(s,l,r))d.has(t)||(f.push(t),h.push(a(e,n,t)))}}for(let t=u.length-1;t>=0;--t){const r=u[t],a=c[t];let d=!1;for(const e of a.d.keys())if(e!==r&&i.has(e)){d=!0;break}d&&(o.set(r,a.n),s(e,n,r),l(e,n,r)),o.delete(r)}},wg=new WeakSet,Cg=(e,n,r)=>{var o,i;const a=e[1],s=e[2],l=e[3],u=e[6],c=e[7],d=e[11],p=e[12],f=e[13],h=e[14],m=e[16],g=e[17],b=e[20],v=e[26],y=e[28],x=d(e,n,r),S=y[0];if(lg(x)){if(a.has(r)&&s.get(r)!==x.n||x.m===S)return x.m=S,x;let t=!1;for(const[r,o]of x.d)if(h(e,n,r).n!==o){t=!0;break}if(!t)return x.m=S,x}let w=!0;const C=new Set(x.d.keys()),E=()=>{for(const e of C)x.d.delete(e)},R=()=>{if(a.has(r)){const t=!l.size;g(e,n,r),t&&(f(e,n),p(e,n))}},A=t=>{var o;if(t===r){const r=d(e,n,t);if(!lg(r)){if(!ag(t))throw new Error("no atom init");b(e,n,t,t.init)}return ug(r)}const i=h(e,n,t);try{return ug(i)}finally{C.delete(t),x.d.set(t,i.n),cg(x.v)&&pg(r,x.v,i),a.has(r)&&(null==(o=a.get(t))||o.t.add(r)),w||R()}};let I,k;const P={get signal(){return I||(I=new AbortController),I.signal},get setSelf(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(t.meta.env?t.meta.env.MODE:void 0)||sg(r)||console.warn("setSelf function cannot be used with read-only atom"),!k&&sg(r)&&(k=(...o)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&w&&console.warn("setSelf function cannot be called in sync"),!w)try{return m(e,n,r,o)}finally{f(e,n),p(e,n)}}),k}},M=x.n,D=s.get(r)===M;try{"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&wg.delete(n);const i=c(e,n,r,A,P);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&wg.has(n)&&console.warn("Detected store mutation during atom read. This is not supported."),b(e,n,r,i),cg(i)){v(e,n,i,()=>null==I?void 0:I.abort());const t=()=>{E(),R()};i.then(t,t)}else E();return null==(o=u.r)||o.call(u,r),x.m=S,x}catch(e){if(dg(e))throw e;return delete x.v,x.e=e,++x.n,x.m=S,x}finally{w=!1,x.n!==M&&D&&(s.set(r,x.n),l.add(r),null==(i=u.c)||i.call(u,r))}},Eg=(e,t,n)=>{const r=e[1],o=e[2],i=e[11],a=[n];for(;a.length;){const n=a.pop(),s=i(e,t,n);for(const l of fg(n,s,r)){const n=i(e,t,l);o.get(l)!==n.n&&(o.set(l,n.n),a.push(l))}}},Rg=(e,n,r,o)=>{const i=e[3],a=e[6],s=e[8],l=e[11],u=e[12],c=e[13],d=e[14],p=e[15],f=e[16],h=e[17],m=e[20],g=e[28];let b=!0;const v=t=>ug(d(e,n,t)),y=(o,...s)=>{var d;const v=l(e,n,o);try{if(o===r){if(!ag(o))throw new Error("atom not writable");"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&wg.add(n);const r=v.n,l=s[0];return m(e,n,o,l),h(e,n,o),void(r!==v.n&&(++g[0],i.add(o),p(e,n,o),null==(d=a.c)||d.call(a,o)))}return f(e,n,o,s)}finally{b||(c(e,n),u(e,n))}};try{return s(e,n,r,v,y,...o)}finally{b=!1}},Ag=(e,t,n)=>{var r;const o=e[1],i=e[3],a=e[6],s=e[11],l=e[15],u=e[18],c=e[19],d=s(e,t,n),p=o.get(n);if(p&&d.d.size>0){for(const[o,c]of d.d)if(!p.d.has(o)){const d=s(e,t,o);u(e,t,o).t.add(n),p.d.add(o),c!==d.n&&(i.add(o),l(e,t,o),null==(r=a.c)||r.call(a,o))}for(const r of p.d)if(!d.d.has(r)){p.d.delete(r);const o=c(e,t,r);null==o||o.t.delete(n)}}},Ig=(e,t,n)=>{var r;const o=e[1],i=e[4],a=e[6],s=e[10],l=e[11],u=e[12],c=e[13],d=e[14],p=e[16],f=e[18],h=l(e,t,n);let m=o.get(n);if(!m){d(e,t,n);for(const r of h.d.keys()){f(e,t,r).t.add(n)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},o.set(n,m),sg(n)&&function(e){return!!e.onMount}(n)){const r=()=>{let r=!0;const o=(...o)=>{try{return p(e,t,n,o)}finally{r||(c(e,t),u(e,t))}};try{const i=s(e,t,n,o);i&&(m.u=()=>{r=!0;try{i()}finally{r=!1}})}finally{r=!1}};i.add(r)}null==(r=a.m)||r.call(a,n)}return m},kg=(e,t,n)=>{var r,o;const i=e[1],a=e[5],s=e[6],l=e[11],u=e[19],c=l(e,t,n);let d=i.get(n);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(r=i.get(e))?void 0:r.d.has(n)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,i.delete(n);for(const r of c.d.keys()){const o=u(e,t,r);null==o||o.t.delete(n)}null==(o=s.u)||o.call(s,n)},Pg=(e,t,n,r)=>{const o=e[11],i=e[27],a=o(e,t,n),s="v"in a,l=a.v;if(cg(r))for(const i of a.d.keys())pg(n,r,o(e,t,i));a.v=r,delete a.e,s&&Object.is(l,a.v)||(++a.n,cg(l)&&i(e,t,l))},Mg=(e,t,n)=>ug((0,e[14])(e,t,n)),Dg=(e,t,n,...r)=>{const o=e[3],i=e[12],a=e[13],s=e[16],l=o.size;try{return s(e,t,n,r)}finally{o.size!==l&&(a(e,t),i(e,t))}},Tg=(e,t,n,r)=>{const o=e[12],i=e[13],a=e[18],s=e[19],l=a(e,t,n).l;return l.add(r),i(e,t),o(e,t),()=>{l.delete(r),s(e,t,n),i(e,t),o(e,t)}},Og=(e,t,n,r)=>{const o=e[25];let i=o.get(n);if(!i){i=new Set,o.set(n,i);const e=()=>o.delete(n);n.then(e,e)}i.add(r)},qg=(e,t,n)=>{const r=e[25].get(n);null==r||r.forEach(e=>e())},Lg=new WeakMap;function Ng(e){const n=Lg.get(e);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!n)throw new Error("Store must be created by buildStore to read its building blocks");const r=n[24];return r?r(n,e):n}function jg(...e){const t={get:e=>r(n,t,e),set:(e,...r)=>o(n,t,e,...r),sub:(e,r)=>i(n,t,e,r)},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},mg,gg,bg,vg,yg,xg,Sg,Cg,Eg,Rg,Ag,Ig,kg,Pg,Mg,Dg,Tg,void 0,new WeakMap,Og,qg,[0]].map((t,n)=>e[n]||t);Lg.set(t,Object.freeze(n));const r=n[21],o=n[22],i=n[23];return t}var _g=Object.freeze({__proto__:null,INTERNAL_addPendingPromiseToDependency:pg,INTERNAL_buildStoreRev3:jg,INTERNAL_getBuildingBlocksRev3:Ng,INTERNAL_getMountedOrPendingDependents:fg,INTERNAL_hasInitialValue:ag,INTERNAL_initializeStoreHooksRev3:function(e){return e.i||(e.i=hg()),e.r||(e.r=hg()),e.c||(e.c=hg()),e.m||(e.m=hg()),e.u||(e.u=hg()),e.f||(e.f=(()=>{const e=new Set,t=()=>e.forEach(e=>e());return t.add=t=>(e.add(t),()=>e.delete(t)),t})()),e},INTERNAL_isActuallyWritableAtom:sg,INTERNAL_isAtomStateInitialized:lg,INTERNAL_isPromiseLike:cg,INTERNAL_returnAtomValue:ug,INTERNAL_shouldThrowSynchronously:dg});let zg,Fg=0;function $g(e,n){const r="atom"+ ++Fg,o={toString(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&this.debugLabel?r+":"+this.debugLabel:r}};return"function"==typeof e?o.read=e:(o.init=e,o.read=Hg,o.write=Bg),n&&(o.write=n),o}function Hg(e){return e(this)}function Bg(e,t,n){return t(this,"function"==typeof n?n(e(this)):n)}function Vg(){return jg()}const Wg=D(void 0);function Ug(e){const n=N(Wg);return(null==e?void 0:e.store)||n||(zg||(zg=Vg(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=zg),globalThis.__JOTAI_DEFAULT_STORE__!==zg&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),zg)}function Gg({children:e,store:t}){const n=M(null);return t?C(Wg.Provider,{value:t},e):(null===n.current&&(n.current=Vg()),C(Wg.Provider,{value:n.current},e))}const Kg=e=>"function"==typeof(null==e?void 0:e.then),Yg=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},Xg=w.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(Yg(e),e)}),Jg=new WeakMap,Zg=(e,t,n)=>{const r=Ng(e),o=r[26];let i=Jg.get(t);return i||(i=new Promise((a,s)=>{let l=t;const u=e=>t=>{l===e&&a(t)},c=e=>t=>{l===e&&s(t)},d=()=>{try{const t=n();Kg(t)?(Jg.set(t,i),l=t,t.then(u(t),c(t)),o(r,e,t,d)):a(t)}catch(e){s(e)}};t.then(u(t),c(t)),o(r,e,t,d)}),Jg.set(t,i)),i};function Qg(e,t){const{delay:n,unstable_promiseStatus:r=!w.use}={},o=Ug(t),[[i,a,s],l]=T(t=>{const n=o.get(e);return Object.is(t[0],n)&&t[1]===o&&t[2]===e?t:[n,o,e]},void 0,()=>[o.get(e),o,e]);let u=i;if(a===o&&s===e||(l(),u=o.get(e)),O(()=>{const t=o.sub(e,()=>{if(r)try{const t=o.get(e);Kg(t)&&Yg(Zg(o,t,()=>o.get(e)))}catch(e){}if("number"==typeof n)return console.warn("[DEPRECATED] delay option is deprecated and will be removed in v3.\n\nMigration guide:\n\nCreate a custom hook like the following.\n\nfunction useAtomValueWithDelay<Value>(\n atom: Atom<Value>,\n options: { delay: number },\n): Value {\n const { delay } = options\n const store = useStore(options)\n const [value, setValue] = useState(() => store.get(atom))\n useEffect(() => {\n const unsub = store.sub(atom, () => {\n setTimeout(() => setValue(store.get(atom)), delay)\n })\n return unsub\n }, [store, atom, delay])\n return value\n}\n"),void setTimeout(l,n);l()});return l(),t},[o,e,n,r]),q(u),Kg(u)){const t=Zg(o,u,()=>o.get(e));return r&&Yg(t),Xg(t)}return u}function eb(e,n){const r=Ug(n);return L((...n)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return r.set(e,...n)},[r,e])}function tb(e,t){return[Qg(e,t),eb(e,t)]}const nb=$g(void 0),rb=$g({viewState:void 0,isDownloadedAsPDForImage:!1,waitForPromise:()=>{},notifyIsDoneRendering:()=>{}}),ob=$g({}),ib=e=>"string"==typeof e,ab=e=>"number"==typeof e,sb=e=>"boolean"==typeof e,lb=e=>e instanceof Error,ub=e=>e instanceof Set,cb=e=>e instanceof Map,db=e=>{if(e instanceof Error)return e.message;if(null===e)return"null";if(void 0===e)return"undefined";if(ib(e))return e;if(ub(e))try{return JSON.stringify([...e])}catch{return"Failed to serialize Set"}if(cb(e))try{return JSON.stringify(Object.fromEntries(e))}catch{return"Failed to serialize Map"}try{return JSON.stringify(e)}catch{return"Failed to serialize value"}},pb=e=>{if(null!=e){if(ib(e))return e;if(lb(e))return db(e);if(ab(e)||sb(e))return String(e);if(Array.isArray(e)||ub(e)||cb(e))return db(e);if("object"==typeof(t=e)&&null!==t&&!Array.isArray(t)){const t={};return Object.entries(e).forEach(([e,n])=>{ib(n)||ab(n)||sb(n)?t[e]=n:t[e]=db(n)}),t}var t;return db(e)}},fb=(e,t={})=>{const{tag:n}=t,r=({msg:t,payload:r})=>{const o=((e,t)=>{const n=[];return ib(t)&&t.length>0?n.push(t):Array.isArray(t)&&n.push(...t.filter(e=>"string"==typeof e&&e.length>0)),n.length>0?`${n.map(e=>`[${e}]`).join("")} ${e}`:e})(t,n);var i;return lb(i=r)&&"Session suspended"===i.message||e.anything?.logInfo?.(o,pb(r)),o};return{warn:({msg:e,payload:t})=>{r({msg:e,payload:t})},error:({msg:e,payload:t})=>{r({msg:e,payload:t})}}},hb=e=>fb(e,{tag:"sn-table"}),mb=$g({}),gb=$g(e=>{const t=e(mb);return e=>t.flags.isEnabled(e)}),bb=$g(e=>{const t=e(mb);return hb(t)}),vb=$g(!1),yb=$g({qHyperCube:{qDimensionInfo:[],qMeasureInfo:[],qSize:{qcx:0,qcy:0}}}),xb=$g(e=>e(yb).qHyperCube.qSize.qcy),Sb=$g(e=>!!e(yb).snapshotData),wb=$g(e=>e(yb).qHyperCube.qDimensionInfo.length),Cb=$g(e=>e(yb).qHyperCube.qMeasureInfo.length),Eb=$g(e=>e(yb).qStateName),Rb=$g(e=>e(yb).snapshotData),Ab=$g(e=>!1!==e(yb).usePagination),Ib=$g(e=>!1!==e(yb).accessibleHeader),kb=$g(),Pb=$g(!1),Mb=$g(e=>e(kb),(e,t,n)=>{t(kb,n),t(Pb,n.isModal())}),Db=$g(),Tb=$g(e=>{const t=e(Db),n=e(Sb);return{...t,select:!!t?.active&&!!t.select&&!n,active:!!t?.active&&!n,scroll:!!t?.active}},(e,t,n)=>{t(Db,n)}),Ob=$g(e=>!!e(Tb).active),qb=$g(e=>!!e(Tb).passive),Lb=$g(e=>!!e(Tb).select),Nb=$g(e=>!!e(Tb).scroll),jb=$g(e=>{const t=e(Ob),n=e(Pb);return t&&!n}),_b=(e,t)=>!(!e.snapshotData&&!t?.visibleHeight),zb=$g(),Fb=$g(e=>e(zb)?.direction),$b=$g(e=>e(zb)?.footerContainer),Hb=$g(e=>e(zb)?.viewState),Bb=$g(e=>e(zb)?.freeResize),Vb=$g(e=>{const t=e(yb),n=e(Hb),r=e(Ab);return void 0!==n?.usePagination?n.usePagination:r||_b(t,n)}),Wb=$g({active:!1,enabled:!1,blur:()=>{},focus:()=>{},focusSelection:()=>{}}),Ub=$g(e=>e(Wb),(e,t,n)=>{const r=e(Vb),o=e(gb)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE");(r||o)&&t(Wb,n)}),Gb=$g(),Kb=$g(e=>{const t=e(Gb);if(t&&"getEffectiveProperties"in t)return t}),Yb={width:0,height:0,top:0,left:0},Xb=$g(Yb),Jb=$g(Yb),Zb=$g(e=>e(Xb),(e,t,n)=>{const r=e(yb),o=e(Bb),i=e(Xb),a=r.snapshotData?.content&&!o;(i.width!==n.width||i.height!==n.height||i.top!==n.top||i.left!==n.left||a)&&(t(Jb,n),t(Xb,a?{...n,...r.snapshotData?.content?.size}:n))}),Qb=$g({}),ev=new WeakMap,tv=$g(e=>{const t=e(Qb),n=ev.get(t);if(n)return n;const r=_m.createRoot(t);return ev.set(t,r),r}),nv=$g({getColorPickerColor:()=>{},name:()=>{},getStyle:()=>{},background:{isDark:!1}}),rv=$g({get:e=>e,add:()=>{},language:()=>"en"});var ov,iv={exports:{}};var av=(ov||(ov=1,function(e){self,e.exports=(()=>{var e={909: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)},s=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},l=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,h=!1;for("boolean"==typeof d&&(h=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=l(d,n),d!==(o=l(t,n))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:n,newValue:o}));return d}},8:(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)},s=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},l=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,h=!1;for("boolean"==typeof d&&(h=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=l(d,n),d!==(o=l(t,n))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,c,o)})):void 0!==o&&s(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:()=>De});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 s=a[i];return a[i]=n,{updated:n,previous:s}}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 s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}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],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}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 h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(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,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=h(0),m=h(1),g=v(d,f),b=v(p,m);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}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 w={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 s=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),l=i?"":", 0";if(r&&1===r.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}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:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(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=h(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(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.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 s=S({properties:t,layout:n});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:h,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 E(e){return E="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},E(e)}var R=t().bind(null,!0),A={},I=Array.isArray;function k(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function P(e){return void 0===e}function M(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function D(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]=P(e[n||t])?i:e[t],e=e[n||t]}}),e}function T(e,t){var n=!0;if(k(e)&&k(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(r){T(e[r],t[r])||(n=!1)}),n);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!T(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],s="".concat(n,"/").concat(o);T(i,a)||M(t,o)||(P(a)?r.push({op:"add",path:s,value:i}):k(i)&&k(a)?r=r.concat(A.generate(a,i,s)):I(i)&&I(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&P(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(T(t,o))return r;if(!P(t[0])&&P(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),o.splice(s,1)):r=r.concat(A.generate(o[s],t[i],"".concat(n,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){P(t[o])&&!M(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=D(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,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(k(a)&&k(t.value))n=a,Object.keys(n).forEach(function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!M(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=D(e,t.from);I(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(I(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 O=A,q=function(e,n,r){if(!e)return Promise.resolve();var o=O.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 L="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===L)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===L)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var _={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.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,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=w.getNumStepComp(n,l),p=w.getAboveComp(n,l,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:n,properties:r,layout:o})){var h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);f=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.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.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(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(j(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(j(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(j(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(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(L))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var F="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===F)return n[r]}function H(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===F)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.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,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var u=s;void 0===u&&(u=w.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=w.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(r,u),h=w.getAboveComp(r,u,p,f);if(r.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var n=w.getRowNoComp(e,t);if(!w.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(m," / ").concat(g)}var b=t;if(w.needDimension({modifier:r,properties:o,layout:a})){var v=w.getDimComp(c,1),y=w.getDimComp(c,0),x=w.getAggrComp(b,v,y);b=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var W="timeSeriesDecomposition";function U(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===W)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===W)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const Y={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?w.generateTSDExpression(n,t,r):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=w.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!w.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 w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(W))return!1;var i=U(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=w.getAboveComp(n,l,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:n,properties:r,layout:o})){var f=w.getDimComp(u,1),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}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!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var s=ae(t),l=se(t,n,r),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=w.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,l,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!w.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){if(1===e){var n=oe(t,0);t.splice(n,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){if(e<2){var n=oe(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t){if(0===e){var n=oe(t,1);t.splice(n,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 w.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:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="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,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},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",we="qDef.qLabelExpression",Ce="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Ie={initBase:function(e,t){(t||Ie.isValid(e))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,Ee,i(e,we)))},restoreBase:function(e){Ie.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,we,i(e,Ee)),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 ke=Ie;function Pe(e){return Pe="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},Pe(e)}var Me={accumulation:z,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:Y};const De={modifiers:Me,apply:Oe,applyModifiers:qe,cleanUpMeasure:Le,destroy:function(e){e&&Te[e.id]&&Te[e.id].masterItemSubscriber&&(Te[e.id].masterItemSubscriber&&Te[e.id].masterItemSubscriber.unsubscribe(),delete Te[e.id])},hasActiveModifiers:Ne,getActiveModifier:je,initBase:ke.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return Me[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return Me[e]&&Me[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=Fe(e);Ge({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Ze({modifiers:t,properties:n,layout:r}))}),o&&!i},ifEnableTotalsFunction:_e};var Te={};function Oe(){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,s=e.masterItem,l=!1;Te[n.id]=Te[n.id]||{isFirstTime:!0};var u=Te[n.id].isFirstTime;if(Te[n.id].isFirstTime=!1,r&&"object"===Pe(r))return qe({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=Te[n.id].lastReloadTime;if(Te[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var h=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 h||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:Fe(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})}))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?n.getEffectiveProperties().then(function(e){var r=t()(!0,{},e);He(r);var o=Qe(r);return Ke({model:n}).then(function(t){return Ye({libraryIds:o,model:n}).then(function(o){return h&&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"===Pe(e)&&!e.disabled){if(n++,"object"!==Pe(Me[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=Me[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Ve(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(r)&&(t.qDef.base.qDef=r)}})}}({measure:e,properties:t})})}({properties:r}),qe({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})})})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Pe(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 Le(e)}),Je({oldProperties:e,newProperties:r,model:n})})}({model:n,properties:e})}):Promise.resolve(l)}function qe(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},o):o),He(o);var p=Qe(o);return et({model:n,libraryIds:p,masterItem:u}).then(function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach(function(e){return Le(e)}),Promise.resolve();var l=a?void 0:Qe(r);return Ke({model:o,dimensionAndFieldList:s}).then(function(e){return Ye({libraryIds:l,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,s=0;ke.isValid(n)||ke.initBase(n,!0);var l=n.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach(function(e){if("object"===Pe(e)&&!e.disabled){if(s++,"object"!==Pe(Me[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Me[e.type].initModifier(e,n);var l=n.qLibraryId||c&&c.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Me[r.type].generateExpression({expression:s,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,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:l,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Me[r.type].updateModifier&&Me[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Me[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,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||_e(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&_e(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}})}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),Be(n)):Le(n)})})})}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then(function(){return l?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)})})}function Le(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some(function(e){return"object"===Pe(e)&&!e.disabled&&!Me[e.type]})}(e)?ke.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(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:Fe(e),properties:n,layout:r})})}function je(e){var t=Fe(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Me[r.type]&&!r.disabled)return r}}function _e(e){var t=je(e);return!t||Me[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Fe(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){ze(e).forEach(function(e){return function(e){var n=je(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!ke.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)})}function Be(e){var t=Fe(e);Array.isArray(t)&&t.forEach(function(t){"object"===Pe(t)&&(t.disabled||!Me[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function Ve(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,n=e.properties,r=e.layout;return!We(t)&&Ge({modifiers:Fe(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"!==Pe(e)||e.disabled||!Me[e.type])&&(void 0===o[e.type]&&(o[e.type]=Me[e.type].isApplicable({properties:n,layout:r})),o[e.type])})}function Ke(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 Ye(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={},s=[];return o.forEach(function(e){var t=n.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=n.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a})}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):q(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then(function(){return o}):Promise.resolve(o)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Pe(e)&&!e.disabled&&Me[e.type]&&Me[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=Fe(t);if(Ge({modifiers:r,properties:e})){var i=We(t);i&&n.push(i),o=o||Ze({modifiers:r,properties:e})}}),i(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&r.push(t)}),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Te[t.id].masterItemSubscriber=Te[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=i(e,"qInfo.qType");return n&&s[n]&&s[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=l(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:l(t.layout)}})}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];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]&&s.push(c(e,"getMeasure"))}),Object.keys(a).forEach(function(e){a[e]&&!r[e]&&s.push(c(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach(function(e){r[e].listener.dispose()}),r={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),Te[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(r,{default:()=>He});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+r[a+1])?{}:[]),i=i[s]}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 s(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 s(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)?s(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 s(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 l(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(8),f=n.n(p);const h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var s,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,l(r.qMeasures));var a,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},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=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(r=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=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]=s}var S=n(909),w=n.n(S);function C(e,t){var n=w()(!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 E(e,t){return w()(!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 I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(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 P=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},M=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},D=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},T=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}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},q=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},L=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=E(s.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},s=R(a.max,o.dimensions.length,A),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,A),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},j=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))},_=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=w()(!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=w()(!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},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=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,s=function(e){if(Array.isArray(e))return I(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 I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach(function(e){a.qDimensions.push(e),r.dimensions.added(e,n)})}},H=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return k(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 k(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)?k(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=[],s.forEach(function(e){a.qMeasures.push(e),r.measures.added(e,n)})}},B=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach(function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store})};function V(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 W={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,s=i.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:l}),m({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,b({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters",!0),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,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=_({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,w=y.maxMeasures,C=y.minMeasures,E=l.defaultDimension,R=void 0===E?T():E,A=l.defaultMeasure,I=void 0===A?O():A;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:v}),q({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),L({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:v,defaultMeasure:I}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),j({exportFormat:t,newHyperCubeDef:v}),M("qMaxStackedCells",b,v),M("qNoOfLeftDims",b,v),D("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),D("qMode",b,v,"S"),D("qReductionMode",b,v,"N"),D("qSortbyYValue",b,v),D("qIndentMode",b,v),D("qShowTotalsAbove",b,v),P(g,t,r),m.qProperty=g;var k=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:k}),p&&V(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&V(m.qProperty,"dynamicScript"),m}};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 K(e,t){return e.length!==t}const Y={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],s=t.length;if(G(a,t,r,o),K(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=Y.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,s=e.label;te(r,o);var l=r[r.length-1];if(l){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=Y.create(Y.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:s,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},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.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?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(s.expression=i)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.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 s}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=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(ne(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:s,key: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)}i.auto=!1,i.mode=a}function se(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]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],o=Y.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 le=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:s,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=Y.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||r[0])),!!s}(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},he=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)},me=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=W.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=Y.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return Y.moveByIdFromGroup(a,[],"qAttributeDimensions",u),Y.moveByIdFromGroup(a,[],"qAttributeExpressions",u),Y.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=W.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:b,properties:d})&&he(d):me(d),b&&de(d,"qHyperCubeDef."),ge(d)&&le(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?V(n,"unsupportedAutoMinMax")||w()(n.measureAxis,t.measureAxis):V(n,"supportedAutoMinMax")||w()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=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 l=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);l.length?(i&&(t=l.filter(function(e){return e.type[i]>0}).sort(function(e,t){return t.type[i]-e.type[i]})),t&&t.length||(t=l.sort(function(e,t){return t.type.total-e.type.total})),t&&t[0]&&w()(s,n.properties.measureAxes[t[0].axis])):w()(s,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}}},we={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}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"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,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,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 Ee(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,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var u=Ce(n,r,l);i.setValue(t,u,s),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,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(n,r,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})})}var Ae="qHyperCubeDef.qMeasures",Ie="conditionalColoring",ke="measures",Pe="qDef.conditionalColoring";const Me={quarantine:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:Ie,arrayName:ke,itemPath:Pe})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Pe,arrayName:ke,quarantineName:Ie})}};var De="qHyperCubeDef.qMeasures",Te="measures",Oe="qHyperCubeDef.qDimensions",qe="dimensions",Le="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",je="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",_e="alternativeDimensions",ze="qCalcCondition",Fe="conditionalShowHide";const $e={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Ee({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:qe,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:qe,itemPath:ze})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Ee({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})}},He={hypercube:W,colorChart:be,axisChart:we,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:Me,conditionalShow:$e}})(),r.default})()}(iv)),iv.exports),sv=Bt(av);const lv="qHyperCubeDef.qMeasures",uv="measures",cv="qHyperCubeDef.qDimensions",dv="dimensions",pv="qDef.representation",fv="tableRepresentation",hv="qDef.conditionalColoring",mv="conditionalColoring",gv="qMiniChartDef",bv="miniChartDef",vv=({propertyTree:e,hyperCubePath:t})=>{const n=sv.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:r,qDimensions:o,qMeasures:i}}=n.properties,a=((e,t,n)=>{const r=e.length+t.length,o=(n?.length===r?n:Array.from(Array(r).keys())).map(n=>((e,t,n)=>{const r=t.length,o=e<r?t[e]:n[e-r],{columnWidth:i}=o.qDef;return i||-1})(n,e,t));return o})(o,i,r);return bt(n,"properties.qHyperCubeDef",{...n.properties.qHyperCubeDef,columnWidths:a}),sv.quarantineProperty(n.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),sv.quarantineProperty(n.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),sv.quarantineProperty(n.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{sv.quarantineArrayProp({properties:e,arrayPath:cv,itemPath:pv,arrayName:dv,quarantineName:fv}),sv.quarantineArrayProp({properties:e,arrayPath:lv,itemPath:pv,arrayName:uv,quarantineName:fv}),sv.quarantineArrayProp({properties:e,arrayPath:lv,itemPath:hv,arrayName:uv,quarantineName:mv}),sv.quarantineArrayProp({properties:e,arrayPath:lv,itemPath:gv,arrayName:uv,quarantineName:bv})})(n.properties),n};const yv=/^q[A-Z]/,xv=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],Sv=e=>"object"==typeof e&&null!==e,wv=(e,t)=>(Object.entries(e).forEach(([n,r])=>{const o=void 0===t?n:`${t}.${n}`;((e,t)=>!yv.test(e)&&!xv.some(e=>e.test(t)))(n,o)?delete e[n]:Array.isArray(r)?e[n]=r.map((e,t)=>Sv(e)?wv(e,`${o}.${t}`):e):Sv(r)&&(e[n]=wv(r,o))}),e),Cv=(e,t,n,r)=>{let o=t;r&&(o=t-r);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(n)&&n.length>0){const e=n[t];null===e||Array.isArray(e)||"object"!=typeof e?i.qDef.columnWidth="number"==typeof e&&e>0?{type:Qm.Pixels,pixels:e}:{type:Qm.FitToContent}:i.qDef.columnWidth=e}return i},Ev=({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o,viewDataMode:i,env:a})=>{const s=hb(a);if(i){try{e=structuredClone(e)}catch(e){s.error({msg:"Failed to copy source properties",payload:e})}wv(e.properties)}const l=sv.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:r,extension:n});if(sv.conditionalShow.unquarantine(l.qProperty),i)bt(l,"qProperty.totals.show",!1),bt(l,"qProperty.usePagination",!0),bt(l,"qProperty.accessibleHeader",!0);else{sv.unquarantineProperty(l.qProperty,"straightTableColumnOrder"),(e=>{sv.unquarantineArrayProp({properties:e,arrayPath:cv,itemPath:pv,arrayName:dv,quarantineName:fv}),sv.unquarantineArrayProp({properties:e,arrayPath:lv,itemPath:pv,arrayName:uv,quarantineName:fv}),sv.unquarantineArrayProp({properties:e,arrayPath:lv,itemPath:hv,arrayName:uv,quarantineName:mv}),sv.unquarantineArrayProp({properties:e,arrayPath:lv,itemPath:gv,arrayName:uv,quarantineName:bv})})(l.qProperty);const{qHyperCubeDef:{qDimensions:e,qMeasures:t,qColumnOrder:n,columnWidths:r}}=l.qProperty,{dimensions:o,measures:i}=((e,t,n,r)=>{const o=e.length,i=o+t.length,a=n?.length===i?n:Array.from(Array(i).keys());return{dimensions:a.filter(e=>e<o).map(t=>Cv(e,t,r)),measures:a.filter(e=>e>=o).map(e=>Cv(t,e,r,o))}})(e,t,n,r);Array.isArray(r)&&r.length>0&&(bt(l,"qProperty.qHyperCubeDef.qDimensions",o),bt(l,"qProperty.qHyperCubeDef.qMeasures",i))}return l};var Rv,Av,Iv={},kv={exports:{}},Pv={exports:{}};function Mv(){return Rv||(Rv=1,function(e){function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Pv)),Pv.exports}var Dv={};function Tv(e,t){return function(){return null}}function Ov(e){return e&&"object"===Ol(e)&&e.constructor===Object}function qv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?qn({},e):e;return Ov(e)&&Ov(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(Ov(t[o])&&o in e?r[o]=qv(e[o],t[o],n):r[o]=t[o])}),r}var Lv=(Wi.element,function(){return null});Lv.isRequired=(Wi.element.isRequired,function(){return null});var Nv=function(){return null};var jv,_v,zv={exports:{}},Fv={};var $v=(_v||(_v=1,zv.exports=function(){if(jv)return Fv;jv=1;var e=60103,t=60106,n=60107,r=60108,o=60114,i=60109,a=60110,s=60112,l=60113,u=60120,c=60115,d=60116,p=60121,f=60122,h=60117,m=60129,g=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;e=b("react.element"),t=b("react.portal"),n=b("react.fragment"),r=b("react.strict_mode"),o=b("react.profiler"),i=b("react.provider"),a=b("react.context"),s=b("react.forward_ref"),l=b("react.suspense"),u=b("react.suspense_list"),c=b("react.memo"),d=b("react.lazy"),p=b("react.block"),f=b("react.server.block"),h=b("react.fundamental"),m=b("react.debug_trace_mode"),g=b("react.legacy_hidden")}function v(p){if("object"==typeof p&&null!==p){var f=p.$$typeof;switch(f){case e:switch(p=p.type){case n:case o:case r:case l:case u:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case c:case i:return p;default:return f}}case t:return f}}}var y=i,x=e,S=s,w=n,C=d,E=c,R=t,A=o,I=r,k=l;return Fv.ContextConsumer=a,Fv.ContextProvider=y,Fv.Element=x,Fv.ForwardRef=S,Fv.Fragment=w,Fv.Lazy=C,Fv.Memo=E,Fv.Portal=R,Fv.Profiler=A,Fv.StrictMode=I,Fv.Suspense=k,Fv.isAsyncMode=function(){return!1},Fv.isConcurrentMode=function(){return!1},Fv.isContextConsumer=function(e){return v(e)===a},Fv.isContextProvider=function(e){return v(e)===i},Fv.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Fv.isForwardRef=function(e){return v(e)===s},Fv.isFragment=function(e){return v(e)===n},Fv.isLazy=function(e){return v(e)===d},Fv.isMemo=function(e){return v(e)===c},Fv.isPortal=function(e){return v(e)===t},Fv.isProfiler=function(e){return v(e)===o},Fv.isStrictMode=function(e){return v(e)===r},Fv.isSuspense=function(e){return v(e)===l},Fv.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===m||e===r||e===l||e===u||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===i||e.$$typeof===a||e.$$typeof===s||e.$$typeof===h||e.$$typeof===p||e[0]===f)},Fv.typeOf=v,Fv}()),zv.exports),Hv=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Bv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(Hv);return t&&t[1]||""}(e)||t}function Vv(e,t,n){var r=Bv(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}var Wv,Uv="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Gv=Wi.oneOfType([Wi.func,Wi.object]),Kv=Object.freeze({__proto__:null,HTMLElementType:function(e,t,n,r,o){return null},chainPropTypes:Tv,deepmerge:qv,elementAcceptingRef:Lv,elementTypeAcceptingRef:Nv,exactProp:function(e){return e},formatMuiErrorMessage: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."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Bv(e,"Component");if("object"===Ol(e))switch(e.$$typeof){case $v.ForwardRef:return Vv(e,e.render,"ForwardRef");case $v.Memo:return Vv(e,e.type,"memo");default:return}}},ponyfillGlobal:Uv,refType:Gv}),Yv=Vt(Kv);function Xv(){if(Wv)return Dv;Wv=1,Object.defineProperty(Dv,"__esModule",{value:!0}),Dv.hexToRgb=n,Dv.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=o(e),n=t.values;return"#".concat(n.map(function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)}).join(""))},Dv.hslToRgb=r,Dv.decomposeColor=o,Dv.recomposeColor=i,Dv.getContrastRatio=function(e,t){var n=a(e),r=a(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Dv.getLuminance=a,Dv.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return a(e)>.5?l(e,t):u(e,t)},Dv.fade=function(e,t){return s(e,t)},Dv.alpha=s,Dv.darken=l,Dv.lighten=u;var e=Yv;function t(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)}function n(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(", "),")"):""}function r(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,a=t[2]/100,s=r*Math.min(a,1-a),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return a-s*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),i({type:u,values:c})}function o(t){if(t.type)return t;if("#"===t.charAt(0))return o(n(t));var r=t.indexOf("("),i=t.substring(0,r);if(-1===["rgb","rgba","hsl","hsla"].indexOf(i))throw new Error((0,e.formatMuiErrorMessage)(3,t));var a=t.substring(r+1,t.length-1).split(",");return{type:i,values:a=a.map(function(e){return parseFloat(e)})}}function i(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(", "),")")}function a(e){var t="hsl"===(e=o(e)).type?o(r(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function s(e,n){return e=o(e),n=t(n),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=n,i(e)}function l(e,n){if(e=o(e),n=t(n),-1!==e.type.indexOf("hsl"))e.values[2]*=1-n;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-n;return i(e)}function u(e,n){if(e=o(e),n=t(n),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*n;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*n;return i(e)}return Dv}var Jv,Zv,Qv,ey={},ty={exports:{}},ny={exports:{}},ry={exports:{}};function oy(){return Jv||(Jv=1,function(e){var t=Mv().default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(ry)),ry.exports}function iy(){return Zv||(Zv=1,function(e){var t=Mv().default,n=oy();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(ny)),ny.exports}function ay(){return Qv||(Qv=1,function(e){var t=iy();e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(ty)),ty.exports}var sy,ly={exports:{}};function uy(){return sy||(sy=1,function(e){var t=yu();e.exports=function(e,n){if(null==e)return{};var r,o,i=t(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],-1===n.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(ly)),ly.exports}var cy,dy={};function py(){if(cy)return dy;cy=1;var e=zl();Object.defineProperty(dy,"__esModule",{value:!0}),dy.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,n.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var n=r.indexOf(t);return n===r.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==n&&"number"==typeof i[r[n+1]]?i[r[n+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:r,values:i,up:d,down:function(e){var t=r.indexOf(e)+1,n=i[r[t]];return t===r.length?d("xs"):"@media (max-width:".concat(("number"==typeof n&&t>0?n:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},dy.keys=void 0;var t=e(gu()),n=e(uy()),r=["xs","sm","md","lg","xl"];return dy.keys=r,dy}var fy,hy={};function my(){if(fy)return hy;fy=1;var e=zl();Object.defineProperty(hy,"__esModule",{value:!0}),hy.default=function(e,r,o){var i;return(0,n.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,n.default)({paddingLeft:r(2),paddingRight:r(2)},o,(0,t.default)({},e.up("sm"),(0,n.default)({paddingLeft:r(3),paddingRight:r(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(ay()),n=e(gu());return hy}var gy,by={},vy={};function yy(){if(gy)return vy;gy=1,Object.defineProperty(vy,"__esModule",{value:!0}),vy.default=void 0;var e={black:"#000",white:"#fff"};return vy.default=e,vy}var xy,Sy={};function wy(){if(xy)return Sy;xy=1,Object.defineProperty(Sy,"__esModule",{value:!0}),Sy.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return Sy.default=e,Sy}var Cy,Ey={};function Ry(){if(Cy)return Ey;Cy=1,Object.defineProperty(Ey,"__esModule",{value:!0}),Ey.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return Ey.default=e,Ey}var Ay,Iy={};function ky(){if(Ay)return Iy;Ay=1,Object.defineProperty(Iy,"__esModule",{value:!0}),Iy.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return Iy.default=e,Iy}var Py,My={};function Dy(){if(Py)return My;Py=1,Object.defineProperty(My,"__esModule",{value:!0}),My.default=void 0;var e={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"};return My.default=e,My}var Ty,Oy={};function qy(){if(Ty)return Oy;Ty=1,Object.defineProperty(Oy,"__esModule",{value:!0}),Oy.default=void 0;var e={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"};return Oy.default=e,Oy}var Ly,Ny={};function jy(){if(Ly)return Ny;Ly=1,Object.defineProperty(Ny,"__esModule",{value:!0}),Ny.default=void 0;var e={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"};return Ny.default=e,Ny}var _y,zy,Fy={};function $y(){if(_y)return Fy;_y=1,Object.defineProperty(Fy,"__esModule",{value:!0}),Fy.default=void 0;var e={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"};return Fy.default=e,Fy}function Hy(){if(zy)return by;zy=1;var e=zl();Object.defineProperty(by,"__esModule",{value:!0}),by.default=function(e){var g=e.primary,b=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,v=e.secondary,y=void 0===v?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:v,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,E=e.info,R=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,A=e.success,I=void 0===A?{light:d.default[300],main:d.default[500],dark:d.default[700]}:A,k=e.type,P=void 0===k?"light":k,M=e.contrastThreshold,D=void 0===M?3:M,T=e.tonalOffset,O=void 0===T?.2:T,q=(0,n.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function L(e){return(0,p.getContrastRatio)(e,h.text.primary)>=D?h.text.primary:f.text.primary}var N=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[n]&&(e.main=e[n]),!e.main)throw new Error((0,r.formatMuiErrorMessage)(4,n));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,O),m(e,"dark",i,O),e.contrastText||(e.contrastText=L(e.main)),e},j={dark:h,light:f},_=(0,r.deepmerge)((0,t.default)({common:o.default,type:P,primary:N(b),secondary:N(y,"A400","A200","A700"),error:N(S),warning:N(C),info:N(R),success:N(I),grey:i.default,contrastThreshold:D,getContrastText:L,augmentColor:N,tonalOffset:O},j[P]),q);return _},by.dark=by.light=void 0;var t=e(gu()),n=e(uy()),r=Yv,o=e(yy()),i=e(wy()),a=e(Ry()),s=e(ky()),l=e(Dy()),u=e(qy()),c=e(jy()),d=e($y()),p=Xv(),f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},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}};by.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.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 m(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return by.dark=h,by}var By,Vy={};function Wy(){if(By)return Vy;By=1;var e=zl();Object.defineProperty(Vy,"__esModule",{value:!0}),Vy.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,b=void 0===g?400:g,v=u.fontWeightMedium,y=void 0===v?500:v,x=u.fontWeightBold,S=void 0===x?700:x,w=u.htmlFontSize,C=void 0===w?16:w,E=u.allVariants,R=u.pxToRem,A=(0,n.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),I=f/14,k=R||function(e){return"".concat(e/C*I,"rem")},P=function(e,n,r,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:k(n),lineHeight:r},d===s?{letterSpacing:"".concat(o(i/n),"em")}:{},a,E)},M={h1:P(m,96,1.167,-1.5),h2:P(m,60,1.2,-.5),h3:P(b,48,1.167,0),h4:P(b,34,1.235,.25),h5:P(b,24,1.334,0),h6:P(y,20,1.6,.15),subtitle1:P(b,16,1.75,.15),subtitle2:P(y,14,1.57,.1),body1:P(b,16,1.5,.15),body2:P(b,14,1.43,.15),button:P(y,14,1.75,.4,a),caption:P(b,12,1.66,.4),overline:P(b,12,2.66,1,a)};return(0,r.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:k,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},M),A,{clone:!1})};var t=e(gu()),n=e(uy()),r=Yv;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return Vy}var Uy,Gy={};function Ky(){if(Uy)return Gy;Uy=1,Object.defineProperty(Gy,"__esModule",{value:!0}),Gy.default=void 0;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return Gy.default=t,Gy}var Yy,Xy={};function Jy(){if(Yy)return Xy;Yy=1,Object.defineProperty(Xy,"__esModule",{value:!0}),Xy.default=void 0;var e={borderRadius:4};return Xy.default=e,Xy}var Zy={};function Qy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ex(e,t){if(e){if("string"==typeof e)return Qy(e,t);var n={}.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)?Qy(e,t):void 0}}function tx(e){return function(e){if(Array.isArray(e))return Qy(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ex(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 nx(e,t){return t?qv(e,t,{clone:!1}):e}var rx={xs:0,sm:600,md:960,lg:1280,xl:1920},ox={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(rx[e],"px)")}};function ix(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||ox;return t.reduce(function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e},{})}if("object"===Ol(t)){var o=e.theme.breakpoints||ox;return Object.keys(t).reduce(function(e,r){return e[o.up(r)]=n(t[r]),e},{})}return n(t)}function ax(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function sx(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=ax(e.theme,o)||{};return ix(e,n,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=ax(a,e)||e,i&&(t=i(t))),!1===r?t:function(e,t,n){return(t=ql(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,t)})};return a.propTypes={},a.filterProps=[t],a}function lx(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce(function(t,n){var r=n(e);return r?nx(t,r):t},{})};return r.propTypes={},r.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),r}function ux(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var cx=sx({prop:"border",themeKey:"borders",transform:ux}),dx=sx({prop:"borderTop",themeKey:"borders",transform:ux}),px=sx({prop:"borderRight",themeKey:"borders",transform:ux}),fx=sx({prop:"borderBottom",themeKey:"borders",transform:ux}),hx=sx({prop:"borderLeft",themeKey:"borders",transform:ux}),mx=sx({prop:"borderColor",themeKey:"palette"}),gx=sx({prop:"borderRadius",themeKey:"shape"}),bx=lx(cx,dx,px,fx,hx,mx,gx);function vx(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n}function yx(e){var t=function(t){var n=e(t);return t.css?qn({},nx(n,e(qn({theme:t.theme},t.css))),vx(t.css,[e.filterProps])):t.sx?qn({},nx(n,e(qn({theme:t.theme},t.sx))),vx(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(tx(e.filterProps)),t}var xx=lx(sx({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),sx({prop:"display"}),sx({prop:"overflow"}),sx({prop:"textOverflow"}),sx({prop:"visibility"}),sx({prop:"whiteSpace"})),Sx=sx({prop:"flexBasis"}),wx=sx({prop:"flexDirection"}),Cx=sx({prop:"flexWrap"}),Ex=sx({prop:"justifyContent"}),Rx=sx({prop:"alignItems"}),Ax=sx({prop:"alignContent"}),Ix=sx({prop:"order"}),kx=sx({prop:"flex"}),Px=sx({prop:"flexGrow"}),Mx=sx({prop:"flexShrink"}),Dx=sx({prop:"alignSelf"}),Tx=sx({prop:"justifyItems"}),Ox=sx({prop:"justifySelf"}),qx=lx(Sx,wx,Cx,Ex,Rx,Ax,Ix,kx,Px,Mx,Dx,Tx,Ox),Lx=sx({prop:"gridGap"}),Nx=sx({prop:"gridColumnGap"}),jx=sx({prop:"gridRowGap"}),_x=sx({prop:"gridColumn"}),zx=sx({prop:"gridRow"}),Fx=sx({prop:"gridAutoFlow"}),$x=sx({prop:"gridAutoColumns"}),Hx=sx({prop:"gridAutoRows"}),Bx=sx({prop:"gridTemplateColumns"}),Vx=sx({prop:"gridTemplateRows"}),Wx=sx({prop:"gridTemplateAreas"}),Ux=sx({prop:"gridArea"}),Gx=lx(Lx,Nx,jx,_x,zx,Fx,$x,Hx,Bx,Vx,Wx,Ux),Kx=sx({prop:"color",themeKey:"palette"}),Yx=sx({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),Xx=lx(Kx,Yx),Jx=sx({prop:"position"}),Zx=sx({prop:"zIndex",themeKey:"zIndex"}),Qx=sx({prop:"top"}),eS=sx({prop:"right"}),tS=sx({prop:"bottom"}),nS=sx({prop:"left"}),rS=lx(Jx,Zx,Qx,eS,tS,nS),oS=sx({prop:"boxShadow",themeKey:"shadows"});function iS(e){return e<=1?"".concat(100*e,"%"):e}var aS=sx({prop:"width",transform:iS}),sS=sx({prop:"maxWidth",transform:iS}),lS=sx({prop:"minWidth",transform:iS}),uS=sx({prop:"height",transform:iS}),cS=sx({prop:"maxHeight",transform:iS}),dS=sx({prop:"minHeight",transform:iS}),pS=sx({prop:"size",cssProperty:"width",transform:iS}),fS=sx({prop:"size",cssProperty:"height",transform:iS}),hS=sx({prop:"boxSizing"}),mS=lx(aS,sS,lS,uS,cS,dS,hS);function gS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||ex(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var bS={m:"margin",p:"padding"},vS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},yS={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xS=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(e){if(e.length>2){if(!yS[e])return[e];e=yS[e]}var t=gS(e.split(""),2),n=t[0],r=t[1],o=bS[n],i=vS[r]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),SS=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function wS(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function CS(e,t){return function(n){return e.reduce(function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e},{})}}function ES(e){var t=wS(e.theme);return Object.keys(e).map(function(n){if(-1===SS.indexOf(n))return null;var r=CS(xS(n),t),o=e[n];return ix(e,o,r)}).reduce(nx,{})}ES.propTypes={},ES.filterProps=SS;var RS,AS=sx({prop:"fontFamily",themeKey:"typography"}),IS=sx({prop:"fontSize",themeKey:"typography"}),kS=sx({prop:"fontStyle",themeKey:"typography"}),PS=sx({prop:"fontWeight",themeKey:"typography"}),MS=sx({prop:"letterSpacing"}),DS=sx({prop:"lineHeight"}),TS=sx({prop:"textAlign"}),OS=lx(AS,IS,kS,PS,MS,DS,TS),qS=Object.freeze({__proto__:null,alignContent:Ax,alignItems:Rx,alignSelf:Dx,bgcolor:Yx,border:cx,borderBottom:fx,borderColor:mx,borderLeft:hx,borderRadius:gx,borderRight:px,borderTop:dx,borders:bx,bottom:tS,boxSizing:hS,breakpoints:function(e){var t=function(t){var n=e(t),r=t.theme.breakpoints||ox,o=r.keys.reduce(function(n,o){return t[o]&&((n=n||{})[r.up(o)]=e(qn({theme:t.theme},t[o]))),n},null);return nx(n,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(tx(e.filterProps)),t},color:Kx,compose:lx,createUnarySpacing:wS,css:function(e){return yx(e)},display:xx,flex:kx,flexBasis:Sx,flexDirection:wx,flexGrow:Px,flexShrink:Mx,flexWrap:Cx,flexbox:qx,fontFamily:AS,fontSize:IS,fontStyle:kS,fontWeight:PS,grid:Gx,gridArea:Ux,gridAutoColumns:$x,gridAutoFlow:Fx,gridAutoRows:Hx,gridColumn:_x,gridColumnGap:Nx,gridGap:Lx,gridRow:zx,gridRowGap:jx,gridTemplateAreas:Wx,gridTemplateColumns:Bx,gridTemplateRows:Vx,height:uS,justifyContent:Ex,justifyItems:Tx,justifySelf:Ox,left:nS,letterSpacing:MS,lineHeight:DS,maxHeight:cS,maxWidth:sS,minHeight:dS,minWidth:lS,order:Ix,palette:Xx,position:Jx,positions:rS,right:eS,shadows:oS,sizeHeight:fS,sizeWidth:pS,sizing:mS,spacing:ES,style:sx,styleFunctionSx:yx,textAlign:TS,top:Qx,typography:OS,width:aS,zIndex:Zx}),LS=Vt(qS);function NS(){if(RS)return Zy;RS=1,Object.defineProperty(Zy,"__esModule",{value:!0}),Zy.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var n=(0,e.createUnarySpacing)({spacing:t}),r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?n(1):1===t.length?n(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=n(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return t}}),r.mui=!0,r};var e=LS;return Zy}var jS,_S={};function zS(){if(jS)return _S;jS=1;var e=zl();Object.defineProperty(_S,"__esModule",{value:!0}),_S.default=_S.duration=_S.easing=void 0;var t=e(uy()),n={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.easing=n;var r={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}_S.duration=r;var i={easing:n,duration:r,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?r.standard:a,l=i.easing,u=void 0===l?n.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return _S.default=i,_S}var FS,$S,HS={};function BS(){if(FS)return HS;FS=1,Object.defineProperty(HS,"__esModule",{value:!0}),HS.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return HS.default=e,HS}function VS(){if($S)return ey;$S=1;var e=zl();Object.defineProperty(ey,"__esModule",{value:!0}),ey.createMuiTheme=function(){return p.apply(void 0,arguments)},ey.default=void 0,e(ay());var t=e(uy()),n=Yv,r=e(py()),o=e(my()),i=e(Hy()),a=e(Wy()),s=e(Ky()),l=e(Jy()),u=e(NS()),c=e(zS()),d=e(BS());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,b=void 0===g?{}:g,v=e.spacing,y=e.typography,x=void 0===y?{}:y,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(b),C=(0,r.default)(f),E=(0,u.default)(v),R=(0,n.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:c.default,zIndex:d.default},S),A=arguments.length,I=new Array(A>1?A-1:0),k=1;k<A;k++)I[k-1]=arguments[k];return R=I.reduce(function(e,t){return(0,n.deepmerge)(e,t)},R)}var f=p;return ey.default=f,ey}var WS,US={};function GS(){if(WS)return US;WS=1;var e=zl();Object.defineProperty(US,"__esModule",{value:!0}),US.default=function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=Yv,n=e(VS());return US}var KS={},YS="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",XS=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function JS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==XS.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[YS]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function ZS(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var QS="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},ew="object"===("undefined"==typeof window?"undefined":QS(window))&&"object"===("undefined"==typeof document?"undefined":QS(document))&&9===document.nodeType;function tw(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ql(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var nw={}.constructor;function rw(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(rw);if(e.constructor!==nw)return e;var t={};for(var n in e)t[n]=rw(e[n]);return t}function ow(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=rw(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var iw=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},aw=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=iw(e[n]," ");else t=iw(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function sw(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function lw(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function uw(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=sw(n),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(r&&(r+=l),r+=lw(p+":"+u+aw(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=lw(h+":"+u+aw(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(r&&(r+=l),r+=lw(g+":"+u+aw(b)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),lw(""+e+u+"{"+r,--i)+lw("}",i)):r}var cw=/([[\].#*$><+~=|^:(),"'`\s])/g,dw="undefined"!=typeof CSS&&CSS.escape,pw=function(e){return dw?dw(e):e.replace(cw,"\\$1")},fw=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),hw=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Ju(Ju(o)),s),o.selectorText="."+pw(o.id)),o}$u(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=aw(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?qn({},e,{allowEmpty:!0}):e;return uw(this.selectorText,this.style,n)},tw(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(fw),mw={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new hw(e,t,n)}},gw={indent:1,children:!0},bw=/@([\w-]+)/,vw=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(bw);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Hw(qn({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=gw);var t=sw(e).linebreak;if(null==e.indent&&(e.indent=gw.indent),null==e.children&&(e.children=gw.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),yw=/@container|@media|@supports\s+/,xw={onCreateRule:function(e,t,n){return yw.test(e)?new vw(e,t,n):null}},Sw={indent:1,children:!0},ww=/@keyframes\s+([\w-]+)/,Cw=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(ww);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var s in this.id=!1===o?this.name:pw(a(this,i)),this.rules=new Hw(qn({},n,{parent:this})),t)this.rules.add(s,t[s],qn({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Sw);var t=sw(e).linebreak;if(null==e.indent&&(e.indent=Sw.indent),null==e.children&&(e.children=Sw.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),Ew=/@keyframes\s+/,Rw=/\$([\w-]+)/g,Aw=function(e,t){return"string"==typeof e?e.replace(Rw,function(e,n){return n in t?t[n]:e}):e},Iw=function(e,t,n){var r=e[t],o=Aw(r,n);o!==r&&(e[t]=o)},kw={onCreateRule:function(e,t,n){return"string"==typeof e&&Ew.test(e)?new Cw(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Iw(e,"animation-name",n.keyframes),"animation"in e&&Iw(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return Aw(e,r.keyframes);default:return e}}},Pw=function(e){function t(){return e.apply(this,arguments)||this}return $u(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?qn({},e,{allowEmpty:!0}):e;return uw(this.key,this.style,n)},t}(fw),Mw={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Pw(e,t,n):null}},Dw=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=sw(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=uw(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return uw(this.at,this.style,e)},e}(),Tw=/@font-face/,Ow={onCreateRule:function(e,t,n){return Tw.test(e)?new Dw(e,t,n):null}},qw=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return uw(this.key,this.style,e)},e}(),Lw={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new qw(e,t,n):null}},Nw=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),jw={"@charset":!0,"@import":!0,"@namespace":!0},_w={onCreateRule:function(e,t,n){return e in jw?new Nw(e,t,n):null}},zw=[mw,xw,kw,Mw,Ow,Lw,_w],Fw={process:!0},$w={force:!0,process:!0},Hw=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,u=r.scoped,c=qn({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+pw(this.classes[d]));var p=ow(d,t,c);if(!p)return null;this.register(p);var f=void 0===c.index?this.index.length:c.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=qn({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof hw?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Cw&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof hw?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Cw&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=Fw);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,$w)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,$w)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=sw(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),Bw=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=qn({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Hw(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Vw=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Ww=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Ln(t,["attached"]),o=sw(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},tw(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Uw=new Ww,Gw="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Kw="2f1acc6c3a606b082e5eef5e54414ffb";null==Gw[Kw]&&(Gw[Kw]=0);var Yw=Gw[Kw]++,Xw=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+Yw+o+t:i+n.key+"-"+Yw+(o?"-"+o:"")+"-"+t}},Jw=function(e){var t;return function(){return t||(t=e()),t}},Zw=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Qw=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=aw(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},eC=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},tC=function(e,t){return e.selectorText=t,e.selectorText===t},nC=Jw(function(){return document.querySelector("head")});function rC(e){var t=Uw.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=nC(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var oC=Jw(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),iC=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},aC=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},sC=function(){function e(e){this.getPropertyValue=Zw,this.setProperty=Qw,this.removeProperty=eC,this.setSelector=tC,this.hasInsertedRules=!1,this.cssRules=[],e&&Uw.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=oC();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=rC(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else nC().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=aC(n,t);if(!1===(o=iC(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=aC(n,t),l=iC(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof Bw&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),lC=0,uC=function(){function e(e){this.id=lC++,this.version="10.10.0",this.plugins=new Vw,this.options={id:{minify:!1},createGenerateId:Xw,Renderer:ew?sC:null,plugins:[]},this.generateId=Xw({minify:!1});for(var t=0;t<zw.length;t++)this.plugins.use(zw[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=qn({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===Uw.index?0:Uw.index+1);var r=new Bw(e,qn({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),Uw.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=qn({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=ow(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.plugins.use(t)}),this},e}(),cC=function(e){return new uC(e)},dC="object"==typeof CSS&&null!=CSS&&"number"in CSS;function pC(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=pC(r);i&&(t||(t={}),t[n]=i)}}return t}
|
|
90
|
+
`),uc.rippleVisible,gc,550,({theme:e})=>e.transitions.easing.easeInOut,uc.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,uc.child,uc.childLeaving,bc,550,({theme:e})=>e.transitions.easing.easeInOut,uc.childPulsate,vc,({theme:e})=>e.transitions.easing.easeInOut),Sc=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Ln(n,cc),[s,l]=E.useState([]),u=E.useRef(0),c=E.useRef(null);E.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=E.useRef(!1),p=nl(),f=E.useRef(null),h=E.useRef(null),m=E.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l(e=>[...e,Yt.jsx(xc,{classes:{ripple:ys(o.ripple,uc.ripple),rippleVisible:ys(o.rippleVisible,uc.rippleVisible),ripplePulsate:ys(o.ripplePulsate,uc.ripplePulsate),child:ys(o.child,uc.child),childLeaving:ys(o.childLeaving,uc.childLeaving),childPulsate:ys(o.childPulsate,uc.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 s=a?null:h.current,l=s?s.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(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,()=>{f.current&&(f.current(),f.current=null)})):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},[r,m,p]),b=E.useCallback(()=>{g({},{pulsate:!0})},[g]),v=E.useCallback((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,()=>{v(e,t)});f.current=null,l(e=>e.length>0?e.slice(1):e),c.current=t},[p]);return E.useImperativeHandle(t,()=>({pulsate:b,start:g,stop:v}),[b,g,v]),Yt.jsx(yc,qn({className:ys(uc.root,o.root,i),ref:h},a,{children:Yt.jsx(nc,{component:null,exit:!0,children:s})}))});function wc(e){return ws("MuiButtonBase",e)}const Cc=Cs("MuiButtonBase",["root","disabled","focusVisible"]),Ec=["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"],Rc=Mu("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"},[`&.${Cc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ac=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:C,onTouchEnd:R,onTouchMove:A,onTouchStart:I,tabIndex:k=0,TouchRippleProps:P,touchRippleRef:M,type:D}=n,T=Ln(n,Ec),O=E.useRef(null),q=E.useRef(null),L=Zs(q,M),{isFocusVisibleRef:N,onFocus:j,onBlur:_,ref:z}=dl(),[F,$]=E.useState(!1);l&&F&&$(!1),E.useImperativeHandle(r,()=>({focusVisible:()=>{$(!0),O.current.focus()}}),[]);const[H,B]=E.useState(!1);E.useEffect(()=>{B(!0)},[]);const V=H&&!u&&!l;function W(e,t,n=c){return Js(r=>{t&&t(r);return!n&&q.current&&q.current[e](r),!0})}E.useEffect(()=>{F&&d&&!u&&H&&q.current.pulsate()},[u,d,F,H]);const U=W("start",S),G=W("stop",m),K=W("stop",g),Y=W("stop",C),X=W("stop",e=>{F&&e.preventDefault(),w&&w(e)}),J=W("start",I),Z=W("stop",R),Q=W("stop",A),ee=W("stop",e=>{_(e),!1===N.current&&$(!1),f&&f(e)},!1),te=Js(e=>{O.current||(O.current=e.currentTarget),j(e),!0===N.current&&($(!0),v&&v(e)),b&&b(e)}),ne=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=E.useRef(!1),oe=Js(e=>{d&&!re.current&&F&&q.current&&" "===e.key&&(re.current=!0,q.current.stop(e,()=>{q.current.start(e)})),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))}),ie=Js(e=>{d&&" "===e.key&&q.current&&F&&!e.defaultPrevented&&(re.current=!1,q.current.stop(e,()=>{q.current.pulsate(e)})),x&&x(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)});let ae=s;"button"===ae&&(T.href||T.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===D?"button":D,se.disabled=l):(T.href||T.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=Zs(t,z,O),ue=qn({},n,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=fl({root:["root",t&&"disabled",n&&"focusVisible"]},wc,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Yt.jsxs(Rc,qn({as:ae,className:ys(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:Y,onDragLeave:K,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:k,type:D},se,T,{children:[i,V?Yt.jsx(Sc,qn({ref:L,center:o},P)):null]}))});function Ic(e){return ws("MuiIconButton",e)}const kc=Cs("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Pc=["edge","children","className","color","disabled","disableFocusRipple","size"],Mc=Mu(Ac,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${ca(n.color)}`],n.edge&&t[`edge${ca(n.edge)}`],t[`size${ca(n.size)}`]]}})(({theme:e,ownerState:t})=>qn({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Vl.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return qn({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&qn({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":qn({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vl.alpha(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${kc.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Dc=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium"}=n,c=Ln(n,Pc),d=qn({},n,{edge:r,color:a,disabled:s,disableFocusRipple:l,size:u}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return fl({root:["root",n&&"disabled","default"!==r&&`color${ca(r)}`,o&&`edge${ca(o)}`,`size${ca(i)}`]},Ic,t)})(d);return Yt.jsx(Mc,qn({className:ys(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))});function Tc(e){return ws("MuiTypography",e)}Cs("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Oc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],qc=Mu("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${ca(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>qn({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})),Lc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Nc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},jc=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiTypography"}),r=(e=>Nc[e]||e)(n.color),o=hs(qn({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Lc}=o,f=Ln(o,Oc),h=qn({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||Lc[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return fl({root:["root",i,"inherit"!==e.align&&`align${ca(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Tc,a)})(h);return Yt.jsx(qc,qn({as:m,ref:t,ownerState:h,className:ys(g.root,a)},f))});const _c=E.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=E.useState(null),s=Zs(E.isValidElement(n)?yl(n):null,t);if(js(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),js(()=>{if(i&&!o)return Us(t,i),()=>{Us(t,null)}},[t,i,o]),o){if(E.isValidElement(n)){const e={ref:s};return E.cloneElement(n,e)}return Yt.jsx(E.Fragment,{children:n})}return Yt.jsx(E.Fragment,{children:i?W.createPortal(n,i):i})}),zc=["onChange","maxRows","minRows","style","value"];function Fc(e){return parseInt(e,10)||0}const $c={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Hc(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Bc=E.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=Ln(e,zc),{current:l}=E.useRef(null!=a),u=E.useRef(null),c=Zs(t,u),d=E.useRef(null),p=E.useRef(null),f=E.useCallback(()=>{const t=u.current,n=p.current;if(!t||!n)return;const i=Ws(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,s=Fc(i.paddingBottom)+Fc(i.paddingTop),l=Fc(i.borderBottomWidth)+Fc(i.borderTopWidth),c=n.scrollHeight;n.value="x";const d=n.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-c)<=1}},[r,o,e.placeholder]),h=Js(()=>{const e=u.current,t=f();if(!e||!t||Hc(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n}),m=E.useCallback(()=>{const e=u.current,t=f();if(!e||!t||Hc(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[f]),g=E.useRef(-1);js(()=>{const e=Bs(m),t=null==u?void 0:u.current;if(!t)return;const n=Ws(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{h()&&(r.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[f,m,h]),js(()=>{m()});return Yt.jsxs(E.Fragment,{children:[Yt.jsx("textarea",qn({value:a,onChange:e=>{l||m(),n&&n(e)},ref:c,rows:o,style:i},s)),Yt.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:qn({},$c,i,{paddingTop:0,paddingBottom:0})})]})});function Vc({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}const Wc=E.createContext(void 0);function Uc(){return E.useContext(Wc)}function Gc(e){return Yt.jsx(ps,qn({},e,{defaultTheme:du,themeId:On}))}function Kc(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Yc(e,t=!1){return e&&(Kc(e.value)&&""!==e.value||t&&Kc(e.defaultValue)&&""!==e.defaultValue)}function Xc(e){return ws("MuiInputBase",e)}const Jc=Cs("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Zc=["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"],Qc=(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${ca(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},ed=(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]},td=Mu("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Qc})(({theme:e,ownerState:t})=>qn({},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",[`&.${Jc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&qn({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),nd=Mu("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ed})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=qn({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 qn({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] + .${Jc.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},[`&.${Jc.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"})}),rd=Yt.jsx(Gc,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),od=E.forwardRef(function(e,t){var n;const r=qu({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:x,multiline:S=!1,name:w,onBlur:C,onChange:R,onClick:A,onFocus:I,onKeyDown:k,onKeyUp:P,placeholder:M,readOnly:D,renderSuffix:T,rows:O,slotProps:q={},slots:L={},startAdornment:N,type:j="text",value:_}=r,z=Ln(r,Zc),F=null!=b.value?b.value:_,{current:$}=E.useRef(null!=F),H=E.useRef(),B=E.useCallback(e=>{},[]),V=Zs(H,v,b.ref,B),[W,U]=E.useState(!1),G=Uc(),K=Vc({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:W,E.useEffect(()=>{!G&&d&&W&&(U(!1),C&&C())},[G,d,W,C]);const Y=G&&G.onFilled,X=G&&G.onEmpty,J=E.useCallback(e=>{Yc(e)?Y&&Y():X&&X()},[Y,X]);js(()=>{$&&J({value:F})},[F,J,$]);E.useEffect(()=>{J(H.current)},[]);let Z=g,Q=b;S&&"input"===Z&&(Q=qn(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:x},Q),Z=Bc);E.useEffect(()=>{G&&G.setAdornedStart(Boolean(N))},[G,N]);const ee=qn({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:S,size:K.size,startAdornment:N,type:j}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return fl({root:["root",`color${ca(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${ca(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Xc,t)})(ee),ne=L.root||l.Root||td,re=q.root||u.root||{},oe=L.input||l.Input||nd;return Q=qn({},Q,null!=(n=q.input)?n:u.input),Yt.jsxs(E.Fragment,{children:[!p&&rd,Yt.jsxs(ne,qn({},re,!hl(ne)&&{ownerState:qn({},ee,re.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),A&&A(e)}},z,{className:ys(te.root,re.className,s,D&&"MuiInputBase-readOnly"),children:[N,Yt.jsx(Wc.Provider,{value:null,children:Yt.jsx(oe,qn({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:K.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:w,placeholder:M,readOnly:D,required:K.required,rows:O,value:F,onKeyDown:k,onKeyUp:P,type:j},Q,!hl(oe)&&{as:Z,ownerState:qn({},ee,Q.ownerState)},{ref:V,className:ys(te.input,Q.className,D&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),b.onBlur&&b.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(Dn(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(I&&I(e),b.onFocus&&b.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T(qn({},K,{startAdornment:N})):null]}))]})});function id(e){return ws("MuiInput",e)}const ad=qn({},Jc,Cs("MuiInput",["root","underline","input"]));function sd(e){return ws("MuiOutlinedInput",e)}const ld=qn({},Jc,Cs("MuiOutlinedInput",["root","notchedOutline","input"]));function ud(e){return ws("MuiFilledInput",e)}const cd=qn({},Jc,Cs("MuiFilledInput",["root","underline","input"]));var dd=zu(Yt.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const pd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],fd={entering:{opacity:1},entered:{opacity:1}},hd=E.forwardRef(function(e,t){const n=pu(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:b=Yu}=e,v=Ln(e,pd),y=E.useRef(null),x=Zs(y,yl(a),t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},w=S(d),C=S((e,t)=>{rc(e);const r=oc({style:m,timeout:g,easing:s},{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(h),I=S(e=>{const t=oc({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)}),k=S(f);return Yt.jsx(b,qn({appear:i,in:l,nodeRef:y,onEnter:C,onEntered:R,onEntering:w,onExit:I,onExited:k,onExiting:A,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>E.cloneElement(a,qn({style:qn({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},fd[e],m,a.props.style),ref:x},t))}))});function md(e){return ws("MuiBackdrop",e)}Cs("MuiBackdrop",["root","invisible"]);const gd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],bd=Mu("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>qn({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"})),vd=E.forwardRef(function(e,t){var n,r,o;const i=qu({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=hd,transitionDuration:g}=i,b=Ln(i,gd),v=qn({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return fl({root:["root",n&&"invisible"]},md,t)})(v),x=null!=(n=f.root)?n:c.root;return Yt.jsx(m,qn({in:p,timeout:g},b,{children:Yt.jsx(bd,qn({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:l,className:ys(y.root,s,null==x?void 0:x.className),ownerState:qn({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}),yd=Cs("MuiBox",["root"]),xd=cu(),Sd=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Ki("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(rs);return E.forwardRef(function(e,a){const s=cs(n),l=hs(e),{className:u,component:c="div"}=l,d=Ln(l,xs);return Yt.jsx(i,qn({as:c,ref:a,className:ys(u,o?o(r):r),theme:t&&s[t]||s},d))})}({themeId:On,defaultTheme:xd,defaultClassName:yd.root,generateClassName:bs.generate});function wd(e){return ws("MuiButton",e)}const Cd=Cs("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Ed=E.createContext({}),Rd=E.createContext(void 0),Ad=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Id=e=>qn({},"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}}),kd=Mu(Ac,{shouldForwardProp:e=>Pu(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ca(n.color)}`],t[`size${ca(n.size)}`],t[`${n.variant}Size${ca(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 qn({},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":qn({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Vl.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vl.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vl.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":qn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Cd.focusVisible}`]:qn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Cd.disabled}`]:qn({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 ${Vl.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Cd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Cd.disabled}`]:{boxShadow:"none"}}),Pd=Mu("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ca(n.size)}`]]}})(({ownerState:e})=>qn({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Id(e))),Md=Mu("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ca(n.size)}`]]}})(({ownerState:e})=>qn({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Id(e))),Dd=E.forwardRef(function(e,t){const n=E.useContext(Ed),r=E.useContext(Rd),o=qu({props:Ns(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,y=Ln(o,Ad),x=qn({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return qn({},a,fl({root:["root",i,`${i}${ca(t)}`,`size${ca(o)}`,`${i}Size${ca(o)}`,`color${ca(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ca(o)}`],endIcon:["icon","endIcon",`iconSize${ca(o)}`]},wd,a))})(x),w=g&&Yt.jsx(Pd,{className:S.startIcon,ownerState:x,children:g}),C=p&&Yt.jsx(Md,{className:S.endIcon,ownerState:x,children:p}),R=r||"";return Yt.jsxs(kd,qn({ownerState:x,className:ys(n.className,S.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:ys(S.focusVisible,f),ref:t,type:b},y,{classes:S,children:[w,i,C]}))});function Td(e){return ws("PrivateSwitchBase",e)}Cs("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Od=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],qd=Mu(Ac,{name:"MuiSwitchBase"})(({ownerState:e})=>qn({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),Ld=Mu("input",{name:"MuiSwitchBase",shouldForwardProp:Pu})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Nd=E.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:u=!1,icon:c,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:b,readOnly:v,required:y=!1,tabIndex:x,type:S,value:w}=e,C=Ln(e,Od),[E,R]=Xs({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),A=Uc();let I=s;A&&void 0===I&&(I=A.disabled);const k="checkbox"===S||"radio"===S,P=qn({},e,{checked:E,disabled:I,disableFocusRipple:l,edge:u}),M=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return fl({root:["root",n&&"checked",r&&"disabled",o&&`edge${ca(o)}`],input:["input"]},Td,t)})(P);return Yt.jsxs(qd,qn({component:"span",className:ys(M.root,i),centerRipple:!0,focusRipple:!l,disabled:I,tabIndex:null,role:void 0,onFocus:e=>{b&&b(e),A&&A.onFocus&&A.onFocus(e)},onBlur:e=>{m&&m(e),A&&A.onBlur&&A.onBlur(e)},ownerState:P,ref:t},C,{children:[Yt.jsx(Ld,qn({autoFocus:n,checked:r,defaultChecked:a,className:M.input,disabled:I,id:k?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;R(t),g&&g(e,t)},readOnly:v,ref:f,required:y,ownerState:P,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),E?o:c]}))});var jd=zu(Yt.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),_d=zu(Yt.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),zd=zu(Yt.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Fd(e){return ws("MuiCheckbox",e)}const $d=Cs("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Hd=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Bd=Mu(Nd,{shouldForwardProp:e=>Pu(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ca(n.size)}`],"default"!==n.color&&t[`color${ca(n.color)}`]]}})(({theme:e,ownerState:t})=>qn({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vl.alpha("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${$d.checked}, &.${$d.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${$d.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Vd=Yt.jsx(_d,{}),Wd=Yt.jsx(jd,{}),Ud=Yt.jsx(zd,{}),Gd=E.forwardRef(function(e,t){var n,r;const o=qu({props:e,name:"MuiCheckbox"}),{checkedIcon:i=Vd,color:a="primary",icon:s=Wd,indeterminate:l=!1,indeterminateIcon:u=Ud,inputProps:c,size:d="medium",className:p}=o,f=Ln(o,Hd),h=l?u:s,m=l?u:i,g=qn({},o,{color:a,indeterminate:l,size:d}),b=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e;return qn({},t,fl({root:["root",n&&"indeterminate",`color${ca(r)}`,`size${ca(o)}`]},Fd,t))})(g);return Yt.jsx(Bd,qn({type:"checkbox",inputProps:qn({"data-indeterminate":l},c),icon:E.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:E.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:ys(b.root,p)},f,{classes:b}))});function Kd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Yd(e){return parseInt(Ws(e).getComputedStyle(e).paddingRight,10)||0}function Xd(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&&Kd(e,o)})}function Jd(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function Zd(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Vs(e);return t.body===e?Ws(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=pl(Vs(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Yd(r)+e}px`;const t=Vs(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Yd(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Vs(r).body;else{const t=r.parentElement,n=Ws(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 Qd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ep(e){const t=[],n=[];return Array.from(e.querySelectorAll(Qd)).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 tp(){return!0}function np(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=ep,isEnabled:a=tp,open:s}=e,l=E.useRef(!1),u=E.useRef(null),c=E.useRef(null),d=E.useRef(null),p=E.useRef(null),f=E.useRef(!1),h=E.useRef(null),m=Zs(yl(t),h),g=E.useRef(null);E.useEffect(()=>{s&&h.current&&(f.current=!n)},[n,s]),E.useEffect(()=>{if(!s||!h.current)return;const e=Vs(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),E.useEffect(()=>{if(!s||!h.current)return;const e=Vs(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==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(h.current)),n.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Yt.jsxs(E.Fragment,{children:[Yt.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Yt.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const rp=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&&Kd(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);Xd(t,e.mount,e.modalRef,r,!0);const o=Jd(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=Jd(this.containers,t=>-1!==t.modals.indexOf(e)),r=this.containers[n];r.restore||(r.restore=Zd(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Jd(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&&Kd(e.modalRef,t),Xd(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&&Kd(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function op(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=rp,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=E.useRef({}),f=E.useRef(null),h=E.useRef(null),m=Zs(h,d),[g,b]=E.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},w=Js(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Vs(f.current).body;o.add(x(),e),h.current&&S()}),C=E.useCallback(()=>o.isTopModal(x()),[o]),R=Js(e=>{f.current=e,e&&(c&&C()?S():h.current&&Kd(h.current,y))}),A=E.useCallback(()=>{o.remove(x(),y)},[y,o]);E.useEffect(()=>()=>{A()},[A]),E.useEffect(()=>{c?w():v&&i||A()},[c,A,v,i,w]);const I=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},k=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=ml(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=qn({},n,t);return qn({role:"presentation"},r,{onKeyDown:I(r),ref:m})},getBackdropProps:(e={})=>qn({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:Hs(()=>{b(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:Hs(()=>{b(!0),s&&s(),i&&A()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:C,exited:g,hasTransition:v}}function ip(e){return ws("MuiModal",e)}Cs("MuiModal",["root","hidden","backdrop"]);const ap=["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"],sp=Mu("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})=>qn({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),lp=Mu(vd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),up=E.forwardRef(function(e,t){var n,r,o,i,a,s;const l=qu({name:"MuiModal",props:e}),{BackdropComponent:u=lp,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:C=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:I,open:k,slotProps:P,slots:M}=l,D=Ln(l,ap),T=qn({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:R,keepMounted:A}),{getRootProps:O,getBackdropProps:q,getTransitionProps:L,portalRef:N,isTopModal:j,exited:_,hasTransition:z}=op(qn({},T,{rootRef:t})),F=qn({},T,{exited:_}),$=(e=>{const{open:t,exited:n,classes:r}=e;return fl({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},ip,r)})(F),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),z){const{onEnter:e,onExited:t}=L();H.onEnter=e,H.onExited=t}const B=null!=(n=null!=(r=null==M?void 0:M.root)?r:g.Root)?n:sp,V=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==P?void 0:P.root)?a:b.root,U=null!=(s=null==P?void 0:P.backdrop)?s:b.backdrop,G=vl({elementType:B,externalSlotProps:W,externalForwardedProps:D,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:F,className:ys(d,null==W?void 0:W.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),K=vl({elementType:V,externalSlotProps:U,additionalProps:c,getSlotProps:e=>q(qn({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ys(null==U?void 0:U.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:F});return A||k||z&&!_?Yt.jsx(_c,{ref:N,container:h,disablePortal:S,children:Yt.jsxs(B,qn({},G,{children:[!R&&u?Yt.jsx(V,qn({},K)):null,Yt.jsx(np,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:w,isEnabled:j,open:k,children:E.cloneElement(f,H)})]}))}):null});function cp(e){return ws("MuiDivider",e)}const dp=Cs("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),pp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],fp=Mu("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})=>qn({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)`:Vl.alpha(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>qn({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>qn({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>qn({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>qn({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),hp=Mu("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>qn({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)`})),mp=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Ln(n,pp),h=qn({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return fl({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},cp,r)})(h);return Yt.jsx(fp,qn({as:a,className:ys(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?Yt.jsx(hp,{className:m.wrapper,ownerState:h,children:o}):null}))});mp.muiSkipListHighlight=!0;const gp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],bp=Mu(td,{shouldForwardProp:e=>Pu(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Qc(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)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return qn({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}},[`&.${cd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${cd.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!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"},[`&.${cd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${cd.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(.${cd.disabled}, .${cd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${cd.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&qn({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}))}),vp=Mu(nd,{name:"MuiFilledInput",slot:"Input",overridesResolver:ed})(({theme:e,ownerState:t})=>qn({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=qu({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=Ln(a,gp),g=qn({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:n}=e;return qn({},t,fl({root:["root",!n&&"underline"],input:["input"]},ud,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?ea(v,null!=p?p:l):v,x=null!=(n=null!=(r=f.root)?r:s.Root)?n:bp,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:vp;return Yt.jsx(od,qn({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))});yp.muiName="Input";const xp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Sp(e){return`scale(${e}, ${e**2})`}const wp={entering:{opacity:1,transform:Sp(1)},entered:{opacity:1,transform:"none"}},Cp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ep=E.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Yu}=e,g=Ln(e,xp),b=nl(),v=E.useRef(),y=pu(),x=E.useRef(null),S=Zs(x,yl(o),t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=w(u),R=w((e,t)=>{rc(e);const{duration:n,delay:r,easing:o}=oc({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(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:Cp?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)}),A=w(l),I=w(p),k=w(e=>{const{duration:t,delay:n,easing:r}=oc({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(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:Cp?o:.666*o,delay:Cp?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Sp(.75),c&&c(e)}),P=w(d);return Yt.jsx(m,qn({appear:r,in:a,nodeRef:x,onEnter:R,onEntered:A,onEntering:C,onExit:k,onExited:P,onExiting:I,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>E.cloneElement(o,qn({style:qn({opacity:0,transform:Sp(.75),visibility:"exited"!==e||a?void 0:"hidden"},wp[e],f,o.props.style),ref:S},t))}))});Ep.muiSupportAuto=!0;const Rp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Ap=Mu(td,{shouldForwardProp:e=>Pu(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Qc(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})`),qn({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"},[`&.${ad.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ad.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(.${ad.disabled}, .${ad.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ad.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Ip=Mu(nd,{name:"MuiInput",slot:"Input",overridesResolver:ed})({}),kp=E.forwardRef(function(e,t){var n,r,o,i;const a=qu({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=Ln(a,Rp),b=(e=>{const{classes:t,disableUnderline:n}=e;return qn({},t,fl({root:["root",!n&&"underline"],input:["input"]},id,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?ea(null!=f?f:u,v):v,x=null!=(n=null!=(r=h.root)?r:l.Root)?n:Ap,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:Ip;return Yt.jsx(od,qn({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))});function Pp(e){return ws("MuiInputAdornment",e)}kp.muiName="Input";const Mp=Cs("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Dp;const Tp=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Op=Mu("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ca(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(({theme:e,ownerState:t})=>qn({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${Mp.positionStart}&:not(.${Mp.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),qp=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:u}=n,c=Ln(n,Tp),d=Uc()||{};let p=u;u&&d.variant,d&&!p&&(p=d.variant);const f=qn({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:l,variant:p}),h=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return fl({root:["root",n&&"disablePointerEvents",o&&`position${ca(o)}`,a,r&&"hiddenLabel",i&&`size${ca(i)}`]},Pp,t)})(f);return Yt.jsx(Wc.Provider,{value:null,children:Yt.jsx(Op,qn({as:i,ownerState:f,className:ys(h.root,o),ref:t},c,{children:"string"!=typeof r||s?Yt.jsxs(E.Fragment,{children:["start"===l?Dp||(Dp=Yt.jsx("span",{className:"notranslate",children:""})):null,r]}):Yt.jsx(jc,{color:"text.secondary",children:r})}))})});function Lp(e){return ws("MuiLink",e)}const Np=Cs("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),jp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},_p=({theme:e,ownerState:t})=>{const n=(e=>jp[e]||e)(t.color),r=pa(e,`palette.${n}`,!1)||t.color,o=pa(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Vl.alpha(r,.4)},zp=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Fp=Mu(jc,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ca(n.underline)}`],"button"===n.component&&t.button]}})(({theme:e,ownerState:t})=>qn({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&qn({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:_p({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Np.focusVisible}`]:{outline:"auto"}})),$p=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:u="always",variant:c="inherit",sx:d}=n,p=Ln(n,zp),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=dl(),[b,v]=E.useState(!1),y=Zs(t,g),x=qn({},n,{color:o,component:i,focusVisible:b,underline:u,variant:c}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return fl({root:["root",`underline${ca(o)}`,"button"===n&&"button",r&&"focusVisible"]},Lp,t)})(x);return Yt.jsx(Fp,qn({color:o,className:ys(S.root,r),classes:l,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),s&&s(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(jp).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}),Hp=E.createContext({});function Bp(e){return ws("MuiList",e)}Cs("MuiList",["root","padding","dense","subheader"]);const Vp=["children","className","component","dense","disablePadding","subheader"],Wp=Mu("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})=>qn({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Up=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,u=Ln(n,Vp),c=E.useMemo(()=>({dense:a}),[a]),d=qn({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return fl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Bp,t)})(d);return Yt.jsx(Hp.Provider,{value:c,children:Yt.jsxs(Wp,qn({as:i,className:ys(p.root,o),ref:t,ownerState:d},u,{children:[l,r]}))})});function Gp(e){return ws("MuiListItem",e)}const Kp=Cs("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Yp=Cs("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Xp(e){return ws("MuiListItemSecondaryAction",e)}Cs("MuiListItemSecondaryAction",["root","disableGutters"]);const Jp=["className"],Zp=Mu("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>qn({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Qp=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Ln(n,Jp),i=qn({},n,{disableGutters:E.useContext(Hp).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return fl({root:["root",t&&"disableGutters"]},Xp,n)})(i);return Yt.jsx(Zp,qn({className:ys(a.root,r),ownerState:i,ref:t},o))});Qp.muiName="ListItemSecondaryAction";const ef=["className"],tf=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],nf=Mu("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})=>qn({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&qn({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Yp.root}`]:{paddingRight:48}},{[`&.${Kp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Kp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Kp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Kp.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"}},[`&.${Kp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),rf=Mu("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),of=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,className:s,component:l,components:u={},componentsProps:c={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:b=!1,focusVisibleClassName:v,secondaryAction:y,selected:x=!1,slotProps:S={},slots:w={}}=n,C=Ln(n.ContainerProps,ef),R=Ln(n,tf),A=E.useContext(Hp),I=E.useMemo(()=>({dense:f||A.dense||!1,alignItems:r,disableGutters:m}),[r,A.dense,f,m]),k=E.useRef(null);js(()=>{o&&k.current&&k.current.focus()},[o]);const P=E.Children.toArray(a),M=P.length&&(D=P[P.length-1],T=["ListItemSecondaryAction"],E.isValidElement(D)&&-1!==T.indexOf(null!=(O=D.type.muiName)?O:null==(q=D.type)||null==(q=q._payload)||null==(q=q.value)?void 0:q.muiName));var D,T,O,q;const L=qn({},n,{alignItems:r,autoFocus:o,button:i,dense:I.dense,disabled:h,disableGutters:m,disablePadding:g,divider:b,hasSecondaryAction:M,selected:x}),N=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return fl({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},Gp,r)})(L),j=Zs(k,t),_=w.root||u.Root||nf,z=S.root||c.root||{},F=qn({className:ys(N.root,z.className,s),disabled:h},R);let $=l||"li";return i&&(F.component=l||"div",F.focusVisibleClassName=ys(Kp.focusVisible,v),$=Ac),M?($=F.component||l?$:"div","li"===d&&("li"===$?$="div":"li"===F.component&&(F.component="div")),Yt.jsx(Hp.Provider,{value:I,children:Yt.jsxs(rf,qn({as:d,className:ys(N.container,p),ref:j,ownerState:L},C,{children:[Yt.jsx(_,qn({},z,!hl(_)&&{as:$,ownerState:qn({},L,z.ownerState)},F,{children:P})),P.pop()]}))})):Yt.jsx(Hp.Provider,{value:I,children:Yt.jsxs(_,qn({},z,{as:$,ref:j},!hl(_)&&{ownerState:qn({},L,z.ownerState)},F,{children:[P,y&&Yt.jsx(Qp,{children:y})]}))})});function af(e){return ws("MuiListItemIcon",e)}const sf=Cs("MuiListItemIcon",["root","alignItemsFlexStart"]),lf=["className"],uf=Mu("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})=>qn({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),cf=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Ln(n,lf),i=qn({},n,{alignItems:E.useContext(Hp).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return fl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},af,n)})(i);return Yt.jsx(uf,qn({className:ys(a.root,r),ownerState:i,ref:t},o))}),df=Cs("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),pf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ff(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function hf(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 gf(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&mf(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const bf=E.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Ln(e,pf),p=E.useRef(null),f=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});js(()=>{r&&p.current.focus()},[r]),E.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${pl(Vs(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}}),[]);const h=Zs(p,t);let m=-1;E.Children.forEach(i,(e,t)=>{E.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))});const g=E.Children.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),E.cloneElement(e,t)}return e});return Yt.jsx(Up,qn({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Vs(t).activeElement;if("ArrowDown"===n)e.preventDefault(),gf(t,r,l,s,ff);else if("ArrowUp"===n)e.preventDefault(),gf(t,r,l,s,hf);else if("Home"===n)e.preventDefault(),gf(t,null,l,s,ff);else if("End"===n)e.preventDefault(),gf(t,null,l,s,hf);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 l=r&&!o.repeating&&mf(r,o);o.previousKeyMatched&&(l||gf(t,r,!1,s,ff,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))});function vf(e){return ws("MuiPopover",e)}Cs("MuiPopover",["root","paper"]);const yf=["onEntering"],xf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Sf=["slotProps"];function wf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Cf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Ef(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Rf(e){return"function"==typeof e?e():e}const Af=Mu(up,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),If=Mu(lc,{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}),kf=E.forwardRef(function(e,t){var n,r,o;const i=qu({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Ep,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:R=!1}=i,A=Ln(i.TransitionProps,yf),I=Ln(i,xf),k=null!=(n=null==y?void 0:y.paper)?n:b,P=E.useRef(),M=Zs(P,k.ref),D=qn({},i,{anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:S,transitionDuration:w,TransitionProps:A}),T=(e=>{const{classes:t}=e;return fl({root:["root"],paper:["paper"]},vf,t)})(D),O=E.useCallback(()=>{if("anchorPosition"===c)return u;const e=Rf(s),t=(e&&1===e.nodeType?e:Vs(P.current).body).getBoundingClientRect();return{top:t.top+wf(t,l.vertical),left:t.left+Cf(t,l.horizontal)}},[s,l.horizontal,l.vertical,u,c]),q=E.useCallback(e=>({vertical:wf(e,x.vertical),horizontal:Cf(e,x.horizontal)}),[x.horizontal,x.vertical]),L=E.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=q(t);if("none"===c)return{top:null,left:null,transformOrigin:Ef(n)};const r=O();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,u=Ws(Rf(s)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(l>p){const e=l-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Ef(n)}},[s,c,O,q,m]),[N,j]=E.useState(g),_=E.useCallback(()=>{const e=P.current;if(!e)return;const t=L(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,j(!0)},[L]);E.useEffect(()=>(R&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_)),[s,R,_]);E.useEffect(()=>{g&&_()}),E.useImperativeHandle(a,()=>g?{updatePosition:()=>{_()}}:null,[g,_]),E.useEffect(()=>{if(!g)return;const e=Bs(()=>{_()}),t=Ws(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,g,_]);let z=w;"auto"!==w||S.muiSupportAuto||(z=void 0);const F=f||(s?Vs(Rf(s)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:Af,H=null!=(o=null==v?void 0:v.paper)?o:If,B=vl({elementType:H,externalSlotProps:qn({},k,{style:N?k.style:qn({},k.style,{opacity:0})}),additionalProps:{elevation:h,ref:M},ownerState:D,className:ys(T.paper,null==k?void 0:k.className)}),V=vl({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:I,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:D,className:ys(T.root,p)}),{slotProps:W}=V,U=Ln(V,Sf);return Yt.jsx($,qn({},U,!hl($)&&{slotProps:W,disableScrollLock:R},{children:Yt.jsx(S,qn({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),_()},onExited:()=>{j(!1)},timeout:z},A,{children:Yt.jsx(H,qn({},B,{children:d}))}))}))});function Pf(e){return ws("MuiMenu",e)}Cs("MuiMenu",["root","paper","list"]);const Mf=["onEntering"],Df=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Tf={vertical:"top",horizontal:"right"},Of={vertical:"top",horizontal:"left"},qf=Mu(kf,{shouldForwardProp:e=>Pu(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Lf=Mu(If,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Nf=Mu(bf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),jf=E.forwardRef(function(e,t){var n,r;const o=qu({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=Ln(o.TransitionProps,Mf),x=Ln(o,Df),S=(()=>{const e=E.useContext(Rl);return null!=e&&e})(),w=qn({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return fl({root:["root"],paper:["paper"],list:["list"]},Pf,t)})(w),R=i&&!l&&d,A=E.useRef(null);let I=-1;E.Children.map(a,(e,t)=>{E.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))});const k=null!=(n=b.paper)?n:Lf,P=null!=(r=v.paper)?r:p,M=vl({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[C.root,s]}),D=vl({elementType:k,externalSlotProps:P,ownerState:w,className:C.paper});return Yt.jsx(qf,qn({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Tf:Of,slots:{paper:k,root:b.root},slotProps:{root:M,paper:D},open:d,ref:t,transitionDuration:h,TransitionProps:qn({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:w},x,{classes:f,children:Yt.jsx(Nf,qn({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===I||l),autoFocusItem:R,variant:g},u,{className:ys(C.list,u.className),children:a}))}))});function _f(e){return ws("MuiMenuItem",e)}const zf=Cs("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ff=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],$f=Mu(Ac,{shouldForwardProp:e=>Pu(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})=>qn({},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"}},[`&.${zf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${zf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${zf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${zf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${zf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${dp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${dp.inset}`]:{marginLeft:52},[`& .${df.root}`]:{marginTop:0,marginBottom:0},[`& .${df.inset}`]:{paddingLeft:36},[`& .${sf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&qn({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${sf.root} svg`]:{fontSize:"1.25rem"}}))),Hf=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=n,p=Ln(n,Ff),f=E.useContext(Hp),h=E.useMemo(()=>({dense:i||f.dense||!1,disableGutters:s}),[f.dense,i,s]),m=E.useRef(null);js(()=>{r&&m.current&&m.current.focus()},[r]);const g=qn({},n,{dense:h.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return qn({},a,fl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},_f,a))})(n),v=Zs(m,t);let y;return n.disabled||(y=void 0!==c?c:-1),Yt.jsx(Hp.Provider,{value:h,children:Yt.jsx($f,qn({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:ys(b.focusVisible,l),className:ys(b.root,d)},p,{ownerState:g,classes:b}))})});function Bf(e){return ws("MuiNativeSelect",e)}const Vf=Cs("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Wf=["className","disabled","error","IconComponent","inputRef","variant"],Uf=({ownerState:e,theme:t})=>qn({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":qn({},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"},[`&.${Vf.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}}),Gf=Mu("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Pu,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Vf.multiple}`]:t.multiple}]}})(Uf),Kf=({ownerState:e,theme:t})=>qn({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Vf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Yf=Mu("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ca(n.variant)}`],n.open&&t.iconOpen]}})(Kf),Xf=E.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Ln(e,Wf),u=qn({},e,{disabled:r,variant:s,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return fl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ca(n)}`,i&&"iconOpen",r&&"disabled"]},Bf,t)})(u);return Yt.jsxs(E.Fragment,{children:[Yt.jsx(Gf,qn({ownerState:u,className:ys(c.select,n),disabled:r,ref:a||t},l)),e.multiple?null:Yt.jsx(Yf,{as:i,ownerState:u,className:c.icon})]})});var Jf;const Zf=["children","classes","className","label","notched"],Qf=Mu("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Pu})({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%"}),eh=Mu("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Pu})(({ownerState:e,theme:t})=>qn({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&&qn({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 th=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],nh=Mu(td,{shouldForwardProp:e=>Pu(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Qc})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return qn({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ld.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ld.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ld.focused} .${ld.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ld.error} .${ld.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ld.disabled} .${ld.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&qn({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),rh=Mu(function(e){const{className:t,label:n,notched:r}=e,o=Ln(e,Zf),i=null!=n&&""!==n,a=qn({},e,{notched:r,withLabel:i});return Yt.jsx(Qf,qn({"aria-hidden":!0,className:t,ownerState:a},o,{children:Yt.jsx(eh,{ownerState:a,children:i?Yt.jsx("span",{children:n}):Jf||(Jf=Yt.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}}),oh=Mu(nd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ed})(({theme:e,ownerState:t})=>qn({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})),ih=E.forwardRef(function(e,t){var n,r,o,i,a;const s=qu({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=s,g=Ln(s,th),b=(e=>{const{classes:t}=e;return qn({},t,fl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},sd,t))})(s),v=Uc(),y=Vc({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=qn({},s,{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:m}),S=null!=(n=null!=(r=h.root)?r:l.Root)?n:nh,w=null!=(o=null!=(i=h.input)?i:l.Input)?o:oh;return Yt.jsx(od,qn({slots:{root:S,input:w},renderSuffix:e=>Yt.jsx(rh,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Yt.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:m},g,{classes:qn({},b,{notchedOutline:null})}))});function ah(e){return ws("MuiSelect",e)}ih.muiName="Input";const sh=Cs("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var lh;const uh=["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"],ch=Mu("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${sh.select}`]:t.select},{[`&.${sh.select}`]:t[n.variant]},{[`&.${sh.error}`]:t.error},{[`&.${sh.multiple}`]:t.multiple}]}})(Uf,{[`&.${sh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),dh=Mu("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ca(n.variant)}`],n.open&&t.iconOpen]}})(Kf),ph=Mu("input",{shouldForwardProp:e=>ku(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 fh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function hh(e){return null==e||"string"==typeof e&&!e.trim()}const mh=E.forwardRef(function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:x,onChange:S,onClose:w,onFocus:C,onOpen:R,open:A,readOnly:I,renderValue:k,SelectDisplayProps:P={},tabIndex:M,value:D,variant:T="standard"}=e,O=Ln(e,uh),[q,L]=Xs({controlled:D,default:c,name:"Select"}),[N,j]=Xs({controlled:A,default:u,name:"Select"}),_=E.useRef(null),z=E.useRef(null),[F,$]=E.useState(null),{current:H}=E.useRef(null!=A),[B,V]=E.useState(),W=Zs(t,m),U=E.useCallback(e=>{z.current=e,e&&$(e)},[]),G=null==F?void 0:F.parentNode;E.useImperativeHandle(W,()=>({focus:()=>{z.current.focus()},node:_.current,value:q}),[q]),E.useEffect(()=>{u&&N&&F&&!H&&(V(a?null:G.clientWidth),z.current.focus())},[F,a]),E.useEffect(()=>{i&&z.current.focus()},[i]),E.useEffect(()=>{if(!g)return;const e=Vs(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[g]);const K=(e,t)=>{e?R&&R(t):w&&w(t),H||(V(a?null:G.clientWidth),j(e))},Y=E.Children.toArray(s),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(q)?q.slice():[];const t=q.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),q!==n&&(L(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||K(!1,t)}},J=null!==F&&N;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(Yc({value:q})||p)&&(k?Z=k(q):te=!0);const ne=Y.map(e=>{if(!E.isValidElement(e))return null;let t;if(v){if(!Array.isArray(q))throw new Error(Dn(2));t=q.some(t=>fh(t,e.props.value)),t&&te&&ee.push(e.props.children)}else t=fh(q,e.props.value),t&&te&&(Q=e.props.children);return E.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});te&&(Z=v?0===ee.length?null:ee.reduce((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e),[]):Q);let re,oe=B;!a&&H&&F&&(oe=G.clientWidth),re=void 0!==M?M:d?null:0;const ie=P.id||(y?`mui-component-select-${y}`:void 0),ae=qn({},e,{variant:T,value:q,open:J,error:f}),se=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return fl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ca(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},ah,t)})(ae),le=qn({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),ue=Ys();return Yt.jsxs(E.Fragment,{children:[Yt.jsx(ch,qn({ref:U,tabIndex:re,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!I){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),K(!0,e))}},onMouseDown:d||I?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),K(!0,e))},onBlur:e=>{!J&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:q,name:y}}),x(e))},onFocus:C},P,{ownerState:ae,className:ys(P.className,se.select,l),id:ie,children:hh(Z)?lh||(lh=Yt.jsx("span",{className:"notranslate",children:""})):Z})),Yt.jsx(ph,qn({"aria-invalid":f,value:Array.isArray(q)?q.join(","):q,name:y,ref:_,"aria-hidden":!0,onChange:e=>{const t=Y.find(t=>t.props.value===e.target.value);void 0!==t&&(L(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},O)),Yt.jsx(dh,{as:h,className:se.icon,ownerState:ae}),Yt.jsx(jf,qn({id:`menu-${y||""}`,anchorEl:G,open:J,onClose:e=>{K(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:qn({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:qn({},b.slotProps,{paper:qn({},le,{style:qn({minWidth:oe},null!=le?le.style:null)})}),children:ne}))]})}),gh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],bh=["root"],vh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Pu(e)&&"variant"!==e,slot:"Root"},yh=Mu(kp,vh)(""),xh=Mu(ih,vh)(""),Sh=Mu(yp,vh)(""),wh=E.forwardRef(function(e,t){const n=qu({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=dd,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:w,variant:C="outlined"}=n,R=Ln(n,gh),A=b?Xf:mh,I=Vc({props:n,muiFormControl:Uc(),states:["variant","error"]}),k=I.variant||C,P=qn({},n,{variant:k,classes:i}),M=(e=>{const{classes:t}=e;return t})(P),D=Ln(M,bh),T=d||{standard:Yt.jsx(yh,{ownerState:P}),outlined:Yt.jsx(xh,{label:f,ownerState:P}),filled:Yt.jsx(Sh,{ownerState:P})}[k],O=Zs(t,yl(T));return Yt.jsx(E.Fragment,{children:E.cloneElement(T,qn({inputComponent:A,inputProps:qn({children:o,error:I.error,IconComponent:u,variant:k,type:void 0,multiple:g},b?{id:c}:{autoWidth:r,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:m,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:qn({id:c},w)},p,{classes:p?ea(D,p.classes):D},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===k?{notched:!0}:{},{ref:O,className:ys(T.props.className,a,M.root)},!d&&{variant:k},R))})});wh.muiName="Select";const Ch=E.createContext();function Eh(e){return ws("MuiTable",e)}Cs("MuiTable",["root","stickyHeader"]);const Rh=["className","component","padding","size","stickyHeader"],Ah=Mu("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>qn({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":qn({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),Ih="table",kh=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiTable"}),{className:r,component:o=Ih,padding:i="normal",size:a="medium",stickyHeader:s=!1}=n,l=Ln(n,Rh),u=qn({},n,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:n}=e;return fl({root:["root",n&&"stickyHeader"]},Eh,t)})(u),d=E.useMemo(()=>({padding:i,size:a,stickyHeader:s}),[i,a,s]);return Yt.jsx(Ch.Provider,{value:d,children:Yt.jsx(Ah,qn({as:o,role:o===Ih?null:"table",ref:t,className:ys(c.root,r),ownerState:u},l))})}),Ph=E.createContext();function Mh(e){return ws("MuiTableBody",e)}Cs("MuiTableBody",["root"]);const Dh=["className","component"],Th=Mu("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Oh={variant:"body"},qh="tbody",Lh=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiTableBody"}),{className:r,component:o=qh}=n,i=Ln(n,Dh),a=qn({},n,{component:o}),s=(e=>{const{classes:t}=e;return fl({root:["root"]},Mh,t)})(a);return Yt.jsx(Ph.Provider,{value:Oh,children:Yt.jsx(Th,qn({className:ys(s.root,r),as:o,ref:t,role:o===qh?null:"rowgroup",ownerState:a},i))})});function Nh(e){return ws("MuiTableCell",e)}const jh=Cs("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),_h=["align","className","component","padding","scope","size","sortDirection","variant"],zh=Mu("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ca(n.size)}`],"normal"!==n.padding&&t[`padding${ca(n.padding)}`],"inherit"!==n.align&&t[`align${ca(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>qn({},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?Vl.lighten(Vl.alpha(e.palette.divider,1),.88):Vl.darken(Vl.alpha(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",[`&.${jh.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})),Fh=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=n,d=Ln(n,_h),p=E.useContext(Ch),f=E.useContext(Ph),h=f&&"head"===f.variant;let m;m=i||(h?"th":"td");let g=s;"td"===m?g=void 0:!g&&h&&(g="col");const b=c||f&&f.variant,v=qn({},n,{align:r,component:m,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(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 fl({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${ca(r)}`,"normal"!==o&&`padding${ca(o)}`,`size${ca(i)}`]},Nh,t)})(v);let x=null;return u&&(x="asc"===u?"ascending":"descending"),Yt.jsx(zh,qn({as:m,ref:t,className:ys(y.root,o),"aria-sort":x,scope:g,ownerState:v},d))});function $h(e){return ws("MuiTableContainer",e)}Cs("MuiTableContainer",["root"]);const Hh=["className","component"],Bh=Mu("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Vh=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiTableContainer"}),{className:r,component:o="div"}=n,i=Ln(n,Hh),a=qn({},n,{component:o}),s=(e=>{const{classes:t}=e;return fl({root:["root"]},$h,t)})(a);return Yt.jsx(Bh,qn({ref:t,as:o,className:ys(s.root,r),ownerState:a},i))});function Wh(e){return ws("MuiTableHead",e)}Cs("MuiTableHead",["root"]);const Uh=["className","component"],Gh=Mu("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Kh={variant:"head"},Yh="thead",Xh=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiTableHead"}),{className:r,component:o=Yh}=n,i=Ln(n,Uh),a=qn({},n,{component:o}),s=(e=>{const{classes:t}=e;return fl({root:["root"]},Wh,t)})(a);return Yt.jsx(Ph.Provider,{value:Kh,children:Yt.jsx(Gh,qn({as:o,className:ys(s.root,r),ref:t,role:o===Yh?null:"rowgroup",ownerState:a},i))})});function Jh(e){return ws("MuiTableRow",e)}const Zh=Cs("MuiTableRow",["root","selected","hover","head","footer"]),Qh=["className","component","hover","selected"],em=Mu("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,[`&.${Zh.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Zh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vl.alpha(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}))`:Vl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),tm="tr",nm=E.forwardRef(function(e,t){const n=qu({props:e,name:"MuiTableRow"}),{className:r,component:o=tm,hover:i=!1,selected:a=!1}=n,s=Ln(n,Qh),l=E.useContext(Ph),u=qn({},n,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),c=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return fl({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},Jh,t)})(u);return Yt.jsx(em,qn({as:o,ref:t,className:ys(c.root,r),role:o===tm?null:"row",ownerState:u},s))});function rm(e){return Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Yt.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function om({fontSize:e="medium",children:t=null,className:n=""}={}){return Yt.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})}function im(e={}){return Yt.jsx(om,{...e,children:Yt.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Yt.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Yt.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function am(e={}){return Yt.jsx(om,{fontSize:"medium",...e,children:Yt.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Yt.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Yt.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function sm(e){return Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Yt.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function lm(e={}){return Yt.jsx(om,{...e,children:Yt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yt.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Yt.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Yt.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function um(e={}){return Yt.jsx(om,{fontSize:"medium",...e,children:Yt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yt.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yt.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function cm({className:e}){return Yt.jsx(om,{fontSize:"small",className:e,children:Yt.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Yt.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yt.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Yt.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Yt.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Yt.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function dm(e={}){return Yt.jsx(om,{...e,children:Yt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yt.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yt.jsx("rect",{stroke:Tt.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var pm=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Tt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Tt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Yt.jsx(rm,{"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 ${Tt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Tt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`,borderRadius:jt,backgroundColor:Tt.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 ${Tt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Tt.WHITE,color:Tt.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:jt},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Tt.GREYSCALE_0_15,backgroundColor:Tt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Tt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Tt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Tt.GREEN_PALE},"&:active":{backgroundColor:Tt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Tt.GREEN_PALE,boxShadow:`0 0 0 3px ${$s(Tt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Tt.BLUE_PALE},"&:active":{backgroundColor:Tt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Tt.BLUE_PALE,boxShadow:`0 0 0 3px ${$s(Tt.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:jt,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Tt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Tt.GREYSCALE_0_42,backgroundColor:Tt.GREYSCALE_100_60,"&:active":{backgroundColor:Tt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Tt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Tt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Tt.PURPLE,"&.Mui-focusVisible":{borderColor:Tt.PURPLE,boxShadow:`0 0 0 3px ${$s(Tt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Tt.GREEN,"&.Mui-focusVisible":{borderColor:Tt.GREEN,boxShadow:`0 0 0 3px ${$s(Tt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Tt.BLUE,"&.Mui-focusVisible":{borderColor:Tt.BLUE,boxShadow:`0 0 0 3px ${$s(Tt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Tt.ORANGE,"&.Mui-focusVisible":{borderColor:Tt.ORANGE,boxShadow:`0 0 0 3px ${$s(Tt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Tt.RED,"&.Mui-focusVisible":{borderColor:Tt.RED,boxShadow:`0 0 0 3px ${$s(Tt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Tt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Tt.PURPLE_PALE},"&:active":{backgroundColor:Tt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Tt.PURPLE_PALE,boxShadow:`0 0 0 3px ${$s(Tt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Tt.GREEN_PALE},"&:active":{backgroundColor:Tt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Tt.GREEN_PALE,boxShadow:`0 0 0 3px ${$s(Tt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Tt.BLUE_PALE},"&:active":{backgroundColor:Tt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Tt.BLUE_PALE,boxShadow:`0 0 0 3px ${$s(Tt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Tt.ORANGE_PALE},"&:active":{backgroundColor:Tt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Tt.ORANGE_PALE,boxShadow:`0 0 0 3px ${$s(Tt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Tt.RED_PALE},"&:active":{backgroundColor:Tt.RED_DARK},"&.Mui-focusVisible":{borderColor:Tt.RED_PALE,boxShadow:`0 0 0 3px ${$s(Tt.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:Tt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Tt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:jt,boxShadow:`inset 0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Yt.jsx(sm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Ot,borderRadius:jt,color:Tt.TEXT_PRIMARY,backgroundColor:Tt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Tt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Tt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Tt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Tt.GREYSCALE_0_05,color:Tt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Tt.GREEN,borderColor:Tt.GREEN},"&.MuiChip-outlinedInfo":{color:Tt.BLUE,borderColor:Tt.BLUE},"&.MuiChip-outlinedWarning":{color:Tt.ORANGE,borderColor:Tt.ORANGE},"&.MuiChip-outlinedError":{color:Tt.RED,borderColor:Tt.RED}},outlined:{border:`solid 1px ${Tt.GREYSCALE_0_15}`,backgroundColor:Tt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:jt,boxShadow:"none",backgroundColor:Tt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Tt.GREEN,borderColor:Tt.GREEN},outlinedSecondary:{color:Tt.BLUE,borderColor:Tt.BLUE},label:{fontFamily:Ht.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Yt.jsx(sm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Yt.jsx(rm,{"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:jt},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:jt,fontSize:qt,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Tt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Tt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Tt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Tt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Tt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:jt,border:`solid 1px ${Tt.GREYSCALE_0_15}`,color:Tt.GREYSCALE_0_60,marginRight:0,width:Nt,height:Nt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Tt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:jt,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Tt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:qt}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Ot,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Tt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Tt.GREYSCALE_25,fontSize:Ot,fontFamily:Ht.FONT_FAMILY,fontWeight:Ft,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Tt.TEXT_PRIMARY},"&.Mui-error":{color:Tt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Tt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:zt,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Tt.TEXT_SECONDARY,content:"'(required)'",fontWeight:zt,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:qt,lineHeight:"16px",backgroundColor:Tt.WHITE,borderRadius:jt,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Tt.GREYSCALE_0_05}`,borderColor:Tt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Tt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Tt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Tt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Tt.RED}`,boxShadow:`0px 0px 0px 1px ${Tt.RED}, inset 0 2px 0 0 ${Tt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Tt.GREYSCALE_0_10}`,borderColor:Tt.GREYSCALE_0_10,backgroundColor:Tt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Tt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Tt.GREYSCALE_0_15,borderRadius:jt,boxShadow:`inset 0 2px 0 0 ${Tt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Yt.jsx(rm,{...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:Tt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Tt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Tt.GREYSCALE_0_03},"&:active":{backgroundColor:Tt.GREYSCALE_0_10},"&:focus":{backgroundColor:Tt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Tt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Tt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Tt.GREYSCALE_0_30,"&:hover":{backgroundColor:Tt.GREYSCALE_0_0,borderColor:Tt.GREYSCALE_0_15},"& ~svg":{color:Tt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Tt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:jt}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Tt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Tt.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:qt,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Ot,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Ot,fontWeight:Ft,color:Tt.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Ft}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Tt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Tt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Yt.jsx(um,{}),checkedIcon:Yt.jsx(am,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Tt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Tt.GREEN_PALE,boxShadow:`0 0 0 3px ${$s(Tt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Tt.BLUE_PALE,boxShadow:`0 0 0 3px ${$s(Tt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Tt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Tt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Yt.jsx(dm,{}),checkedIcon:Yt.jsx(im,{}),indeterminateIcon:Yt.jsx(lm,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:jt,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Tt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Tt.GREYSCALE_0_55,color:Tt.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:Tt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Tt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Tt.GREYSCALE_0_55,"&:hover":{color:Tt.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:Tt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Tt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:qt,color:Tt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Ft},secondary:{fontSize:Ot,color:Tt.GREYSCALE_45,fontWeight:zt,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:qt,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:qt,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Tt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Ot,borderBottom:`solid 1px ${Tt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:qt,color:Tt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Tt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Tt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Tt.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Tt.RED}}},"&.Mui-focusVisible":{backgroundColor:Tt.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:Tt.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:Tt.GREEN,height:"24px","&.Mui-disabled":{color:Tt.GREYSCALE_0_15}},rail:{backgroundColor:Tt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Tt.GREYSCALE_0_05}`,borderRadius:jt,boxShadow:`inset 0px 0px 0px 1px ${Tt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Tt.GREYSCALE_0_05}`,borderRadius:jt},thumb:{height:"16px",width:"16px",borderRadius:jt,backgroundColor:Tt.WHITE,boxShadow:`0px 1px 2px 0px ${Tt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Tt.GREYSCALE_0_05}`,"&:hover":{borderRadius:jt,boxShadow:`0 2px 4px 0 ${Tt.GREYSCALE_0_30}, 0 0 0 1px ${Tt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Tt.GREYSCALE_0_15}, 0 0 0 1px ${Tt.GREYSCALE_0_06}, 0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Tt.GREYSCALE_0_15}, 0 0 0 1px ${Tt.GREYSCALE_0_06}, 0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Tt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Tt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Tt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Tt.GREYSCALE_0_15},markLabel:{color:Tt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Tt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Tt.WHITE,color:Tt.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:Tt.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:Tt.GREEN_PALE,boxShadow:`0 0 0 3px ${$s(Tt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Tt.BLUE_PALE,boxShadow:`0 0 0 3px ${$s(Tt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Tt.GREYSCALE_0_15,borderRadius:jt},thumb:{height:"16px",width:"16px",borderRadius:jt,backgroundColor:Tt.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:qt,fontWeight:Ft,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Tt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`,backgroundColor:Tt.GREYSCALE_0_03,borderRadius:jt},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Tt.GREYSCALE_25,"&.Mui-selected":{color:Tt.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:qt,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:jt,"&:hover":{backgroundColor:Tt.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Tt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Tt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:jt,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Tt.GREYSCALE_0_05},"&:hover":{backgroundColor:Tt.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Tt.GREYSCALE_85}`,borderRight:`1px solid ${Tt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Ft,backgroundColor:Tt.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:Tt.GREYSCALE_98,borderBottom:`1px solid ${Tt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Tt.GREYSCALE_85}`,borderTop:`1px solid ${Tt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Tt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Tt.GREYSCALE_0_05,"&:hover":{backgroundColor:Tt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Tt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Yt.jsx(cm,{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 ${Tt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:qt,borderRadius:jt,padding:"7px 16px",border:`1px solid ${Tt.GREYSCALE_0_15}`,backgroundColor:Tt.GREYSCALE_100_60,color:Tt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Tt.GREYSCALE_0_10,border:`1px solid ${Tt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Tt.GREYSCALE_0_03,border:`1px solid ${Tt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Tt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Tt.MISC_FOCUS_BORDER}`,border:`1px solid ${Tt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Tt.GREYSCALE_25,backgroundColor:Tt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Tt.GREYSCALE_0_10,border:`1px solid ${Tt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Ot,height:24,width:24,padding:7},sizeLarge:{fontSize:Lt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:qt,borderRadius:jt}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:Tt.GREYSCALE_20},tooltip:{backgroundColor:Tt.GREYSCALE_20,fontSize:Ot,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const fm=e=>({mode:"light",primary:{ultraLight:Tt.GREEN_ULTRA_LIGHT,light:Tt.GREEN_PALE,main:Tt.GREEN,dark:Tt.GREEN_DARK,extraDark:Tt.GREEN_EXTRA_DARK,contrastText:Tt.WHITE},secondary:{ultraLight:Tt.BLUE_ULTRA_LIGHT,light:Tt.BLUE_PALE,main:Tt.BLUE,dark:Tt.BLUE_DARK,extraDark:Tt.BLUE_EXTRA_DARK,contrastText:Tt.WHITE},error:{ultraLight:Tt.RED_ULTRA_LIGHT,light:Tt.RED_PALE,main:Tt.RED,dark:Tt.RED_DARK,extraDark:Tt.RED_EXTRA_DARK,contrastText:Tt.WHITE},warning:{ultraLight:Tt.ORANGE_ULTRA_LIGHT,light:Tt.ORANGE_PALE,main:Tt.ORANGE,dark:Tt.ORANGE_DARK,extraDark:Tt.ORANGE_EXTRA_DARK,contrastText:Tt.WHITE},success:{ultraLight:Tt.GREEN_ULTRA_LIGHT,light:Tt.GREEN_PALE,main:Tt.GREEN,dark:Tt.GREEN_DARK,extraDark:Tt.GREEN_EXTRA_DARK,contrastText:Tt.WHITE},info:{ultraLight:Tt.BLUE_ULTRA_LIGHT,light:Tt.BLUE_PALE,main:Tt.BLUE,dark:Tt.BLUE_DARK,extraDark:Tt.BLUE_EXTRA_DARK,contrastText:Tt.WHITE},text:{primary:Tt.TEXT_PRIMARY,secondary:Tt.TEXT_SECONDARY,disabled:Tt.GREYSCALE_0_30},action:{hover:Tt.GREYSCALE_0_03,hoverOpacity:.03,selected:Tt.GREYSCALE_0_05,selectedOpacity:.05,focus:Tt.MISC_FOCUS_BORDER},amethyst:{ultraLight:Tt.WHITE,main:Tt.PURPLE,light:Tt.PURPLE_PALE,dark:Tt.PURPLE_DARK,extraDark:Tt.GREYSCALE_0_0,contrastText:Tt.WHITE},background:{paper:Tt.WHITE,default:Tt.GREYSCALE_95},divider:Tt.GREYSCALE_0_15}),hm=(e="light")=>cu({components:pm(),palette:fm(),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:qt,fontWeightLight:_t,fontWeightRegular:zt,fontWeightMedium:Ft,fontWeightBold:$t,htmlFontSize:qt,fontFamily:Ht.FONT_FAMILY,button:{fontWeight:Ft,fontSize:qt,textTransform:"none"},body1:{fontSize:Lt,lineHeight:"24px"},body2:{fontSize:qt,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Nt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Lt,fontWeight:Ft,lineHeight:"16px"},h6:{fontSize:qt,fontWeight:Ft,lineHeight:"16px"},caption:{color:Tt.TEXT_SECONDARY},subtitle1:{fontSize:qt,color:Tt.TEXT_SECONDARY},subtitle2:{fontSize:Ot,color:Tt.TEXT_SECONDARY}},shape:{borderRadius:jt}}),mm={...Dt},gm=hm().palette,bm={TEXT:gm.text.primary,DISABLED:gm.text.disabled,HOVER:gm.action.hover,WHITE:mm.GREYSCALE_100,BORDER_LIGHT:mm.GREYSCALE_90,BORDER_MEDIUM:mm.GREYSCALE_85,BORDER_HEAVY:mm.GREYSCALE_50,DARK_MODE_TEXT:mm.GREYSCALE_95,DARK_MODE_BORDER:mm.GREYSCALE_95,DARK_MODE_DISABLED:mm.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:mm.GREYSCALE_95,SELECTED:gm.primary.main,LINK:gm.info.main,ERROR:gm.error.main},vm=(e,t=bm.TEXT,n=bm.WHITE)=>{const r=se(e??""),o=se(t),i=se(n);return r.isInvalid()?t:function(e,t,n){const r=le(e,t),o=le(e,n);if(void 0!==r&&void 0!==o)return r>o?t:n}(r,i,o).getRGB()},ym=e=>{const t=e.getStyle("","","dataColors.selected")||bm.SELECTED,n=function(e,t){const n=se(ue),r=se(e),o=se(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=le(n,r),a=le(o,r),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?ue:"#000000"}(t,bm.TEXT);return{background:t,color:n}},xm=(e,t)=>{const n=se(e);return 0===n.a?(n.setAlpha(t.opacity),n.getString()):n.isDark()?n.getBrightenedColor(t.brighter).getString():n.getDarkenedColor(t.darker).getString()},Sm=(e,t,n)=>{const r=t?e.getColorPickerColor(t):"none";return"none"===r?n:r},wm=e=>{const t=se(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},Cm=(e,t,n)=>{const r=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;r?r.focus():t.focusSelection?.(n)},Em=e=>{e.stopPropagation(),e.preventDefault()},Rm=e=>!!e&&0===se(e).a,Am="#grid",Im=(e,t,n,r=bm.WHITE)=>e&&!Rm(e)?e:Rm(t)?n&&!Rm(n)?n:r:t,km=(e,t)=>{const n=t?.closest(e);return n&&window.getComputedStyle(n).backgroundColor},Pm=(e,t,n,r,o)=>{const i=km(".qv-object .qv-inner-object",n),a=km(".qv-panel-sheet",n),s=km(Am,n)??a,l=(e=>{const t=e.components?.find(e=>"general"===e.key),n=t?.bgColor?.colorExpression,r=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&n)return wm(n);if("none"===r)return"transparent";if(void 0===r)return;const i=se(r);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),u=r?.(t),c=o?.(t),d=l||u||i||c,p=Rm(d),f=!Rm(h=p?s:d)&&vm(h,bm.TEXT,bm.DARK_MODE_TEXT)===ne(bm.DARK_MODE_TEXT);var h;return{color:d,headerColor:Im(l,d,s),isDark:f}},Mm=(e,t,r,o)=>{const l=s(),u=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[n,r]=i([]);return a(()=>{let n;return e&&(n=new MutationObserver(e=>{r(e)}),n.observe(e,t)),()=>{n?.disconnect()}},[e,t]),n})(t.closest(Am),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter(({oldValue:e})=>e?.includes("background")).map(({oldValue:e})=>e).join(",");return n(()=>({...l,background:Pm(e,l,t,r,o)}),[l.name(),t,r,o,e,u])};const Dm=3,Tm=/\n/g;function Om(e,t,n){let r=0,o=e.length;if(Number.isNaN(t))return null;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),s=e.slice(0,i-1),l=n(a),u=n(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?r=i+1:o=i}return null}const qm=({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o)=>{const{maxNbrLinesOfText:i=Dm,allowLineBreaks:a=!0}=o??{};return()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const s=o.measureText.bind(o),l=vt(e=>{if(void 0===e)return 0;if(a){const t=e.split(Tm).map(e=>s(e).width);return t.reduce((e,t)=>t>e?t:e,0)}const t=e.replace(Tm," ");return s(t).width}),u=e=>+l(e).toFixed(2),c=vt(({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;const r=a?e.split(Tm):[e];let o=0;for(const e of r){let n=e;do{o+=1,n=Om(n,t,u)}while(null!==n&&o<i);if(o>=i)break}return o},({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`);return{measureText:e=>l(e),estimateWidth:e=>l("N")*e,estimateLineCount:c}}};function Lm({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=Dm,allowLineBreaks:a=!0}={},{estimateWidth:s,measureText:l,estimateLineCount:u}=k(()=>qm({fontStyle:n,fontWeight:r,fontSize:e,fontFamily:t},{maxNbrLinesOfText:i,allowLineBreaks:a})(),[n,r,e,t,i,a]);return{estimateWidth:s,measureText:l,estimateLineCount:u}}var Nm,jm={};var _m=function(){if(Nm)return jm;Nm=1;var e=V;return jm.createRoot=e.createRoot,jm.hydrateRoot=e.hydrateRoot,jm}();const zm="Source Sans Pro, sans-serif",Fm=(e,t,r)=>{const[,i,a]=function(e,t){const r=n(()=>({isLoading:!0}),t),[i,a]=o(async()=>{try{return await e()}finally{r.isLoading=!1}},t);return[i,r.isLoading,a]}(async()=>{const t=de(),n=e.getStyle("","","fontFamily"),r=e.getStyle("object","label.name","fontFamily"),o=e.getStyle("object","label.value","fontFamily"),i=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...i,n,r,o,zm].filter(e=>void 0!==e).map(async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)}))},[t,e,r]);return a?(console.warn("Failed to load fonts:",a),!0):!i};function $m(e,t){const[n,r]=P(t);n.some((e,n)=>e!==t[n])&&(r(t),e())}var Hm={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},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_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","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_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","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 Bm=({translator:e})=>(k(()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Hm).forEach(t=>{e.add(Hm[t])})}}(e)},[e]),e),Vm="12px",Wm="nebula-table-utils-head-menu-button",Um="nebula-table-utils-head-menu-wrapper",Gm="nebula-table-utils-head-menu",Km="nebula-table-utils-head-menu-list-id",Ym="sn-copy-cell";let Xm=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.F2="F2",e}({});const Jm="nebula-table-utils-column-adjuster";let Zm=function(e){return e[e.PixelsMin=30]="PixelsMin",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.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),Qm=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const eg={darker:.15,brighter:.3,opacity:.03},tg={darker:.3,brighter:.5,opacity:.05};let ng=function(e){return e.Cyclic="C",e}({});const rg=document.createElement("textarea");function og(e){rg.value=e,document.body.appendChild(rg),rg.select(),rg.setSelectionRange(0,rg.value.length),document.execCommand("copy"),document.body.removeChild(rg)}rg.style.position="absolute",rg.style.left="-9999px",rg.setAttribute("readonly","");const ig=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch(()=>{og(t)}):og(t))};function ag(e){return"init"in e}function sg(e){return"function"==typeof e.write}function lg(e){return"v"in e||"e"in e}function ug(e){if("e"in e)throw e.e;if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}function cg(e){return"function"==typeof(null==e?void 0:e.then)}function dg(e){if(!(e instanceof Error))return!1;const t=e.name,n=e.message.toLowerCase();return("RangeError"===t||"InternalError"===t)&&(n.includes("call stack")||n.includes("too much recursion")||n.includes("stack overflow"))}function pg(e,t,n){if(!n.p.has(e)){n.p.add(e);const r=()=>n.p.delete(e);t.then(r,r)}}function fg(e,t,n){const r=n.get(e),o=null==r?void 0:r.t,i=t.p;if(!(null==o?void 0:o.size))return i;if(!i.size)return o;const a=new Set(o);for(const e of i)a.add(e);return a}const hg=()=>{const e={},t=new WeakMap,n=n=>{var r,o;null==(r=t.get(e))||r.forEach(e=>e(n)),null==(o=t.get(n))||o.forEach(e=>e())};return n.add=(n,r)=>{const o=n||e;let i=t.get(o);return i||(i=new Set,t.set(o,i)),i.add(r),()=>{i.delete(r),i.size||t.delete(o)}},n};const mg=(e,t,n,...r)=>n.read(...r),gg=(e,t,n,...r)=>n.write(...r),bg=(e,t,n)=>n.INTERNAL_onInit(t),vg=(e,t,n,r)=>{var o;return null==(o=n.onMount)?void 0:o.call(n,r)},yg=(e,t,n)=>{var r;const o=e[0];let i=o.get(n);if(!i){const a=e[6],s=e[9];i={d:new Map,p:new Set,n:0},o.set(n,i),null==(r=a.i)||r.call(a,n),function(e){return!!e.INTERNAL_onInit}(n)&&s(e,t,n)}return i},xg=(e,t)=>{var n;const r=e[1],o=e[3],i=e[4],a=e[5],s=e[6],l=e[13];if(!(s.f||o.size||i.size||a.size))return;const u=[],c=e=>{try{e()}catch(e){u.push(e)}};do{s.f&&c(s.f);const u=new Set;for(const e of o){const t=null==(n=r.get(e))?void 0:n.l;if(t)for(const e of t)u.add(e)}o.clear();for(const e of a)u.add(e);a.clear();for(const e of i)u.add(e);i.clear();for(const e of u)c(e);o.size&&l(e,t)}while(o.size||a.size||i.size);if(u.length)throw new AggregateError(u)},Sg=(e,n)=>{const r=e[1],o=e[2],i=e[3],a=e[11],s=e[14],l=e[17];if(!i.size)return;const u=[],c=[],d=new WeakSet,p=new WeakSet,f=[],h=[];for(const t of i)f.push(t),h.push(a(e,n,t));for(;f.length;){const i=f.length-1,s=f[i],l=h[i];if(p.has(s))f.pop(),h.pop();else if(d.has(s)){if(o.get(s)===l.n)u.push(s),c.push(l);else if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&o.has(s))throw new Error("[Bug] invalidated atom exists");p.add(s),f.pop(),h.pop()}else{d.add(s);for(const t of fg(s,l,r))d.has(t)||(f.push(t),h.push(a(e,n,t)))}}for(let t=u.length-1;t>=0;--t){const r=u[t],a=c[t];let d=!1;for(const e of a.d.keys())if(e!==r&&i.has(e)){d=!0;break}d&&(o.set(r,a.n),s(e,n,r),l(e,n,r)),o.delete(r)}},wg=new WeakSet,Cg=(e,n,r)=>{var o,i;const a=e[1],s=e[2],l=e[3],u=e[6],c=e[7],d=e[11],p=e[12],f=e[13],h=e[14],m=e[16],g=e[17],b=e[20],v=e[26],y=e[28],x=d(e,n,r),S=y[0];if(lg(x)){if(a.has(r)&&s.get(r)!==x.n||x.m===S)return x.m=S,x;let t=!1;for(const[r,o]of x.d)if(h(e,n,r).n!==o){t=!0;break}if(!t)return x.m=S,x}let w=!0;const C=new Set(x.d.keys()),E=()=>{for(const e of C)x.d.delete(e)},R=()=>{if(a.has(r)){const t=!l.size;g(e,n,r),t&&(f(e,n),p(e,n))}},A=t=>{var o;if(t===r){const r=d(e,n,t);if(!lg(r)){if(!ag(t))throw new Error("no atom init");b(e,n,t,t.init)}return ug(r)}const i=h(e,n,t);try{return ug(i)}finally{C.delete(t),x.d.set(t,i.n),cg(x.v)&&pg(r,x.v,i),a.has(r)&&(null==(o=a.get(t))||o.t.add(r)),w||R()}};let I,k;const P={get signal(){return I||(I=new AbortController),I.signal},get setSelf(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(t.meta.env?t.meta.env.MODE:void 0)||sg(r)||console.warn("setSelf function cannot be used with read-only atom"),!k&&sg(r)&&(k=(...o)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&w&&console.warn("setSelf function cannot be called in sync"),!w)try{return m(e,n,r,o)}finally{f(e,n),p(e,n)}}),k}},M=x.n,D=s.get(r)===M;try{"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&wg.delete(n);const i=c(e,n,r,A,P);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&wg.has(n)&&console.warn("Detected store mutation during atom read. This is not supported."),b(e,n,r,i),cg(i)){v(e,n,i,()=>null==I?void 0:I.abort());const t=()=>{E(),R()};i.then(t,t)}else E();return null==(o=u.r)||o.call(u,r),x.m=S,x}catch(e){if(dg(e))throw e;return delete x.v,x.e=e,++x.n,x.m=S,x}finally{w=!1,x.n!==M&&D&&(s.set(r,x.n),l.add(r),null==(i=u.c)||i.call(u,r))}},Eg=(e,t,n)=>{const r=e[1],o=e[2],i=e[11],a=[n];for(;a.length;){const n=a.pop(),s=i(e,t,n);for(const l of fg(n,s,r)){const n=i(e,t,l);o.get(l)!==n.n&&(o.set(l,n.n),a.push(l))}}},Rg=(e,n,r,o)=>{const i=e[3],a=e[6],s=e[8],l=e[11],u=e[12],c=e[13],d=e[14],p=e[15],f=e[16],h=e[17],m=e[20],g=e[28];let b=!0;const v=t=>ug(d(e,n,t)),y=(o,...s)=>{var d;const v=l(e,n,o);try{if(o===r){if(!ag(o))throw new Error("atom not writable");"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&wg.add(n);const r=v.n,l=s[0];return m(e,n,o,l),h(e,n,o),void(r!==v.n&&(++g[0],i.add(o),p(e,n,o),null==(d=a.c)||d.call(a,o)))}return f(e,n,o,s)}finally{b||(c(e,n),u(e,n))}};try{return s(e,n,r,v,y,...o)}finally{b=!1}},Ag=(e,t,n)=>{var r;const o=e[1],i=e[3],a=e[6],s=e[11],l=e[15],u=e[18],c=e[19],d=s(e,t,n),p=o.get(n);if(p&&d.d.size>0){for(const[o,c]of d.d)if(!p.d.has(o)){const d=s(e,t,o);u(e,t,o).t.add(n),p.d.add(o),c!==d.n&&(i.add(o),l(e,t,o),null==(r=a.c)||r.call(a,o))}for(const r of p.d)if(!d.d.has(r)){p.d.delete(r);const o=c(e,t,r);null==o||o.t.delete(n)}}},Ig=(e,t,n)=>{var r;const o=e[1],i=e[4],a=e[6],s=e[10],l=e[11],u=e[12],c=e[13],d=e[14],p=e[16],f=e[18],h=l(e,t,n);let m=o.get(n);if(!m){d(e,t,n);for(const r of h.d.keys()){f(e,t,r).t.add(n)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},o.set(n,m),sg(n)&&function(e){return!!e.onMount}(n)){const r=()=>{let r=!0;const o=(...o)=>{try{return p(e,t,n,o)}finally{r||(c(e,t),u(e,t))}};try{const i=s(e,t,n,o);i&&(m.u=()=>{r=!0;try{i()}finally{r=!1}})}finally{r=!1}};i.add(r)}null==(r=a.m)||r.call(a,n)}return m},kg=(e,t,n)=>{var r,o;const i=e[1],a=e[5],s=e[6],l=e[11],u=e[19],c=l(e,t,n);let d=i.get(n);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(r=i.get(e))?void 0:r.d.has(n)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,i.delete(n);for(const r of c.d.keys()){const o=u(e,t,r);null==o||o.t.delete(n)}null==(o=s.u)||o.call(s,n)},Pg=(e,t,n,r)=>{const o=e[11],i=e[27],a=o(e,t,n),s="v"in a,l=a.v;if(cg(r))for(const i of a.d.keys())pg(n,r,o(e,t,i));a.v=r,delete a.e,s&&Object.is(l,a.v)||(++a.n,cg(l)&&i(e,t,l))},Mg=(e,t,n)=>ug((0,e[14])(e,t,n)),Dg=(e,t,n,...r)=>{const o=e[3],i=e[12],a=e[13],s=e[16],l=o.size;try{return s(e,t,n,r)}finally{o.size!==l&&(a(e,t),i(e,t))}},Tg=(e,t,n,r)=>{const o=e[12],i=e[13],a=e[18],s=e[19],l=a(e,t,n).l;return l.add(r),i(e,t),o(e,t),()=>{l.delete(r),s(e,t,n),i(e,t),o(e,t)}},Og=(e,t,n,r)=>{const o=e[25];let i=o.get(n);if(!i){i=new Set,o.set(n,i);const e=()=>o.delete(n);n.then(e,e)}i.add(r)},qg=(e,t,n)=>{const r=e[25].get(n);null==r||r.forEach(e=>e())},Lg=new WeakMap;function Ng(e){const n=Lg.get(e);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!n)throw new Error("Store must be created by buildStore to read its building blocks");const r=n[24];return r?r(n,e):n}function jg(...e){const t={get:e=>r(n,t,e),set:(e,...r)=>o(n,t,e,...r),sub:(e,r)=>i(n,t,e,r)},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},mg,gg,bg,vg,yg,xg,Sg,Cg,Eg,Rg,Ag,Ig,kg,Pg,Mg,Dg,Tg,void 0,new WeakMap,Og,qg,[0]].map((t,n)=>e[n]||t);Lg.set(t,Object.freeze(n));const r=n[21],o=n[22],i=n[23];return t}var _g=Object.freeze({__proto__:null,INTERNAL_addPendingPromiseToDependency:pg,INTERNAL_buildStoreRev3:jg,INTERNAL_getBuildingBlocksRev3:Ng,INTERNAL_getMountedOrPendingDependents:fg,INTERNAL_hasInitialValue:ag,INTERNAL_initializeStoreHooksRev3:function(e){return e.i||(e.i=hg()),e.r||(e.r=hg()),e.c||(e.c=hg()),e.m||(e.m=hg()),e.u||(e.u=hg()),e.f||(e.f=(()=>{const e=new Set,t=()=>e.forEach(e=>e());return t.add=t=>(e.add(t),()=>e.delete(t)),t})()),e},INTERNAL_isActuallyWritableAtom:sg,INTERNAL_isAtomStateInitialized:lg,INTERNAL_isPromiseLike:cg,INTERNAL_returnAtomValue:ug,INTERNAL_shouldThrowSynchronously:dg});let zg,Fg=0;function $g(e,n){const r="atom"+ ++Fg,o={toString(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&this.debugLabel?r+":"+this.debugLabel:r}};return"function"==typeof e?o.read=e:(o.init=e,o.read=Hg,o.write=Bg),n&&(o.write=n),o}function Hg(e){return e(this)}function Bg(e,t,n){return t(this,"function"==typeof n?n(e(this)):n)}function Vg(){return jg()}const Wg=D(void 0);function Ug(e){const n=N(Wg);return(null==e?void 0:e.store)||n||(zg||(zg=Vg(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=zg),globalThis.__JOTAI_DEFAULT_STORE__!==zg&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),zg)}function Gg({children:e,store:t}){const n=M(null);return t?C(Wg.Provider,{value:t},e):(null===n.current&&(n.current=Vg()),C(Wg.Provider,{value:n.current},e))}const Kg=e=>"function"==typeof(null==e?void 0:e.then),Yg=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},Xg=w.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(Yg(e),e)}),Jg=new WeakMap,Zg=(e,t,n)=>{const r=Ng(e),o=r[26];let i=Jg.get(t);return i||(i=new Promise((a,s)=>{let l=t;const u=e=>t=>{l===e&&a(t)},c=e=>t=>{l===e&&s(t)},d=()=>{try{const t=n();Kg(t)?(Jg.set(t,i),l=t,t.then(u(t),c(t)),o(r,e,t,d)):a(t)}catch(e){s(e)}};t.then(u(t),c(t)),o(r,e,t,d)}),Jg.set(t,i)),i};function Qg(e,t){const{delay:n,unstable_promiseStatus:r=!w.use}={},o=Ug(t),[[i,a,s],l]=T(t=>{const n=o.get(e);return Object.is(t[0],n)&&t[1]===o&&t[2]===e?t:[n,o,e]},void 0,()=>[o.get(e),o,e]);let u=i;if(a===o&&s===e||(l(),u=o.get(e)),O(()=>{const t=o.sub(e,()=>{if(r)try{const t=o.get(e);Kg(t)&&Yg(Zg(o,t,()=>o.get(e)))}catch(e){}if("number"==typeof n)return console.warn("[DEPRECATED] delay option is deprecated and will be removed in v3.\n\nMigration guide:\n\nCreate a custom hook like the following.\n\nfunction useAtomValueWithDelay<Value>(\n atom: Atom<Value>,\n options: { delay: number },\n): Value {\n const { delay } = options\n const store = useStore(options)\n const [value, setValue] = useState(() => store.get(atom))\n useEffect(() => {\n const unsub = store.sub(atom, () => {\n setTimeout(() => setValue(store.get(atom)), delay)\n })\n return unsub\n }, [store, atom, delay])\n return value\n}\n"),void setTimeout(l,n);l()});return l(),t},[o,e,n,r]),q(u),Kg(u)){const t=Zg(o,u,()=>o.get(e));return r&&Yg(t),Xg(t)}return u}function eb(e,n){const r=Ug(n);return L((...n)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return r.set(e,...n)},[r,e])}function tb(e,t){return[Qg(e,t),eb(e,t)]}const nb=$g(void 0),rb=$g({viewState:void 0,isDownloadedAsPDForImage:!1,waitForPromise:()=>{},notifyIsDoneRendering:()=>{}}),ob=$g({}),ib=e=>"string"==typeof e,ab=e=>"number"==typeof e,sb=e=>"boolean"==typeof e,lb=e=>e instanceof Error,ub=e=>e instanceof Set,cb=e=>e instanceof Map,db=e=>{if(e instanceof Error)return e.message;if(null===e)return"null";if(void 0===e)return"undefined";if(ib(e))return e;if(ub(e))try{return JSON.stringify([...e])}catch{return"Failed to serialize Set"}if(cb(e))try{return JSON.stringify(Object.fromEntries(e))}catch{return"Failed to serialize Map"}try{return JSON.stringify(e)}catch{return"Failed to serialize value"}},pb=e=>{if(null!=e){if(ib(e))return e;if(lb(e))return db(e);if(ab(e)||sb(e))return String(e);if(Array.isArray(e)||ub(e)||cb(e))return db(e);if("object"==typeof(t=e)&&null!==t&&!Array.isArray(t)){const t={};return Object.entries(e).forEach(([e,n])=>{ib(n)||ab(n)||sb(n)?t[e]=n:t[e]=db(n)}),t}var t;return db(e)}},fb=(e,t={})=>{const{tag:n}=t,r=({msg:t,payload:r})=>{const o=((e,t)=>{const n=[];return ib(t)&&t.length>0?n.push(t):Array.isArray(t)&&n.push(...t.filter(e=>"string"==typeof e&&e.length>0)),n.length>0?`${n.map(e=>`[${e}]`).join("")} ${e}`:e})(t,n);return(e=>{if(!lb(e))return!1;switch(e.message){case"Session suspended":case"Socket closed":return!0;default:return!1}})(r)||e.anything?.logInfo?.(o,pb(r)),o};return{warn:({msg:e,payload:t})=>{r({msg:e,payload:t})},error:({msg:e,payload:t})=>{r({msg:e,payload:t})}}},hb=e=>fb(e,{tag:"sn-table"}),mb=$g({}),gb=$g(e=>{const t=e(mb);return e=>t.flags.isEnabled(e)}),bb=$g(e=>{const t=e(mb);return hb(t)}),vb=$g(!1),yb=$g({qHyperCube:{qDimensionInfo:[],qMeasureInfo:[],qSize:{qcx:0,qcy:0}}}),xb=$g(e=>e(yb).qHyperCube.qSize.qcy),Sb=$g(e=>!!e(yb).snapshotData),wb=$g(e=>e(yb).qHyperCube.qDimensionInfo.length),Cb=$g(e=>e(yb).qHyperCube.qMeasureInfo.length),Eb=$g(e=>e(yb).qStateName),Rb=$g(e=>e(yb).snapshotData),Ab=$g(e=>!1!==e(yb).usePagination),Ib=$g(e=>!1!==e(yb).accessibleHeader),kb=$g(),Pb=$g(!1),Mb=$g(e=>e(kb),(e,t,n)=>{t(kb,n),t(Pb,n.isModal())}),Db=$g(),Tb=$g(e=>{const t=e(Db),n=e(Sb);return{...t,select:!!t?.active&&!!t.select&&!n,active:!!t?.active&&!n,scroll:!!t?.active}},(e,t,n)=>{t(Db,n)}),Ob=$g(e=>!!e(Tb).active),qb=$g(e=>!!e(Tb).passive),Lb=$g(e=>!!e(Tb).select),Nb=$g(e=>!!e(Tb).scroll),jb=$g(e=>{const t=e(Ob),n=e(Pb);return t&&!n}),_b=(e,t)=>!(!e.snapshotData&&!t?.visibleHeight),zb=$g(),Fb=$g(e=>e(zb)?.direction),$b=$g(e=>e(zb)?.footerContainer),Hb=$g(e=>e(zb)?.viewState),Bb=$g(e=>e(zb)?.freeResize),Vb=$g(e=>{const t=e(yb),n=e(Hb),r=e(Ab);return void 0!==n?.usePagination?n.usePagination:r||_b(t,n)}),Wb=$g({active:!1,enabled:!1,blur:()=>{},focus:()=>{},focusSelection:()=>{}}),Ub=$g(e=>e(Wb),(e,t,n)=>{const r=e(Vb),o=e(gb)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE");(r||o)&&t(Wb,n)}),Gb=$g(),Kb=$g(e=>{const t=e(Gb);if(t&&"getEffectiveProperties"in t)return t}),Yb={width:0,height:0,top:0,left:0},Xb=$g(Yb),Jb=$g(Yb),Zb=$g(e=>e(Xb),(e,t,n)=>{const r=e(yb),o=e(Bb),i=e(Xb),a=r.snapshotData?.content&&!o;(i.width!==n.width||i.height!==n.height||i.top!==n.top||i.left!==n.left||a)&&(t(Jb,n),t(Xb,a?{...n,...r.snapshotData?.content?.size}:n))}),Qb=$g({}),ev=new WeakMap,tv=$g(e=>{const t=e(Qb),n=ev.get(t);if(n)return n;const r=_m.createRoot(t);return ev.set(t,r),r}),nv=$g({getColorPickerColor:()=>{},name:()=>{},getStyle:()=>{},background:{isDark:!1}}),rv=$g({get:e=>e,add:()=>{},language:()=>"en"});var ov,iv={exports:{}};var av=(ov||(ov=1,function(e){self,e.exports=(()=>{var e={909: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)},s=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},l=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,h=!1;for("boolean"==typeof d&&(h=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=l(d,n),d!==(o=l(t,n))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:n,newValue:o}));return d}},8:(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)},s=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},l=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,h=!1;for("boolean"==typeof d&&(h=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=l(d,n),d!==(o=l(t,n))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,c,o)})):void 0!==o&&s(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:()=>De});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 s=a[i];return a[i]=n,{updated:n,previous:s}}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 s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}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],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}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 h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(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,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=h(0),m=h(1),g=v(d,f),b=v(p,m);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}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 w={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 s=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),l=i?"":", 0";if(r&&1===r.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}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:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(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=h(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(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.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 s=S({properties:t,layout:n});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:h,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 E(e){return E="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},E(e)}var R=t().bind(null,!0),A={},I=Array.isArray;function k(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function P(e){return void 0===e}function M(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function D(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]=P(e[n||t])?i:e[t],e=e[n||t]}}),e}function T(e,t){var n=!0;if(k(e)&&k(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(r){T(e[r],t[r])||(n=!1)}),n);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!T(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],s="".concat(n,"/").concat(o);T(i,a)||M(t,o)||(P(a)?r.push({op:"add",path:s,value:i}):k(i)&&k(a)?r=r.concat(A.generate(a,i,s)):I(i)&&I(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&P(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(T(t,o))return r;if(!P(t[0])&&P(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),o.splice(s,1)):r=r.concat(A.generate(o[s],t[i],"".concat(n,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){P(t[o])&&!M(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=D(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,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(k(a)&&k(t.value))n=a,Object.keys(n).forEach(function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!M(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=D(e,t.from);I(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(I(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 O=A,q=function(e,n,r){if(!e)return Promise.resolve();var o=O.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 L="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===L)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===L)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var _={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.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,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=w.getNumStepComp(n,l),p=w.getAboveComp(n,l,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:n,properties:r,layout:o})){var h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);f=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.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.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(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(j(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(j(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(j(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(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(L))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var F="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===F)return n[r]}function H(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===F)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.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,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var u=s;void 0===u&&(u=w.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=w.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(r,u),h=w.getAboveComp(r,u,p,f);if(r.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var n=w.getRowNoComp(e,t);if(!w.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(m," / ").concat(g)}var b=t;if(w.needDimension({modifier:r,properties:o,layout:a})){var v=w.getDimComp(c,1),y=w.getDimComp(c,0),x=w.getAggrComp(b,v,y);b=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var W="timeSeriesDecomposition";function U(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===W)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===W)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const Y={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?w.generateTSDExpression(n,t,r):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=w.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!w.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 w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(W))return!1;var i=U(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=w.getAboveComp(n,l,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:n,properties:r,layout:o})){var f=w.getDimComp(u,1),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}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!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var s=ae(t),l=se(t,n,r),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=w.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,l,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!w.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){if(1===e){var n=oe(t,0);t.splice(n,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){if(e<2){var n=oe(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t){if(0===e){var n=oe(t,1);t.splice(n,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 w.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:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="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,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},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",we="qDef.qLabelExpression",Ce="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Ie={initBase:function(e,t){(t||Ie.isValid(e))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,Ee,i(e,we)))},restoreBase:function(e){Ie.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,we,i(e,Ee)),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 ke=Ie;function Pe(e){return Pe="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},Pe(e)}var Me={accumulation:z,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:Y};const De={modifiers:Me,apply:Oe,applyModifiers:qe,cleanUpMeasure:Le,destroy:function(e){e&&Te[e.id]&&Te[e.id].masterItemSubscriber&&(Te[e.id].masterItemSubscriber&&Te[e.id].masterItemSubscriber.unsubscribe(),delete Te[e.id])},hasActiveModifiers:Ne,getActiveModifier:je,initBase:ke.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return Me[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return Me[e]&&Me[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=Fe(e);Ge({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Ze({modifiers:t,properties:n,layout:r}))}),o&&!i},ifEnableTotalsFunction:_e};var Te={};function Oe(){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,s=e.masterItem,l=!1;Te[n.id]=Te[n.id]||{isFirstTime:!0};var u=Te[n.id].isFirstTime;if(Te[n.id].isFirstTime=!1,r&&"object"===Pe(r))return qe({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=Te[n.id].lastReloadTime;if(Te[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var h=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 h||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:Fe(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})}))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?n.getEffectiveProperties().then(function(e){var r=t()(!0,{},e);He(r);var o=Qe(r);return Ke({model:n}).then(function(t){return Ye({libraryIds:o,model:n}).then(function(o){return h&&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"===Pe(e)&&!e.disabled){if(n++,"object"!==Pe(Me[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=Me[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Ve(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(r)&&(t.qDef.base.qDef=r)}})}}({measure:e,properties:t})})}({properties:r}),qe({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})})})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Pe(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 Le(e)}),Je({oldProperties:e,newProperties:r,model:n})})}({model:n,properties:e})}):Promise.resolve(l)}function qe(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},o):o),He(o);var p=Qe(o);return et({model:n,libraryIds:p,masterItem:u}).then(function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach(function(e){return Le(e)}),Promise.resolve();var l=a?void 0:Qe(r);return Ke({model:o,dimensionAndFieldList:s}).then(function(e){return Ye({libraryIds:l,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,s=0;ke.isValid(n)||ke.initBase(n,!0);var l=n.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach(function(e){if("object"===Pe(e)&&!e.disabled){if(s++,"object"!==Pe(Me[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Me[e.type].initModifier(e,n);var l=n.qLibraryId||c&&c.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Me[r.type].generateExpression({expression:s,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,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:l,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Me[r.type].updateModifier&&Me[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Me[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,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||_e(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&_e(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}})}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),Be(n)):Le(n)})})})}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then(function(){return l?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)})})}function Le(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some(function(e){return"object"===Pe(e)&&!e.disabled&&!Me[e.type]})}(e)?ke.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(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:Fe(e),properties:n,layout:r})})}function je(e){var t=Fe(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Me[r.type]&&!r.disabled)return r}}function _e(e){var t=je(e);return!t||Me[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Fe(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){ze(e).forEach(function(e){return function(e){var n=je(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!ke.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)})}function Be(e){var t=Fe(e);Array.isArray(t)&&t.forEach(function(t){"object"===Pe(t)&&(t.disabled||!Me[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function Ve(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,n=e.properties,r=e.layout;return!We(t)&&Ge({modifiers:Fe(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"!==Pe(e)||e.disabled||!Me[e.type])&&(void 0===o[e.type]&&(o[e.type]=Me[e.type].isApplicable({properties:n,layout:r})),o[e.type])})}function Ke(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 Ye(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={},s=[];return o.forEach(function(e){var t=n.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=n.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a})}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):q(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then(function(){return o}):Promise.resolve(o)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Pe(e)&&!e.disabled&&Me[e.type]&&Me[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=Fe(t);if(Ge({modifiers:r,properties:e})){var i=We(t);i&&n.push(i),o=o||Ze({modifiers:r,properties:e})}}),i(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&r.push(t)}),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Te[t.id].masterItemSubscriber=Te[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=i(e,"qInfo.qType");return n&&s[n]&&s[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=l(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:l(t.layout)}})}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];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]&&s.push(c(e,"getMeasure"))}),Object.keys(a).forEach(function(e){a[e]&&!r[e]&&s.push(c(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach(function(e){r[e].listener.dispose()}),r={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),Te[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(r,{default:()=>He});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+r[a+1])?{}:[]),i=i[s]}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 s(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 s(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)?s(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 s(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 l(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(8),f=n.n(p);const h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var s,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,l(r.qMeasures));var a,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},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=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(r=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=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]=s}var S=n(909),w=n.n(S);function C(e,t){var n=w()(!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 E(e,t){return w()(!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 I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(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 P=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},M=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},D=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},T=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}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},q=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},L=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=E(s.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},s=R(a.max,o.dimensions.length,A),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,A),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},j=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))},_=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=w()(!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=w()(!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},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=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,s=function(e){if(Array.isArray(e))return I(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 I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach(function(e){a.qDimensions.push(e),r.dimensions.added(e,n)})}},H=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return k(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 k(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)?k(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=[],s.forEach(function(e){a.qMeasures.push(e),r.measures.added(e,n)})}},B=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach(function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store})};function V(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 W={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,s=i.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:l}),m({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,b({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters",!0),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,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=_({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,w=y.maxMeasures,C=y.minMeasures,E=l.defaultDimension,R=void 0===E?T():E,A=l.defaultMeasure,I=void 0===A?O():A;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:v}),q({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),L({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:v,defaultMeasure:I}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),j({exportFormat:t,newHyperCubeDef:v}),M("qMaxStackedCells",b,v),M("qNoOfLeftDims",b,v),D("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),D("qMode",b,v,"S"),D("qReductionMode",b,v,"N"),D("qSortbyYValue",b,v),D("qIndentMode",b,v),D("qShowTotalsAbove",b,v),P(g,t,r),m.qProperty=g;var k=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:k}),p&&V(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&V(m.qProperty,"dynamicScript"),m}};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 K(e,t){return e.length!==t}const Y={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],s=t.length;if(G(a,t,r,o),K(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=Y.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,s=e.label;te(r,o);var l=r[r.length-1];if(l){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=Y.create(Y.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:s,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},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.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?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(s.expression=i)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.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 s}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=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(ne(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:s,key: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)}i.auto=!1,i.mode=a}function se(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]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],o=Y.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 le=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:s,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=Y.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||r[0])),!!s}(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},he=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)},me=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=W.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=Y.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return Y.moveByIdFromGroup(a,[],"qAttributeDimensions",u),Y.moveByIdFromGroup(a,[],"qAttributeExpressions",u),Y.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=W.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:b,properties:d})&&he(d):me(d),b&&de(d,"qHyperCubeDef."),ge(d)&&le(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?V(n,"unsupportedAutoMinMax")||w()(n.measureAxis,t.measureAxis):V(n,"supportedAutoMinMax")||w()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=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 l=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);l.length?(i&&(t=l.filter(function(e){return e.type[i]>0}).sort(function(e,t){return t.type[i]-e.type[i]})),t&&t.length||(t=l.sort(function(e,t){return t.type.total-e.type.total})),t&&t[0]&&w()(s,n.properties.measureAxes[t[0].axis])):w()(s,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}}},we={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}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"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,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,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 Ee(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,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var u=Ce(n,r,l);i.setValue(t,u,s),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,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(n,r,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})})}var Ae="qHyperCubeDef.qMeasures",Ie="conditionalColoring",ke="measures",Pe="qDef.conditionalColoring";const Me={quarantine:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:Ie,arrayName:ke,itemPath:Pe})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Pe,arrayName:ke,quarantineName:Ie})}};var De="qHyperCubeDef.qMeasures",Te="measures",Oe="qHyperCubeDef.qDimensions",qe="dimensions",Le="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",je="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",_e="alternativeDimensions",ze="qCalcCondition",Fe="conditionalShowHide";const $e={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Ee({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:qe,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:qe,itemPath:ze})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Ee({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})}},He={hypercube:W,colorChart:be,axisChart:we,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:Me,conditionalShow:$e}})(),r.default})()}(iv)),iv.exports),sv=Bt(av);const lv="qHyperCubeDef.qMeasures",uv="measures",cv="qHyperCubeDef.qDimensions",dv="dimensions",pv="qDef.representation",fv="tableRepresentation",hv="qDef.conditionalColoring",mv="conditionalColoring",gv="qMiniChartDef",bv="miniChartDef",vv=({propertyTree:e,hyperCubePath:t})=>{const n=sv.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:r,qDimensions:o,qMeasures:i}}=n.properties,a=((e,t,n)=>{const r=e.length+t.length,o=(n?.length===r?n:Array.from(Array(r).keys())).map(n=>((e,t,n)=>{const r=t.length,o=e<r?t[e]:n[e-r],{columnWidth:i}=o.qDef;return i||-1})(n,e,t));return o})(o,i,r);return bt(n,"properties.qHyperCubeDef",{...n.properties.qHyperCubeDef,columnWidths:a}),sv.quarantineProperty(n.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),sv.quarantineProperty(n.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),sv.quarantineProperty(n.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{sv.quarantineArrayProp({properties:e,arrayPath:cv,itemPath:pv,arrayName:dv,quarantineName:fv}),sv.quarantineArrayProp({properties:e,arrayPath:lv,itemPath:pv,arrayName:uv,quarantineName:fv}),sv.quarantineArrayProp({properties:e,arrayPath:lv,itemPath:hv,arrayName:uv,quarantineName:mv}),sv.quarantineArrayProp({properties:e,arrayPath:lv,itemPath:gv,arrayName:uv,quarantineName:bv})})(n.properties),n};const yv=/^q[A-Z]/,xv=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],Sv=e=>"object"==typeof e&&null!==e,wv=(e,t)=>(Object.entries(e).forEach(([n,r])=>{const o=void 0===t?n:`${t}.${n}`;((e,t)=>!yv.test(e)&&!xv.some(e=>e.test(t)))(n,o)?delete e[n]:Array.isArray(r)?e[n]=r.map((e,t)=>Sv(e)?wv(e,`${o}.${t}`):e):Sv(r)&&(e[n]=wv(r,o))}),e),Cv=(e,t,n,r)=>{let o=t;r&&(o=t-r);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(n)&&n.length>0){const e=n[t];null===e||Array.isArray(e)||"object"!=typeof e?i.qDef.columnWidth="number"==typeof e&&e>0?{type:Qm.Pixels,pixels:e}:{type:Qm.FitToContent}:i.qDef.columnWidth=e}return i},Ev=({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o,viewDataMode:i,env:a})=>{const s=hb(a);if(i){try{e=structuredClone(e)}catch(e){s.error({msg:"Failed to copy source properties",payload:e})}wv(e.properties)}const l=sv.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:r,extension:n});if(sv.conditionalShow.unquarantine(l.qProperty),i)bt(l,"qProperty.totals.show",!1),bt(l,"qProperty.usePagination",!0),bt(l,"qProperty.accessibleHeader",!0);else{sv.unquarantineProperty(l.qProperty,"straightTableColumnOrder"),(e=>{sv.unquarantineArrayProp({properties:e,arrayPath:cv,itemPath:pv,arrayName:dv,quarantineName:fv}),sv.unquarantineArrayProp({properties:e,arrayPath:lv,itemPath:pv,arrayName:uv,quarantineName:fv}),sv.unquarantineArrayProp({properties:e,arrayPath:lv,itemPath:hv,arrayName:uv,quarantineName:mv}),sv.unquarantineArrayProp({properties:e,arrayPath:lv,itemPath:gv,arrayName:uv,quarantineName:bv})})(l.qProperty);const{qHyperCubeDef:{qDimensions:e,qMeasures:t,qColumnOrder:n,columnWidths:r}}=l.qProperty,{dimensions:o,measures:i}=((e,t,n,r)=>{const o=e.length,i=o+t.length,a=n?.length===i?n:Array.from(Array(i).keys());return{dimensions:a.filter(e=>e<o).map(t=>Cv(e,t,r)),measures:a.filter(e=>e>=o).map(e=>Cv(t,e,r,o))}})(e,t,n,r);Array.isArray(r)&&r.length>0&&(bt(l,"qProperty.qHyperCubeDef.qDimensions",o),bt(l,"qProperty.qHyperCubeDef.qMeasures",i))}return l};var Rv,Av,Iv={},kv={exports:{}},Pv={exports:{}};function Mv(){return Rv||(Rv=1,function(e){function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Pv)),Pv.exports}var Dv={};function Tv(e,t){return function(){return null}}function Ov(e){return e&&"object"===Ol(e)&&e.constructor===Object}function qv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?qn({},e):e;return Ov(e)&&Ov(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(Ov(t[o])&&o in e?r[o]=qv(e[o],t[o],n):r[o]=t[o])}),r}var Lv=(Wi.element,function(){return null});Lv.isRequired=(Wi.element.isRequired,function(){return null});var Nv=function(){return null};var jv,_v,zv={exports:{}},Fv={};var $v=(_v||(_v=1,zv.exports=function(){if(jv)return Fv;jv=1;var e=60103,t=60106,n=60107,r=60108,o=60114,i=60109,a=60110,s=60112,l=60113,u=60120,c=60115,d=60116,p=60121,f=60122,h=60117,m=60129,g=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;e=b("react.element"),t=b("react.portal"),n=b("react.fragment"),r=b("react.strict_mode"),o=b("react.profiler"),i=b("react.provider"),a=b("react.context"),s=b("react.forward_ref"),l=b("react.suspense"),u=b("react.suspense_list"),c=b("react.memo"),d=b("react.lazy"),p=b("react.block"),f=b("react.server.block"),h=b("react.fundamental"),m=b("react.debug_trace_mode"),g=b("react.legacy_hidden")}function v(p){if("object"==typeof p&&null!==p){var f=p.$$typeof;switch(f){case e:switch(p=p.type){case n:case o:case r:case l:case u:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case c:case i:return p;default:return f}}case t:return f}}}var y=i,x=e,S=s,w=n,C=d,E=c,R=t,A=o,I=r,k=l;return Fv.ContextConsumer=a,Fv.ContextProvider=y,Fv.Element=x,Fv.ForwardRef=S,Fv.Fragment=w,Fv.Lazy=C,Fv.Memo=E,Fv.Portal=R,Fv.Profiler=A,Fv.StrictMode=I,Fv.Suspense=k,Fv.isAsyncMode=function(){return!1},Fv.isConcurrentMode=function(){return!1},Fv.isContextConsumer=function(e){return v(e)===a},Fv.isContextProvider=function(e){return v(e)===i},Fv.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Fv.isForwardRef=function(e){return v(e)===s},Fv.isFragment=function(e){return v(e)===n},Fv.isLazy=function(e){return v(e)===d},Fv.isMemo=function(e){return v(e)===c},Fv.isPortal=function(e){return v(e)===t},Fv.isProfiler=function(e){return v(e)===o},Fv.isStrictMode=function(e){return v(e)===r},Fv.isSuspense=function(e){return v(e)===l},Fv.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===m||e===r||e===l||e===u||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===i||e.$$typeof===a||e.$$typeof===s||e.$$typeof===h||e.$$typeof===p||e[0]===f)},Fv.typeOf=v,Fv}()),zv.exports),Hv=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Bv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(Hv);return t&&t[1]||""}(e)||t}function Vv(e,t,n){var r=Bv(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}var Wv,Uv="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Gv=Wi.oneOfType([Wi.func,Wi.object]),Kv=Object.freeze({__proto__:null,HTMLElementType:function(e,t,n,r,o){return null},chainPropTypes:Tv,deepmerge:qv,elementAcceptingRef:Lv,elementTypeAcceptingRef:Nv,exactProp:function(e){return e},formatMuiErrorMessage: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."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Bv(e,"Component");if("object"===Ol(e))switch(e.$$typeof){case $v.ForwardRef:return Vv(e,e.render,"ForwardRef");case $v.Memo:return Vv(e,e.type,"memo");default:return}}},ponyfillGlobal:Uv,refType:Gv}),Yv=Vt(Kv);function Xv(){if(Wv)return Dv;Wv=1,Object.defineProperty(Dv,"__esModule",{value:!0}),Dv.hexToRgb=n,Dv.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=o(e),n=t.values;return"#".concat(n.map(function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)}).join(""))},Dv.hslToRgb=r,Dv.decomposeColor=o,Dv.recomposeColor=i,Dv.getContrastRatio=function(e,t){var n=a(e),r=a(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Dv.getLuminance=a,Dv.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return a(e)>.5?l(e,t):u(e,t)},Dv.fade=function(e,t){return s(e,t)},Dv.alpha=s,Dv.darken=l,Dv.lighten=u;var e=Yv;function t(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)}function n(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(", "),")"):""}function r(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,a=t[2]/100,s=r*Math.min(a,1-a),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return a-s*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),i({type:u,values:c})}function o(t){if(t.type)return t;if("#"===t.charAt(0))return o(n(t));var r=t.indexOf("("),i=t.substring(0,r);if(-1===["rgb","rgba","hsl","hsla"].indexOf(i))throw new Error((0,e.formatMuiErrorMessage)(3,t));var a=t.substring(r+1,t.length-1).split(",");return{type:i,values:a=a.map(function(e){return parseFloat(e)})}}function i(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(", "),")")}function a(e){var t="hsl"===(e=o(e)).type?o(r(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function s(e,n){return e=o(e),n=t(n),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=n,i(e)}function l(e,n){if(e=o(e),n=t(n),-1!==e.type.indexOf("hsl"))e.values[2]*=1-n;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-n;return i(e)}function u(e,n){if(e=o(e),n=t(n),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*n;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*n;return i(e)}return Dv}var Jv,Zv,Qv,ey={},ty={exports:{}},ny={exports:{}},ry={exports:{}};function oy(){return Jv||(Jv=1,function(e){var t=Mv().default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(ry)),ry.exports}function iy(){return Zv||(Zv=1,function(e){var t=Mv().default,n=oy();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(ny)),ny.exports}function ay(){return Qv||(Qv=1,function(e){var t=iy();e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(ty)),ty.exports}var sy,ly={exports:{}};function uy(){return sy||(sy=1,function(e){var t=yu();e.exports=function(e,n){if(null==e)return{};var r,o,i=t(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],-1===n.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(ly)),ly.exports}var cy,dy={};function py(){if(cy)return dy;cy=1;var e=zl();Object.defineProperty(dy,"__esModule",{value:!0}),dy.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,n.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var n=r.indexOf(t);return n===r.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==n&&"number"==typeof i[r[n+1]]?i[r[n+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:r,values:i,up:d,down:function(e){var t=r.indexOf(e)+1,n=i[r[t]];return t===r.length?d("xs"):"@media (max-width:".concat(("number"==typeof n&&t>0?n:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},dy.keys=void 0;var t=e(gu()),n=e(uy()),r=["xs","sm","md","lg","xl"];return dy.keys=r,dy}var fy,hy={};function my(){if(fy)return hy;fy=1;var e=zl();Object.defineProperty(hy,"__esModule",{value:!0}),hy.default=function(e,r,o){var i;return(0,n.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,n.default)({paddingLeft:r(2),paddingRight:r(2)},o,(0,t.default)({},e.up("sm"),(0,n.default)({paddingLeft:r(3),paddingRight:r(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(ay()),n=e(gu());return hy}var gy,by={},vy={};function yy(){if(gy)return vy;gy=1,Object.defineProperty(vy,"__esModule",{value:!0}),vy.default=void 0;var e={black:"#000",white:"#fff"};return vy.default=e,vy}var xy,Sy={};function wy(){if(xy)return Sy;xy=1,Object.defineProperty(Sy,"__esModule",{value:!0}),Sy.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return Sy.default=e,Sy}var Cy,Ey={};function Ry(){if(Cy)return Ey;Cy=1,Object.defineProperty(Ey,"__esModule",{value:!0}),Ey.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return Ey.default=e,Ey}var Ay,Iy={};function ky(){if(Ay)return Iy;Ay=1,Object.defineProperty(Iy,"__esModule",{value:!0}),Iy.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return Iy.default=e,Iy}var Py,My={};function Dy(){if(Py)return My;Py=1,Object.defineProperty(My,"__esModule",{value:!0}),My.default=void 0;var e={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"};return My.default=e,My}var Ty,Oy={};function qy(){if(Ty)return Oy;Ty=1,Object.defineProperty(Oy,"__esModule",{value:!0}),Oy.default=void 0;var e={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"};return Oy.default=e,Oy}var Ly,Ny={};function jy(){if(Ly)return Ny;Ly=1,Object.defineProperty(Ny,"__esModule",{value:!0}),Ny.default=void 0;var e={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"};return Ny.default=e,Ny}var _y,zy,Fy={};function $y(){if(_y)return Fy;_y=1,Object.defineProperty(Fy,"__esModule",{value:!0}),Fy.default=void 0;var e={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"};return Fy.default=e,Fy}function Hy(){if(zy)return by;zy=1;var e=zl();Object.defineProperty(by,"__esModule",{value:!0}),by.default=function(e){var g=e.primary,b=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,v=e.secondary,y=void 0===v?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:v,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,E=e.info,R=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,A=e.success,I=void 0===A?{light:d.default[300],main:d.default[500],dark:d.default[700]}:A,k=e.type,P=void 0===k?"light":k,M=e.contrastThreshold,D=void 0===M?3:M,T=e.tonalOffset,O=void 0===T?.2:T,q=(0,n.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function L(e){return(0,p.getContrastRatio)(e,h.text.primary)>=D?h.text.primary:f.text.primary}var N=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[n]&&(e.main=e[n]),!e.main)throw new Error((0,r.formatMuiErrorMessage)(4,n));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,O),m(e,"dark",i,O),e.contrastText||(e.contrastText=L(e.main)),e},j={dark:h,light:f},_=(0,r.deepmerge)((0,t.default)({common:o.default,type:P,primary:N(b),secondary:N(y,"A400","A200","A700"),error:N(S),warning:N(C),info:N(R),success:N(I),grey:i.default,contrastThreshold:D,getContrastText:L,augmentColor:N,tonalOffset:O},j[P]),q);return _},by.dark=by.light=void 0;var t=e(gu()),n=e(uy()),r=Yv,o=e(yy()),i=e(wy()),a=e(Ry()),s=e(ky()),l=e(Dy()),u=e(qy()),c=e(jy()),d=e($y()),p=Xv(),f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},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}};by.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.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 m(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return by.dark=h,by}var By,Vy={};function Wy(){if(By)return Vy;By=1;var e=zl();Object.defineProperty(Vy,"__esModule",{value:!0}),Vy.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,b=void 0===g?400:g,v=u.fontWeightMedium,y=void 0===v?500:v,x=u.fontWeightBold,S=void 0===x?700:x,w=u.htmlFontSize,C=void 0===w?16:w,E=u.allVariants,R=u.pxToRem,A=(0,n.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),I=f/14,k=R||function(e){return"".concat(e/C*I,"rem")},P=function(e,n,r,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:k(n),lineHeight:r},d===s?{letterSpacing:"".concat(o(i/n),"em")}:{},a,E)},M={h1:P(m,96,1.167,-1.5),h2:P(m,60,1.2,-.5),h3:P(b,48,1.167,0),h4:P(b,34,1.235,.25),h5:P(b,24,1.334,0),h6:P(y,20,1.6,.15),subtitle1:P(b,16,1.75,.15),subtitle2:P(y,14,1.57,.1),body1:P(b,16,1.5,.15),body2:P(b,14,1.43,.15),button:P(y,14,1.75,.4,a),caption:P(b,12,1.66,.4),overline:P(b,12,2.66,1,a)};return(0,r.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:k,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},M),A,{clone:!1})};var t=e(gu()),n=e(uy()),r=Yv;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return Vy}var Uy,Gy={};function Ky(){if(Uy)return Gy;Uy=1,Object.defineProperty(Gy,"__esModule",{value:!0}),Gy.default=void 0;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return Gy.default=t,Gy}var Yy,Xy={};function Jy(){if(Yy)return Xy;Yy=1,Object.defineProperty(Xy,"__esModule",{value:!0}),Xy.default=void 0;var e={borderRadius:4};return Xy.default=e,Xy}var Zy={};function Qy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ex(e,t){if(e){if("string"==typeof e)return Qy(e,t);var n={}.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)?Qy(e,t):void 0}}function tx(e){return function(e){if(Array.isArray(e))return Qy(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ex(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 nx(e,t){return t?qv(e,t,{clone:!1}):e}var rx={xs:0,sm:600,md:960,lg:1280,xl:1920},ox={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(rx[e],"px)")}};function ix(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||ox;return t.reduce(function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e},{})}if("object"===Ol(t)){var o=e.theme.breakpoints||ox;return Object.keys(t).reduce(function(e,r){return e[o.up(r)]=n(t[r]),e},{})}return n(t)}function ax(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function sx(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=ax(e.theme,o)||{};return ix(e,n,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=ax(a,e)||e,i&&(t=i(t))),!1===r?t:function(e,t,n){return(t=ql(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,t)})};return a.propTypes={},a.filterProps=[t],a}function lx(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce(function(t,n){var r=n(e);return r?nx(t,r):t},{})};return r.propTypes={},r.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),r}function ux(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var cx=sx({prop:"border",themeKey:"borders",transform:ux}),dx=sx({prop:"borderTop",themeKey:"borders",transform:ux}),px=sx({prop:"borderRight",themeKey:"borders",transform:ux}),fx=sx({prop:"borderBottom",themeKey:"borders",transform:ux}),hx=sx({prop:"borderLeft",themeKey:"borders",transform:ux}),mx=sx({prop:"borderColor",themeKey:"palette"}),gx=sx({prop:"borderRadius",themeKey:"shape"}),bx=lx(cx,dx,px,fx,hx,mx,gx);function vx(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n}function yx(e){var t=function(t){var n=e(t);return t.css?qn({},nx(n,e(qn({theme:t.theme},t.css))),vx(t.css,[e.filterProps])):t.sx?qn({},nx(n,e(qn({theme:t.theme},t.sx))),vx(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(tx(e.filterProps)),t}var xx=lx(sx({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),sx({prop:"display"}),sx({prop:"overflow"}),sx({prop:"textOverflow"}),sx({prop:"visibility"}),sx({prop:"whiteSpace"})),Sx=sx({prop:"flexBasis"}),wx=sx({prop:"flexDirection"}),Cx=sx({prop:"flexWrap"}),Ex=sx({prop:"justifyContent"}),Rx=sx({prop:"alignItems"}),Ax=sx({prop:"alignContent"}),Ix=sx({prop:"order"}),kx=sx({prop:"flex"}),Px=sx({prop:"flexGrow"}),Mx=sx({prop:"flexShrink"}),Dx=sx({prop:"alignSelf"}),Tx=sx({prop:"justifyItems"}),Ox=sx({prop:"justifySelf"}),qx=lx(Sx,wx,Cx,Ex,Rx,Ax,Ix,kx,Px,Mx,Dx,Tx,Ox),Lx=sx({prop:"gridGap"}),Nx=sx({prop:"gridColumnGap"}),jx=sx({prop:"gridRowGap"}),_x=sx({prop:"gridColumn"}),zx=sx({prop:"gridRow"}),Fx=sx({prop:"gridAutoFlow"}),$x=sx({prop:"gridAutoColumns"}),Hx=sx({prop:"gridAutoRows"}),Bx=sx({prop:"gridTemplateColumns"}),Vx=sx({prop:"gridTemplateRows"}),Wx=sx({prop:"gridTemplateAreas"}),Ux=sx({prop:"gridArea"}),Gx=lx(Lx,Nx,jx,_x,zx,Fx,$x,Hx,Bx,Vx,Wx,Ux),Kx=sx({prop:"color",themeKey:"palette"}),Yx=sx({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),Xx=lx(Kx,Yx),Jx=sx({prop:"position"}),Zx=sx({prop:"zIndex",themeKey:"zIndex"}),Qx=sx({prop:"top"}),eS=sx({prop:"right"}),tS=sx({prop:"bottom"}),nS=sx({prop:"left"}),rS=lx(Jx,Zx,Qx,eS,tS,nS),oS=sx({prop:"boxShadow",themeKey:"shadows"});function iS(e){return e<=1?"".concat(100*e,"%"):e}var aS=sx({prop:"width",transform:iS}),sS=sx({prop:"maxWidth",transform:iS}),lS=sx({prop:"minWidth",transform:iS}),uS=sx({prop:"height",transform:iS}),cS=sx({prop:"maxHeight",transform:iS}),dS=sx({prop:"minHeight",transform:iS}),pS=sx({prop:"size",cssProperty:"width",transform:iS}),fS=sx({prop:"size",cssProperty:"height",transform:iS}),hS=sx({prop:"boxSizing"}),mS=lx(aS,sS,lS,uS,cS,dS,hS);function gS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||ex(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var bS={m:"margin",p:"padding"},vS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},yS={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xS=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(e){if(e.length>2){if(!yS[e])return[e];e=yS[e]}var t=gS(e.split(""),2),n=t[0],r=t[1],o=bS[n],i=vS[r]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),SS=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function wS(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function CS(e,t){return function(n){return e.reduce(function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e},{})}}function ES(e){var t=wS(e.theme);return Object.keys(e).map(function(n){if(-1===SS.indexOf(n))return null;var r=CS(xS(n),t),o=e[n];return ix(e,o,r)}).reduce(nx,{})}ES.propTypes={},ES.filterProps=SS;var RS,AS=sx({prop:"fontFamily",themeKey:"typography"}),IS=sx({prop:"fontSize",themeKey:"typography"}),kS=sx({prop:"fontStyle",themeKey:"typography"}),PS=sx({prop:"fontWeight",themeKey:"typography"}),MS=sx({prop:"letterSpacing"}),DS=sx({prop:"lineHeight"}),TS=sx({prop:"textAlign"}),OS=lx(AS,IS,kS,PS,MS,DS,TS),qS=Object.freeze({__proto__:null,alignContent:Ax,alignItems:Rx,alignSelf:Dx,bgcolor:Yx,border:cx,borderBottom:fx,borderColor:mx,borderLeft:hx,borderRadius:gx,borderRight:px,borderTop:dx,borders:bx,bottom:tS,boxSizing:hS,breakpoints:function(e){var t=function(t){var n=e(t),r=t.theme.breakpoints||ox,o=r.keys.reduce(function(n,o){return t[o]&&((n=n||{})[r.up(o)]=e(qn({theme:t.theme},t[o]))),n},null);return nx(n,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(tx(e.filterProps)),t},color:Kx,compose:lx,createUnarySpacing:wS,css:function(e){return yx(e)},display:xx,flex:kx,flexBasis:Sx,flexDirection:wx,flexGrow:Px,flexShrink:Mx,flexWrap:Cx,flexbox:qx,fontFamily:AS,fontSize:IS,fontStyle:kS,fontWeight:PS,grid:Gx,gridArea:Ux,gridAutoColumns:$x,gridAutoFlow:Fx,gridAutoRows:Hx,gridColumn:_x,gridColumnGap:Nx,gridGap:Lx,gridRow:zx,gridRowGap:jx,gridTemplateAreas:Wx,gridTemplateColumns:Bx,gridTemplateRows:Vx,height:uS,justifyContent:Ex,justifyItems:Tx,justifySelf:Ox,left:nS,letterSpacing:MS,lineHeight:DS,maxHeight:cS,maxWidth:sS,minHeight:dS,minWidth:lS,order:Ix,palette:Xx,position:Jx,positions:rS,right:eS,shadows:oS,sizeHeight:fS,sizeWidth:pS,sizing:mS,spacing:ES,style:sx,styleFunctionSx:yx,textAlign:TS,top:Qx,typography:OS,width:aS,zIndex:Zx}),LS=Vt(qS);function NS(){if(RS)return Zy;RS=1,Object.defineProperty(Zy,"__esModule",{value:!0}),Zy.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var n=(0,e.createUnarySpacing)({spacing:t}),r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?n(1):1===t.length?n(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=n(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return t}}),r.mui=!0,r};var e=LS;return Zy}var jS,_S={};function zS(){if(jS)return _S;jS=1;var e=zl();Object.defineProperty(_S,"__esModule",{value:!0}),_S.default=_S.duration=_S.easing=void 0;var t=e(uy()),n={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.easing=n;var r={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}_S.duration=r;var i={easing:n,duration:r,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?r.standard:a,l=i.easing,u=void 0===l?n.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return _S.default=i,_S}var FS,$S,HS={};function BS(){if(FS)return HS;FS=1,Object.defineProperty(HS,"__esModule",{value:!0}),HS.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return HS.default=e,HS}function VS(){if($S)return ey;$S=1;var e=zl();Object.defineProperty(ey,"__esModule",{value:!0}),ey.createMuiTheme=function(){return p.apply(void 0,arguments)},ey.default=void 0,e(ay());var t=e(uy()),n=Yv,r=e(py()),o=e(my()),i=e(Hy()),a=e(Wy()),s=e(Ky()),l=e(Jy()),u=e(NS()),c=e(zS()),d=e(BS());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,b=void 0===g?{}:g,v=e.spacing,y=e.typography,x=void 0===y?{}:y,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(b),C=(0,r.default)(f),E=(0,u.default)(v),R=(0,n.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:c.default,zIndex:d.default},S),A=arguments.length,I=new Array(A>1?A-1:0),k=1;k<A;k++)I[k-1]=arguments[k];return R=I.reduce(function(e,t){return(0,n.deepmerge)(e,t)},R)}var f=p;return ey.default=f,ey}var WS,US={};function GS(){if(WS)return US;WS=1;var e=zl();Object.defineProperty(US,"__esModule",{value:!0}),US.default=function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=Yv,n=e(VS());return US}var KS={},YS="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",XS=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function JS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==XS.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[YS]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function ZS(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var QS="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},ew="object"===("undefined"==typeof window?"undefined":QS(window))&&"object"===("undefined"==typeof document?"undefined":QS(document))&&9===document.nodeType;function tw(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ql(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var nw={}.constructor;function rw(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(rw);if(e.constructor!==nw)return e;var t={};for(var n in e)t[n]=rw(e[n]);return t}function ow(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=rw(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var iw=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},aw=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=iw(e[n]," ");else t=iw(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function sw(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function lw(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function uw(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=sw(n),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(r&&(r+=l),r+=lw(p+":"+u+aw(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=lw(h+":"+u+aw(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(r&&(r+=l),r+=lw(g+":"+u+aw(b)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),lw(""+e+u+"{"+r,--i)+lw("}",i)):r}var cw=/([[\].#*$><+~=|^:(),"'`\s])/g,dw="undefined"!=typeof CSS&&CSS.escape,pw=function(e){return dw?dw(e):e.replace(cw,"\\$1")},fw=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),hw=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Ju(Ju(o)),s),o.selectorText="."+pw(o.id)),o}$u(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=aw(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?qn({},e,{allowEmpty:!0}):e;return uw(this.selectorText,this.style,n)},tw(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(fw),mw={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new hw(e,t,n)}},gw={indent:1,children:!0},bw=/@([\w-]+)/,vw=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(bw);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Hw(qn({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=gw);var t=sw(e).linebreak;if(null==e.indent&&(e.indent=gw.indent),null==e.children&&(e.children=gw.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),yw=/@container|@media|@supports\s+/,xw={onCreateRule:function(e,t,n){return yw.test(e)?new vw(e,t,n):null}},Sw={indent:1,children:!0},ww=/@keyframes\s+([\w-]+)/,Cw=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(ww);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var s in this.id=!1===o?this.name:pw(a(this,i)),this.rules=new Hw(qn({},n,{parent:this})),t)this.rules.add(s,t[s],qn({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Sw);var t=sw(e).linebreak;if(null==e.indent&&(e.indent=Sw.indent),null==e.children&&(e.children=Sw.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),Ew=/@keyframes\s+/,Rw=/\$([\w-]+)/g,Aw=function(e,t){return"string"==typeof e?e.replace(Rw,function(e,n){return n in t?t[n]:e}):e},Iw=function(e,t,n){var r=e[t],o=Aw(r,n);o!==r&&(e[t]=o)},kw={onCreateRule:function(e,t,n){return"string"==typeof e&&Ew.test(e)?new Cw(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Iw(e,"animation-name",n.keyframes),"animation"in e&&Iw(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return Aw(e,r.keyframes);default:return e}}},Pw=function(e){function t(){return e.apply(this,arguments)||this}return $u(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?qn({},e,{allowEmpty:!0}):e;return uw(this.key,this.style,n)},t}(fw),Mw={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Pw(e,t,n):null}},Dw=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=sw(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=uw(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return uw(this.at,this.style,e)},e}(),Tw=/@font-face/,Ow={onCreateRule:function(e,t,n){return Tw.test(e)?new Dw(e,t,n):null}},qw=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return uw(this.key,this.style,e)},e}(),Lw={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new qw(e,t,n):null}},Nw=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),jw={"@charset":!0,"@import":!0,"@namespace":!0},_w={onCreateRule:function(e,t,n){return e in jw?new Nw(e,t,n):null}},zw=[mw,xw,kw,Mw,Ow,Lw,_w],Fw={process:!0},$w={force:!0,process:!0},Hw=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,u=r.scoped,c=qn({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+pw(this.classes[d]));var p=ow(d,t,c);if(!p)return null;this.register(p);var f=void 0===c.index?this.index.length:c.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=qn({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof hw?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Cw&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof hw?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Cw&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=Fw);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,$w)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,$w)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=sw(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),Bw=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=qn({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Hw(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Vw=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Ww=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Ln(t,["attached"]),o=sw(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},tw(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Uw=new Ww,Gw="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Kw="2f1acc6c3a606b082e5eef5e54414ffb";null==Gw[Kw]&&(Gw[Kw]=0);var Yw=Gw[Kw]++,Xw=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+Yw+o+t:i+n.key+"-"+Yw+(o?"-"+o:"")+"-"+t}},Jw=function(e){var t;return function(){return t||(t=e()),t}},Zw=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Qw=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=aw(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},eC=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},tC=function(e,t){return e.selectorText=t,e.selectorText===t},nC=Jw(function(){return document.querySelector("head")});function rC(e){var t=Uw.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=nC(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var oC=Jw(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),iC=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},aC=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},sC=function(){function e(e){this.getPropertyValue=Zw,this.setProperty=Qw,this.removeProperty=eC,this.setSelector=tC,this.hasInsertedRules=!1,this.cssRules=[],e&&Uw.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=oC();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=rC(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else nC().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=aC(n,t);if(!1===(o=iC(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=aC(n,t),l=iC(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof Bw&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),lC=0,uC=function(){function e(e){this.id=lC++,this.version="10.10.0",this.plugins=new Vw,this.options={id:{minify:!1},createGenerateId:Xw,Renderer:ew?sC:null,plugins:[]},this.generateId=Xw({minify:!1});for(var t=0;t<zw.length;t++)this.plugins.use(zw[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=qn({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===Uw.index?0:Uw.index+1);var r=new Bw(e,qn({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),Uw.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=qn({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=ow(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.plugins.use(t)}),this},e}(),cC=function(e){return new uC(e)},dC="object"==typeof CSS&&null!=CSS&&"number"in CSS;function pC(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=pC(r);i&&(t||(t={}),t[n]=i)}}return t}
|
|
91
91
|
/**
|
|
92
92
|
* A better abstraction over CSS.
|
|
93
93
|
*
|
|
@@ -99,7 +99,7 @@ function Ki(e,t){let n;return n=t?Di(e).withConfig({displayName:t.label,shouldFo
|
|
|
99
99
|
*
|
|
100
100
|
* This source code is licensed under the MIT license found in the
|
|
101
101
|
* LICENSE file in the root directory of this source tree.
|
|
102
|
-
*/function SR(){if(bR)return KS;bR=1,Object.defineProperty(KS,"__esModule",{value:!0}),KS.default=function(t){return(0,e.createStyles)(t)};var e=xR;return KS}var wR,CR,ER={},RR={};function AR(){if(wR)return RR;wR=1;var e=zl();Object.defineProperty(RR,"__esModule",{value:!0}),RR.default=void 0;var t=(0,e(VS()).default)();return RR.default=t,RR}function IR(){if(CR)return ER;CR=1;var e=zl();Object.defineProperty(ER,"__esModule",{value:!0}),ER.default=void 0;var t=e(gu()),n=xR,r=e(AR());var o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.makeStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return ER.default=o,ER}var kR,PR,MR={},DR={};function TR(){if(kR)return DR;kR=1;var e=zl();Object.defineProperty(DR,"__esModule",{value:!0}),DR.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},DR.getUnit=n,DR.toUnitless=r,DR.convertLength=function(e){return function(t,o){var i=n(t);if(i===o)return t;var a=r(t);if("px"!==i)if("em"===i)a=r(t)*r(e);else if("rem"===i)return a=r(t)*r(e),t;var s=a;if("px"!==o)if("em"===o)s=a/r(e);else{if("rem"!==o)return t;s=a/r(e)}return parseFloat(s.toFixed(5))+o}},DR.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},DR.fontGrid=function(e){var t=e.lineHeight,n=e.pixels,r=e.htmlFontSize;return n/(t*r)},DR.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},n,"".concat(r).concat(a)),p=(o-r)/l[l.length-1];return l.forEach(function(e){var o=r+p*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*o)/1e4).concat(a))}),d};var t=e(ay());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return DR}function OR(){if(PR)return MR;PR=1;var e=zl();Object.defineProperty(MR,"__esModule",{value:!0}),MR.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,r.convertLength)(h.htmlFontSize),g=a.map(function(e){return f.breakpoints.values[e]});return p.forEach(function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,r.isUnitless)(u)&&!l)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,r.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),f};var t=e(gu()),n=Yv,r=TR();return MR}var qR,LR={};function NR(){if(qR)return LR;qR=1;var e=zl();Object.defineProperty(LR,"__esModule",{value:!0}),LR.default=void 0;var t=e(gu()),n=xR,r=e(AR()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return LR.default=o,LR}var jR,_R={};function zR(){if(jR)return _R;jR=1;var e=zl();Object.defineProperty(_R,"__esModule",{value:!0}),_R.default=function(){return(0,t.useTheme)()||n.default};var t=xR;e(w);var n=e(AR());return _R}var FR,$R={};function HR(){if(FR)return $R;FR=1;var e=zl();Object.defineProperty($R,"__esModule",{value:!0}),$R.default=void 0;var t=e(gu()),n=xR,r=e(AR());var o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return $R.default=o,$R}var BR,VR,WR={};function UR(){if(BR)return WR;BR=1;var e=zl();Object.defineProperty(WR,"__esModule",{value:!0}),WR.default=void 0;var t=xR,n=e(AR()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return WR.default=r,WR}function GR(){return VR||(VR=1,function(e){var t=zl(),n=(Av||(Av=1,function(e){var t=Mv().default;function n(r,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=n=function(e,n){if(!n&&e&&e.__esModule)return e;var r,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(r=n?a:i){if(r.has(e))return r.get(e);r.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?r(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(r,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(kv)),kv.exports);Object.defineProperty(e,"__esModule",{value:!0});var r={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=Xv();Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var i=n(VS()),a=t(GS()),s=t(SR()),l=t(IR()),u=t(OR()),c=t(NR()),d=zS();Object.keys(d).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))});var p=t(zR()),f=t(HR()),h=t(UR()),m=xR}(Iv)),Iv}var KR=GR();KR.alpha(Tt.GREYSCALE_0,.05),KR.alpha(Tt.GREEN_PALE,.5),KR.alpha(Tt.BLUE_PALE,.5),KR.alpha(Tt.GREEN_PALE,.5),KR.alpha(Tt.BLUE_PALE,.5),KR.alpha(Tt.GREEN_PALE,.5),KR.alpha(Tt.BLUE_PALE,.5),KR.alpha(Tt.GREEN_PALE,.5),KR.alpha(Tt.BLUE_PALE,.5),KR.alpha(Tt.GREEN_PALE,.5),KR.alpha(Tt.BLUE_PALE,.5),t.meta.env&&t.meta.env.MODE;!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},n){var r;let o,i;const a={getItem:(t,r)=>{var a,s;const l=e=>{if(o!==(e=e||"")){try{i=JSON.parse(e,null==n?void 0:n.reviver)}catch(e){return r}o=e}return i},u=null!=(s=null==(a=e())?void 0:a.getItem(t))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(u)?u.then(l):l(u)},setItem:(t,n)=>{var r;return null==(r=e())?void 0:r.setItem(t,JSON.stringify(n,void 0))},removeItem:t=>{var n;return null==(n=e())?void 0:n.removeItem(t)}};let s;try{s=null==(r=e())?void 0:r.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(t,n)=>{if(!(e()instanceof window.Storage))return()=>{};const r=r=>{r.storageArea===e()&&r.key===t&&n(r.newValue)};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}}),s&&(a.subscribe=(l=s,(e,t,r)=>l(e,e=>{let o;try{o=JSON.parse(e||"",null==n?void 0:n.reviver)}catch(e){o=r}t(o)})))}();const YR=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),XR=new WeakMap,JR=()=>{};function ZR(e,n=JR){return((e,t,n)=>{const r=YR(()=>new WeakMap,XR,t);return YR(e,r,n)})(()=>{const r=new WeakMap,o=new WeakMap,i=$g(0),a=$g([]);a.INTERNAL_onInit=e=>{e.set(a,[()=>e.set(i,e=>e+1)])},"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(i.debugPrivate=!0,a.debugPrivate=!0);const s=$g(t=>{let l;t(i);try{l=t(s)}catch(e){}const u=t(e);if(!(e=>"function"==typeof(null==e?void 0:e.then))(u))return{v:u};if(u!==(null==l?void 0:l.p)&&u.then(e=>{o.set(u,e);const[n]=t(a);n()},e=>{r.set(u,e);const[n]=t(a);n()}),r.has(u))throw r.get(u);return o.has(u)?{p:u,v:o.get(u)}:l&&"v"in l?{p:u,f:n(l.v),v:l.v}:{p:u,f:n()}});return s.init=void 0,"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(s.debugPrivate=!0),$g(e=>{const t=e(s);return"f"in t?t.f:t.v},(t,n,...r)=>n(e,...r))},e,n)}const QR=new WeakMap;function eA(e,t){const n=Ug(t),r=tA(n);for(const[o,...i]of e)r.has(o)&&!(null==t?void 0:t.dangerouslyForceHydrate)||(r.add(o),n.set(o,...i))}const tA=e=>{let t=QR.get(e);return t||(t=new WeakSet,QR.set(e,t)),t};function nA(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}const rA="INTERNAL_getBuildingBlocksRev",oA=Number(Object.keys(_g).find(e=>e.startsWith(rA))?.slice(29));if(Number.isNaN(oA))throw new Error("jotai-compat: unsupported jotai internals revision");const iA=_g,aA=`INTERNAL_getBuildingBlocksRev${oA}`,sA=iA[`INTERNAL_initializeStoreHooksRev${oA}`],lA=[["atomStateMap","a"],["mountedMap","m"],["invalidatedAtoms","i"],["changedAtoms","c"],["mountCallbacks","q"],["unmountCallbacks","Q"],["storeHooks","h"],["atomRead","R"],["atomWrite","W"],["atomOnInit","I"],["atomOnMount","M"],["ensureAtomState","e"],["flushCallbacks","f"],["recomputeInvalidatedAtoms","C"],["readAtomState","r"],["invalidateDependents","d"],["writeAtomState","w"],["mountDependencies","D"],["mountAtom","t"],["unmountAtom","T"],["setAtomStateValueOrPromise","v"],["storeGet","g"],["storeSet","s"],["storeSub","b"],["enhanceBuildingBlocks","B"],["abortHandlersMap","p"],["registerAbortHandler","H"],["abortPromise","A"],["storeEpochHolder","E"]];if(oA>=4)for(const[e,t]of lA)if(iA[`INTERNAL_KEY_${e}`]!==t)throw new Error(`jotai-compat: KEY drift for ${e}`);const uA={};lA.forEach(([e,t],n)=>{uA[`INTERNAL_KEY_${e}`]=oA>=4?t:n});const{INTERNAL_KEY_mountedMap:cA,INTERNAL_KEY_changedAtoms:dA,INTERNAL_KEY_storeHooks:pA,INTERNAL_KEY_ensureAtomState:fA,INTERNAL_KEY_flushCallbacks:hA,INTERNAL_KEY_recomputeInvalidatedAtoms:mA,INTERNAL_KEY_readAtomState:gA,INTERNAL_KEY_invalidateDependents:bA,INTERNAL_KEY_writeAtomState:vA,INTERNAL_KEY_mountDependencies:yA,INTERNAL_KEY_setAtomStateValueOrPromise:xA}=uA,SA=iA[aA],wA=new WeakMap;function CA(e){const t=$g(()=>[]),n=$g(function(e){const[r,o,i]=e(t);i.has(n)&&(r.forEach(e),++o.n)});return n.effect=e,n.INTERNAL_onInit=e=>{const r=(e=>{const t=SA(e);let n=wA.get(t);return n||(n=Array.isArray(t)?[]:{},lA.forEach(([e,r],o)=>{const i={value:Object.prototype.hasOwnProperty.call(t,r)?t[r]:t[o],enumerable:!0};Object.defineProperty(n,o,i),Object.defineProperty(n,r,i)}),wA.set(t,n)),n})(e),o=r[cA],i=r[dA],a=sA(r[pA]),s=r[fA],l=r[hA],u=r[mA],c=r[gA],d=r[bA],p=r[vA],f=r[yA],h=r[xA],m=new Set;let g,b=0,v=!1,y=!1,x=!1;function S(){if(b)return;m.clear();let t=!0;const w=i=>{if(x)return e.get(i);if(i===n){const t=s(r,e,i);if(!lg(t)){if(!ag(i))throw new Error("no atom init");h(r,e,i,i.init)}return ug(t)}const a=c(r,e,i);try{return ug(a)}finally{C.d.set(i,a.n),o.get(i)?.t.add(n),t?m.add(i):o.has(i)&&(f(r,e,n),u(r,e),l(r,e))}};w.peek=e.get;const E=(o,...c)=>{const m=s(r,e,o);try{if(++b,o===n){if(!ag(o))throw new Error("atom not writable");const t=m.n,n=c[0];return h(r,e,o,n),f(r,e,o),void(t!==m.n&&(i.add(o),a.c?.(o),d(r,e,o)))}return p(r,e,o,c)}finally{t||(u(r,e),l(r,e)),--b}};E.recurse=(t,...o)=>{if(x){if(nA())throw new Error("set.recurse is not allowed in cleanup")}else try{return v=!0,f(r,e,n),E(t,...o)}finally{u(r,e),v=!1,y&&(y=!1,S())}};try{g?.();const e=n.effect(w,E);if("function"!=typeof e)return;g=()=>{if(!b)try{return t=!0,x=!0,e()}finally{t=!1,x=!1,g=void 0}}}finally{t=!1,m.forEach(t=>{C.d.set(t,s(r,e,t).n)}),f(r,e,n),u(r,e)}}const w=function(e,t){let n=EA.get(e);n||(n=new Set,EA.set(e,n),t.f.add(function(){for(const e of n)n.delete(e),e()}));return n}(e,a),C=s(r,e,n);C.v=void 0,Object.assign(e.get(t),[m,C,o]),a.c.add(n,function(){i.delete(n)}),a.m.add(n,function(){w.add(S),g&&w.delete(g)}),a.u.add(n,function(){w.delete(S),g&&w.add(g)}),a.c.add(n,function(){v?y=!0:w.add(S)})},nA()&&(Object.defineProperty(t,"debugLabel",{get:()=>n.debugLabel?`${n.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),n}const EA=new WeakMap;const RA=async(e,t,n)=>{if("dimension"===e.type)if(e.isAlternative)try{await t.moveDimensionFromAlternative(e.id)}catch(t){n.error({msg:`Failed to move dimension ${e.id} from alternative`,payload:t})}else try{await t.moveDimensionToAlternative(e.id)}catch(t){n.error({msg:`Failed to move dimension ${e.id} to alternative`,payload:t})}if("measure"===e.type)if(e.isAlternative)try{await t.moveMeasureFromAlternative(e.id)}catch(t){n.error({msg:`Failed to move measure ${e.id} from alternative`,payload:t})}else try{await t.moveMeasureToAlternative(e.id)}catch(t){n.error({msg:`Failed to move measure ${e.id} to alternative`,payload:t})}},AA=e=>{const{items:t,handler:n,model:r,handlerQueue:o,logToSentry:i}=e;void 0!==n&&void 0!==r&&o&&o.add(async()=>{for(const e of t)await RA(e,n,i)})},IA=$g(),kA=$g(),PA=$g(),MA=$g(e=>e(PA)?.translate??(e=>e)),DA=$g(""),TA=$g(e=>{const t=e(DA).toLowerCase().trim();return({title:e})=>e.toLowerCase().trim().includes(t)});class OA{#e=[];#t=!1;#n=!1;#r;#o;#i;#a;constructor({onQueueCompleted:e}){this.#r=e}#s(){this.#o=void 0,this.#i=void 0,this.#a=void 0}pause(){this.#o&&(clearTimeout(this.#a),this.#i?.(),this.#s());const{promise:e,resolve:t}=Promise.withResolvers();this.#o=e,this.#i=t,this.#a=setTimeout(()=>{this.abort("Aborting queue after being paused for too long")},6e4)}async continue(e=0){const t=this.#i;await(e=>new Promise(t=>{setTimeout(t,e)}))(e),t===this.#i&&(t?.(),clearTimeout(this.#a),this.#s())}abort(e="Queue aborted"){clearTimeout(this.#a),(this.#e.length>0||this.#t)&&console.warn(`[SequentialPromiseQueue] ${e}`),this.#n=!0,this.#e=[],this.#i?.(),this.#s()}add(e){this.#e.push(e),this.#t||this.#l()}async#l(){if(!this.#t){for(this.#t=!0,this.#n=!1;this.#e.length>0;)if(this.#o)await this.#o;else try{const e=this.#e.shift();await(e?.())}catch(e){return console.error("[SequentialPromiseQueue] Error executing action:",e),this.#e=[],void(this.#t=!1)}try{this.#n||await(this.#r?.())}catch(e){console.error("[SequentialPromiseQueue] Error executing onQueueCompleted:",e)}finally{this.#t=!1,this.#e.length>0&&this.#l()}}}}const qA=$g(null),LA=CA((e,t)=>{const n=e(IA),r=e(kA),o=new OA({onQueueCompleted:async()=>{if(!n||!r)return;const e=r.properties.qHyperCubeDef,t=Date.now();e.qDimensions.length&&Object.assign(e.qDimensions[0],{patchTimeStamp:t}),e.qMeasures.length&&Object.assign(e.qMeasures[0],{patchTimeStamp:t}),await n.applyPatches([{qPath:"/qHyperCubeDef",qOp:"replace",qValue:JSON.stringify(r.properties.qHyperCubeDef)}],!0)}});t(qA,o);const i=()=>{o.pause()},a=()=>{o.continue(500)},s=()=>{o.abort()};return n?.Invalidated?.bind(i),n?.Validated?.bind(a),n?.Cancelled?.bind(s),n?.Closing?.bind(s),()=>{o.abort(),n?.Invalidated?.unbind(i),n?.Validated?.unbind(a),n?.Cancelled?.unbind(s),n?.Closing?.unbind(s)}}),NA=e=>7005!==e.qError?.qErrorCode,jA=new WeakMap,_A={qInfo:{qType:"AlternativeLayout"},qHyperCubeDef:{qMode:"S",qDimensions:[],qMeasures:[],qInitialDataFetch:[{qTop:0,qLeft:0,qHeight:0,qWidth:0}],excludedNoOfLeftDims:-1,qCalcCond:{qv:"0"}}},zA=ZR($g(async e=>{const t=e(IA),n=e(bb);if(t){if(jA.has(t))return jA.get(t);try{const e=await t.app.createSessionObject(_A);return jA.set(t,e),e}catch(e){return void n.error({msg:"Error creating alternative layout model",payload:e})}}})),FA=$g(null),$A=$g(),HA=CA((e,t)=>{const n=e(IA),r=e(zA);if(!n||!r)return;const o=async()=>{const e=await n.getLayout();if(e.qSelectionInfo?.qInSelections)return;const o=await n.getEffectiveProperties();await r.applyPatches([{qOp:"replace",qPath:"/qHyperCubeDef/qDimensions",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude?.qHyperCubeDef?.qDimensions??[])},{qOp:"replace",qPath:"/qHyperCubeDef/qMeasures",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude?.qHyperCubeDef?.qMeasures??[])}]);const i=await r.getLayout();t($A,{layout:structuredClone(e),properties:structuredClone(o),altLayout:structuredClone(i)}),t(FA,null)};return o(),n.Invalidated?.bind(o),()=>{n.Invalidated?.unbind(o)}}),BA=$g(e=>e($A)?.layout),VA=$g(e=>e($A)?.altLayout),WA=$g(e=>e($A)?.properties),UA=$g(e=>void 0===e(BA)||void 0===e(WA)),GA=$g(e=>{const t=e($A)?.layout;return t?.qHyperCube.qDimensionInfo.filter(NA)??[]}),KA=$g(e=>{const t=e($A)?.layout;return t?.qHyperCube.qMeasureInfo.filter(NA)??[]}),YA=$g(e=>{const t=[...e(GA),...e(KA)].map(e=>e.cId);return new Set(t)}),XA=$g(new Set),JA=$g(new Set),ZA=$g(e=>{const t=e(XA),n=e(JA);return e(YA).difference(n).union(t)}),QA=CA((e,t)=>{e(YA),t(XA,new Set),t(JA,new Set)}),eI=$g(e=>e(ZA),(e,t,n)=>{if("string"!=typeof n.id)return;const r=e(ZA).has(n.id),o=new Set(e(JA)),i=new Set(e(XA));r?(o.add(n.id),i.delete(n.id)):(i.add(n.id),o.delete(n.id)),t(JA,o),t(XA,i),AA({items:[n],handler:e(kA),model:e(IA),handlerQueue:e(qA),logToSentry:e(bb)})}),tI=({props:e,children:t})=>(eA([[IA,e.args.model],[PA,e.args.apis],[kA,e.args.handler]]),Qg(HA),Qg(LA),Qg(QA),t);function nI(e,t){const n=new Set(e),r=new Set(t);return e===t||n.size===r.size&&Array.from(n).every(r.has.bind(r))}function rI(e){return"write"in e}const oI="INTERNAL_getBuildingBlocksRev";var iI;const aI=Number(null==(iI=Object.keys(_g).find(e=>e.startsWith(oI)))?void 0:iI.slice(29));if(Number.isNaN(aI))throw new Error("jotai-compat: unsupported jotai internals revision");const sI=_g,lI=`INTERNAL_getBuildingBlocksRev${aI}`,uI=sI[`INTERNAL_buildStoreRev${aI}`];const cI=[["atomStateMap","a"],["mountedMap","m"],["invalidatedAtoms","i"],["changedAtoms","c"],["mountCallbacks","q"],["unmountCallbacks","Q"],["storeHooks","h"],["atomRead","R"],["atomWrite","W"],["atomOnInit","I"],["atomOnMount","M"],["ensureAtomState","e"],["flushCallbacks","f"],["recomputeInvalidatedAtoms","C"],["readAtomState","r"],["invalidateDependents","d"],["writeAtomState","w"],["mountDependencies","D"],["mountAtom","t"],["unmountAtom","T"],["setAtomStateValueOrPromise","v"],["storeGet","g"],["storeSet","s"],["storeSub","b"],["enhanceBuildingBlocks","B"],["abortHandlersMap","p"],["registerAbortHandler","H"],["abortPromise","A"],["storeEpochHolder","E"]];if(aI>=4)for(const[e,t]of cI)if(sI[`INTERNAL_KEY_${e}`]!==t)throw new Error(`jotai-compat: KEY drift for ${e}`);const dI={};cI.forEach(([e,t],n)=>{dI[e]=aI>=4?t:n});const{atomStateMap:pI,mountedMap:fI,invalidatedAtoms:hI,changedAtoms:mI,mountCallbacks:gI,unmountCallbacks:bI,storeHooks:vI,atomRead:yI,atomWrite:xI,atomOnInit:SI,atomOnMount:wI,ensureAtomState:CI,flushCallbacks:EI,recomputeInvalidatedAtoms:RI,readAtomState:AI,invalidateDependents:II,writeAtomState:kI,mountDependencies:PI,mountAtom:MI,unmountAtom:DI,setAtomStateValueOrPromise:TI,storeGet:OI,storeSet:qI,storeSub:LI,enhanceBuildingBlocks:NI,abortHandlersMap:jI,registerAbortHandler:_I,abortPromise:zI,storeEpochHolder:FI}=dI,$I=sI[lI],HI=new WeakMap,BI=new WeakMap,VI={},{read:WI,write:UI}=$g(null);function GI(e,t,n){const[r,o,i,,a]=e,s=r.get(t);if(s)return s;if(n===e){let r=o.get(t);return r||(r=[JI(e,t,n),n],o.set(t,r)),r}const l=n??VI;let u=i.get(l);u||(u=new WeakMap,i.set(l,u));let c=u.get(t);if(!c){const[r,o]=a?GI(a,t,n):[t];c=[t.read===WI?r:JI(e,t,o),o],u.set(t,c)}return c}function KI(e){for(const t of e[5])t()}function YI(e,t,n,r,o){if(n.read===WI&&rI(n)&&rI(t)&&n.write!==UI&&e!==r){const{write:i}=n;return t.write=XI(e,n.write.bind(n),r,o),()=>{t.write=i}}}function XI(e,t,n,r=n){return function(o,i,...a){return t(function(t){const[r]=GI(e,t,n);return o(r)},function(t,...o){const[a]=GI(e,t,n),s=YI(e,a,t,n,r);try{return i(a,...o)}finally{null==s||s()}},...a)}}function JI(e,t,n){const r=Object.getOwnPropertyDescriptors(t);Object.keys(r).filter(e=>["read","write","debugLabel"].includes(e)).forEach(e=>r[e].configurable=!0);const o=Object.getPrototypeOf(t),i=Object.create(o,r);return i.read!==WI&&(i.read=function(e,t,n){return function(r,o){return t(function(t){const[o]=GI(e,t,n);return r(o)},o)}}(e,t.read.bind(t),n)),rI(i)&&rI(t)&&i.write!==UI&&(i.write=XI(e,t.write.bind(t),n)),i}function ZI({atoms:e=[],atomFamilies:t=[],parentStore:n,name:r}){const o=new WeakSet(e),i=BI.get(n),a=(null==i?void 0:i[3])??n,s=[new WeakMap,new WeakMap,new WeakMap,a,i,new Set,void 0],l=s[0],u=s[5],c=function(e){const t=e[3],n=QI((e=>{const t=$I(e);let n=HI.get(t);return n||(n=Array.isArray(t)?[]:{},cI.forEach(([e,r],o)=>{const i={value:Object.prototype.hasOwnProperty.call(t,r)?t[r]:t[o],enumerable:!0};Object.defineProperty(n,o,i),Object.defineProperty(n,r,i)}),HI.set(t,n)),n})(t)),r=n,o=r[dI.storeGet],i=r[dI.storeSet],a=r[dI.storeSub],s={};let l,u;return r[dI.storeGet]=m(o),r[dI.storeSet]=f,r[dI.storeSub]=m(a),n[dI.enhanceBuildingBlocks]=function(e){return l??(l=g(e[dI.atomStateMap],c)),u??(u=Object.assign(QI(e),{...e,[dI.atomStateMap]:l,[dI.mountedMap]:g(e[dI.mountedMap],d),[dI.invalidatedAtoms]:g(e[dI.invalidatedAtoms]),[dI.changedAtoms]:b(e[dI.changedAtoms]),[dI.mountCallbacks]:e[dI.mountCallbacks],[dI.unmountCallbacks]:e[dI.unmountCallbacks],[dI.storeHooks]:y(e[dI.storeHooks]),[dI.atomRead]:m(e[dI.atomRead]),[dI.atomWrite]:m(e[dI.atomWrite]),[dI.atomOnInit]:m(e[dI.atomOnInit]),[dI.atomOnMount]:m(e[dI.atomOnMount]),[dI.ensureAtomState]:p(l,e[dI.ensureAtomState]),[dI.flushCallbacks]:(t,...r)=>e[dI.flushCallbacks](n,...r),[dI.recomputeInvalidatedAtoms]:(t,...r)=>e[dI.recomputeInvalidatedAtoms](n,...r),[dI.readAtomState]:m(e[dI.readAtomState]),[dI.invalidateDependents]:m(e[dI.invalidateDependents]),[dI.writeAtomState]:m(e[dI.writeAtomState]),[dI.mountDependencies]:m(e[dI.mountDependencies]),[dI.mountAtom]:m(e[dI.mountAtom]),[dI.unmountAtom]:m(e[dI.unmountAtom]),[TI]:m(e[TI]),[dI.storeGet]:m(e[dI.storeGet]),[dI.storeSet]:m(e[dI.storeSet]),[dI.storeSub]:m(e[dI.storeSub]),[dI.enhanceBuildingBlocks]:()=>e})),u},function(e){if(aI<4){const t=e?Object.values(e):[];return uI(...t)}const t=Array.isArray(e)?Object.fromEntries(cI.map(([t,n],r)=>[n,e[r]])):e;return uI(t)}(n);function c(t){const n=new WeakMap;return function(r){let o=n.get(r);if(o)return o;const i=t(r);if(!i)return;let a,s;return o=new Proxy(i,{get:(t,n)=>"d"===n?a??(a=g(i.d,function(t){return n=>t(GI(e,n)[0])})):"p"===n?s??(s=b(i.p)):Reflect.get(i,n)}),n.set(r,o),o}}function d(e){const t=new WeakMap;return function(n){let r=t.get(n);if(r)return r;const o=e(n);return o?(r={...o,d:b(o.d),t:b(o.t),get u(){return o.u},set u(e){o.u=e}},t.set(n,r),r):void 0}}function p(e,t){const n=m(t);return function(t,r,o){const i=e.get(o);if(i)return i;const a=n(t,r,o);return e.set(o,a),e.get(o)}}function f(t,n,r,...o){const[a,s]=GI(e,r),l=YI(e,a,r,s,e);try{return i(t,n,a,...o)}finally{null==l||l()}}function h(t,n){return function(r,...o){const[i]=GI(e,r);return(n?n(t):t)(i,...o)}}function m(t){return function(r,o,i,...a){const[s]=GI(e,i);return t(n,o,s,...a)}}function g(e,t){const n={get:h(e.get.bind(e),t),set:h(e.set.bind(e)),has:h(e.has.bind(e)),delete:h(e.delete.bind(e))};if("function"==typeof e.keys){const t=e,r=n;r.keys=t.keys.bind(t),r[Symbol.iterator]=t[Symbol.iterator].bind(t),Object.defineProperty(n,"size",{enumerable:!1,configurable:!0,get:()=>t.size})}return n}function b(t){return{get size(){return t.size},add:h(t.add.bind(t)),has:h(t.has.bind(t)),delete:h(t.delete.bind(t)),clear:t.clear.bind(t),forEach:e=>t.forEach(h(e)),*[Symbol.iterator](){for(const n of t)yield GI(e,n)[0]}}}function v(t){if(!t)return;const n=h(t);return n.add=function(n,r){if(void 0===n)return t.add(void 0,r);const[o]=GI(e,n);return t.add(o,r)},n}function y(e){const t={get f(){return e.f},set f(t){e.f=t}};return Object.defineProperties(t,Object.fromEntries(["r","c","m","u"].map(t=>[t,{get:()=>s[t]??(s[t]=v(e[t])),set(n){delete s[t],e[t]=n},configurable:!0,enumerable:!0}]))),Object.assign(t,e)}}(s);s[6]=c,Object.assign(c,{name:r}),BI.set(c,s);for(const t of new Set(e))l.set(t,[JI(s,t,s),s]);for(const e of new Set(t)){for(const t of e.getParams()){const n=e(t);l.has(n)||l.set(n,[JI(s,n,s),s])}const t=e.unstable_listen(({type:e,atom:t})=>{"CREATE"!==e||l.has(t)?"REMOVE"===e&&!o.has(t)&&l.delete(t):l.set(t,[JI(s,t,s),s])});u.add(t)}return c}function QI(e){return Array.isArray(e)?[...e]:{...e}}const ek=function(e,t){return function(n){const{atoms:r=[],atomFamilies:o=[],children:i,scope:a,name:s}=n,l=t(),u=Array.from(r,e=>Array.isArray(e)?e[0]:e);function c(){return[a??ZI({atoms:u,atomFamilies:o,parentStore:l,name:s}),function(e){return l!==e.parentStore||!nI(u,e.atoms)||!nI(o,e.atomFamilies)||a!==e.providedScope}]}const[[d,p],f]=P(c);if(p({atoms:u,atomFamilies:o,parentStore:l,providedScope:a})){const e=BI.get(d);e&&KI(e),f(c)}return eA(Array.from(r).filter(Array.isArray),{store:d}),O(()=>{const e=BI.get(d);return()=>{e&&KI(e)}},[d]),C(e,{store:d,children:i})}}(Gg,Ug);var tk=Object.defineProperty,nk=Object.defineProperties,rk=Object.getOwnPropertyDescriptors,ok=Object.getOwnPropertySymbols,ik=Object.prototype.hasOwnProperty,ak=Object.prototype.propertyIsEnumerable,sk=(e,t,n)=>t in e?tk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lk=(e,t)=>{for(var n in t||(t={}))ik.call(t,n)&&sk(e,n,t[n]);if(ok)for(var n of ok(t))ak.call(t,n)&&sk(e,n,t[n]);return e},uk=(e,t)=>nk(e,rk(t));function ck(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function dk(e,t){const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?n:void 0}function pk(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function fk(e,t){return function(e,t,n){var r,o;const{source:i,target:a,canceled:s}=t.operation;if(!i||!a||s)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||null!==e&&"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>l(e,i.id)),o=e.findIndex(e=>l(e,a.id));if(-1===r||-1===o){if(pk(i)){const r=i.initialIndex,o=i.index;return r===o||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,o)}return e}if(!s&&"index"in i&&"number"==typeof i.index){const t=i.index;if(t!==r)return n(e,r,t)}return n(e,r,o)}const u=Object.entries(e);let c,d,p=-1,f=-1;for(const[e,t]of u)if(-1===p&&(p=t.findIndex(e=>l(e,i.id)),-1!==p&&(c=e)),-1===f&&(f=t.findIndex(e=>l(e,a.id)),-1!==f&&(d=e)),-1!==p&&-1!==f)break;if(-1===p&&pk(i)){const r=null==i.initialGroup?void 0:dk(e,i.initialGroup),o=i.initialIndex,a=null==i.group?void 0:dk(e,i.group),s=i.index;if(null==r||null==a)return"preventDefault"in t&&t.preventDefault(),e;if(r===a&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===a)return uk(lk({},e),{[r]:n(e[r],o,s)});const l=e[r][o];return uk(lk({},e),{[r]:[...e[r].slice(0,o),...e[r].slice(o+1)],[a]:[...e[a].slice(0,s),l,...e[a].slice(s)]})}if(!i.manager)return e;const{dragOperation:h}=i.manager,m=null!=(o=null==(r=h.shape)?void 0:r.current.center)?o:h.position.current;if(null==d){const t=dk(e,a.id);null!=t&&(d=t,f=a.shape&&m.y>a.shape.center.y?e[t].length:0)}if(null==c||null==d||c===d&&p===f){if(null!=c&&c===d&&p===f&&pk(i)){const t=null==i.group?void 0:dk(e,i.group),r=null!=i.group&&t!==c,o=i.index!==p;if(r||o){const r=null==i.group?c:t;if(null!=r){if(c===r)return uk(lk({},e),{[c]:n(e[c],p,i.index)});const t=e[c][p];return uk(lk({},e),{[c]:[...e[c].slice(0,p),...e[c].slice(p+1)],[r]:[...e[r].slice(0,i.index),t,...e[r].slice(i.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(c===d)return uk(lk({},e),{[c]:n(e[c],p,f)});const g=a.shape&&Math.round(m.y)>Math.round(a.shape.center.y)?1:0,b=e[c][p];return uk(lk({},e),{[c]:[...e[c].slice(0,p),...e[c].slice(p+1)],[d]:[...e[d].slice(0,f+g),b,...e[d].slice(f+g)]})}(e,t,ck)}function hk(e,t){let n=null;const r=new Map,o=new Set;function i(o){let s;if(void 0===t)s=r.get(o);else for(const[e,n]of r)if(t(e,o)){s=n;break}if(void 0!==s){if(!n?.(s[1],o))return s[0];i.remove(o)}const l=e(o);return r.set(o,[l,Date.now()]),a("CREATE",o,l),l}function a(e,t,n){for(const r of o)r({type:e,param:t,atom:n})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>r.keys(),i.remove=e=>{if(void 0===t){if(!r.has(e))return;const[t]=r.get(e);r.delete(e),a("REMOVE",e,t)}else for(const[n,[o]]of r)if(t(n,e)){r.delete(n),a("REMOVE",n,o);break}},i.setShouldRemove=e=>{if(n=e,n)for(const[e,[t,o]]of r)n(o,e)&&(r.delete(e),a("REMOVE",e,t))},i}const mk=({itemIndex:e,sectionIndex:t})=>void 0!==e?`${t}-${e}`:`${t}`,gk=$g(),bk=$g(e=>e(gk)?.numberOfSections??0),vk=$g(e=>e(gk)?.numberOfItemsInSection??[]),yk=$g(e=>e(gk)?.keyExtractor??mk),xk=$g(e=>e(gk)?.emptyTexts??(()=>({title:"No items",message:"There are no items to display."}))),Sk=$g(e=>e(gk)?.onDragEnd),wk=$g(e=>e(gk)?.onDragOver),Ck=$g(e=>e(gk)?.itemRenderer),Ek=$g(e=>e(gk)?.headerRenderer),Rk=$g(e=>e(gk)?.dragOverlayRenderer),Ak=$g(e=>e(gk)?.onClick),Ik=$g(e=>{const t=e(bk),n=e(vk),r=e(yk),o={};for(let e=0;e<t;e++)o[e]=Array.from({length:n[e]},(t,n)=>r({sectionIndex:e,itemIndex:n}));return o}),kk=$g(null),Pk=$g(e=>e(kk),(e,t,n)=>{if(null===n)return void t(kk,null);const r=e(kk);t(kk,{...r,...n})}),Mk=hk(e=>$g(null,(t,n,r)=>{let o;"over"===e?o=t(wk):"end"===e&&(o=t(Sk),n(Pk,null));const{source:i,target:a}=r.operation;if("start"===e)return void n(Pk,{id:i.id,startSection:i.data.sectionKey,startIndex:i.data.itemIndex,startSectionIndex:i.data.sectionIndex});if(null===a)return void n(Pk,{toIndex:void 0,toSectionIndex:void 0});const s=i.data.sectionIndex!==a.data.sectionIndex;let l;if(s){const e=fk(t(Ik),r)[a.data.sectionIndex].indexOf(i.id);l=-1!==e?e:a.sortable?.index??0}else l=a.sortable?.index??0;if("over"===e){const e=t(Pk)?.startIndex;n(Pk,{toIndex:!s&&void 0!==e&&l>e?l+1:l,toSectionIndex:a.data.sectionIndex})}o?.({id:i.id,toIndex:l,toSection:a.data.sectionKey,fromSection:i.data.sectionKey,startSection:t(Pk)?.startSection??i.data.sectionKey,event:r})})),Dk=[gk,bk,vk,yk,xk,Sk,Ck,Ek,Ak,Pk],Tk=[Mk],Ok=({props:e,children:t})=>{const n=eb(gk);return j(()=>{n(e)},[e,n]),t};var qk=Symbol.for("preact-signals");function Lk(){if($k>1)$k--;else{var e,t=!1;for(!function(){var e=Wk;for(Wk=void 0;void 0!==e;){var t=e.S;if(t.v===e.v)for(var n=t.t;void 0!==n;n=n.x)n.i===e.i&&(n.i=t.i);e=e.o}}();void 0!==Fk;){var n=Fk;for(Fk=void 0,Hk++;void 0!==n;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&Xk(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(Hk=0,$k--,t)throw e}}function Nk(e){if($k>0)return e();Vk=++Bk,$k++;try{return e()}finally{Lk()}}var jk,_k=void 0;function zk(e){var t=_k,n=jk;_k=void 0,jk=void 0;try{return e()}finally{_k=t,jk=n}}var Fk=void 0,$k=0,Hk=0,Bk=0,Vk=0,Wk=void 0,Uk=0;function Gk(e){if(void 0!==_k){var t=e.n;if(void 0===t||t.t!==_k)return t={i:0,S:e,p:_k.s,n:void 0,t:_k,e:void 0,x:void 0,r:t},void 0!==_k.s&&(_k.s.n=t),_k.s=t,e.n=t,32&_k.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=_k.s,t.n=void 0,_k.s.n=t,_k.s=t),t}}function Kk(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function Yk(e,t){return new Kk(e,t)}function Xk(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Jk(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function Zk(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function Qk(e,t){Kk.call(this,void 0,t),this.x=e,this.s=void 0,this.g=Uk-1,this.f=4}function eP(e,t){return new Qk(e,t)}function tP(e){var t=e.m;if(e.m=void 0,"function"==typeof t){$k++;var n=_k;_k=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,nP(e),t}finally{_k=n,Lk()}}}function nP(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,tP(e)}function rP(e){if(_k!==this)throw new Error("Out-of-order effect");Zk(this),_k=e,this.f&=-2,8&this.f&&nP(this),Lk()}function oP(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name,jk&&jk.push(this)}function iP(e,t){var n=new oP(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}Kk.prototype.brand=qk,Kk.prototype.h=function(){return!0},Kk.prototype.S=function(e){var t=this,n=this.t;n!==e&&void 0===e.e&&(e.x=n,this.t=e,void 0!==n?n.e=e:zk(function(){var e;null==(e=t.W)||e.call(t)}))},Kk.prototype.U=function(e){var t=this;if(void 0!==this.t){var n=e.e,r=e.x;void 0!==n&&(n.x=r,e.e=void 0),void 0!==r&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&zk(function(){var e;null==(e=t.Z)||e.call(t)}))}},Kk.prototype.subscribe=function(e){var t=this;return iP(function(){var n=t.value;zk(function(){return e(n)})},{name:"sub"})},Kk.prototype.valueOf=function(){return this.value},Kk.prototype.toString=function(){return this.value+""},Kk.prototype.toJSON=function(){return this.value},Kk.prototype.peek=function(){var e=this;return zk(function(){return e.value})},Object.defineProperty(Kk.prototype,"value",{get:function(){var e=Gk(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Hk>100)throw new Error("Cycle detected");!function(e){0!==$k&&0===Hk&&e.l!==Vk&&(e.l=Vk,Wk={S:e,v:e.v,i:e.i,o:Wk})}(this),this.v=e,this.i++,Uk++,$k++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{Lk()}}}}),Qk.prototype=new Kk,Qk.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Uk)return!0;if(this.g=Uk,this.f|=1,this.i>0&&!Xk(this))return this.f&=-2,!0;var e=_k;try{Jk(this),_k=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return _k=e,Zk(this),this.f&=-2,!0},Qk.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Kk.prototype.S.call(this,e)},Qk.prototype.U=function(e){if(void 0!==this.t&&(Kk.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},Qk.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(Qk.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Gk(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),oP.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},oP.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,tP(this),Jk(this),$k++;var e=_k;return _k=this,rP.bind(this,e)},oP.prototype.N=function(){2&this.f||(this.f|=2,this.u=Fk,Fk=this)},oP.prototype.d=function(){this.f|=8,1&this.f||nP(this)},oP.prototype.dispose=function(){this.d()};var aP,sP,lP,uP,cP,dP,pP,fP,hP,mP,gP,bP,vP,yP,xP,SP,wP,CP,EP,RP,AP=Object.create,IP=Object.defineProperty,kP=Object.defineProperties,PP=Object.getOwnPropertyDescriptor,MP=Object.getOwnPropertyDescriptors,DP=Object.getOwnPropertySymbols,TP=Object.prototype.hasOwnProperty,OP=Object.prototype.propertyIsEnumerable,qP=e=>{throw TypeError(e)},LP=(e,t,n)=>t in e?IP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,NP=(e,t)=>IP(e,"name",{value:t,configurable:!0}),jP=["class","method","getter","setter","accessor","field","value","get","set"],_P=e=>void 0!==e&&"function"!=typeof e?qP("Function expected"):e,zP=(e,t,n,r,o)=>({kind:jP[e],name:t,metadata:r,addInitializer:e=>n._?qP("Already initialized"):o.push(_P(e||null))}),FP=(e,t)=>{return LP(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r},$P=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},HP=(e,t,n,r,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=jP[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&PP(d<4?o:{get[n](){return WP(this,i)},set[n](e){return GP(this,i,e)}},n));d?f&&d<4&&NP(i,(d>2?"set ":d>1?"get ":"")+n):NP(o,n);for(var y=r.length-1;y>=0;y--)u=zP(d,n,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>VP(o,e):e=>n in e},3^d&&(c.get=f?e=>(1^d?WP:KP)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(c.set=f?(e,t)=>GP(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?_P(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?qP("Object expected"):(_P(a=s.get)&&(v.get=a),_P(a=s.set)&&(v.set=a),_P(a=s.init)&&g.unshift(a));return d||FP(e,o),v&&IP(o,n,v),f?4^d?i:v:o},BP=(e,t,n)=>t.has(e)||qP("Cannot "+n),VP=(e,t)=>Object(t)!==t?qP('Cannot use the "in" operator on this value'):e.has(t),WP=(e,t,n)=>(BP(e,t,"read from private field"),n?n.call(e):t.get(e)),UP=(e,t,n)=>t.has(e)?qP("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),GP=(e,t,n,r)=>(BP(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),KP=(e,t,n)=>(BP(e,t,"access private method"),n);function YP(e,t){if(t){let n;return eP(()=>{const r=e();return r&&n&&t(n,r)?n:(n=r,r)})}return eP(e)}function XP(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some((e,n)=>!XP(e,t[n]))}if("object"==typeof e&&"object"==typeof t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=n.some(n=>!XP(e[n],t[n]));return!o}return!1}function JP({get:e},t){return{init:e=>Yk(e),get(){return e.call(this).value},set(t){const n=e.call(this);n.peek()!==t&&(n.value=t)}}}function ZP(e,t){const n=new WeakMap;return function(){let t=n.get(this);return t||(t=YP(e.bind(this)),n.set(this,t)),t.value}}function QP(e=!0){return function(t,n){n.addInitializer(function(){const t="field"===n.kind||n.static?this:Object.getPrototypeOf(this),r=Object.getOwnPropertyDescriptor(t,n.name);r&&Object.defineProperty(t,n.name,((e,t)=>kP(e,MP(t)))(((e,t)=>{for(var n in t||(t={}))TP.call(t,n)&&LP(e,n,t[n]);if(DP)for(var n of DP(t))OP.call(t,n)&&LP(e,n,t[n]);return e})({},r),{enumerable:e}))})}}function eM(...e){const t=e.map(e=>iP(e));return()=>t.forEach(e=>e())}dP=[JP],cP=[JP],uP=[JP],lP=[QP()],sP=[QP()],aP=[QP()];var tM,nM=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,$P(pP,5,this),UP(this,bP),UP(this,fP,$P(pP,8,this)),$P(pP,11,this),UP(this,vP,$P(pP,12,this)),$P(pP,15,this),UP(this,wP,$P(pP,16,this)),$P(pP,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return WP(this,bP,EP)}get initial(){return WP(this,bP,mP)}get previous(){return WP(this,bP,xP)}set current(e){const t=zk(()=>WP(this,bP,EP));e&&t&&this.equals(t,e)||Nk(()=>{WP(this,bP,mP)||GP(this,bP,e,gP),GP(this,bP,t,SP),GP(this,bP,e,RP)})}reset(e=this.defaultValue){Nk(()=>{GP(this,bP,void 0,SP),GP(this,bP,e,gP),GP(this,bP,e,RP)})}};function rM(e){return zk(()=>{const t={};for(const n in e)t[n]=e[n];return t})}pP=[,,,AP(null)],fP=new WeakMap,bP=new WeakSet,vP=new WeakMap,wP=new WeakMap,hP=HP(pP,20,"#initial",dP,bP,fP),mP=hP.get,gP=hP.set,yP=HP(pP,20,"#previous",cP,bP,vP),xP=yP.get,SP=yP.set,CP=HP(pP,20,"#current",uP,bP,wP),EP=CP.get,RP=CP.set,HP(pP,2,"current",lP,nM),HP(pP,2,"initial",sP,nM),HP(pP,2,"previous",aP,nM),FP(pP,nM);tM=new WeakMap;var oM,iM,aM,sM,lM,uM=Object.create,cM=Object.defineProperty,dM=Object.getOwnPropertyDescriptor,pM=Object.getOwnPropertySymbols,fM=Object.prototype.hasOwnProperty,hM=Object.prototype.propertyIsEnumerable,mM=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),gM=e=>{throw TypeError(e)},bM=Math.pow,vM=(e,t,n)=>t in e?cM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yM=["class","method","getter","setter","accessor","field","value","get","set"],xM=e=>void 0!==e&&"function"!=typeof e?gM("Function expected"):e,SM=(e,t,n,r,o)=>({kind:yM[e],name:t,metadata:r,addInitializer:e=>n._?gM("Already initialized"):o.push(xM(e||null))}),wM=(e,t,n,r,o,i)=>{for(var a,s,l,u,c=7&t,d=yM[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,dM(o,n)),h=r.length-1;h>=0;h--)(l=SM(c,n,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>n in e},u.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,xM(a)&&(f[d]=a);return f&&cM(o,n,f),o},CM=(e,t,n)=>t.has(e)||gM("Cannot "+n),EM=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},RM=class e{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,n){const{top:r,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,r+n,i,a);return l.scale=((e,t)=>{for(var n in t||(t={}))fM.call(t,n)&&vM(e,n,t[n]);if(pM)for(var n of pM(t))hM.call(t,n)&&vM(e,n,t[n]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:n,top:r,right:o,bottom:i}=this;return{width:e,height:t,left:n,top:r,right:o,bottom:i}}get center(){const{left:e,top:t,right:n,bottom:r}=this;return new EM((e+n)/2,(t+r)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:n,top:r,width:o,height:i}=this;return n===t.left&&r===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:n,bottom:r,right:o}=this;return t<=e.y&&e.y<=r&&n<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r<o&&n<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,n=this.intersectionArea(e);return n/(e.area+t-n)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:n,width:r,height:o}){return new e(n,t,r,o)}static delta(e,t,n={x:"center",y:"center"}){const r=(e,t)=>{const r=n[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==r?o:"end"==r?o+i:o+i/2};return EM.delta({x:r(e,"x"),y:r(e,"y")},{x:r(t,"x"),y:r(t,"y")})}static intersectionRatio(t,n){return e.from(t).intersectionRatio(e.from(n))}};var AM,IM=class extends(aM=nM,iM=[ZP],oM=[ZP],aM){constructor(e){var t,n,r;super(EM.from(e),(e,t)=>EM.equals(e,t)),((e,t,n)=>{for(var r=0,o=e[t>>1],i=o&&o.length;r<i;r++)o[r].call(n)})(lM,5,this),t=this,r=0,(n=sM).has(t)?gM("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return EM.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=EM.from(e),r={x:n.x-t.x,y:n.y-t.y},o=Date.now(),i=o-(CM(a=this,s=sM,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);Nk(()=>{((e,t,n)=>{CM(e,t,"write to private field"),t.set(e,n)})(this,sM,o),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(EM.from(e)),this.velocity={x:0,y:0}}};function kM({x:e,y:t},n){const r=Math.abs(e),o=Math.abs(t);return"number"==typeof n?Math.sqrt(bM(r,2)+bM(o,2))>n:"x"in n&&"y"in n?r>n.x&&o>n.y:"x"in n?r>n.x:"y"in n&&o>n.y}lM=(e=>{var t;return[,,,uM(null!=(t=null==e?void 0:e[mM("metadata")])?t:null)]})(aM),sM=new WeakMap,wM(lM,2,"delta",iM,IM),wM(lM,2,"direction",oM,IM),AM=lM,vM(IM,mM("metadata"),AM[3]);var PM,MM,DM,TM,OM=(e=>(e.Horizontal="x",e.Vertical="y",e))(OM||{}),qM=Object.values(OM),LM=Object.create,NM=Object.defineProperty,jM=Object.defineProperties,_M=Object.getOwnPropertyDescriptor,zM=Object.getOwnPropertyDescriptors,FM=Object.getOwnPropertySymbols,$M=Object.prototype.hasOwnProperty,HM=Object.prototype.propertyIsEnumerable,BM=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),VM=e=>{throw TypeError(e)},WM=(e,t,n)=>t in e?NM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,UM=(e,t)=>{for(var n in t||(t={}))$M.call(t,n)&&WM(e,n,t[n]);if(FM)for(var n of FM(t))HM.call(t,n)&&WM(e,n,t[n]);return e},GM=(e,t)=>jM(e,zM(t)),KM=(e,t)=>NM(e,"name",{value:t,configurable:!0}),YM=(e,t)=>{var n={};for(var r in e)$M.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&FM)for(var r of FM(e))t.indexOf(r)<0&&HM.call(e,r)&&(n[r]=e[r]);return n},XM=e=>{var t;return[,,,LM(null!=(t=null==e?void 0:e[BM("metadata")])?t:null)]},JM=["class","method","getter","setter","accessor","field","value","get","set"],ZM=e=>void 0!==e&&"function"!=typeof e?VM("Function expected"):e,QM=(e,t,n,r,o)=>({kind:JM[e],name:t,metadata:r,addInitializer:e=>n._?VM("Already initialized"):o.push(ZM(e||null))}),eD=(e,t)=>WM(t,BM("metadata"),e[3]),tD=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},nD=(e,t,n,r,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=JM[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&_M(d<4?o:{get[n](){return iD(this,i)},set[n](e){return sD(this,i,e)}},n));d?f&&d<4&&KM(i,(d>2?"set ":d>1?"get ":"")+n):KM(o,n);for(var y=r.length-1;y>=0;y--)u=QM(d,n,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>oD(o,e):e=>n in e},3^d&&(c.get=f?e=>(1^d?iD:lD)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(c.set=f?(e,t)=>sD(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?ZM(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?VM("Object expected"):(ZM(a=s.get)&&(v.get=a),ZM(a=s.set)&&(v.set=a),ZM(a=s.init)&&g.unshift(a));return d||eD(e,o),v&&NM(o,n,v),f?4^d?i:v:o},rD=(e,t,n)=>t.has(e)||VM("Cannot "+n),oD=(e,t)=>Object(t)!==t?VM('Cannot use the "in" operator on this value'):e.has(t),iD=(e,t,n)=>(rD(e,t,"read from private field"),n?n.call(e):t.get(e)),aD=(e,t,n)=>t.has(e)?VM("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),sD=(e,t,n,r)=>(rD(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),lD=(e,t,n)=>(rD(e,t,"access private method"),n);function uD(e,t){return{plugin:e,options:t}}function cD(e){return t=>uD(e,t)}function dD(e){return"function"==typeof e?{plugin:e,options:void 0}:e}PM=[JP];var pD=class{constructor(e,t){this.manager=e,this.options=t,aD(this,DM,tD(MM,8,this,!1)),tD(MM,11,this),aD(this,TM,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return zk(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=iP(e.bind(this));return iD(this,TM).add(t),t}destroy(){iD(this,TM).forEach(e=>e())}static configure(e){return uD(this,e)}};MM=XM(null),DM=new WeakMap,TM=new WeakMap,nD(MM,4,"disabled",PM,pD,DM),eD(MM,pD);var fD,hD=class extends pD{},mD=class{constructor(e){this.manager=e,this.instances=new Map,aD(this,fD,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(dD).reduce((e,t)=>{const n=e.find(({plugin:e})=>e===t.plugin);return n?(n.options=t.options,e):[...e,t]},[]),n=t.map(({plugin:e})=>e);for(const e of iD(this,fD))if(!n.includes(e)){if(e.prototype instanceof hD)continue;this.unregister(e)}for(const{plugin:e,options:n}of t)this.register(e,n);sD(this,fD,n)}get(e){return this.instances.get(e)}register(e,t){const n=this.instances.get(e);if(n)return n.options!==t&&(n.options=t),n;const r=new e(this.manager,t);return this.instances.set(e,r),r}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function gD(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}fD=new WeakMap;var bD,vD,yD,xD,SD,wD,CD,ED,RD,AD,ID,kD,PD=[],MD=class extends pD{constructor(e){super(e),aD(this,bD),aD(this,vD),this.computeCollisions=this.computeCollisions.bind(this),sD(this,vD,Yk(PD)),this.destroy=eM(()=>{const e=this.computeCollisions(),t=zk(()=>this.manager.dragOperation.position.current);if(e!==PD){const e=iD(this,bD);if(sD(this,bD,t),e&&t.x==e.x&&t.y==e.y)return}else sD(this,bD,void 0);iD(this,vD).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){zk(()=>{e?iD(this,vD).value=this.computeCollisions():sD(this,bD,void 0)})}computeCollisions(e,t){const{registry:n,dragOperation:r}=this.manager,{source:o,shape:i,status:a}=r;if(!a.initialized||!i)return PD;const s=[],l=[];for(const i of null!=e?e:n.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const n=zk(()=>e({droppable:i,dragOperation:r}));n&&(null!=i.collisionPriority&&(n.priority=i.collisionPriority),s.push(n))}return 0===l.length?PD:(s.sort(gD),s)}get collisions(){return iD(this,vD).value}};bD=new WeakMap,vD=new WeakMap,SD=[JP],xD=[JP],yD=[JP];var DD=class e{constructor(e,t){aD(this,RD,tD(ED,8,this)),tD(ED,11,this),aD(this,AD),aD(this,ID,tD(ED,12,this)),tD(ED,15,this),aD(this,kD,tD(ED,16,this)),tD(ED,19,this);const{effects:n,id:r,data:o={},disabled:i=!1,register:a=!0}=e;let s=r;sD(this,AD,Yk(r)),this.manager=t,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return s=e,null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==n?void 0:n())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}get id(){var t,n;const r=iD(this,AD).value;return null!=(n=null==(t=e.pendingIdChanges)?void 0:t.get(this))?n:r}set id(t){var n,r;t!==(null!=(r=null==(n=e.pendingIdChanges)?void 0:n.get(this))?r:iD(this,AD).peek())&&(e.pendingIdChanges||(e.pendingIdChanges=new Map,queueMicrotask(()=>{var t;return lD(t=e,wD,CD).call(t)})),e.pendingIdChanges.set(this,t))}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};ED=XM(null),wD=new WeakSet,CD=function(){const e=DD.pendingIdChanges;DD.pendingIdChanges=null,e&&Nk(()=>{for(const[t,n]of e)iD(t,AD).value=n})},RD=new WeakMap,AD=new WeakMap,ID=new WeakMap,kD=new WeakMap,nD(ED,4,"manager",SD,DD,RD),nD(ED,4,"data",xD,DD,ID),nD(ED,4,"disabled",yD,DD,kD),aD(DD,wD),eD(ED,DD),DD.pendingIdChanges=null;var TD,OD,qD,LD,ND,jD,_D,zD,FD,$D,HD,BD,VD,WD,UD,GD,KD,YD,XD,JD,ZD,QD,eT,tT,nT=DD,rT=class{constructor(){this.map=Yk(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const n=this.map.peek(),r=n.get(e),o=()=>this.unregister(e,t);if(r===t)return o;if(r&&r.id===e){const e=this.cleanupFunctions.get(r);null==e||e(),this.cleanupFunctions.delete(r)}const i=new Map(n);for(const[r,o]of n)if(o===t&&r!==e){i.delete(r);break}i.set(e,t),this.map.value=i;const a=eM(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const n=this.map.peek();if(n.get(e)!==t)return;const r=this.cleanupFunctions.get(t);null==r||r(),this.cleanupFunctions.delete(t);const o=new Map(n);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},oT=class extends(_D=nT,jD=[JP],ND=[JP],LD=[JP],qD=[ZP],OD=[ZP],TD=[ZP],_D){constructor(e,t){var n=e,{modifiers:r,type:o,sensors:i,plugins:a,effects:s}=n,l=YM(n,["modifiers","type","sensors","plugins","effects"]);super(GM(UM({},l),{effects:()=>{var e;return[...null!=(e=null==s?void 0:s())?e:[],()=>{const{manager:e,plugins:t}=this;if(e&&t)for(const n of t){const{plugin:t}=dD(n);e.registry.plugins.register(t)}}]}}),t),tD(zD,5,this),aD(this,FD,tD(zD,8,this)),tD(zD,11,this),aD(this,$D,tD(zD,12,this)),tD(zD,15,this),aD(this,HD,tD(zD,16,this,this.isDragSource?"dragging":"idle")),tD(zD,19,this),this.type=o,this.sensors=i,this.modifiers=r,this.alignment=l.alignment,this.plugins=a}pluginConfig(e){if(this.plugins)for(const t of this.plugins){const n=dD(t);if(n.plugin===e)return n.options}}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};zD=XM(_D),FD=new WeakMap,$D=new WeakMap,HD=new WeakMap,nD(zD,4,"type",jD,oT,FD),nD(zD,4,"modifiers",ND,oT,$D),nD(zD,4,"status",LD,oT,HD),nD(zD,2,"isDropping",qD,oT),nD(zD,2,"isDragging",OD,oT),nD(zD,2,"isDragSource",TD,oT),eD(zD,oT);var iT=class extends(YD=nT,KD=[JP],GD=[JP],UD=[JP],WD=[JP],VD=[JP],BD=[ZP],YD){constructor(e,t){var n=e,{accept:r,collisionDetector:o,collisionPriority:i,type:a}=n;super(YM(n,["accept","collisionDetector","collisionPriority","type"]),t),tD(XD,5,this),aD(this,JD,tD(XD,8,this)),tD(XD,11,this),aD(this,ZD,tD(XD,12,this)),tD(XD,15,this),aD(this,QD,tD(XD,16,this)),tD(XD,19,this),aD(this,eT,tD(XD,20,this)),tD(XD,23,this),aD(this,tT,tD(XD,24,this)),tD(XD,27,this),this.accept=r,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};XD=XM(YD),JD=new WeakMap,ZD=new WeakMap,QD=new WeakMap,eT=new WeakMap,tT=new WeakMap,nD(XD,4,"accept",KD,iT,JD),nD(XD,4,"type",GD,iT,ZD),nD(XD,4,"collisionDetector",UD,iT,QD),nD(XD,4,"collisionPriority",WD,iT,eT),nD(XD,4,"shape",VD,iT,tT),nD(XD,2,"isDropTarget",BD,iT),eD(XD,iT);var aT=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));return r.add(t),n.set(e,r),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));r.delete(t),n.set(e,r)}dispatch(e,...t){const{registry:n}=this,r=n.get(e);if(r)for(const e of r)e(...t)}},sT=class extends aT{constructor(e){super(),this.manager=e}dispatch(e,t){const n=[t,this.manager];super.dispatch(e,...n)}};function lT(e,t=!0){let n=!1;return GM(UM({},e),{cancelable:t,get defaultPrevented(){return n},preventDefault(){t&&(n=!0)}})}var uT,cT,dT,pT,fT,hT,mT,gT,bT,vT=class extends hD{constructor(e){super(e);let t=[];this.destroy=eM(()=>{const{dragOperation:n,collisionObserver:r}=e;n.status.initializing&&(t=[],r.enable())},()=>{const{collisionObserver:n,monitor:r}=e,{collisions:o}=n;if(n.isDisabled())return;if(nT.pendingIdChanges)return;const i=lT({collisions:o});if(r.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map(({id:e})=>e).join("")===t.map(({id:e})=>e).join(""))(o,t))return;t=o;const[a]=o;zk(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(n.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{n.enable()}))})})}},yT=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(yT||{}),xT=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(xT||{});mT=[JP],hT=[ZP],fT=[ZP],pT=[ZP],dT=[ZP],cT=[ZP],uT=[ZP];var ST=class{constructor(){tD(gT,5,this),aD(this,bT,tD(gT,8,this,"idle")),tD(gT,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};gT=XM(null),bT=new WeakMap,nD(gT,4,"value",mT,ST,bT),nD(gT,2,"current",hT,ST),nD(gT,2,"idle",fT,ST),nD(gT,2,"initializing",pT,ST),nD(gT,2,"initialized",dT,ST),nD(gT,2,"dragging",cT,ST),nD(gT,2,"dropped",uT,ST),eD(gT,ST);var wT,CT=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return zk(()=>{const{dragOperation:t}=this.manager,n=null!=e?e:null;if(t.targetIdentifier===n)return Promise.resolve(!1);t.targetIdentifier=n;const r=lT({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",r),this.manager.renderer.rendering.then(()=>r.defaultPrevented)})}start(e){return zk(()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const n=new AbortController,{event:r,coordinates:o}=e;Nk(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=r?r:null,t.position.reset(o)});const i=lT({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),n.abort(),n):(t.status.set("initializing"),t.controller=n,this.manager.renderer.rendering.then(()=>{if(n.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&Nk(()=>{t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:r,operation:t.snapshot(),cancelable:!1})})}),n)})}move(e){return zk(()=>{var t,n;const{dragOperation:r}=this.manager,{status:o,controller:i}=r;if(!o.dragging||!i||i.signal.aborted)return;const a=lT({nativeEvent:e.event,operation:r.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(n=e.propagate)||n)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask(()=>{var t,n,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:r.position.current.x+(null!=(n=null==(t=e.by)?void 0:t.x)?n:0),y:r.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};r.position.current=l})})}stop(e={}){return zk(()=>{var t,n;const{dragOperation:r}=this.manager,{controller:o}=r;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{r.status.set("dropped");const e=zk(()=>{var e;return"dropping"===(null==(e=r.source)?void 0:e.status)}),t=()=>{r.controller===o&&(r.controller=void 0),r.reset()};if(e){const{source:e}=r,n=iP(()=>{"idle"===(null==e?void 0:e.status)&&(n(),t())})}else this.manager.renderer.rendering.then(t)})};r.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:r.snapshot(),canceled:null!=(n=e.canceled)&&n,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise((t,n)=>{e.resume=t,e.abort=n}),e}}),i?i.then(a).catch(()=>r.reset()):a()})}},ET=class extends pD{constructor(e,t){super(e,t),this.manager=e,this.options=t}},RT=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},AT=class{constructor(e){this.options=e,aD(this,wT)}set controller(e){sD(this,wT,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=iD(this,wT))||t.activate(e)}};wT=new WeakMap;var IT,kT,PT,MT,DT,TT,OT,qT,LT,NT,jT,_T,zT,FT,$T,HT,BT,VT,WT,UT=class extends pD{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},GT=class{constructor(e){this.draggables=new rT,this.droppables=new rT,this.plugins=new mD(e),this.sensors=new mD(e),this.modifiers=new mD(e)}register(e,t){if(e instanceof oT)return this.draggables.register(e.id,e);if(e instanceof iT)return this.droppables.register(e.id,e);if(e.prototype instanceof UT)return this.modifiers.register(e,t);if(e.prototype instanceof ET)return this.sensors.register(e,t);if(e.prototype instanceof pD)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof nT)return e instanceof oT?this.draggables.unregister(e.id,e):e instanceof iT?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof UT)return this.modifiers.unregister(e);if(e.prototype instanceof ET)return this.sensors.unregister(e);if(e.prototype instanceof pD)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};LT=[ZP],qT=[JP],OT=[JP],TT=[JP],DT=[JP],MT=[JP],PT=[ZP],kT=[ZP],IT=[ZP];var KT=class{constructor(e){tD(zT,5,this),aD(this,NT),aD(this,jT),aD(this,_T,new nM(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new ST,aD(this,FT,tD(zT,8,this,!1)),tD(zT,11,this),aD(this,$T,tD(zT,12,this,null)),tD(zT,15,this),aD(this,HT,tD(zT,16,this,null)),tD(zT,19,this),aD(this,BT,tD(zT,20,this,null)),tD(zT,23,this),aD(this,VT,tD(zT,24,this,[])),tD(zT,27,this),this.position=new IM({x:0,y:0}),aD(this,WT,{x:0,y:0}),sD(this,NT,e)}get shape(){const{current:e,initial:t,previous:n}=iD(this,_T);return e&&t?{current:e,initial:t,previous:n}:null}set shape(e){e?iD(this,_T).current=e:iD(this,_T).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const n=iD(this,NT).registry.draggables.get(t);return n&&sD(this,jT,n),null!=(e=null!=n?n:iD(this,jT))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=iD(this,NT).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let n={x:e,y:t};for(const e of this.modifiers)n=e.apply(GM(UM({},this.snapshot()),{transform:n}));return sD(this,WT,n),n}snapshot(){return zk(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:iD(this,WT),shape:this.shape?rM(this.shape):null,position:rM(this.position),status:rM(this.status),canceled:this.canceled}))}reset(){Nk(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,iD(this,_T).reset(),this.position.reset({x:0,y:0}),sD(this,WT,{x:0,y:0}),this.modifiers=[]})}};zT=XM(null),NT=new WeakMap,jT=new WeakMap,_T=new WeakMap,FT=new WeakMap,$T=new WeakMap,HT=new WeakMap,BT=new WeakMap,VT=new WeakMap,WT=new WeakMap,nD(zT,2,"shape",LT,KT),nD(zT,4,"canceled",qT,KT,FT),nD(zT,4,"activatorEvent",OT,KT,$T),nD(zT,4,"sourceIdentifier",TT,KT,HT),nD(zT,4,"targetIdentifier",DT,KT,BT),nD(zT,4,"modifiers",MT,KT,VT),nD(zT,2,"source",PT,KT),nD(zT,2,"target",kT,KT),nD(zT,2,"transform",IT,KT),eD(zT,KT);var YT={get rendering(){return Promise.resolve()}};function XT(e,t){return"function"==typeof e?e(t):null!=e?e:t}var JT=class{constructor(e){var t;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(e=>e.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};const n=null!=e?e:{},r=XT(n.plugins,[]),o=XT(n.sensors,[]),i=XT(n.modifiers,[]),a=null!=(t=n.renderer)?t:YT,s=new sT(this),l=new GT(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new CT(this),this.dragOperation=new KT(this),this.collisionObserver=new MD(this),this.plugins=[vT,...r],this.modifiers=i,this.sensors=o;const{destroy:u}=this,c=eM(()=>{var e,t,n;const r=zk(()=>this.dragOperation.modifiers),o=this.modifiers;for(const e of r)o.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(n=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:n}=dD(e);return new t(this,n)}))?n:o});this.destroy=()=>{c(),u()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},ZT=e=>{throw TypeError(e)},QT=(e,t,n)=>t.has(e)||ZT("Cannot "+n),eO=(e,t,n)=>(QT(e,t,"read from private field"),t.get(e)),tO=(e,t,n)=>t.has(e)?ZT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),nO=(e,t,n,r)=>(QT(e,t,"write to private field"),t.set(e,n),n),rO=(e,t,n)=>(QT(e,t,"access private method"),n);function oO(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function iO(e,t){const n=e.getAnimations();let r=null;for(const e of n){if("running"!==e.playState)continue;const{effect:n}=e,o=(oO(n)?n.getKeyframes():[]).filter(t);o.length>0&&(r=[o[o.length-1],e])}return r}function aO(e){const{width:t,height:n,top:r,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:n,top:r,left:o,bottom:i,right:a}}function sO(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function lO(e){return"nodeType"in e}function uO(e){var t,n,r;return e?sO(e)?e:lO(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(r=null==(n=e.ownerDocument)?void 0:n.defaultView)?r:window:window:window}function cO(e){const{Document:t}=uO(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function dO(e){return!(!e||sO(e))&&(e instanceof uO(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function pO(e){return e instanceof uO(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function fO(e){return e?sO(e)?e.document:lO(e)?cO(e)?e:dO(e)||pO(e)?e.ownerDocument:document:document:document}function hO(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(e);return"visible"===n&&"visible"===r&&"visible"===o}function mO(e,t=e.getBoundingClientRect(),n=0){var r,o,i,a,s;let l=t;const{ownerDocument:u}=e,c=null!=(r=u.defaultView)?r:window;let d=e.parentElement;for(;d&&d!==u.documentElement;){if(!hO(d)){const e=d.getBoundingClientRect(),t=n*(e.bottom-e.top),r=n*(e.right-e.left),o=n*(e.bottom-e.top),i=n*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+r),bottom:Math.min(l.bottom,e.bottom+o),left:Math.max(l.left,e.left-i),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=c.visualViewport,f=null!=(o=null==p?void 0:p.offsetTop)?o:0,h=null!=(i=null==p?void 0:p.offsetLeft)?i:0,m=null!=(a=null==p?void 0:p.width)?a:c.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:c.innerHeight,b=n*g,v=n*m;return l={top:Math.max(l.top,f-b),right:Math.min(l.right,h+m+v),bottom:Math.min(l.bottom,f+g+b),left:Math.max(l.left,h-v),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function gO(e){return{x:e.clientX,y:e.clientY}}var bO="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function vO(e=document,t=new Set){if(t.has(e))return[];t.add(e);const n=[e];for(const r of Array.from(e.querySelectorAll("iframe, frame")))try{const e=r.contentDocument;e&&!t.has(e)&&n.push(...vO(e,t))}catch(e){}try{const r=e.defaultView;if(r&&r!==window.top){const o=r.parent;o&&o.document&&o.document!==e&&n.push(...vO(o.document,t))}}catch(e){}return n}function yO(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function xO(){var e,t;const n=yO()?window.visualViewport:null;return{x:null!=(e=null==n?void 0:n.offsetLeft)?e:0,y:null!=(t=null==n?void 0:n.offsetTop)?t:0}}function SO(e){return!(!e||!lO(e))&&e instanceof uO(e).ShadowRoot}function wO(e){if(e&&lO(e)){let t=e.getRootNode();if(SO(t))return t;if(t instanceof Document)return t}return fO(e)}function CO(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function EO(e){return"value"in e}function RO(e){return"CANVAS"===e.tagName}function AO(e,{x:t,y:n}){const r=e.elementFromPoint(t,n);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(r)){const{contentDocument:e}=r;if(e){const{left:o,top:i}=r.getBoundingClientRect();return AO(e,{x:t-o,y:n-i})}}return r}var IO=new WeakMap;var kO=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:n,listener:r,options:o}]=e;t.removeEventListener(n,r,o)}this.entries.clear()}}bind(e,t){const n=Array.isArray(e)?e:[e],r=Array.isArray(t)?t:[t],o=[];for(const e of n)for(const t of r){const{type:n,listener:r,options:i}=t,a=[e,t];e.addEventListener(n,r,i),this.entries.add(a),o.push(a)}const i=this.entries;return function(){for(const e of o){const[t,{type:n,listener:r,options:o}]=e;t.removeEventListener(n,r,o),i.delete(e)}}}};function PO(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function MO(e,t){const n=()=>performance.now();let r,o;return function(...i){const a=this;o?(null==r||r(),r=function(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)}(()=>{e.apply(a,i),o=n()},t-(n()-o))):(e.apply(a,i),o=n())}}var DO,TO=bO?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},OO=class extends TO{constructor(e){super(t=>{eO(this,DO)?e(t,this):nO(this,DO,!0)}),tO(this,DO,!1)}};DO=new WeakMap;var qO,LO,NO,jO,_O,zO,FO,$O,HO,BO,VO,WO=Array.from({length:100},(e,t)=>t/100),UO=class{constructor(e,t,n={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,tO(this,HO),this.disconnect=()=>{var e,t,n;nO(this,FO,!0),null==(e=eO(this,NO))||e.disconnect(),null==(t=eO(this,jO))||t.disconnect(),eO(this,_O).disconnect(),null==(n=eO(this,zO))||n.remove()},tO(this,qO,!0),tO(this,LO),tO(this,NO),tO(this,jO),tO(this,_O),tO(this,zO),tO(this,FO,!1),tO(this,$O,MO(()=>{var e,t,n;const{element:r}=this;if(null==(e=eO(this,jO))||e.disconnect(),eO(this,FO)||!eO(this,qO)||!r.isConnected)return;const o=null!=(t=r.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(n=o.defaultView)?n:window,s=r.getBoundingClientRect(),l=mO(r,s),{top:u,left:c,bottom:d,right:p}=l,f=-Math.floor(u),h=-Math.floor(c),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,nO(this,jO,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:n}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:RM.intersectionRatio(n,mO(r)))&&eO(this,$O).call(this)},{threshold:WO,rootMargin:m,root:o})),eO(this,jO).observe(r),rO(this,HO,BO).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),nO(this,qO,function(e,t=e.getBoundingClientRect()){const{width:n,height:r}=mO(e,t);return n>0&&r>0}(e,this.boundingClientRect));let r=!0;this.callback=e=>{r&&(r=!1,n.skipInitial)||t(e)};const o=e.ownerDocument;(null==n?void 0:n.debug)&&(nO(this,zO,document.createElement("div")),eO(this,zO).style.background="rgba(0,0,0,0.15)",eO(this,zO).style.position="fixed",eO(this,zO).style.pointerEvents="none",o.body.appendChild(eO(this,zO))),nO(this,_O,new IntersectionObserver(t=>{var n,r;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=eO(this,qO);nO(this,qO,a),(s||l)&&(u&&!a?(null==(n=eO(this,jO))||n.disconnect(),this.callback(null),null==(r=eO(this,NO))||r.disconnect(),nO(this,NO,void 0),eO(this,zO)&&(eO(this,zO).style.visibility="hidden")):eO(this,$O).call(this),a&&!eO(this,NO)&&(nO(this,NO,new OO(eO(this,$O))),eO(this,NO).observe(e)))},{threshold:WO,root:o})),eO(this,qO)&&!n.skipInitial&&this.callback(this.boundingClientRect),eO(this,_O).observe(e)}};qO=new WeakMap,LO=new WeakMap,NO=new WeakMap,jO=new WeakMap,_O=new WeakMap,zO=new WeakMap,FO=new WeakMap,$O=new WeakMap,HO=new WeakSet,BO=function(){eO(this,FO)||(rO(this,HO,VO).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,eO(this,LO))||(this.callback(this.boundingClientRect),nO(this,LO,this.boundingClientRect)))},VO=function(){if(eO(this,zO)){const{top:e,left:t,width:n,height:r}=mO(this.element);eO(this,zO).style.overflow="hidden",eO(this,zO).style.visibility="visible",eO(this,zO).style.top=`${Math.floor(e)}px`,eO(this,zO).style.left=`${Math.floor(t)}px`,eO(this,zO).style.width=`${Math.floor(n)}px`,eO(this,zO).style.height=`${Math.floor(r)}px`}};var GO,KO,YO,XO,JO=new WeakMap,ZO=new WeakMap;function QO(e,t){let n=JO.get(e);if(!n){const t=new UO(e,t=>{const n=JO.get(e);n&&n.callbacks.forEach(e=>e(t))},{skipInitial:!0});n={disconnect:t.disconnect,callbacks:new Set}}return n.callbacks.add(t),JO.set(e,n),()=>{n.callbacks.delete(t),0===n.callbacks.size&&(JO.delete(e),n.disconnect())}}var eq=class{constructor(e,t,n){this.callback=t,tO(this,GO),tO(this,KO,!1),tO(this,YO),tO(this,XO,MO(e=>{if(!eO(this,KO)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of eO(this,YO))if(e.target.contains(t)){this.callback(eO(this,GO).boundingClientRect);break}},75));const r=function(e){const t=new Set;let n=PO(e);for(;n;)t.add(n),n=PO(n);return t}(e),o=function(e,t){const n=new Set;for(const r of e){const e=QO(r,t);n.add(e)}return()=>n.forEach(e=>e())}(r,t),i=function(e,t){var n;const r=e.ownerDocument;if(!ZO.has(r)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),ZO.set(r,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(n=ZO.get(r))?n:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),ZO.delete(r))}):()=>{}}(e,eO(this,XO));nO(this,YO,r),nO(this,GO,new UO(e,t,n)),this.disconnect=()=>{eO(this,KO)||(nO(this,KO,!0),o(),i(),eO(this,GO).disconnect())}}};function tq(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function nq(e){try{tq(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function rq(e){return!(!bO||!e)&&e===fO(e).scrollingElement}function oq(e){var t,n;const r=uO(e),o=rq(e)?function(e){var t,n,r,o;const{documentElement:i}=fO(e),a=uO(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(n=null==a?void 0:a.height)?n:i.clientHeight,u=null!=(r=null==a?void 0:a.offsetTop)?r:0,c=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:u,left:c,right:c+s,bottom:u+l,width:s,height:l}}(e):aO(e),i=r.visualViewport,a=rq(e)?{height:null!=(t=null==i?void 0:i.height)?t:r.innerHeight,width:null!=(n=null==i?void 0:i.width)?n:r.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:o,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function iq(e,t){const{isTop:n,isBottom:r,isLeft:o,isRight:i,position:a}=oq(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!n&&a.current.y+l>0,c=!r&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}GO=new WeakMap,KO=new WeakMap,YO=new WeakMap,XO=new WeakMap;var aq=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}},sq=new aq(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),lq=new aq(e=>setTimeout(e,50)),uq=new Map,cq=uq.clear.bind(uq);function dq(e,t=!1){if(!t)return pq(e);let n=uq.get(e);return n||(n=pq(e),uq.set(e,n),lq.schedule(cq),n)}function pq(e){return uO(e).getComputedStyle(e)}var fq={excludeElement:!0,escapeShadowDOM:!0};function hq(e,t=fq){const{limit:n,excludeElement:r,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=n&&i.size>=n)return i;if(!a)return i;if(cO(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&SO(a))return t(a.host);if(!dO(a))return pO(a)?t(a.parentElement):i;if(i.has(a))return i;const s=dq(a,!0);if(r&&a===e||function(e,t=dq(e,!0)){const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(a,s)&&i.add(a),function(e,t=dq(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function mq(e,t=window.frameElement){const n={x:0,y:0,scaleX:1,scaleY:1};if(!e)return n;let r=PO(e);for(;r;){if(r===t)return n;const e=aO(r),{x:o,y:i}=gq(r,e);n.x=n.x+e.left,n.y=n.y+e.top,n.scaleX=n.scaleX*o,n.scaleY=n.scaleY*i,r=PO(r)}return n}function gq(e,t=aO(e)){const n=Math.round(t.width),r=Math.round(t.height);if(dO(e))return{x:n/e.offsetWidth,y:r/e.offsetHeight};const o=dq(e,!0);return{x:(parseFloat(o.width)||n)/n,y:(parseFloat(o.height)||r)/r}}function bq(e){if(!e||"none"===e)return null;const[t,n,r="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(n),z:parseInt(r,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function vq(e){var t,n,r,o,i,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if(!e||"none"===e)return null;const t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return isNaN(n)&&isNaN(r)?null:{x:isNaN(n)?r:n,y:isNaN(r)?n:r}}(c),h=bq(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,b=null!=(n=null==f?void 0:f.y)?n:1,v=null!=(r=null==h?void 0:h.x)?r:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:v+x,y:y+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:b*C}}var yq=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(yq||{}),xq={x:.2,y:.2},Sq={x:10,y:10};function wq(e,t,n,r=25,o=xq,i=Sq){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=oq(e),f=mq(e),h=vq(dq(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new RM(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),v={x:0,y:0},y={x:0,y:0},x=b.height*o.y,S=b.width*o.x;return x>0&&(!u||g&&!c)&&s<=b.top+x&&1!==(null==n?void 0:n.y)&&a>=b.left-i.x&&a<=b.right+i.x?(v.y=g?1:-1,y.y=r*Math.abs((b.top+x-s)/x)):x>0&&(!c||g&&!u)&&s>=b.bottom-x&&-1!==(null==n?void 0:n.y)&&a>=b.left-i.x&&a<=b.right+i.x&&(v.y=g?-1:1,y.y=r*Math.abs((b.bottom-x-s)/x)),S>0&&(!p||m&&!d)&&a>=b.right-S&&-1!==(null==n?void 0:n.x)&&s>=b.top-i.y&&s<=b.bottom+i.y?(v.x=m?-1:1,y.x=r*Math.abs((b.right-S-a)/S)):S>0&&(!d||m&&!p)&&a<=b.left+S&&1!==(null==n?void 0:n.x)&&s>=b.top-i.y&&s<=b.bottom+i.y&&(v.x=m?1:-1,y.x=r*Math.abs((b.left+S-a)/S)),{direction:v,speed:y}}function Cq(e,{block:t="nearest",inline:n="nearest"}={}){if(!dO(e))return;const r=hq(e),o=[];for(const i of r){if(!dO(i))continue;const{top:r,left:a}=Rq(e,i);let s=r,l=a;for(const e of o)s-=e.scrollTop,l-=e.scrollLeft;if("none"!==t){const n=s<i.scrollTop;n!==s+e.offsetHeight>i.scrollTop+i.clientHeight&&(i.scrollTop="center"===t?s-i.clientHeight/2+e.offsetHeight/2:n?s:s+e.offsetHeight-i.clientHeight)}if("none"!==n){const t=l<i.scrollLeft;t!==l+e.offsetWidth>i.scrollLeft+i.clientWidth&&(i.scrollLeft="center"===n?l-i.clientWidth/2+e.offsetWidth/2:t?l:l+e.offsetWidth-i.clientWidth)}o.push(i)}}function Eq(e){let t=0,n=0,r=e;for(;r;){t+=r.offsetTop,n+=r.offsetLeft;const e=r.offsetParent;if(!dO(e))break;t+=e.clientTop,n+=e.clientLeft,r=e}return{top:t,left:n}}function Rq(e,t){const n=Eq(e),r=Eq(t);return{top:n.top-r.top-t.clientTop,left:n.left-r.left-t.clientLeft}}function Aq({element:e,keyframes:t,options:n}){return e.animate(t,n).finished}function Iq(e,t=dq(e).translate,n=!0){if(n){const t=iO(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=bq(e);if(t)return t}}}if(t){const e=bq(t);if(e)return e}return{x:0,y:0,z:0}}var kq=new aq(e=>setTimeout(e,0)),Pq=new Map,Mq=Pq.clear.bind(Pq);function Dq(e,t){const n=function(e){const t=e.ownerDocument;let n=Pq.get(t);if(n)return n;n=t.getAnimations(),Pq.set(t,n),kq.schedule(Mq);const r=n.filter(t=>oO(t.effect)&&t.effect.target===e);return Pq.set(e,r),n}(e).filter(e=>{var n,r;if(oO(e.effect)){const{target:o}=e.effect;if(null==(r=o&&(null==(n=t.isValidTarget)?void 0:n.call(t,o)))||r)return e.effect.getKeyframes().some(e=>{for(const n of t.properties)if(e[n])return!0})}}).map(e=>{const{effect:t,currentTime:n}=e,r=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof r&&"number"==typeof n&&n<r?(e.currentTime=r,()=>{e.currentTime=n}):void 0});if(n.length>0)return()=>n.forEach(e=>null==e?void 0:e())}var Tq=class extends RM{constructor(e,t={}){var n,r,o,i;const{frameTransform:a=mq(e),ignoreTransforms:s,getBoundingClientRect:l=aO}=t,u=Dq(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||yO())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=dq(e),b=vq(g),v={x:null!=(n=null==b?void 0:b.scaleX)?n:1,y:null!=(r=null==b?void 0:b.scaleY)?r:1},y=function(e,t){const n=e.getAnimations();if(!n.length)return null;let r,o,i,a=!1;for(const e of n){if("running"!==e.playState)continue;const t=oO(e.effect)?e.effect.getKeyframes():[],n=t[t.length-1];if(!n)continue;const{transform:s,translate:l,scale:u}=n;"string"==typeof s&&s&&(r=s,a=!0),"string"==typeof l&&l&&(o=l,a=!0),"string"==typeof u&&u&&(i=u,a=!0)}return a?vq({transform:null!=r?r:t.transform,translate:null!=o?o:t.translate,scale:null!=i?i:t.scale}):null}(e,g);null==u||u(),b&&(d=function(e,t,n){const{scaleX:r,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-r)*parseFloat(n),l=e.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=r?e.width/r:e.width,c=o?e.height/o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,b,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,n){const{scaleX:r,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-r)*parseFloat(n),l=e.top+a+(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=r?e.width*r:e.width,c=o?e.height*o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,v.x=y.scaleX,v.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=v,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function Oq(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var qq=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:n}=this;if(Oq(n))for(const[r,o]of Object.entries(e)){const e=`${t}${r}`;this.initial.has(e)||this.initial.set(e,n.style.getPropertyValue(e)),n.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:n}=this;if(Oq(n))for(const r of e){const e=`${t}${r}`;n.style.removeProperty(e)}}reset(){const{element:e}=this;if(Oq(e)){for(const[t,n]of this.initial)e.style.setProperty(t,n);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function Lq(e){return!!e&&(e instanceof uO(e).Element||lO(e)&&e.nodeType===Node.ELEMENT_NODE)}function Nq(e){if(!e)return!1;const{KeyboardEvent:t}=uO(e.target);return e instanceof t}var jq={};function _q(e){const t=null==jq[e]?0:jq[e]+1;return jq[e]=t,`${e}-${t}`}var zq=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/EM.distance(t.shape.center,n),type:xT.PointerIntersection,priority:yT.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:o}=e,i=EM.distance(t.shape.center,o.current),a=r/(n.current.area+t.shape.area-r)/i;return{id:t.id,value:a,type:xT.ShapeIntersection,priority:yT.Normal}}return null})(e)},Fq=e=>{const{dragOperation:t,droppable:n}=e,{shape:r,position:o}=t;if(!n.shape)return null;const i=r?RM.from(r.current.boundingRectangle).corners:void 0,a=RM.from(n.shape.boundingRectangle).corners.reduce((e,t,n)=>{var r;return e+EM.distance(EM.from(t),null!=(r=null==i?void 0:i[n])?r:o.current)},0),s=a/4;return{id:n.id,value:1/s,type:xT.Collision,priority:yT.Normal}},$q=Object.create,Hq=Object.defineProperty,Bq=Object.defineProperties,Vq=Object.getOwnPropertyDescriptor,Wq=Object.getOwnPropertyDescriptors,Uq=Object.getOwnPropertySymbols,Gq=Object.prototype.hasOwnProperty,Kq=Object.prototype.propertyIsEnumerable,Yq=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Xq=e=>{throw TypeError(e)},Jq=(e,t,n)=>t in e?Hq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zq=(e,t)=>{for(var n in t||(t={}))Gq.call(t,n)&&Jq(e,n,t[n]);if(Uq)for(var n of Uq(t))Kq.call(t,n)&&Jq(e,n,t[n]);return e},Qq=(e,t)=>Bq(e,Wq(t)),eL=(e,t)=>Hq(e,"name",{value:t,configurable:!0}),tL=(e,t)=>{var n={};for(var r in e)Gq.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Uq)for(var r of Uq(e))t.indexOf(r)<0&&Kq.call(e,r)&&(n[r]=e[r]);return n},nL=e=>{var t;return[,,,$q(null!=(t=null==e?void 0:e[Yq("metadata")])?t:null)]},rL=["class","method","getter","setter","accessor","field","value","get","set"],oL=e=>void 0!==e&&"function"!=typeof e?Xq("Function expected"):e,iL=(e,t,n,r,o)=>({kind:rL[e],name:t,metadata:r,addInitializer:e=>n._?Xq("Already initialized"):o.push(oL(e||null))}),aL=(e,t)=>Jq(t,Yq("metadata"),e[3]),sL=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},lL=(e,t,n,r,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=rL[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&Vq(d<4?o:{get[n](){return dL(this,i)},set[n](e){return fL(this,i,e)}},n));d?f&&d<4&&eL(i,(d>2?"set ":d>1?"get ":"")+n):eL(o,n);for(var y=r.length-1;y>=0;y--)u=iL(d,n,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>cL(o,e):e=>n in e},3^d&&(c.get=f?e=>(1^d?dL:hL)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(c.set=f?(e,t)=>fL(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?oL(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?Xq("Object expected"):(oL(a=s.get)&&(v.get=a),oL(a=s.set)&&(v.set=a),oL(a=s.init)&&g.unshift(a));return d||aL(e,o),v&&Hq(o,n,v),f?4^d?i:v:o},uL=(e,t,n)=>t.has(e)||Xq("Cannot "+n),cL=(e,t)=>Object(t)!==t?Xq('Cannot use the "in" operator on this value'):e.has(t),dL=(e,t,n)=>(uL(e,t,"read from private field"),n?n.call(e):t.get(e)),pL=(e,t,n)=>t.has(e)?Xq("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),fL=(e,t,n,r)=>(uL(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),hL=(e,t,n)=>(uL(e,t,"access private method"),n),mL="button",gL="draggable",bL="dnd-kit-description",vL="dnd-kit-announcement",yL={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},xL={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:n}){if(e)return n?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function SL(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var wL=["dragover","dragmove"],CL=class extends pD{constructor(e,t){super(e);const{id:n,idPrefix:{description:r=bL,announcement:o=vL}={},announcements:i=xL,screenReaderInstructions:a=yL,debounce:s=500}=null!=t?t:{},l=n?`${r}-${n}`:_q(r),u=n?`${o}-${n}`:_q(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>sq.schedule(h),g=function(e,t){let n;const r=()=>{clearTimeout(n),n=setTimeout(e,t)};return r.cancel=()=>clearTimeout(n),r}(m,s),b=Object.entries(i).map(([e,t])=>this.manager.monitor.addEventListener(e,(n,r)=>{const o=p;if(!o)return;const i=null==t?void 0:t(n,r);i&&o.nodeValue!==i&&(f=i,wL.includes(e)?g():(m(),g.cancel()))})),v=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const n=document.createElement("div");return n.id=e,n.style.setProperty("display","none"),n.textContent=t,n}(l,a.draggable),e.push(c)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect(()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const n=null!=(e=t.handle)?e:t.element;if(n){c&&d||y.add(v),SL(n)&&!yO()||n.hasAttribute("tabindex")||y.add(()=>n.setAttribute("tabindex","0")),n.hasAttribute("role")||"button"===n.tagName.toLowerCase()||y.add(()=>n.setAttribute("role",mL)),n.hasAttribute("aria-roledescription")||y.add(()=>n.setAttribute("aria-roledescription",gL)),n.hasAttribute("aria-describedby")||y.add(()=>n.setAttribute("aria-describedby",l));for(const e of["aria-pressed","aria-grabbed"]){const r=String(t.isDragging);n.getAttribute(e)!==r&&y.add(()=>n.setAttribute(e,r))}const e=String(t.disabled);n.getAttribute("aria-disabled")!==e&&y.add(()=>n.setAttribute("aria-disabled",e))}}y.size>0&&sq.schedule(x)}),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),b.forEach(e=>e())}}};var EL,RL,AL,IL,kL,PL,ML,DL,TL,OL,qL,LL,NL,jL=new Map,_L=class extends(kL=hD,IL=[JP],AL=[ZP],RL=[ZP],EL=[ZP],kL){constructor(e,t){super(e,t),sL(ML,5,this),pL(this,TL),pL(this,PL,new Set),pL(this,DL,sL(ML,8,this,new Set)),sL(ML,11,this),this.registerEffect(hL(this,TL,OL))}register(e){return dL(this,PL).add(e),()=>{dL(this,PL).delete(e)}}addRoot(e){return zk(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{zk(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return wO(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return wO(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter(e=>null!=e);return new Set([...e,...this.additionalRoots])}return new Set}};ML=nL(kL),PL=new WeakMap,DL=new WeakMap,TL=new WeakSet,OL=function(){const{roots:e}=this,t=[];for(const n of e)for(const e of dL(this,PL))t.push(hL(this,TL,qL).call(this,n,e));return()=>{for(const e of t)e()}},qL=function(e,t){let n=jL.get(e);n||(n=new Map,jL.set(e,n));let r=n.get(t);if(!r){const o=cO(e)?hL(this,TL,LL).call(this,e,n,t):hL(this,TL,NL).call(this,e,n,t);if(!o)return()=>{};r=o,n.set(t,r)}r.refCount++;let o=!1;return()=>{o||(o=!0,r.refCount--,0===r.refCount&&r.cleanup())}},LL=function(e,t,n){var r;const o=e.createElement("style"),{nonce:i}=null!=(r=this.options)?r:{};i&&o.setAttribute("nonce",i),o.textContent=n,e.head.prepend(o);const a=new MutationObserver(t=>{for(const n of t)for(const t of Array.from(n.removedNodes))if(t===o)return void e.head.prepend(o)});return a.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{a.disconnect(),o.remove(),t.delete(n),0===t.size&&jL.delete(e)}}},NL=function(e,t,n){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const r=e.ownerDocument.defaultView,{CSSStyleSheet:o}=null!=r?r:{};if(!o)return null;const i=new o;return i.replaceSync(n),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{var r;if(SO(e)&&(null==(r=e.host)?void 0:r.isConnected)){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(n),0===t.size&&jL.delete(e)}}},lL(ML,4,"additionalRoots",IL,_L,DL),lL(ML,2,"sourceRoot",AL,_L),lL(ML,2,"targetRoot",RL,_L),lL(ML,2,"roots",EL,_L),aL(ML,_L),_L.configure=cD(_L);var zL=_L,FL="data-dnd-",$L=`${FL}dropping`,HL="--dnd-",BL=`${FL}dragging`,VL=`${FL}placeholder`,WL=[BL,VL,"popover","aria-pressed","aria-grabbing"],UL=["view-transition-name"],GL=`\n :is(:root,:host) [${BL}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${HL}top, 0px) !important;\n left: var(${HL}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${HL}width, auto);\n max-width: var(${HL}width, auto);\n height: var(${HL}height, auto);\n max-height: var(${HL}height, auto);\n transform: var(${HL}transform, none) !important;\n transition: var(${HL}transition) !important;\n }\n\n :is(:root,:host) [${VL}] {\n transition: none;\n }\n\n :is(:root,:host) [${VL}='hidden'] {\n visibility: hidden;\n }\n\n [${BL}] * {\n pointer-events: none !important;\n }\n\n [${BL}]:not([${$L}]) {\n translate: var(${HL}translate) !important;\n }\n\n [${BL}][style*='${HL}scale'] {\n scale: var(${HL}scale) !important;\n transform-origin: var(${HL}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${BL}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${BL}]::backdrop, [${FL}overlay]:not([${BL}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function KL(e,t="hidden"){return zk(()=>{const{element:n,manager:r}=e;if(!n||!r)return;const o=function(e,t){const n=new Map;for(const r of t)if(r.element&&(e===r.element||e.contains(r.element))){const e=`${FL}${_q("dom-id")}`;r.element.setAttribute(e,""),n.set(r,e)}return n}(n,r.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",n=e.cloneNode(!0),r=Array.from(e.querySelectorAll(t));return Array.from(n.querySelectorAll(t)).forEach((e,t)=>{const n=r[t];if(EO(e)&&EO(n)&&("file"!==e.type&&(e.value=n.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),RO(e)&&RO(n)&&n.width>0&&n.height>0){const t=e.getContext("2d");null==t||t.drawImage(n,0,0)}}),n}(n),{remove:s}=a;return function(e,t,n){for(const[r,o]of e){if(!r.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(r.element.removeAttribute(o),!i)continue;const a=r.element;r.proxy=i,i.removeAttribute(o),IO.set(a,i),n.push(()=>{IO.delete(a),r.proxy=void 0})}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(VL,t)}(a,t),a.remove=()=>{i.forEach(e=>e()),s.call(a)},a})}function YL(e,t){return e===t||PO(e)===PO(t)}function XL(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&Lq(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>nq(t))}function JL(e){return"TR"===e.tagName}var ZL,QL,eN,tN,nN,rN,oN,iN=250,aN="ease";var sN=class extends(QL=pD,ZL=[JP],QL){constructor(e,t){super(e,t),pL(this,nN),pL(this,tN,sL(eN,8,this)),sL(eN,11,this),this.state={initial:{},current:{}};const n=e.registry.plugins.get(zL),r=null==n?void 0:n.register(GL);if(r){const e=this.destroy.bind(this);this.destroy=()=>{r(),e()}}this.registerEffect(hL(this,nN,rN).bind(this,n)),this.registerEffect(hL(this,nN,oN))}};eN=nL(QL),tN=new WeakMap,nN=new WeakSet,rN=function(e){const{overlay:t}=this;if(!t||!e)return;const n=wO(t);return n?e.addRoot(n):void 0},oN=function(){var e,t,n,r,o,i,a;const{state:s,manager:l,options:u}=this,{dragOperation:c}=l,{position:d,source:p,status:f}=c;if(f.idle)return s.current={},void(s.initial={});if(!p)return;const{element:h}=p,m=p.pluginConfig(sN),g=null!=(t=null!=(e=null==m?void 0:m.feedback)?e:null==u?void 0:u.feedback)?t:"default",b="function"==typeof g?g(p,l):g;if(!h||"none"===b||!f.initialized||f.initializing)return;const{initial:v}=s,y=null!=(n=this.overlay)?n:h,x=mq(y),S=mq(h),w=!YL(h,y),C=new Tq(h,{frameTransform:w?S:null,ignoreTransforms:!w}),E=S.scaleX/x.scaleX,R=S.scaleY/x.scaleY;let{width:A,height:I,top:k,left:P}=C;w&&(A/=E,I/=R);const M=new qq(y),D=dq(h),{transition:T,translate:O,boxSizing:q,paddingBlockStart:L,paddingBlockEnd:N,paddingInlineStart:j,paddingInlineEnd:_,borderInlineStartWidth:z,borderInlineEndWidth:F,borderBlockStartWidth:$,borderBlockEndWidth:H}=D,B=T.split(",").filter(e=>!/^\s*(transform|translate|scale)\b/.test(e)).join(","),V=vq(D),W=D.transform,U="clone"===b,G="content-box"===q,K=G?parseInt(j)+parseInt(_)+parseInt(z)+parseInt(F):0,Y=G?parseInt(L)+parseInt(N)+parseInt($)+parseInt(H):0,X="move"===b||this.overlay?null:KL(p,U?"clone":"hidden"),J=zk(()=>Nq(l.dragOperation.activatorEvent));if(!v.translate)if(this.overlay&&V)v.translate={x:V.x,y:V.y};else if("none"!==O){const e=bq(O);e&&(v.translate=e)}if(!v.transformOrigin){const e=zk(()=>d.current),t=P+(null!=(r=null==V?void 0:V.x)?r:0),n=k+(null!=(o=null==V?void 0:V.y)?o:0);v.transformOrigin={x:(e.x-t*x.scaleX-x.x)/(A*x.scaleX),y:(e.y-n*x.scaleY-x.y)/(I*x.scaleY)}}const{transformOrigin:Z}=v,Q=k*x.scaleY+x.y,ee=P*x.scaleX+x.x;if(!v.coordinates&&(v.coordinates={x:ee,y:Q},1!==E||1!==R)){const{scaleX:e,scaleY:t}=S,{x:n,y:r}=Z;v.coordinates.x+=(A*e-A)*n,v.coordinates.y+=(I*t-I)*r}v.dimensions||(v.dimensions={width:A,height:I}),v.frameTransform||(v.frameTransform=x);const te=v.coordinates.x-ee,ne=v.coordinates.y-Q,re=(v.dimensions.width*v.frameTransform.scaleX-A*x.scaleX)*Z.x,oe=(v.dimensions.height*v.frameTransform.scaleY-I*x.scaleY)*Z.y,ie={x:te/x.scaleX+re,y:ne/x.scaleY+oe},ae=P+ie.x,se=k+ie.y;y.setAttribute(BL,"true");const le=zk(()=>c.transform),ue=null!=(i=v.translate)?i:{x:0,y:0},ce=le.x*x.scaleX+ue.x,de=le.y*x.scaleY+ue.y,pe=xO();if(M.set({width:A-K,height:I-Y,top:se+pe.y,left:ae+pe.x,translate:`${ce}px ${de}px 0`,transform:this.overlay?"none":W,transition:B?`${B}, translate 0ms linear`:"translate 0ms linear",scale:w?`${E} ${R}`:"","transform-origin":`${100*Z.x}% ${100*Z.y}%`},HL),X&&(h.insertAdjacentElement("afterend",X),null==u?void 0:u.rootElement)){("function"==typeof u.rootElement?u.rootElement(p):u.rootElement).appendChild(h)}let fe,he,me;tq(y)&&(y.hasAttribute("popover")||y.setAttribute("popover","manual"),nq(y),y.addEventListener("beforetoggle",XL));const ge=(be={placeholder:X,element:h,feedbackElement:y,frameTransform:x,transformOrigin:Z,width:A,height:I,top:k,left:P,widthOffset:K,heightOffset:Y,delta:ie,styles:M,dragOperation:c,getTranslate:()=>s.current.translate,getElementMutationObserver:()=>fe,getSavedCellWidths:()=>me,setSavedCellWidths:e=>{me=e}},new ResizeObserver(()=>{var e,t,n;const r=new Tq(be.placeholder,{frameTransform:be.frameTransform,ignoreTransforms:!0}),o=null!=(e=be.transformOrigin)?e:{x:1,y:1},i=(be.width-r.width)*o.x+be.delta.x,a=(be.height-r.height)*o.y+be.delta.y,s=xO();if(be.styles.set({width:r.width-be.widthOffset,height:r.height-be.heightOffset,top:be.top+a+s.y,left:be.left+i+s.x},HL),null==(t=be.getElementMutationObserver())||t.takeRecords(),JL(be.element)&&JL(be.placeholder)){const e=Array.from(be.element.cells),t=Array.from(be.placeholder.cells);be.getSavedCellWidths()||be.setSavedCellWidths(e.map(e=>e.style.width));for(const[n,r]of e.entries()){const e=t[n];r.style.width=`${e.getBoundingClientRect().width}px`}}const l=null!=(n=be.getTranslate())?n:{x:0,y:0},u=be.left+i+s.x+l.x,c=be.top+a+s.y+l.y,d=r.width-be.widthOffset,p=r.height-be.heightOffset,f=be.frameTransform;be.dragOperation.shape=new RM(u*f.scaleX+f.x,c*f.scaleY+f.y,d*f.scaleX,p*f.scaleY)}));var be;const ve=new Tq(y);zk(()=>c.shape=ve);const ye=uO(y),xe=e=>{this.manager.actions.stop({event:e})},Se=CO(ye);J&&ye.addEventListener("resize",xe),"idle"===zk(()=>p.status)&&requestAnimationFrame(()=>p.status="dragging"),X&&(ge.observe(X),fe=function(e,t,n){const r=new MutationObserver(r=>{let o=!1;for(const n of r){if(n.target!==e){o=!0;continue}if("attributes"!==n.type)continue;const r=n.attributeName;if(r.startsWith("aria-")||WL.includes(r))continue;const i=e.getAttribute(r);if("style"===r){if(Oq(e)&&Oq(t)){const n=e.style;for(const e of Array.from(t.style))""===n.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(n)){if(UL.includes(e)||e.startsWith(HL))continue;const r=n.getPropertyValue(e);t.style.setProperty(e,r)}}}else null!==i?t.setAttribute(r,i):t.removeAttribute(r)}o&&n&&t.replaceChildren(...e.cloneNode(!0).childNodes)});return r.observe(e,{attributes:!0,subtree:!0,childList:!0}),r}(h,X,U),he=function(e,t,n){const r=new MutationObserver(r=>{for(const o of r)if(0!==o.addedNodes.length)for(const r of Array.from(o.addedNodes)){if(r.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void nq(n);if(r.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void nq(n)}e.isConnected&&t.isConnected&&e.nextElementSibling!==t&&(e.insertAdjacentElement("afterend",t),nq(n))});return r.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),r}(h,X,y));const we=null==(a=l.dragOperation.source)?void 0:a.id,Ce=()=>{var e;if(!J||null==we)return;const t=l.registry.draggables.get(we),n=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;dO(n)&&n.focus()},Ee=()=>{null==fe||fe.disconnect(),null==he||he.disconnect(),ge.disconnect(),ye.removeEventListener("resize",xe),tq(y)&&(y.removeEventListener("beforetoggle",XL),y.removeAttribute("popover")),y.removeAttribute(BL),M.reset();const e=()=>{var e;if(me&&JL(h)){const t=Array.from(h.cells);for(const[n,r]of t.entries())r.style.width=null!=(e=me[n])?e:""}p.status="idle";const t=null!=s.current.translate,n=c.status.dragging;X&&(!n&&t||X.parentElement!==y.parentElement)&&y.isConnected&&X.replaceWith(y),null==X||X.remove()};y===this.overlay?setTimeout(e,0):e()},Re=null==u?void 0:u.dropAnimation,Ae=this,Ie=eM(()=>{var e,t,n;const{transform:r,status:o}=c;if((r.x||r.y||s.current.translate)&&o.dragging){const o=null!=(e=v.translate)?e:{x:0,y:0},i={x:r.x/x.scaleX+o.x,y:r.y/x.scaleY+o.y},a=s.current.translate,l=zk(()=>c.modifiers),d=zk(()=>{var e;return null==(e=c.shape)?void 0:e.current}),p=null==u?void 0:u.keyboardTransition,f=J&&!Se&&null!==p?`${null!=(t=null==p?void 0:p.duration)?t:250}ms ${null!=(n=null==p?void 0:p.easing)?n:"cubic-bezier(0.25, 1, 0.5, 1)"}`:"0ms linear";if(M.set({transition:B?`${B}, translate ${f}`:`translate ${f}`,translate:`${i.x}px ${i.y}px 0`},HL),null==fe||fe.takeRecords(),d&&d!==ve&&a&&!l.length){const e=EM.delta(i,a);c.shape=RM.from(d.boundingRectangle).translate(e.x*x.scaleX,e.y*x.scaleY)}else c.shape=new Tq(y);s.current.translate=i}},function(){if(c.status.dropped){this.dispose(),p.status="dropping";const e=void 0!==(null==m?void 0:m.dropAnimation)?m.dropAnimation:void 0!==Ae.dropAnimation?Ae.dropAnimation:Re;let t=s.current.translate;const n=null!=t;if(t||h===y||(t={x:0,y:0}),!t||null===e)return void Ee();l.renderer.rendering.then(()=>{!function(e){var t,n,r,o;const{animation:i}=e;if("function"==typeof i){const t=i({source:e.source,element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)})}const{duration:a=iN,easing:s=aN}=null!=i?i:{};nq(e.feedbackElement);const[,l]=null!=(t=iO(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const u=null!=(n=e.placeholder)?n:e.element,c={frameTransform:YL(e.feedbackElement,u)?null:void 0},d=new Tq(e.feedbackElement,c),p=null!=(r=bq(dq(e.feedbackElement).translate))?r:e.translate,f=new Tq(u,c),h=RM.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,b=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},v=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},HL),e.feedbackElement.setAttribute($L,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),Aq({element:e.feedbackElement,keyframes:Qq(Zq(Zq({},b),v),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:CO(uO(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute($L),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}({source:p,element:h,feedbackElement:y,placeholder:X,translate:t,moved:n,transition:T,alignment:p.alignment,styles:M,animation:null!=e?e:void 0,getElementMutationObserver:()=>fe,cleanup:Ee,restoreFocus:Ce})})}});return()=>{Ee(),Ie()}},lL(eN,4,"overlay",ZL,sN,tN),aL(eN,sN),sN.configure=cD(sN);var lN,uN,cN,dN,pN,fN,hN,mN=sN,gN=!0;cN=[JP],dN=yq.Forward,lN=[JP],uN=yq.Reverse;var bN=class{constructor(){pL(this,fN,sL(pN,8,this,gN)),sL(pN,11,this),pL(this,hN,sL(pN,12,this,gN)),sL(pN,15,this)}isLocked(e){return e!==yq.Idle&&(null==e?this[yq.Forward]===gN&&this[yq.Reverse]===gN:this[e]===gN)}unlock(e){e!==yq.Idle&&(this[e]=false)}};pN=nL(null),fN=new WeakMap,hN=new WeakMap,lL(pN,4,dN,cN,bN,fN),lL(pN,4,uN,lN,bN,hN),aL(pN,bN);var vN,yN,xN,SN,wN,CN,EN=[yq.Forward,yq.Reverse],RN=class{constructor(){this.x=new bN,this.y=new bN}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},AN=class extends pD{constructor(e){super(e);const t=Yk(new RN);let n=null;this.signal=t,iP(()=>{const{status:r}=e.dragOperation;if(!r.initialized)return n=null,void(t.value=new RN);const{delta:o}=e.dragOperation.position;if(n){const e={x:IN(o.x,n.x),y:IN(o.y,n.y)},r=t.peek();Nk(()=>{for(const t of qM)for(const n of EN)e[t]===n&&r[t].unlock(n);t.value=r})}n=o})}get current(){return this.signal.peek()}};function IN(e,t){return Math.sign(e-t)}var kN=class extends(yN=hD,vN=[JP],yN){constructor(e){super(e),pL(this,SN,sL(xN,8,this,!1)),sL(xN,11,this),pL(this,wN),pL(this,CN,()=>{if(!dL(this,wN))return;const{element:e,by:t}=dL(this,wN);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=(e,t)=>{var n;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return fL(this,wN,void 0),!1;const{position:o}=this.manager.dragOperation,i=null==o?void 0:o.current;if(i){const{by:o}=null!=e?e:{},a=o?{x:PN(o.x),y:PN(o.y)}:void 0,s=a?void 0:this.scrollIntentTracker.current;if(null==s?void 0:s.isLocked())return!1;for(const e of r){const r=iq(e,o);if(r.x||r.y){const{speed:r,direction:l}=wq(e,i,a,null==t?void 0:t.acceleration,null==t?void 0:t.threshold);if(s)for(const e of qM)s[e].isLocked(l[e])&&(r[e]=0,l[e]=0);if(l.x||l.y){const{x:t,y:i}=null!=o?o:l,a=t*r.x,s=i*r.y;if(a||s){const t=null==(n=dL(this,wN))?void 0:n.by;if(this.autoScrolling&&t){if(t.x&&!a||t.y&&!s)continue}return fL(this,wN,{element:e,by:{x:a,y:s}}),sq.schedule(dL(this,CN)),!0}}}}}return fL(this,wN,void 0),!1};let t=null,n=null;const r=YP(()=>{const{position:n,source:r}=e.dragOperation;if(!n)return null;const o=AO(wO(null==r?void 0:r.element),n.current);return o&&(t=o),null!=o?o:t}),o=YP(()=>{const t=r.value,{documentElement:o}=fO(t);if(!t||t===o){const{target:t}=e.dragOperation,r=null==t?void 0:t.element;if(r){const e=hq(r,{excludeElement:!1});return n=e,e}}if(t){const e=hq(t,{excludeElement:!1});return this.autoScrolling&&n&&e.size<(null==n?void 0:n.size)?n:(n=e,e)}return n=null,null},XP);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new AN(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&Nq(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function PN(e){return e>0?yq.Forward:e<0?yq.Reverse:yq.Idle}xN=nL(yN),SN=new WeakMap,wN=new WeakMap,CN=new WeakMap,lL(xN,4,"autoScrolling",vN,kN,SN),aL(xN,kN);var MN=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}}(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),DN=class extends pD{constructor(e,t){super(e,t);const n=e.registry.plugins.get(kN);if(!n)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=iP(()=>{var t,r,o;if(this.disabled)return;const{position:i,status:a}=e.dragOperation;if(a.dragging){const e={acceleration:null==(t=this.options)?void 0:t.acceleration,threshold:"number"==typeof(null==(r=this.options)?void 0:r.threshold)?{x:this.options.threshold,y:this.options.threshold}:null==(o=this.options)?void 0:o.threshold};if(n.scroll(void 0,e)){n.autoScrolling=!0;const t=setInterval(()=>MN.schedule(()=>n.scroll(void 0,e)),10);return()=>{clearInterval(t)}}n.autoScrolling=!1}})}};DN.configure=cD(DN);var TN,ON=DN,qN={capture:!0,passive:!0},LN=class extends hD{constructor(e){super(e),pL(this,TN),this.handleScroll=()=>{null==dL(this,TN)&&fL(this,TN,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),fL(this,TN,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=iP(()=>{var e,n,r;if(t.status.dragging){const o=null!=(r=null==(n=null==(e=t.source)?void 0:e.element)?void 0:n.ownerDocument)?r:document;return o.addEventListener("scroll",this.handleScroll,qN),()=>{o.removeEventListener("scroll",this.handleScroll,qN)}}})}};TN=new WeakMap;function NN(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var jN,_N=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var n;const r=null!=(n=t.handle)?n:t.element;return e.target!==r}}),zN=class extends ET{constructor(e,t){super(e),this.manager=e,this.options=t,pL(this,jN,[]),this.listeners=new kO,this.handleSourceKeyDown=(e,t,n)=>{if(this.disabled||e.defaultPrevented)return;if(!Lq(e.target))return;if(t.disabled)return;const{keyboardCodes:r=_N.keyboardCodes,preventActivation:o=_N.preventActivation}=null!=n?n:{};r.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,n))}}bind(e,t=this.options){const n=iP(()=>{var n;const r=null!=(n=e.handle)?n:e.element,o=n=>{Nq(n)&&this.handleSourceKeyDown(n,e,t)};if(r)return r.addEventListener("keydown",o),()=>{r.removeEventListener("keydown",o)}});return n}handleStart(e,t,n){const{element:r}=t;if(!r)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),Cq(r);const{center:o}=new Tq(r);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=fO(r),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,n),options:{capture:!0}}])];dL(this,jN).push(...a)}handleKeyDown(e,t,n){const{keyboardCodes:r=_N.keyboardCodes}=null!=n?n:{};if(HN(e,[...r.end,...r.cancel])){e.preventDefault();const t=HN(e,r.cancel);return void this.handleEnd(e,t)}HN(e,r.up)?this.handleMove("up",e):HN(e,r.down)&&this.handleMove("down",e),HN(e,r.left)?this.handleMove("left",e):HN(e,r.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var n,r;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(r=null==(n=this.options)?void 0:n.offset)?r:_N.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(ON);!1===(null==e?void 0:e.disabled)&&(e.disable(),dL(this,jN).push(()=>{e.enable()}))}cleanup(){dL(this,jN).forEach(e=>e()),fL(this,jN,[])}destroy(){this.cleanup(),this.listeners.clear()}};jN=new WeakMap,zN.configure=cD(zN),zN.defaults=_N;var FN,$N=zN;function HN(e,t){return t.includes(e.code)}var BN,VN;FN=new WeakMap;BN=new WeakMap,VN=new WeakMap;var WN=class{};WN.Delay=class extends AT{constructor(){super(...arguments),pL(this,BN),pL(this,VN)}onEvent(e){switch(e.type){case"pointerdown":fL(this,VN,gO(e)),fL(this,BN,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!dL(this,VN))return;const{x:t,y:n}=gO(e);kM({x:t-dL(this,VN).x,y:n-dL(this,VN).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){dL(this,BN)&&(clearTimeout(dL(this,BN)),fL(this,VN,void 0),fL(this,BN,void 0))}},WN.Distance=class extends AT{constructor(){super(...arguments),pL(this,FN)}onEvent(e){switch(e.type){case"pointerdown":fL(this,FN,gO(e));break;case"pointermove":if(!dL(this,FN))return;const{x:t,y:n}=gO(e),r={x:t-dL(this,FN).x,y:n-dL(this,FN).y},{tolerance:o}=this.options;if(o&&kM(r,o))return void this.abort();kM(r,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){fL(this,FN,void 0)}};var UN,GN=Object.freeze({activationConstraints(e,t){var n;const{pointerType:r,target:o}=e;if("mouse"!==r||!Lq(o)||t.handle!==o&&!(null==(n=t.handle)?void 0:n.contains(o)))return"touch"===r?[new WN.Delay({value:250,tolerance:5})]:function(e){if(!Lq(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(n=e).hasAttribute("contenteditable")&&"false"!==n.getAttribute("contenteditable");var n}(o)&&!e.defaultPrevented?[new WN.Delay({value:200,tolerance:0})]:[new WN.Delay({value:200,tolerance:10}),new WN.Distance({value:5})]},preventActivation(e,t){var n;const{target:r}=e;if(r===t.element)return!1;if(r===t.handle)return!1;if(!Lq(r))return!1;if(null==(n=t.handle)?void 0:n.contains(r))return!1;const o=r.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ');return o!==t.element&&Boolean(o)}}),KN=class extends ET{constructor(e,t){super(e),this.manager=e,this.options=t,pL(this,UN,new Set),this.listeners=new kO,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,n=this.options){const{activationConstraints:r=GN.activationConstraints}=null!=n?n:{};return"function"==typeof r?r(e,t):r}bind(e,t=this.options){const n=iP(()=>{var n;const r=new AbortController,{signal:o}=r,i=n=>{(function(e){if(!e)return!1;const{PointerEvent:t}=uO(e.target);return e instanceof t})(n)&&this.handlePointerDown(n,e,t)};let a=[null!=(n=e.handle)?n:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(QN(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>r.abort()});return n}handlePointerDown(e,t,n){if(this.disabled||!e.isPrimary||0!==e.button||!Lq(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:r=GN.preventActivation}=null!=n?n:{};if(null==r?void 0:r(e,t))return;const{target:o}=e,i=dO(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=mq(t.element),{x:s,y:l}=gO(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t,n);e.sensor=this;const c=new RT(u,e=>this.handleStart(t,e));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=vO(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:i?this.handleCancel:XN,options:{capture:!0}}]);dL(this,UN).add(()=>{p(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var n,r;if(!1!==(null==(n=this.controller)?void 0:n.activated)){if(this.manager.dragOperation.status.dragging){const n=gO(e),r=mq(t.element);n.x=n.x*r.scaleX+r.x,n.y=n.y*r.scaleY+r.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=n,sq.schedule(this.handleMove)}}else null==(r=this.controller)||r.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const n=!t.initialized;this.manager.actions.stop({event:e,canceled:n})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:n,initialCoordinates:r}=this;if(!r||!n.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(n.actions.start({coordinates:r,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=fO(t.target).body;try{o.setPointerCapture(t.pointerId)}catch(e){return void this.handleCancel(t)}const i=Lq(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:XN,options:{passive:!1}},{type:"click",listener:XN},{type:"contextmenu",listener:XN},{type:"keydown",listener:this.handleKeyDown}]);dL(this,UN).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){const{controller:e}=this;this.controller=void 0,e&&!e.signal.aborted&&e.abort(),this.latest={event:void 0,coordinates:void 0},dL(this,UN).forEach(e=>e()),dL(this,UN).clear()}destroy(){this.cleanup(),this.listeners.clear()}};UN=new WeakMap,KN.configure=cD(KN),KN.defaults=GN;var YN=KN;function XN(e){e.preventDefault()}function JN(){}var ZN=new WeakSet;function QN(e){e&&!ZN.has(e)&&(e.addEventListener("touchmove",JN,{capture:!1,passive:!1}),ZN.add(e))}var ej,tj,nj,rj,oj,ij,aj,sj,lj,uj,cj,dj,pj,fj,hj,mj,gj={modifiers:[],plugins:[CL,ON,class extends pD{constructor(e,t){super(e,t),this.manager=e;const{cursor:n="grabbing"}=null!=t?t:{},r=e.registry.plugins.get(zL),o=null==r?void 0:r.register(`* { cursor: ${n} !important; }`);if(o){const e=this.destroy.bind(this);this.destroy=()=>{o(),e()}}}},mN,class extends pD{constructor(e){super(e),this.manager=e;const t=e.registry.plugins.get(zL),n=null==t?void 0:t.register("* { user-select: none !important; -webkit-user-select: none !important; }");if(this.destroy=iP(()=>{const{dragOperation:e}=this.manager;if(e.status.initialized)return NN(),document.addEventListener("selectionchange",NN,{capture:!0}),()=>{document.removeEventListener("selectionchange",NN,{capture:!0})}}),n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}}}],sensors:[YN,$N]},bj=class extends JT{constructor(e={}){const t=XT(e.plugins,gj.plugins),n=XT(e.sensors,gj.sensors),r=XT(e.modifiers,gj.modifiers);super(Qq(Zq({},e),{plugins:[LN,kN,zL,...t],sensors:n,modifiers:r}))}},vj=class extends(nj=oT,tj=[JP],ej=[JP],nj){constructor(e,t){var n=e,{element:r,effects:o=()=>[],handle:i}=n,a=tL(n,["element","effects","handle"]);super(Zq({effects:()=>[...o(),()=>{var e,t;const{manager:n}=this;if(!n)return;const r=(null!=(t=null==(e=this.sensors)?void 0:e.map(dD))?t:[...n.sensors]).map(e=>{const t=e instanceof ET?e:n.registry.register(e.plugin),r=e instanceof ET?void 0:e.options;return t.bind(this,r)});return function(){r.forEach(e=>e())}}]},a),t),pL(this,oj,sL(rj,8,this)),sL(rj,11,this),pL(this,ij,sL(rj,12,this)),sL(rj,15,this),this.element=r,this.handle=i}};rj=nL(nj),oj=new WeakMap,ij=new WeakMap,lL(rj,4,"handle",tj,vj,oj),lL(rj,4,"element",ej,vj,ij),aL(rj,vj);var yj=class extends(lj=iT,sj=[JP],aj=[JP],lj){constructor(e,t){var n=e,{element:r,effects:o=()=>[]}=n,i=tL(n,["element","effects"]);const{collisionDetector:a=zq}=i,s=e=>{const{manager:t,element:n}=this;if(!n||null===e)return void(this.shape=void 0);if(!t)return;const r=new Tq(n),o=zk(()=>this.shape);return r&&(null==o?void 0:o.equals(r))?o:(this.shape=r,r)},l=Yk(!1);super(Qq(Zq({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:n}=t,{source:r}=n;l.value=Boolean(r&&n.status.initialized&&e&&!this.disabled&&this.accepts(r))},()=>{const{element:e}=this;if(l.value&&e){const t=new eq(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),pL(this,hj),pL(this,cj,sL(uj,8,this)),sL(uj,11,this),pL(this,mj,sL(uj,12,this)),sL(uj,15,this),this.element=r,this.refreshShape=()=>s()}set element(e){fL(this,hj,e,fj)}get element(){var e;return null!=(e=this.proxy)?e:dL(this,hj,pj)}};function xj(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}uj=nL(lj),cj=new WeakMap,hj=new WeakSet,mj=new WeakMap,dj=lL(uj,20,"#element",sj,hj,cj),pj=dj.get,fj=dj.set,lL(uj,4,"proxy",aj,yj,mj),aL(uj,yj);var Sj="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?j:O;function wj(){const e=P(0)[1];return L(()=>{e(e=>e+1)},[e])}function Cj(e,t=[],n=!1){const r=M(e);return r.current=e,function(e,t=!1){const n=M(e.peek()),r=M(!1),o=wj();return Sj(()=>iP(()=>{const i=n.current,a=e.value;if(i!==a){if(n.current=a,!r.current)return;t?U(o):o()}}),[e,t,o]),{get value(){return r.current=!0,e.peek()}}}(k(()=>YP(()=>r.current()),t),n)}function Ej(e,t){const n=M(new Map),r=wj();return Sj(()=>{if(e)return iP(()=>{var o;let i=!1,a=!1;for(const r of n.current){const[s]=r,l=zk(()=>r[1]),u=e[s];l!==u&&(i=!0,n.current.set(s,u),a=null!=(o=null==t?void 0:t(s,l,u))&&o)}i&&(a?queueMicrotask(()=>U(r)):r())});n.current.clear()},[e]),k(()=>e?new Proxy(e,{get(e,t){const r=e[t];return n.current.set(t,r),r}}):e,[e])}function Rj(e,t){e()}function Aj(e){const t=M(e);return Sj(()=>{t.current=e},[e]),t}function Ij(e,t,n=O,r=Object.is){const o=M(e);n(()=>{const n=o.current;r(e,n)||(o.current=e,t(e,n))},[t,e])}function kj(e,t){const n=M(xj(e));Sj(()=>{const r=xj(e);r!==n.current&&(n.current=r,t(r))})}var Pj=Object.defineProperty,Mj=Object.defineProperties,Dj=Object.getOwnPropertyDescriptors,Tj=Object.getOwnPropertySymbols,Oj=Object.prototype.hasOwnProperty,qj=Object.prototype.propertyIsEnumerable,Lj=(e,t,n)=>t in e?Pj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nj=new bj,jj=D(Nj),_j=z(F(({children:e},t)=>{const[n,r]=P(0),o=M(null),i=M(null),a=k(()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise(e=>{i.current=e})),$(()=>{e(),r(e=>e+1)})}}),[]);return Sj(()=>{var e;null==(e=i.current)||e.call(i),o.current=null},[e,n]),H(t,()=>a),null})),zj=[void 0,XP];function Fj(e){var t=e,{children:n,onCollision:r,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,u=((e,t)=>{var n={};for(var r in e)Oj.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Tj)for(var r of Tj(e))t.indexOf(r)<0&&qj.call(e,r)&&(n[r]=e[r]);return n})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const c=M(null),{plugins:d,modifiers:p,sensors:f}=u,h=XT(d,gj.plugins),m=XT(f,gj.sensors),g=XT(p,gj.modifiers),b=Aj(o),v=Aj(i),y=Aj(s),x=Aj(a),S=Aj(l),w=Aj(r),C=function(e){const t=M(null);t.current||(t.current=e());return _(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=u.manager)?e:new bj(u)});return O(()=>{if(!c.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=c.current,{monitor:n}=C;C.renderer=e;const r=[n.addEventListener("beforedragstart",e=>{const n=b.current;n&&t(()=>n(e,C))}),n.addEventListener("dragstart",e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,C)}),n.addEventListener("dragover",e=>{const n=y.current;n&&t(()=>n(e,C))}),n.addEventListener("dragmove",e=>{const n=x.current;n&&t(()=>n(e,C))}),n.addEventListener("dragend",e=>{const n=S.current;n&&t(()=>n(e,C))}),n.addEventListener("collision",e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)})];return()=>r.forEach(e=>e())},[C]),Ij(h,()=>C&&(C.plugins=h),...zj),Ij(m,()=>C&&(C.sensors=m),...zj),Ij(g,()=>C&&(C.modifiers=g),...zj),Yt.jsxs(jj.Provider,{value:C,children:[Yt.jsx(_j,{ref:c,children:n}),n]})}function $j(){return N(jj)}function Hj(e){var t;const n=null!=(t=$j())?t:void 0,[r]=P(()=>e(n));return r.manager!==n&&(r.manager=n),Sj(r.register,[n,r]),r}function Bj({children:e,className:t,dropAnimation:n,style:r,tag:o,disabled:i}){var a;const s=M(null),l=$j(),u=null!=(a=Cj(()=>null==l?void 0:l.dragOperation.source,[l]).value)?a:null,c="function"==typeof i?i(u):i;O(()=>{if(!s.current||!l||c)return;const e=l.plugins.find(e=>e instanceof mN);return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0},[l,c]),O(()=>{if(!l)return;const e=l.plugins.find(e=>e instanceof mN);return e?(e.dropAnimation=n,()=>{e.dropAnimation=void 0}):void 0},[l,n]);const d=k(()=>{if(!l)return null;const e=new Proxy(l.registry,{get:(e,t)=>"register"===t||"unregister"===t?Vj:e[t]});return new Proxy(l,{get:(t,n)=>"registry"===n?e:t[n]})},[l]);return Yt.jsx(jj.Provider,{value:d,children:C(o||"div",{ref:s,className:t,style:r,"data-dnd-overlay":!0},function(){if(!u||c)return null;if("function"==typeof e)return Yt.jsx(Wj,{source:u,children:e});return e}())})}function Vj(){return()=>{}}function Wj({children:e,source:t}){return e(Ej(t))}var Uj,Gj,Kj,Yj,Xj,Jj=Object.create,Zj=Object.defineProperty,Qj=Object.getOwnPropertyDescriptor,e_=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),t_=e=>{throw TypeError(e)},n_=["class","method","getter","setter","accessor","field","value","get","set"],r_=e=>void 0!==e&&"function"!=typeof e?t_("Function expected"):e,o_=(e,t,n,r,o)=>({kind:n_[e],name:t,metadata:r,addInitializer:e=>n._?t_("Already initialized"):o.push(r_(e||null))}),i_=(e,t,n,r,o,i)=>{for(var a,s,l,u,c=7&t,d=n_[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,Qj(o,n)),h=r.length-1;h>=0;h--)(l=o_(c,n,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>n in e},u.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,r_(a)&&(f[d]=a);return f&&Zj(o,n,f),o},a_=(e,t,n)=>t.has(e)||t_("Cannot "+n),s_=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},l_=class extends(Kj=nM,Gj=[ZP],Uj=[ZP],Kj){constructor(e){var t,n,r;super(s_.from(e),(e,t)=>s_.equals(e,t)),((e,t,n)=>{for(var r=0,o=e[t>>1],i=o&&o.length;r<i;r++)o[r].call(n)})(Xj,5,this),t=this,r=0,(n=Yj).has(t)?t_("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return s_.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=s_.from(e),r={x:n.x-t.x,y:n.y-t.y},o=Date.now(),i=o-(a_(a=this,s=Yj,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);Nk(()=>{((e,t,n)=>{a_(e,t,"write to private field"),t.set(e,n)})(this,Yj,o),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(s_.from(e)),this.velocity={x:0,y:0}}};Xj=(e=>{var t;return[,,,Jj(null!=(t=null==e?void 0:e[e_("metadata")])?t:null)]})(Kj),Yj=new WeakMap,i_(Xj,2,"delta",Gj,l_),i_(Xj,2,"direction",Uj,l_),((e,t)=>{((e,t,n)=>{t in e?Zj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(t,e_("metadata"),e[3])})(Xj,l_);var u_=(e=>(e.Horizontal="x",e.Vertical="y",e))(u_||{});Object.values(u_);var c_=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/s_.distance(t.shape.center,n),type:xT.PointerIntersection,priority:yT.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:o}=e,i=s_.distance(t.shape.center,o.current),a=r/(n.current.area+t.shape.area-r)/i;return{id:t.id,value:a,type:xT.ShapeIntersection,priority:yT.Normal}}return null})(e)};function d_(e){const{collisionDetector:t,data:n,disabled:r,element:o,id:i,accept:a,type:s}=e,l=Hj(t=>new yj(((e,t)=>Mj(e,Dj(t)))(((e,t)=>{for(var n in t||(t={}))Oj.call(t,n)&&Lj(e,n,t[n]);if(Tj)for(var n of Tj(t))qj.call(t,n)&&Lj(e,n,t[n]);return e})({},e),{register:!1,element:xj(o)}),t)),u=Ej(l);return Ij(i,()=>l.id=i),kj(o,e=>l.element=e),Ij(a,()=>l.accept=a,void 0,XP),Ij(t,()=>l.collisionDetector=null!=t?t:c_),Ij(n,()=>n&&(l.data=n)),Ij(r,()=>l.disabled=!0===r),Ij(s,()=>l.type=s),{droppable:u,get isDropTarget(){return u.isDropTarget},ref:L(e=>{var t,n;(e||!(null==(t=l.element)?void 0:t.isConnected)||(null==(n=l.manager)?void 0:n.dragOperation.status.idle))&&(l.element=null!=e?e:void 0)},[l])}}function p_(e){const t=$j();O(()=>{if(!t)return;const n=Object.entries(e).reduce((e,[n,r])=>{if(r){const o=n.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,r);e.push(i)}return e},[]);return()=>n.forEach(e=>null==e?void 0:e())},[t,e])}const f_=e=>Array.from({length:e},(e,t)=>t),h_=({id:e,sectionIndex:t,itemIndex:n})=>Yt.jsx("span",{children:`${e}-${t}-${n}`}),m_=z(()=>{const e=Qg(Rk)??h_,{startSectionIndex:t,startIndex:n,id:r}=Qg(Pk)??{};return"number"!=typeof t||"number"!=typeof n||void 0===r?null:Yt.jsx(Bj,{dropAnimation:null,children:Yt.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px",background:"white",boxShadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.15)",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.15)",width:"208px",maxHeight:"32px",fontSize:"12px",lineHeight:"16px"},children:Yt.jsx(e,{id:r,sectionIndex:t,itemIndex:n})})})}),g_=({sectionIndex:e,itemIndex:t,isDragging:n})=>{const r=Qg(Pk),o=r?.toSectionIndex===e&&r.toIndex===t;return Yt.jsx("div",{"data-key":"drop-target-indicator","data-testid":"drop-target-indicator",style:{visibility:o&&!n?"visible":"hidden",padding:0,background:"rgba(64, 64, 64, 1)",borderRadius:2,marginLeft:"4px",width:"calc(100% - 8px)",height:"2px"}})},b_=(e,t)=>e?"2px solid rgba(0, 135, 61, 1)":t?"1px dashed rgba(0, 0, 0, 0.43)":void 0,v_=z(({sectionIndex:e})=>{const t=Qg(vk)[e],n=Qg(yk),r=Qg(xk),o=null!==Qg(Pk),i=r(e),a=n({sectionIndex:e}),{ref:s,isDropTarget:l}=d_({id:a,type:"section",accept:"item",collisionPriority:yT.Low,data:{id:a,sectionIndex:e,sectionKey:a}});return t>0?null:Yt.jsxs(Sd,{ref:s,sx:{margin:"4px",outline:b_(l,o),borderRadius:"4px",boxSizing:"border-box"},children:[Yt.jsx(Sd,{sx:{position:"relative",top:"4px"},children:Yt.jsx(g_,{sectionIndex:e,itemIndex:0,isDragging:!1})}),Yt.jsxs(Sd,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",padding:"20px 4px"},children:[Yt.jsx(jc,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontWeight:"600",fontSize:"14px",lineHeight:"16px",color:"rgba(64, 64, 64, 1)"},children:i.title}),Yt.jsx(jc,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontSize:"12px",lineHeight:"150%",color:"rgba(64, 64, 64, 1)"},children:i.message})]})]})}),y_=z(({id:e,sectionIndex:t})=>{const n=Qg(Ek);return void 0===n?null:C(n,{id:e,sectionIndex:t})});var x_=Object.defineProperty,S_=Object.defineProperties,w_=Object.getOwnPropertyDescriptors,C_=Object.getOwnPropertySymbols,E_=Object.prototype.hasOwnProperty,R_=Object.prototype.propertyIsEnumerable,A_=(e,t,n)=>t in e?x_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I_=(e,t)=>{for(var n in t||(t={}))E_.call(t,n)&&A_(e,n,t[n]);if(C_)for(var n of C_(t))R_.call(t,n)&&A_(e,n,t[n]);return e},k_=(e,t)=>S_(e,w_(t)),P_=class extends UT{apply({transform:e}){if(!this.options)return e;const{axis:t,value:n}=this.options;return k_(I_({},e),{[t]:n})}};P_.configure=cD(P_);var M_=P_,D_=M_.configure({axis:"x",value:0});M_.configure({axis:"y",value:0});var T_=class extends UT{apply({transform:e}){var t;const{size:n=20}=null!=(t=this.options)?t:{},r="number"==typeof n?n:n.x,o="number"==typeof n?n:n.y;return k_(I_({},e),{x:Math.ceil(e.x/r)*r,y:Math.ceil(e.y/o)*o})}};T_.configure=cD(T_);var O_=Object.create,q_=Object.defineProperty,L_=Object.defineProperties,N_=Object.getOwnPropertyDescriptor,j_=Object.getOwnPropertyDescriptors,__=Object.getOwnPropertySymbols,z_=Object.prototype.hasOwnProperty,F_=Object.prototype.propertyIsEnumerable,$_=e=>{throw TypeError(e)},H_=(e,t,n)=>t in e?q_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B_=(e,t)=>{for(var n in t||(t={}))z_.call(t,n)&&H_(e,n,t[n]);if(__)for(var n of __(t))F_.call(t,n)&&H_(e,n,t[n]);return e},V_=(e,t)=>L_(e,j_(t)),W_=["class","method","getter","setter","accessor","field","value","get","set"],U_=e=>void 0!==e&&"function"!=typeof e?$_("Function expected"):e,G_=(e,t,n,r,o)=>({kind:W_[e],name:t,metadata:r,addInitializer:e=>n._?$_("Already initialized"):o.push(U_(e||null))}),K_=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},Y_=(e,t,n,r,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=W_[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,N_({get[n](){return J_(this,i)},set[n](e){return Q_(this,i,e)}},n)),b=r.length-1;b>=0;b--)(u=G_(d,n,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>n in e},c.get=e=>e[n],c.set=(e,t)=>e[n]=t,s=(0,r[b])({get:g.get,set:g.set},u),l._=1,void 0===s?U_(s)&&(g[f]=s):"object"!=typeof s||null===s?$_("Object expected"):(U_(a=s.get)&&(g.get=a),U_(a=s.set)&&(g.set=a),U_(a=s.init)&&h.unshift(a));return g&&q_(o,n,g),o},X_=(e,t,n)=>t.has(e)||$_("Cannot "+n),J_=(e,t,n)=>(X_(e,t,"read from private field"),t.get(e)),Z_=(e,t,n)=>t.has(e)?$_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Q_=(e,t,n,r)=>(X_(e,t,"write to private field"),t.set(e,n),n);function ez(e){return e instanceof Nz||e instanceof Lz}var tz=class extends pD{constructor(e){super(e);const t=iP(()=>{const{dragOperation:t}=e;if(Nq(t.activatorEvent)&&ez(t.source)&&t.status.initialized){const t=e.registry.plugins.get(kN);if(t)return t.disable(),()=>t.enable()}}),n=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:n}=t;if(!Nq(e.nativeEvent))return;if(!ez(n.source))return;if(!n.shape)return;const{actions:r,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:n}=e;if(t>0)return"right";if(t<0)return"left";if(n>0)return"down";if(n<0)return"up"}(a),{source:l,target:u}=n,{center:c}=n.shape.current,d=[],p=[];Nk(()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&ez(e)||!e.element)continue;let n=e.shape;const r=new Tq(e.element,{getBoundingClientRect:e=>mO(e,void 0,.2)});r.height&&r.width&&(("down"==s&&c.y+10<r.center.y||"up"==s&&c.y-10>r.center.y||"left"==s&&c.x-10>r.center.x||"right"==s&&c.x+10<r.center.x)&&(d.push(e),e.shape=r,p.push(()=>e.shape=n)))}}),e.preventDefault(),o.disable();const f=o.computeCollisions(d,Fq);Nk(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:b}=l.sortable;r.setDropTarget(m).then(()=>{const{source:e,target:t,shape:i}=n;if(!e||!ez(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||b!==s,c=u?l:null==t?void 0:t.element;if(!c)return;Cq(c);const d=new Tq(c);if(!d)return;const p=RM.delta(d,RM.from(i.current.boundingRectangle),e.alignment);r.move({by:p}),u?r.setDropTarget(e.id).then(()=>o.enable()):o.enable()})})});this.destroy=()=>{n(),t()}}};var nz=Object.defineProperty,rz=Object.defineProperties,oz=Object.getOwnPropertyDescriptors,iz=Object.getOwnPropertySymbols,az=Object.prototype.hasOwnProperty,sz=Object.prototype.propertyIsEnumerable,lz=(e,t,n)=>t in e?nz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uz=(e,t)=>{for(var n in t||(t={}))az.call(t,n)&&lz(e,n,t[n]);if(iz)for(var n of iz(t))sz.call(t,n)&&lz(e,n,t[n]);return e},cz=(e,t)=>rz(e,oz(t));function dz(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function pz(e,t){const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?n:void 0}function fz(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function hz(e,t){return function(e,t,n){var r,o;const{source:i,target:a,canceled:s}=t.operation;if(!i||!a||s)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||null!==e&&"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>l(e,i.id)),o=e.findIndex(e=>l(e,a.id));if(-1===r||-1===o){if(fz(i)){const r=i.initialIndex,o=i.index;return r===o||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,o)}return e}if(!s&&"index"in i&&"number"==typeof i.index){const t=i.index;if(t!==r)return n(e,r,t)}return n(e,r,o)}const u=Object.entries(e);let c,d,p=-1,f=-1;for(const[e,t]of u)if(-1===p&&(p=t.findIndex(e=>l(e,i.id)),-1!==p&&(c=e)),-1===f&&(f=t.findIndex(e=>l(e,a.id)),-1!==f&&(d=e)),-1!==p&&-1!==f)break;if(-1===p&&fz(i)){const r=null==i.initialGroup?void 0:pz(e,i.initialGroup),o=i.initialIndex,a=null==i.group?void 0:pz(e,i.group),s=i.index;if(null==r||null==a)return"preventDefault"in t&&t.preventDefault(),e;if(r===a&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===a)return cz(uz({},e),{[r]:n(e[r],o,s)});const l=e[r][o];return cz(uz({},e),{[r]:[...e[r].slice(0,o),...e[r].slice(o+1)],[a]:[...e[a].slice(0,s),l,...e[a].slice(s)]})}if(!i.manager)return e;const{dragOperation:h}=i.manager,m=null!=(o=null==(r=h.shape)?void 0:r.current.center)?o:h.position.current;if(null==d){const t=pz(e,a.id);null!=t&&(d=t,f=a.shape&&m.y>a.shape.center.y?e[t].length:0)}if(null==c||null==d||c===d&&p===f){if(null!=c&&c===d&&p===f&&fz(i)){const t=null==i.group?void 0:pz(e,i.group),r=null!=i.group&&t!==c,o=i.index!==p;if(r||o){const r=null==i.group?c:t;if(null!=r){if(c===r)return cz(uz({},e),{[c]:n(e[c],p,i.index)});const t=e[c][p];return cz(uz({},e),{[c]:[...e[c].slice(0,p),...e[c].slice(p+1)],[r]:[...e[r].slice(0,i.index),t,...e[r].slice(i.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(c===d)return cz(uz({},e),{[c]:n(e[c],p,f)});const g=a.shape&&Math.round(m.y)>Math.round(a.shape.center.y)?1:0,b=e[c][p];return cz(uz({},e),{[c]:[...e[c].slice(0,p),...e[c].slice(p+1)],[d]:[...e[d].slice(0,f+g),b,...e[d].slice(f+g)]})}(e,t,dz)}function mz(e){const t=new Map;for(const[,n]of e)for(const e of n)t.set(e.id,e.index);return t}function gz(e,t,n){var r;for(const[o,i]of t)for(const t of i){const i=e.get(t.id);if(t.index!==i||t.group!==o||!(null==(r=n.get(o))?void 0:r.has(t)))return!0}return!1}var bz="__default__";function vz(e,t,n,r){const o=r<t?"afterend":"beforebegin";n.insertAdjacentElement(o,e)}function yz(e,t){return e.index-t.index}function xz(e,t){return e.initialIndex-t.initialIndex}function Sz(e,t=yz){return Array.from(e).sort(t)}var wz=[tz,class extends pD{constructor(e){super(e);const t=()=>{const t=new Map;for(const n of e.registry.droppables)if(n instanceof Nz){const{sortable:e}=n,{group:r}=e;let o=t.get(r);o||(o=new Set,t.set(r,o)),o.add(e)}return t},n=[e.monitor.addEventListener("dragover",(e,n)=>{if(this.disabled)return;const{dragOperation:r}=n,{source:o,target:i}=r;if(!ez(o)||!ez(i))return;if(o.sortable===i.sortable)return;const a=t(),s=mz(a),l=o.sortable.group===i.sortable.group,u=a.get(o.sortable.group),c=l?u:a.get(i.sortable.group);u&&c&&queueMicrotask(()=>{e.defaultPrevented||n.renderer.rendering.then(()=>{var r,d;const p=t();if(gz(s,a,p))return;const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!l&&i.id===o.sortable.group)return;const m=Sz(u),g=l?m:Sz(c),b=null!=(r=o.sortable.group)?r:bz,v=null!=(d=i.sortable.group)?d:bz,y={[b]:m,[v]:g},x=hz(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);n.collisionObserver.disable(),vz(f,S,h,w),Nk(()=>{for(const[e,t]of x[b].entries())t.index=e;if(!l)for(const[e,t]of x[v].entries())t.group=i.sortable.group,t.index=e}),n.actions.setDropTarget(o.id).then(()=>n.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,n)=>{if(!e.canceled)return;const{dragOperation:r}=n,{source:o}=r;ez(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask(()=>{const e=t(),r=mz(e),i=e.get(o.sortable.initialGroup);i&&n.renderer.rendering.then(()=>{const n=t();if(gz(r,e,n))return;const a=Sz(i),s=Sz(i,xz),l=o.sortable.element,u=a[s.indexOf(o.sortable)],c=null==u?void 0:u.element;u&&c&&l&&(vz(l,u.index,c,o.index),Nk(()=>{for(const t of e.values()){const e=Array.from(t).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of n)e()}}}],Cz={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1};function Ez(e){var t,n;return"boolean"==typeof e?{draggable:e,droppable:e}:{draggable:null!=(t=null==e?void 0:e.draggable)&&t,droppable:null!=(n=null==e?void 0:e.droppable)&&n}}var Rz,Az,Iz,kz,Pz,Mz,Dz,Tz,Oz=new class{constructor(){UP(this,tM,new WeakMap)}get(e,t){var n;return e?null==(n=WP(this,tM).get(e))?void 0:n.get(t):void 0}set(e,t,n){var r;if(e)return WP(this,tM).has(e)||WP(this,tM).set(e,new Map),null==(r=WP(this,tM).get(e))?void 0:r.set(t,n)}clear(e){var t;return e?null==(t=WP(this,tM).get(e))?void 0:t.clear():void 0}};Az=[JP],Rz=[JP];var qz=class{constructor(e,t){Z_(this,kz,K_(Iz,8,this)),K_(Iz,11,this),Z_(this,Pz),Z_(this,Mz),Z_(this,Dz,K_(Iz,12,this)),K_(Iz,15,this),Z_(this,Tz),this.register=()=>(Nk(()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)}),()=>this.unregister()),this.unregister=()=>{Nk(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{Nk(()=>{this.droppable.destroy(),this.draggable.destroy()})};var n=e,{effects:r=()=>[],disabled:o,group:i,index:a,sensors:s,type:l,transition:u=Cz,plugins:c}=n,d=((e,t)=>{var n={};for(var r in e)z_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&__)for(var r of __(e))t.indexOf(r)<0&&F_.call(e,r)&&(n[r]=e[r]);return n})(n,["effects","disabled","group","index","sensors","type","transition","plugins"]);const p=XT(c,wz),f=Ez(o);this.droppable=new Nz(V_(B_({},d),{disabled:f.droppable}),t,this),this.draggable=new Lz(V_(B_({},d),{disabled:f.draggable,plugins:p,effects:()=>[()=>{var e,t,n;const r=null==(e=this.manager)?void 0:e.dragOperation.status;(null==r?void 0:r.initializing)&&this.id===(null==(n=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:n.id)&&Oz.clear(this.manager),(null==r?void 0:r.dragging)&&Oz.set(this.manager,this.id,zk(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:n}=this,r=J_(this,Mz),o=J_(this,Pz);e===r&&t===o||(Q_(this,Mz,e),Q_(this,Pz,t),this.animate())},()=>{var e,t;const{target:n}=this,{isDragSource:r}=this.draggable;"move"===(null!=(t=null==(e=this.draggable.pluginConfig(mN))?void 0:e.feedback)?t:"default")&&r&&(this.droppable.disabled=!n)},...r()],type:l,sensors:s}),t,this),Q_(this,Tz,d.element),this.manager=t,this.index=a,Q_(this,Mz,a),this.group=i,Q_(this,Pz,i),this.type=l,this.transition=u}get initialIndex(){var e,t;return null!=(t=null==(e=Oz.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=Oz.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){zk(()=>{const{manager:e,transition:t}=this,{shape:n}=this.droppable;if(!e)return;const{idle:r}=e.dragOperation.status;n&&t&&(!r||t.idle)&&e.renderer.rendering.then(()=>{const{element:r}=this;if(!r)return;for(const e of r.getAnimations())!("transitionProperty"in e)||"transform"!==e.transitionProperty&&"translate"!==e.transitionProperty&&"scale"!==e.transitionProperty||e.cancel();const o=this.refreshShape();if(!o)return;const i=n.boundingRectangle.left-o.boundingRectangle.left,a=n.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=dq(r),l=Iq(r,s,!1),u=Iq(r,s);if(i||a){const n=CO(uO(r))?V_(B_({},t),{duration:0}):t;Aq({element:r,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:n}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(e){Nk(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){Nk(()=>{const t=J_(this,Tz),n=this.droppable.element,r=this.draggable.element;n&&n!==t||(this.droppable.element=e),r&&r!==t||(this.draggable.element=e),Q_(this,Tz,e)})}get element(){var e,t;const n=J_(this,Tz);if(n)return null!=(t=null!=(e=IO.get(n))?e:n)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){const{disabled:e}=this.draggable,{disabled:t}=this.droppable;return e===t?e:{draggable:e,droppable:t}}set plugins(e){this.draggable.plugins=XT(e,wz)}set disabled(e){const t=Ez(e);Nk(()=>{this.droppable.disabled=t.droppable,this.draggable.disabled=t.draggable})}set data(e){Nk(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){this.droppable.id=e,this.draggable.id=e}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:zq}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){Nk(()=>{this.droppable.type=e,this.draggable.type=e})}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};Iz=[,,,O_(null)],kz=new WeakMap,Pz=new WeakMap,Mz=new WeakMap,Dz=new WeakMap,Tz=new WeakMap,Y_(Iz,4,"index",Az,qz,kz),Y_(Iz,4,"group",Rz,qz,Dz),((e,t)=>{return H_(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r})(Iz,qz);var Lz=class extends vj{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},Nz=class extends yj{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get group(){return this.sortable.group}},jz=Object.defineProperty,_z=Object.defineProperties,zz=Object.getOwnPropertyDescriptors,Fz=Object.getOwnPropertySymbols,$z=Object.prototype.hasOwnProperty,Hz=Object.prototype.propertyIsEnumerable,Bz=(e,t,n)=>t in e?jz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vz=(e,t)=>{for(var n in t||(t={}))$z.call(t,n)&&Bz(e,n,t[n]);if(Fz)for(var n of Fz(t))Hz.call(t,n)&&Bz(e,n,t[n]);return e};function Wz(e){const{accept:t,collisionDetector:n,collisionPriority:r,id:o,data:i,element:a,handle:s,index:l,group:u,disabled:c,modifiers:d,sensors:p,target:f,type:h,plugins:m}=e,g=Vz(Vz({},Cz),e.transition),b=Hj(t=>new qz(((e,t)=>_z(e,zz(t)))(Vz({},e),{transition:g,register:!1,handle:xj(s),element:xj(a),target:xj(f)}),t)),v=Ej(b,Uz);return Ij(o,()=>b.id=o),Sj(()=>{Nk(()=>{b.group=u,b.index=l})},[b,u,l]),Ij(h,()=>b.type=h),Ij(t,()=>b.accept=t,void 0,XP),Ij(i,()=>i&&(b.data=i)),Ij(l,()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()},Rj),kj(s,e=>b.handle=e),kj(a,e=>b.element=e),kj(f,e=>b.target=e),Ij(c,()=>b.disabled=null!=c&&c,void 0,XP),Ij(p,()=>b.sensors=p,void 0,XP),Ij(n,()=>b.collisionDetector=n),Ij(r,()=>b.collisionPriority=r),Ij(m,()=>b.plugins=m,void 0,XP),Ij(g,()=>b.transition=g,void 0,XP),Ij(d,()=>b.modifiers=d,void 0,XP),Ij(e.alignment,()=>b.alignment=e.alignment),{sortable:v,get isDragging(){return v.isDragging},get isDropping(){return v.isDropping},get isDragSource(){return v.isDragSource},get isDropTarget(){return v.isDropTarget},handleRef:L(e=>{b.handle=null!=e?e:void 0},[b]),ref:L(e=>{var t,n;(e||!(null==(t=b.element)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.element=null!=e?e:void 0)},[b]),sourceRef:L(e=>{var t,n;(e||!(null==(t=b.source)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.source=null!=e?e:void 0)},[b]),targetRef:L(e=>{var t,n;(e||!(null==(t=b.target)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.target=null!=e?e:void 0)},[b])}}function Uz(e,t,n){return!("isDragSource"!==e||n||!t)}const Gz=({id:e,itemIndex:t,sectionIndex:n})=>Yt.jsx("div",{children:`${n}:${t} - ${e}`}),Kz=z(({id:e,itemIndex:t,sectionIndex:n})=>{const r=Qg(Ak),o=Qg(Ck),i=Qg(vk).at(n)??0,a=Qg(yk)({sectionIndex:n}),{ref:s,isDragging:l,handleRef:u}=Wz({id:e,index:t,type:"item",accept:"item",group:a,modifiers:[D_],plugins:[tz],data:{id:e,sectionIndex:n,sectionKey:a,itemIndex:t}}),c=void 0!==r?()=>{r({id:e,itemIndex:t,sectionIndex:n})}:void 0,d=o??Gz;return Yt.jsx(of,{className:"section-item-container","data-testid":"section-item",onClick:c,ref:s,"data-dragging":l,sx:{padding:0,backgroundColor:l?"rgba(242, 242, 242, 1)":void 0,borderRadius:l?"4px":void 0},children:Yt.jsxs("div",{style:{width:"100%",opacity:l?.4:1},children:[Yt.jsx(g_,{isDragging:l,itemIndex:t,sectionIndex:n}),Yt.jsx(d,{id:e,itemIndex:t,sectionIndex:n,dragHandleRef:u}),t===i-1&&Yt.jsx(g_,{isDragging:!1,itemIndex:t+1,sectionIndex:n})]})})}),Yz=z(({sectionIndex:e})=>{const t=Qg(yk),n=Qg(vk).at(e)??0,r=t({sectionIndex:e});return Yt.jsxs(Sd,{className:"exploration-list",style:{overflow:"auto"},children:[Yt.jsx(mp,{}),Yt.jsx(y_,{id:r,sectionIndex:e}),Yt.jsx(mp,{}),Yt.jsx(v_,{sectionIndex:e}),Yt.jsx(Up,{sx:{padding:"2px 8px"},children:f_(n).map(n=>{const r=t({sectionIndex:e,itemIndex:n});return Yt.jsx(Kz,{id:r,itemIndex:n,sectionIndex:e},r)})})]},r)}),Xz=[YN.configure({activationConstraints:[new WN.Distance({value:5})]}),$N],Jz=z(()=>{const e=Qg(bk),t=Qg(yk),n=eb(Mk("start")),r=eb(Mk("over")),o=eb(Mk("end"));return Yt.jsxs(Fj,{sensors:Xz,onDragEnd:e=>{o(e)},onDragOver:e=>{r(e)},onDragStart:e=>{n(e)},children:[Yt.jsx(Sd,{style:{display:"flex",flexDirection:"column"},children:f_(e).map(e=>Yt.jsx(Yz,{sectionIndex:e},t({sectionIndex:e})))}),Yt.jsx(m_,{})]})}),Zz=z(e=>Yt.jsx(ek,{atoms:Dk,atomFamilies:Tk,children:Yt.jsx(Ok,{props:e,children:Yt.jsx(Jz,{})})})),Qz=(e,t)=>{if(!e)return;const n=e.qHyperCube.qDimensionInfo.filter(e=>void 0!==e.cId).filter(NA).map(({cId:e,qFallbackTitle:n})=>({id:e,title:n??"",alternative:t,type:"dimension"})),r=e.qHyperCube.qMeasureInfo.filter(e=>void 0!==e.cId).filter(NA).map(({cId:e,qFallbackTitle:n})=>({id:e,title:n??"",alternative:t,type:"measure"}));return[...n,...r]},eF=(e,t)=>{const n=[],r={};return e.forEach(e=>{r[e.id]=e}),Object.keys(t).forEach(e=>{const o=t[e],i=r[e];i&&(n[o]=i)}),n},tF=(e,t,n)=>{if(!n||((e,t)=>{const n=e.map(e=>e.id).sort(),r=Object.keys(t).sort();return n.join(",")!==r.join(",")})(e,n)){const t=(e=>{const t={};return e.forEach((e,n)=>{t[e.id]=n}),t})(e);return eF(e,t)}const r=t.map(e=>e.id),o=Object.keys(n).sort((e,t)=>n[e]-n[t]).filter(e=>r.includes(e)),i={...n};for(let e=0;e<r.length;e++){const t=o[e],a=r[e];t!==a&&(i[a]=n[t])}let a=0;const s=Object.entries(i).sort((e,t)=>e[1]-t[1]).map(([e])=>[e,a++]);return s.forEach(([e,t])=>{i[e]=t}),eF(e,i)},nF=$g(e=>{const t=e(VA);return Qz(t,!0)}),rF=$g(e=>{const t=e(BA);return Qz(t,!1)}),oF=$g(e=>{const t=e(WA),n=e(BA);if(!t||!n)return[];const r=e(rF),o=e(nF),i=n.qHyperCube.qColumnOrder??[],a=e(FA);if(void 0===o||void 0===r)return[];if(a){return[...[...r,...o]].sort((e,t)=>(a[e.id]??1/0)-(a[t.id]??1/0))}const s=t.qHyperCubeDef.qLayoutExclude?.allColumnOrder??{},l=((e,t)=>e.length===t?e:Array.from(Array(t).keys()))(i,r.length),u=((e,t)=>e.length>0?e.map(e=>t[e]):t)(l,r),c=[...u,...o];return tF(c,u,s)}),iF=$g(e=>{const t=e(oF),n=e(TA);return t.filter(n)}),aF=$g(e=>e(iF).length),sF=$g(e=>({sectionIndex:t,itemIndex:n})=>{const r=e(iF);if(void 0===n)return`columns-section-${t}`;const o=r?.[n];return o?.id??`missing-item-${t}-${n}`}),lF=hk(e=>$g(t=>t(iF)[e]),(e,t)=>e===t),uF=$g(e=>e(oF).map(e=>e.id)),cF=$g(e=>e(iF).map(e=>e.id)),dF=$g(e=>{const t=e(oF),n={};return t.forEach(e=>{n[e.id]=e.type}),n}),pF=$g(null,(e,t,{event:n,id:r,toIndex:o})=>{const i=e(kA),a=e(qA),s=e(uF),l=e(cF);if(void 0===i||null===a||void 0===s||void 0===l)return;if(n.operation.canceled)return;const u=l[o];if(!u)return;const c=((e,t,n)=>{const r=n.findIndex(t=>t===e),o=n.findIndex(e=>e===t);if(-1===r||-1===o||r===o)return n;const i=[...n],[a]=i.splice(r,1);return i.splice(o,0,a),i})(r,u,s);t(FA,Object.fromEntries(c.map((e,t)=>[e,t]))),a.add(async()=>{i.updateColumnOrders(c)})}),fF="ChartExploration.Table.ColumnSectionEmpty.Title",hF="ChartExploration.Table.NoColumnsFound.Title",mF="#177fe6",gF=$g(e=>{const t=e(MA),n=e(DA).length>0,r=(e=>e?hF:fF)(n),o=(e=>e?"":"ChartExploration.Table.ColumnSectionEmpty.Message")(n);return()=>({title:t(r),message:""===o?"":t(o)})}),bF=({itemIndex:e})=>{const t=Qg(lF(e));if(!t)return null;const n=t.title;return Yt.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n})},vF=$g(e=>{const t=e(cF),n=e(eI),r=t.filter(e=>n.has(e)).length;return 0===t.length?"disabled":0===r?"none":r===t.length?"all":"some"}),yF=$g(null,(e,t)=>{const n=e(cF),r=e(eI),o="all"!==e(vF)&&"disabled"!==e(vF),i=[],a=new Set(e(XA)),s=new Set(e(JA));if(o){const t=new Set(n.filter(e=>!r.has(e)));i.push(...Array.from(t).map(t=>({id:t,isAlternative:!0,type:e(dF)[t]}))),i.forEach(e=>a.add(e.id)),i.forEach(e=>s.delete(e.id))}else{const t=new Set(n.filter(e=>r.has(e)));i.push(...Array.from(t).map(t=>({id:t,isAlternative:!1,type:e(dF)[t]}))),i.forEach(e=>a.delete(e.id)),i.forEach(e=>s.add(e.id))}t(XA,a),t(JA,s),AA({items:i,handler:e(kA),model:e(IA),handlerQueue:e(qA),logToSentry:e(bb)})}),xF=e=>{(e instanceof HTMLElement||e instanceof SVGElement)&&e.focus()},SF=e=>"svg"===e.tagName?"exploration-draggable-icon":e.className,wF=e=>{const{currentTarget:t}=e,n=SF(t);let r=t.closest("li")?.previousElementSibling?.getElementsByClassName(n)[0];if(!r){const e=t.closest(".exploration-list"),o=e?.querySelector(".exploration-section-header");if(o)return o;if(r=((e,t)=>{const n=e.closest(".exploration-list"),r=n?.previousElementSibling;if(null===r||!r)return e.closest(".exploration-panel")?.getElementsByClassName(t)[1];const o=r.getElementsByClassName(t);return o.length>0?o[o.length-1]:void 0})(t,n),!r){const e=t.closest(".exploration-panel")?.getElementsByClassName(n)[1];return e??null}}return r},CF=(e,t)=>{const n=e.closest(".exploration-list"),r=n?.nextElementSibling||n?.parentElement?.nextElementSibling;if(null===r||!r){if(t===Xm.Tab)return;return n?.closest(".exploration-panel")?.getElementsByClassName("exploration-section-header")[0]}return r.getElementsByClassName("exploration-section-header")[0]},EF=(e,t)=>{const{key:n}=e;switch(n){case Xm.Tab:e.shiftKey||(Em(e),((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-list"),o=r?.getElementsByClassName("exploration-item-focus")[0];o&&xF(o)})(e,t));break;case Xm.Down:(e=>{e.preventDefault();const t=e.currentTarget.closest(".exploration-list"),n=t?.getElementsByClassName("exploration-item-focus")[0];n&&xF(n)})(e);break;case Xm.Enter:case Xm.Space:e.preventDefault(),((e,t)=>{const{currentTarget:n}=e;if(e.preventDefault(),n!==t.ref.current)return;const r="all"!==t.checkState;t.toggleAllCheckboxes(r)})(e,t)}},RF=({children:e})=>Yt.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"bold"},children:e}),AF=({children:e})=>{const t=M(null),n=Qg(vF),[,r]=tb(yF),o=Qg(MA),i={ref:t,toggleAllCheckboxes:r,checkState:n};return Yt.jsxs(Sd,{ref:t,"aria-label":o("Common.Columns"),className:"exploration-section-header",tabIndex:0,onKeyDown:e=>{EF(e,i)},sx:{display:"flex",alignItems:"center",width:"100%",padding:"2px 8px 2px 8px",boxSizing:"border-box",fontSize:"14px","&:focus-visible":{boxShadow:`0 0 0 2px ${mF} inset`}},children:[Yt.jsx(Gd,{inputProps:{"aria-label":o("ChartExploration.Header.ToggleAll"),..."some"===n&&{"aria-checked":"mixed"}},disabled:"disabled"===n,checked:"all"===n,indeterminate:"some"===n,onChange:r,size:"small",style:{flexShrink:0,padding:9}}),Yt.jsx(RF,{children:e})]})},IF=()=>{const e=Qg(MA);return Yt.jsx(AF,{children:e("Common.Columns")})},kF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})})),PF=F((e,t)=>Yt.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:[Yt.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"}),Yt.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"})]})),MF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M5.5 1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm0 4a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM5 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 1.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zM9.5 5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5z"})})),DF=Mu("div")({position:"absolute",width:"1px",height:"1px",padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}),TF=Mu(MF)(()=>({padding:"6px 6px",flexShrink:0,cursor:"grab","&:focus-visible":{boxShadow:`0 0 0 2px ${mF} inset`}})),OF=e=>{const t=e.key===Xm.Down?(e=>{const{currentTarget:t,key:n}=e,r=SF(t),o=t.closest("li");let i=o?.nextElementSibling?.getElementsByClassName(r)[0];return i||(i=CF(t,n),i)?i:t.closest(".exploration-panel")?.getElementsByClassName(r)[0]})(e):wF(e);t&&xF(t)},qF=(e,t)=>{const{key:n}=e;switch(n){case Xm.Tab:if(e.shiftKey)Em(e),((e,t)=>{const{currentTarget:n}=e,r=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if(n===t.items.draggableIconRef.current){if(t.itemIndex>=0){const e=r&&r[t.itemIndex];return void(e&&xF(e))}const n=wF(e);n&&xF(n)}if(n===t.items.explorationItemFocusRef.current){const t=n.closest("li")?.previousElementSibling?.getElementsByClassName("exploration-draggable-icon")[0];if(t)return void xF(t);const r=wF(e);r&&xF(r)}})(e,t);else{const n=((e,t)=>{const{currentTarget:n,key:r}=e;if(e.shiftKey)return!0;if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return xF(e),!0}if(n===t.items.explorationItemFocusRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-draggable-icon")[0];return e&&xF(e),!0}if(n===t.items.draggableIconRef.current){const e=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if((e?.length||0)-1>t.itemIndex){const n=e&&e[t.itemIndex+1];return n&&xF(n),!0}const o=CF(n,r);if(!o)return!1;xF(o)}return!0})(e,t);n?Em(e):e.stopPropagation()}break;case Xm.Enter:case Xm.Space:Em(e),((e,t)=>{const{currentTarget:n}=e;if(n===t.items.draggableIconRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-item")[0];return void(e&&xF(e))}if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return void xF(e)}n===t.items.explorationItemFocusRef.current&&t.toggleItem()})(e,t);break;case Xm.Down:case Xm.Up:Em(e),OF(e)}},LF=({children:e})=>Yt.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:1},children:e}),NF={dimension:kF,measure:PF},jF=({id:e,dragHandleRef:t,title:n,type:r,itemIndex:o})=>{const[i,a]=tb(eI),s=Qg(MA),l=M(null),u=M(null),c=M(null);O(()=>{t&&l.current&&t(l.current)},[t]);const d=NF[r],p=!i.has(e),f={id:e,itemIndex:o,toggleItem:()=>{a({id:e,isAlternative:p,type:r})},items:{explorationItemRef:l,explorationItemFocusRef:u,draggableIconRef:c}};return Yt.jsxs(Sd,{ref:l,className:"exploration-item",onClick:t=>{t.stopPropagation(),-1!==e&&a({id:e,isAlternative:p,type:r})},onKeyDown:e=>{qF(e,f)},tabIndex:0,style:{display:"flex",alignItems:"center",width:"100%",cursor:"pointer",padding:0,boxSizing:"border-box",fontSize:"14px"},title:n,sx:{"&:hover":{backgroundColor:"action.hover"},"&:focus-visible":{boxShadow:`0 0 0 2px ${mF} inset`}},children:[Yt.jsxs(Sd,{ref:u,className:"exploration-item-focus",component:"div",tabIndex:0,onKeyDownCapture:e=>{qF(e,f)},sx:{display:"flex",minWidth:0,alignItems:"center",justifyContent:"space-between",flexGrow:1,marginRight:"4px","&:focus-visible":{boxShadow:`0 0 0 2px ${mF} inset`}},children:[Yt.jsx(Gd,{checked:i.has(e),"aria-label":s("ChartExploration.ListItem.Label",n),size:"small",tabIndex:-1,style:{padding:9,flexShrink:0}}),Yt.jsx(Sd,{children:Yt.jsx(d,{height:12,style:{opacity:1,marginRight:"8px"}})}),Yt.jsx(LF,{children:n})]}),Yt.jsx(TF,{ref:c,className:"exploration-draggable-icon",tabIndex:0,height:"16px",onClick:e=>{e.stopPropagation()},onKeyDownCapture:e=>{qF(e,f)}})]})},_F=({id:e,itemIndex:t,dragHandleRef:n})=>{const r=Qg(lF(t));return r?Yt.jsx(jF,{id:e,dragHandleRef:n,title:r.title,type:r.type,itemIndex:t}):null},zF=()=>{const e=Qg(aF),t=Qg(gF),n=Qg(UA),r=Qg(sF),o=eb(pF);return!n&&Yt.jsx(Zz,{numberOfSections:1,numberOfItemsInSection:[e],keyExtractor:r,emptyTexts:t,onDragEnd:o,dragOverlayRenderer:bF,headerRenderer:IF,itemRenderer:_F})},FF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{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.014zM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0m-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 6 0 0 1-1.413 1.415"})})),$F=()=>{const[e,t]=tb(DA),n=Qg(MA),r=w.useRef(null),o=Qg(aF),i=L(e=>{t(e.target.value)},[t]),a=0===e.length||0===o?n("Common.Search.NoResultsAvailable"):n("ChartExploration.Table.Search.ResultsFound",o.toString());return Yt.jsxs(Sd,{ref:r,style:{position:"sticky",top:0,zIndex:1,width:"calc(100% - 24px)",backgroundColor:"var(--sprout-common-background-color-weak)",paddingTop:2,paddingRight:12,paddingLeft:12,paddingBottom:12},children:[Yt.jsx(DF,{"data-testid":"screenOnly-search-results","aria-live":"polite","aria-atomic":"true",children:a}),Yt.jsx(ih,{size:"small",fullWidth:!0,"data-testid":"chart-exploration-search-input","aria-label":n("Common.Search.AccessibilityLabel"),type:"search",defaultValue:e,placeholder:n("Common.Search"),onChange:i,startAdornment:Yt.jsx(qp,{position:"start",children:Yt.jsx(FF,{})}),inputProps:{style:{fontSize:"14px",paddingTop:6,paddingBottom:6}}})]})},HF=e=>{const t=hm();return Yt.jsx(Tu,{theme:t,children:Yt.jsx(Gg,{children:Yt.jsx(tI,{props:e,children:Yt.jsxs(Sd,{className:"exploration-panel",style:{display:"flex",flexDirection:"column"},children:[Yt.jsx($F,{}),Yt.jsx(zF,{})]})})})})},BF=e=>e.flags.isEnabled("VNA-655-STRAIGHT_TABLE_NEW_EXPLORATION")?{component:HF,classification:{tags:["exploration"],exclusive:!0}}:{component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};var VF=function(e){return e.CONTAINS="contains",e.MATCHES_EXACTLY="matches_exactly",e.STARTS_WITH="starts_with",e.ENDS_WITH="ends_with",e.BEGINNING_OF_WORD="beginning_of_word",e}(VF||{}),WF=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(WF||{}),UF=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(UF||{}),GF=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(GF||{});const KF=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)||(e=>{if(!e)return!1;if("["===e[0]&&"]"===e[e.length-1]){let t=e.substring(1,e.length-1);if(/^[A-Za-z][A-Za-z0-9_]*$/.test(t))return!0;if(t=t.replace(/\]\]/g,"]"),e===`[${t.replace(/\]/g,"]]")}]`)return!0}return!1})(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,YF=e=>{if(!Array.isArray(e))return"";let t="{<";const n=[];if(e.forEach(e=>{let t,r=`[${e.field}]${e.exclude?"-":""}={`,o="}";switch(e.type){case UF.SEARCH:t=(e=>{let t="",n="";const r=e.options?.mode;if(!r)return"";switch(r){case VF.BEGINNING_OF_WORD:t="*^",n="*";break;case VF.ENDS_WITH:t="*";break;case VF.STARTS_WITH:n="*";break;case VF.MATCHES_EXACTLY:break;case VF.CONTAINS:default:t="*",n="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${n}"`:""})(e);break;case UF.CONDITION:t=(e=>{const{options:t}=e,n=t?.mode===WF.GENERAL,r=t?.modifier?.type===GF.FIXED_VALUE,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!r&&(!t.firstValue?.aggregator||!t.firstValue?.field)||r&&!t.firstValue?.fixedValue||n&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let i,a,s="=";n&&r?(i=`${t.conditionField?.aggregator}(${KF(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!n&&r?(i="",a=`${t.firstValue?.fixedValue}`,s=""):n||r?(i=`${t.conditionField?.aggregator}(${KF(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${KF(t.firstValue?.field)})`):(i=`${KF(e.field)}`,a=`${t.firstValue?.aggregator}(total ${KF(t.firstValue?.field)})`);const l=`${s}${i}${o[0]}${a}`;let u="";if(o.length>1){if(!r&&(!t.secondValue?.aggregator||!t.secondValue?.field)||r&&!t.secondValue?.fixedValue)return"";let e,a;n&&r?(e=`${t.secondValue?.fixedValue}`,a=` and ${i}`):!n&&r?(e=`${t.secondValue?.fixedValue}`,a=""):n||r?(e=`${t.secondValue?.aggregator}(${KF(t.secondValue?.field)})`,a=` and ${i}`):(e=`${t.secondValue?.aggregator}(total ${KF(t.secondValue?.field)})`,a=` and ${i}`),u=`${a}${o[1]}${e}`}return`"${l}${u}"`})(e);break;case UF.CLEAR_SELECTION:t=`[${e.field}]=`,r="",o="";break;case UF.VALUES:default:t=e.options?.values?e.options.values.map(e=>`'${e.replace(/'/g,"''")}'`).join(","):""}""!==t&&n.push(`${r}${t}${o}`)}),0===n.length)return;return t+=`${n.join(",")}>}`,t},XF=[];for(let e=0;e<256;++e)XF.push((e+256).toString(16).slice(1));const JF=new Uint8Array(16);function ZF(e,t,n){return crypto.randomUUID?crypto.randomUUID():function(e){e=e||{};const t=e.random??e.rng?.()??crypto.getRandomValues(JF);if(t.length<16)throw new Error("Random bytes length must be >= 16");return t[6]=15&t[6]|64,t[8]=63&t[8]|128,function(e,t=0){return(XF[e[t+0]]+XF[e[t+1]]+XF[e[t+2]]+XF[e[t+3]]+"-"+XF[e[t+4]]+XF[e[t+5]]+"-"+XF[e[t+6]]+XF[e[t+7]]+"-"+XF[e[t+8]]+XF[e[t+9]]+"-"+XF[e[t+10]]+XF[e[t+11]]+XF[e[t+12]]+XF[e[t+13]]+XF[e[t+14]]+XF[e[t+15]]).toLowerCase()}(t)}(e)}const QF=()=>crypto?.randomUUID?.()??ZF(),e$=({qDimensions:e,qMeasures:t})=>[...e.map(e=>({id:e.qDef.cId,isDimension:!0,def:e})),...t.map(e=>({id:e.qDef.cId,isDimension:!1,def:e}))],t$=({previousColumns:e,nextColumns:t,qInterColumnSortOrder:n})=>{const r=new Map(e.map((e,t)=>[t,e.qDef.cId])),o=new Map(t.map((e,t)=>[e.qDef.cId,t]));return n.map(e=>{const t=r.get(e);return(void 0===t?void 0:o.get(t))??e})};class n$ extends u{#u;constructor(e,t){super(e),this.#u=t}#c(e){const t=this.hcProperties.qLayoutExclude?.allColumnOrder??{},n=Object.keys(t).length;this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:{...t,...Object.fromEntries(e.map((e,t)=>[e,n+t]))}}}#d(e){const t=this.hcProperties.qLayoutExclude?.allColumnOrder??{},n=Object.entries(t).filter(([t])=>!e.includes(t));this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:Object.fromEntries(n.map(([e],t)=>[e,t]))}}#p(e,t){const n=this.hcProperties.qLayoutExclude?.allColumnOrder??{},r={};for(const[o,i]of Object.entries(n))r[o===e?t:o]=i;this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:r}}async addDimension(e,t=!1){const n=await this.addDimensions([e],t);return 0===n.length?void 0:n[0]}async addDimensions(e,t=!1){const n=await super.addDimensions(e,t);return this.#c(n.map(e=>e.qDef.cId)),n}async removeDimension(e,t=!1){const n=await this.removeDimensions([e],t);return 0===n.length?void 0:n[0]}async removeDimensions(e,t=!1){const n=await super.removeDimensions(e,t);return this.#d(n.map(e=>e.qDef.cId)),n}async replaceDimension(e,t){const n=this.getDimensions()[e].qDef.cId,r=await super.replaceDimension(e,t),o=r.qDef.cId;return this.#p(n,o),r}async addMeasure(e,t=!1){const n=await this.addMeasures([e],t);return 0===n.length?void 0:n[0]}async addMeasures(e,t=!1){const n=await super.addMeasures(e,t);return this.#c(n.map(e=>e.qDef.cId)),n}async removeMeasure(e,t=!1){const n=await this.removeMeasures([e],t);return 0===n.length?void 0:n[0]}async removeMeasures(e,t=!1){const n=await super.removeMeasures(e,t);return this.#d(n.map(e=>e.qDef.cId)),n}async replaceMeasure(e,t){const n=this.getMeasures()[e].qDef.cId,r=await super.replaceMeasure(e,t),o=r.qDef.cId;return this.#p(n,o),r}async#f(e){const t=this.getMeasure(e);if(t){const n=this.getAlternativeMeasures().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeMeasure(n,!0),await super.addMeasure(t,!1,this.getMeasures().length)}}async#h(e){const t=this.getMeasure(e);if(t){const n=this.getMeasures().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeMeasure(n,!1),await super.addMeasure(t,!0,this.getAlternativeMeasures().length)}}async#m(e){const t=this.getDimension(e);if(t){const n=this.getAlternativeDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeDimension(n,!0),await super.reinsertDimension(t,!1,this.getDimensions().length)}}async#g(e){const t=this.getDimension(e);if(t){const n=this.getDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeDimension(n,!1),await super.addDimension(t,!0,this.getAlternativeDimensions().length)}}#b(){const e=this.hcProperties.qLayoutExclude?.allColumnOrder??{};return Object.entries(e).sort((e,t)=>e[1]-t[1]).map(([e])=>e)}async moveDimensionFromAlternative(e){await this.#m(e);const t=this.#b();this.updateColumnOrders(t)}async moveDimensionToAlternative(e){await this.#g(e);const t=this.#b();this.updateColumnOrders(t)}async moveMeasureFromAlternative(e){await this.#f(e);const t=this.#b();this.updateColumnOrders(t)}async moveMeasureToAlternative(e){await this.#h(e);const t=this.#b();this.updateColumnOrders(t)}async toggleAlternatives(e,t){for(const t of e)"dimension"===t.type?await(t.isAlternative?this.#m(t.id):this.#g(t.id)):await(t.isAlternative?this.#f(t.id):this.#h(t.id));this.updateColumnOrders(t)}updateColumnOrders(e){const t=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:n,nextAllColumnOrderById:r})=>{const o=e$({qDimensions:e,qMeasures:t}),i=[...e,...t],a=new Map(r.map((e,t)=>[e,t])),s=o.toSorted((e,t)=>{const n=a.get(e.id),r=a.get(t.id);return void 0===n||void 0===r?0:n-r}),l=s.filter(e=>e.isDimension).map(e=>e.def),u=s.filter(e=>!e.isDimension).map(e=>e.def),c=[...l,...u],d=new Map(c.map((e,t)=>[e.qDef.cId,t]));return{qDimensions:l,qMeasures:u,qInterColumnSortOrder:t$({previousColumns:i,nextColumns:c,qInterColumnSortOrder:n}),qColumnOrder:s.map(e=>d.get(e.id)).filter(e=>void 0!==e)}})({qDimensions:this.hcProperties.qDimensions,qMeasures:this.hcProperties.qMeasures,qInterColumnSortOrder:this.hcProperties.qInterColumnSortOrder,nextAllColumnOrderById:e});this.hcProperties.qDimensions=t.qDimensions,this.hcProperties.qMeasures=t.qMeasures,this.hcProperties.qColumnOrder=t.qColumnOrder,this.hcProperties.qInterColumnSortOrder=t.qInterColumnSortOrder,this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:e.reduce((e,t,n)=>(e[t]=n,e),{})}}getFilters(){return this.properties.filters??[]}getFilter(e){return this.getFilters().find(t=>t.id===e)}addFilterField(e){const t=e.qTags??e.tags,n=Array.isArray(t)&&t.includes("$numeric"),r=e.isDerived,o=Array.isArray(this.properties.filters)?this.properties.filters:[],i={type:"values",field:r?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:QF(),qTags:Array.isArray(t)?t:[],isNumeric:n};return o.push(i),this.properties.filters=o,this.properties.qHyperCubeDef.qContextSetExpression=YF(o),i}addFilters(e){const t=[];for(const n of e)t.push(this.addFilterField(n));return t}#v(e){const t=this.getFilters();return t.splice(e,1),this.properties.qHyperCubeDef.qContextSetExpression=YF(t),t}removeFilters(e){if(0===e.length)return[];const t=[...e].sort((e,t)=>t-e),n=this.getFilters().filter((t,n)=>e.includes(n));for(const e of t)this.#v(e);return n}getLabels(){return this.getMeasures().reduce((e,t)=>(!t.qLibraryId&&t.qDef.qLabel&&e.push(t.qDef.qLabel),e),[])}getAddDimensionLabel(){return this.#u.get("Visualization.Requirements.AddDimension")}canColorBy(){return!1}}const r$=(e,t)=>{if(!e)return-1;const n=e.indexOf(t);if(-1===n)return-1;for(let n=0;n<e.length;++n)e[n]>t&&e[n]--;return e.splice(n,1),n};function o$(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function i$(e){return e>0?0:1}function a$(e){return e.translator.get("Visualizations.Descriptions.Column")}function s$(e){return{measures:{min:i$,max:1e3,description:()=>a$(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;o$(r,n.getDimensions().length+n.getMeasures().length-1)},remove(e,t,n,r){const{qColumnOrder:o}=n.hcProperties,i=(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r;r$(o,i)}},dimensions:{min:i$,max:1e3,description:()=>a$(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;return o$(r,n.getDimensions().length-1),e},remove(e,t,n,r){if(e?.isAlternative)return;const{qColumnOrder:o}=n.hcProperties;r$(o,r)}}}}const l$=e=>{const t=new n$({},e.translator),n=hb(e);return{properties(r){if(!("qHyperCubeDef"in r))return r;const{qHyperCubeDef:o}=r,i=o.qLayoutExclude?.qHyperCubeDef,a=e.flags.isEnabled("qcb-35151-fix-duplicate-columns"),s=new Set,l=[];let u=0,c=0,d=0;[...o.qDimensions,...o.qMeasures,...i?.qDimensions??[],...i?.qMeasures??[]].forEach(e=>{u++;const t=e.qDef?.cId;if((e=>"string"==typeof e&&e.length>0)(t))if(s.has(t)){if(c++,a){const t=QF();e.qDef={...e.qDef,cId:t},l.push(t)}}else s.add(t),l.push(t);else if(d++,a){const t=QF();e.qDef={...e.qDef,cId:t},l.push(t)}});const p=c+d;if(0===p)return r;n.warn({msg:"migrate: column cId issues detected",payload:{issueCount:p,totalColumnCount:u,duplicateCount:c,missingCount:d}});const f=r.components?.find(e=>"theme"===e.key);return e.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING")&&f?.nullValues&&!f.dimensionNullValues&&(f.dimensionNullValues={...f.nullValues}),a?(t.setProperties(r),t.updateColumnOrders(l),n.warn({msg:"migrate: column cId cleanup completed",payload:{replacementCount:p}}),r):r}}};let u$=function(e){return e.Text="text",e.Link="link",e.Image="image",e.ImagesInIndentMode="imagesInIndentMode",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e.EditableSelector="editableSelector",e.EditableDate="editableDate",e}({}),c$=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const d$=e=>{switch(e?.type){case"url":return u$.Link;case"image":return u$.Image;case"indicator":return u$.Indicator;case"miniChart":return u$.MiniChart;default:return u$.Text}},p$=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,n,r){const{qIndentMode:o}=r.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&e||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}),f$=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>d$(e.qDef.representation)===u$.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,n)=>{if(!n.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:r,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=n.properties.qHyperCubeDef;let s=!1;const l=i?.indexOf(e)??1/0;return(r?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},h$=e=>{const{anything:t}=e,n=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:p$({isImagesEnabled:n}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>d$(e.qDef.representation)===u$.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>d$(e.qDef.representation)===u$.Link&&e.qDef.representation?.urlPosition===c$.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>d$(e.qDef.representation)===u$.Link&&e.qDef.representation?.urlPosition===c$.Attribute},...f$(n)}},m$=(e,t)=>{const{anything:n}=e,r=n.sense?.isUnsupportedFeature,o=!r?.("tableImages")&&t[u$.Image],i=!r?.("qMiniChartDef")&&t[u$.MiniChart],a=!r?.("tableIndicators")&&t[u$.Indicator],s=o&&t[u$.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,n)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&n.push({value:"miniChart",translation:"Common.MiniChart"}),n})(n)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>d$(e.qDef.representation)===u$.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:i?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var g$,b$={};var v$=(g$||(g$=1,function(e){(()=>{var t={370: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)},s=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},l=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,h=!1;for("boolean"==typeof d&&(h=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=l(d,n),d!==(o=l(t,n))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,c,o)})):void 0!==o&&s(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:()=>Pe});var i=r(370),a=r.n(i);const s=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 s=a[i];return a[i]=n,{updated:n,previous:s}}return delete a[i],!1},l=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},u={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 c="".concat(" ","(").concat(" "),d="".concat(" ",")").concat(" ");function p(e){return c+e+d}function f(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],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function h(e){return!(!e.fullAccumulation&&!e.fullRange)}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function g(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 b(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function v(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function y(e){return void 0===e?")":", 0, ".concat(e,")")}function x(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function S(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(x("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(x("MaxString(".concat(t,")")),")'\"}")}function w(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,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=S(f(r[0],o),b(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(r&&2===r.length){var c=f(r[0],o),d=f(r[1],o),p=b(0),h=b(1),m=S(c,p),g=S(d,h);return"".concat(a,"({1<").concat(m,",").concat(g,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function C(e){return"".concat(e,"(")}function E(e){var t=e.properties,n=e.layout;return l(t,"qHyperCubeDef.qDimensions",l(n,"qHyperCube.qDimensionInfo",[])).length}const R={isFullRange:h,getNumDimensions:E,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=p(g(t));if(!n.showExcludedValues)return a;var s=w({modifier:n,dimensions:r,dimensionAndFieldList:o}),l=i?"":", 0";if(r&&1===r.length){var u=b(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var c=b(0),d=b(1);return"If(Count(".concat(c,") * Count(").concat(d,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:m,getNumStepComp:function(e,t){if(!h(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return m(e,t)},getAboveCompPrefix:v,getAboveCompSuffix:y,getAboveComp:function(e,t,n,r){return v(e,t)+n+y(r)},getFunctionPrefix:C,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return C(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:w,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===E({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=b(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:g,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(c);if(-1!==n){var r=t.indexOf(d);if(-1!==r)return t.substring(n+c.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach(function(n){void 0===e[n]&&(e[n]=t[n])})},isNumeric:f,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 s=E({properties:t,layout:n});return s>=o&&s<=a},getExpressionWithMarkers:p,canExtract:function(e){var t=e.indexOf(c),n=e.indexOf(d);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:b,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=u.OPTIONS.find(function(t){return t.value===e.decomposition});return t?u.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(u.EXPRESSIONS).find(function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return u.EXPRESSIONS[n]&&r.includes(u.EXPRESSIONS[n].toLowerCase())&&(t=n),n}),t}};function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function I(e){return I="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},I(e)}var k=a().bind(null,!0),P={},M=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===I(e)}function T(e){return void 0===e}function O(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function q(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]=T(e[n||t])?i:e[t],e=e[n||t]}}),e}function L(e,t){var n=!0;if(D(e)&&D(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(M(e)&&M(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}P.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?k({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);L(i,a)||O(t,o)||(T(a)?r.push({op:"add",path:s,value:i}):D(i)&&D(a)?r=r.concat(P.generate(a,i,s)):M(i)&&M(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&T(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(!T(t[0])&&T(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),o.splice(s,1)):r=r.concat(P.generate(o[s],t[i],"".concat(n,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){T(t[o])&&!O(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})}),r},P.apply=function(e,t){t.forEach(function(t){var n,r,o=q(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(M(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(M(a)&&M(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return A(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 A(e,t);var n={}.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)?A(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(D(a)&&D(t.value))n=a,Object.keys(n).forEach(function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!O(n,e)&&delete n[e]}),k(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=q(e,t.from);M(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(M(o)?o.splice(+i,1):delete o[i])})},P.clone=function(e){return k({},e)},P.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},P.updateObject=function(e,t){Object.keys(e).length?P.apply(e,P.generate(e,t)):k(e,t)};const N=P;var j="accumulation";function _(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function z(e,t){var n=function(e,t){var n=l(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 F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const $={translationKey:"properties.modifier.accumulation",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return R.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,i=e.numDimensions,a=e.dimensionAndFieldList;if(!n)return t;var s=i;void 0===s&&(s=R.getNumDimensions({properties:r,layout:o}));var u=l(r,"qHyperCubeDef.qDimensions",[]),c=R.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:a}),d=R.getNumStepComp(n,s),p=R.getAboveComp(n,s,c,d),f=R.getRangeComp("RangeSum",p);if(R.needDimension({modifier:n,properties:r,layout:o})){var h=R.getDimComp(u,1),m=R.getDimComp(u,0),g=R.getAggrComp(f,h,m);f=n.showExcludedValues?R.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:R.extractInputExpression,initModifier:function(e){R.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(z(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(z(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(z(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(z(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=_(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=_(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return R.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=_(t,e);return i&&!i.disabled}}}};var H="movingAverage";function B(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===H)return n[r]}function V(e,t){var n=function(e,t){var n=l(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 W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const U={translationKey:"properties.modifier.movingAverage",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=a;void 0===u&&(u=R.getNumDimensions({properties:o,layout:i}));var c=l(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=R.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=R.getNumStepComp(r,u),h=R.getAboveComp(r,u,p,f);if(r.nullSuppression)t=R.getRangeComp("RangeAvg",h);else{var m=R.getRangeComp("RangeSum",h),g=function(e,t){var n=R.getRowNoComp(e,t);if(!R.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(m," / ").concat(g)}var b=t;if(R.needDimension({modifier:r,properties:o,layout:i})){var v=R.getDimComp(c,1),y=R.getDimComp(c,0),x=R.getAggrComp(b,v,y);b=r.showExcludedValues?R.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:R.extractInputExpression,initModifier:function(e){R.initModifier(e,W)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(V(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(V(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(V(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(V(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=B(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=B(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(V(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(V(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return R.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=B(t,e);return i&&!i.disabled}}}};var G="timeSeriesDecomposition";function K(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===G)return n[r]}function Y(e,t){var n=function(e,t){var n=l(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===G)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var X={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const J={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?R.generateTSDExpression(n,t,r):t},extractInputExpression:R.extractInputExpression,initModifier:function(e,t){R.initModifier(e,X),""===e.decomposition&&t&&(e.decomposition=R.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(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:u.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=K(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=K(t,e);return n&&!n.fullRange}}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=K(t,e);return i&&!i.disabled}}}};var Z="difference";function Q(e,t){var n=function(e,t){var n=l(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 ee={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const te={translationKey:"properties.modifier.difference",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:R.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!n)return t;var s=i;void 0===s&&(s=R.getNumDimensions({properties:r,layout:o}));var u=l(r,"qHyperCubeDef.qDimensions",[]),c=R.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:a}),d=R.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(R.needDimension({modifier:n,properties:r,layout:o})){var f=R.getDimComp(u,1),h=R.getDimComp(u,0),m=R.getAggrComp(p,f,h);p=n.showExcludedValues?R.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:a,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(ee).forEach(function(t){void 0===e[t]&&(e[t]=ee[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Q(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(Q(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(Q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return R.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=function(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===Z)return n[r]}(t,e);return i&&!i.disabled}}}};var ne="normalization";function re(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===ne)return n[r]}function oe(e,t){var n=function(e,t){var n=l(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===ne)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ae={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function se(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(R.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function ue(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,n){return 0===e&&t>1?"<".concat(R.getDimDefWithWrapper(n),">"):""}const de={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:R.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!n)return t;var s=i;void 0===s&&(s=R.getNumDimensions({properties:r,layout:o}));var u=l(r,"qHyperCubeDef.qDimensions",[]),c=R.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:a}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a,s){var l=se(t),u=le(t,n,r),c=""===l&&""===u?"":l||u,d=ue(o,i),p=ce(o,i,a),f=function(e){for(var t=[],n=0;n<e;n++)t[n]=R.getDimDefWithWrapper(n);return t.join(", ")}(i);return s?"(If(".concat(e," < 0, null(), ").concat(e,"))/ Sum(").concat(c," ").concat(d).concat(p," Aggr(").concat(c," RangeMax( 0, ").concat(e,"), ").concat(f,"))"):"".concat(e,"/ Sum(").concat(c," ").concat(d).concat(p," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension,n.ignoreNegative)},initModifier:function(e){Object.keys(ae).forEach(function(t){void 0===e[t]&&(e[t]=ae[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]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(oe(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){if(1===e){var n=ie(t,0);t.splice(n,1)}return t}(re(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(oe(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===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(oe(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(oe(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){if(e<2){var n=ie(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t){if(0===e){var n=ie(t,1);t.splice(n,1)}return t}(re(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(oe(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===(re(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(ne))return!1;var i=re(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:se,getFieldSelectionComp:le,getTotalComp:ue,getSelectedDimComp:ce};var pe="library id deleted",fe="qDef.qDef",he="qDef.base.qDef",me="qLibraryId",ge="qDef.base.qLibraryId",be="qDef.qLabel",ve="qDef.qLabelExpression",ye="qDef.base.qLabel",xe="qDef.base.qLabelExpression",Se="qDef.qAggrFunc",we="qDef.base.qAggrFunc",Ce="qDef.base";const Ee={getExpression:function(e){var t=l(e,he);return void 0!==t?t:l(e,fe)},getExpressionRef:function(e){return void 0!==l(e,he)?he:fe},getLibraryIdRef:function(e){return l(e,ge)?ge:me},getLibraryId:function(e){return l(e,ge)||l(e,me)},getLabelRef:function(e){return l(e,Ce)?ye:be},getLabelExpressionRef:function(e){return l(e,Ce)?xe:ve}};var Re={initBase:function(e,t){(t||Re.isValid(e))&&(s(e,he,l(e,fe)),s(e,ge,l(e,me)),s(e,ye,l(e,be)),s(e,xe,l(e,ve)))},restoreBase:function(e){Re.isValid(e)&&(s(e,fe,l(e,he)),s(e,me,l(e,ge)),s(e,be,l(e,ye)),s(e,ve,l(e,xe)),l(e,Se)&&l(e,we)&&s(e,Se,l(e,we)),delete e.qDef.base)},isValid:function(e){var t=l(e,he),n=l(e,ge);return void 0!==t||void 0!==n}};const Ae=Re;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 ke={accumulation:$,movingAverage:U,difference:te,normalization:de,timeSeriesDecomposition:J};const Pe={modifiers:ke,apply:De,applyModifiers:Te,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:qe,getActiveModifier:Le,initBase:Ae.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return ke[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return ke[e]&&ke[e].isApplicable({properties:n,layout:r})})},measureBase:Ee,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=_e(e);We({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Xe({modifiers:t,properties:n,layout:r}))}),o&&!i},ifEnableTotalsFunction:Ne};var Me={};function De(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,n=e.properties,r=e.isSnapshot,o=void 0!==r&&r,i=e.masterItem,s=!1;Me[t.id]=Me[t.id]||{isFirstTime:!0};var u=Me[t.id].isFirstTime;if(Me[t.id].isFirstTime=!1,n&&"object"===Ie(n))return Te({model:t,properties:n});var c=t?t.layout:void 0,d=l(c,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(s);var p=l(c,"qHyperCube.qMeasureInfo"),f=Me[t.id].lastReloadTime;if(Me[t.id].lastReloadTime=l(t,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var h=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return l(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ve({measure:e,properties:n,layout:r})})}({measures:t,layout:n})}({measures:p,layout:c,model:t,lastReloadTime:f});return h||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 We({modifiers:_e(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})}))}({measures:p,layout:c,masterItem:i,isFirstTime:u})?t.getEffectiveProperties().then(function(e){var n=a()(!0,{},e);Fe(n);var r=Je(n);return Ue({model:t}).then(function(o){return Ge({libraryIds:r,model:t}).then(function(r){return h&&function(e){var t=e.properties;je(t).forEach(function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach(function(e){if("object"===Ie(e)&&!e.disabled){if(n++,"object"!==Ie(ke[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=ke[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&He(t)&&R.simplifyExpression(t.qDef.base.qDef)!==R.simplifyExpression(r)&&(t.qDef.base.qDef=r)}})}}({measure:e,properties:t})})}({properties:n}),Te({model:t,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:i,libraryItemsProps:r,dimensionAndFieldList:o})})}).catch(function(){return Promise.resolve(s)})}):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Ie(e.base)})}(p)?t.getEffectiveProperties().then(function(e){return function(e){var t=e.model,n=e.properties,r=Je(n);return Ze({model:t,libraryIds:r}).then(function(){var e=a()(!0,{},n);return je(n).forEach(function(e){return Oe(e)}),Ye({oldProperties:e,newProperties:n,model:t})})}({model:t,properties:e})}):Promise.resolve(s)}function Te(e){var t=e.model,n=e.oldProperties,r=e.properties,o=e.measures,i=e.runUpdateIfChange,s=void 0!==i&&i,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?a()(!0,{},r):r),Fe(r);var p=Je(r);return Ze({model:t,libraryIds:p,masterItem:u}).then(function(){return function(e){var t=e.measures,n=e.properties,r=e.model,o=e.libraryItemsProps,i=e.dimensionAndFieldList;if(t||(t=je(n)),!t.length)return Promise.resolve();if(!o&&!qe({measures:t,properties:n}))return t.forEach(function(e){return Oe(e)}),Promise.resolve();var s=o?void 0:Je(n);return Ue({model:r,dimensionAndFieldList:i}).then(function(e){return Ge({libraryIds:s,model:r,libraryItemsProps:o}).then(function(r){t.forEach(function(t){var o=t.qDef.modifiers;r&&We({modifiers:o,properties:n})?(function(e){var t=e.measure,n=e.properties,r=e.libraryItemsProps,o=e.dimensionAndFieldList,i=0;Ae.isValid(t)||Ae.initBase(t,!0);var s=t.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach(function(e){if("object"===Ie(e)&&!e.disabled){if(i++,"object"!==Ie(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(i>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");ke[e.type].initModifier(e,t);var s=t.qLibraryId||c&&c.qLibraryId;s?function(e){var t=e.measure,n=e.modifier,r=e.properties,o=e.dimensionAndFieldList,i=e.libraryItemsProps[e.libraryId],s=i.qMeasure.qDef,l=""===s?s:ke[n.type].generateExpression({expression:s,modifier:n,properties:r,dimensionAndFieldList:o});n.outputExpression=l,t.qDef.qDef=n.outputExpression,(t.qDef.qLabel||i.qMeasure.qLabel)&&(t.qDef.qLabel=t.qDef.base.qLabel||i.qMeasure.qLabel),(t.qDef.qLabelExpression||i.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=i.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&i.qMeasure.qNumFormat&&(t.qDef.qNumFormat=t.qDef.base.qNumFormat||i.qMeasure.qNumFormat,t.qDef.isCustomFormatted=i.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=i.qMeasure.coloring,n.base=a()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:s,properties:n,libraryItemsProps:r,dimensionAndFieldList:o}):function(e){var t=e.measure,n=e.modifier,r=e.properties,o=e.dimensionAndFieldList;"function"==typeof ke[n.type].updateModifier&&ke[n.type].updateModifier(n,r.qHyperCubeDef);var i=Ee.getExpression(t),s=""===i?i:ke[n.type].generateExpression({expression:i,modifier:n,properties:r,dimensionAndFieldList:o});n.outputExpression=s,t.qDef.qDef=n.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||i,n.base=a()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:n,dimensionAndFieldList:o}),function(e){var t=l(e,"qDef.qAggrFunc");"Expr"!==t||Ne(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Ne(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}})}({measure:t,properties:n,libraryItemsProps:r,dimensionAndFieldList:e}),$e(t)):Oe(t)})})})}({measures:o,properties:r,model:t,libraryItemsProps:c,dimensionAndFieldList:d}).then(function(){return s?Ye({oldProperties:n,newProperties:r,model:t}):Promise.resolve(!1)})}).catch(function(){return Promise.resolve(!1)})}function Oe(e){!function(e){var t=_e(e);return Array.isArray(t)&&t.some(function(e){return"object"===Ie(e)&&!e.disabled&&!ke[e.type]})}(e)?Ae.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(e)}function qe(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return We({modifiers:_e(e),properties:n,layout:r})})}function Le(e){var t=_e(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(ke[r.type]&&!r.disabled)return r}}function Ne(e){var t=Le(e);return!t||ke[t.type].enableTotalsFunction(e)}function je(e){return l(e,"qHyperCubeDef.qMeasures",[]).concat(l(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function _e(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function ze(e){return l(e,"outputExpression.qValueExpression.qExpr")||l(e,"outputExpression")}function Fe(e){je(e).forEach(function(e){return function(e){var t=Le(e);t&&(void 0!==t.outputExpression&&ze(t)!==e.qDef.qDef?delete e.qDef.base:!Ae.isValid(e)&&t.base&&(e.qDef.base=a()(!0,{},t.base)))}(e)})}function $e(e){var t=_e(e);Array.isArray(t)&&t.forEach(function(t){"object"===Ie(t)&&(t.disabled||!ke[t.type]&&ze(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function He(e){return e.base||e.qDef&&e.qDef.base}function Be(e){var t=He(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!Be(t)&&We({modifiers:_e(t),properties:n,layout:r})}function We(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||!ke[e.type])&&(void 0===o[e.type]&&(o[e.type]=ke[e.type].isApplicable({properties:n,layout:r})),o[e.type])})}function Ue(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 Ge(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={},s=[];return o.forEach(function(e){var t=n.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=n.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a}).catch(function(){return null})}function Ke(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ye(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(l(t,"qHyperCubeDef.qMeasures"),Ke)!==JSON.stringify(l(n,"qHyperCubeDef.qMeasures"),Ke)||JSON.stringify(l(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ke)!==JSON.stringify(l(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ke);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&l(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):function(e,t,n){if(!e)return Promise.resolve();var r=N.generate(t,n);return a()(!0,t,n),r&&r.length?(r=r.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(r,!0)):Promise.resolve()}(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then(function(){return o}):Promise.resolve(o)}function Xe(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&&ke[e.type]&&ke[e.type].needDimension({modifier:e,properties:n,layout:r})})}function Je(e){var t=je(e),n=[],r=[],o=!1;return t.forEach(function(t){var r=_e(t);if(We({modifiers:r,properties:e})){var i=Be(t);i&&n.push(i),o=o||Xe({modifiers:r,properties:e})}}),l(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&r.push(t)}),{measureLibraryIds:n,dimensionLibraryIds:r}}function Ze(e){var t=e.model,n=e.libraryIds,r=e.masterItem;return!r&&r!==pe&&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={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=l(e,"qInfo.qType");return n&&a[n]&&a[n].forEach(function(n){t[n]=l(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(){Object.keys(r).forEach(function(e){o[e]||i[e]||(r[e].listener.dispose(),r[e].unbindCloseListnener(),delete r[e])})}var d=function(e,t){return e.once("closed",t),function(){return e.removeListener("closed",t)}};function p(e,o){return t.app[o](e).then(function(t){r[e]={listener:t.layoutSubscribe(u),unbindCloseListnener:d(t,function(){return e=t.id,n(pe),delete r[e],void c();var e}),enabled:!1,properties:s(t.layout)}}).catch(function(){})}return{subscribe:function(e){var n=e.measureLibraryIds,a=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),i={},t.forEach(function(e){i[e]=!0})}({measureLibraryIds:n,dimensionLibraryIds:a}),c(),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!r[e]&&s.push(p(e,"getMeasure"))}),Object.keys(i).forEach(function(e){i[e]&&!r[e]&&s.push(p(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach(function(e){r[e].listener.dispose(),r[e].unbindCloseListnener()}),r={}}}}({model:t,callback:function(e){return De({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),Me[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}for(var Qe in e.default=o.default,o)-1===["default"].indexOf(Qe)&&(e[Qe]=o[Qe]);Object.defineProperty(e,"__esModule",{value:!0})})()}(b$)),b$),y$=Bt(v$);const x$="TOTAL_OFF",S$={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},w$={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}},C$=e=>({type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!y$.hasActiveModifiers({measures:[e],properties:t.properties})||y$.ifEnableTotalsFunction(e)?[{value:""===e.qDef.qAggrFunc?"":"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:e.anything.sense?.isUnsupportedFeature?.("totals")?"None":"Expr"}}}},show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),E$={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Qm.Auto,translation:"Common.Auto"},{value:Qm.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:Qm.Pixels,translation:"Object.Table.Column.Pixels"},{value:Qm.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Qm.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:"200",show:e=>e.qDef.columnWidth?.type===Qm.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===Qm.Percentage}},R$=e=>({...S$,...e.flags.isEnabled("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?{columnExpression:{type:"items",grouped:!0,items:[{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},{type:"items",items:[{component:"text",translation:"properties.Header",style:"sHeader"},{ref:"qDef.headerColor.background",translation:"Object.Table.Measure.BackgroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""},{ref:"qDef.headerColor.foreground",translation:"Object.Table.Measure.ForegroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""}]},{type:"items",items:[{component:"text",translation:"properties.Content",style:"sHeader"},{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",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},tableCellStyling:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}},...w$,...E$}),A$=e=>({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},subTotalGroup:{type:"items",show:e.flags.isEnabled("TLV-2303-SUB-TOTALS")&&!e.anything.sense?.isUnsupportedFeature?.("totals"),items:[{uses:"divider"},{type:"string",component:"switch",translation:"properties.showSubTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:x$,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:x$,translation:"properties.off"}},{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"Common.Label",defaultValue:()=>e.translator.get("properties.subTotals"),show:e=>e.qOtherTotalSpec?.qTotalMode!==x$},{uses:"divider"}]},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}}),I$=e=>{const t=e.anything.sense?.isUnsupportedFeature?.("modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>t?!!e.qLibraryId:!(!e.qLibraryId&&!e.qDef.base?.qLibraryId)},inlineMeasure:{component:"inline-measure",show:e=>t?!e.qLibraryId:!(e.qLibraryId||e.qDef.base?.qLibraryId)},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:C$(e)}},k$=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:A$(e)},presentation:{type:"items",translation:"properties.presentation",items:{...R$(e),...h$(e)}}}}}),P$=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:I$(e)},presentation:{type:"items",translation:"properties.presentation",items:{...R$(e),...m$(e,{[u$.Image]:!0,[u$.Indicator]:!0,[u$.MiniChart]:!0})}}}}}),M$=e=>({...k$(e),...P$(e)}),D$=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...M$(e)},highlightSelected:!0},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}},highlightSelected:!0}}}),T$=e=>({type:"items",items:[{ref:e,type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"}]}),O$=e=>T$("dimensionNullValues"===e?"nullValueRepresentation.dimensionText":"nullValueRepresentation.text"),q$={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}},L$=e=>({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:!e.anything.sense?.isUnsupportedFeature?.("totals")}),N$=(e,t,n,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:r??!1,defaultValue(e,t,o){const i=r?.(e,t,o)??!1,a=o.theme.current(),s=n(a,i);return{color:"transparent"===s?"none":s}}}),j$=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},_$=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{const r=t.fontFamily??"Source Sans Pro, sans-serif",o=t.fontFamilies??[],i=Array.from(new Set([e,r,...o])),a=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...i.sort().map(e=>j$(e,!0))],s=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...de().filter(e=>!i.includes(e)).map(e=>j$(e,!0))];return[...a,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),z$=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],F$=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{const r=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,r,...o])),a=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...i.sort((e,t)=>parseInt(e,10)-parseInt(t,10)).map(e=>j$(e,!1))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...z$.filter(e=>!i.includes(e)).map(e=>j$(e,!1))];return[...a,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),$$=({section:e,defaultFontStyle:t,translator:n,flags:r,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:_$({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:F$({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:n}),fontColor:N$(`${e}.fontColor`,void 0,t=>o(t,e,"color")??t.color)}},background:N$(`${e}.background`,"properties.background",(t,n)=>{const r=n?bm.WHITE:bm.TRANSPARENT;return o(t,e,"backgroundColor")??r},a)}}}}),H$=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r,isNullValueText:o,translation:i})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{nullValueText:o?O$(e):void 0,content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:N$(`${e}.fontColor`,void 0,t=>r(t,e,"color")??t.color)}},background:N$(`${e}.background`,"properties.background",t=>r(t,e,"backgroundColor")??n??"transparent")}}}}),B$=(e,t,n)=>{switch(t){case"header":return e.object?.straightTableV2?.dimension?.label?.name?.[n];case"dimensionValues":return e.object?.straightTableV2?.dimension?.label?.value?.[n];case"measureValues":return e.object?.straightTableV2?.measure?.label?.value?.[n];case"totalValues":return e.object?.straightTableV2?.total?.label?.value?.[n];case"subTotalValues":return e.object?.straightTableV2?.subTotal?.label?.value?.[n];case"nullValues":case"dimensionNullValues":return e.object?.straightTableV2?.null?.label?.value?.[n];default:return}},V$=e=>e.grid?.zebraStripes?.show,W$={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){null!=e?.content?.rowHeight&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==e?.content&&(e.content.rowHeight=void 0)}},U$=e=>e?.content?.hoverEffect,G$={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:U$,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:U$,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},K$=(e,t,{properties:n})=>"sn-table"===n.visualization&&!0===n.usePagination,Y$=e=>e.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),X$=({flags:e,translator:t})=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,items:{headerSection:$$({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:B$,disableNoneCallback:K$}),dimensionValueSection:$$({section:"dimensionValues",translator:t,flags:e,getThemeValue:B$}),measureValueSection:$$({section:"measureValues",translator:t,flags:e,getThemeValue:B$}),totalRowSection:$$({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:B$,disableNoneCallback:K$}),subTotalRowSection:e.isEnabled("TLV-2303-SUB-TOTALS")?$$({section:"subTotalValues",defaultFontStyle:["bold"],translation:"properties.subTotals",translator:t,flags:e,getThemeValue:B$,disableNoneCallback:K$}):void 0,...Y$(e)?{dimensionNullSection:H$({section:"dimensionNullValues",translation:"properties.table.dimensionNullValues",fallbackBackground:bm.NULL_VALUE_BACKGROUND,getThemeValue:B$,isNullValueText:!0}),nullValues:H$({section:"nullValues",translation:"properties.table.measureNullValues",fallbackBackground:bm.NULL_VALUE_BACKGROUND,getThemeValue:B$,isNullValueText:!0})}:{nullValues:H$({section:"nullValues",fallbackBackground:bm.NULL_VALUE_BACKGROUND,getThemeValue:B$,isNullValueText:!1})},grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...W$},border:N$("grid.border","properties.border",e=>e.object?.straightTableV2?.grid?.borderColor??bm.BORDER_MEDIUM),divider:N$("grid.divider","properties.pivot.divider",e=>e.object?.straightTableV2?.grid?.divider?.borderColor??bm.BORDER_HEAVY)}}}},hoverEffectSection:G$,zebraStripes:{translation:"properties.zebraStripes",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{zebraStripesEnable:{ref:"grid.zebraStripes.show",translation:"properties.zebraStripes.enable",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},zebraStripesColorOdd:{show:V$,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:V$,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:V$,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:V$,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),J$=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[X$(e),L$(e),{type:"items",items:[{component:"text",translation:"properties.accessibilityOptions"},{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1},{ref:"accessibleHeader",translation:"properties.increaseAccessibility",type:"boolean",component:"checkbox",undefinedValue:!0,defaultValue:!1}]},{type:"items",translation:"Object.Table.WrapText",items:[{component:"text",translation:"Object.Table.Multiline"},{ref:"multiline.wrapTextInHeaders",type:"boolean",translation:"Object.Table.Multiline.WrapTextInHeaders",component:"checkbox",defaultValue:!0},{ref:"multiline.wrapTextInCells",type:"boolean",translation:"Object.Table.Multiline.WrapTextInCells",component:"checkbox",defaultValue:!0}]},{ref:"hideHeader",translation:"properties.hideHeader",type:"boolean",component:"checkbox",defaultValue:!1},e.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING")?void 0:O$()]},...q$}}),Z$={uses:"sorting"},Q$={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},eH=e=>({type:"items",component:"accordion",items:{data:D$(e),sorting:Z$,addOns:Q$,settings:J$(e)}});function tH(e){return{definition:eH(e),exploration:BF(e),data:s$(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:e.anything.sense?.isUnsupportedFeature?.("modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(t,n,r,o,i){const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return Ev({exportFormat:t,initialProperties:n,extension:r,hypercubePath:o,defaultPropertyValues:a,viewDataMode:i,env:e})},exportProperties:(e,t)=>vv({propertyTree:e,hyperCubePath:t}),propertyHandler:t=>new n$(t,e.translator),usePropertyHandler:"sn-table-data",migrate:l$(e)}}const nH=e=>{const t=e.get(tv);return a(()=>()=>{t.unmount()},[t]),t};var rH,oH={exports:{}};
|
|
102
|
+
*/function SR(){if(bR)return KS;bR=1,Object.defineProperty(KS,"__esModule",{value:!0}),KS.default=function(t){return(0,e.createStyles)(t)};var e=xR;return KS}var wR,CR,ER={},RR={};function AR(){if(wR)return RR;wR=1;var e=zl();Object.defineProperty(RR,"__esModule",{value:!0}),RR.default=void 0;var t=(0,e(VS()).default)();return RR.default=t,RR}function IR(){if(CR)return ER;CR=1;var e=zl();Object.defineProperty(ER,"__esModule",{value:!0}),ER.default=void 0;var t=e(gu()),n=xR,r=e(AR());var o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.makeStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return ER.default=o,ER}var kR,PR,MR={},DR={};function TR(){if(kR)return DR;kR=1;var e=zl();Object.defineProperty(DR,"__esModule",{value:!0}),DR.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},DR.getUnit=n,DR.toUnitless=r,DR.convertLength=function(e){return function(t,o){var i=n(t);if(i===o)return t;var a=r(t);if("px"!==i)if("em"===i)a=r(t)*r(e);else if("rem"===i)return a=r(t)*r(e),t;var s=a;if("px"!==o)if("em"===o)s=a/r(e);else{if("rem"!==o)return t;s=a/r(e)}return parseFloat(s.toFixed(5))+o}},DR.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},DR.fontGrid=function(e){var t=e.lineHeight,n=e.pixels,r=e.htmlFontSize;return n/(t*r)},DR.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},n,"".concat(r).concat(a)),p=(o-r)/l[l.length-1];return l.forEach(function(e){var o=r+p*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*o)/1e4).concat(a))}),d};var t=e(ay());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return DR}function OR(){if(PR)return MR;PR=1;var e=zl();Object.defineProperty(MR,"__esModule",{value:!0}),MR.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,r.convertLength)(h.htmlFontSize),g=a.map(function(e){return f.breakpoints.values[e]});return p.forEach(function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,r.isUnitless)(u)&&!l)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,r.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),f};var t=e(gu()),n=Yv,r=TR();return MR}var qR,LR={};function NR(){if(qR)return LR;qR=1;var e=zl();Object.defineProperty(LR,"__esModule",{value:!0}),LR.default=void 0;var t=e(gu()),n=xR,r=e(AR()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return LR.default=o,LR}var jR,_R={};function zR(){if(jR)return _R;jR=1;var e=zl();Object.defineProperty(_R,"__esModule",{value:!0}),_R.default=function(){return(0,t.useTheme)()||n.default};var t=xR;e(w);var n=e(AR());return _R}var FR,$R={};function HR(){if(FR)return $R;FR=1;var e=zl();Object.defineProperty($R,"__esModule",{value:!0}),$R.default=void 0;var t=e(gu()),n=xR,r=e(AR());var o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return $R.default=o,$R}var BR,VR,WR={};function UR(){if(BR)return WR;BR=1;var e=zl();Object.defineProperty(WR,"__esModule",{value:!0}),WR.default=void 0;var t=xR,n=e(AR()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return WR.default=r,WR}function GR(){return VR||(VR=1,function(e){var t=zl(),n=(Av||(Av=1,function(e){var t=Mv().default;function n(r,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=n=function(e,n){if(!n&&e&&e.__esModule)return e;var r,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(r=n?a:i){if(r.has(e))return r.get(e);r.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?r(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(r,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(kv)),kv.exports);Object.defineProperty(e,"__esModule",{value:!0});var r={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=Xv();Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var i=n(VS()),a=t(GS()),s=t(SR()),l=t(IR()),u=t(OR()),c=t(NR()),d=zS();Object.keys(d).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))});var p=t(zR()),f=t(HR()),h=t(UR()),m=xR}(Iv)),Iv}var KR=GR();KR.alpha(Tt.GREYSCALE_0,.05),KR.alpha(Tt.GREEN_PALE,.5),KR.alpha(Tt.BLUE_PALE,.5),KR.alpha(Tt.GREEN_PALE,.5),KR.alpha(Tt.BLUE_PALE,.5),KR.alpha(Tt.GREEN_PALE,.5),KR.alpha(Tt.BLUE_PALE,.5),KR.alpha(Tt.GREEN_PALE,.5),KR.alpha(Tt.BLUE_PALE,.5),KR.alpha(Tt.GREEN_PALE,.5),KR.alpha(Tt.BLUE_PALE,.5),t.meta.env&&t.meta.env.MODE;!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},n){var r;let o,i;const a={getItem:(t,r)=>{var a,s;const l=e=>{if(o!==(e=e||"")){try{i=JSON.parse(e,null==n?void 0:n.reviver)}catch(e){return r}o=e}return i},u=null!=(s=null==(a=e())?void 0:a.getItem(t))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(u)?u.then(l):l(u)},setItem:(t,n)=>{var r;return null==(r=e())?void 0:r.setItem(t,JSON.stringify(n,void 0))},removeItem:t=>{var n;return null==(n=e())?void 0:n.removeItem(t)}};let s;try{s=null==(r=e())?void 0:r.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(t,n)=>{if(!(e()instanceof window.Storage))return()=>{};const r=r=>{r.storageArea===e()&&r.key===t&&n(r.newValue)};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}}),s&&(a.subscribe=(l=s,(e,t,r)=>l(e,e=>{let o;try{o=JSON.parse(e||"",null==n?void 0:n.reviver)}catch(e){o=r}t(o)})))}();const YR=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),XR=new WeakMap,JR=()=>{};function ZR(e,n=JR){return((e,t,n)=>{const r=YR(()=>new WeakMap,XR,t);return YR(e,r,n)})(()=>{const r=new WeakMap,o=new WeakMap,i=$g(0),a=$g([]);a.INTERNAL_onInit=e=>{e.set(a,[()=>e.set(i,e=>e+1)])},"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(i.debugPrivate=!0,a.debugPrivate=!0);const s=$g(t=>{let l;t(i);try{l=t(s)}catch(e){}const u=t(e);if(!(e=>"function"==typeof(null==e?void 0:e.then))(u))return{v:u};if(u!==(null==l?void 0:l.p)&&u.then(e=>{o.set(u,e);const[n]=t(a);n()},e=>{r.set(u,e);const[n]=t(a);n()}),r.has(u)){if(l&&"e"in l&&l.p===u)return l;const e=r.get(u);return l&&"v"in l?{p:u,e:e,v:l.v}:{p:u,e:e}}return o.has(u)?{p:u,v:o.get(u)}:l&&"v"in l?{p:u,f:n(l.v),v:l.v}:{p:u,f:n()}});return s.init=void 0,"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(s.debugPrivate=!0),$g(e=>{const t=e(s);if("e"in t)throw t.e;return"f"in t?t.f:t.v},(t,n,...r)=>n(e,...r))},e,n)}const QR=new WeakMap;function eA(e,t){const n=Ug(t),r=tA(n);for(const[o,...i]of e)r.has(o)&&!(null==t?void 0:t.dangerouslyForceHydrate)||(r.add(o),n.set(o,...i))}const tA=e=>{let t=QR.get(e);return t||(t=new WeakSet,QR.set(e,t)),t};function nA(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}const rA="INTERNAL_getBuildingBlocksRev",oA=Number(Object.keys(_g).find(e=>e.startsWith(rA))?.slice(29));if(Number.isNaN(oA))throw new Error("jotai-compat: unsupported jotai internals revision");const iA=_g,aA=`INTERNAL_getBuildingBlocksRev${oA}`,sA=iA[`INTERNAL_initializeStoreHooksRev${oA}`],lA=[["atomStateMap","a"],["mountedMap","m"],["invalidatedAtoms","i"],["changedAtoms","c"],["mountCallbacks","q"],["unmountCallbacks","Q"],["storeHooks","h"],["atomRead","R"],["atomWrite","W"],["atomOnInit","I"],["atomOnMount","M"],["ensureAtomState","e"],["flushCallbacks","f"],["recomputeInvalidatedAtoms","C"],["readAtomState","r"],["invalidateDependents","d"],["writeAtomState","w"],["mountDependencies","D"],["mountAtom","t"],["unmountAtom","T"],["setAtomStateValueOrPromise","v"],["storeGet","g"],["storeSet","s"],["storeSub","b"],["enhanceBuildingBlocks","B"],["abortHandlersMap","p"],["registerAbortHandler","H"],["abortPromise","A"],["storeEpochHolder","E"]];if(oA>=4)for(const[e,t]of lA)if(iA[`INTERNAL_KEY_${e}`]!==t)throw new Error(`jotai-compat: KEY drift for ${e}`);const uA={};lA.forEach(([e,t],n)=>{uA[`INTERNAL_KEY_${e}`]=oA>=4?t:n});const{INTERNAL_KEY_mountedMap:cA,INTERNAL_KEY_changedAtoms:dA,INTERNAL_KEY_storeHooks:pA,INTERNAL_KEY_ensureAtomState:fA,INTERNAL_KEY_flushCallbacks:hA,INTERNAL_KEY_recomputeInvalidatedAtoms:mA,INTERNAL_KEY_readAtomState:gA,INTERNAL_KEY_invalidateDependents:bA,INTERNAL_KEY_writeAtomState:vA,INTERNAL_KEY_mountDependencies:yA,INTERNAL_KEY_setAtomStateValueOrPromise:xA}=uA,SA=iA[aA],wA=new WeakMap;function CA(e){const t=$g(()=>[]),n=$g(function(e){const[r,o,i]=e(t);i.has(n)&&(r.forEach(e),++o.n)});return n.effect=e,n.INTERNAL_onInit=e=>{const r=(e=>{const t=SA(e);let n=wA.get(t);return n||(n=Array.isArray(t)?[]:{},lA.forEach(([e,r],o)=>{const i={value:Object.prototype.hasOwnProperty.call(t,r)?t[r]:t[o],enumerable:!0};Object.defineProperty(n,o,i),Object.defineProperty(n,r,i)}),wA.set(t,n)),n})(e),o=r[cA],i=r[dA],a=sA(r[pA]),s=r[fA],l=r[hA],u=r[mA],c=r[gA],d=r[bA],p=r[vA],f=r[yA],h=r[xA],m=new Set;let g,b=0,v=!1,y=!1,x=!1;function S(){if(b)return;m.clear();let t=!0;const w=i=>{if(x)return e.get(i);if(i===n){const t=s(r,e,i);if(!lg(t)){if(!ag(i))throw new Error("no atom init");h(r,e,i,i.init)}return ug(t)}const a=c(r,e,i);try{return ug(a)}finally{C.d.set(i,a.n),o.get(i)?.t.add(n),t?m.add(i):o.has(i)&&(f(r,e,n),u(r,e),l(r,e))}};w.peek=e.get;const E=(o,...c)=>{const m=s(r,e,o);try{if(++b,o===n){if(!ag(o))throw new Error("atom not writable");const t=m.n,n=c[0];return h(r,e,o,n),f(r,e,o),void(t!==m.n&&(i.add(o),a.c?.(o),d(r,e,o)))}return p(r,e,o,c)}finally{t||(u(r,e),l(r,e)),--b}};E.recurse=(t,...o)=>{if(x){if(nA())throw new Error("set.recurse is not allowed in cleanup")}else try{return v=!0,f(r,e,n),E(t,...o)}finally{u(r,e),v=!1,y&&(y=!1,S())}};try{g?.();const e=n.effect(w,E);if("function"!=typeof e)return;g=()=>{if(!b)try{return t=!0,x=!0,e()}finally{t=!1,x=!1,g=void 0}}}finally{t=!1,m.forEach(t=>{C.d.set(t,s(r,e,t).n)}),f(r,e,n),u(r,e)}}const w=function(e,t){let n=EA.get(e);n||(n=new Set,EA.set(e,n),t.f.add(function(){for(const e of n)n.delete(e),e()}));return n}(e,a),C=s(r,e,n);C.v=void 0,Object.assign(e.get(t),[m,C,o]),a.c.add(n,function(){i.delete(n)}),a.m.add(n,function(){w.add(S),g&&w.delete(g)}),a.u.add(n,function(){w.delete(S),g&&w.add(g)}),a.c.add(n,function(){v?y=!0:w.add(S)})},nA()&&(Object.defineProperty(t,"debugLabel",{get:()=>n.debugLabel?`${n.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),n}const EA=new WeakMap;const RA=async(e,t,n)=>{if("dimension"===e.type)if(e.isAlternative)try{await t.moveDimensionFromAlternative(e.id)}catch(t){n.error({msg:`Failed to move dimension ${e.id} from alternative`,payload:t})}else try{await t.moveDimensionToAlternative(e.id)}catch(t){n.error({msg:`Failed to move dimension ${e.id} to alternative`,payload:t})}if("measure"===e.type)if(e.isAlternative)try{await t.moveMeasureFromAlternative(e.id)}catch(t){n.error({msg:`Failed to move measure ${e.id} from alternative`,payload:t})}else try{await t.moveMeasureToAlternative(e.id)}catch(t){n.error({msg:`Failed to move measure ${e.id} to alternative`,payload:t})}},AA=e=>{const{items:t,handler:n,model:r,handlerQueue:o,logToSentry:i}=e;void 0!==n&&void 0!==r&&o&&o.add(async()=>{for(const e of t)await RA(e,n,i)})},IA=$g(),kA=$g(),PA=$g(),MA=$g(e=>e(PA)?.translate??(e=>e)),DA=$g(""),TA=$g(e=>{const t=e(DA).toLowerCase().trim();return({title:e})=>e.toLowerCase().trim().includes(t)});class OA{#e=[];#t=!1;#n=!1;#r;#o;#i;#a;constructor({onQueueCompleted:e}){this.#r=e}#s(){this.#o=void 0,this.#i=void 0,this.#a=void 0}pause(){this.#o&&(clearTimeout(this.#a),this.#i?.(),this.#s());const{promise:e,resolve:t}=Promise.withResolvers();this.#o=e,this.#i=t,this.#a=setTimeout(()=>{this.abort("Aborting queue after being paused for too long")},6e4)}async continue(e=0){const t=this.#i;await(e=>new Promise(t=>{setTimeout(t,e)}))(e),t===this.#i&&(t?.(),clearTimeout(this.#a),this.#s())}abort(e="Queue aborted"){clearTimeout(this.#a),(this.#e.length>0||this.#t)&&console.warn(`[SequentialPromiseQueue] ${e}`),this.#n=!0,this.#e=[],this.#i?.(),this.#s()}add(e){this.#e.push(e),this.#t||this.#l()}async#l(){if(!this.#t){for(this.#t=!0,this.#n=!1;this.#e.length>0;)if(this.#o)await this.#o;else try{const e=this.#e.shift();await(e?.())}catch(e){return console.error("[SequentialPromiseQueue] Error executing action:",e),this.#e=[],void(this.#t=!1)}try{this.#n||await(this.#r?.())}catch(e){console.error("[SequentialPromiseQueue] Error executing onQueueCompleted:",e)}finally{this.#t=!1,this.#e.length>0&&this.#l()}}}}const qA=$g(null),LA=CA((e,t)=>{const n=e(IA),r=e(kA),o=new OA({onQueueCompleted:async()=>{if(!n||!r)return;const e=r.properties.qHyperCubeDef,t=Date.now();e.qDimensions.length&&Object.assign(e.qDimensions[0],{patchTimeStamp:t}),e.qMeasures.length&&Object.assign(e.qMeasures[0],{patchTimeStamp:t}),await n.applyPatches([{qPath:"/qHyperCubeDef",qOp:"replace",qValue:JSON.stringify(r.properties.qHyperCubeDef)}],!0)}});t(qA,o);const i=()=>{o.pause()},a=()=>{o.continue(500)},s=()=>{o.abort()};return n?.Invalidated?.bind(i),n?.Validated?.bind(a),n?.Cancelled?.bind(s),n?.Closing?.bind(s),()=>{o.abort(),n?.Invalidated?.unbind(i),n?.Validated?.unbind(a),n?.Cancelled?.unbind(s),n?.Closing?.unbind(s)}}),NA=e=>7005!==e.qError?.qErrorCode,jA=new WeakMap,_A={qInfo:{qType:"AlternativeLayout"},qHyperCubeDef:{qMode:"S",qDimensions:[],qMeasures:[],qInitialDataFetch:[{qTop:0,qLeft:0,qHeight:0,qWidth:0}],excludedNoOfLeftDims:-1,qCalcCond:{qv:"0"}}},zA=ZR($g(async e=>{const t=e(IA),n=e(bb);if(t){if(jA.has(t))return jA.get(t);try{const e=await t.app.createSessionObject(_A);return jA.set(t,e),e}catch(e){return void n.error({msg:"Error creating alternative layout model",payload:e})}}})),FA=$g(null),$A=$g(),HA=CA((e,t)=>{const n=e(IA),r=e(zA);if(!n||!r)return;const o=async()=>{const e=await n.getLayout();if(e.qSelectionInfo?.qInSelections)return;const o=await n.getEffectiveProperties();await r.applyPatches([{qOp:"replace",qPath:"/qHyperCubeDef/qDimensions",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude?.qHyperCubeDef?.qDimensions??[])},{qOp:"replace",qPath:"/qHyperCubeDef/qMeasures",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude?.qHyperCubeDef?.qMeasures??[])}]);const i=await r.getLayout();t($A,{layout:structuredClone(e),properties:structuredClone(o),altLayout:structuredClone(i)}),t(FA,null)};return o(),n.Invalidated?.bind(o),()=>{n.Invalidated?.unbind(o)}}),BA=$g(e=>e($A)?.layout),VA=$g(e=>e($A)?.altLayout),WA=$g(e=>e($A)?.properties),UA=$g(e=>void 0===e(BA)||void 0===e(WA)),GA=$g(e=>{const t=e($A)?.layout;return t?.qHyperCube.qDimensionInfo.filter(NA)??[]}),KA=$g(e=>{const t=e($A)?.layout;return t?.qHyperCube.qMeasureInfo.filter(NA)??[]}),YA=$g(e=>{const t=[...e(GA),...e(KA)].map(e=>e.cId);return new Set(t)}),XA=$g(new Set),JA=$g(new Set),ZA=$g(e=>{const t=e(XA),n=e(JA);return e(YA).difference(n).union(t)}),QA=CA((e,t)=>{e(YA),t(XA,new Set),t(JA,new Set)}),eI=$g(e=>e(ZA),(e,t,n)=>{if("string"!=typeof n.id)return;const r=e(ZA).has(n.id),o=new Set(e(JA)),i=new Set(e(XA));r?(o.add(n.id),i.delete(n.id)):(i.add(n.id),o.delete(n.id)),t(JA,o),t(XA,i),AA({items:[n],handler:e(kA),model:e(IA),handlerQueue:e(qA),logToSentry:e(bb)})}),tI=({props:e,children:t})=>(eA([[IA,e.args.model],[PA,e.args.apis],[kA,e.args.handler]]),Qg(HA),Qg(LA),Qg(QA),t);function nI(e,t){const n=new Set(e),r=new Set(t);return e===t||n.size===r.size&&Array.from(n).every(r.has.bind(r))}function rI(e){return"write"in e}const oI="INTERNAL_getBuildingBlocksRev";var iI;const aI=Number(null==(iI=Object.keys(_g).find(e=>e.startsWith(oI)))?void 0:iI.slice(29));if(Number.isNaN(aI))throw new Error("jotai-compat: unsupported jotai internals revision");const sI=_g,lI=`INTERNAL_getBuildingBlocksRev${aI}`,uI=sI[`INTERNAL_buildStoreRev${aI}`];const cI=[["atomStateMap","a"],["mountedMap","m"],["invalidatedAtoms","i"],["changedAtoms","c"],["mountCallbacks","q"],["unmountCallbacks","Q"],["storeHooks","h"],["atomRead","R"],["atomWrite","W"],["atomOnInit","I"],["atomOnMount","M"],["ensureAtomState","e"],["flushCallbacks","f"],["recomputeInvalidatedAtoms","C"],["readAtomState","r"],["invalidateDependents","d"],["writeAtomState","w"],["mountDependencies","D"],["mountAtom","t"],["unmountAtom","T"],["setAtomStateValueOrPromise","v"],["storeGet","g"],["storeSet","s"],["storeSub","b"],["enhanceBuildingBlocks","B"],["abortHandlersMap","p"],["registerAbortHandler","H"],["abortPromise","A"],["storeEpochHolder","E"]];if(aI>=4)for(const[e,t]of cI)if(sI[`INTERNAL_KEY_${e}`]!==t)throw new Error(`jotai-compat: KEY drift for ${e}`);const dI={};cI.forEach(([e,t],n)=>{dI[e]=aI>=4?t:n});const{atomStateMap:pI,mountedMap:fI,invalidatedAtoms:hI,changedAtoms:mI,mountCallbacks:gI,unmountCallbacks:bI,storeHooks:vI,atomRead:yI,atomWrite:xI,atomOnInit:SI,atomOnMount:wI,ensureAtomState:CI,flushCallbacks:EI,recomputeInvalidatedAtoms:RI,readAtomState:AI,invalidateDependents:II,writeAtomState:kI,mountDependencies:PI,mountAtom:MI,unmountAtom:DI,setAtomStateValueOrPromise:TI,storeGet:OI,storeSet:qI,storeSub:LI,enhanceBuildingBlocks:NI,abortHandlersMap:jI,registerAbortHandler:_I,abortPromise:zI,storeEpochHolder:FI}=dI,$I=sI[lI],HI=new WeakMap,BI=new WeakMap,VI={},{read:WI,write:UI}=$g(null);function GI(e,t,n){const[r,o,i,,a]=e,s=r.get(t);if(s)return s;if(n===e){let r=o.get(t);return r||(r=[JI(e,t,n),n],o.set(t,r)),r}const l=n??VI;let u=i.get(l);u||(u=new WeakMap,i.set(l,u));let c=u.get(t);if(!c){const[r,o]=a?GI(a,t,n):[t];c=[t.read===WI?r:JI(e,t,o),o],u.set(t,c)}return c}function KI(e){for(const t of e[5])t()}function YI(e,t,n,r,o){if(n.read===WI&&rI(n)&&rI(t)&&n.write!==UI&&e!==r){const{write:i}=n;return t.write=XI(e,n.write.bind(n),r,o),()=>{t.write=i}}}function XI(e,t,n,r=n){return function(o,i,...a){return t(function(t){const[r]=GI(e,t,n);return o(r)},function(t,...o){const[a]=GI(e,t,n),s=YI(e,a,t,n,r);try{return i(a,...o)}finally{null==s||s()}},...a)}}function JI(e,t,n){const r=Object.getOwnPropertyDescriptors(t);Object.keys(r).filter(e=>["read","write","debugLabel"].includes(e)).forEach(e=>r[e].configurable=!0);const o=Object.getPrototypeOf(t),i=Object.create(o,r);return i.read!==WI&&(i.read=function(e,t,n){return function(r,o){return t(function(t){const[o]=GI(e,t,n);return r(o)},o)}}(e,t.read.bind(t),n)),rI(i)&&rI(t)&&i.write!==UI&&(i.write=XI(e,t.write.bind(t),n)),i}function ZI({atoms:e=[],atomFamilies:t=[],parentStore:n,name:r}){const o=new WeakSet(e),i=BI.get(n),a=(null==i?void 0:i[3])??n,s=[new WeakMap,new WeakMap,new WeakMap,a,i,new Set,void 0],l=s[0],u=s[5],c=function(e){const t=e[3],n=QI((e=>{const t=$I(e);let n=HI.get(t);return n||(n=Array.isArray(t)?[]:{},cI.forEach(([e,r],o)=>{const i={value:Object.prototype.hasOwnProperty.call(t,r)?t[r]:t[o],enumerable:!0};Object.defineProperty(n,o,i),Object.defineProperty(n,r,i)}),HI.set(t,n)),n})(t)),r=n,o=r[dI.storeGet],i=r[dI.storeSet],a=r[dI.storeSub],s={};let l,u;return r[dI.storeGet]=m(o),r[dI.storeSet]=f,r[dI.storeSub]=m(a),n[dI.enhanceBuildingBlocks]=function(e){return l??(l=g(e[dI.atomStateMap],c)),u??(u=Object.assign(QI(e),{...e,[dI.atomStateMap]:l,[dI.mountedMap]:g(e[dI.mountedMap],d),[dI.invalidatedAtoms]:g(e[dI.invalidatedAtoms]),[dI.changedAtoms]:b(e[dI.changedAtoms]),[dI.mountCallbacks]:e[dI.mountCallbacks],[dI.unmountCallbacks]:e[dI.unmountCallbacks],[dI.storeHooks]:y(e[dI.storeHooks]),[dI.atomRead]:m(e[dI.atomRead]),[dI.atomWrite]:m(e[dI.atomWrite]),[dI.atomOnInit]:m(e[dI.atomOnInit]),[dI.atomOnMount]:m(e[dI.atomOnMount]),[dI.ensureAtomState]:p(l,e[dI.ensureAtomState]),[dI.flushCallbacks]:(t,...r)=>e[dI.flushCallbacks](n,...r),[dI.recomputeInvalidatedAtoms]:(t,...r)=>e[dI.recomputeInvalidatedAtoms](n,...r),[dI.readAtomState]:m(e[dI.readAtomState]),[dI.invalidateDependents]:m(e[dI.invalidateDependents]),[dI.writeAtomState]:m(e[dI.writeAtomState]),[dI.mountDependencies]:m(e[dI.mountDependencies]),[dI.mountAtom]:m(e[dI.mountAtom]),[dI.unmountAtom]:m(e[dI.unmountAtom]),[TI]:m(e[TI]),[dI.storeGet]:m(e[dI.storeGet]),[dI.storeSet]:m(e[dI.storeSet]),[dI.storeSub]:m(e[dI.storeSub]),[dI.enhanceBuildingBlocks]:()=>e})),u},function(e){if(aI<4){const t=e?Object.values(e):[];return uI(...t)}const t=Array.isArray(e)?Object.fromEntries(cI.map(([t,n],r)=>[n,e[r]])):e;return uI(t)}(n);function c(t){const n=new WeakMap;return function(r){let o=n.get(r);if(o)return o;const i=t(r);if(!i)return;let a,s;return o=new Proxy(i,{get:(t,n)=>"d"===n?a??(a=g(i.d,function(t){return n=>t(GI(e,n)[0])})):"p"===n?s??(s=b(i.p)):Reflect.get(i,n)}),n.set(r,o),o}}function d(e){const t=new WeakMap;return function(n){let r=t.get(n);if(r)return r;const o=e(n);return o?(r={...o,d:b(o.d),t:b(o.t),get u(){return o.u},set u(e){o.u=e}},t.set(n,r),r):void 0}}function p(e,t){const n=m(t);return function(t,r,o){const i=e.get(o);if(i)return i;const a=n(t,r,o);return e.set(o,a),e.get(o)}}function f(t,n,r,...o){const[a,s]=GI(e,r),l=YI(e,a,r,s,e);try{return i(t,n,a,...o)}finally{null==l||l()}}function h(t,n){return function(r,...o){const[i]=GI(e,r);return(n?n(t):t)(i,...o)}}function m(t){return function(r,o,i,...a){const[s]=GI(e,i);return t(n,o,s,...a)}}function g(e,t){const n={get:h(e.get.bind(e),t),set:h(e.set.bind(e)),has:h(e.has.bind(e)),delete:h(e.delete.bind(e))};if("function"==typeof e.keys){const t=e,r=n;r.keys=t.keys.bind(t),r[Symbol.iterator]=t[Symbol.iterator].bind(t),Object.defineProperty(n,"size",{enumerable:!1,configurable:!0,get:()=>t.size})}return n}function b(t){return{get size(){return t.size},add:h(t.add.bind(t)),has:h(t.has.bind(t)),delete:h(t.delete.bind(t)),clear:t.clear.bind(t),forEach:e=>t.forEach(h(e)),*[Symbol.iterator](){for(const n of t)yield GI(e,n)[0]}}}function v(t){if(!t)return;const n=h(t);return n.add=function(n,r){if(void 0===n)return t.add(void 0,r);const[o]=GI(e,n);return t.add(o,r)},n}function y(e){const t={get f(){return e.f},set f(t){e.f=t}};return Object.defineProperties(t,Object.fromEntries(["r","c","m","u"].map(t=>[t,{get:()=>s[t]??(s[t]=v(e[t])),set(n){delete s[t],e[t]=n},configurable:!0,enumerable:!0}]))),Object.assign(t,e)}}(s);s[6]=c,Object.assign(c,{name:r}),BI.set(c,s);for(const t of new Set(e))l.set(t,[JI(s,t,s),s]);for(const e of new Set(t)){for(const t of e.getParams()){const n=e(t);l.has(n)||l.set(n,[JI(s,n,s),s])}const t=e.unstable_listen(({type:e,atom:t})=>{"CREATE"!==e||l.has(t)?"REMOVE"===e&&!o.has(t)&&l.delete(t):l.set(t,[JI(s,t,s),s])});u.add(t)}return c}function QI(e){return Array.isArray(e)?[...e]:{...e}}const ek=function(e,t){return function(n){const{atoms:r=[],atomFamilies:o=[],children:i,scope:a,name:s}=n,l=t(),u=Array.from(r,e=>Array.isArray(e)?e[0]:e);function c(){return[a??ZI({atoms:u,atomFamilies:o,parentStore:l,name:s}),function(e){return l!==e.parentStore||!nI(u,e.atoms)||!nI(o,e.atomFamilies)||a!==e.providedScope}]}const[[d,p],f]=P(c);if(p({atoms:u,atomFamilies:o,parentStore:l,providedScope:a})){const e=BI.get(d);e&&KI(e),f(c)}return eA(Array.from(r).filter(Array.isArray),{store:d}),O(()=>{const e=BI.get(d);return()=>{e&&KI(e)}},[d]),C(e,{store:d,children:i})}}(Gg,Ug);var tk=Object.defineProperty,nk=Object.defineProperties,rk=Object.getOwnPropertyDescriptors,ok=Object.getOwnPropertySymbols,ik=Object.prototype.hasOwnProperty,ak=Object.prototype.propertyIsEnumerable,sk=(e,t,n)=>t in e?tk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lk=(e,t)=>{for(var n in t||(t={}))ik.call(t,n)&&sk(e,n,t[n]);if(ok)for(var n of ok(t))ak.call(t,n)&&sk(e,n,t[n]);return e},uk=(e,t)=>nk(e,rk(t));function ck(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function dk(e,t){const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?n:void 0}function pk(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function fk(e,t){return function(e,t,n){var r,o;const{source:i,target:a,canceled:s}=t.operation;if(!i||!a||s)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||null!==e&&"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>l(e,i.id)),o=e.findIndex(e=>l(e,a.id));if(-1===r||-1===o){if(pk(i)){const r=i.initialIndex,o=i.index;return r===o||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,o)}return e}if(!s&&"index"in i&&"number"==typeof i.index){const t=i.index;if(t!==r)return n(e,r,t)}return n(e,r,o)}const u=Object.entries(e);let c,d,p=-1,f=-1;for(const[e,t]of u)if(-1===p&&(p=t.findIndex(e=>l(e,i.id)),-1!==p&&(c=e)),-1===f&&(f=t.findIndex(e=>l(e,a.id)),-1!==f&&(d=e)),-1!==p&&-1!==f)break;if(-1===p&&pk(i)){const r=null==i.initialGroup?void 0:dk(e,i.initialGroup),o=i.initialIndex,a=null==i.group?void 0:dk(e,i.group),s=i.index;if(null==r||null==a)return"preventDefault"in t&&t.preventDefault(),e;if(r===a&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===a)return uk(lk({},e),{[r]:n(e[r],o,s)});const l=e[r][o];return uk(lk({},e),{[r]:[...e[r].slice(0,o),...e[r].slice(o+1)],[a]:[...e[a].slice(0,s),l,...e[a].slice(s)]})}if(!i.manager)return e;const{dragOperation:h}=i.manager,m=null!=(o=null==(r=h.shape)?void 0:r.current.center)?o:h.position.current;if(null==d){const t=dk(e,a.id);null!=t&&(d=t,f=a.shape&&m.y>a.shape.center.y?e[t].length:0)}if(null==c||null==d||c===d&&p===f){if(null!=c&&c===d&&p===f&&pk(i)){const t=null==i.group?void 0:dk(e,i.group),r=null!=i.group&&t!==c,o=i.index!==p;if(r||o){const r=null==i.group?c:t;if(null!=r){if(c===r)return uk(lk({},e),{[c]:n(e[c],p,i.index)});const t=e[c][p];return uk(lk({},e),{[c]:[...e[c].slice(0,p),...e[c].slice(p+1)],[r]:[...e[r].slice(0,i.index),t,...e[r].slice(i.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(c===d)return uk(lk({},e),{[c]:n(e[c],p,f)});const g=a.shape&&Math.round(m.y)>Math.round(a.shape.center.y)?1:0,b=e[c][p];return uk(lk({},e),{[c]:[...e[c].slice(0,p),...e[c].slice(p+1)],[d]:[...e[d].slice(0,f+g),b,...e[d].slice(f+g)]})}(e,t,ck)}function hk(e,t){let n=null;const r=new Map,o=new Set;function i(o){let s;if(void 0===t)s=r.get(o);else for(const[e,n]of r)if(t(e,o)){s=n;break}if(void 0!==s){if(!n?.(s[1],o))return s[0];i.remove(o)}const l=e(o);return r.set(o,[l,Date.now()]),a("CREATE",o,l),l}function a(e,t,n){for(const r of o)r({type:e,param:t,atom:n})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>r.keys(),i.remove=e=>{if(void 0===t){if(!r.has(e))return;const[t]=r.get(e);r.delete(e),a("REMOVE",e,t)}else for(const[n,[o]]of r)if(t(n,e)){r.delete(n),a("REMOVE",n,o);break}},i.setShouldRemove=e=>{if(n=e,n)for(const[e,[t,o]]of r)n(o,e)&&(r.delete(e),a("REMOVE",e,t))},i}const mk=({itemIndex:e,sectionIndex:t})=>void 0!==e?`${t}-${e}`:`${t}`,gk=$g(),bk=$g(e=>e(gk)?.numberOfSections??0),vk=$g(e=>e(gk)?.numberOfItemsInSection??[]),yk=$g(e=>e(gk)?.keyExtractor??mk),xk=$g(e=>e(gk)?.emptyTexts??(()=>({title:"No items",message:"There are no items to display."}))),Sk=$g(e=>e(gk)?.onDragEnd),wk=$g(e=>e(gk)?.onDragOver),Ck=$g(e=>e(gk)?.itemRenderer),Ek=$g(e=>e(gk)?.headerRenderer),Rk=$g(e=>e(gk)?.dragOverlayRenderer),Ak=$g(e=>e(gk)?.onClick),Ik=$g(e=>{const t=e(bk),n=e(vk),r=e(yk),o={};for(let e=0;e<t;e++)o[e]=Array.from({length:n[e]},(t,n)=>r({sectionIndex:e,itemIndex:n}));return o}),kk=$g(null),Pk=$g(e=>e(kk),(e,t,n)=>{if(null===n)return void t(kk,null);const r=e(kk);t(kk,{...r,...n})}),Mk=hk(e=>$g(null,(t,n,r)=>{let o;"over"===e?o=t(wk):"end"===e&&(o=t(Sk),n(Pk,null));const{source:i,target:a}=r.operation;if("start"===e)return void n(Pk,{id:i.id,startSection:i.data.sectionKey,startIndex:i.data.itemIndex,startSectionIndex:i.data.sectionIndex});if(null===a)return void n(Pk,{toIndex:void 0,toSectionIndex:void 0});const s=i.data.sectionIndex!==a.data.sectionIndex;let l;if(s){const e=fk(t(Ik),r)[a.data.sectionIndex].indexOf(i.id);l=-1!==e?e:a.sortable?.index??0}else l=a.sortable?.index??0;if("over"===e){const e=t(Pk)?.startIndex;n(Pk,{toIndex:!s&&void 0!==e&&l>e?l+1:l,toSectionIndex:a.data.sectionIndex})}o?.({id:i.id,toIndex:l,toSection:a.data.sectionKey,fromSection:i.data.sectionKey,startSection:t(Pk)?.startSection??i.data.sectionKey,event:r})})),Dk=[gk,bk,vk,yk,xk,Sk,Ck,Ek,Ak,Pk],Tk=[Mk],Ok=({props:e,children:t})=>{const n=eb(gk);return j(()=>{n(e)},[e,n]),t};var qk=Symbol.for("preact-signals");function Lk(){if($k>1)$k--;else{var e,t=!1;for(!function(){var e=Wk;for(Wk=void 0;void 0!==e;){var t=e.S;if(t.v===e.v)for(var n=t.t;void 0!==n;n=n.x)n.i===e.i&&(n.i=t.i);e=e.o}}();void 0!==Fk;){var n=Fk;for(Fk=void 0,Hk++;void 0!==n;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&Xk(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(Hk=0,$k--,t)throw e}}function Nk(e){if($k>0)return e();Vk=++Bk,$k++;try{return e()}finally{Lk()}}var jk,_k=void 0;function zk(e){var t=_k,n=jk;_k=void 0,jk=void 0;try{return e()}finally{_k=t,jk=n}}var Fk=void 0,$k=0,Hk=0,Bk=0,Vk=0,Wk=void 0,Uk=0;function Gk(e){if(void 0!==_k){var t=e.n;if(void 0===t||t.t!==_k)return t={i:0,S:e,p:_k.s,n:void 0,t:_k,e:void 0,x:void 0,r:t},void 0!==_k.s&&(_k.s.n=t),_k.s=t,e.n=t,32&_k.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=_k.s,t.n=void 0,_k.s.n=t,_k.s=t),t}}function Kk(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function Yk(e,t){return new Kk(e,t)}function Xk(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Jk(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function Zk(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function Qk(e,t){Kk.call(this,void 0,t),this.x=e,this.s=void 0,this.g=Uk-1,this.f=4}function eP(e,t){return new Qk(e,t)}function tP(e){var t=e.m;if(e.m=void 0,"function"==typeof t){$k++;var n=_k;_k=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,nP(e),t}finally{_k=n,Lk()}}}function nP(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,tP(e)}function rP(e){if(_k!==this)throw new Error("Out-of-order effect");Zk(this),_k=e,this.f&=-2,8&this.f&&nP(this),Lk()}function oP(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name,jk&&jk.push(this)}function iP(e,t){var n=new oP(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}Kk.prototype.brand=qk,Kk.prototype.h=function(){return!0},Kk.prototype.S=function(e){var t=this,n=this.t;n!==e&&void 0===e.e&&(e.x=n,this.t=e,void 0!==n?n.e=e:zk(function(){var e;null==(e=t.W)||e.call(t)}))},Kk.prototype.U=function(e){var t=this;if(void 0!==this.t){var n=e.e,r=e.x;void 0!==n&&(n.x=r,e.e=void 0),void 0!==r&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&zk(function(){var e;null==(e=t.Z)||e.call(t)}))}},Kk.prototype.subscribe=function(e){var t=this;return iP(function(){var n=t.value;zk(function(){return e(n)})},{name:"sub"})},Kk.prototype.valueOf=function(){return this.value},Kk.prototype.toString=function(){return this.value+""},Kk.prototype.toJSON=function(){return this.value},Kk.prototype.peek=function(){var e=this;return zk(function(){return e.value})},Object.defineProperty(Kk.prototype,"value",{get:function(){var e=Gk(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Hk>100)throw new Error("Cycle detected");!function(e){0!==$k&&0===Hk&&e.l!==Vk&&(e.l=Vk,Wk={S:e,v:e.v,i:e.i,o:Wk})}(this),this.v=e,this.i++,Uk++,$k++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{Lk()}}}}),Qk.prototype=new Kk,Qk.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Uk)return!0;if(this.g=Uk,this.f|=1,this.i>0&&!Xk(this))return this.f&=-2,!0;var e=_k;try{Jk(this),_k=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return _k=e,Zk(this),this.f&=-2,!0},Qk.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Kk.prototype.S.call(this,e)},Qk.prototype.U=function(e){if(void 0!==this.t&&(Kk.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},Qk.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(Qk.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Gk(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),oP.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},oP.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,tP(this),Jk(this),$k++;var e=_k;return _k=this,rP.bind(this,e)},oP.prototype.N=function(){2&this.f||(this.f|=2,this.u=Fk,Fk=this)},oP.prototype.d=function(){this.f|=8,1&this.f||nP(this)},oP.prototype.dispose=function(){this.d()};var aP,sP,lP,uP,cP,dP,pP,fP,hP,mP,gP,bP,vP,yP,xP,SP,wP,CP,EP,RP,AP=Object.create,IP=Object.defineProperty,kP=Object.defineProperties,PP=Object.getOwnPropertyDescriptor,MP=Object.getOwnPropertyDescriptors,DP=Object.getOwnPropertySymbols,TP=Object.prototype.hasOwnProperty,OP=Object.prototype.propertyIsEnumerable,qP=e=>{throw TypeError(e)},LP=(e,t,n)=>t in e?IP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,NP=(e,t)=>IP(e,"name",{value:t,configurable:!0}),jP=["class","method","getter","setter","accessor","field","value","get","set"],_P=e=>void 0!==e&&"function"!=typeof e?qP("Function expected"):e,zP=(e,t,n,r,o)=>({kind:jP[e],name:t,metadata:r,addInitializer:e=>n._?qP("Already initialized"):o.push(_P(e||null))}),FP=(e,t)=>{return LP(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r},$P=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},HP=(e,t,n,r,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=jP[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&PP(d<4?o:{get[n](){return WP(this,i)},set[n](e){return GP(this,i,e)}},n));d?f&&d<4&&NP(i,(d>2?"set ":d>1?"get ":"")+n):NP(o,n);for(var y=r.length-1;y>=0;y--)u=zP(d,n,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>VP(o,e):e=>n in e},3^d&&(c.get=f?e=>(1^d?WP:KP)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(c.set=f?(e,t)=>GP(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?_P(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?qP("Object expected"):(_P(a=s.get)&&(v.get=a),_P(a=s.set)&&(v.set=a),_P(a=s.init)&&g.unshift(a));return d||FP(e,o),v&&IP(o,n,v),f?4^d?i:v:o},BP=(e,t,n)=>t.has(e)||qP("Cannot "+n),VP=(e,t)=>Object(t)!==t?qP('Cannot use the "in" operator on this value'):e.has(t),WP=(e,t,n)=>(BP(e,t,"read from private field"),n?n.call(e):t.get(e)),UP=(e,t,n)=>t.has(e)?qP("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),GP=(e,t,n,r)=>(BP(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),KP=(e,t,n)=>(BP(e,t,"access private method"),n);function YP(e,t){if(t){let n;return eP(()=>{const r=e();return r&&n&&t(n,r)?n:(n=r,r)})}return eP(e)}function XP(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some((e,n)=>!XP(e,t[n]))}if("object"==typeof e&&"object"==typeof t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=n.some(n=>!XP(e[n],t[n]));return!o}return!1}function JP({get:e},t){return{init:e=>Yk(e),get(){return e.call(this).value},set(t){const n=e.call(this);n.peek()!==t&&(n.value=t)}}}function ZP(e,t){const n=new WeakMap;return function(){let t=n.get(this);return t||(t=YP(e.bind(this)),n.set(this,t)),t.value}}function QP(e=!0){return function(t,n){n.addInitializer(function(){const t="field"===n.kind||n.static?this:Object.getPrototypeOf(this),r=Object.getOwnPropertyDescriptor(t,n.name);r&&Object.defineProperty(t,n.name,((e,t)=>kP(e,MP(t)))(((e,t)=>{for(var n in t||(t={}))TP.call(t,n)&&LP(e,n,t[n]);if(DP)for(var n of DP(t))OP.call(t,n)&&LP(e,n,t[n]);return e})({},r),{enumerable:e}))})}}function eM(...e){const t=e.map(e=>iP(e));return()=>t.forEach(e=>e())}dP=[JP],cP=[JP],uP=[JP],lP=[QP()],sP=[QP()],aP=[QP()];var tM,nM=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,$P(pP,5,this),UP(this,bP),UP(this,fP,$P(pP,8,this)),$P(pP,11,this),UP(this,vP,$P(pP,12,this)),$P(pP,15,this),UP(this,wP,$P(pP,16,this)),$P(pP,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return WP(this,bP,EP)}get initial(){return WP(this,bP,mP)}get previous(){return WP(this,bP,xP)}set current(e){const t=zk(()=>WP(this,bP,EP));e&&t&&this.equals(t,e)||Nk(()=>{WP(this,bP,mP)||GP(this,bP,e,gP),GP(this,bP,t,SP),GP(this,bP,e,RP)})}reset(e=this.defaultValue){Nk(()=>{GP(this,bP,void 0,SP),GP(this,bP,e,gP),GP(this,bP,e,RP)})}};function rM(e){return zk(()=>{const t={};for(const n in e)t[n]=e[n];return t})}pP=[,,,AP(null)],fP=new WeakMap,bP=new WeakSet,vP=new WeakMap,wP=new WeakMap,hP=HP(pP,20,"#initial",dP,bP,fP),mP=hP.get,gP=hP.set,yP=HP(pP,20,"#previous",cP,bP,vP),xP=yP.get,SP=yP.set,CP=HP(pP,20,"#current",uP,bP,wP),EP=CP.get,RP=CP.set,HP(pP,2,"current",lP,nM),HP(pP,2,"initial",sP,nM),HP(pP,2,"previous",aP,nM),FP(pP,nM);tM=new WeakMap;var oM,iM,aM,sM,lM,uM=Object.create,cM=Object.defineProperty,dM=Object.getOwnPropertyDescriptor,pM=Object.getOwnPropertySymbols,fM=Object.prototype.hasOwnProperty,hM=Object.prototype.propertyIsEnumerable,mM=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),gM=e=>{throw TypeError(e)},bM=Math.pow,vM=(e,t,n)=>t in e?cM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yM=["class","method","getter","setter","accessor","field","value","get","set"],xM=e=>void 0!==e&&"function"!=typeof e?gM("Function expected"):e,SM=(e,t,n,r,o)=>({kind:yM[e],name:t,metadata:r,addInitializer:e=>n._?gM("Already initialized"):o.push(xM(e||null))}),wM=(e,t,n,r,o,i)=>{for(var a,s,l,u,c=7&t,d=yM[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,dM(o,n)),h=r.length-1;h>=0;h--)(l=SM(c,n,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>n in e},u.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,xM(a)&&(f[d]=a);return f&&cM(o,n,f),o},CM=(e,t,n)=>t.has(e)||gM("Cannot "+n),EM=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},RM=class e{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,n){const{top:r,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,r+n,i,a);return l.scale=((e,t)=>{for(var n in t||(t={}))fM.call(t,n)&&vM(e,n,t[n]);if(pM)for(var n of pM(t))hM.call(t,n)&&vM(e,n,t[n]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:n,top:r,right:o,bottom:i}=this;return{width:e,height:t,left:n,top:r,right:o,bottom:i}}get center(){const{left:e,top:t,right:n,bottom:r}=this;return new EM((e+n)/2,(t+r)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:n,top:r,width:o,height:i}=this;return n===t.left&&r===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:n,bottom:r,right:o}=this;return t<=e.y&&e.y<=r&&n<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r<o&&n<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,n=this.intersectionArea(e);return n/(e.area+t-n)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:n,width:r,height:o}){return new e(n,t,r,o)}static delta(e,t,n={x:"center",y:"center"}){const r=(e,t)=>{const r=n[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==r?o:"end"==r?o+i:o+i/2};return EM.delta({x:r(e,"x"),y:r(e,"y")},{x:r(t,"x"),y:r(t,"y")})}static intersectionRatio(t,n){return e.from(t).intersectionRatio(e.from(n))}};var AM,IM=class extends(aM=nM,iM=[ZP],oM=[ZP],aM){constructor(e){var t,n,r;super(EM.from(e),(e,t)=>EM.equals(e,t)),((e,t,n)=>{for(var r=0,o=e[t>>1],i=o&&o.length;r<i;r++)o[r].call(n)})(lM,5,this),t=this,r=0,(n=sM).has(t)?gM("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return EM.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=EM.from(e),r={x:n.x-t.x,y:n.y-t.y},o=Date.now(),i=o-(CM(a=this,s=sM,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);Nk(()=>{((e,t,n)=>{CM(e,t,"write to private field"),t.set(e,n)})(this,sM,o),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(EM.from(e)),this.velocity={x:0,y:0}}};function kM({x:e,y:t},n){const r=Math.abs(e),o=Math.abs(t);return"number"==typeof n?Math.sqrt(bM(r,2)+bM(o,2))>n:"x"in n&&"y"in n?r>n.x&&o>n.y:"x"in n?r>n.x:"y"in n&&o>n.y}lM=(e=>{var t;return[,,,uM(null!=(t=null==e?void 0:e[mM("metadata")])?t:null)]})(aM),sM=new WeakMap,wM(lM,2,"delta",iM,IM),wM(lM,2,"direction",oM,IM),AM=lM,vM(IM,mM("metadata"),AM[3]);var PM,MM,DM,TM,OM=(e=>(e.Horizontal="x",e.Vertical="y",e))(OM||{}),qM=Object.values(OM),LM=Object.create,NM=Object.defineProperty,jM=Object.defineProperties,_M=Object.getOwnPropertyDescriptor,zM=Object.getOwnPropertyDescriptors,FM=Object.getOwnPropertySymbols,$M=Object.prototype.hasOwnProperty,HM=Object.prototype.propertyIsEnumerable,BM=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),VM=e=>{throw TypeError(e)},WM=(e,t,n)=>t in e?NM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,UM=(e,t)=>{for(var n in t||(t={}))$M.call(t,n)&&WM(e,n,t[n]);if(FM)for(var n of FM(t))HM.call(t,n)&&WM(e,n,t[n]);return e},GM=(e,t)=>jM(e,zM(t)),KM=(e,t)=>NM(e,"name",{value:t,configurable:!0}),YM=(e,t)=>{var n={};for(var r in e)$M.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&FM)for(var r of FM(e))t.indexOf(r)<0&&HM.call(e,r)&&(n[r]=e[r]);return n},XM=e=>{var t;return[,,,LM(null!=(t=null==e?void 0:e[BM("metadata")])?t:null)]},JM=["class","method","getter","setter","accessor","field","value","get","set"],ZM=e=>void 0!==e&&"function"!=typeof e?VM("Function expected"):e,QM=(e,t,n,r,o)=>({kind:JM[e],name:t,metadata:r,addInitializer:e=>n._?VM("Already initialized"):o.push(ZM(e||null))}),eD=(e,t)=>WM(t,BM("metadata"),e[3]),tD=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},nD=(e,t,n,r,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=JM[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&_M(d<4?o:{get[n](){return iD(this,i)},set[n](e){return sD(this,i,e)}},n));d?f&&d<4&&KM(i,(d>2?"set ":d>1?"get ":"")+n):KM(o,n);for(var y=r.length-1;y>=0;y--)u=QM(d,n,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>oD(o,e):e=>n in e},3^d&&(c.get=f?e=>(1^d?iD:lD)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(c.set=f?(e,t)=>sD(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?ZM(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?VM("Object expected"):(ZM(a=s.get)&&(v.get=a),ZM(a=s.set)&&(v.set=a),ZM(a=s.init)&&g.unshift(a));return d||eD(e,o),v&&NM(o,n,v),f?4^d?i:v:o},rD=(e,t,n)=>t.has(e)||VM("Cannot "+n),oD=(e,t)=>Object(t)!==t?VM('Cannot use the "in" operator on this value'):e.has(t),iD=(e,t,n)=>(rD(e,t,"read from private field"),n?n.call(e):t.get(e)),aD=(e,t,n)=>t.has(e)?VM("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),sD=(e,t,n,r)=>(rD(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),lD=(e,t,n)=>(rD(e,t,"access private method"),n);function uD(e,t){return{plugin:e,options:t}}function cD(e){return t=>uD(e,t)}function dD(e){return"function"==typeof e?{plugin:e,options:void 0}:e}PM=[JP];var pD=class{constructor(e,t){this.manager=e,this.options=t,aD(this,DM,tD(MM,8,this,!1)),tD(MM,11,this),aD(this,TM,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return zk(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=iP(e.bind(this));return iD(this,TM).add(t),t}destroy(){iD(this,TM).forEach(e=>e())}static configure(e){return uD(this,e)}};MM=XM(null),DM=new WeakMap,TM=new WeakMap,nD(MM,4,"disabled",PM,pD,DM),eD(MM,pD);var fD,hD=class extends pD{},mD=class{constructor(e){this.manager=e,this.instances=new Map,aD(this,fD,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(dD).reduce((e,t)=>{const n=e.find(({plugin:e})=>e===t.plugin);return n?(n.options=t.options,e):[...e,t]},[]),n=t.map(({plugin:e})=>e);for(const e of iD(this,fD))if(!n.includes(e)){if(e.prototype instanceof hD)continue;this.unregister(e)}for(const{plugin:e,options:n}of t)this.register(e,n);sD(this,fD,n)}get(e){return this.instances.get(e)}register(e,t){const n=this.instances.get(e);if(n)return n.options!==t&&(n.options=t),n;const r=new e(this.manager,t);return this.instances.set(e,r),r}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function gD(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}fD=new WeakMap;var bD,vD,yD,xD,SD,wD,CD,ED,RD,AD,ID,kD,PD=[],MD=class extends pD{constructor(e){super(e),aD(this,bD),aD(this,vD),this.computeCollisions=this.computeCollisions.bind(this),sD(this,vD,Yk(PD)),this.destroy=eM(()=>{const e=this.computeCollisions(),t=zk(()=>this.manager.dragOperation.position.current);if(e!==PD){const e=iD(this,bD);if(sD(this,bD,t),e&&t.x==e.x&&t.y==e.y)return}else sD(this,bD,void 0);iD(this,vD).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){zk(()=>{e?iD(this,vD).value=this.computeCollisions():sD(this,bD,void 0)})}computeCollisions(e,t){const{registry:n,dragOperation:r}=this.manager,{source:o,shape:i,status:a}=r;if(!a.initialized||!i)return PD;const s=[],l=[];for(const i of null!=e?e:n.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const n=zk(()=>e({droppable:i,dragOperation:r}));n&&(null!=i.collisionPriority&&(n.priority=i.collisionPriority),s.push(n))}return 0===l.length?PD:(s.sort(gD),s)}get collisions(){return iD(this,vD).value}};bD=new WeakMap,vD=new WeakMap,SD=[JP],xD=[JP],yD=[JP];var DD=class e{constructor(e,t){aD(this,RD,tD(ED,8,this)),tD(ED,11,this),aD(this,AD),aD(this,ID,tD(ED,12,this)),tD(ED,15,this),aD(this,kD,tD(ED,16,this)),tD(ED,19,this);const{effects:n,id:r,data:o={},disabled:i=!1,register:a=!0}=e;let s=r;sD(this,AD,Yk(r)),this.manager=t,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return s=e,null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==n?void 0:n())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}get id(){var t,n;const r=iD(this,AD).value;return null!=(n=null==(t=e.pendingIdChanges)?void 0:t.get(this))?n:r}set id(t){var n,r;t!==(null!=(r=null==(n=e.pendingIdChanges)?void 0:n.get(this))?r:iD(this,AD).peek())&&(e.pendingIdChanges||(e.pendingIdChanges=new Map,queueMicrotask(()=>{var t;return lD(t=e,wD,CD).call(t)})),e.pendingIdChanges.set(this,t))}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};ED=XM(null),wD=new WeakSet,CD=function(){const e=DD.pendingIdChanges;DD.pendingIdChanges=null,e&&Nk(()=>{for(const[t,n]of e)iD(t,AD).value=n})},RD=new WeakMap,AD=new WeakMap,ID=new WeakMap,kD=new WeakMap,nD(ED,4,"manager",SD,DD,RD),nD(ED,4,"data",xD,DD,ID),nD(ED,4,"disabled",yD,DD,kD),aD(DD,wD),eD(ED,DD),DD.pendingIdChanges=null;var TD,OD,qD,LD,ND,jD,_D,zD,FD,$D,HD,BD,VD,WD,UD,GD,KD,YD,XD,JD,ZD,QD,eT,tT,nT=DD,rT=class{constructor(){this.map=Yk(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const n=this.map.peek(),r=n.get(e),o=()=>this.unregister(e,t);if(r===t)return o;if(r&&r.id===e){const e=this.cleanupFunctions.get(r);null==e||e(),this.cleanupFunctions.delete(r)}const i=new Map(n);for(const[r,o]of n)if(o===t&&r!==e){i.delete(r);break}i.set(e,t),this.map.value=i;const a=eM(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const n=this.map.peek();if(n.get(e)!==t)return;const r=this.cleanupFunctions.get(t);null==r||r(),this.cleanupFunctions.delete(t);const o=new Map(n);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},oT=class extends(_D=nT,jD=[JP],ND=[JP],LD=[JP],qD=[ZP],OD=[ZP],TD=[ZP],_D){constructor(e,t){var n=e,{modifiers:r,type:o,sensors:i,plugins:a,effects:s}=n,l=YM(n,["modifiers","type","sensors","plugins","effects"]);super(GM(UM({},l),{effects:()=>{var e;return[...null!=(e=null==s?void 0:s())?e:[],()=>{const{manager:e,plugins:t}=this;if(e&&t)for(const n of t){const{plugin:t}=dD(n);e.registry.plugins.register(t)}}]}}),t),tD(zD,5,this),aD(this,FD,tD(zD,8,this)),tD(zD,11,this),aD(this,$D,tD(zD,12,this)),tD(zD,15,this),aD(this,HD,tD(zD,16,this,this.isDragSource?"dragging":"idle")),tD(zD,19,this),this.type=o,this.sensors=i,this.modifiers=r,this.alignment=l.alignment,this.plugins=a}pluginConfig(e){if(this.plugins)for(const t of this.plugins){const n=dD(t);if(n.plugin===e)return n.options}}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};zD=XM(_D),FD=new WeakMap,$D=new WeakMap,HD=new WeakMap,nD(zD,4,"type",jD,oT,FD),nD(zD,4,"modifiers",ND,oT,$D),nD(zD,4,"status",LD,oT,HD),nD(zD,2,"isDropping",qD,oT),nD(zD,2,"isDragging",OD,oT),nD(zD,2,"isDragSource",TD,oT),eD(zD,oT);var iT=class extends(YD=nT,KD=[JP],GD=[JP],UD=[JP],WD=[JP],VD=[JP],BD=[ZP],YD){constructor(e,t){var n=e,{accept:r,collisionDetector:o,collisionPriority:i,type:a}=n;super(YM(n,["accept","collisionDetector","collisionPriority","type"]),t),tD(XD,5,this),aD(this,JD,tD(XD,8,this)),tD(XD,11,this),aD(this,ZD,tD(XD,12,this)),tD(XD,15,this),aD(this,QD,tD(XD,16,this)),tD(XD,19,this),aD(this,eT,tD(XD,20,this)),tD(XD,23,this),aD(this,tT,tD(XD,24,this)),tD(XD,27,this),this.accept=r,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};XD=XM(YD),JD=new WeakMap,ZD=new WeakMap,QD=new WeakMap,eT=new WeakMap,tT=new WeakMap,nD(XD,4,"accept",KD,iT,JD),nD(XD,4,"type",GD,iT,ZD),nD(XD,4,"collisionDetector",UD,iT,QD),nD(XD,4,"collisionPriority",WD,iT,eT),nD(XD,4,"shape",VD,iT,tT),nD(XD,2,"isDropTarget",BD,iT),eD(XD,iT);var aT=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));return r.add(t),n.set(e,r),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));r.delete(t),n.set(e,r)}dispatch(e,...t){const{registry:n}=this,r=n.get(e);if(r)for(const e of r)e(...t)}},sT=class extends aT{constructor(e){super(),this.manager=e}dispatch(e,t){const n=[t,this.manager];super.dispatch(e,...n)}};function lT(e,t=!0){let n=!1;return GM(UM({},e),{cancelable:t,get defaultPrevented(){return n},preventDefault(){t&&(n=!0)}})}var uT,cT,dT,pT,fT,hT,mT,gT,bT,vT=class extends hD{constructor(e){super(e);let t=[];this.destroy=eM(()=>{const{dragOperation:n,collisionObserver:r}=e;n.status.initializing&&(t=[],r.enable())},()=>{const{collisionObserver:n,monitor:r}=e,{collisions:o}=n;if(n.isDisabled())return;if(nT.pendingIdChanges)return;const i=lT({collisions:o});if(r.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map(({id:e})=>e).join("")===t.map(({id:e})=>e).join(""))(o,t))return;t=o;const[a]=o;zk(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(n.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{n.enable()}))})})}},yT=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(yT||{}),xT=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(xT||{});mT=[JP],hT=[ZP],fT=[ZP],pT=[ZP],dT=[ZP],cT=[ZP],uT=[ZP];var ST=class{constructor(){tD(gT,5,this),aD(this,bT,tD(gT,8,this,"idle")),tD(gT,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};gT=XM(null),bT=new WeakMap,nD(gT,4,"value",mT,ST,bT),nD(gT,2,"current",hT,ST),nD(gT,2,"idle",fT,ST),nD(gT,2,"initializing",pT,ST),nD(gT,2,"initialized",dT,ST),nD(gT,2,"dragging",cT,ST),nD(gT,2,"dropped",uT,ST),eD(gT,ST);var wT,CT=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return zk(()=>{const{dragOperation:t}=this.manager,n=null!=e?e:null;if(t.targetIdentifier===n)return Promise.resolve(!1);t.targetIdentifier=n;const r=lT({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",r),this.manager.renderer.rendering.then(()=>r.defaultPrevented)})}start(e){return zk(()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const n=new AbortController,{event:r,coordinates:o}=e;Nk(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=r?r:null,t.position.reset(o)});const i=lT({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),n.abort(),n):(t.status.set("initializing"),t.controller=n,this.manager.renderer.rendering.then(()=>{if(n.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&Nk(()=>{t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:r,operation:t.snapshot(),cancelable:!1})})}),n)})}move(e){return zk(()=>{var t,n;const{dragOperation:r}=this.manager,{status:o,controller:i}=r;if(!o.dragging||!i||i.signal.aborted)return;const a=lT({nativeEvent:e.event,operation:r.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(n=e.propagate)||n)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask(()=>{var t,n,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:r.position.current.x+(null!=(n=null==(t=e.by)?void 0:t.x)?n:0),y:r.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};r.position.current=l})})}stop(e={}){return zk(()=>{var t,n;const{dragOperation:r}=this.manager,{controller:o}=r;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{r.status.set("dropped");const e=zk(()=>{var e;return"dropping"===(null==(e=r.source)?void 0:e.status)}),t=()=>{r.controller===o&&(r.controller=void 0),r.reset()};if(e){const{source:e}=r,n=iP(()=>{"idle"===(null==e?void 0:e.status)&&(n(),t())})}else this.manager.renderer.rendering.then(t)})};r.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:r.snapshot(),canceled:null!=(n=e.canceled)&&n,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise((t,n)=>{e.resume=t,e.abort=n}),e}}),i?i.then(a).catch(()=>r.reset()):a()})}},ET=class extends pD{constructor(e,t){super(e,t),this.manager=e,this.options=t}},RT=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},AT=class{constructor(e){this.options=e,aD(this,wT)}set controller(e){sD(this,wT,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=iD(this,wT))||t.activate(e)}};wT=new WeakMap;var IT,kT,PT,MT,DT,TT,OT,qT,LT,NT,jT,_T,zT,FT,$T,HT,BT,VT,WT,UT=class extends pD{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},GT=class{constructor(e){this.draggables=new rT,this.droppables=new rT,this.plugins=new mD(e),this.sensors=new mD(e),this.modifiers=new mD(e)}register(e,t){if(e instanceof oT)return this.draggables.register(e.id,e);if(e instanceof iT)return this.droppables.register(e.id,e);if(e.prototype instanceof UT)return this.modifiers.register(e,t);if(e.prototype instanceof ET)return this.sensors.register(e,t);if(e.prototype instanceof pD)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof nT)return e instanceof oT?this.draggables.unregister(e.id,e):e instanceof iT?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof UT)return this.modifiers.unregister(e);if(e.prototype instanceof ET)return this.sensors.unregister(e);if(e.prototype instanceof pD)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};LT=[ZP],qT=[JP],OT=[JP],TT=[JP],DT=[JP],MT=[JP],PT=[ZP],kT=[ZP],IT=[ZP];var KT=class{constructor(e){tD(zT,5,this),aD(this,NT),aD(this,jT),aD(this,_T,new nM(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new ST,aD(this,FT,tD(zT,8,this,!1)),tD(zT,11,this),aD(this,$T,tD(zT,12,this,null)),tD(zT,15,this),aD(this,HT,tD(zT,16,this,null)),tD(zT,19,this),aD(this,BT,tD(zT,20,this,null)),tD(zT,23,this),aD(this,VT,tD(zT,24,this,[])),tD(zT,27,this),this.position=new IM({x:0,y:0}),aD(this,WT,{x:0,y:0}),sD(this,NT,e)}get shape(){const{current:e,initial:t,previous:n}=iD(this,_T);return e&&t?{current:e,initial:t,previous:n}:null}set shape(e){e?iD(this,_T).current=e:iD(this,_T).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const n=iD(this,NT).registry.draggables.get(t);return n&&sD(this,jT,n),null!=(e=null!=n?n:iD(this,jT))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=iD(this,NT).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let n={x:e,y:t};for(const e of this.modifiers)n=e.apply(GM(UM({},this.snapshot()),{transform:n}));return sD(this,WT,n),n}snapshot(){return zk(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:iD(this,WT),shape:this.shape?rM(this.shape):null,position:rM(this.position),status:rM(this.status),canceled:this.canceled}))}reset(){Nk(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,iD(this,_T).reset(),this.position.reset({x:0,y:0}),sD(this,WT,{x:0,y:0}),this.modifiers=[]})}};zT=XM(null),NT=new WeakMap,jT=new WeakMap,_T=new WeakMap,FT=new WeakMap,$T=new WeakMap,HT=new WeakMap,BT=new WeakMap,VT=new WeakMap,WT=new WeakMap,nD(zT,2,"shape",LT,KT),nD(zT,4,"canceled",qT,KT,FT),nD(zT,4,"activatorEvent",OT,KT,$T),nD(zT,4,"sourceIdentifier",TT,KT,HT),nD(zT,4,"targetIdentifier",DT,KT,BT),nD(zT,4,"modifiers",MT,KT,VT),nD(zT,2,"source",PT,KT),nD(zT,2,"target",kT,KT),nD(zT,2,"transform",IT,KT),eD(zT,KT);var YT={get rendering(){return Promise.resolve()}};function XT(e,t){return"function"==typeof e?e(t):null!=e?e:t}var JT=class{constructor(e){var t;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(e=>e.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};const n=null!=e?e:{},r=XT(n.plugins,[]),o=XT(n.sensors,[]),i=XT(n.modifiers,[]),a=null!=(t=n.renderer)?t:YT,s=new sT(this),l=new GT(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new CT(this),this.dragOperation=new KT(this),this.collisionObserver=new MD(this),this.plugins=[vT,...r],this.modifiers=i,this.sensors=o;const{destroy:u}=this,c=eM(()=>{var e,t,n;const r=zk(()=>this.dragOperation.modifiers),o=this.modifiers;for(const e of r)o.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(n=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:n}=dD(e);return new t(this,n)}))?n:o});this.destroy=()=>{c(),u()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},ZT=e=>{throw TypeError(e)},QT=(e,t,n)=>t.has(e)||ZT("Cannot "+n),eO=(e,t,n)=>(QT(e,t,"read from private field"),t.get(e)),tO=(e,t,n)=>t.has(e)?ZT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),nO=(e,t,n,r)=>(QT(e,t,"write to private field"),t.set(e,n),n),rO=(e,t,n)=>(QT(e,t,"access private method"),n);function oO(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function iO(e,t){const n=e.getAnimations();let r=null;for(const e of n){if("running"!==e.playState)continue;const{effect:n}=e,o=(oO(n)?n.getKeyframes():[]).filter(t);o.length>0&&(r=[o[o.length-1],e])}return r}function aO(e){const{width:t,height:n,top:r,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:n,top:r,left:o,bottom:i,right:a}}function sO(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function lO(e){return"nodeType"in e}function uO(e){var t,n,r;return e?sO(e)?e:lO(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(r=null==(n=e.ownerDocument)?void 0:n.defaultView)?r:window:window:window}function cO(e){const{Document:t}=uO(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function dO(e){return!(!e||sO(e))&&(e instanceof uO(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function pO(e){return e instanceof uO(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function fO(e){return e?sO(e)?e.document:lO(e)?cO(e)?e:dO(e)||pO(e)?e.ownerDocument:document:document:document}function hO(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(e);return"visible"===n&&"visible"===r&&"visible"===o}function mO(e,t=e.getBoundingClientRect(),n=0){var r,o,i,a,s;let l=t;const{ownerDocument:u}=e,c=null!=(r=u.defaultView)?r:window;let d=e.parentElement;for(;d&&d!==u.documentElement;){if(!hO(d)){const e=d.getBoundingClientRect(),t=n*(e.bottom-e.top),r=n*(e.right-e.left),o=n*(e.bottom-e.top),i=n*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+r),bottom:Math.min(l.bottom,e.bottom+o),left:Math.max(l.left,e.left-i),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=c.visualViewport,f=null!=(o=null==p?void 0:p.offsetTop)?o:0,h=null!=(i=null==p?void 0:p.offsetLeft)?i:0,m=null!=(a=null==p?void 0:p.width)?a:c.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:c.innerHeight,b=n*g,v=n*m;return l={top:Math.max(l.top,f-b),right:Math.min(l.right,h+m+v),bottom:Math.min(l.bottom,f+g+b),left:Math.max(l.left,h-v),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function gO(e){return{x:e.clientX,y:e.clientY}}var bO="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function vO(e=document,t=new Set){if(t.has(e))return[];t.add(e);const n=[e];for(const r of Array.from(e.querySelectorAll("iframe, frame")))try{const e=r.contentDocument;e&&!t.has(e)&&n.push(...vO(e,t))}catch(e){}try{const r=e.defaultView;if(r&&r!==window.top){const o=r.parent;o&&o.document&&o.document!==e&&n.push(...vO(o.document,t))}}catch(e){}return n}function yO(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function xO(){var e,t;const n=yO()?window.visualViewport:null;return{x:null!=(e=null==n?void 0:n.offsetLeft)?e:0,y:null!=(t=null==n?void 0:n.offsetTop)?t:0}}function SO(e){return!(!e||!lO(e))&&e instanceof uO(e).ShadowRoot}function wO(e){if(e&&lO(e)){let t=e.getRootNode();if(SO(t))return t;if(t instanceof Document)return t}return fO(e)}function CO(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function EO(e){return"value"in e}function RO(e){return"CANVAS"===e.tagName}function AO(e,{x:t,y:n}){const r=e.elementFromPoint(t,n);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(r)){const{contentDocument:e}=r;if(e){const{left:o,top:i}=r.getBoundingClientRect();return AO(e,{x:t-o,y:n-i})}}return r}var IO=new WeakMap;var kO=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:n,listener:r,options:o}]=e;t.removeEventListener(n,r,o)}this.entries.clear()}}bind(e,t){const n=Array.isArray(e)?e:[e],r=Array.isArray(t)?t:[t],o=[];for(const e of n)for(const t of r){const{type:n,listener:r,options:i}=t,a=[e,t];e.addEventListener(n,r,i),this.entries.add(a),o.push(a)}const i=this.entries;return function(){for(const e of o){const[t,{type:n,listener:r,options:o}]=e;t.removeEventListener(n,r,o),i.delete(e)}}}};function PO(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function MO(e,t){const n=()=>performance.now();let r,o;return function(...i){const a=this;o?(null==r||r(),r=function(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)}(()=>{e.apply(a,i),o=n()},t-(n()-o))):(e.apply(a,i),o=n())}}var DO,TO=bO?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},OO=class extends TO{constructor(e){super(t=>{eO(this,DO)?e(t,this):nO(this,DO,!0)}),tO(this,DO,!1)}};DO=new WeakMap;var qO,LO,NO,jO,_O,zO,FO,$O,HO,BO,VO,WO=Array.from({length:100},(e,t)=>t/100),UO=class{constructor(e,t,n={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,tO(this,HO),this.disconnect=()=>{var e,t,n;nO(this,FO,!0),null==(e=eO(this,NO))||e.disconnect(),null==(t=eO(this,jO))||t.disconnect(),eO(this,_O).disconnect(),null==(n=eO(this,zO))||n.remove()},tO(this,qO,!0),tO(this,LO),tO(this,NO),tO(this,jO),tO(this,_O),tO(this,zO),tO(this,FO,!1),tO(this,$O,MO(()=>{var e,t,n;const{element:r}=this;if(null==(e=eO(this,jO))||e.disconnect(),eO(this,FO)||!eO(this,qO)||!r.isConnected)return;const o=null!=(t=r.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(n=o.defaultView)?n:window,s=r.getBoundingClientRect(),l=mO(r,s),{top:u,left:c,bottom:d,right:p}=l,f=-Math.floor(u),h=-Math.floor(c),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,nO(this,jO,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:n}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:RM.intersectionRatio(n,mO(r)))&&eO(this,$O).call(this)},{threshold:WO,rootMargin:m,root:o})),eO(this,jO).observe(r),rO(this,HO,BO).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),nO(this,qO,function(e,t=e.getBoundingClientRect()){const{width:n,height:r}=mO(e,t);return n>0&&r>0}(e,this.boundingClientRect));let r=!0;this.callback=e=>{r&&(r=!1,n.skipInitial)||t(e)};const o=e.ownerDocument;(null==n?void 0:n.debug)&&(nO(this,zO,document.createElement("div")),eO(this,zO).style.background="rgba(0,0,0,0.15)",eO(this,zO).style.position="fixed",eO(this,zO).style.pointerEvents="none",o.body.appendChild(eO(this,zO))),nO(this,_O,new IntersectionObserver(t=>{var n,r;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=eO(this,qO);nO(this,qO,a),(s||l)&&(u&&!a?(null==(n=eO(this,jO))||n.disconnect(),this.callback(null),null==(r=eO(this,NO))||r.disconnect(),nO(this,NO,void 0),eO(this,zO)&&(eO(this,zO).style.visibility="hidden")):eO(this,$O).call(this),a&&!eO(this,NO)&&(nO(this,NO,new OO(eO(this,$O))),eO(this,NO).observe(e)))},{threshold:WO,root:o})),eO(this,qO)&&!n.skipInitial&&this.callback(this.boundingClientRect),eO(this,_O).observe(e)}};qO=new WeakMap,LO=new WeakMap,NO=new WeakMap,jO=new WeakMap,_O=new WeakMap,zO=new WeakMap,FO=new WeakMap,$O=new WeakMap,HO=new WeakSet,BO=function(){eO(this,FO)||(rO(this,HO,VO).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,eO(this,LO))||(this.callback(this.boundingClientRect),nO(this,LO,this.boundingClientRect)))},VO=function(){if(eO(this,zO)){const{top:e,left:t,width:n,height:r}=mO(this.element);eO(this,zO).style.overflow="hidden",eO(this,zO).style.visibility="visible",eO(this,zO).style.top=`${Math.floor(e)}px`,eO(this,zO).style.left=`${Math.floor(t)}px`,eO(this,zO).style.width=`${Math.floor(n)}px`,eO(this,zO).style.height=`${Math.floor(r)}px`}};var GO,KO,YO,XO,JO=new WeakMap,ZO=new WeakMap;function QO(e,t){let n=JO.get(e);if(!n){const t=new UO(e,t=>{const n=JO.get(e);n&&n.callbacks.forEach(e=>e(t))},{skipInitial:!0});n={disconnect:t.disconnect,callbacks:new Set}}return n.callbacks.add(t),JO.set(e,n),()=>{n.callbacks.delete(t),0===n.callbacks.size&&(JO.delete(e),n.disconnect())}}var eq=class{constructor(e,t,n){this.callback=t,tO(this,GO),tO(this,KO,!1),tO(this,YO),tO(this,XO,MO(e=>{if(!eO(this,KO)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of eO(this,YO))if(e.target.contains(t)){this.callback(eO(this,GO).boundingClientRect);break}},75));const r=function(e){const t=new Set;let n=PO(e);for(;n;)t.add(n),n=PO(n);return t}(e),o=function(e,t){const n=new Set;for(const r of e){const e=QO(r,t);n.add(e)}return()=>n.forEach(e=>e())}(r,t),i=function(e,t){var n;const r=e.ownerDocument;if(!ZO.has(r)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),ZO.set(r,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(n=ZO.get(r))?n:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),ZO.delete(r))}):()=>{}}(e,eO(this,XO));nO(this,YO,r),nO(this,GO,new UO(e,t,n)),this.disconnect=()=>{eO(this,KO)||(nO(this,KO,!0),o(),i(),eO(this,GO).disconnect())}}};function tq(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function nq(e){try{tq(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function rq(e){return!(!bO||!e)&&e===fO(e).scrollingElement}function oq(e){var t,n;const r=uO(e),o=rq(e)?function(e){var t,n,r,o;const{documentElement:i}=fO(e),a=uO(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(n=null==a?void 0:a.height)?n:i.clientHeight,u=null!=(r=null==a?void 0:a.offsetTop)?r:0,c=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:u,left:c,right:c+s,bottom:u+l,width:s,height:l}}(e):aO(e),i=r.visualViewport,a=rq(e)?{height:null!=(t=null==i?void 0:i.height)?t:r.innerHeight,width:null!=(n=null==i?void 0:i.width)?n:r.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:o,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function iq(e,t){const{isTop:n,isBottom:r,isLeft:o,isRight:i,position:a}=oq(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!n&&a.current.y+l>0,c=!r&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}GO=new WeakMap,KO=new WeakMap,YO=new WeakMap,XO=new WeakMap;var aq=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}},sq=new aq(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),lq=new aq(e=>setTimeout(e,50)),uq=new Map,cq=uq.clear.bind(uq);function dq(e,t=!1){if(!t)return pq(e);let n=uq.get(e);return n||(n=pq(e),uq.set(e,n),lq.schedule(cq),n)}function pq(e){return uO(e).getComputedStyle(e)}var fq={excludeElement:!0,escapeShadowDOM:!0};function hq(e,t=fq){const{limit:n,excludeElement:r,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=n&&i.size>=n)return i;if(!a)return i;if(cO(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&SO(a))return t(a.host);if(!dO(a))return pO(a)?t(a.parentElement):i;if(i.has(a))return i;const s=dq(a,!0);if(r&&a===e||function(e,t=dq(e,!0)){const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(a,s)&&i.add(a),function(e,t=dq(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function mq(e,t=window.frameElement){const n={x:0,y:0,scaleX:1,scaleY:1};if(!e)return n;let r=PO(e);for(;r;){if(r===t)return n;const e=aO(r),{x:o,y:i}=gq(r,e);n.x=n.x+e.left,n.y=n.y+e.top,n.scaleX=n.scaleX*o,n.scaleY=n.scaleY*i,r=PO(r)}return n}function gq(e,t=aO(e)){const n=Math.round(t.width),r=Math.round(t.height);if(dO(e))return{x:n/e.offsetWidth,y:r/e.offsetHeight};const o=dq(e,!0);return{x:(parseFloat(o.width)||n)/n,y:(parseFloat(o.height)||r)/r}}function bq(e){if(!e||"none"===e)return null;const[t,n,r="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(n),z:parseInt(r,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function vq(e){var t,n,r,o,i,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if(!e||"none"===e)return null;const t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return isNaN(n)&&isNaN(r)?null:{x:isNaN(n)?r:n,y:isNaN(r)?n:r}}(c),h=bq(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,b=null!=(n=null==f?void 0:f.y)?n:1,v=null!=(r=null==h?void 0:h.x)?r:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:v+x,y:y+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:b*C}}var yq=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(yq||{}),xq={x:.2,y:.2},Sq={x:10,y:10};function wq(e,t,n,r=25,o=xq,i=Sq){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=oq(e),f=mq(e),h=vq(dq(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new RM(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),v={x:0,y:0},y={x:0,y:0},x=b.height*o.y,S=b.width*o.x;return x>0&&(!u||g&&!c)&&s<=b.top+x&&1!==(null==n?void 0:n.y)&&a>=b.left-i.x&&a<=b.right+i.x?(v.y=g?1:-1,y.y=r*Math.abs((b.top+x-s)/x)):x>0&&(!c||g&&!u)&&s>=b.bottom-x&&-1!==(null==n?void 0:n.y)&&a>=b.left-i.x&&a<=b.right+i.x&&(v.y=g?-1:1,y.y=r*Math.abs((b.bottom-x-s)/x)),S>0&&(!p||m&&!d)&&a>=b.right-S&&-1!==(null==n?void 0:n.x)&&s>=b.top-i.y&&s<=b.bottom+i.y?(v.x=m?-1:1,y.x=r*Math.abs((b.right-S-a)/S)):S>0&&(!d||m&&!p)&&a<=b.left+S&&1!==(null==n?void 0:n.x)&&s>=b.top-i.y&&s<=b.bottom+i.y&&(v.x=m?1:-1,y.x=r*Math.abs((b.left+S-a)/S)),{direction:v,speed:y}}function Cq(e,{block:t="nearest",inline:n="nearest"}={}){if(!dO(e))return;const r=hq(e),o=[];for(const i of r){if(!dO(i))continue;const{top:r,left:a}=Rq(e,i);let s=r,l=a;for(const e of o)s-=e.scrollTop,l-=e.scrollLeft;if("none"!==t){const n=s<i.scrollTop;n!==s+e.offsetHeight>i.scrollTop+i.clientHeight&&(i.scrollTop="center"===t?s-i.clientHeight/2+e.offsetHeight/2:n?s:s+e.offsetHeight-i.clientHeight)}if("none"!==n){const t=l<i.scrollLeft;t!==l+e.offsetWidth>i.scrollLeft+i.clientWidth&&(i.scrollLeft="center"===n?l-i.clientWidth/2+e.offsetWidth/2:t?l:l+e.offsetWidth-i.clientWidth)}o.push(i)}}function Eq(e){let t=0,n=0,r=e;for(;r;){t+=r.offsetTop,n+=r.offsetLeft;const e=r.offsetParent;if(!dO(e))break;t+=e.clientTop,n+=e.clientLeft,r=e}return{top:t,left:n}}function Rq(e,t){const n=Eq(e),r=Eq(t);return{top:n.top-r.top-t.clientTop,left:n.left-r.left-t.clientLeft}}function Aq({element:e,keyframes:t,options:n}){return e.animate(t,n).finished}function Iq(e,t=dq(e).translate,n=!0){if(n){const t=iO(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=bq(e);if(t)return t}}}if(t){const e=bq(t);if(e)return e}return{x:0,y:0,z:0}}var kq=new aq(e=>setTimeout(e,0)),Pq=new Map,Mq=Pq.clear.bind(Pq);function Dq(e,t){const n=function(e){const t=e.ownerDocument;let n=Pq.get(t);if(n)return n;n=t.getAnimations(),Pq.set(t,n),kq.schedule(Mq);const r=n.filter(t=>oO(t.effect)&&t.effect.target===e);return Pq.set(e,r),n}(e).filter(e=>{var n,r;if(oO(e.effect)){const{target:o}=e.effect;if(null==(r=o&&(null==(n=t.isValidTarget)?void 0:n.call(t,o)))||r)return e.effect.getKeyframes().some(e=>{for(const n of t.properties)if(e[n])return!0})}}).map(e=>{const{effect:t,currentTime:n}=e,r=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof r&&"number"==typeof n&&n<r?(e.currentTime=r,()=>{e.currentTime=n}):void 0});if(n.length>0)return()=>n.forEach(e=>null==e?void 0:e())}var Tq=class extends RM{constructor(e,t={}){var n,r,o,i;const{frameTransform:a=mq(e),ignoreTransforms:s,getBoundingClientRect:l=aO}=t,u=Dq(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||yO())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=dq(e),b=vq(g),v={x:null!=(n=null==b?void 0:b.scaleX)?n:1,y:null!=(r=null==b?void 0:b.scaleY)?r:1},y=function(e,t){const n=e.getAnimations();if(!n.length)return null;let r,o,i,a=!1;for(const e of n){if("running"!==e.playState)continue;const t=oO(e.effect)?e.effect.getKeyframes():[],n=t[t.length-1];if(!n)continue;const{transform:s,translate:l,scale:u}=n;"string"==typeof s&&s&&(r=s,a=!0),"string"==typeof l&&l&&(o=l,a=!0),"string"==typeof u&&u&&(i=u,a=!0)}return a?vq({transform:null!=r?r:t.transform,translate:null!=o?o:t.translate,scale:null!=i?i:t.scale}):null}(e,g);null==u||u(),b&&(d=function(e,t,n){const{scaleX:r,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-r)*parseFloat(n),l=e.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=r?e.width/r:e.width,c=o?e.height/o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,b,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,n){const{scaleX:r,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-r)*parseFloat(n),l=e.top+a+(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=r?e.width*r:e.width,c=o?e.height*o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,v.x=y.scaleX,v.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=v,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function Oq(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var qq=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:n}=this;if(Oq(n))for(const[r,o]of Object.entries(e)){const e=`${t}${r}`;this.initial.has(e)||this.initial.set(e,n.style.getPropertyValue(e)),n.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:n}=this;if(Oq(n))for(const r of e){const e=`${t}${r}`;n.style.removeProperty(e)}}reset(){const{element:e}=this;if(Oq(e)){for(const[t,n]of this.initial)e.style.setProperty(t,n);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function Lq(e){return!!e&&(e instanceof uO(e).Element||lO(e)&&e.nodeType===Node.ELEMENT_NODE)}function Nq(e){if(!e)return!1;const{KeyboardEvent:t}=uO(e.target);return e instanceof t}var jq={};function _q(e){const t=null==jq[e]?0:jq[e]+1;return jq[e]=t,`${e}-${t}`}var zq=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/EM.distance(t.shape.center,n),type:xT.PointerIntersection,priority:yT.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:o}=e,i=EM.distance(t.shape.center,o.current),a=r/(n.current.area+t.shape.area-r)/i;return{id:t.id,value:a,type:xT.ShapeIntersection,priority:yT.Normal}}return null})(e)},Fq=e=>{const{dragOperation:t,droppable:n}=e,{shape:r,position:o}=t;if(!n.shape)return null;const i=r?RM.from(r.current.boundingRectangle).corners:void 0,a=RM.from(n.shape.boundingRectangle).corners.reduce((e,t,n)=>{var r;return e+EM.distance(EM.from(t),null!=(r=null==i?void 0:i[n])?r:o.current)},0),s=a/4;return{id:n.id,value:1/s,type:xT.Collision,priority:yT.Normal}},$q=Object.create,Hq=Object.defineProperty,Bq=Object.defineProperties,Vq=Object.getOwnPropertyDescriptor,Wq=Object.getOwnPropertyDescriptors,Uq=Object.getOwnPropertySymbols,Gq=Object.prototype.hasOwnProperty,Kq=Object.prototype.propertyIsEnumerable,Yq=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Xq=e=>{throw TypeError(e)},Jq=(e,t,n)=>t in e?Hq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zq=(e,t)=>{for(var n in t||(t={}))Gq.call(t,n)&&Jq(e,n,t[n]);if(Uq)for(var n of Uq(t))Kq.call(t,n)&&Jq(e,n,t[n]);return e},Qq=(e,t)=>Bq(e,Wq(t)),eL=(e,t)=>Hq(e,"name",{value:t,configurable:!0}),tL=(e,t)=>{var n={};for(var r in e)Gq.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Uq)for(var r of Uq(e))t.indexOf(r)<0&&Kq.call(e,r)&&(n[r]=e[r]);return n},nL=e=>{var t;return[,,,$q(null!=(t=null==e?void 0:e[Yq("metadata")])?t:null)]},rL=["class","method","getter","setter","accessor","field","value","get","set"],oL=e=>void 0!==e&&"function"!=typeof e?Xq("Function expected"):e,iL=(e,t,n,r,o)=>({kind:rL[e],name:t,metadata:r,addInitializer:e=>n._?Xq("Already initialized"):o.push(oL(e||null))}),aL=(e,t)=>Jq(t,Yq("metadata"),e[3]),sL=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},lL=(e,t,n,r,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=rL[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&Vq(d<4?o:{get[n](){return dL(this,i)},set[n](e){return fL(this,i,e)}},n));d?f&&d<4&&eL(i,(d>2?"set ":d>1?"get ":"")+n):eL(o,n);for(var y=r.length-1;y>=0;y--)u=iL(d,n,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>cL(o,e):e=>n in e},3^d&&(c.get=f?e=>(1^d?dL:hL)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(c.set=f?(e,t)=>fL(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?oL(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?Xq("Object expected"):(oL(a=s.get)&&(v.get=a),oL(a=s.set)&&(v.set=a),oL(a=s.init)&&g.unshift(a));return d||aL(e,o),v&&Hq(o,n,v),f?4^d?i:v:o},uL=(e,t,n)=>t.has(e)||Xq("Cannot "+n),cL=(e,t)=>Object(t)!==t?Xq('Cannot use the "in" operator on this value'):e.has(t),dL=(e,t,n)=>(uL(e,t,"read from private field"),n?n.call(e):t.get(e)),pL=(e,t,n)=>t.has(e)?Xq("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),fL=(e,t,n,r)=>(uL(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),hL=(e,t,n)=>(uL(e,t,"access private method"),n),mL="button",gL="draggable",bL="dnd-kit-description",vL="dnd-kit-announcement",yL={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},xL={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:n}){if(e)return n?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function SL(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var wL=["dragover","dragmove"],CL=class extends pD{constructor(e,t){super(e);const{id:n,idPrefix:{description:r=bL,announcement:o=vL}={},announcements:i=xL,screenReaderInstructions:a=yL,debounce:s=500}=null!=t?t:{},l=n?`${r}-${n}`:_q(r),u=n?`${o}-${n}`:_q(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>sq.schedule(h),g=function(e,t){let n;const r=()=>{clearTimeout(n),n=setTimeout(e,t)};return r.cancel=()=>clearTimeout(n),r}(m,s),b=Object.entries(i).map(([e,t])=>this.manager.monitor.addEventListener(e,(n,r)=>{const o=p;if(!o)return;const i=null==t?void 0:t(n,r);i&&o.nodeValue!==i&&(f=i,wL.includes(e)?g():(m(),g.cancel()))})),v=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const n=document.createElement("div");return n.id=e,n.style.setProperty("display","none"),n.textContent=t,n}(l,a.draggable),e.push(c)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect(()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const n=null!=(e=t.handle)?e:t.element;if(n){c&&d||y.add(v),SL(n)&&!yO()||n.hasAttribute("tabindex")||y.add(()=>n.setAttribute("tabindex","0")),n.hasAttribute("role")||"button"===n.tagName.toLowerCase()||y.add(()=>n.setAttribute("role",mL)),n.hasAttribute("aria-roledescription")||y.add(()=>n.setAttribute("aria-roledescription",gL)),n.hasAttribute("aria-describedby")||y.add(()=>n.setAttribute("aria-describedby",l));for(const e of["aria-pressed","aria-grabbed"]){const r=String(t.isDragging);n.getAttribute(e)!==r&&y.add(()=>n.setAttribute(e,r))}const e=String(t.disabled);n.getAttribute("aria-disabled")!==e&&y.add(()=>n.setAttribute("aria-disabled",e))}}y.size>0&&sq.schedule(x)}),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),b.forEach(e=>e())}}};var EL,RL,AL,IL,kL,PL,ML,DL,TL,OL,qL,LL,NL,jL=new Map,_L=class extends(kL=hD,IL=[JP],AL=[ZP],RL=[ZP],EL=[ZP],kL){constructor(e,t){super(e,t),sL(ML,5,this),pL(this,TL),pL(this,PL,new Set),pL(this,DL,sL(ML,8,this,new Set)),sL(ML,11,this),this.registerEffect(hL(this,TL,OL))}register(e){return dL(this,PL).add(e),()=>{dL(this,PL).delete(e)}}addRoot(e){return zk(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{zk(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return wO(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return wO(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter(e=>null!=e);return new Set([...e,...this.additionalRoots])}return new Set}};ML=nL(kL),PL=new WeakMap,DL=new WeakMap,TL=new WeakSet,OL=function(){const{roots:e}=this,t=[];for(const n of e)for(const e of dL(this,PL))t.push(hL(this,TL,qL).call(this,n,e));return()=>{for(const e of t)e()}},qL=function(e,t){let n=jL.get(e);n||(n=new Map,jL.set(e,n));let r=n.get(t);if(!r){const o=cO(e)?hL(this,TL,LL).call(this,e,n,t):hL(this,TL,NL).call(this,e,n,t);if(!o)return()=>{};r=o,n.set(t,r)}r.refCount++;let o=!1;return()=>{o||(o=!0,r.refCount--,0===r.refCount&&r.cleanup())}},LL=function(e,t,n){var r;const o=e.createElement("style"),{nonce:i}=null!=(r=this.options)?r:{};i&&o.setAttribute("nonce",i),o.textContent=n,e.head.prepend(o);const a=new MutationObserver(t=>{for(const n of t)for(const t of Array.from(n.removedNodes))if(t===o)return void e.head.prepend(o)});return a.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{a.disconnect(),o.remove(),t.delete(n),0===t.size&&jL.delete(e)}}},NL=function(e,t,n){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const r=e.ownerDocument.defaultView,{CSSStyleSheet:o}=null!=r?r:{};if(!o)return null;const i=new o;return i.replaceSync(n),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{var r;if(SO(e)&&(null==(r=e.host)?void 0:r.isConnected)){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(n),0===t.size&&jL.delete(e)}}},lL(ML,4,"additionalRoots",IL,_L,DL),lL(ML,2,"sourceRoot",AL,_L),lL(ML,2,"targetRoot",RL,_L),lL(ML,2,"roots",EL,_L),aL(ML,_L),_L.configure=cD(_L);var zL=_L,FL="data-dnd-",$L=`${FL}dropping`,HL="--dnd-",BL=`${FL}dragging`,VL=`${FL}placeholder`,WL=[BL,VL,"popover","aria-pressed","aria-grabbing"],UL=["view-transition-name"],GL=`\n :is(:root,:host) [${BL}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${HL}top, 0px) !important;\n left: var(${HL}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${HL}width, auto);\n max-width: var(${HL}width, auto);\n height: var(${HL}height, auto);\n max-height: var(${HL}height, auto);\n transform: var(${HL}transform, none) !important;\n transition: var(${HL}transition) !important;\n }\n\n :is(:root,:host) [${VL}] {\n transition: none;\n }\n\n :is(:root,:host) [${VL}='hidden'] {\n visibility: hidden;\n }\n\n [${BL}] * {\n pointer-events: none !important;\n }\n\n [${BL}]:not([${$L}]) {\n translate: var(${HL}translate) !important;\n }\n\n [${BL}][style*='${HL}scale'] {\n scale: var(${HL}scale) !important;\n transform-origin: var(${HL}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${BL}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${BL}]::backdrop, [${FL}overlay]:not([${BL}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function KL(e,t="hidden"){return zk(()=>{const{element:n,manager:r}=e;if(!n||!r)return;const o=function(e,t){const n=new Map;for(const r of t)if(r.element&&(e===r.element||e.contains(r.element))){const e=`${FL}${_q("dom-id")}`;r.element.setAttribute(e,""),n.set(r,e)}return n}(n,r.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",n=e.cloneNode(!0),r=Array.from(e.querySelectorAll(t));return Array.from(n.querySelectorAll(t)).forEach((e,t)=>{const n=r[t];if(EO(e)&&EO(n)&&("file"!==e.type&&(e.value=n.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),RO(e)&&RO(n)&&n.width>0&&n.height>0){const t=e.getContext("2d");null==t||t.drawImage(n,0,0)}}),n}(n),{remove:s}=a;return function(e,t,n){for(const[r,o]of e){if(!r.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(r.element.removeAttribute(o),!i)continue;const a=r.element;r.proxy=i,i.removeAttribute(o),IO.set(a,i),n.push(()=>{IO.delete(a),r.proxy=void 0})}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(VL,t)}(a,t),a.remove=()=>{i.forEach(e=>e()),s.call(a)},a})}function YL(e,t){return e===t||PO(e)===PO(t)}function XL(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&Lq(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>nq(t))}function JL(e){return"TR"===e.tagName}var ZL,QL,eN,tN,nN,rN,oN,iN=250,aN="ease";var sN=class extends(QL=pD,ZL=[JP],QL){constructor(e,t){super(e,t),pL(this,nN),pL(this,tN,sL(eN,8,this)),sL(eN,11,this),this.state={initial:{},current:{}};const n=e.registry.plugins.get(zL),r=null==n?void 0:n.register(GL);if(r){const e=this.destroy.bind(this);this.destroy=()=>{r(),e()}}this.registerEffect(hL(this,nN,rN).bind(this,n)),this.registerEffect(hL(this,nN,oN))}};eN=nL(QL),tN=new WeakMap,nN=new WeakSet,rN=function(e){const{overlay:t}=this;if(!t||!e)return;const n=wO(t);return n?e.addRoot(n):void 0},oN=function(){var e,t,n,r,o,i,a;const{state:s,manager:l,options:u}=this,{dragOperation:c}=l,{position:d,source:p,status:f}=c;if(f.idle)return s.current={},void(s.initial={});if(!p)return;const{element:h}=p,m=p.pluginConfig(sN),g=null!=(t=null!=(e=null==m?void 0:m.feedback)?e:null==u?void 0:u.feedback)?t:"default",b="function"==typeof g?g(p,l):g;if(!h||"none"===b||!f.initialized||f.initializing)return;const{initial:v}=s,y=null!=(n=this.overlay)?n:h,x=mq(y),S=mq(h),w=!YL(h,y),C=new Tq(h,{frameTransform:w?S:null,ignoreTransforms:!w}),E=S.scaleX/x.scaleX,R=S.scaleY/x.scaleY;let{width:A,height:I,top:k,left:P}=C;w&&(A/=E,I/=R);const M=new qq(y),D=dq(h),{transition:T,translate:O,boxSizing:q,paddingBlockStart:L,paddingBlockEnd:N,paddingInlineStart:j,paddingInlineEnd:_,borderInlineStartWidth:z,borderInlineEndWidth:F,borderBlockStartWidth:$,borderBlockEndWidth:H}=D,B=T.split(",").filter(e=>!/^\s*(transform|translate|scale)\b/.test(e)).join(","),V=vq(D),W=D.transform,U="clone"===b,G="content-box"===q,K=G?parseInt(j)+parseInt(_)+parseInt(z)+parseInt(F):0,Y=G?parseInt(L)+parseInt(N)+parseInt($)+parseInt(H):0,X="move"===b||this.overlay?null:KL(p,U?"clone":"hidden"),J=zk(()=>Nq(l.dragOperation.activatorEvent));if(!v.translate)if(this.overlay&&V)v.translate={x:V.x,y:V.y};else if("none"!==O){const e=bq(O);e&&(v.translate=e)}if(!v.transformOrigin){const e=zk(()=>d.current),t=P+(null!=(r=null==V?void 0:V.x)?r:0),n=k+(null!=(o=null==V?void 0:V.y)?o:0);v.transformOrigin={x:(e.x-t*x.scaleX-x.x)/(A*x.scaleX),y:(e.y-n*x.scaleY-x.y)/(I*x.scaleY)}}const{transformOrigin:Z}=v,Q=k*x.scaleY+x.y,ee=P*x.scaleX+x.x;if(!v.coordinates&&(v.coordinates={x:ee,y:Q},1!==E||1!==R)){const{scaleX:e,scaleY:t}=S,{x:n,y:r}=Z;v.coordinates.x+=(A*e-A)*n,v.coordinates.y+=(I*t-I)*r}v.dimensions||(v.dimensions={width:A,height:I}),v.frameTransform||(v.frameTransform=x);const te=v.coordinates.x-ee,ne=v.coordinates.y-Q,re=(v.dimensions.width*v.frameTransform.scaleX-A*x.scaleX)*Z.x,oe=(v.dimensions.height*v.frameTransform.scaleY-I*x.scaleY)*Z.y,ie={x:te/x.scaleX+re,y:ne/x.scaleY+oe},ae=P+ie.x,se=k+ie.y;y.setAttribute(BL,"true");const le=zk(()=>c.transform),ue=null!=(i=v.translate)?i:{x:0,y:0},ce=le.x*x.scaleX+ue.x,de=le.y*x.scaleY+ue.y,pe=xO();if(M.set({width:A-K,height:I-Y,top:se+pe.y,left:ae+pe.x,translate:`${ce}px ${de}px 0`,transform:this.overlay?"none":W,transition:B?`${B}, translate 0ms linear`:"translate 0ms linear",scale:w?`${E} ${R}`:"","transform-origin":`${100*Z.x}% ${100*Z.y}%`},HL),X&&(h.insertAdjacentElement("afterend",X),null==u?void 0:u.rootElement)){("function"==typeof u.rootElement?u.rootElement(p):u.rootElement).appendChild(h)}let fe,he,me;tq(y)&&(y.hasAttribute("popover")||y.setAttribute("popover","manual"),nq(y),y.addEventListener("beforetoggle",XL));const ge=(be={placeholder:X,element:h,feedbackElement:y,frameTransform:x,transformOrigin:Z,width:A,height:I,top:k,left:P,widthOffset:K,heightOffset:Y,delta:ie,styles:M,dragOperation:c,getTranslate:()=>s.current.translate,getElementMutationObserver:()=>fe,getSavedCellWidths:()=>me,setSavedCellWidths:e=>{me=e}},new ResizeObserver(()=>{var e,t,n;const r=new Tq(be.placeholder,{frameTransform:be.frameTransform,ignoreTransforms:!0}),o=null!=(e=be.transformOrigin)?e:{x:1,y:1},i=(be.width-r.width)*o.x+be.delta.x,a=(be.height-r.height)*o.y+be.delta.y,s=xO();if(be.styles.set({width:r.width-be.widthOffset,height:r.height-be.heightOffset,top:be.top+a+s.y,left:be.left+i+s.x},HL),null==(t=be.getElementMutationObserver())||t.takeRecords(),JL(be.element)&&JL(be.placeholder)){const e=Array.from(be.element.cells),t=Array.from(be.placeholder.cells);be.getSavedCellWidths()||be.setSavedCellWidths(e.map(e=>e.style.width));for(const[n,r]of e.entries()){const e=t[n];r.style.width=`${e.getBoundingClientRect().width}px`}}const l=null!=(n=be.getTranslate())?n:{x:0,y:0},u=be.left+i+s.x+l.x,c=be.top+a+s.y+l.y,d=r.width-be.widthOffset,p=r.height-be.heightOffset,f=be.frameTransform;be.dragOperation.shape=new RM(u*f.scaleX+f.x,c*f.scaleY+f.y,d*f.scaleX,p*f.scaleY)}));var be;const ve=new Tq(y);zk(()=>c.shape=ve);const ye=uO(y),xe=e=>{this.manager.actions.stop({event:e})},Se=CO(ye);J&&ye.addEventListener("resize",xe),"idle"===zk(()=>p.status)&&requestAnimationFrame(()=>p.status="dragging"),X&&(ge.observe(X),fe=function(e,t,n){const r=new MutationObserver(r=>{let o=!1;for(const n of r){if(n.target!==e){o=!0;continue}if("attributes"!==n.type)continue;const r=n.attributeName;if(r.startsWith("aria-")||WL.includes(r))continue;const i=e.getAttribute(r);if("style"===r){if(Oq(e)&&Oq(t)){const n=e.style;for(const e of Array.from(t.style))""===n.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(n)){if(UL.includes(e)||e.startsWith(HL))continue;const r=n.getPropertyValue(e);t.style.setProperty(e,r)}}}else null!==i?t.setAttribute(r,i):t.removeAttribute(r)}o&&n&&t.replaceChildren(...e.cloneNode(!0).childNodes)});return r.observe(e,{attributes:!0,subtree:!0,childList:!0}),r}(h,X,U),he=function(e,t,n){const r=new MutationObserver(r=>{for(const o of r)if(0!==o.addedNodes.length)for(const r of Array.from(o.addedNodes)){if(r.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void nq(n);if(r.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void nq(n)}e.isConnected&&t.isConnected&&e.nextElementSibling!==t&&(e.insertAdjacentElement("afterend",t),nq(n))});return r.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),r}(h,X,y));const we=null==(a=l.dragOperation.source)?void 0:a.id,Ce=()=>{var e;if(!J||null==we)return;const t=l.registry.draggables.get(we),n=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;dO(n)&&n.focus()},Ee=()=>{null==fe||fe.disconnect(),null==he||he.disconnect(),ge.disconnect(),ye.removeEventListener("resize",xe),tq(y)&&(y.removeEventListener("beforetoggle",XL),y.removeAttribute("popover")),y.removeAttribute(BL),M.reset();const e=()=>{var e;if(me&&JL(h)){const t=Array.from(h.cells);for(const[n,r]of t.entries())r.style.width=null!=(e=me[n])?e:""}p.status="idle";const t=null!=s.current.translate,n=c.status.dragging;X&&(!n&&t||X.parentElement!==y.parentElement)&&y.isConnected&&X.replaceWith(y),null==X||X.remove()};y===this.overlay?setTimeout(e,0):e()},Re=null==u?void 0:u.dropAnimation,Ae=this,Ie=eM(()=>{var e,t,n;const{transform:r,status:o}=c;if((r.x||r.y||s.current.translate)&&o.dragging){const o=null!=(e=v.translate)?e:{x:0,y:0},i={x:r.x/x.scaleX+o.x,y:r.y/x.scaleY+o.y},a=s.current.translate,l=zk(()=>c.modifiers),d=zk(()=>{var e;return null==(e=c.shape)?void 0:e.current}),p=null==u?void 0:u.keyboardTransition,f=J&&!Se&&null!==p?`${null!=(t=null==p?void 0:p.duration)?t:250}ms ${null!=(n=null==p?void 0:p.easing)?n:"cubic-bezier(0.25, 1, 0.5, 1)"}`:"0ms linear";if(M.set({transition:B?`${B}, translate ${f}`:`translate ${f}`,translate:`${i.x}px ${i.y}px 0`},HL),null==fe||fe.takeRecords(),d&&d!==ve&&a&&!l.length){const e=EM.delta(i,a);c.shape=RM.from(d.boundingRectangle).translate(e.x*x.scaleX,e.y*x.scaleY)}else c.shape=new Tq(y);s.current.translate=i}},function(){if(c.status.dropped){this.dispose(),p.status="dropping";const e=void 0!==(null==m?void 0:m.dropAnimation)?m.dropAnimation:void 0!==Ae.dropAnimation?Ae.dropAnimation:Re;let t=s.current.translate;const n=null!=t;if(t||h===y||(t={x:0,y:0}),!t||null===e)return void Ee();l.renderer.rendering.then(()=>{!function(e){var t,n,r,o;const{animation:i}=e;if("function"==typeof i){const t=i({source:e.source,element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)})}const{duration:a=iN,easing:s=aN}=null!=i?i:{};nq(e.feedbackElement);const[,l]=null!=(t=iO(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const u=null!=(n=e.placeholder)?n:e.element,c={frameTransform:YL(e.feedbackElement,u)?null:void 0},d=new Tq(e.feedbackElement,c),p=null!=(r=bq(dq(e.feedbackElement).translate))?r:e.translate,f=new Tq(u,c),h=RM.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,b=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},v=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},HL),e.feedbackElement.setAttribute($L,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),Aq({element:e.feedbackElement,keyframes:Qq(Zq(Zq({},b),v),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:CO(uO(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute($L),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}({source:p,element:h,feedbackElement:y,placeholder:X,translate:t,moved:n,transition:T,alignment:p.alignment,styles:M,animation:null!=e?e:void 0,getElementMutationObserver:()=>fe,cleanup:Ee,restoreFocus:Ce})})}});return()=>{Ee(),Ie()}},lL(eN,4,"overlay",ZL,sN,tN),aL(eN,sN),sN.configure=cD(sN);var lN,uN,cN,dN,pN,fN,hN,mN=sN,gN=!0;cN=[JP],dN=yq.Forward,lN=[JP],uN=yq.Reverse;var bN=class{constructor(){pL(this,fN,sL(pN,8,this,gN)),sL(pN,11,this),pL(this,hN,sL(pN,12,this,gN)),sL(pN,15,this)}isLocked(e){return e!==yq.Idle&&(null==e?this[yq.Forward]===gN&&this[yq.Reverse]===gN:this[e]===gN)}unlock(e){e!==yq.Idle&&(this[e]=false)}};pN=nL(null),fN=new WeakMap,hN=new WeakMap,lL(pN,4,dN,cN,bN,fN),lL(pN,4,uN,lN,bN,hN),aL(pN,bN);var vN,yN,xN,SN,wN,CN,EN=[yq.Forward,yq.Reverse],RN=class{constructor(){this.x=new bN,this.y=new bN}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},AN=class extends pD{constructor(e){super(e);const t=Yk(new RN);let n=null;this.signal=t,iP(()=>{const{status:r}=e.dragOperation;if(!r.initialized)return n=null,void(t.value=new RN);const{delta:o}=e.dragOperation.position;if(n){const e={x:IN(o.x,n.x),y:IN(o.y,n.y)},r=t.peek();Nk(()=>{for(const t of qM)for(const n of EN)e[t]===n&&r[t].unlock(n);t.value=r})}n=o})}get current(){return this.signal.peek()}};function IN(e,t){return Math.sign(e-t)}var kN=class extends(yN=hD,vN=[JP],yN){constructor(e){super(e),pL(this,SN,sL(xN,8,this,!1)),sL(xN,11,this),pL(this,wN),pL(this,CN,()=>{if(!dL(this,wN))return;const{element:e,by:t}=dL(this,wN);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=(e,t)=>{var n;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return fL(this,wN,void 0),!1;const{position:o}=this.manager.dragOperation,i=null==o?void 0:o.current;if(i){const{by:o}=null!=e?e:{},a=o?{x:PN(o.x),y:PN(o.y)}:void 0,s=a?void 0:this.scrollIntentTracker.current;if(null==s?void 0:s.isLocked())return!1;for(const e of r){const r=iq(e,o);if(r.x||r.y){const{speed:r,direction:l}=wq(e,i,a,null==t?void 0:t.acceleration,null==t?void 0:t.threshold);if(s)for(const e of qM)s[e].isLocked(l[e])&&(r[e]=0,l[e]=0);if(l.x||l.y){const{x:t,y:i}=null!=o?o:l,a=t*r.x,s=i*r.y;if(a||s){const t=null==(n=dL(this,wN))?void 0:n.by;if(this.autoScrolling&&t){if(t.x&&!a||t.y&&!s)continue}return fL(this,wN,{element:e,by:{x:a,y:s}}),sq.schedule(dL(this,CN)),!0}}}}}return fL(this,wN,void 0),!1};let t=null,n=null;const r=YP(()=>{const{position:n,source:r}=e.dragOperation;if(!n)return null;const o=AO(wO(null==r?void 0:r.element),n.current);return o&&(t=o),null!=o?o:t}),o=YP(()=>{const t=r.value,{documentElement:o}=fO(t);if(!t||t===o){const{target:t}=e.dragOperation,r=null==t?void 0:t.element;if(r){const e=hq(r,{excludeElement:!1});return n=e,e}}if(t){const e=hq(t,{excludeElement:!1});return this.autoScrolling&&n&&e.size<(null==n?void 0:n.size)?n:(n=e,e)}return n=null,null},XP);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new AN(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&Nq(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function PN(e){return e>0?yq.Forward:e<0?yq.Reverse:yq.Idle}xN=nL(yN),SN=new WeakMap,wN=new WeakMap,CN=new WeakMap,lL(xN,4,"autoScrolling",vN,kN,SN),aL(xN,kN);var MN=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}}(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),DN=class extends pD{constructor(e,t){super(e,t);const n=e.registry.plugins.get(kN);if(!n)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=iP(()=>{var t,r,o;if(this.disabled)return;const{position:i,status:a}=e.dragOperation;if(a.dragging){const e={acceleration:null==(t=this.options)?void 0:t.acceleration,threshold:"number"==typeof(null==(r=this.options)?void 0:r.threshold)?{x:this.options.threshold,y:this.options.threshold}:null==(o=this.options)?void 0:o.threshold};if(n.scroll(void 0,e)){n.autoScrolling=!0;const t=setInterval(()=>MN.schedule(()=>n.scroll(void 0,e)),10);return()=>{clearInterval(t)}}n.autoScrolling=!1}})}};DN.configure=cD(DN);var TN,ON=DN,qN={capture:!0,passive:!0},LN=class extends hD{constructor(e){super(e),pL(this,TN),this.handleScroll=()=>{null==dL(this,TN)&&fL(this,TN,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),fL(this,TN,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=iP(()=>{var e,n,r;if(t.status.dragging){const o=null!=(r=null==(n=null==(e=t.source)?void 0:e.element)?void 0:n.ownerDocument)?r:document;return o.addEventListener("scroll",this.handleScroll,qN),()=>{o.removeEventListener("scroll",this.handleScroll,qN)}}})}};TN=new WeakMap;function NN(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var jN,_N=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var n;const r=null!=(n=t.handle)?n:t.element;return e.target!==r}}),zN=class extends ET{constructor(e,t){super(e),this.manager=e,this.options=t,pL(this,jN,[]),this.listeners=new kO,this.handleSourceKeyDown=(e,t,n)=>{if(this.disabled||e.defaultPrevented)return;if(!Lq(e.target))return;if(t.disabled)return;const{keyboardCodes:r=_N.keyboardCodes,preventActivation:o=_N.preventActivation}=null!=n?n:{};r.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,n))}}bind(e,t=this.options){const n=iP(()=>{var n;const r=null!=(n=e.handle)?n:e.element,o=n=>{Nq(n)&&this.handleSourceKeyDown(n,e,t)};if(r)return r.addEventListener("keydown",o),()=>{r.removeEventListener("keydown",o)}});return n}handleStart(e,t,n){const{element:r}=t;if(!r)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),Cq(r);const{center:o}=new Tq(r);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=fO(r),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,n),options:{capture:!0}}])];dL(this,jN).push(...a)}handleKeyDown(e,t,n){const{keyboardCodes:r=_N.keyboardCodes}=null!=n?n:{};if(HN(e,[...r.end,...r.cancel])){e.preventDefault();const t=HN(e,r.cancel);return void this.handleEnd(e,t)}HN(e,r.up)?this.handleMove("up",e):HN(e,r.down)&&this.handleMove("down",e),HN(e,r.left)?this.handleMove("left",e):HN(e,r.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var n,r;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(r=null==(n=this.options)?void 0:n.offset)?r:_N.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(ON);!1===(null==e?void 0:e.disabled)&&(e.disable(),dL(this,jN).push(()=>{e.enable()}))}cleanup(){dL(this,jN).forEach(e=>e()),fL(this,jN,[])}destroy(){this.cleanup(),this.listeners.clear()}};jN=new WeakMap,zN.configure=cD(zN),zN.defaults=_N;var FN,$N=zN;function HN(e,t){return t.includes(e.code)}var BN,VN;FN=new WeakMap;BN=new WeakMap,VN=new WeakMap;var WN=class{};WN.Delay=class extends AT{constructor(){super(...arguments),pL(this,BN),pL(this,VN)}onEvent(e){switch(e.type){case"pointerdown":fL(this,VN,gO(e)),fL(this,BN,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!dL(this,VN))return;const{x:t,y:n}=gO(e);kM({x:t-dL(this,VN).x,y:n-dL(this,VN).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){dL(this,BN)&&(clearTimeout(dL(this,BN)),fL(this,VN,void 0),fL(this,BN,void 0))}},WN.Distance=class extends AT{constructor(){super(...arguments),pL(this,FN)}onEvent(e){switch(e.type){case"pointerdown":fL(this,FN,gO(e));break;case"pointermove":if(!dL(this,FN))return;const{x:t,y:n}=gO(e),r={x:t-dL(this,FN).x,y:n-dL(this,FN).y},{tolerance:o}=this.options;if(o&&kM(r,o))return void this.abort();kM(r,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){fL(this,FN,void 0)}};var UN,GN=Object.freeze({activationConstraints(e,t){var n;const{pointerType:r,target:o}=e;if("mouse"!==r||!Lq(o)||t.handle!==o&&!(null==(n=t.handle)?void 0:n.contains(o)))return"touch"===r?[new WN.Delay({value:250,tolerance:5})]:function(e){if(!Lq(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(n=e).hasAttribute("contenteditable")&&"false"!==n.getAttribute("contenteditable");var n}(o)&&!e.defaultPrevented?[new WN.Delay({value:200,tolerance:0})]:[new WN.Delay({value:200,tolerance:10}),new WN.Distance({value:5})]},preventActivation(e,t){var n;const{target:r}=e;if(r===t.element)return!1;if(r===t.handle)return!1;if(!Lq(r))return!1;if(null==(n=t.handle)?void 0:n.contains(r))return!1;const o=r.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ');return o!==t.element&&Boolean(o)}}),KN=class extends ET{constructor(e,t){super(e),this.manager=e,this.options=t,pL(this,UN,new Set),this.listeners=new kO,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,n=this.options){const{activationConstraints:r=GN.activationConstraints}=null!=n?n:{};return"function"==typeof r?r(e,t):r}bind(e,t=this.options){const n=iP(()=>{var n;const r=new AbortController,{signal:o}=r,i=n=>{(function(e){if(!e)return!1;const{PointerEvent:t}=uO(e.target);return e instanceof t})(n)&&this.handlePointerDown(n,e,t)};let a=[null!=(n=e.handle)?n:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(QN(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>r.abort()});return n}handlePointerDown(e,t,n){if(this.disabled||!e.isPrimary||0!==e.button||!Lq(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:r=GN.preventActivation}=null!=n?n:{};if(null==r?void 0:r(e,t))return;const{target:o}=e,i=dO(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=mq(t.element),{x:s,y:l}=gO(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t,n);e.sensor=this;const c=new RT(u,e=>this.handleStart(t,e));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=vO(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:i?this.handleCancel:XN,options:{capture:!0}}]);dL(this,UN).add(()=>{p(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var n,r;if(!1!==(null==(n=this.controller)?void 0:n.activated)){if(this.manager.dragOperation.status.dragging){const n=gO(e),r=mq(t.element);n.x=n.x*r.scaleX+r.x,n.y=n.y*r.scaleY+r.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=n,sq.schedule(this.handleMove)}}else null==(r=this.controller)||r.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const n=!t.initialized;this.manager.actions.stop({event:e,canceled:n})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:n,initialCoordinates:r}=this;if(!r||!n.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(n.actions.start({coordinates:r,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=fO(t.target).body;try{o.setPointerCapture(t.pointerId)}catch(e){return void this.handleCancel(t)}const i=Lq(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:XN,options:{passive:!1}},{type:"click",listener:XN},{type:"contextmenu",listener:XN},{type:"keydown",listener:this.handleKeyDown}]);dL(this,UN).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){const{controller:e}=this;this.controller=void 0,e&&!e.signal.aborted&&e.abort(),this.latest={event:void 0,coordinates:void 0},dL(this,UN).forEach(e=>e()),dL(this,UN).clear()}destroy(){this.cleanup(),this.listeners.clear()}};UN=new WeakMap,KN.configure=cD(KN),KN.defaults=GN;var YN=KN;function XN(e){e.preventDefault()}function JN(){}var ZN=new WeakSet;function QN(e){e&&!ZN.has(e)&&(e.addEventListener("touchmove",JN,{capture:!1,passive:!1}),ZN.add(e))}var ej,tj,nj,rj,oj,ij,aj,sj,lj,uj,cj,dj,pj,fj,hj,mj,gj={modifiers:[],plugins:[CL,ON,class extends pD{constructor(e,t){super(e,t),this.manager=e;const{cursor:n="grabbing"}=null!=t?t:{},r=e.registry.plugins.get(zL),o=null==r?void 0:r.register(`* { cursor: ${n} !important; }`);if(o){const e=this.destroy.bind(this);this.destroy=()=>{o(),e()}}}},mN,class extends pD{constructor(e){super(e),this.manager=e;const t=e.registry.plugins.get(zL),n=null==t?void 0:t.register("* { user-select: none !important; -webkit-user-select: none !important; }");if(this.destroy=iP(()=>{const{dragOperation:e}=this.manager;if(e.status.initialized)return NN(),document.addEventListener("selectionchange",NN,{capture:!0}),()=>{document.removeEventListener("selectionchange",NN,{capture:!0})}}),n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}}}],sensors:[YN,$N]},bj=class extends JT{constructor(e={}){const t=XT(e.plugins,gj.plugins),n=XT(e.sensors,gj.sensors),r=XT(e.modifiers,gj.modifiers);super(Qq(Zq({},e),{plugins:[LN,kN,zL,...t],sensors:n,modifiers:r}))}},vj=class extends(nj=oT,tj=[JP],ej=[JP],nj){constructor(e,t){var n=e,{element:r,effects:o=()=>[],handle:i}=n,a=tL(n,["element","effects","handle"]);super(Zq({effects:()=>[...o(),()=>{var e,t;const{manager:n}=this;if(!n)return;const r=(null!=(t=null==(e=this.sensors)?void 0:e.map(dD))?t:[...n.sensors]).map(e=>{const t=e instanceof ET?e:n.registry.register(e.plugin),r=e instanceof ET?void 0:e.options;return t.bind(this,r)});return function(){r.forEach(e=>e())}}]},a),t),pL(this,oj,sL(rj,8,this)),sL(rj,11,this),pL(this,ij,sL(rj,12,this)),sL(rj,15,this),this.element=r,this.handle=i}};rj=nL(nj),oj=new WeakMap,ij=new WeakMap,lL(rj,4,"handle",tj,vj,oj),lL(rj,4,"element",ej,vj,ij),aL(rj,vj);var yj=class extends(lj=iT,sj=[JP],aj=[JP],lj){constructor(e,t){var n=e,{element:r,effects:o=()=>[]}=n,i=tL(n,["element","effects"]);const{collisionDetector:a=zq}=i,s=e=>{const{manager:t,element:n}=this;if(!n||null===e)return void(this.shape=void 0);if(!t)return;const r=new Tq(n),o=zk(()=>this.shape);return r&&(null==o?void 0:o.equals(r))?o:(this.shape=r,r)},l=Yk(!1);super(Qq(Zq({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:n}=t,{source:r}=n;l.value=Boolean(r&&n.status.initialized&&e&&!this.disabled&&this.accepts(r))},()=>{const{element:e}=this;if(l.value&&e){const t=new eq(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),pL(this,hj),pL(this,cj,sL(uj,8,this)),sL(uj,11,this),pL(this,mj,sL(uj,12,this)),sL(uj,15,this),this.element=r,this.refreshShape=()=>s()}set element(e){fL(this,hj,e,fj)}get element(){var e;return null!=(e=this.proxy)?e:dL(this,hj,pj)}};function xj(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}uj=nL(lj),cj=new WeakMap,hj=new WeakSet,mj=new WeakMap,dj=lL(uj,20,"#element",sj,hj,cj),pj=dj.get,fj=dj.set,lL(uj,4,"proxy",aj,yj,mj),aL(uj,yj);var Sj="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?j:O;function wj(){const e=P(0)[1];return L(()=>{e(e=>e+1)},[e])}function Cj(e,t=[],n=!1){const r=M(e);return r.current=e,function(e,t=!1){const n=M(e.peek()),r=M(!1),o=wj();return Sj(()=>iP(()=>{const i=n.current,a=e.value;if(i!==a){if(n.current=a,!r.current)return;t?U(o):o()}}),[e,t,o]),{get value(){return r.current=!0,e.peek()}}}(k(()=>YP(()=>r.current()),t),n)}function Ej(e,t){const n=M(new Map),r=wj();return Sj(()=>{if(e)return iP(()=>{var o;let i=!1,a=!1;for(const r of n.current){const[s]=r,l=zk(()=>r[1]),u=e[s];l!==u&&(i=!0,n.current.set(s,u),a=null!=(o=null==t?void 0:t(s,l,u))&&o)}i&&(a?queueMicrotask(()=>U(r)):r())});n.current.clear()},[e]),k(()=>e?new Proxy(e,{get(e,t){const r=e[t];return n.current.set(t,r),r}}):e,[e])}function Rj(e,t){e()}function Aj(e){const t=M(e);return Sj(()=>{t.current=e},[e]),t}function Ij(e,t,n=O,r=Object.is){const o=M(e);n(()=>{const n=o.current;r(e,n)||(o.current=e,t(e,n))},[t,e])}function kj(e,t){const n=M(xj(e));Sj(()=>{const r=xj(e);r!==n.current&&(n.current=r,t(r))})}var Pj=Object.defineProperty,Mj=Object.defineProperties,Dj=Object.getOwnPropertyDescriptors,Tj=Object.getOwnPropertySymbols,Oj=Object.prototype.hasOwnProperty,qj=Object.prototype.propertyIsEnumerable,Lj=(e,t,n)=>t in e?Pj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nj=new bj,jj=D(Nj),_j=z(F(({children:e},t)=>{const[n,r]=P(0),o=M(null),i=M(null),a=k(()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise(e=>{i.current=e})),$(()=>{e(),r(e=>e+1)})}}),[]);return Sj(()=>{var e;null==(e=i.current)||e.call(i),o.current=null},[e,n]),H(t,()=>a),null})),zj=[void 0,XP];function Fj(e){var t=e,{children:n,onCollision:r,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,u=((e,t)=>{var n={};for(var r in e)Oj.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Tj)for(var r of Tj(e))t.indexOf(r)<0&&qj.call(e,r)&&(n[r]=e[r]);return n})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const c=M(null),{plugins:d,modifiers:p,sensors:f}=u,h=XT(d,gj.plugins),m=XT(f,gj.sensors),g=XT(p,gj.modifiers),b=Aj(o),v=Aj(i),y=Aj(s),x=Aj(a),S=Aj(l),w=Aj(r),C=function(e){const t=M(null);t.current||(t.current=e());return _(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=u.manager)?e:new bj(u)});return O(()=>{if(!c.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=c.current,{monitor:n}=C;C.renderer=e;const r=[n.addEventListener("beforedragstart",e=>{const n=b.current;n&&t(()=>n(e,C))}),n.addEventListener("dragstart",e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,C)}),n.addEventListener("dragover",e=>{const n=y.current;n&&t(()=>n(e,C))}),n.addEventListener("dragmove",e=>{const n=x.current;n&&t(()=>n(e,C))}),n.addEventListener("dragend",e=>{const n=S.current;n&&t(()=>n(e,C))}),n.addEventListener("collision",e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)})];return()=>r.forEach(e=>e())},[C]),Ij(h,()=>C&&(C.plugins=h),...zj),Ij(m,()=>C&&(C.sensors=m),...zj),Ij(g,()=>C&&(C.modifiers=g),...zj),Yt.jsxs(jj.Provider,{value:C,children:[Yt.jsx(_j,{ref:c,children:n}),n]})}function $j(){return N(jj)}function Hj(e){var t;const n=null!=(t=$j())?t:void 0,[r]=P(()=>e(n));return r.manager!==n&&(r.manager=n),Sj(r.register,[n,r]),r}function Bj({children:e,className:t,dropAnimation:n,style:r,tag:o,disabled:i}){var a;const s=M(null),l=$j(),u=null!=(a=Cj(()=>null==l?void 0:l.dragOperation.source,[l]).value)?a:null,c="function"==typeof i?i(u):i;O(()=>{if(!s.current||!l||c)return;const e=l.plugins.find(e=>e instanceof mN);return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0},[l,c]),O(()=>{if(!l)return;const e=l.plugins.find(e=>e instanceof mN);return e?(e.dropAnimation=n,()=>{e.dropAnimation=void 0}):void 0},[l,n]);const d=k(()=>{if(!l)return null;const e=new Proxy(l.registry,{get:(e,t)=>"register"===t||"unregister"===t?Vj:e[t]});return new Proxy(l,{get:(t,n)=>"registry"===n?e:t[n]})},[l]);return Yt.jsx(jj.Provider,{value:d,children:C(o||"div",{ref:s,className:t,style:r,"data-dnd-overlay":!0},function(){if(!u||c)return null;if("function"==typeof e)return Yt.jsx(Wj,{source:u,children:e});return e}())})}function Vj(){return()=>{}}function Wj({children:e,source:t}){return e(Ej(t))}var Uj,Gj,Kj,Yj,Xj,Jj=Object.create,Zj=Object.defineProperty,Qj=Object.getOwnPropertyDescriptor,e_=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),t_=e=>{throw TypeError(e)},n_=["class","method","getter","setter","accessor","field","value","get","set"],r_=e=>void 0!==e&&"function"!=typeof e?t_("Function expected"):e,o_=(e,t,n,r,o)=>({kind:n_[e],name:t,metadata:r,addInitializer:e=>n._?t_("Already initialized"):o.push(r_(e||null))}),i_=(e,t,n,r,o,i)=>{for(var a,s,l,u,c=7&t,d=n_[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,Qj(o,n)),h=r.length-1;h>=0;h--)(l=o_(c,n,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>n in e},u.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,r_(a)&&(f[d]=a);return f&&Zj(o,n,f),o},a_=(e,t,n)=>t.has(e)||t_("Cannot "+n),s_=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},l_=class extends(Kj=nM,Gj=[ZP],Uj=[ZP],Kj){constructor(e){var t,n,r;super(s_.from(e),(e,t)=>s_.equals(e,t)),((e,t,n)=>{for(var r=0,o=e[t>>1],i=o&&o.length;r<i;r++)o[r].call(n)})(Xj,5,this),t=this,r=0,(n=Yj).has(t)?t_("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return s_.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=s_.from(e),r={x:n.x-t.x,y:n.y-t.y},o=Date.now(),i=o-(a_(a=this,s=Yj,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);Nk(()=>{((e,t,n)=>{a_(e,t,"write to private field"),t.set(e,n)})(this,Yj,o),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(s_.from(e)),this.velocity={x:0,y:0}}};Xj=(e=>{var t;return[,,,Jj(null!=(t=null==e?void 0:e[e_("metadata")])?t:null)]})(Kj),Yj=new WeakMap,i_(Xj,2,"delta",Gj,l_),i_(Xj,2,"direction",Uj,l_),((e,t)=>{((e,t,n)=>{t in e?Zj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(t,e_("metadata"),e[3])})(Xj,l_);var u_=(e=>(e.Horizontal="x",e.Vertical="y",e))(u_||{});Object.values(u_);var c_=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/s_.distance(t.shape.center,n),type:xT.PointerIntersection,priority:yT.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:o}=e,i=s_.distance(t.shape.center,o.current),a=r/(n.current.area+t.shape.area-r)/i;return{id:t.id,value:a,type:xT.ShapeIntersection,priority:yT.Normal}}return null})(e)};function d_(e){const{collisionDetector:t,data:n,disabled:r,element:o,id:i,accept:a,type:s}=e,l=Hj(t=>new yj(((e,t)=>Mj(e,Dj(t)))(((e,t)=>{for(var n in t||(t={}))Oj.call(t,n)&&Lj(e,n,t[n]);if(Tj)for(var n of Tj(t))qj.call(t,n)&&Lj(e,n,t[n]);return e})({},e),{register:!1,element:xj(o)}),t)),u=Ej(l);return Ij(i,()=>l.id=i),kj(o,e=>l.element=e),Ij(a,()=>l.accept=a,void 0,XP),Ij(t,()=>l.collisionDetector=null!=t?t:c_),Ij(n,()=>n&&(l.data=n)),Ij(r,()=>l.disabled=!0===r),Ij(s,()=>l.type=s),{droppable:u,get isDropTarget(){return u.isDropTarget},ref:L(e=>{var t,n;(e||!(null==(t=l.element)?void 0:t.isConnected)||(null==(n=l.manager)?void 0:n.dragOperation.status.idle))&&(l.element=null!=e?e:void 0)},[l])}}function p_(e){const t=$j();O(()=>{if(!t)return;const n=Object.entries(e).reduce((e,[n,r])=>{if(r){const o=n.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,r);e.push(i)}return e},[]);return()=>n.forEach(e=>null==e?void 0:e())},[t,e])}const f_=e=>Array.from({length:e},(e,t)=>t),h_=({id:e,sectionIndex:t,itemIndex:n})=>Yt.jsx("span",{children:`${e}-${t}-${n}`}),m_=z(()=>{const e=Qg(Rk)??h_,{startSectionIndex:t,startIndex:n,id:r}=Qg(Pk)??{};return"number"!=typeof t||"number"!=typeof n||void 0===r?null:Yt.jsx(Bj,{dropAnimation:null,children:Yt.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px",background:"white",boxShadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.15)",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.15)",width:"208px",maxHeight:"32px",fontSize:"12px",lineHeight:"16px"},children:Yt.jsx(e,{id:r,sectionIndex:t,itemIndex:n})})})}),g_=({sectionIndex:e,itemIndex:t,isDragging:n})=>{const r=Qg(Pk),o=r?.toSectionIndex===e&&r.toIndex===t;return Yt.jsx("div",{"data-key":"drop-target-indicator","data-testid":"drop-target-indicator",style:{visibility:o&&!n?"visible":"hidden",padding:0,background:"rgba(64, 64, 64, 1)",borderRadius:2,marginLeft:"4px",width:"calc(100% - 8px)",height:"2px"}})},b_=(e,t)=>e?"2px solid rgba(0, 135, 61, 1)":t?"1px dashed rgba(0, 0, 0, 0.43)":void 0,v_=z(({sectionIndex:e})=>{const t=Qg(vk)[e],n=Qg(yk),r=Qg(xk),o=null!==Qg(Pk),i=r(e),a=n({sectionIndex:e}),{ref:s,isDropTarget:l}=d_({id:a,type:"section",accept:"item",collisionPriority:yT.Low,data:{id:a,sectionIndex:e,sectionKey:a}});return t>0?null:Yt.jsxs(Sd,{ref:s,sx:{margin:"4px",outline:b_(l,o),borderRadius:"4px",boxSizing:"border-box"},children:[Yt.jsx(Sd,{sx:{position:"relative",top:"4px"},children:Yt.jsx(g_,{sectionIndex:e,itemIndex:0,isDragging:!1})}),Yt.jsxs(Sd,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",padding:"20px 4px"},children:[Yt.jsx(jc,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontWeight:"600",fontSize:"14px",lineHeight:"16px",color:"rgba(64, 64, 64, 1)"},children:i.title}),Yt.jsx(jc,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontSize:"12px",lineHeight:"150%",color:"rgba(64, 64, 64, 1)"},children:i.message})]})]})}),y_=z(({id:e,sectionIndex:t})=>{const n=Qg(Ek);return void 0===n?null:C(n,{id:e,sectionIndex:t})});var x_=Object.defineProperty,S_=Object.defineProperties,w_=Object.getOwnPropertyDescriptors,C_=Object.getOwnPropertySymbols,E_=Object.prototype.hasOwnProperty,R_=Object.prototype.propertyIsEnumerable,A_=(e,t,n)=>t in e?x_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I_=(e,t)=>{for(var n in t||(t={}))E_.call(t,n)&&A_(e,n,t[n]);if(C_)for(var n of C_(t))R_.call(t,n)&&A_(e,n,t[n]);return e},k_=(e,t)=>S_(e,w_(t)),P_=class extends UT{apply({transform:e}){if(!this.options)return e;const{axis:t,value:n}=this.options;return k_(I_({},e),{[t]:n})}};P_.configure=cD(P_);var M_=P_,D_=M_.configure({axis:"x",value:0});M_.configure({axis:"y",value:0});var T_=class extends UT{apply({transform:e}){var t;const{size:n=20}=null!=(t=this.options)?t:{},r="number"==typeof n?n:n.x,o="number"==typeof n?n:n.y;return k_(I_({},e),{x:Math.ceil(e.x/r)*r,y:Math.ceil(e.y/o)*o})}};T_.configure=cD(T_);var O_=Object.create,q_=Object.defineProperty,L_=Object.defineProperties,N_=Object.getOwnPropertyDescriptor,j_=Object.getOwnPropertyDescriptors,__=Object.getOwnPropertySymbols,z_=Object.prototype.hasOwnProperty,F_=Object.prototype.propertyIsEnumerable,$_=e=>{throw TypeError(e)},H_=(e,t,n)=>t in e?q_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B_=(e,t)=>{for(var n in t||(t={}))z_.call(t,n)&&H_(e,n,t[n]);if(__)for(var n of __(t))F_.call(t,n)&&H_(e,n,t[n]);return e},V_=(e,t)=>L_(e,j_(t)),W_=["class","method","getter","setter","accessor","field","value","get","set"],U_=e=>void 0!==e&&"function"!=typeof e?$_("Function expected"):e,G_=(e,t,n,r,o)=>({kind:W_[e],name:t,metadata:r,addInitializer:e=>n._?$_("Already initialized"):o.push(U_(e||null))}),K_=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},Y_=(e,t,n,r,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=W_[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,N_({get[n](){return J_(this,i)},set[n](e){return Q_(this,i,e)}},n)),b=r.length-1;b>=0;b--)(u=G_(d,n,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>n in e},c.get=e=>e[n],c.set=(e,t)=>e[n]=t,s=(0,r[b])({get:g.get,set:g.set},u),l._=1,void 0===s?U_(s)&&(g[f]=s):"object"!=typeof s||null===s?$_("Object expected"):(U_(a=s.get)&&(g.get=a),U_(a=s.set)&&(g.set=a),U_(a=s.init)&&h.unshift(a));return g&&q_(o,n,g),o},X_=(e,t,n)=>t.has(e)||$_("Cannot "+n),J_=(e,t,n)=>(X_(e,t,"read from private field"),t.get(e)),Z_=(e,t,n)=>t.has(e)?$_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Q_=(e,t,n,r)=>(X_(e,t,"write to private field"),t.set(e,n),n);function ez(e){return e instanceof Nz||e instanceof Lz}var tz=class extends pD{constructor(e){super(e);const t=iP(()=>{const{dragOperation:t}=e;if(Nq(t.activatorEvent)&&ez(t.source)&&t.status.initialized){const t=e.registry.plugins.get(kN);if(t)return t.disable(),()=>t.enable()}}),n=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:n}=t;if(!Nq(e.nativeEvent))return;if(!ez(n.source))return;if(!n.shape)return;const{actions:r,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:n}=e;if(t>0)return"right";if(t<0)return"left";if(n>0)return"down";if(n<0)return"up"}(a),{source:l,target:u}=n,{center:c}=n.shape.current,d=[],p=[];Nk(()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&ez(e)||!e.element)continue;let n=e.shape;const r=new Tq(e.element,{getBoundingClientRect:e=>mO(e,void 0,.2)});r.height&&r.width&&(("down"==s&&c.y+10<r.center.y||"up"==s&&c.y-10>r.center.y||"left"==s&&c.x-10>r.center.x||"right"==s&&c.x+10<r.center.x)&&(d.push(e),e.shape=r,p.push(()=>e.shape=n)))}}),e.preventDefault(),o.disable();const f=o.computeCollisions(d,Fq);Nk(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:b}=l.sortable;r.setDropTarget(m).then(()=>{const{source:e,target:t,shape:i}=n;if(!e||!ez(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||b!==s,c=u?l:null==t?void 0:t.element;if(!c)return;Cq(c);const d=new Tq(c);if(!d)return;const p=RM.delta(d,RM.from(i.current.boundingRectangle),e.alignment);r.move({by:p}),u?r.setDropTarget(e.id).then(()=>o.enable()):o.enable()})})});this.destroy=()=>{n(),t()}}};var nz=Object.defineProperty,rz=Object.defineProperties,oz=Object.getOwnPropertyDescriptors,iz=Object.getOwnPropertySymbols,az=Object.prototype.hasOwnProperty,sz=Object.prototype.propertyIsEnumerable,lz=(e,t,n)=>t in e?nz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uz=(e,t)=>{for(var n in t||(t={}))az.call(t,n)&&lz(e,n,t[n]);if(iz)for(var n of iz(t))sz.call(t,n)&&lz(e,n,t[n]);return e},cz=(e,t)=>rz(e,oz(t));function dz(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function pz(e,t){const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?n:void 0}function fz(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function hz(e,t){return function(e,t,n){var r,o;const{source:i,target:a,canceled:s}=t.operation;if(!i||!a||s)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||null!==e&&"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>l(e,i.id)),o=e.findIndex(e=>l(e,a.id));if(-1===r||-1===o){if(fz(i)){const r=i.initialIndex,o=i.index;return r===o||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,o)}return e}if(!s&&"index"in i&&"number"==typeof i.index){const t=i.index;if(t!==r)return n(e,r,t)}return n(e,r,o)}const u=Object.entries(e);let c,d,p=-1,f=-1;for(const[e,t]of u)if(-1===p&&(p=t.findIndex(e=>l(e,i.id)),-1!==p&&(c=e)),-1===f&&(f=t.findIndex(e=>l(e,a.id)),-1!==f&&(d=e)),-1!==p&&-1!==f)break;if(-1===p&&fz(i)){const r=null==i.initialGroup?void 0:pz(e,i.initialGroup),o=i.initialIndex,a=null==i.group?void 0:pz(e,i.group),s=i.index;if(null==r||null==a)return"preventDefault"in t&&t.preventDefault(),e;if(r===a&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===a)return cz(uz({},e),{[r]:n(e[r],o,s)});const l=e[r][o];return cz(uz({},e),{[r]:[...e[r].slice(0,o),...e[r].slice(o+1)],[a]:[...e[a].slice(0,s),l,...e[a].slice(s)]})}if(!i.manager)return e;const{dragOperation:h}=i.manager,m=null!=(o=null==(r=h.shape)?void 0:r.current.center)?o:h.position.current;if(null==d){const t=pz(e,a.id);null!=t&&(d=t,f=a.shape&&m.y>a.shape.center.y?e[t].length:0)}if(null==c||null==d||c===d&&p===f){if(null!=c&&c===d&&p===f&&fz(i)){const t=null==i.group?void 0:pz(e,i.group),r=null!=i.group&&t!==c,o=i.index!==p;if(r||o){const r=null==i.group?c:t;if(null!=r){if(c===r)return cz(uz({},e),{[c]:n(e[c],p,i.index)});const t=e[c][p];return cz(uz({},e),{[c]:[...e[c].slice(0,p),...e[c].slice(p+1)],[r]:[...e[r].slice(0,i.index),t,...e[r].slice(i.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(c===d)return cz(uz({},e),{[c]:n(e[c],p,f)});const g=a.shape&&Math.round(m.y)>Math.round(a.shape.center.y)?1:0,b=e[c][p];return cz(uz({},e),{[c]:[...e[c].slice(0,p),...e[c].slice(p+1)],[d]:[...e[d].slice(0,f+g),b,...e[d].slice(f+g)]})}(e,t,dz)}function mz(e){const t=new Map;for(const[,n]of e)for(const e of n)t.set(e.id,e.index);return t}function gz(e,t,n){var r;for(const[o,i]of t)for(const t of i){const i=e.get(t.id);if(t.index!==i||t.group!==o||!(null==(r=n.get(o))?void 0:r.has(t)))return!0}return!1}var bz="__default__";function vz(e,t,n,r){const o=r<t?"afterend":"beforebegin";n.insertAdjacentElement(o,e)}function yz(e,t){return e.index-t.index}function xz(e,t){return e.initialIndex-t.initialIndex}function Sz(e,t=yz){return Array.from(e).sort(t)}var wz=[tz,class extends pD{constructor(e){super(e);const t=()=>{const t=new Map;for(const n of e.registry.droppables)if(n instanceof Nz){const{sortable:e}=n,{group:r}=e;let o=t.get(r);o||(o=new Set,t.set(r,o)),o.add(e)}return t},n=[e.monitor.addEventListener("dragover",(e,n)=>{if(this.disabled)return;const{dragOperation:r}=n,{source:o,target:i}=r;if(!ez(o)||!ez(i))return;if(o.sortable===i.sortable)return;const a=t(),s=mz(a),l=o.sortable.group===i.sortable.group,u=a.get(o.sortable.group),c=l?u:a.get(i.sortable.group);u&&c&&queueMicrotask(()=>{e.defaultPrevented||n.renderer.rendering.then(()=>{var r,d;const p=t();if(gz(s,a,p))return;const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!l&&i.id===o.sortable.group)return;const m=Sz(u),g=l?m:Sz(c),b=null!=(r=o.sortable.group)?r:bz,v=null!=(d=i.sortable.group)?d:bz,y={[b]:m,[v]:g},x=hz(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);n.collisionObserver.disable(),vz(f,S,h,w),Nk(()=>{for(const[e,t]of x[b].entries())t.index=e;if(!l)for(const[e,t]of x[v].entries())t.group=i.sortable.group,t.index=e}),n.actions.setDropTarget(o.id).then(()=>n.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,n)=>{if(!e.canceled)return;const{dragOperation:r}=n,{source:o}=r;ez(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask(()=>{const e=t(),r=mz(e),i=e.get(o.sortable.initialGroup);i&&n.renderer.rendering.then(()=>{const n=t();if(gz(r,e,n))return;const a=Sz(i),s=Sz(i,xz),l=o.sortable.element,u=a[s.indexOf(o.sortable)],c=null==u?void 0:u.element;u&&c&&l&&(vz(l,u.index,c,o.index),Nk(()=>{for(const t of e.values()){const e=Array.from(t).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of n)e()}}}],Cz={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1};function Ez(e){var t,n;return"boolean"==typeof e?{draggable:e,droppable:e}:{draggable:null!=(t=null==e?void 0:e.draggable)&&t,droppable:null!=(n=null==e?void 0:e.droppable)&&n}}var Rz,Az,Iz,kz,Pz,Mz,Dz,Tz,Oz=new class{constructor(){UP(this,tM,new WeakMap)}get(e,t){var n;return e?null==(n=WP(this,tM).get(e))?void 0:n.get(t):void 0}set(e,t,n){var r;if(e)return WP(this,tM).has(e)||WP(this,tM).set(e,new Map),null==(r=WP(this,tM).get(e))?void 0:r.set(t,n)}clear(e){var t;return e?null==(t=WP(this,tM).get(e))?void 0:t.clear():void 0}};Az=[JP],Rz=[JP];var qz=class{constructor(e,t){Z_(this,kz,K_(Iz,8,this)),K_(Iz,11,this),Z_(this,Pz),Z_(this,Mz),Z_(this,Dz,K_(Iz,12,this)),K_(Iz,15,this),Z_(this,Tz),this.register=()=>(Nk(()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)}),()=>this.unregister()),this.unregister=()=>{Nk(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{Nk(()=>{this.droppable.destroy(),this.draggable.destroy()})};var n=e,{effects:r=()=>[],disabled:o,group:i,index:a,sensors:s,type:l,transition:u=Cz,plugins:c}=n,d=((e,t)=>{var n={};for(var r in e)z_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&__)for(var r of __(e))t.indexOf(r)<0&&F_.call(e,r)&&(n[r]=e[r]);return n})(n,["effects","disabled","group","index","sensors","type","transition","plugins"]);const p=XT(c,wz),f=Ez(o);this.droppable=new Nz(V_(B_({},d),{disabled:f.droppable}),t,this),this.draggable=new Lz(V_(B_({},d),{disabled:f.draggable,plugins:p,effects:()=>[()=>{var e,t,n;const r=null==(e=this.manager)?void 0:e.dragOperation.status;(null==r?void 0:r.initializing)&&this.id===(null==(n=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:n.id)&&Oz.clear(this.manager),(null==r?void 0:r.dragging)&&Oz.set(this.manager,this.id,zk(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:n}=this,r=J_(this,Mz),o=J_(this,Pz);e===r&&t===o||(Q_(this,Mz,e),Q_(this,Pz,t),this.animate())},()=>{var e,t;const{target:n}=this,{isDragSource:r}=this.draggable;"move"===(null!=(t=null==(e=this.draggable.pluginConfig(mN))?void 0:e.feedback)?t:"default")&&r&&(this.droppable.disabled=!n)},...r()],type:l,sensors:s}),t,this),Q_(this,Tz,d.element),this.manager=t,this.index=a,Q_(this,Mz,a),this.group=i,Q_(this,Pz,i),this.type=l,this.transition=u}get initialIndex(){var e,t;return null!=(t=null==(e=Oz.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=Oz.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){zk(()=>{const{manager:e,transition:t}=this,{shape:n}=this.droppable;if(!e)return;const{idle:r}=e.dragOperation.status;n&&t&&(!r||t.idle)&&e.renderer.rendering.then(()=>{const{element:r}=this;if(!r)return;for(const e of r.getAnimations())!("transitionProperty"in e)||"transform"!==e.transitionProperty&&"translate"!==e.transitionProperty&&"scale"!==e.transitionProperty||e.cancel();const o=this.refreshShape();if(!o)return;const i=n.boundingRectangle.left-o.boundingRectangle.left,a=n.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=dq(r),l=Iq(r,s,!1),u=Iq(r,s);if(i||a){const n=CO(uO(r))?V_(B_({},t),{duration:0}):t;Aq({element:r,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:n}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(e){Nk(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){Nk(()=>{const t=J_(this,Tz),n=this.droppable.element,r=this.draggable.element;n&&n!==t||(this.droppable.element=e),r&&r!==t||(this.draggable.element=e),Q_(this,Tz,e)})}get element(){var e,t;const n=J_(this,Tz);if(n)return null!=(t=null!=(e=IO.get(n))?e:n)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){const{disabled:e}=this.draggable,{disabled:t}=this.droppable;return e===t?e:{draggable:e,droppable:t}}set plugins(e){this.draggable.plugins=XT(e,wz)}set disabled(e){const t=Ez(e);Nk(()=>{this.droppable.disabled=t.droppable,this.draggable.disabled=t.draggable})}set data(e){Nk(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){this.droppable.id=e,this.draggable.id=e}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:zq}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){Nk(()=>{this.droppable.type=e,this.draggable.type=e})}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};Iz=[,,,O_(null)],kz=new WeakMap,Pz=new WeakMap,Mz=new WeakMap,Dz=new WeakMap,Tz=new WeakMap,Y_(Iz,4,"index",Az,qz,kz),Y_(Iz,4,"group",Rz,qz,Dz),((e,t)=>{return H_(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r})(Iz,qz);var Lz=class extends vj{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},Nz=class extends yj{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get group(){return this.sortable.group}},jz=Object.defineProperty,_z=Object.defineProperties,zz=Object.getOwnPropertyDescriptors,Fz=Object.getOwnPropertySymbols,$z=Object.prototype.hasOwnProperty,Hz=Object.prototype.propertyIsEnumerable,Bz=(e,t,n)=>t in e?jz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vz=(e,t)=>{for(var n in t||(t={}))$z.call(t,n)&&Bz(e,n,t[n]);if(Fz)for(var n of Fz(t))Hz.call(t,n)&&Bz(e,n,t[n]);return e};function Wz(e){const{accept:t,collisionDetector:n,collisionPriority:r,id:o,data:i,element:a,handle:s,index:l,group:u,disabled:c,modifiers:d,sensors:p,target:f,type:h,plugins:m}=e,g=Vz(Vz({},Cz),e.transition),b=Hj(t=>new qz(((e,t)=>_z(e,zz(t)))(Vz({},e),{transition:g,register:!1,handle:xj(s),element:xj(a),target:xj(f)}),t)),v=Ej(b,Uz);return Ij(o,()=>b.id=o),Sj(()=>{Nk(()=>{b.group=u,b.index=l})},[b,u,l]),Ij(h,()=>b.type=h),Ij(t,()=>b.accept=t,void 0,XP),Ij(i,()=>i&&(b.data=i)),Ij(l,()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()},Rj),kj(s,e=>b.handle=e),kj(a,e=>b.element=e),kj(f,e=>b.target=e),Ij(c,()=>b.disabled=null!=c&&c,void 0,XP),Ij(p,()=>b.sensors=p,void 0,XP),Ij(n,()=>b.collisionDetector=n),Ij(r,()=>b.collisionPriority=r),Ij(m,()=>b.plugins=m,void 0,XP),Ij(g,()=>b.transition=g,void 0,XP),Ij(d,()=>b.modifiers=d,void 0,XP),Ij(e.alignment,()=>b.alignment=e.alignment),{sortable:v,get isDragging(){return v.isDragging},get isDropping(){return v.isDropping},get isDragSource(){return v.isDragSource},get isDropTarget(){return v.isDropTarget},handleRef:L(e=>{b.handle=null!=e?e:void 0},[b]),ref:L(e=>{var t,n;(e||!(null==(t=b.element)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.element=null!=e?e:void 0)},[b]),sourceRef:L(e=>{var t,n;(e||!(null==(t=b.source)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.source=null!=e?e:void 0)},[b]),targetRef:L(e=>{var t,n;(e||!(null==(t=b.target)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.target=null!=e?e:void 0)},[b])}}function Uz(e,t,n){return!("isDragSource"!==e||n||!t)}const Gz=({id:e,itemIndex:t,sectionIndex:n})=>Yt.jsx("div",{children:`${n}:${t} - ${e}`}),Kz=z(({id:e,itemIndex:t,sectionIndex:n})=>{const r=Qg(Ak),o=Qg(Ck),i=Qg(vk).at(n)??0,a=Qg(yk)({sectionIndex:n}),{ref:s,isDragging:l,handleRef:u}=Wz({id:e,index:t,type:"item",accept:"item",group:a,modifiers:[D_],plugins:[tz],data:{id:e,sectionIndex:n,sectionKey:a,itemIndex:t}}),c=void 0!==r?()=>{r({id:e,itemIndex:t,sectionIndex:n})}:void 0,d=o??Gz;return Yt.jsx(of,{className:"section-item-container","data-testid":"section-item",onClick:c,ref:s,"data-dragging":l,sx:{padding:0,backgroundColor:l?"rgba(242, 242, 242, 1)":void 0,borderRadius:l?"4px":void 0},children:Yt.jsxs("div",{style:{width:"100%",opacity:l?.4:1},children:[Yt.jsx(g_,{isDragging:l,itemIndex:t,sectionIndex:n}),Yt.jsx(d,{id:e,itemIndex:t,sectionIndex:n,dragHandleRef:u}),t===i-1&&Yt.jsx(g_,{isDragging:!1,itemIndex:t+1,sectionIndex:n})]})})}),Yz=z(({sectionIndex:e})=>{const t=Qg(yk),n=Qg(vk).at(e)??0,r=t({sectionIndex:e});return Yt.jsxs(Sd,{className:"exploration-list",style:{overflow:"auto"},children:[Yt.jsx(mp,{}),Yt.jsx(y_,{id:r,sectionIndex:e}),Yt.jsx(mp,{}),Yt.jsx(v_,{sectionIndex:e}),Yt.jsx(Up,{sx:{padding:"2px 8px"},children:f_(n).map(n=>{const r=t({sectionIndex:e,itemIndex:n});return Yt.jsx(Kz,{id:r,itemIndex:n,sectionIndex:e},r)})})]},r)}),Xz=[YN.configure({activationConstraints:[new WN.Distance({value:5})]}),$N],Jz=z(()=>{const e=Qg(bk),t=Qg(yk),n=eb(Mk("start")),r=eb(Mk("over")),o=eb(Mk("end"));return Yt.jsxs(Fj,{sensors:Xz,onDragEnd:e=>{o(e)},onDragOver:e=>{r(e)},onDragStart:e=>{n(e)},children:[Yt.jsx(Sd,{style:{display:"flex",flexDirection:"column"},children:f_(e).map(e=>Yt.jsx(Yz,{sectionIndex:e},t({sectionIndex:e})))}),Yt.jsx(m_,{})]})}),Zz=z(e=>Yt.jsx(ek,{atoms:Dk,atomFamilies:Tk,children:Yt.jsx(Ok,{props:e,children:Yt.jsx(Jz,{})})})),Qz=(e,t)=>{if(!e)return;const n=e.qHyperCube.qDimensionInfo.filter(e=>void 0!==e.cId).filter(NA).map(({cId:e,qFallbackTitle:n})=>({id:e,title:n??"",alternative:t,type:"dimension"})),r=e.qHyperCube.qMeasureInfo.filter(e=>void 0!==e.cId).filter(NA).map(({cId:e,qFallbackTitle:n})=>({id:e,title:n??"",alternative:t,type:"measure"}));return[...n,...r]},eF=(e,t)=>{const n=[],r={};return e.forEach(e=>{r[e.id]=e}),Object.keys(t).forEach(e=>{const o=t[e],i=r[e];i&&(n[o]=i)}),n},tF=(e,t,n)=>{if(!n||((e,t)=>{const n=e.map(e=>e.id).sort(),r=Object.keys(t).sort();return n.join(",")!==r.join(",")})(e,n)){const t=(e=>{const t={};return e.forEach((e,n)=>{t[e.id]=n}),t})(e);return eF(e,t)}const r=t.map(e=>e.id),o=Object.keys(n).sort((e,t)=>n[e]-n[t]).filter(e=>r.includes(e)),i={...n};for(let e=0;e<r.length;e++){const t=o[e],a=r[e];t!==a&&(i[a]=n[t])}let a=0;const s=Object.entries(i).sort((e,t)=>e[1]-t[1]).map(([e])=>[e,a++]);return s.forEach(([e,t])=>{i[e]=t}),eF(e,i)},nF=$g(e=>{const t=e(VA);return Qz(t,!0)}),rF=$g(e=>{const t=e(BA);return Qz(t,!1)}),oF=$g(e=>{const t=e(WA),n=e(BA);if(!t||!n)return[];const r=e(rF),o=e(nF),i=n.qHyperCube.qColumnOrder??[],a=e(FA);if(void 0===o||void 0===r)return[];if(a){return[...[...r,...o]].sort((e,t)=>(a[e.id]??1/0)-(a[t.id]??1/0))}const s=t.qHyperCubeDef.qLayoutExclude?.allColumnOrder??{},l=((e,t)=>e.length===t?e:Array.from(Array(t).keys()))(i,r.length),u=((e,t)=>e.length>0?e.map(e=>t[e]):t)(l,r),c=[...u,...o];return tF(c,u,s)}),iF=$g(e=>{const t=e(oF),n=e(TA);return t.filter(n)}),aF=$g(e=>e(iF).length),sF=$g(e=>({sectionIndex:t,itemIndex:n})=>{const r=e(iF);if(void 0===n)return`columns-section-${t}`;const o=r?.[n];return o?.id??`missing-item-${t}-${n}`}),lF=hk(e=>$g(t=>t(iF)[e]),(e,t)=>e===t),uF=$g(e=>e(oF).map(e=>e.id)),cF=$g(e=>e(iF).map(e=>e.id)),dF=$g(e=>{const t=e(oF),n={};return t.forEach(e=>{n[e.id]=e.type}),n}),pF=$g(null,(e,t,{event:n,id:r,toIndex:o})=>{const i=e(kA),a=e(qA),s=e(uF),l=e(cF);if(void 0===i||null===a||void 0===s||void 0===l)return;if(n.operation.canceled)return;const u=l[o];if(!u)return;const c=((e,t,n)=>{const r=n.findIndex(t=>t===e),o=n.findIndex(e=>e===t);if(-1===r||-1===o||r===o)return n;const i=[...n],[a]=i.splice(r,1);return i.splice(o,0,a),i})(r,u,s);t(FA,Object.fromEntries(c.map((e,t)=>[e,t]))),a.add(async()=>{i.updateColumnOrders(c)})}),fF="ChartExploration.Table.ColumnSectionEmpty.Title",hF="ChartExploration.Table.NoColumnsFound.Title",mF="#177fe6",gF=$g(e=>{const t=e(MA),n=e(DA).length>0,r=(e=>e?hF:fF)(n),o=(e=>e?"":"ChartExploration.Table.ColumnSectionEmpty.Message")(n);return()=>({title:t(r),message:""===o?"":t(o)})}),bF=({itemIndex:e})=>{const t=Qg(lF(e));if(!t)return null;const n=t.title;return Yt.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n})},vF=$g(e=>{const t=e(cF),n=e(eI),r=t.filter(e=>n.has(e)).length;return 0===t.length?"disabled":0===r?"none":r===t.length?"all":"some"}),yF=$g(null,(e,t)=>{const n=e(cF),r=e(eI),o="all"!==e(vF)&&"disabled"!==e(vF),i=[],a=new Set(e(XA)),s=new Set(e(JA));if(o){const t=new Set(n.filter(e=>!r.has(e)));i.push(...Array.from(t).map(t=>({id:t,isAlternative:!0,type:e(dF)[t]}))),i.forEach(e=>a.add(e.id)),i.forEach(e=>s.delete(e.id))}else{const t=new Set(n.filter(e=>r.has(e)));i.push(...Array.from(t).map(t=>({id:t,isAlternative:!1,type:e(dF)[t]}))),i.forEach(e=>a.delete(e.id)),i.forEach(e=>s.add(e.id))}t(XA,a),t(JA,s),AA({items:i,handler:e(kA),model:e(IA),handlerQueue:e(qA),logToSentry:e(bb)})}),xF=e=>{(e instanceof HTMLElement||e instanceof SVGElement)&&e.focus()},SF=e=>"svg"===e.tagName?"exploration-draggable-icon":e.className,wF=e=>{const{currentTarget:t}=e,n=SF(t);let r=t.closest("li")?.previousElementSibling?.getElementsByClassName(n)[0];if(!r){const e=t.closest(".exploration-list"),o=e?.querySelector(".exploration-section-header");if(o)return o;if(r=((e,t)=>{const n=e.closest(".exploration-list"),r=n?.previousElementSibling;if(null===r||!r)return e.closest(".exploration-panel")?.getElementsByClassName(t)[1];const o=r.getElementsByClassName(t);return o.length>0?o[o.length-1]:void 0})(t,n),!r){const e=t.closest(".exploration-panel")?.getElementsByClassName(n)[1];return e??null}}return r},CF=(e,t)=>{const n=e.closest(".exploration-list"),r=n?.nextElementSibling||n?.parentElement?.nextElementSibling;if(null===r||!r){if(t===Xm.Tab)return;return n?.closest(".exploration-panel")?.getElementsByClassName("exploration-section-header")[0]}return r.getElementsByClassName("exploration-section-header")[0]},EF=(e,t)=>{const{key:n}=e;switch(n){case Xm.Tab:e.shiftKey||(Em(e),((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-list"),o=r?.getElementsByClassName("exploration-item-focus")[0];o&&xF(o)})(e,t));break;case Xm.Down:(e=>{e.preventDefault();const t=e.currentTarget.closest(".exploration-list"),n=t?.getElementsByClassName("exploration-item-focus")[0];n&&xF(n)})(e);break;case Xm.Enter:case Xm.Space:e.preventDefault(),((e,t)=>{const{currentTarget:n}=e;if(e.preventDefault(),n!==t.ref.current)return;const r="all"!==t.checkState;t.toggleAllCheckboxes(r)})(e,t)}},RF=({children:e})=>Yt.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"bold"},children:e}),AF=({children:e})=>{const t=M(null),n=Qg(vF),[,r]=tb(yF),o=Qg(MA),i={ref:t,toggleAllCheckboxes:r,checkState:n};return Yt.jsxs(Sd,{ref:t,"aria-label":o("Common.Columns"),className:"exploration-section-header",tabIndex:0,onKeyDown:e=>{EF(e,i)},sx:{display:"flex",alignItems:"center",width:"100%",padding:"2px 8px 2px 8px",boxSizing:"border-box",fontSize:"14px","&:focus-visible":{boxShadow:`0 0 0 2px ${mF} inset`}},children:[Yt.jsx(Gd,{inputProps:{"aria-label":o("ChartExploration.Header.ToggleAll"),..."some"===n&&{"aria-checked":"mixed"}},disabled:"disabled"===n,checked:"all"===n,indeterminate:"some"===n,onChange:r,size:"small",style:{flexShrink:0,padding:9}}),Yt.jsx(RF,{children:e})]})},IF=()=>{const e=Qg(MA);return Yt.jsx(AF,{children:e("Common.Columns")})},kF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})})),PF=F((e,t)=>Yt.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:[Yt.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"}),Yt.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"})]})),MF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M5.5 1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm0 4a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM5 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 1.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zM9.5 5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5z"})})),DF=Mu("div")({position:"absolute",width:"1px",height:"1px",padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}),TF=Mu(MF)(()=>({padding:"6px 6px",flexShrink:0,cursor:"grab","&:focus-visible":{boxShadow:`0 0 0 2px ${mF} inset`}})),OF=e=>{const t=e.key===Xm.Down?(e=>{const{currentTarget:t,key:n}=e,r=SF(t),o=t.closest("li");let i=o?.nextElementSibling?.getElementsByClassName(r)[0];return i||(i=CF(t,n),i)?i:t.closest(".exploration-panel")?.getElementsByClassName(r)[0]})(e):wF(e);t&&xF(t)},qF=(e,t)=>{const{key:n}=e;switch(n){case Xm.Tab:if(e.shiftKey)Em(e),((e,t)=>{const{currentTarget:n}=e,r=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if(n===t.items.draggableIconRef.current){if(t.itemIndex>=0){const e=r&&r[t.itemIndex];return void(e&&xF(e))}const n=wF(e);n&&xF(n)}if(n===t.items.explorationItemFocusRef.current){const t=n.closest("li")?.previousElementSibling?.getElementsByClassName("exploration-draggable-icon")[0];if(t)return void xF(t);const r=wF(e);r&&xF(r)}})(e,t);else{const n=((e,t)=>{const{currentTarget:n,key:r}=e;if(e.shiftKey)return!0;if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return xF(e),!0}if(n===t.items.explorationItemFocusRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-draggable-icon")[0];return e&&xF(e),!0}if(n===t.items.draggableIconRef.current){const e=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if((e?.length||0)-1>t.itemIndex){const n=e&&e[t.itemIndex+1];return n&&xF(n),!0}const o=CF(n,r);if(!o)return!1;xF(o)}return!0})(e,t);n?Em(e):e.stopPropagation()}break;case Xm.Enter:case Xm.Space:Em(e),((e,t)=>{const{currentTarget:n}=e;if(n===t.items.draggableIconRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-item")[0];return void(e&&xF(e))}if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return void xF(e)}n===t.items.explorationItemFocusRef.current&&t.toggleItem()})(e,t);break;case Xm.Down:case Xm.Up:Em(e),OF(e)}},LF=({children:e})=>Yt.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:1},children:e}),NF={dimension:kF,measure:PF},jF=({id:e,dragHandleRef:t,title:n,type:r,itemIndex:o})=>{const[i,a]=tb(eI),s=Qg(MA),l=M(null),u=M(null),c=M(null);O(()=>{t&&l.current&&t(l.current)},[t]);const d=NF[r],p=!i.has(e),f={id:e,itemIndex:o,toggleItem:()=>{a({id:e,isAlternative:p,type:r})},items:{explorationItemRef:l,explorationItemFocusRef:u,draggableIconRef:c}};return Yt.jsxs(Sd,{ref:l,className:"exploration-item",onClick:t=>{t.stopPropagation(),-1!==e&&a({id:e,isAlternative:p,type:r})},onKeyDown:e=>{qF(e,f)},tabIndex:0,style:{display:"flex",alignItems:"center",width:"100%",cursor:"pointer",padding:0,boxSizing:"border-box",fontSize:"14px"},title:n,sx:{"&:hover":{backgroundColor:"action.hover"},"&:focus-visible":{boxShadow:`0 0 0 2px ${mF} inset`}},children:[Yt.jsxs(Sd,{ref:u,className:"exploration-item-focus",component:"div",tabIndex:0,onKeyDownCapture:e=>{qF(e,f)},sx:{display:"flex",minWidth:0,alignItems:"center",justifyContent:"space-between",flexGrow:1,marginRight:"4px","&:focus-visible":{boxShadow:`0 0 0 2px ${mF} inset`}},children:[Yt.jsx(Gd,{checked:i.has(e),"aria-label":s("ChartExploration.ListItem.Label",n),size:"small",tabIndex:-1,style:{padding:9,flexShrink:0}}),Yt.jsx(Sd,{children:Yt.jsx(d,{height:12,style:{opacity:1,marginRight:"8px"}})}),Yt.jsx(LF,{children:n})]}),Yt.jsx(TF,{ref:c,className:"exploration-draggable-icon",tabIndex:0,height:"16px",onClick:e=>{e.stopPropagation()},onKeyDownCapture:e=>{qF(e,f)}})]})},_F=({id:e,itemIndex:t,dragHandleRef:n})=>{const r=Qg(lF(t));return r?Yt.jsx(jF,{id:e,dragHandleRef:n,title:r.title,type:r.type,itemIndex:t}):null},zF=()=>{const e=Qg(aF),t=Qg(gF),n=Qg(UA),r=Qg(sF),o=eb(pF);return!n&&Yt.jsx(Zz,{numberOfSections:1,numberOfItemsInSection:[e],keyExtractor:r,emptyTexts:t,onDragEnd:o,dragOverlayRenderer:bF,headerRenderer:IF,itemRenderer:_F})},FF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{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.014zM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0m-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 6 0 0 1-1.413 1.415"})})),$F=()=>{const[e,t]=tb(DA),n=Qg(MA),r=w.useRef(null),o=Qg(aF),i=L(e=>{t(e.target.value)},[t]),a=0===e.length||0===o?n("Common.Search.NoResultsAvailable"):n("ChartExploration.Table.Search.ResultsFound",o.toString());return Yt.jsxs(Sd,{ref:r,style:{position:"sticky",top:0,zIndex:1,width:"calc(100% - 24px)",backgroundColor:"var(--sprout-common-background-color-weak)",paddingTop:2,paddingRight:12,paddingLeft:12,paddingBottom:12},children:[Yt.jsx(DF,{"data-testid":"screenOnly-search-results","aria-live":"polite","aria-atomic":"true",children:a}),Yt.jsx(ih,{size:"small",fullWidth:!0,"data-testid":"chart-exploration-search-input","aria-label":n("Common.Search.AccessibilityLabel"),type:"search",defaultValue:e,placeholder:n("Common.Search"),onChange:i,startAdornment:Yt.jsx(qp,{position:"start",children:Yt.jsx(FF,{})}),inputProps:{style:{fontSize:"14px",paddingTop:6,paddingBottom:6}}})]})},HF=e=>{const t=hm();return Yt.jsx(Tu,{theme:t,children:Yt.jsx(Gg,{children:Yt.jsx(tI,{props:e,children:Yt.jsxs(Sd,{className:"exploration-panel",style:{display:"flex",flexDirection:"column"},children:[Yt.jsx($F,{}),Yt.jsx(zF,{})]})})})})},BF=e=>e.flags.isEnabled("VNA-655-STRAIGHT_TABLE_NEW_EXPLORATION")?{component:HF,classification:{tags:["exploration"],exclusive:!0}}:{component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};var VF=function(e){return e.CONTAINS="contains",e.MATCHES_EXACTLY="matches_exactly",e.STARTS_WITH="starts_with",e.ENDS_WITH="ends_with",e.BEGINNING_OF_WORD="beginning_of_word",e}(VF||{}),WF=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(WF||{}),UF=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(UF||{}),GF=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(GF||{});const KF=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)||(e=>{if(!e)return!1;if("["===e[0]&&"]"===e[e.length-1]){let t=e.substring(1,e.length-1);if(/^[A-Za-z][A-Za-z0-9_]*$/.test(t))return!0;if(t=t.replace(/\]\]/g,"]"),e===`[${t.replace(/\]/g,"]]")}]`)return!0}return!1})(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,YF=e=>{if(!Array.isArray(e))return"";let t="{<";const n=[];if(e.forEach(e=>{let t,r=`[${e.field}]${e.exclude?"-":""}={`,o="}";switch(e.type){case UF.SEARCH:t=(e=>{let t="",n="";const r=e.options?.mode;if(!r)return"";switch(r){case VF.BEGINNING_OF_WORD:t="*^",n="*";break;case VF.ENDS_WITH:t="*";break;case VF.STARTS_WITH:n="*";break;case VF.MATCHES_EXACTLY:break;case VF.CONTAINS:default:t="*",n="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${n}"`:""})(e);break;case UF.CONDITION:t=(e=>{const{options:t}=e,n=t?.mode===WF.GENERAL,r=t?.modifier?.type===GF.FIXED_VALUE,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!r&&(!t.firstValue?.aggregator||!t.firstValue?.field)||r&&!t.firstValue?.fixedValue||n&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let i,a,s="=";n&&r?(i=`${t.conditionField?.aggregator}(${KF(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!n&&r?(i="",a=`${t.firstValue?.fixedValue}`,s=""):n||r?(i=`${t.conditionField?.aggregator}(${KF(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${KF(t.firstValue?.field)})`):(i=`${KF(e.field)}`,a=`${t.firstValue?.aggregator}(total ${KF(t.firstValue?.field)})`);const l=`${s}${i}${o[0]}${a}`;let u="";if(o.length>1){if(!r&&(!t.secondValue?.aggregator||!t.secondValue?.field)||r&&!t.secondValue?.fixedValue)return"";let e,a;n&&r?(e=`${t.secondValue?.fixedValue}`,a=` and ${i}`):!n&&r?(e=`${t.secondValue?.fixedValue}`,a=""):n||r?(e=`${t.secondValue?.aggregator}(${KF(t.secondValue?.field)})`,a=` and ${i}`):(e=`${t.secondValue?.aggregator}(total ${KF(t.secondValue?.field)})`,a=` and ${i}`),u=`${a}${o[1]}${e}`}return`"${l}${u}"`})(e);break;case UF.CLEAR_SELECTION:t=`[${e.field}]=`,r="",o="";break;case UF.VALUES:default:t=e.options?.values?e.options.values.map(e=>`'${e.replace(/'/g,"''")}'`).join(","):""}""!==t&&n.push(`${r}${t}${o}`)}),0===n.length)return;return t+=`${n.join(",")}>}`,t},XF=[];for(let e=0;e<256;++e)XF.push((e+256).toString(16).slice(1));const JF=new Uint8Array(16);function ZF(e,t,n){return crypto.randomUUID?crypto.randomUUID():function(e){e=e||{};const t=e.random??e.rng?.()??crypto.getRandomValues(JF);if(t.length<16)throw new Error("Random bytes length must be >= 16");return t[6]=15&t[6]|64,t[8]=63&t[8]|128,function(e,t=0){return(XF[e[t+0]]+XF[e[t+1]]+XF[e[t+2]]+XF[e[t+3]]+"-"+XF[e[t+4]]+XF[e[t+5]]+"-"+XF[e[t+6]]+XF[e[t+7]]+"-"+XF[e[t+8]]+XF[e[t+9]]+"-"+XF[e[t+10]]+XF[e[t+11]]+XF[e[t+12]]+XF[e[t+13]]+XF[e[t+14]]+XF[e[t+15]]).toLowerCase()}(t)}(e)}const QF=()=>crypto?.randomUUID?.()??ZF(),e$=({qDimensions:e,qMeasures:t})=>[...e.map(e=>({id:e.qDef.cId,isDimension:!0,def:e})),...t.map(e=>({id:e.qDef.cId,isDimension:!1,def:e}))],t$=({previousColumns:e,nextColumns:t,qInterColumnSortOrder:n})=>{const r=new Map(e.map((e,t)=>[t,e.qDef.cId])),o=new Map(t.map((e,t)=>[e.qDef.cId,t]));return n.map(e=>{const t=r.get(e);return(void 0===t?void 0:o.get(t))??e})};class n$ extends u{#u;constructor(e,t){super(e),this.#u=t}#c(e){const t=this.hcProperties.qLayoutExclude?.allColumnOrder??{},n=Object.keys(t).length;this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:{...t,...Object.fromEntries(e.map((e,t)=>[e,n+t]))}}}#d(e){const t=this.hcProperties.qLayoutExclude?.allColumnOrder??{},n=Object.entries(t).filter(([t])=>!e.includes(t));this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:Object.fromEntries(n.map(([e],t)=>[e,t]))}}#p(e,t){const n=this.hcProperties.qLayoutExclude?.allColumnOrder??{},r={};for(const[o,i]of Object.entries(n))r[o===e?t:o]=i;this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:r}}async addDimension(e,t=!1){const n=await this.addDimensions([e],t);return 0===n.length?void 0:n[0]}async addDimensions(e,t=!1){const n=await super.addDimensions(e,t);return this.#c(n.map(e=>e.qDef.cId)),n}async removeDimension(e,t=!1){const n=await this.removeDimensions([e],t);return 0===n.length?void 0:n[0]}async removeDimensions(e,t=!1){const n=await super.removeDimensions(e,t);return this.#d(n.map(e=>e.qDef.cId)),n}async replaceDimension(e,t){const n=this.getDimensions()[e].qDef.cId,r=await super.replaceDimension(e,t),o=r.qDef.cId;return this.#p(n,o),r}async addMeasure(e,t=!1){const n=await this.addMeasures([e],t);return 0===n.length?void 0:n[0]}async addMeasures(e,t=!1){const n=await super.addMeasures(e,t);return this.#c(n.map(e=>e.qDef.cId)),n}async removeMeasure(e,t=!1){const n=await this.removeMeasures([e],t);return 0===n.length?void 0:n[0]}async removeMeasures(e,t=!1){const n=await super.removeMeasures(e,t);return this.#d(n.map(e=>e.qDef.cId)),n}async replaceMeasure(e,t){const n=this.getMeasures()[e].qDef.cId,r=await super.replaceMeasure(e,t),o=r.qDef.cId;return this.#p(n,o),r}async#f(e){const t=this.getMeasure(e);if(t){const n=this.getAlternativeMeasures().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeMeasure(n,!0),await super.addMeasure(t,!1,this.getMeasures().length)}}async#h(e){const t=this.getMeasure(e);if(t){const n=this.getMeasures().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeMeasure(n,!1),await super.addMeasure(t,!0,this.getAlternativeMeasures().length)}}async#m(e){const t=this.getDimension(e);if(t){const n=this.getAlternativeDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeDimension(n,!0),await super.reinsertDimension(t,!1,this.getDimensions().length)}}async#g(e){const t=this.getDimension(e);if(t){const n=this.getDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeDimension(n,!1),await super.addDimension(t,!0,this.getAlternativeDimensions().length)}}#b(){const e=this.hcProperties.qLayoutExclude?.allColumnOrder??{};return Object.entries(e).sort((e,t)=>e[1]-t[1]).map(([e])=>e)}async moveDimensionFromAlternative(e){await this.#m(e);const t=this.#b();this.updateColumnOrders(t)}async moveDimensionToAlternative(e){await this.#g(e);const t=this.#b();this.updateColumnOrders(t)}async moveMeasureFromAlternative(e){await this.#f(e);const t=this.#b();this.updateColumnOrders(t)}async moveMeasureToAlternative(e){await this.#h(e);const t=this.#b();this.updateColumnOrders(t)}async toggleAlternatives(e,t){for(const t of e)"dimension"===t.type?await(t.isAlternative?this.#m(t.id):this.#g(t.id)):await(t.isAlternative?this.#f(t.id):this.#h(t.id));this.updateColumnOrders(t)}updateColumnOrders(e){const t=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:n,nextAllColumnOrderById:r})=>{const o=e$({qDimensions:e,qMeasures:t}),i=[...e,...t],a=new Map(r.map((e,t)=>[e,t])),s=o.toSorted((e,t)=>{const n=a.get(e.id),r=a.get(t.id);return void 0===n||void 0===r?0:n-r}),l=s.filter(e=>e.isDimension).map(e=>e.def),u=s.filter(e=>!e.isDimension).map(e=>e.def),c=[...l,...u],d=new Map(c.map((e,t)=>[e.qDef.cId,t]));return{qDimensions:l,qMeasures:u,qInterColumnSortOrder:t$({previousColumns:i,nextColumns:c,qInterColumnSortOrder:n}),qColumnOrder:s.map(e=>d.get(e.id)).filter(e=>void 0!==e)}})({qDimensions:this.hcProperties.qDimensions,qMeasures:this.hcProperties.qMeasures,qInterColumnSortOrder:this.hcProperties.qInterColumnSortOrder,nextAllColumnOrderById:e});this.hcProperties.qDimensions=t.qDimensions,this.hcProperties.qMeasures=t.qMeasures,this.hcProperties.qColumnOrder=t.qColumnOrder,this.hcProperties.qInterColumnSortOrder=t.qInterColumnSortOrder,this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:e.reduce((e,t,n)=>(e[t]=n,e),{})}}getFilters(){return this.properties.filters??[]}getFilter(e){return this.getFilters().find(t=>t.id===e)}addFilterField(e){const t=e.qTags??e.tags,n=Array.isArray(t)&&t.includes("$numeric"),r=e.isDerived,o=Array.isArray(this.properties.filters)?this.properties.filters:[],i={type:"values",field:r?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:QF(),qTags:Array.isArray(t)?t:[],isNumeric:n};return o.push(i),this.properties.filters=o,this.properties.qHyperCubeDef.qContextSetExpression=YF(o),i}addFilters(e){const t=[];for(const n of e)t.push(this.addFilterField(n));return t}#v(e){const t=this.getFilters();return t.splice(e,1),this.properties.qHyperCubeDef.qContextSetExpression=YF(t),t}removeFilters(e){if(0===e.length)return[];const t=[...e].sort((e,t)=>t-e),n=this.getFilters().filter((t,n)=>e.includes(n));for(const e of t)this.#v(e);return n}getLabels(){return this.getMeasures().reduce((e,t)=>(!t.qLibraryId&&t.qDef.qLabel&&e.push(t.qDef.qLabel),e),[])}getAddDimensionLabel(){return this.#u.get("Visualization.Requirements.AddDimension")}canColorBy(){return!1}}const r$=(e,t)=>{if(!e)return-1;const n=e.indexOf(t);if(-1===n)return-1;for(let n=0;n<e.length;++n)e[n]>t&&e[n]--;return e.splice(n,1),n};function o$(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function i$(e){return e>0?0:1}function a$(e){return e.translator.get("Visualizations.Descriptions.Column")}function s$(e){return{measures:{min:i$,max:1e3,description:()=>a$(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;o$(r,n.getDimensions().length+n.getMeasures().length-1)},remove(e,t,n,r){const{qColumnOrder:o}=n.hcProperties,i=(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r;r$(o,i)}},dimensions:{min:i$,max:1e3,description:()=>a$(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;return o$(r,n.getDimensions().length-1),e},remove(e,t,n,r){if(e?.isAlternative)return;const{qColumnOrder:o}=n.hcProperties;r$(o,r)}}}}const l$=e=>{const t=new n$({},e.translator),n=hb(e);return{properties(r){if(!("qHyperCubeDef"in r))return r;const{qHyperCubeDef:o}=r,i=o.qLayoutExclude?.qHyperCubeDef,a=e.flags.isEnabled("qcb-35151-fix-duplicate-columns"),s=new Set,l=[];let u=0,c=0,d=0;[...o.qDimensions,...o.qMeasures,...i?.qDimensions??[],...i?.qMeasures??[]].forEach(e=>{u++;const t=e.qDef?.cId;if((e=>"string"==typeof e&&e.length>0)(t))if(s.has(t)){if(c++,a){const t=QF();e.qDef={...e.qDef,cId:t},l.push(t)}}else s.add(t),l.push(t);else if(d++,a){const t=QF();e.qDef={...e.qDef,cId:t},l.push(t)}});const p=c+d;if(0===p)return r;n.warn({msg:"migrate: column cId issues detected",payload:{issueCount:p,totalColumnCount:u,duplicateCount:c,missingCount:d}});const f=r.components?.find(e=>"theme"===e.key);return e.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING")&&f?.nullValues&&!f.dimensionNullValues&&(f.dimensionNullValues={...f.nullValues}),a?(t.setProperties(r),t.updateColumnOrders(l),n.warn({msg:"migrate: column cId cleanup completed",payload:{replacementCount:p}}),r):r}}};let u$=function(e){return e.Text="text",e.Link="link",e.Image="image",e.ImagesInIndentMode="imagesInIndentMode",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e.EditableSelector="editableSelector",e.EditableDate="editableDate",e}({}),c$=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const d$=e=>{switch(e?.type){case"url":return u$.Link;case"image":return u$.Image;case"indicator":return u$.Indicator;case"miniChart":return u$.MiniChart;default:return u$.Text}},p$=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,n,r){const{qIndentMode:o}=r.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&e||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}),f$=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>d$(e.qDef.representation)===u$.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,n)=>{if(!n.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:r,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=n.properties.qHyperCubeDef;let s=!1;const l=i?.indexOf(e)??1/0;return(r?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},h$=e=>{const{anything:t}=e,n=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:p$({isImagesEnabled:n}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>d$(e.qDef.representation)===u$.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>d$(e.qDef.representation)===u$.Link&&e.qDef.representation?.urlPosition===c$.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>d$(e.qDef.representation)===u$.Link&&e.qDef.representation?.urlPosition===c$.Attribute},...f$(n)}},m$=(e,t)=>{const{anything:n}=e,r=n.sense?.isUnsupportedFeature,o=!r?.("tableImages")&&t[u$.Image],i=!r?.("qMiniChartDef")&&t[u$.MiniChart],a=!r?.("tableIndicators")&&t[u$.Indicator],s=o&&t[u$.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,n)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&n.push({value:"miniChart",translation:"Common.MiniChart"}),n})(n)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>d$(e.qDef.representation)===u$.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:i?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var g$,b$={};var v$=(g$||(g$=1,function(e){(()=>{var t={828(e,t,n){n.r(t),n.d(t,{default:()=>Re});var r=n.cjs(function(e,t){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},s=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(t in e);return void 0===t||n.call(e,t)},l=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,r,o,i,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=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=u(d,n),d!==(o=u(t,n))&&(h&&o&&(s(o)||(i=a(o)))?(i?(i=!1,c=r&&a(r)?r:[]):c=r&&s(r)?r:{},l(d,{name:n,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}),o=n.n(r);const i=(e,t,n)=>{if(!t)return!1;const r=t.split("."),o=r[r.length-1];let i,a=e;for(i=0;i<r.length-1;++i)void 0===a[r[i]]&&(a[r[i]]=Number.isNaN(+r[i+1])?{}:[]),a=a[r[i]];if(void 0!==n){const e=a[o];return a[o]=n,{updated:n,previous:e}}return delete a[o],!1},a=(e,t,n)=>{const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(void 0===i[r[o]])return n;i=i[r[o]]}return i},s={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"}]},l=" ( ",u=" ) ";function c(e){return l+e+u}function d(e,t={}){if(e.qLibraryId){const n=function(e,t){if(!t)return null;let n,r;for(n=0;n<t.length;n++)if(r=t[n],r.qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}const n=function(e,t){if(!t)return null;let n,r;const o=function(e){let t=e.trim();"="===t.charAt(0)&&(t=t.substring(1),t=t.trim());const n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=t.substring(1,n),t=t.trim()),t}(e);for(n=0;n<t.length;n++){if(r=t[n],r.qName===o)return r;if(r.qDerivedFieldData)for(let e=0;e<r.qDerivedFieldData.qDerivedFieldLists.length;++e){const t=r.qDerivedFieldData.qDerivedFieldLists[e];for(let e=0;e<t.qFieldDefs.length;++e){const n=t.qFieldDefs[e];if(n.qName===o)return n}}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function p(e){return!(!e.fullAccumulation&&!e.fullRange)}function f(e,t){const{crossAllDimensions:n}=e;return 2===t&&n?"RowNo(Total)":"RowNo()"}function h(e){const 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(e=0){return`[$(=Replace(GetObjectField(${e}),']',']]'))]`}function g(e,t){const{crossAllDimensions:n}=e;return 2===t&&n?"Above(Total ":"Above("}function b(e){return void 0===e?")":`, 0, ${e})`}function v(e){return`Replace(Replace(${e},'''',''''''),'$','$''&''')`}function y(e,t){return e?`${t}={">=$(=Min(${t}))<=$(=Max(${t}))"}`:`${t}={"=Only({1}${t})>='$(=${v(`MinString(${t})`)})' and Only({1}${t})<='$(=${v(`MaxString(${t})`)})'"}`}function x({modifier:e={},dimensions:t,dimensionAndFieldList:n,funcComp:r="Sum",valueComp:o="0"}){const{showExcludedValues:i}=e;if(!i)return"";if(t&&1===t.length)return`${r}({1<${y(d(t[0],n),m(0))}>}${o})`;if(t&&2===t.length){const e=d(t[0],n),i=d(t[1],n),a=m(0),s=m(1);return`${r}({1<${y(e,a)},${y(i,s)}>}${o})`}return`${r}({1}${o})`}function S(e){return`${e}(`}function w({properties:e,layout:t}){return a(e,"qHyperCubeDef.qDimensions",a(t,"qHyperCube.qDimensionInfo",[])).length}const C={isFullRange:p,getNumDimensions:w,getExpressionWithExcludedComp:function({expression:e,modifier:t,dimensions:n,dimensionAndFieldList:r,treatMissingAsNull:o}){const i=c(h(e)),{showExcludedValues:a}=t;if(!a)return i;const s=x({modifier:t,dimensions:n,dimensionAndFieldList:r}),l=o?"":", 0";return n&&1===n.length?`If(Count(${m(0)}) > 0, ${i} + ${s}${l})`:n&&2===n.length?`If(Count(${m(0)}) * Count(${m(1)}) > 0, ${i} + ${s}${l})`:i},getRowNoComp:f,getNumStepComp:function(e,t){if(!p(e)){const{steps:t}=e;return"number"!=typeof t||Number.isNaN(t)?6:t}return f(e,t)},getAboveCompPrefix:g,getAboveCompSuffix:b,getAboveComp:function(e,t,n,r){return g(e,t)+n+b(r)},getFunctionPrefix:S,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return S(e)+t+")"},getAggrComp:function(e,t,n){return`Aggr(${e}, ${t}, ${n})`},getExcludedComp:x,needDimension:function({modifier:e,properties:t,layout:n}){return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(e)&&2===w({properties:t,layout:n})},getDimComp:function(e,t){const n=function(e,t=0){return e[t].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;const o=["Descending","Ascending"],i=n.qSortByNumeric?`(Numeric, ${o[(n.qSortByNumeric+1)/2]})`:"",a=n.qSortByAscii?`(Text, ${o[(n.qSortByAscii+1)/2]})`:"";return n.qSortByNumeric&&n.qSortByAscii?`(${r}, ${i}, ${a})`:n.qSortByNumeric?`(${r}, ${i})`:n.qSortByAscii?`(${r}, ${a})`:r},simplifyExpression:h,extractInputExpression:function({outputExpression:e,modifier:t}){if(!t)return;const n=e.indexOf(l);if(-1===n)return;const r=e.indexOf(u);return-1!==r?e.substring(n+3,r):void 0},initModifier:function(e,t){Object.keys(t).forEach(n=>{void 0===e[n]&&(e[n]=t[n])})},isNumeric:d,isApplicable:function({properties:e,layout:t,minDimensions:n=1,maxDimensions:r=2}){if(!e&&!t)return!0;const o=w({properties:e,layout:t});return o>=n&&o<=r},getExpressionWithMarkers:c,canExtract:function(e){const t=e.indexOf(l),n=e.indexOf(u);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){return`[${e?e.replace(/]/g,"]]"):e}]`},generateTSDExpression:function(e,t,n){let r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){const o=n.qHyperCubeDef.qMeasures.find(t=>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?`[${o.qDef.qLabel}]`:o.qDef.base.qDef);const i=function(e){const t=s.OPTIONS.find(t=>t.value===e.decomposition);return t?s.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r=`${i}(${r}, ${e.steps})`}return r},getDecomposition:function(e){let t="observed";return Object.values(s.EXPRESSIONS).find(n=>{const r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return s.EXPRESSIONS[n]&&r.includes(s.EXPRESSIONS[n].toLowerCase())&&(t=n),n}),t}},E=o().bind(null,!0),R={},{isArray:A}=Array;function I(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function k(e){return void 0===e}function P(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach((t,o)=>{if(o===n.length)return;r=+t;const i=Number.isNaN(r)?{}:[];e[r||t]=k(e[r||t])?i:e[t],e=e[r||t]}),e}function D(e,t){let n=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(r=>{D(e[r],t[r])||(n=!1)}),n);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!D(e[n],t[n]))return!1;return!0}return e===t}R.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach(o=>{const i=function(e){return e?E({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;D(i,a)||P(t,o)||(k(a)?r.push({op:"add",path:s,value:i}):I(i)&&I(a)?r=r.concat(R.generate(a,i,s)):A(i)&&A(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&k(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(D(t,o))return r;if(!k(t[0])&&k(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):r=r.concat(R.generate(o[e],t[i],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${i}`}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:`${n}/${o}`,value:i}))}),Object.keys(e).forEach(o=>{k(t[o])&&!P(e,o)&&r.push({op:"remove",path:`${n}/${o}`})}),r},R.apply=function(e,t){t.forEach(t=>{let n=M(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&Number.isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(A(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(A(o)&&A(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(I(o)&&I(t.value))a=o,Object.keys(a).forEach(e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!P(a,e)&&delete a[e]}),E(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=M(e,t.from);A(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(A(n)?n.splice(+r,1):delete n[r]);var a})},R.clone=function(e){return E({},e)},R.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},R.updateObject=function(e,t){Object.keys(e).length?R.apply(e,R.generate(e,t)):E(e,t)};const T=R,O={saveSoftProperties(e,t,n){if(!e)return Promise.resolve();let r=T.generate(t,n);return o()(!0,t,n),r&&r.length?(r=r.map(e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})),e.applyPatches(r,!0)):Promise.resolve()}},q="accumulation";function L(e,t){const n=a(e,t);if(n)for(let e=0;e<n.length;e++)if(n[e].type===q)return n[e]}function N(e,t){const n=function(e,t){const n=a(e,t);if(!n)return-1;for(let e=0;e<n.length;e++)if(n[e].type===q)return e;return-1}(e,t);return n>-1?`${t}.${n}`:t}const j={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""},_={translationKey:"properties.modifier.accumulation",needDimension:C.needDimension,isApplicable:({properties:e,layout:t})=>C.isApplicable({properties:e,layout:t,minDimensions:1,maxDimensions:2}),generateExpression({expression:e,modifier:t,properties:n,layout:r,numDimensions:o,dimensionAndFieldList:i}){if(!t)return e;let s=o;void 0===s&&(s=C.getNumDimensions({properties:n,layout:r}));const l=a(n,"qHyperCubeDef.qDimensions",[]),u=C.getExpressionWithExcludedComp({expression:e,modifier:t,dimensions:l,dimensionAndFieldList:i}),c=C.getNumStepComp(t,s),d=C.getAboveComp(t,s,u,c);let p=C.getRangeComp("RangeSum",d);if(C.needDimension({modifier:t,properties:n,layout:r})){const e=C.getDimComp(l,1),n=C.getDimComp(l,0),r=C.getAggrComp(p,e,n);p=t.showExcludedValues?C.getExcludedComp({modifier:t,dimensions:l,dimensionAndFieldList:i,valueComp:r}):r}return p},extractInputExpression:C.extractInputExpression,initModifier(e){C.initModifier(e,j)},enableTotalsFunction:()=>!1,propertyPanelDef:function(e,t={}){return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:(e,t)=>!C.isApplicable({properties:t.properties})},settings:{type:"items",items:{primaryDimension:{refFn:t=>`${N(t,e)}.accumulationDimension`,type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options(e,t){const{qDimensionInfo:n}=t.layout.qHyperCube;return n.map((e,t)=>({value:t,label:e.qGroupFallbackTitles[0]}))},show:(e,t)=>t.layout.qHyperCube.qDimensionInfo.length>1},crossAllDimensions:{refFn:t=>`${N(t,e)}.crossAllDimensions`,type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:(e,t)=>t.layout.qHyperCube.qDimensionInfo.length>1},fullRange:{refFn:t=>`${N(t,e)}.fullAccumulation`,type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:t=>`${N(t,e)}.steps`,type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change(t){const n=L(t,e);if(n){const{steps:e}=n;n.steps="number"!=typeof e||Number.isNaN(e)?6:Math.abs(e)}},show(t){const n=L(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:t=>`${N(t,e)}.showExcludedValues`,type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:(e,t)=>C.isApplicable({properties:t.properties})}},show(t,n,r){const o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(q))return!1;const i=L(t,e);return i&&!i.disabled}}}},z="movingAverage";function F(e,t){const n=a(e,t);if(n)for(let e=0;e<n.length;e++)if(n[e].type===z)return n[e]}function $(e,t){const n=function(e,t){const n=a(e,t);if(!n)return-1;for(let e=0;e<n.length;e++)if(n[e].type===z)return e;return-1}(e,t);return n>-1?`${t}.${n}`:t}const H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1},B={translationKey:"properties.modifier.movingAverage",needDimension:C.needDimension,isApplicable:({properties:e,layout:t})=>C.isApplicable({properties:e,layout:t,minDimensions:1,maxDimensions:2}),generateExpression({expression:e,modifier:t,properties:n,layout:r,numDimensions:o,dimensionAndFieldList:i}){if(!t)return e;let s,l=o;void 0===l&&(l=C.getNumDimensions({properties:n,layout:r}));const u=a(n,"qHyperCubeDef.qDimensions",[]),c=t.showExcludedValues&&t.nullSuppression,d=C.getExpressionWithExcludedComp({expression:e,modifier:t,dimensions:u,dimensionAndFieldList:i,treatMissingAsNull:c}),p=C.getNumStepComp(t,l),f=C.getAboveComp(t,l,d,p);if(t.nullSuppression)s=C.getRangeComp("RangeAvg",f);else{const e=C.getRangeComp("RangeSum",f),n=function(e,t){const n=C.getRowNoComp(e,t);if(!C.isFullRange(e)){const{steps:t}=e;return`RangeMin(${"number"!=typeof t||Number.isNaN(t)?6:t}, ${n})`}return n}(t,l);s=`${e} / ${n}`}let h=s;if(C.needDimension({modifier:t,properties:n,layout:r})){const e=C.getDimComp(u,1),n=C.getDimComp(u,0),r=C.getAggrComp(h,e,n);h=t.showExcludedValues?C.getExcludedComp({modifier:t,dimensions:u,dimensionAndFieldList:i,funcComp:"Only",valueComp:r}):r}return h},extractInputExpression:C.extractInputExpression,initModifier(e){C.initModifier(e,H)},enableTotalsFunction:()=>!1,propertyPanelDef:function(e,t={}){return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:(e,t)=>!C.isApplicable({properties:t.properties})},settings:{type:"items",items:{primaryDimension:{refFn:t=>`${$(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(e,t){const{qDimensionInfo:n}=t.layout.qHyperCube;return n.map((e,t)=>({value:t,label:e.qGroupFallbackTitles[0]}))},show:(e,t)=>t.layout.qHyperCube.qDimensionInfo.length>1},crossAllDimensions:{refFn:t=>`${$(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:(e,t)=>t.layout.qHyperCube.qDimensionInfo.length>1},fullRange:{refFn:t=>`${$(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:t=>`${$(t,e)}.steps`,type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change(t){const n=F(t,e);if(n){const{steps:e}=n;n.steps="number"!=typeof e||Number.isNaN(e)?6:Math.abs(e)}},show(t){const n=F(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:t=>`${$(t,e)}.showExcludedValues`,type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:t=>`${$(t,e)}.nullSuppression`,type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:(e,t)=>C.isApplicable({properties:t.properties})}},show(t,n,r){const o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;const i=F(t,e);return i&&!i.disabled}}}},V="timeSeriesDecomposition";function W(e,t){const n=a(e,t);if(n)for(let e=0;e<n.length;e++)if(n[e].type===V)return n[e]}function U(e,t){const n=function(e,t){const n=a(e,t);if(!n)return-1;for(let e=0;e<n.length;e++)if(n[e].type===V)return e;return-1}(e,t);return n>-1?`${t}.${n}`:t}const G={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""},K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:C.needDimension,isApplicable:({properties:e,layout:t})=>C.isApplicable({properties:e,layout:t,minDimensions:1,maxDimensions:2}),generateExpression:({expression:e,modifier:t,properties:n})=>t?C.generateTSDExpression(t,e,n):e,extractInputExpression:C.extractInputExpression,initModifier(e,t){C.initModifier(e,G),""===e.decomposition&&t&&(e.decomposition=C.getDecomposition(t))},propertyPanelDef:function(e,t={}){return{type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:(e,t)=>!C.isApplicable({properties:t.properties})},settings:{type:"items",items:{decomposition:{refFn:t=>`${U(t,e)}.decomposition`,type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:s.OPTIONS},steps:{refFn:t=>`${U(t,e)}.steps`,type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change(t,n){const r=W(t,e);if(r){const{steps:e}=r;r.steps="number"!=typeof e||Number.isNaN(e)?2:Math.abs(e),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map(t=>(t.qDef.modifiers.map(t=>("timeSeriesDecomposition"===t.type?t.steps=e:t.steps=t.steps,t)),t))}},show(t){const n=W(t,e);return n&&!n.fullRange}}},show:(e,t)=>C.isApplicable({properties:t.properties})}},show(t,n,r){const o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(V))return!1;const i=W(t,e);return i&&!i.disabled}}}},Y="difference";function X(e,t){const n=function(e,t){const n=a(e,t);if(!n)return-1;for(let e=0;e<n.length;e++)if(n[e].type===Y)return e;return-1}(e,t);return n>-1?`${t}.${n}`:t}const J={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""},Z={translationKey:"properties.modifier.difference",needDimension:C.needDimension,isApplicable:({properties:e,layout:t})=>C.isApplicable({properties:e,layout:t,minDimensions:1,maxDimensions:2}),extractInputExpression:C.extractInputExpression,generateExpression({expression:e,modifier:t,properties:n,layout:r,numDimensions:o,dimensionAndFieldList:i}){if(!t)return e;let s=o;void 0===s&&(s=C.getNumDimensions({properties:n,layout:r}));const l=a(n,"qHyperCubeDef.qDimensions",[]),u=C.getExpressionWithExcludedComp({expression:e,modifier:t,dimensions:l,dimensionAndFieldList:i});let c=`${u} - ${C.getAboveComp(t,s,u)}`;if(C.needDimension({modifier:t,properties:n,layout:r})){const e=C.getDimComp(l,1),n=C.getDimComp(l,0),r=C.getAggrComp(c,e,n);c=t.showExcludedValues?C.getExcludedComp({modifier:t,dimensions:l,dimensionAndFieldList:i,funcComp:"Only",valueComp:r}):r}return c},initModifier(e){Object.keys(J).forEach(t=>{void 0===e[t]&&(e[t]=J[t])})},enableTotalsFunction:()=>!1,propertyPanelDef:function(e,t={}){return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:(e,t)=>!C.isApplicable({properties:t.properties})},settings:{type:"items",items:{primaryDimension:{refFn:t=>`${X(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(e,t){const{qDimensionInfo:n}=t.layout.qHyperCube;return n.map((e,t)=>({value:t,label:e.qGroupFallbackTitles[0]}))},show:(e,t)=>t.layout.qHyperCube.qDimensionInfo.length>1},crossAllDimensions:{refFn:t=>`${X(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:(e,t)=>t.layout.qHyperCube.qDimensionInfo.length>1},showExcludedValues:{refFn:t=>`${X(t,e)}.showExcludedValues`,type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:(e,t)=>C.isApplicable({properties:t.properties})}},show(t,n,r){const o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Y))return!1;const i=function(e,t){const n=a(e,t);if(n)for(let e=0;e<n.length;e++)if(n[e].type===Y)return n[e]}(t,e);return i&&!i.disabled}}}},Q="normalization";function ee(e,t){const n=a(e,t);if(n)for(let e=0;e<n.length;e++)if(n[e].type===Q)return n[e]}function te(e,t){const n=function(e,t){const n=a(e,t);if(!n)return-1;for(let e=0;e<n.length;e++)if(n[e].type===Q)return e;return-1}(e,t);return n>-1?`${t}.${n}`:t}function ne(e,t){for(let n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}const re={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function oe(e){return 2===e?"{1}":""}function ie(e,t,n){return 1===e?`{$<${C.getFieldWithWrapper(t)}={'${n}'}>}`:""}function ae(e,t){return 0===e&&t>1||2===e?"Total":""}function se(e,t,n){return 0===e&&t>1?`<${C.getDimDefWithWrapper(n)}>`:""}const le={translationKey:"properties.modifier.normalization",needDimension:()=>!0,isApplicable:({properties:e,layout:t})=>C.isApplicable({properties:e,layout:t,minDimensions:1,maxDimensions:2}),extractInputExpression:C.extractInputExpression,generateExpression({expression:e,modifier:t,properties:n,layout:r,numDimensions:o,dimensionAndFieldList:i}){if(!t)return e;let s=o;void 0===s&&(s=C.getNumDimensions({properties:n,layout:r}));const l=a(n,"qHyperCubeDef.qDimensions",[]),u=C.getExpressionWithExcludedComp({expression:e,modifier:t,dimensions:l,dimensionAndFieldList:i});let c=u;const{selectionScope:d,dimensionalScope:p,field:f,value:h,primaryDimension:m,ignoreNegative:g}=t;return c=function(e,t,n,r,o,i,a,s){const l=oe(t),u=ie(t,n,r),c=""===l&&""===u?"":l||u,d=ae(o,i),p=se(o,i,a),f=function(e){const t=[];for(let n=0;n<e;n++)t[n]=C.getDimDefWithWrapper(n);return t.join(", ")}(i);return s?`(If(${e} < 0, null(), ${e}))/ Sum(${c} ${d}${p} Aggr(${c} RangeMax( 0, ${e}), ${f}))`:`${e}/ Sum(${c} ${d}${p} Aggr(${c} ${e}, ${f}))`}(u,d,f,h,p,s,m,g),c},initModifier(e){Object.keys(re).forEach(t=>{void 0===e[t]&&(e[t]=re[t])})},updateModifier(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:()=>!0,propertyPanelDef:function(e,t={}){return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:(e,t)=>!C.isApplicable({properties:t.properties})},settings:{type:"items",items:{selectionScope:{refFn:t=>`${te(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:n=>function(e,t,n){let 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"}];const{dimensionalScope:o}=ee(e,n);return r=function(e,t){if(1===e){const e=ne(t,0);t.splice(e,1)}return t}(o,r),r}(n,t,e)},field:{refFn:t=>`${te(t,e)}.field`,type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:(e,t,n)=>n.app.getFieldList().then(e=>e.map(e=>({label:e.qName,value:e.qName}))),show:t=>1===ee(t,e).selectionScope},value:{refFn:t=>`${te(t,e)}.value`,type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:t=>1===ee(t,e).selectionScope},dimensionalScope:{refFn:t=>`${te(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:(n,r)=>function(e,t,n,r){const o=t.layout.qHyperCube.qDimensionInfo.length;let 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."+(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||`properties.modifier.dimensionalScope.${2===o?"respectAllDimensions":"respectDimension"}.tooltip`},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope."+(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||`properties.modifier.dimensionalScope.${2===o?"disregardAllDimensions":"disregardDimension"}.tooltip`}];i=function(e,t){if(e<2){const e=ne(t,0);t.splice(e,1)}return t}(o,i);const{selectionScope:a}=ee(e,r);return i=function(e,t){if(0===e){const e=ne(t,1);t.splice(e,1)}return t}(a,i),i}(n,r,t,e)},primaryDimension:{refFn:t=>`${te(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(e,t){const{qDimensionInfo:n}=t.layout.qHyperCube;return n.map((e,t)=>({value:t,label:e.qGroupFallbackTitles[0]}))},show:(t,n)=>0===(ee(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}},show:(e,t)=>C.isApplicable({properties:t.properties})}},show(t,n,r){const o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Q))return!1;const i=ee(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:oe,getFieldSelectionComp:ie,getTotalComp:ae,getSelectedDimComp:se},ue="library id deleted",ce="qDef.qDef",de="qDef.base.qDef",pe="qLibraryId",fe="qDef.base.qLibraryId",he="qDef.qLabel",me="qDef.qLabelExpression",ge="qDef.base.qLabel",be="qDef.base.qLabelExpression",ve="qDef.qAggrFunc",ye="qDef.base.qAggrFunc",xe="qDef.base",Se={getExpression(e){const t=a(e,de);return void 0!==t?t:a(e,ce)},getExpressionRef:e=>void 0!==a(e,de)?de:ce,getLibraryIdRef:e=>a(e,fe)?fe:pe,getLibraryId:e=>a(e,fe)||a(e,pe),getLabelRef:e=>a(e,xe)?ge:he,getLabelExpressionRef:e=>a(e,xe)?be:me},we={initBase(e,t){(t||we.isValid(e))&&(i(e,de,a(e,ce)),i(e,fe,a(e,pe)),i(e,ge,a(e,he)),i(e,be,a(e,me)))},restoreBase(e){we.isValid(e)&&(i(e,ce,a(e,de)),i(e,pe,a(e,fe)),i(e,he,a(e,ge)),i(e,me,a(e,be)),a(e,ve)&&a(e,ye)&&i(e,ve,a(e,ye)),delete e.qDef.base)},isValid(e){const t=a(e,de),n=a(e,fe);return void 0!==t||void 0!==n}},Ce=we,Ee={accumulation:_,movingAverage:B,difference:Z,normalization:le,timeSeriesDecomposition:K},Re={modifiers:Ee,apply:Ie,applyModifiers:ke,cleanUpMeasure:Pe,destroy:function(e){e&&Ae[e.id]&&Ae[e.id].masterItemSubscriber&&(Ae[e.id].masterItemSubscriber&&Ae[e.id].masterItemSubscriber.unsubscribe(),delete Ae[e.id])},hasActiveModifiers:Me,getActiveModifier:De,initBase:Ce.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(e=>Ee[e])},isApplicableSupportedModifiers:function({modifierTypes:e,properties:t,layout:n}){return Array.isArray(e)&&e.some(e=>Ee[e]&&Ee[e].isApplicable({properties:t,layout:n}))},measureBase:Se,limitedSorting:function({measures:e,properties:t,layout:n}){let r=!1,o=!1;return e.forEach(e=>{const i=qe(e);$e({modifiers:i,properties:t,layout:n})&&(r=!0,o=o||Ue({modifiers:i,properties:t,layout:n}))}),r&&!o},ifEnableTotalsFunction:Te},Ae={};function Ie({model:e,properties:t,isSnapshot:n=!1,masterItem:r}={}){const i=!1;Ae[e.id]=Ae[e.id]||{isFirstTime:!0};const{isFirstTime:s}=Ae[e.id];if(Ae[e.id].isFirstTime=!1,t&&"object"==typeof t)return ke({model:e,properties:t});const l=e?e.layout:void 0,u=a(l,"qSelectionInfo.qInSelections");if(n||u)return Promise.resolve(i);const c=a(l,"qHyperCube.qMeasureInfo"),{lastReloadTime:d}=Ae[e.id];if(Ae[e.id].lastReloadTime=a(e,"app.layout.qLastReloadTime"),Me({measures:c,layout:l})){const t=function({measures:e,layout:t,model:n,lastReloadTime:r}){return a(n,"app.layout.qLastReloadTime")!==r&&function({measures:e,properties:t,layout:n}){return!!Array.isArray(e)&&e.some(e=>Fe({measure:e,properties:t,layout:n}))}({measures:e,layout:t})}({measures:c,layout:l,model:e,lastReloadTime:d});return t||function({measures:e,layout:t,masterItem:n,isFirstTime:r}){return!!Array.isArray(e)&&(r||n||e.some(e=>function({measure:e,layout:t}){return $e({modifiers:qe(e),layout:t})?!e.base:!!e.base}({measure:e,layout:t})))}({measures:c,layout:l,masterItem:r,isFirstTime:s})?e.getEffectiveProperties().then(n=>{const a=o()(!0,{},n);Ne(a);const s=Ge(a);return He({model:e}).then(o=>Be({libraryIds:s,model:e}).then(i=>(t&&function({properties:e}){Oe(e).forEach(t=>function({measure:e,properties:t}){if(Fe({measure:e,properties:t})){let t=0;const{modifiers:n}=e.qDef;Array.isArray(n)&&n.forEach(n=>{if("object"==typeof n&&!n.disabled){if(t++,"object"!=typeof Ee[n.type])throw new Error(`Modifier "${n.type}" is not available`);if(t>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");const r=Ee[n.type].extractInputExpression({outputExpression:e.qDef.qDef,modifier:n});void 0!==r&&_e(e)&&C.simplifyExpression(e.qDef.base.qDef)!==C.simplifyExpression(r)&&(e.qDef.base.qDef=r)}})}}({measure:t,properties:e}))}({properties:a}),ke({model:e,oldProperties:n,properties:a,runUpdateIfChange:!0,masterItem:r,libraryItemsProps:i,dimensionAndFieldList:o})))).catch(()=>Promise.resolve(i))}):Promise.resolve(i)}return function(e){return!!Array.isArray(e)&&e.some(e=>"object"==typeof e.base)}(c)?e.getEffectiveProperties().then(t=>function({model:e,properties:t}){const n=Ge(t);return Ke({model:e,libraryIds:n}).then(()=>{const n=o()(!0,{},t);return Oe(t).forEach(e=>Pe(e)),We({oldProperties:n,newProperties:t,model:e})})}({model:e,properties:t})):Promise.resolve(i)}function ke({model:e,oldProperties:t,properties:n,measures:r,runUpdateIfChange:i=!1,masterItem:s,libraryItemsProps:l,dimensionAndFieldList:u}){void 0===t&&(t=i?o()(!0,{},n):n),Ne(n);const c=Ge(n);return Ke({model:e,libraryIds:c,masterItem:s}).then(()=>function({measures:e,properties:t,model:n,libraryItemsProps:r,dimensionAndFieldList:i}){if(e||(e=Oe(t)),!e.length)return Promise.resolve();if(!r&&!Me({measures:e,properties:t}))return e.forEach(e=>Pe(e)),Promise.resolve();const s=r?void 0:Ge(t);return He({model:n,dimensionAndFieldList:i}).then(i=>Be({libraryIds:s,model:n,libraryItemsProps:r}).then(n=>{e.forEach(e=>{const{modifiers:r}=e.qDef;n&&$e({modifiers:r,properties:t})?(function({measure:e,properties:t,libraryItemsProps:n,dimensionAndFieldList:r}){let i=0;Ce.isValid(e)||Ce.initBase(e,!0);const{modifiers:s,base:l}=e.qDef;Array.isArray(s)&&s.forEach(s=>{if("object"==typeof s&&!s.disabled){if(i++,"object"!=typeof Ee[s.type])throw new Error(`Modifier "${s.type}" is not available`);if(i>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ee[s.type].initModifier(s,e);const u=e.qLibraryId||l&&l.qLibraryId;u?function({measure:e,modifier:t,libraryId:n,properties:r,libraryItemsProps:i,dimensionAndFieldList:a}){const s=i[n],l=s.qMeasure.qDef,u=""===l?l:Ee[t.type].generateExpression({expression:l,modifier:t,properties:r,dimensionAndFieldList:a});t.outputExpression=u,e.qDef.qDef=t.outputExpression,(e.qDef.qLabel||s.qMeasure.qLabel)&&(e.qDef.qLabel=e.qDef.base.qLabel||s.qMeasure.qLabel),(e.qDef.qLabelExpression||s.qMeasure.qLabelExpression)&&(e.qDef.qLabelExpression=s.qMeasure.qLabelExpression),e.qDef.quarantine&&e.qDef.quarantine.qNumFormat&&s.qMeasure.qNumFormat&&(e.qDef.qNumFormat=e.qDef.base.qNumFormat||s.qMeasure.qNumFormat,e.qDef.isCustomFormatted=s.qMeasure.isCustomFormatted),delete e.qLibraryId,e.qDef.coloring=s.qMeasure.coloring,t.base=o()(!0,{},e.qDef.base)}({measure:e,modifier:s,libraryId:u,properties:t,libraryItemsProps:n,dimensionAndFieldList:r}):function({measure:e,modifier:t,properties:n,dimensionAndFieldList:r}){"function"==typeof Ee[t.type].updateModifier&&Ee[t.type].updateModifier(t,n.qHyperCubeDef);const i=Se.getExpression(e),a=""===i?i:Ee[t.type].generateExpression({expression:i,modifier:t,properties:n,dimensionAndFieldList:r});t.outputExpression=a,e.qDef.qDef=t.outputExpression,e.qDef.base.qLabelExpression?e.qDef.qLabelExpression=e.qDef.base.qLabelExpression:e.qDef.qLabel=e.qDef.base.qLabel||i,t.base=o()(!0,{},e.qDef.base)}({measure:e,modifier:s,properties:t,dimensionAndFieldList:r}),function(e){const t=a(e,"qDef.qAggrFunc");"Expr"!==t||Te(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Te(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(e)}})}({measure:e,properties:t,libraryItemsProps:n,dimensionAndFieldList:i}),je(e)):Pe(e)})}))}({measures:r,properties:n,model:e,libraryItemsProps:l,dimensionAndFieldList:u}).then(()=>i?We({oldProperties:t,newProperties:n,model:e}):Promise.resolve(!1))).catch(()=>Promise.resolve(!1))}function Pe(e){!function(e){const t=qe(e);return Array.isArray(t)&&t.some(e=>"object"==typeof e&&!e.disabled&&!Ee[e.type])}(e)?Ce.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,je(e)}function Me({measures:e,properties:t,layout:n}){return!!Array.isArray(e)&&e.some(e=>$e({modifiers:qe(e),properties:t,layout:n}))}function De(e){const t=qe(e);if(Array.isArray(t))for(let e=0;e<t.length;e++){const n=t[e];if(Ee[n.type]&&!n.disabled)return n}}function Te(e){const t=De(e);return!t||Ee[t.type].enableTotalsFunction(e)}function Oe(e){return a(e,"qHyperCubeDef.qMeasures",[]).concat(a(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function qe(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Le(e){return a(e,"outputExpression.qValueExpression.qExpr")||a(e,"outputExpression")}function Ne(e){Oe(e).forEach(e=>function(e){const t=De(e);t&&(void 0!==t.outputExpression&&Le(t)!==e.qDef.qDef?delete e.qDef.base:!Ce.isValid(e)&&t.base&&(e.qDef.base=o()(!0,{},t.base)))}(e))}function je(e){const t=qe(e);Array.isArray(t)&&t.forEach(t=>{"object"==typeof t&&(t.disabled||!Ee[t.type]&&Le(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function _e(e){return e.base||e.qDef&&e.qDef.base}function ze(e){const t=_e(e);return e.qLibraryId||t&&t.qLibraryId}function Fe({measure:e,properties:t,layout:n}){return!ze(e)&&$e({modifiers:qe(e),properties:t,layout:n})}function $e({modifiers:e,properties:t,layout:n}){const r={};return Array.isArray(e)&&e.some(e=>!("object"!=typeof e||e.disabled||!Ee[e.type])&&(void 0===r[e.type]&&(r[e.type]=Ee[e.type].isApplicable({properties:t,layout:n})),r[e.type]))}function He({model:e,dimensionAndFieldList:t}){if(t)return Promise.resolve(t);const n=[],r={},o=e.app.getDimensionList().then(e=>{r.dimensionList=e});n.push(o);const i=e.app.getFieldList().then(e=>{r.fieldList=e});return n.push(i),Promise.all(n).then(()=>r)}function Be({libraryIds:e,model:t,libraryItemsProps:n}){if(n)return Promise.resolve(n);const{measureLibraryIds:r,dimensionLibraryIds:o}=e,i={},a=[];return r.forEach(e=>{const n=t.app.getMeasure(e).then(t=>t.getProperties().then(t=>{i[e]=t}));a.push(n)}),o.forEach(e=>{const n=t.app.getDimension(e).then(t=>t.getProperties().then(t=>{i[e]=t}));a.push(n)}),Promise.all(a).then(()=>i).catch(()=>null)}function Ve(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function We({oldProperties:e,newProperties:t,model:n}){const r=JSON.stringify(a(e,"qHyperCubeDef.qMeasures"),Ve)!==JSON.stringify(a(t,"qHyperCubeDef.qMeasures"),Ve)||JSON.stringify(a(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ve)!==JSON.stringify(a(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ve);return r?function({model:e,oldProperties:t,newProperties:n}){const{layout:r}=e;return r&&!r.qHasSoftPatches&&!r.qExtendsId&&a(r,"qMeta.privileges",[]).indexOf("update")>-1?e.setProperties(n):O.saveSoftProperties(e,t,n)}({model:n,oldProperties:e,newProperties:t}).then(()=>r):Promise.resolve(r)}function Ue({modifiers:e,properties:t,layout:n}){return Array.isArray(e)&&e.some(e=>"object"==typeof e&&!e.disabled&&Ee[e.type]&&Ee[e.type].needDimension({modifier:e,properties:t,layout:n}))}function Ge(e){const t=Oe(e),n=[],r=[];let o=!1;return t.forEach(t=>{const r=qe(t);if($e({modifiers:r,properties:e})){const i=ze(t);i&&n.push(i),o=o||Ue({modifiers:r,properties:e})}}),a(e,"qHyperCubeDef.qDimensions",[]).forEach(e=>{const t=e.qLibraryId;t&&r.push(t)}),{measureLibraryIds:n,dimensionLibraryIds:r}}function Ke({model:e,libraryIds:t,masterItem:n}){return!n&&n!==ue&&Ae[e.id]&&t&&(t.measureLibraryIds.length||t.dimensionLibraryIds.length)?(Ae[e.id].masterItemSubscriber=Ae[e.id].masterItemSubscriber||function({model:e,callback:t}){let n={},r={},o={};const i={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){const t={},n=a(e,"qInfo.qType");return n&&i[n]&&i[n].forEach(n=>{t[n]=a(e,n)}),JSON.stringify(t)}function l(e){const{qId:r}=e.qInfo;if(n[r]){const o=s(e);n[r].properties!==o&&(n[r].properties=o,"function"==typeof t&&n[r].enabled&&t(e)),n[r].enabled=!0}}function u(){Object.keys(n).forEach(e=>{r[e]||o[e]||(n[e].listener.dispose(),n[e].unbindCloseListnener(),delete n[e])})}const c=(e,t)=>(e.once("closed",t),()=>e.removeListener("closed",t));function d(r,o){return e.app[o](r).then(e=>{n[r]={listener:e.layoutSubscribe(l),unbindCloseListnener:c(e,()=>{return r=e.id,t(ue),delete n[r],void u();var r}),enabled:!1,properties:s(e.layout)}}).catch(()=>{})}return{subscribe({measureLibraryIds:t,dimensionLibraryIds:i}){const a=[];return function({measureLibraryIds:e,dimensionLibraryIds:t}){r={},e.forEach(e=>{r[e]=!0}),o={},t.forEach(e=>{o[e]=!0})}({measureLibraryIds:t,dimensionLibraryIds:i}),u(),e.app&&(Object.keys(r).forEach(e=>{r[e]&&!n[e]&&a.push(d(e,"getMeasure"))}),Object.keys(o).forEach(e=>{o[e]&&!n[e]&&a.push(d(e,"getDimension"))})),Promise.all(a)},unsubscribe(){Object.keys(n).forEach(e=>{n[e].listener.dispose(),n[e].unbindCloseListnener()}),n={}}}}({model:e,callback:t=>Ie({model:e,masterItem:t}).then(()=>e.app.clearUndoBuffer())}),Ae[e.id].masterItemSubscriber.subscribe(t)):Promise.resolve()}}};const n={};function r(e){const o=n[e];if(void 0!==o)return o.exports;const i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var o=t[n++],i=t[n++];r.o(e,o)?0===i&&n++:0===i?Object.defineProperty(e,o,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,o,{enumerable:!0,get:i})}else for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.cjs=e=>{const t={exports:{}};return e.call(t.exports,t,t.exports),t.exports};let o=r(828);for(var i in e.default=o.default,o)-1===["default"].indexOf(i)&&(e[i]=o[i]);Object.defineProperty(e,"__esModule",{value:!0})})()}(b$)),b$),y$=Bt(v$);const x$="TOTAL_OFF",S$={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},w$={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}},C$=e=>({type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!y$.hasActiveModifiers({measures:[e],properties:t.properties})||y$.ifEnableTotalsFunction(e)?[{value:""===e.qDef.qAggrFunc?"":"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:e.anything.sense?.isUnsupportedFeature?.("totals")?"None":"Expr"}}}},show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),E$={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Qm.Auto,translation:"Common.Auto"},{value:Qm.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:Qm.Pixels,translation:"Object.Table.Column.Pixels"},{value:Qm.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Qm.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:"200",show:e=>e.qDef.columnWidth?.type===Qm.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===Qm.Percentage}},R$=e=>({...S$,...e.flags.isEnabled("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?{columnExpression:{type:"items",grouped:!0,items:[{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},{type:"items",items:[{component:"text",translation:"properties.Header",style:"sHeader"},{ref:"qDef.headerColor.background",translation:"Object.Table.Measure.BackgroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""},{ref:"qDef.headerColor.foreground",translation:"Object.Table.Measure.ForegroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""}]},{type:"items",items:[{component:"text",translation:"properties.Content",style:"sHeader"},{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",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},tableCellStyling:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}},...w$,...E$}),A$=e=>({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},subTotalGroup:{type:"items",show:e.flags.isEnabled("TLV-2303-SUB-TOTALS")&&!e.anything.sense?.isUnsupportedFeature?.("totals"),items:[{uses:"divider"},{type:"string",component:"switch",translation:"properties.showSubTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:x$,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:x$,translation:"properties.off"}},{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"Common.Label",defaultValue:()=>e.translator.get("properties.subTotals"),show:e=>e.qOtherTotalSpec?.qTotalMode!==x$},{uses:"divider"}]},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}}),I$=e=>{const t=e.anything.sense?.isUnsupportedFeature?.("modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>t?!!e.qLibraryId:!(!e.qLibraryId&&!e.qDef.base?.qLibraryId)},inlineMeasure:{component:"inline-measure",show:e=>t?!e.qLibraryId:!(e.qLibraryId||e.qDef.base?.qLibraryId)},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:C$(e)}},k$=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:A$(e)},presentation:{type:"items",translation:"properties.presentation",items:{...R$(e),...h$(e)}}}}}),P$=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:I$(e)},presentation:{type:"items",translation:"properties.presentation",items:{...R$(e),...m$(e,{[u$.Image]:!0,[u$.Indicator]:!0,[u$.MiniChart]:!0})}}}}}),M$=e=>({...k$(e),...P$(e)}),D$=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...M$(e)},highlightSelected:!0},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}},highlightSelected:!0}}}),T$=e=>({type:"items",items:[{ref:e,type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"}]}),O$=e=>T$("dimensionNullValues"===e?"nullValueRepresentation.dimensionText":"nullValueRepresentation.text"),q$={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}},L$=e=>({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:!e.anything.sense?.isUnsupportedFeature?.("totals")}),N$=(e,t,n,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:r??!1,defaultValue(e,t,o){const i=r?.(e,t,o)??!1,a=o.theme.current(),s=n(a,i);return{color:"transparent"===s?"none":s}}}),j$=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},_$=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{const r=t.fontFamily??"Source Sans Pro, sans-serif",o=t.fontFamilies??[],i=Array.from(new Set([e,r,...o])),a=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...i.sort().map(e=>j$(e,!0))],s=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...de().filter(e=>!i.includes(e)).map(e=>j$(e,!0))];return[...a,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),z$=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],F$=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{const r=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,r,...o])),a=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...i.sort((e,t)=>parseInt(e,10)-parseInt(t,10)).map(e=>j$(e,!1))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...z$.filter(e=>!i.includes(e)).map(e=>j$(e,!1))];return[...a,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),$$=({section:e,defaultFontStyle:t,translator:n,flags:r,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:_$({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:F$({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:n}),fontColor:N$(`${e}.fontColor`,void 0,t=>o(t,e,"color")??t.color)}},background:N$(`${e}.background`,"properties.background",(t,n)=>{const r=n?bm.WHITE:bm.TRANSPARENT;return o(t,e,"backgroundColor")??r},a)}}}}),H$=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r,isNullValueText:o,translation:i})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{nullValueText:o?O$(e):void 0,content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:N$(`${e}.fontColor`,void 0,t=>r(t,e,"color")??t.color)}},background:N$(`${e}.background`,"properties.background",t=>r(t,e,"backgroundColor")??n??"transparent")}}}}),B$=(e,t,n)=>{switch(t){case"header":return e.object?.straightTableV2?.dimension?.label?.name?.[n];case"dimensionValues":return e.object?.straightTableV2?.dimension?.label?.value?.[n];case"measureValues":return e.object?.straightTableV2?.measure?.label?.value?.[n];case"totalValues":return e.object?.straightTableV2?.total?.label?.value?.[n];case"subTotalValues":return e.object?.straightTableV2?.subTotal?.label?.value?.[n];case"nullValues":case"dimensionNullValues":return e.object?.straightTableV2?.null?.label?.value?.[n];default:return}},V$=e=>e.grid?.zebraStripes?.show,W$={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){null!=e?.content?.rowHeight&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==e?.content&&(e.content.rowHeight=void 0)}},U$=e=>e?.content?.hoverEffect,G$={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:U$,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:U$,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},K$=(e,t,{properties:n})=>"sn-table"===n.visualization&&!0===n.usePagination,Y$=e=>e.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),X$=({flags:e,translator:t})=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,items:{headerSection:$$({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:B$,disableNoneCallback:K$}),dimensionValueSection:$$({section:"dimensionValues",translator:t,flags:e,getThemeValue:B$}),measureValueSection:$$({section:"measureValues",translator:t,flags:e,getThemeValue:B$}),totalRowSection:$$({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:B$,disableNoneCallback:K$}),subTotalRowSection:e.isEnabled("TLV-2303-SUB-TOTALS")?$$({section:"subTotalValues",defaultFontStyle:["bold"],translation:"properties.subTotals",translator:t,flags:e,getThemeValue:B$,disableNoneCallback:K$}):void 0,...Y$(e)?{dimensionNullSection:H$({section:"dimensionNullValues",translation:"properties.table.dimensionNullValues",fallbackBackground:bm.NULL_VALUE_BACKGROUND,getThemeValue:B$,isNullValueText:!0}),nullValues:H$({section:"nullValues",translation:"properties.table.measureNullValues",fallbackBackground:bm.NULL_VALUE_BACKGROUND,getThemeValue:B$,isNullValueText:!0})}:{nullValues:H$({section:"nullValues",fallbackBackground:bm.NULL_VALUE_BACKGROUND,getThemeValue:B$,isNullValueText:!1})},grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...W$},border:N$("grid.border","properties.border",e=>e.object?.straightTableV2?.grid?.borderColor??bm.BORDER_MEDIUM),divider:N$("grid.divider","properties.pivot.divider",e=>e.object?.straightTableV2?.grid?.divider?.borderColor??bm.BORDER_HEAVY)}}}},hoverEffectSection:G$,zebraStripes:{translation:"properties.zebraStripes",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{zebraStripesEnable:{ref:"grid.zebraStripes.show",translation:"properties.zebraStripes.enable",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},zebraStripesColorOdd:{show:V$,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:V$,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:V$,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:V$,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),J$=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[X$(e),L$(e),{type:"items",items:[{component:"text",translation:"properties.accessibilityOptions"},{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1},{ref:"accessibleHeader",translation:"properties.increaseAccessibility",type:"boolean",component:"checkbox",undefinedValue:!0,defaultValue:!1}]},{type:"items",translation:"Object.Table.WrapText",items:[{component:"text",translation:"Object.Table.Multiline"},{ref:"multiline.wrapTextInHeaders",type:"boolean",translation:"Object.Table.Multiline.WrapTextInHeaders",component:"checkbox",defaultValue:!0},{ref:"multiline.wrapTextInCells",type:"boolean",translation:"Object.Table.Multiline.WrapTextInCells",component:"checkbox",defaultValue:!0}]},{ref:"hideHeader",translation:"properties.hideHeader",type:"boolean",component:"checkbox",defaultValue:!1},e.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING")?void 0:O$()]},...q$}}),Z$={uses:"sorting"},Q$={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},eH=e=>({type:"items",component:"accordion",items:{data:D$(e),sorting:Z$,addOns:Q$,settings:J$(e)}});function tH(e){return{definition:eH(e),exploration:BF(e),data:s$(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:e.anything.sense?.isUnsupportedFeature?.("modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(t,n,r,o,i){const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return Ev({exportFormat:t,initialProperties:n,extension:r,hypercubePath:o,defaultPropertyValues:a,viewDataMode:i,env:e})},exportProperties:(e,t)=>vv({propertyTree:e,hyperCubePath:t}),propertyHandler:t=>new n$(t,e.translator),usePropertyHandler:"sn-table-data",migrate:l$(e)}}const nH=e=>{const t=e.get(tv);return a(()=>()=>{t.unmount()},[t]),t};var rH,oH={exports:{}};
|
|
103
103
|
/*!
|
|
104
104
|
* CSSJanus. https://www.mediawiki.org/wiki/CSSJanus
|
|
105
105
|
*
|
|
@@ -118,4 +118,4 @@ function Ki(e,t){let n;return n=t?Di(e).withConfig({displayName:t.label,shouldFo
|
|
|
118
118
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
119
119
|
* See the License for the specific language governing permissions and
|
|
120
120
|
* limitations under the License.
|
|
121
|
-
*/var iH=(rH||(rH=1,function(e,t){var n;function r(e,t){var n=[],r=0;function o(e){return n.push(e),t}function i(){return n[r++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}n=new function(){var e="`TMP`",t="`COMMENT`",n="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",a="direction\\s*:\\s*",s="['\"]?\\s*",l="(^|[^a-zA-Z])",u="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",c="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",d="(?:[_a-z0-9-]|"+n+"|"+c+")",p=o+"(?:\\s*"+i+"|-?(?:[_a-z]|"+n+"|"+c+")"+d+"*)?",f="((?:-?"+p+")|(?:inherit|auto))",h="((?:-?"+p+")|(?:inherit|auto)|(?:calc\\((?:(?:(?:\\(|\\)|\\t| )|(?:-?"+o+"(?:\\s*"+i+")?)|(?:\\+|\\-|\\*|\\/)){3,})\\)))",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+n+"|"+c+")*?",b="(?![a-zA-Z])",v="(?!("+d+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",y="(?!"+g+s+"\\))",x="(?="+g+s+"\\))",S="(\\s*(?:!important\\s*)?[;}])",w=/`TMP`/g,C=/`TMPLTR`/g,E=/`TMPRTL`/g,R=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),A=new RegExp("("+u+v+"[^;}]+;?)","gi"),I=new RegExp("("+u+"[^\\}]*?})","gi"),k=new RegExp("("+a+")ltr","gi"),P=new RegExp("("+a+")rtl","gi"),M=new RegExp(l+"(left)"+b+y+v,"gi"),D=new RegExp(l+"(right)"+b+y+v,"gi"),T=new RegExp(l+"(left)"+x,"gi"),O=new RegExp(l+"(right)"+x,"gi"),q=/(:dir\( *)ltr( *\))/g,L=/(:dir\( *)rtl( *\))/g,N=new RegExp(l+"(ltr)"+x,"gi"),j=new RegExp(l+"(rtl)"+x,"gi"),_=new RegExp(l+"([ns]?)e-resize","gi"),z=new RegExp(l+"([ns]?)w-resize","gi"),F=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+h+"(\\s+)"+h+"(\\s+)"+h+"(\\s+)"+h+S,"gi"),$=new RegExp("((?:-color|border-style)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+S,"gi"),H=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+p+")","gi"),B=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),V=new RegExp("(border-radius\\s*:\\s*)"+f+"(?:(?:\\s+"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?)?(?:(?:(?:\\s*\\/\\s*)"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?(?:\\s+"+f+")?)?"+S,"gi"),W=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+f,"gi"),U=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+m,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+m+"(\\s*)"+f,"gi"),K=new RegExp("(text-shadow\\s*:\\s*)"+f,"gi"),Y=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+f+"(\\s*\\))","gi"),X=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+f+"((?:\\s*,\\s*"+f+"){0,2}\\s*\\))","gi");function J(e,t,n){var r,o;return t.split("(").length>t.split(")").length?e:("%"===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 Z(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 Q(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?Z(r)+" / "+Z(o):Z(r))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,n){return t+ee(n)}function ne(e,t,n,r,o){return t+n+ee(r)+o}function re(e,t,n,r,o){return t+n+r+ee(o)}return{transform:function(n,o){var i=new r(A,"`NOFLIP_SINGLE`"),a=new r(I,"`NOFLIP_CLASS`"),s=new r(R,t);return n=s.tokenize(a.tokenize(i.tokenize(n.replace("`","%60")))),o.transformDirInUrl&&(n=n.replace(q,"$1`TMPLTR`$2").replace(L,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(j,"$1ltr").replace(w,"rtl").replace(C,"ltr").replace(E,"rtl")),o.transformEdgeInUrl&&(n=n.replace(T,"$1"+e).replace(O,"$1left").replace(w,"right")),n=n.replace(k,"$1"+e).replace(P,"$1ltr").replace(w,"rtl").replace(M,"$1"+e).replace(D,"$1left").replace(w,"right").replace(_,"$1$2"+e).replace(z,"$1$2e-resize").replace(w,"w-resize").replace(V,Q).replace(W,te).replace(U,re).replace(G,re).replace(K,te).replace(Y,ne).replace(X,ne).replace(F,"$1$2$3$8$5$6$7$4$9").replace($,"$1$2$3$8$5$6$7$4$9").replace(H,J).replace(B,J),n=i.detokenize(a.detokenize(s.detokenize(n)))}}},e.exports?t.transform=function(e,t,r){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof r&&(o.transformEdgeInUrl=r)),n.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=n)}(oH,oH.exports)),oH.exports),aH=Bt(iH),sH="comm",lH="rule",uH="decl",cH=Math.abs,dH=String.fromCharCode;function pH(e){return e.trim()}function fH(e,t,n){return e.replace(t,n)}function hH(e,t){return 0|e.charCodeAt(t)}function mH(e,t,n){return e.slice(t,n)}function gH(e){return e.length}function bH(e,t){return t.push(e),e}var vH=1,yH=1,xH=0,SH=0,wH=0,CH="";function EH(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:vH,column:yH,length:a,return:"",siblings:s}}function RH(){return wH=SH>0?hH(CH,--SH):0,yH--,10===wH&&(yH=1,vH--),wH}function AH(){return wH=SH<xH?hH(CH,SH++):0,yH++,10===wH&&(yH=1,vH++),wH}function IH(){return hH(CH,SH)}function kH(){return SH}function PH(e,t){return mH(CH,e,t)}function MH(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function DH(e){return pH(PH(SH-1,qH(91===e?e+2:40===e?e+1:e)))}function TH(e){for(;(wH=IH())&&wH<33;)AH();return MH(e)>2||MH(wH)>3?"":" "}function OH(e,t){for(;--t&&AH()&&!(wH<48||wH>102||wH>57&&wH<65||wH>70&&wH<97););return PH(e,kH()+(t<6&&32==IH()&&32==AH()))}function qH(e){for(;AH();)switch(wH){case e:return SH;case 34:case 39:34!==e&&39!==e&&qH(wH);break;case 40:41===e&&qH(e);break;case 92:AH()}return SH}function LH(e,t){for(;AH()&&e+wH!==57&&(e+wH!==84||47!==IH()););return"/*"+PH(t,SH-1)+"*"+dH(47===e?e:AH())}function NH(e){for(;!MH(IH());)AH();return PH(e,SH)}function jH(e){return function(e){return CH="",e}(_H("",null,null,null,[""],e=function(e){return vH=yH=1,xH=gH(CH=e),SH=0,[]}(e),0,[0],e))}function _H(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y=0,x="",S=o,w=i,C=r,E=x;g;)switch(h=y,y=AH()){case 40:108!=h&&58==hH(E,d-1)?(v++,E+="("):E+=DH(y);break;case 41:v--,E+=")";break;case 34:case 39:case 91:E+=DH(y);break;case 9:case 10:case 13:case 32:if(v>0){E+=dH(y);break}E+=TH(h);break;case 92:E+=OH(kH()-1,7);continue;case 47:switch(IH()){case 42:case 47:bH(FH(LH(AH(),kH()),t,n,l),l),5!=MH(h||1)&&5!=MH(IH()||1)||!gH(E)||" "===mH(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*m:s[u++]=gH(E)*b;case 125*m:case 59:case 0:if(v>0&&y){E+=dH(y);break}switch(y){case 0:case 125:g=0;case 59+c:-1==b&&(E=fH(E,/\f/g,"")),f>0&&(gH(E)-d||0===m)&&bH(f>32?$H(E+";",r,n,d-1,l):$H(fH(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if(bH(C=zH(E,t,n,u,c,o,s,x,S=[],w=[],d,i),i),123===y)if(0===c)_H(E,t,C,C,S,i,d,s,w);else{switch(p){case 99:if(110===hH(E,3))break;case 108:if(97===hH(E,2))break;default:c=0;case 100:case 109:case 115:}c?_H(e,C,C,r&&bH(zH(e,C,C,0,0,o,s,x,o,S=[],d,w),w),o,w,d,s,r?S:w):_H(E,C,C,C,[""],w,0,s,w)}}u=c=f=0,m=b=1,x=E="",d=a;break;case 58:d=1+gH(E),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==RH())continue;switch(E+=dH(y),y*m){case 38:b=c>0?1:(E+="\f",-1);break;case 44:if(v>0)break;s[u++]=(gH(E)-1)*b,b=1;break;case 64:45===IH()&&(E+=DH(AH())),p=IH(),c=d=gH(x=E+=NH(kH())),y++;break;case 45:45===h&&2==gH(E)&&(m=0)}}return i}function zH(e,t,n,r,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=function(e){return e.length}(f),m=0,g=0,b=0;m<r;++m)for(var v=0,y=mH(e,p+1,p=cH(g=a[m])),x=e;v<h;++v)(x=pH(g>0?f[v]+" "+y:fH(y,/&\f/g,f[v])))&&(l[b++]=x);return EH(e,t,n,0===o?lH:s,l,u,c,d)}function FH(e,t,n,r){return EH(e,t,n,sH,dH(wH),mH(e,2,-2),0,r)}function $H(e,t,n,r,o){return EH(e,t,n,uH,mH(e,0,r),mH(e,r+1,-1),r,o)}function HH(e,t,n){switch(e.type){case"@import":case uH:case sH:return e.return=e.return||e.value;case lH:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===sH&&(e.children=e.value)})}var r=function(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}(Array.prototype.concat(e.children),HH);return gH(r)?e.return=e.value+"{"+r+"}":""}function BH(e,t,n,r){if("@keyframes"===e.type||"@supports"===e.type||e.type===lH&&(!e.parent||"@media"===e.parent.type||e.parent.type===lH)){var o=aH.transform(HH(e));e.children=o?jH(o)[0].children:[],e.return=""}}Object.defineProperty(BH,"name",{value:"stylisRTLPlugin"});const VH=hk(({options:e,...t})=>$g(qm(t,e)()),(e,t)=>e.fontSize===t.fontSize&&e.fontFamily===t.fontFamily&&e.fontStyle===t.fontStyle&&e.fontWeight===t.fontWeight&&e.options?.maxNbrLinesOfText===t.options?.maxNbrLinesOfText&&e.options?.allowLineBreaks===t.options?.allowLineBreaks);class WH{#y={on:new Map,once:new Map};#x=10;#S(e){this.listenerCount(e)>this.#x&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#w(e,t,n){const r=this.#y[e].get(t)??new Set;r.add(n),this.#y[e].set(t,r),this.#S(t)}setMaxListeners(e){this.#x=e}on(e,t){this.#w("on",e,t)}once(e,t){this.#w("once",e,t)}off(e,t){this.#y.on.get(e)?.delete(t),this.#y.once.get(e)?.delete(t)}emit(e,...t){this.#y.on.get(e)?.forEach(e=>{e(...t)}),this.#y.once.get(e)?.forEach(e=>{e(...t)}),this.#y.once.delete(e)}listenerCount(e){return(this.#y.on.get(e)?.size??0)+(this.#y.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#y.on.clear(),this.#y.once.clear()):(this.#y.on.delete(e),this.#y.once.delete(e))}}const UH=$g(()=>new WH);let GH=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),KH=function(e){return e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows",e}({}),YH=function(e){return e.A="ascending",e.D="descending",e}({}),XH=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const JH=[0,0],ZH=e=>"number"==typeof e&&!Number.isNaN(+e),QH=e=>ZH(e.qNum),eB=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),tB=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),nB=(e,t,n)=>{const r=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return n.getColorPickerColor(r)},rB=(e,t,n)=>{const r={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const n=e.limits&&e.limits.concat().sort((e,t)=>e.value-t.value);return{lowerLimit:n&&t>0?n[t-1]:{value:0,gradient:!1},upperLimit:n&&n[t]?n[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,n,r,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=r===i.value?1:(r-a.value)/(i.value-a.value);return a.gradient&&i.gradient?r-a.value<i.value-r?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[n].color,t:r}})(a,r,t,n,e);return se(e.localPaletteColors[t].color??"").blend(se(s.color??""),s.t)},oB=(e,t,n)=>{const r=((e,t)=>{const{limits:n}=e;return n&&(e.limits=n.sort((e,t)=>e.value-t.value),e.limits=n.map(e=>({...e,value:tB(t,e.value)}))),e})({...e},t),o=r.paletteColors||r.localPaletteColors;return o&&(r.localPaletteColors=o.concat().map((e,t)=>({color:nB(r,t,n)}))),r},iB=(e,t,n,r)=>{const o=oB(e,n,r),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let n="",r=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=r&&t<i){n=rB(e,a,t);break}r=i}return n})(o,t);return a},aB=(e,t)=>{const n=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),r=n.some(e=>!ZH(e));return 0===n.length||r?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===n.length?((e,t)=>{const n=e[0]-t;if(0===n||!ZH(n)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return n>0?{min:t-.5*Math.abs(t),max:e[0]+2*n}:{min:e[0]+2*n,max:t+.5*Math.abs(t)}})(n,t):((e,t)=>{let n=e[e.length-1]-e[0];return n=n>0?n:1,{min:Math.min(t,e[0])-n/2,max:Math.max(t,e[e.length-1])+n/2}})(n,t)},sB=(e,t)=>{const{limits:n}=e.segments;if(!n)return;const r=((e,t)=>{const{min:n,max:r}=aB(e,t),o=Math.abs(t);return{min:n??t-o,max:r??t+o}})(n,t),o=((e,t,n)=>{const{limits:r,paletteColors:o,localPaletteColors:i}=e.segments;if(!r||!ZH(t))return 0;let a=n&&ZH(n)?Math.min(n,t):0;const s=r.sort((e,t)=>e.value-t.value),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,r.min);return{limitRange:r,limitPaletteColorIndex:o}},lB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),uB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),cB=F((e,t)=>Yt.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[Yt.jsx("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),Yt.jsx("use",{fillRule:"evenodd"})]})),dB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})})),pB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})})),fB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})})),hB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M2 7.5h12v1H2z"})})),mB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})})),gB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),bB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})})),vB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})})),yB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),xB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})})),SB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})})),wB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})})),CB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})})),EB={m:yB,"ï":bB,R:CB,S:xB,T:SB,U:wB,P:gB,Q:fB,"è":F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})})),"¢":dB,"©":cB,"23F4":pB,2013:vB,"&":mB,add:lB,"minus-2":hB,dot:uB},RB=(e,t,n,r)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=sB(o,t),a=((e,t,n,r)=>{const{segments:o}=e;if(!o||!n)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,n.limitPaletteColorIndex))return nB(o,n.limitPaletteColorIndex,r);const a=tB(n.limitRange,t);return iB(o,a,n.limitRange,r)})(o,t,i,r),{paletteColors:s}=o.segments,l=i?.limitPaletteColorIndex||0,u=s[l]?.icon??"dot",{indicator:c}=e;let d=c?.position||"right";return"rtl"===n&&(d="right"===d?"left":"right"),{color:a,iconKey:u,position:d}},AB=(hm().palette.primary.light,"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)"),IB=4/3,kB="12px",PB="600",MB="Source Sans Pro, sans-serif",DB={height:"auto",fontSize:kB,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},TB={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:PB},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},OB=(e,t)=>"rtl"===e&&"center"!==t.resolvedImagePosition?.horizontal?t.resolvedImagePosition?.horizontal&&(e=>"flex-start"===e?"flex-end":"flex-start")(t.resolvedImagePosition?.horizontal):t.resolvedImagePosition?.horizontal,qB=(e,t)=>e.representation.type===u$.Image&&"fitHeight"===e.representation.imageSize?OB(t,e.representation):e.align,LB=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",NB=(e,t,n)=>{if(!t&&"rtl"===n){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},jB=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,_B=(e,t,n)=>"rtl"===e||t&&!n?"0px":"1px",zB=(e,t,n)=>"rtl"===e?t&&!n?"0px":"1px":"0px",FB=24,$B=Mu("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),HB=Mu(Sd,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})(({textAlign:e,theme:t,direction:n,isPagination:r})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===n?LB(e,r):void 0})),BB=Mu(Sd,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})(({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:n})=>{const r=e?"24px":"";let o;switch(n){case"left":o={gridTemplateColumns:t?`20px 2fr ${r}`:`1fr ${r}`};break;case"center":{const n=e||t;o={gridTemplateColumns:n?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:n?2:1},[`& .${Um}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${r} 2fr 20px`:`${r} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${Um}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),VB=Mu(Sd,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),WB=Mu(Sd,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),UB=Mu(Dc,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})(({hoverBackground:e,activeBackground:t,isActive:n,order:r})=>({padding:"4px !important",width:"fit-content",height:"auto",background:n?t:void 0,"&:hover":{background:e},color:"inherit",order:r})),GB=$g(),KB=$g(0),YB=$g(0),XB=e=>parseInt(e??DB.fontSize,10)*IB,JB=4/3,ZB=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function QB(e,t,n={index:-1}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const eV=(e,t)=>e?{borderBottomColor:bm.DARK_MODE_BORDER,borderRightColor:bm.DARK_MODE_BORDER,borderLeftColor:bm.DARK_MODE_BORDER,borderTopColor:bm.DARK_MODE_BORDER}:{borderLeftColor:bm.BORDER_MEDIUM,borderRightColor:bm.BORDER_MEDIUM,borderTopColor:bm.BORDER_HEAVY,borderBottomColor:t?bm.BORDER_HEAVY:bm.BORDER_LIGHT},tV=(e,t,n)=>{if(e&&t&&n){const r=(e=>parseInt(e,10)*JB+8+1)(e);return r*(t+2)<n.clientHeight-40?"1px":"0px"}return"0px"},nV=e=>e.components?.find(e=>"theme"===e.key),rV=(e,t,n,r=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:ZB(n?.fontColor)?QB(bm.TEXT,t,n?.fontColor):i||bm.TEXT,fontSize:n?.fontSize&&`${n.fontSize}px`||a,padding:n&&"padding"in n?n.padding:void 0,...eV(t.background.isDark,r)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function oV(e,t,n){const r=nV(e)?.header,o=rV("header",t,r,n);return o.background=(e=>{if(void 0===e)return;const t=se(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=xm(o.background??bm.WHITE,eg),o.activeBackground=xm(o.background??bm.WHITE,tg),o}const iV=(e,t)=>{const n=e.toLowerCase().match(/<[^>]+>/g)??[];return n.forEach(e=>(e=>e in TB)(e)&&Object.assign(t,TB[e])),t};function aV(e,t,n){const r={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach((e,t)=>{const i=e.qText,a=i&&wm(i);a&&(r[n[t]]=a),o=i?iV(i,o):o}),r.cellBackgroundColor&&!r.cellForegroundColor&&(r.cellForegroundColor=vm(r.cellBackgroundColor)),{...e,...r,color:r.cellForegroundColor||e.color,background:r.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const sV=25e4,lV=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,uV=5e6,cV=5e5;const dV={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const n=e.indexOf("=");let r,o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,n){return{key:pV(e),value:pV(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:n}}(r,o,i))}),t}};function pV(e){try{return decodeURIComponent(e)}catch{return e}}function fV(e){if(!(this instanceof fV))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>dV.fromSearchString(t.search)}})}function hV(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/shouldNotDecodePlus/gi,"%2B")}fV.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},fV.encodeSearchParams=function(e){let t,n="";for(let r=0;r<e.length;r++)t=e[r],n+=0===r?"?":"&",n+=hV(t.key),t.value?n+=`=${hV(t.value)}`:n+=t.useEqualSign?"=":"";return n};var mV=class{_hasNext(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}constructor(e){this._input=e,this._pushback=null,this._temp=null,this._index=0,this._mark=0}pushback(e){this._pushback=e}index(){return this._index}hasNext(){return null!=this._pushback||this._hasNext()}next(){if(null!=this._pushback){const e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}nextHex(){const e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}peek(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}mark(){this._temp=this._pushback,this._mark=this._index}reset(){this._pushback=this._temp,this._index=this._mark}remainder(){let e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}},gV=class{decode(e){let t="";const n=new mV(e);let r;for(;n.hasNext();)r=this.decodeCharacter(n),t+=null!=r?r:n.next();return t}decodeCharacter(e){return e.next()}};const bV=e=>e>=0&&e<=1114111,vV=e=>e.match(/[\s]/);var yV=class extends gV{decodeCharacter(e){e.mark();const t=e.next();let n,r,o;if(null==t||"\\"!==t)return e.reset(),null;const i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(n=i,r=0;r<5&&(o=e.next(),null!=o&&!vV(o));r++){if("NaN"===parseInt(o,16)){e.pushback(o);break}n+=o}const a=parseInt(n,16);return bV(a)?String.fromCharCode(a):"�"}},xV=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}},SV=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,n,r){let o,i;if(t.length===n)return i=this._value,this.setValue(r),i;const a=t.charAt(n);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,n+1,r)}get(e,t){if(e.length<=t)return this._value;const n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return xV.newInstanceIfNeeded(e,this._value);const n=this.getNextNode(e.charAt(t));if(!n)return xV.newInstanceIfNeeded(e,t,this._value);const r=n.getLongestMatch(e,t+1);return r||xV.newInstanceIfNeeded(e,t,this._value)}},wV=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new SV);const n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}};const CV=(()=>{const e=[],t=[],n=new wV;let r,o,i;for(r in e["""]="34",e["&"]="38",e["<"]="60",e[">"]="62",e[" "]="160",e["¡"]="161",e["¢"]="162",e["£"]="163",e["¤"]="164",e["¥"]="165",e["¦"]="166",e["§"]="167",e["¨"]="168",e["©"]="169",e["ª"]="170",e["«"]="171",e["¬"]="172",e["­"]="173",e["®"]="174",e["¯"]="175",e["°"]="176",e["±"]="177",e["²"]="178",e["³"]="179",e["´"]="180",e["µ"]="181",e["¶"]="182",e["·"]="183",e["¸"]="184",e["¹"]="185",e["º"]="186",e["»"]="187",e["¼"]="188",e["½"]="189",e["¾"]="190",e["¿"]="191",e["À"]="192",e["Á"]="193",e["Â"]="194",e["Ã"]="195",e["Ä"]="196",e["Å"]="197",e["Æ"]="198",e["Ç"]="199",e["È"]="200",e["É"]="201",e["Ê"]="202",e["Ë"]="203",e["Ì"]="204",e["Í"]="205",e["Î"]="206",e["Ï"]="207",e["Ð"]="208",e["Ñ"]="209",e["Ò"]="210",e["Ó"]="211",e["Ô"]="212",e["Õ"]="213",e["Ö"]="214",e["×"]="215",e["Ø"]="216",e["Ù"]="217",e["Ú"]="218",e["Û"]="219",e["Ü"]="220",e["Ý"]="221",e["Þ"]="222",e["ß"]="223",e["à"]="224",e["á"]="225",e["â"]="226",e["ã"]="227",e["ä"]="228",e["å"]="229",e["æ"]="230",e["ç"]="231",e["è"]="232",e["é"]="233",e["ê"]="234",e["ë"]="235",e["ì"]="236",e["í"]="237",e["î"]="238",e["ï"]="239",e["ð"]="240",e["ñ"]="241",e["ò"]="242",e["ó"]="243",e["ô"]="244",e["õ"]="245",e["ö"]="246",e["÷"]="247",e["ø"]="248",e["ù"]="249",e["ú"]="250",e["û"]="251",e["ü"]="252",e["ý"]="253",e["þ"]="254",e["ÿ"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["¬in"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[r]&&e.hasOwnProperty(r)&&(t[e[r]]=r);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),n.put(i,String.fromCharCode(o)));return n})();var EV=class extends gV{decodeCharacter(e){let t;e.mark();const n=e.next();if(null==n||"&"!==n)return e.reset(),null;const r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(t=this._getNumericEntity(e),null!=t)return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,n,r,o="";for(t=Math.min(e.remainder().length,CV.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();const i=CV.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),i.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,16);return!Number.isNaN(+r)&&bV(r)?String.fromCharCode(r):null}_parseNumber(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,10);return!Number.isNaN(+r)&&bV(r)?String.fromCharCode(r):null}},RV=class extends gV{decodeCharacter(e){e.mark();const t=e.next();let n,r,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(n="",r=0;r<2;r++)o=e.nextHex(),null!=o&&(n+=o);return 2===n.length&&(i=parseInt(n,16),bV(i))?String.fromCharCode(i):(e.reset(),null)}};let AV;"undefined"!=typeof document&&(AV=document.createElement("div"));const IV=Array.prototype.indexOf,kV=[",",".","_"," "],PV=[",",".","-","_"," "],MV={width:["%"],height:["%"]},DV={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},TV={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":DV.image,"background-color":DV.color,"border-color":DV.color,"border-image":DV.image,color:DV.color,icon:DV.image,"list-style-image":DV.image,"outline-color":DV.color},OV={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function qV(e,t,n){let r;if(t){if(IV)return IV.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function LV(e){if(null==e)return"";let t="";const n=document.createTextNode(e);return AV.appendChild(n),t=AV.innerHTML,AV.removeChild(n),t}function NV(e,t,n){let r,o,i,a,s,l,u,c,d;for(e=_V(e).toLowerCase(),t=_V(t),i=0;i<OV.attr_name.length;i++)if(e.match(OV.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<OV.attr_val.length;i++)if(t.toLowerCase().match(OV.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(r=MV[e],r||(r=PV),o="",!n){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&qV(u,r)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return n||(o+='"'),o}function jV(e,t,n){let r,o,i,a,s,l,u,c,d,p;if(e=_V(e).toLowerCase(),t=_V(t),qV(e,OV.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(r=0;r<OV.css_val.length;r++)if(t.toLowerCase().indexOf(OV.css_val[r])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=TV[e],o||(o=DV.default),i="",!n){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&qV(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function _V(e,t){let n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;const s=[new EV,new RV,new yV];for(;!a;){r=n;for(let e=0;e<s.length;e++)i=s[e].decode(n),i!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}const zV=[];for(let e=0;e<255;e++)zV[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);const FV={html:e=>LV(e.unsafe),css(e){let t,n=[];const r=[],o={};let i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=jV(t,n[t],!0),i+=jV(t,n[t],!0),o[t]=r[t]);return e.map?o:i},attr(e){let t=[];const n=[],r={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(n[e]=NV(e,t[e],!0),o+=NV(e,t[e],!0),r[e]=n[e]);return e.map?r:o}};function $V(e,t){throw new Error(t)}var HV={canonicalize:_V,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,n;const r=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n=e[t],r===n)continue;void 0!==n&&(r[t]=n)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?FV.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&$V(this,"Invalid parameter type"),FV.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&$V(this,"Invalid parameter type"),FV.attr(e)):void $V(this,"Invalid parameter type")},encodeForAttr:NV,encodeForAttr2:function(e){return NV("nonsens",e,!0)},encodeForCSS:jV,encodeForHref:function(e){_V(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new fV(e),n=fV.encodeAuthorityAndPath(t.authorityAndPath),r=t.searchParams;e=n+fV.encodeSearchParams(r)+t.hash;const o=decodeURI(e).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let n,r,o,i,a,s;for(t||(t=kV),s="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),qV(o,t)>=0||null==zV[i]?s+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),s+=`\\x${a}${r.toUpperCase()}`):(a="0000".substr(r.length),s+=`\\u${a}${r.toUpperCase()}`));return s},encodeForHTML:LV,encodeForURL:function(e,t){let n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=_V(t).toLowerCase():$V(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':"",n},isSafeDataURL:(e,t)=>{const{maxByteSizeSvg:n=cV,maxByteSizeImage:r=uV}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,n,r]=lV.exec(e.trim())??[];return{encoding:n,data:r,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,n)=>{const r={type:e};if(t?.includes(";base64"))try{return new Blob([atob(n)],r).size}catch{return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0})(o,i,a);return"image/svg+xml"===o?s<=n:s<=r},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const n=function(e){let t=e,n="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("/.."===t){t="/";const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),r=e?e[0]:"";t=t.slice(r.length),n+=r}return n}(t);return""!==n&&"/"!==n&&n}};const BV=(e,t)=>t.qAttrExps?.qValues?.[e],VV=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},WV=({text:e,url:t,imageSize:n,imagePosition:r,labelStructure:o,imageBox:i,direction:a})=>!r||t&&(t.toLowerCase().includes("javascript:")||!HV.isSafeDataURL(t))?{type:u$.Text,url:void 0,text:e,labelStructure:o}:{type:u$.Image,url:t||"",text:e,imageSize:n,resolvedImagePosition:VV(r,a),labelStructure:o,imageBox:i},UV=(e,t,n,r)=>{if(!e.qMiniChart||!t?.miniChart||!n)return{type:u$.Text,text:r};const{minY:o,maxY:i}=((e,t,n)=>{const r="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=r?n.qYMin:e.qMiniChart.qMin,a=r?n.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,n),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:u$.MiniChart,text:r,miniChart:a}},GV=(e,t,n)=>{const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=r?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return n?.urlPosition===c$.Attribute?void 0:n?.urlLabel},KV=({labelStructure:e,text:t,url:n})=>{try{if(!n)throw Error("Invalid url");return{type:u$.Link,url:HV.encodeForHref(n),text:t,labelStructure:e}}catch{return{type:u$.Text,url:void 0,text:t,labelStructure:e}}},YV=({cell:e,representationProperties:t,attrExprInfoIndex:n,env:r,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=d$(t),d=s(e);return c===u$.Image&&u[u$.Image]&&!r.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,n,r,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=BV(n.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),WV({text:r,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){const t=i?i.originalValue:r;if(-1===n.imageLabel)return WV({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=BV(n.imageLabel??-1,e)?.qText??r;return WV({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:u$.Text,url:void 0,labelStructure:i,text:r}})(e,t,n,d,l,a):c===u$.Link?((e,t,n,r,o)=>{const{urlPosition:i}=t??{};if(i===c$.Attribute){const i=GV(n.url??-1,e,t);return KV({labelStructure:r,text:o||i||"",url:i})}if(i===c$.Dimension){const i=GV(n.urlLabel??-1,e,t)||o;return r&&(r.maskedValue=i),KV({text:i,labelStructure:r,url:r?.originalValue??o})}return{type:u$.Text,url:void 0,text:o,labelStructure:r}})(e,t,n,a,d):c===u$.Indicator&&u[u$.Indicator]&&!r.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,n)=>{const{indicator:r}=e??{};return{type:u$.Indicator,url:void 0,text:n,indicator:{applySegmentColors:r?.applySegmentColors,position:r?.position,showTextValues:r?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===u$.MiniChart&&u[u$.MiniChart]&&!r.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?UV(e,t,i,d):{type:u$.Text,url:void 0,text:d,labelStructure:a}},XV=$g(e=>{const t=e(Hb),n=e(Rb);return e(Ab),{qTop:0,qHeight:0,rowPartialHeight:n?.content?.rowPartialHeight??0,visibleTop:n?.content?.visibleTop??t?.visibleTop,visibleHeight:n?.content?.visibleHeight??t?.visibleHeight,scrollLeft:n?.content?.scrollLeft??t?.scrollLeft??0,scrollTopRatio:n?.content?.scrollTopRatio??t?.scrollTopRatio,rowsPerPage:n?.content?.rowsPerPage??t?.rowsPerPage,page:n?.content?.page??t?.page,estimatedRowHeight:n?.content?.estimatedRowHeight??0}}),JV=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},n)=>(e[t]=n,e),{}),ZV=({cId:e})=>e??QF(),QV=1e4;function eW(e,t){return[...t].reverse().find(t=>t*e<=QV)||Math.floor(QV/e)}function tW(e,t){if(t?.skipTotals)return{atTop:!1,atBottom:!1};const n=e.qHyperCube.qDimensionInfo.length>0,r=e.qHyperCube.qMeasureInfo.length>0,o=e.qHyperCube.qGrandTotalRow.length>0,i=e.totals?.show,a=e.totals?.position;if(o&&(n&&r||!i&&!n)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function nW(e,t,n,r){return t?0===n?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(r)?.qText??""}function rW(e,t){const n=e.qHyperCube.qGrandTotalRow.at(t);return ZH(n?.qNum)}function oW(e,t,n,r,o){return e&&!e.auto?r&&"rtl"===o&&"center"!==e.align?{headTextAlign:"right"===e.align?"left":"right",totalsTextAlign:"right"===e.align?"left":"right",bodyTextAlign:"right"===e.align?"left":"right"}:{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:r||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:n?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:n?"right":"left",bodyTextAlign:"auto"}}const iW=(e,t,n,r)=>"auto"!==t?t:r||"rtl"!==n?e?"right":"left":e?"left":"right",aW=(e,t)=>{if(!e)return;const{background:n,foreground:r}=e,o=se(n??""),i=se(r??""),a=t?"getRGB":"getRGBA",s=o.isInvalid()?void 0:o[a](),l=s?xm(s,eg):void 0,u=s?xm(s,tg):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:vm(s),headerMenuHoverBackground:l,headerMenuActiveBackground:u}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:u}};const sW=(e,t,n,r=()=>!1)=>{const{qHyperCube:{qColumnOrder:o,qDimensionInfo:i,qMeasureInfo:a}}=e,s=i.length+a.length,l=((e,t,n)=>{const r=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce((e,o)=>{const i=o<r,{qError:a}=i?t[o]:n[o-r];return 7005===a?.qErrorCode?i?e.hiddenDim.push(o):e.hiddenMea.push(o):e.visible.push(o),e},{visible:[],hiddenDim:[],hiddenMea:[]});return o.map((e,t)=>{const n=e<r,o=(n?i:a).filter(t=>t<e).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:n?s:void 0,visibleMeasureInfoIdx:n?void 0:s-r}})})(o.length===s?o:Array.from(Array(s).keys()),i,a);return l.map(o=>function(e,t,n,r,o=()=>!1){const{qDimensionInfo:i,qMeasureInfo:a,qEffectiveInterColumnSortOrder:s}=e.qHyperCube,{colIdx:l,pageColIdx:u,visibleDimInfoIdx:c,visibleMeasureInfoIdx:d}=t,p=i.length,f=l<p,h=f?i[l]:a[l-p],m=f&&i[l].qGrouping===ng.Cyclic,g=l===s[0];let b,v,y="",x=!1,S=-1,w=0,C=[];const{representation:E,conditionalColoring:R}=h;if(f&&void 0!==c){const e=h;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=c,({qDimensionType:b}=e)}else({qMiniChart:v}=h);const{qFallbackTitle:A,textAlign:I,qAttrExprInfo:k,qSortIndicator:P,qReverseSort:M,qApprMaxGlyphCount:D,columnWidth:T,qLibraryId:O,headerColor:q}=h;return{isDim:f,isCyclic:m,isLocked:x,fieldId:y,colIdx:l,qLibraryId:O,pageColIdx:u,qApprMaxGlyphCount:D,qReverseSort:M,columnWidth:T??{type:Qm.Auto},selectionColIdx:S,isActivelySorted:g,id:ZV(h),label:A??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:k.map(e=>e.id),qAttrExprInfoIndex:JV(h),sortDirection:P&&"N"!==P?P:"A",totalInfo:nW(e,f,u,d??-1),...!f&&{isTotalNumeric:rW(e,d??-1)},...oW(I,b,f,n,r),representation:E,conditionalColoring:f?void 0:R,qMiniChart:v,headerColor:o("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?aW(q,n):void 0}}(e,o,t,n,r))},lW=(e,t,n,r)=>e?(r?n.nullValueRepresentation?.dimensionText:void 0)??t.qText??"-":n.nullValueRepresentation?.text??t.qText??"-",uW=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,cW={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},dW=$g(e=>{const t=e(pW),n=e(yb),r=e(XV),o=n.qHyperCube.qSize.qcy,i=r.visibleHeight??t.rowsPerPage,a=r.visibleTop??t.page*i,s=r.visibleHeight??Math.min(i,o-a),l=n.qHyperCube.qSize.qcx;return t.page>0&&a>=o?{...t,page:0}:s*l>QV?{...t,rowsPerPage:eW(l,t.rowsPerPageOptions),page:0}:t}),pW=$g(cW),fW=$g(e=>{const t=e(yb),n=e(Hb),r=e(XV);return _b(t,n)?{page:r.page||cW.page,rowsPerPage:r.rowsPerPage||cW.rowsPerPage,rowsPerPageOptions:cW.rowsPerPageOptions}:e(dW)},(e,t,n)=>{t(pW,e=>({...e,...n}))}),hW=!0,mW=e=>-1===e.qElemNumber||!!e.qIsTotalCell,gW=$g(async e=>{const t=e(yb),n=e(Hb),r=e(Fb),{page:o,rowsPerPage:i}=e(fW),a=e(XV),s=e(Gb),l=e(mb),u=e(Sb),c=e(gb),d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/i),h=a.visibleTop??o*i,m=a.visibleHeight??Math.min(i,p-h),g=p>10,b=tW(t,n),v=sW(t,hW,r,c),y=l.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),x=await(async(e,t,n)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const r=t.qHyperCube.qDataPages.at(0),o=r?.qArea;return r&&o?.qLeft===n.qLeft&&o.qTop===n.qTop&&o.qWidth===n.qWidth&&o.qHeight>=n.qHeight?[{...r,qMatrix:r.qMatrix.slice(0,n.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[n]):[]})(s,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});u||(a.qTop=h,a.qHeight=m,a.rowsPerPage=i,a.page=o);const S=x.at(0)?.qMatrix.map((e,n)=>{const o=[],i=e.some(mW);return v.forEach((a,s)=>{const u=e[s],c=!a.isDim&&u.qIsNull,d=a.isDim&&uW(u,a.isDim),p=c||d?lW(a.isDim,u,t,y):u.qText,f=c?eB(p):QH(u),g=QH(u)&&!eB(u.qText??"");o[s]={id:QF(),...u,align:iW(f,a.bodyTextAlign,r,hW),rowIdx:n+h,colIdx:a.colIdx,pageRowIdx:n,pageColIdx:s,selectionColIdx:a.selectionColIdx,isSelectable:a.isDim&&!a.isLocked&&!i&&!d,isTotalRow:i,isLastRow:n===m-1,isNumeric:f,isDual:g,isNull:(!c||!f)&&uW(u,a.isDim),representation:YV({cell:u,representationProperties:a.representation,attrExprInfoIndex:a.qAttrExprInfoIndex,env:l,conditionalColoring:a.conditionalColoring,miniChartOnMeasure:a.qMiniChart,getText:()=>p,direction:r,enabledFeatures:{[u$.Image]:!0,[u$.Indicator]:!0,[u$.MiniChart]:!0}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}),bW=ZR(gW,e=>e),vW=$g(e=>{const t=e(yb),n=e(Hb),r=e(Tb),o=e(Fb),i=e(gb),a=sW(t,false,o,i),s=tW(t,n),l=t.qHyperCube.qSize.qcy,u=Math.min(sV,l),c=l>sV&&!!r.active;return{totalsPosition:s,columns:a,rows:[],totalRowCount:l,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/u),paginationNeeded:c}}),yW={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},xW=$g(),SW=$g(e=>{const t=e(Vb),n=e(xW);return n||(t?e(bW)??yW:e(vW))}),wW=$g(e=>e(SW).totalsPosition),CW=$g(e=>e(SW).columns),EW=$g(e=>e(CW).length),RW=$g(e=>e(SW).rows),AW=$g(e=>e(SW).totalRowCount),IW=$g(e=>e(SW).totalColumnCount),kW=$g(e=>e(SW).paginationNeeded),PW=$g(e=>{const t=e(Qb),n=e(nv),r=e(yb),o=e(wW),i=e(RW),a=o.atTop,s=function(e,t,n,r){const o=nV(e)?.content,i=rV("content",t,o);i.background=t.background.color;const a=tV(i.fontSize,n,r),s=o?.hoverColor,l=o?.hoverFontColor,u=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),c=t.getStyle("object","","straightTableV2.content.hover.color"),d=ZB(l)||!!c,p=ZB(s)||!!u,f=d||p;let h;h=ZB(s)?QB(bm.HOVER,t,s):u||(d?"":bm.HOVER);const m=f?QB(vm(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(r,n,i.length,t),l=oV(r,n,!a),u=function(e,t,n){const r=nV(e)?.content,o=rV("content",t,r),{borderBottomColor:i,borderTopColor:a,background:s}=oV(e,t,n);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(r,n,a);return{body:s,head:l,totals:u}}),MW=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?"transparent":n}},DW=(e,t,n)=>{const{objectColorFromCSS:r,sheetColorFromCSS:o}=e.background,i=MW(e,t?.background),a=e.getStyle("","",n);return{backgroundColor:i||r||a,backgroundFromStyling:i,sheetColorFromCSS:o}},TW=(e,t,n,r=bm.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=DW(e,t,n);return Im(i,o,a,r)??r},OW=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return kB}},qW=e=>e?.some(e=>"italic"===e)?"italic":"normal",LW=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?PB:"normal",NW=e=>!1===e?1:3,jW=e=>e?.some(e=>"underline"===e)?"underline":"none",_W=$g(e=>{const t=e(Hb),n=e(Vb),r=e(nv),o=e(yb),i=e(PW),a=e(gb),{header:s,dimensionValues:l,measureValues:u,totalValues:c,subTotalValues:d,nullValues:p,dimensionNullValues:f,grid:h,content:m}=nV(o)??{},g=a("VNA-670-SEPARATE_NULL_VALUE_STYLING"),b=n?bm.WHITE:bm.TRANSPARENT,v=TW(r,s,"object.straightTableV2.dimension.label.name.backgroundColor",b),y=t?.maxLineCount??m?.rowHeight??r.getStyle("object.straightTableV2","grid","lineClamp"),x=(g?f:void 0)??p;return{header:{fontFamily:s?.fontFamily??r.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??MB,fontSize:OW(s?.fontSize??r.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:qW(s?.fontStyle),fontWeight:LW(s?.fontStyle,PB),textDecoration:jW(s?.fontStyle),color:MW(r,s?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??bm.TEXT,background:v},headerMenuHoverBackground:xm(v,eg),headerMenuActiveBackground:xm(v,tg),dimension:{values:{fontFamily:l?.fontFamily??r.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??MB,fontSize:OW(l?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:qW(l?.fontStyle),fontWeight:LW(l?.fontStyle,"normal"),textDecoration:jW(l?.fontStyle),color:MW(r,l?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??bm.TEXT,background:DW(r,l,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??bm.TRANSPARENT}},measure:{values:{fontFamily:u?.fontFamily??r.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??MB,fontSize:OW(u?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:qW(u?.fontStyle),fontWeight:LW(u?.fontStyle,"normal"),textDecoration:jW(u?.fontStyle),color:MW(r,u?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??bm.TEXT,background:DW(r,u,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??bm.TRANSPARENT}},totalRow:{fontFamily:c?.fontFamily??r.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??MB,fontSize:OW(c?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:qW(c?.fontStyle),fontWeight:LW(c?.fontStyle,PB),textDecoration:jW(c?.fontStyle),color:MW(r,c?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??bm.TEXT,background:TW(r,c,"object.straightTableV2.total.label.value.backgroundColor",b)},subTotalRow:{fontFamily:d?.fontFamily??r.getStyle("object.straightTableV2.subTotal","label.value","fontFamily")??i.totals.fontFamily??MB,fontSize:OW(d?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.subTotal","label.value","fontSize")??i.totals.fontSize),fontStyle:qW(d?.fontStyle),fontWeight:LW(d?.fontStyle,PB),textDecoration:jW(d?.fontStyle),color:MW(r,d?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.subTotal","label.value","color")??i.totals.color??bm.TEXT,background:TW(r,d,"object.straightTableV2.subTotal.label.value.backgroundColor",b)},dimensionNull:{fontStyle:qW(x?.fontStyle),fontWeight:LW(x?.fontStyle,"normal"),textDecoration:jW(x?.fontStyle),color:MW(r,x?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??bm.TEXT,background:MW(r,x?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??bm.NULL_VALUE_BACKGROUND},measureNull:{fontStyle:qW(p?.fontStyle),fontWeight:LW(p?.fontStyle,"normal"),textDecoration:jW(p?.fontStyle),color:MW(r,p?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??bm.TEXT,background:MW(r,p?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??bm.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:y??NW(o.multiline?.wrapTextInCells),headerLineClamp:NW(o.multiline?.wrapTextInHeaders),border:MW(r,h?.border)??r.getStyle("object.straightTableV2","grid","borderColor")??(r.background.isDark?bm.DARK_MODE_BORDER:bm.BORDER_MEDIUM),divider:MW(r,h?.divider)??r.getStyle("object.straightTableV2.grid","","divider.borderColor")??bm.BORDER_HEAVY,hoverColors:{color:MW(r,m?.hoverFontColor)??r.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:MW(r,m?.hoverColor)??r.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!h?.zebraStripes?.show,odd:{color:MW(r,h?.zebraStripes?.color?.odd),background:MW(r,h?.zebraStripes?.background?.odd)},even:{color:MW(r,h?.zebraStripes?.color?.even),background:MW(r,h?.zebraStripes?.background?.even)},overrideDimNullValueBackground:void 0===MW(r,x?.background),overrideDimNullValueColor:void 0===MW(r,x?.fontColor),overrideMeasNullValueBackground:void 0===MW(r,p?.background),overrideMeasNullValueColor:void 0===MW(r,p?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:ym(r),contentStaticLineCount:y}}),zW=$g(e=>{const t=e(_W);return Math.max(XB(t.header.fontSize)+8,32)}),FW=$g(e=>{const t=e(_W),n=XB(t.totalRow.fontSize);return Math.max(n+9,24)}),$W=$g(e=>{const t=e(_W),n=e(wb),r=e(Cb);return Math.max(n>0?XB(t.dimension.values.fontSize):0,r>0?XB(t.measure.values.fontSize):0)}),HW=$g(e=>{const t=e(_W),n=e($W),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),BW=$g(e=>{const t=e(_W),n=XB(t.subTotalRow.fontSize),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),VW=(e,t,n)=>{if(!e.length)return[];const r=[],o=[];let i=t;if(e.forEach((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:u},label:c,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{r[a]=Math.min(Zm.PixelsMax,Math.max(Zm.PixelsMin,f)),i-=r[a]};switch(s){case Qm.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?Zm.PixelsDefault:+e)(l),h();break;case Qm.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?Zm.PercentageDefault:+e)(u)/100*t,h();break;case Qm.FitToContent:e.representation?.type===u$.Image?o.push(a):(f=n(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case Qm.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}}),o.length){const e=i/o.length;o.forEach(t=>{r[t]=Math.max(Zm.AutoMinTable,e)})}return r},WW=$g(e=>{const t=e(_W),n=e(SW).totalsPosition,r=e(Ib),{measureText:o}=e(VH({...t.header,fontWeight:PB})),{measureText:i}=e(VH({...t.totalRow,fontWeight:PB})),{estimateWidth:a}=e(VH(t.dimension.values)),{estimateWidth:s}=e(VH(t.measure.values)),l=n.atBottom||n.atTop;return(e,t,n,u,c,d,p)=>{let f;if(r){const t=4;let n=25;n+=t+24,u&&(n+=20+t),c&&(n+=20),f=o(e)+n}else{let t=9;t+=16,p&&(t+=FB),t+=FB,t+=FB,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(n))}}),UW=$g(null),GW=$g(e=>{const t=e(SW),n=e(Zb).width,r=e(YB),o=e(WW);return VW(t.columns,n-r,o)}),KW=$g(e=>e(UW)??e(GW),(e,t,n)=>{t(UW,n)}),YW=CA(e=>{const t=e(UH);!1===e(GB)&&t.emit("done-adjusting-column-width")}),XW=CA((e,t)=>{e(yb),t(UW,null)}),JW=$g(e=>e(KW).reduce((e,t)=>e+t,0)),ZW=({children:e})=>(Qg(XW),Qg(YW),e);function QW(e){const t=hm();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),cu({...t,direction:e})}const eU={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},tU={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},nU=Mu("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:n})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===n?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...eU},"&::-moz-range-track":{...eU},"&::-ms-track":{...eU},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...tU},"&::-moz-range-thumb":{...tU},"&::-ms-thumb":{...tU},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}})),rU=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:u,accessibilityRelatedArgs:c,direction:d="ltr"})=>{const p=Bm({translator:c.translator}),f=M({initWidth:e,columnWidth:e,initX:0}),h=n?0:1,m=r&&!u,g=()=>m?f.current.columnWidth-h:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};$m(()=>{m&&v()},[e]);const y=e=>{const t=Math.max(e,Zm.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:Qm.Pixels,pixels:f.current.columnWidth};a(e)}l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{Em(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),x()},C=e=>{const t="rtl"===d?f.current.initWidth+-f.current.initX-e.touches[0].clientX:f.current.initWidth+e.touches[0].clientX-f.current.initX;y(t)},E=e=>{Em(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!r&&s?e=>{if(e.key===Xm.Left||e.key===Xm.Right){Em(e);const t=5,n=e.key===Xm.Left?t:-t,r="rtl"===d?n:-n;l?.(!0),y(f.current.columnWidth+r)}else e.key===Xm.Space||e.key===Xm.Enter?(Em(e),s(e),l?.(!1),x()):e.key===Xm.Esc&&(Em(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return Yt.jsx(nU,{style:b,hoverColor:o,isLastColumn:n,className:Jm,"data-testid":Jm,onMouseDown:e=>{Em(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:Qm.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Em(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":Zm.PixelsMin,"aria-valuemax":Zm.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},oU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),iU=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const n=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",n,t)}catch(e){console.error(e)}}}return null},aU=Mu(Sd,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:n})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:n?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:n?"100%":void 0,alignItems:"center",justifyContent:"center"})),sU=Mu(oU,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),lU=Mu(jf)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),uU=Mu(mp)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),cU=Mu(Hf)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),dU=Mu(Hf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})(({theme:e,isSubMenu:t,isActive:n})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:n?"rgba(0, 0, 0, 0.05)":"transparent"})),pU=Mu("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:n||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),fU=Mu("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),hU=Mu(jc)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),mU=Mu(cf,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({width:16,minWidth:"unset !important",marginRight:n||"rtl"!==t?e.spacing(1.5):0,marginLeft:n||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),gU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),bU=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?bU(t):t:e.parentElement?.children?.[0]},vU=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?vU(t):t},yU=e=>{const{key:t,currentTarget:n}=e,r=document.activeElement??n;if(t===Xm.Down||t===Xm.Up){const n=e=>t===Xm.Down?bU(e):vU(e);e.preventDefault(),e.stopPropagation();let o=n(r);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=n(o)}}},xU=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...n})=>({...n,...e?{onClick:async n=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(n)}}:{}}))})));let SU={};const wU=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:u,isPagination:c})=>{const[d,p]=P(!1),f=w.useRef(null),h=L(e=>{e.stopPropagation(),p(!1)},[p]);return Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs(dU,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),SU={}),a?.length&&(p(!0),SU[r]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:yU,children:[l?Yt.jsx(pU,{direction:u,isPagination:c}):null,Yt.jsxs(fU,{children:[Yt.jsx(mU,{direction:u,isPagination:c,children:Yt.jsx(o,{})}),Yt.jsx(hU,{variant:"body2",children:r})]}),a?.length?Yt.jsx(gU,{}):null]},t),a?.length?Yt.jsx(AU,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:xU(a,SU),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},CU=({menuGroup:e,isSubMenu:t,direction:n,isPagination:r})=>e.map(e=>[[e.groupHeading&&Yt.jsx(cU,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>Yt.jsx(wU,{...e,isSubMenu:t,direction:n,isPagination:r},e.id))].filter(Boolean)]),EU=({itemGroups:e,isSubMenu:t,direction:n,isPagination:r})=>e.map((o,i)=>[CU({menuGroup:o,isSubMenu:t,direction:n,isPagination:r}),i<e.length-1?Yt.jsx(uU,{"data-testid":"group-divider",variant:"middle"}):void 0]),RU={appear:0,enter:0,exit:0},AU=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>r.length?Yt.jsx(lU,{className:Gm,open:t,anchorEl:e,onClose:n,transitionDuration:RU,MenuListProps:{id:Km},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:EU({itemGroups:r,isSubMenu:a,direction:s,isPagination:l})}):null,IU=({qLibraryId:e,fieldId:t,searchRelatedArgs:n,selectionRelatedArgs:r,direction:o,onPopoverClose:i})=>L(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(n?.embed){const{embed:e,listboxRef:t}=n;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:n.sortCriteria,stateName:r?.qStateName,direction:o,onPopoverClose:i})}},[e,t,n,r?.qStateName,o,i]),kU=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),PU=(e,t)=>e.some(e=>t[e]>0),MU={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},DU=({open:e,qStateName:t="$",headerData:n,app:r})=>{const[o,i]=P(null),[a,s]=P(MU);return $m(()=>{e||(s(MU),i(null))},[e]),O(()=>{if(!r?.createSessionObject||!n.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&r.destroySessionObject(o)};return(async()=>{try{const e=kU(t,n),u=await r.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};o=c.qInfo?.qId,a?l():(i(u),d&&s((e=>({canSelectAll:PU(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:PU(["qSelected"],e),canSelectPossible:PU(["qOption"],e),canSelectAlternative:PU(["qAlternative"],e),canSelectExcluded:PU(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,r,n,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},TU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})})),OU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})})),qU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})})),LU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})})),NU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})})),jU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})})),_U=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})})),zU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})})),FU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})})),$U=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),HU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),BU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),VU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})}));let WU=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const UU="/qListObjectDef",GU=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(n[WU.Sorting]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),r(!1)},icon:TU,enabled:a,isActive:!!n&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),r(!1)},icon:LU,enabled:s,isActive:!!n&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:_U,subMenus:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:e=>{e.stopPropagation(),r(!1),d(n)},enabled:!0,icon:kF,isActive:e.groupDimensionPos===n}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];n[WU.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:zU,enabled:!0}]}]),!e.isLocked&&n[WU.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:VU,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAll(UU))},icon:FU,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectPossible(UU))},icon:BU,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAlternative(UU))},icon:$U,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectExcluded(UU))},icon:HU,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.clearSelections(UU))},icon:OU,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.expandCallback()},icon:jU,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.collapseCallback()},icon:NU,enabled:!0}]}]),o.length>0&&f.push(...o)}return n[WU.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),c?.(u)},icon:qU,enabled:!0}]}]),f},KU=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:u,selectionRelatedArgs:c,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:b=Vm})=>{const v=M(null),y=Bm({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=r,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=DU({open:e,headerData:r,app:C,qStateName:c?.qStateName}),A=iU({model:f,headerData:r}),I=IU({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),k=L(e=>{e.stopPropagation(),t(!1)},[t]),P=L(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?Yt.jsxs(aU,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:Um,onClick:!1===g?P:void 0,ref:v,isAccessibleHeader:g,children:[s?Yt.jsx(sU,{height:b,className:Wm,"data-testid":Wm,isInteractionsActive:i.active??!1,children:Yt.jsx(oU,{})}):null,Yt.jsx(AU,{open:e,anchorEl:!1===g?v.current:n.current,onClose:k,menuGroups:GU({headerData:r,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:I,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:n,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},YU=e=>e.isDark?{background:e.color,borderColor:bm.DARK_MODE_BORDER,color:bm.DARK_MODE_TEXT,disabledColor:bm.DARK_MODE_DISABLED,iconColor:bm.DARK_MODE_TEXT}:{background:e.color,borderColor:bm.BORDER_MEDIUM,color:bm.TEXT,disabledColor:bm.DISABLED},XU=Mu(Sd,{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}`})),JU=Mu(wh,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),ZU=Mu(Dd,{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)})),QU=Mu(jc)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),eG=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=k(()=>YU(r.background),[r]);if(!n.active)return null;const a=o?Yt.jsx(XU,{footerStyle:i,children:e}):null;return t?V.createPortal(e,t):a},tG=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),nG=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),rG=D({}),oG=()=>N(rG),iG=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(c)?0:-1,v=k(()=>YU(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=Bm({translator:d}),S=k(()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:v,tabIndex:b,width:y,visibilityThreshold:g}),[t,n,r,o,i,a,s,l,u,c,x,p,f,h,m,v,b,y,g]);return Yt.jsx(rG.Provider,{value:S,children:e})},aG=({disabledCondition:e,pageNumber:t,type:n,footerStyle:r,handleChangePage:o,translator:i,interactions:a,tabIndex:s})=>({footerStyle:r,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":i.get(`NebulaTableUtils.Pagination.${n}`),title:a.passive?i.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?void 0:()=>{o(t)}});let sG=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),lG=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});const uG=()=>{const{direction:e,pageInfo:t,width:n,interactions:r,visibilityThreshold:o,footerStyle:i,handleChangePage:a,translator:s,tabIndex:l}=oG(),u=0===t.page,c=aG({type:sG.FirstPage,disabledCondition:u,pageNumber:0,footerStyle:i,handleChangePage:a,translator:s,interactions:r,tabIndex:l});return n<=(o?.firstPage||lG.FirstPage)?null:Yt.jsx(ZU,{...c,disabled:!r.active,children:"rtl"===e?Yt.jsx(nG,{height:Vm}):Yt.jsx(tG,{height:Vm})})},cG=(e,t,n=!1)=>{n&&e.key===Xm.Tab&&!e.shiftKey&&(Em(e),Cm(e.target,t,!1))},dG=()=>{const{direction:e,pageInfo:t,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a,visibilityThreshold:s,footerStyle:l,handleChangePage:u,translator:c,tabIndex:d}=oG(),p=t.page>=r-1,f=aG({type:sG.LastPage,disabledCondition:p,pageNumber:r-1,footerStyle:l,handleChangePage:u,translator:c,interactions:a,tabIndex:d}),h=n.enabled?e=>{cG(e,n,o)}:void 0;return i<=(s?.lastPage||lG.LastPage)?null:Yt.jsx(ZU,{...f,onKeyDown:h,disabled:!a.active,children:"rtl"===e?Yt.jsx(tG,{height:Vm}):Yt.jsx(nG,{height:Vm})})},pG=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),fG=()=>{const{direction:e,pageInfo:t,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a,footerStyle:s,handleChangePage:l,translator:u,tabIndex:c}=oG(),d=t.page>=r-1,p=aG({type:sG.NextPage,disabledCondition:d,pageNumber:t.page+1,footerStyle:s,handleChangePage:l,translator:u,interactions:a,tabIndex:c}),f=!(i>lG.FirstPage&&i>lG.LastPage)&&n.enabled?e=>{cG(e,n,o)}:void 0;return Yt.jsx(ZU,{...p,onKeyDown:f,disabled:!a.active,children:"rtl"===e?Yt.jsx(pG,{height:Vm}):Yt.jsx(gU,{height:Vm})})},hG=()=>{const{direction:e,pageInfo:t,interactions:n,footerStyle:r,handleChangePage:o,translator:i,tabIndex:a}=oG(),s=0===t.page,l=aG({type:sG.PreviousPage,disabledCondition:s,pageNumber:t.page-1,footerStyle:r,handleChangePage:o,translator:i,interactions:n,tabIndex:a});return Yt.jsx(ZU,{...l,disabled:!n.active,children:"rtl"===e?Yt.jsx(gU,{height:Vm}):Yt.jsx(pG,{height:Vm})})},mG=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r,visibilityThreshold:o}=oG(),{page:i,rowsPerPage:a}=n;if(t<=(o?.displayedRowsLabel||lG.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,r)}`,r.toString()]);return Yt.jsx(QU,{variant:"caption",dir:"ltr",children:s})},gG=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=oG(),u=o.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs(QU,{variant:"caption",id:p,children:[c,":"]}),Yt.jsx(JU,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:f,disabled:!l.active,children:n})]})},bG=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:n,width:r,handleChangeRowsPerPage:o,visibilityThreshold:i}=oG();if(!(!!e.rowsPerPageOptions?.length&&!t&&r>(i?.rowsPerPage||lG.RowsPerPage)&&n<=100)||void 0===e.rowsPerPageOptions)return null;const a=Yt.jsx(Yt.Fragment,{children:e.rowsPerPageOptions.map(e=>Yt.jsx("option",{value:e,children:e},e))});return Yt.jsx(gG,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},vG=1e3,yG="…",xG=({totalPages:e,page:t})=>{const n=Math.min(e,vG),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-vG):0,a=Array.from(Array(n).keys()).map(e=>{const t=e+i;return Yt.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(Yt.jsx("option",{value:yG,disabled:!0,children:yG},"startMoreOptions")),o<e-1&&a.push(Yt.jsx("option",{value:yG,disabled:!0,children:yG},"endMoreOptions")),Yt.jsx(Yt.Fragment,{children:a})},SG=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r,visibilityThreshold:o}=oG(),{page:i}=e;if(t<=(o?.selectPage||lG.SelectPage))return null;const a=Yt.jsx(xG,{totalPages:n,page:i});return Yt.jsx(gG,{name:"SelectPage",value:i,options:a,handleChange:e=>{r(+e.target.value)}})};var wG=z(e=>Yt.jsxs(iG,{...e,children:[Yt.jsx(bG,{}),Yt.jsx(SG,{}),Yt.jsx(mG,{}),Yt.jsx(uG,{}),Yt.jsx(hG,{}),Yt.jsx(fG,{}),Yt.jsx(dG,{})]}));const CG=e=>Yt.jsx(eG,{...e,children:Yt.jsx(wG,{...e})}),EG=(e,t,n)=>{const r=n.size,o=r>=t.size;if(r){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===r?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",r.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},RG=(e,t,n)=>{n&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},AG=e=>e.ctrlKey||e.metaKey,IG=e=>e.shiftKey&&AG(e),kG=e=>[Xm.Left,Xm.Right,Xm.Up,Xm.Down].includes(e),PG=e=>e.shiftKey&&kG(e.key),MG=e=>(e=>kG(e)||[Xm.Home,Xm.End,Xm.PageUp,Xm.PageDown].includes(e))(e.key)&&!IG(e),DG=(e,t)=>{const{api:n,rows:r,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)n?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(r)}return l=((e,t,n)=>{const{qElemNumber:r,rowIdx:o}=t;return n.ctrlKey||n.metaKey?(new Map).set(r,o):(e.has(r)?e.delete(r):e.set(r,o),new Map(e))})(l,i,s),EG(a,r,l),l.size?(n?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(n?.cancel(),{...e,rows:l,colIdx:-1})},TG=(e,t)=>{const{api:n,rows:r,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:u}=t;if(!(a||"key"in u&&PG(u)))return e;-1===o&&n?.begin(["/qHyperCubeDef"]);const c=((e,t,n,r,o)=>{if(!n.isSelectable)return t;const i=new Map(t);if("key"in r&&PG(r)){i.set(n.qElemNumber,n.rowIdx);const t=r.key===Xm.Down?1:-1,o=e[n.pageRowIdx+t][n.pageColIdx];return o.isSelectable&&i.set(o.qElemNumber,n.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,n.pageRowIdx),s=Math.max(o.pageRowIdx,n.pageRowIdx);for(let t=a;t<=s;t++){const n=e[t][o.pageColIdx];n.isSelectable&&i.set(n.qElemNumber,n.rowIdx)}return i})(i,r,s,u,a);return EG(l,r,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},OG=e=>{const{api:t,rows:n,colIdx:r,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(n.values()),[r]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},qG=(e,t)=>{switch(t.type){case KH.Select:return DG(e,t.payload);case KH.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:n})=>!n||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",n),{...e,firstCell:t,mouseupOutsideCallback:n}))(e,t.payload);case KH.SelectMouseUp:return((e,t)=>OG(e.isSelectMultiValues||e.firstCell!==t.cell?e:DG(e,t)))(e,t.payload);case KH.SelectMultiAdd:return TG(e,t.payload);case KH.SelectMultiEnd:return OG(e);case KH.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case KH.Clear:return e.rows.size?{...e,rows:new Map}:e;case KH.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},LG=$g(e=>{const t=e(Mb);return function(e,t){return $g(e,function(e,n,r){n(this,t(e(this),r))})}({pageRows:e(SW).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},qG)}),NG=$g(e=>e(e(LG)),(e,t,n)=>{t(e(LG),n)}),jG=hk(e=>$g(t=>{const{colIdx:n,rows:r,api:o}=t(NG);return"object"==typeof e&&o?.isModal()?n!==e.selectionColIdx?GH.Disabled:r.has(e.qElemNumber)?GH.Selected:GH.Possible:GH.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),_G=$g(e=>{const t=e(JW),n=e(Zb).width,r=e(YB);return t>0&&t+r<n}),zG=()=>{const[e,t]=P(!1);return p_({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?Yt.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},FG=(e,{atTop:t,atBottom:n},r)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!r&&n?e.grid.divider:e.grid.border,borderBottomColor:r&&!t||!r&&t?e.grid.divider:e.grid.border}),$G=$g(e=>{const t=e(wb),n=e(Kb);if(void 0!==n)return async(e,r)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,u=o?i:i-t,c=await n.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=r!==s||l;if(!o){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),n.applyPatches(p,!0)}}),HG=e=>{e&&(e.focus(),(e=>{e?.setAttribute("tabIndex","0")})(e))},BG=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r})=>(e>n?e--:t>n&&(t--,e=r),[t,e]),VG=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r,lastRowIdx:o})=>(e<r?e++:t<o&&(t++,e=n),[t,e]),WG=e=>e.atTop?2:1,UG=(e,t)=>({top:e?WG(t):0,bottom:e&&t.atBottom?1:0}),GG=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],KG=e=>e?.setAttribute("tabIndex","0"),YG=e=>e?.setAttribute("tabIndex","-1"),XG=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(YG)},JG=e=>{e?.focus(),KG(e)},ZG=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${Jm}`);JG(t)},0)},QG=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,allowedRows:o,direction:i})=>{XG(t);const a=((e,t,n,r,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[u,c]=n;switch(e.key){case Xm.Down:u<s&&u++;break;case Xm.Up:u>a&&u--;break;case Xm.Right:if(i)break;[u,c]="rtl"===r?BG({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):VG({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case Xm.Left:if(i)break;[u,c]="rtl"===r?VG({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):BG({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case Xm.Home:(AG(e)||i)&&(u=a),i||(c=0);break;case Xm.End:(AG(e)||i)&&(u=s),i||(c=l);break;case Xm.PageDown:u=Math.min(s,u+10);break;case Xm.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,n,i,o),s=GG(t,a);return JG(s),((e,t)=>{const n=t.getElementsByClassName("sn-table-container")[0];if(!n?.scrollTo)return;const[r,o]=e;if(r<2)n.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[r].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<n.scrollTop){const t=n.scrollTop-i.offsetHeight-e.offsetHeight;n.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),r(a),{nextCell:s,nextCellCoord:a}},eK=(e,t,n,r)=>{XG(t),n(e),r.enabled&&!r.active?r.focus?.():JG(GG(t,e))},tK=(e,t,n)=>{const r=e.currentTarget;if(!r)return;const o=e.relatedTarget??document.activeElement;if(!!o?.closest(`.${Gm}`))return;const i=!!o&&r.contains(o);!n.enabled||t.current||i||(e=>{const t=e.querySelector(`.${XH.First}`),n=e.querySelector(`.${XH.Second}`);t&&n&&(t.innerHTML="",n.innerHTML="")})(r),((e,t,n)=>{const r=e.currentTarget;if(!n.enabled||t.current||!r)return;const o=e.relatedTarget??document.activeElement;o&&r.contains(o)||n.blur?.(!1)})(e,t,n)},nK=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10M3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0zM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0"})})),rK=Mu(Fh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:n,background:r,color:o})=>({...DB,...e,cursor:t.active?"pointer":"default",background:r,color:o,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?n:r}})),oK=Mu("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:kB,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),iK=parseInt(kB,10)/2,aK=Mu("div")({position:"absolute",bottom:-iK,left:`calc(50% - ${iK}px)`}),sK=Mu(nm)({position:"sticky",top:0,zIndex:1}),lK={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},uK=Mu(Sd)({height:"100%","& .sn-table-cell:focus-visible":{outline:"none",boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"& .sn-table-cell:focus:not(:focus-visible)":{outline:"none"}}),cK=Mu("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e&&"isDual"!==e})(({lineClamp:e,isHeadCell:t=!1,isPagination:n=!1,isNumeric:r=!1,isDual:o=!1})=>r&&!o||1===e&&!t?{...lK,whiteSpace:"nowrap",display:n?"block":void 0}:{...lK,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),dK=Mu("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),pK="cell-text",fK=({children:e,forwardRef:t,isNumeric:n=!1,isPagination:r=!1,isHeadCell:o=!1,isDual:i=!1,lineClamp:a})=>{const s=Qg(_W);return o?Yt.jsx(cK,{"data-testid":pK,ref:t,className:"sn-table-cell-text",lineClamp:s.grid.headerLineClamp,isPagination:r,isHeadCell:!0,style:{direction:n?"ltr":void 0},children:e}):Yt.jsx(cK,{"data-testid":pK,ref:t,className:"sn-table-cell-text",isDual:i,isNumeric:n,lineClamp:a??s.grid.contentLineClamp,isPagination:r,style:{direction:n?"ltr":void 0},children:e})},hK=e=>{const{column:t,isInteractionEnabled:n,open:r,setOpen:o,isPagination:i,forwardRef:a}=e,s=Qg(Eb),l=Qg($G),u=Qg(Fb),c=Qg(Tb),d=Qg(ob),p=Qg(rv),f=Qg(nb),h=Qg(KW)[t.pageColIdx],m=Qg(Gb),g=M(null),b=M(null),v=(({column:e,columnWidth:t})=>{const n=Qg(_W),{measureText:r}=Lm({fontSize:n.header.fontSize,fontFamily:n.header.fontFamily,fontWeight:PB});let o=!1,i=!1,a=!1;const s=e.isLocked,l=e.isActivelySorted,u=t-25,c=s?20:0,d=l?20:0;let p=r(e.label);return s&&p+c<=u&&(a=!0,p+=c,l&&p+d<=u&&(i=!0,p+=d)),!s&&l&&p+d<=u&&(i=!0,p+=d),p+24<=u&&(o=!0),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({column:t,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:n,shouldShowLockIcon:r},o)=>{const i="A"===e?Yt.jsx(TU,{height:kB,"data-testid":"head-cell-sort-ascending-icon"}):Yt.jsx(LU,{height:kB,"data-testid":"head-cell-sort-descending-icon"}),a=n?Yt.jsx(oK,{align:t,dir:o,children:i}):void 0,s=r?Yt.jsx(VB,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:Yt.jsx(nK,{height:kB,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,v,u);return Yt.jsxs(BB,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:NB(t,i,u),children:[S,Yt.jsxs(HB,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:u,isPagination:i,children:[y,Yt.jsx(fK,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),n?Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(KU,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[WU.Sorting]:!0,[WU.Searching]:!0,[WU.Selections]:!0,[WU.AdjusterHeaderSize]:!0},open:r,setOpen:o,interactions:c,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),l?.(t,n)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:b},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:ZG},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:u,isPagination:i,isAccessibleHeader:!0}),Yt.jsx($B,{ref:b,direction:u,isPagination:i}),Yt.jsx($B,{ref:g,direction:u})]}):null]})},mK=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M6 2h10V1H6zm5 5h5V6h-5zm5 5h-5v-1h5zM5 10h1v2.663a3.5 3.5 0 1 0-2.922.036l-.406.914A4.501 4.501 0 1 1 7.329 13H9v1H5z"})})),gK=(e,t)=>e.isCyclic&&t,bK=({column:e})=>{const t=Qg(_W),n=Qg(Fb),r=Qg(Gb),o=w.useRef(null),[i,a]=w.useState(!1),s=iU({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(UB,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:Yt.jsx(mK,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),Yt.jsx(AU,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:e=>{e.stopPropagation(),a(!1),s?.(n)},enabled:!0,icon:kF,isActive:e.groupDimensionPos===n}))}]],anchorEl:o.current,direction:n,isPagination:!1})]})},vK=e=>e.isLocked,yK=({column:e})=>{const t=Qg(nb),n=Qg(Eb),r=Qg(bb),o=Qg(_W);return Yt.jsx(UB,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,onClick:o=>{o.stopPropagation(),(async(e,t,n,r={warn:()=>{},error:()=>{}})=>{const o=kU(t??"$",n);let i;try{const t=await(e?.createSessionObject(o));i=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){r.error({msg:"Failed to unlock field from table header",payload:e})}finally{i&&(await(e?.destroySessionObject(i))||r.error({msg:"Failed to destroy session object when unlocking field from table header"}))}})(t,n,e,r)},children:Yt.jsx(nK,{height:16,"data-testid":"head-cell-lock-icon"})})},xK=({column:e,menuIconRef:t,open:n,setOpen:r})=>{const o=Qg(_W);return Yt.jsx(UB,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??o.headerMenuActiveBackground,isActive:n,order:e.isDim?void 0:-1,onClick:e=>{e.stopPropagation(),r(e=>!e)},ref:t,children:Yt.jsx(oU,{height:16})})},SK=({anchorRef:e,column:t,isPagination:n,listboxRef:r,open:o,setOpen:i})=>{const a=Qg(nb),s=Qg(Fb),l=Qg(ob),u=Qg(Tb),c=Qg(Gb),d=Qg(Eb),p=Qg(rv),f=Qg($G);return Yt.jsx(KU,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[WU.Sorting]:!0,[WU.Searching]:!0,[WU.Selections]:!0,[WU.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:u,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),f?.(t,n)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:r},selectionRelatedArgs:{app:a,qStateName:d},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:ZG},shouldShowMenuIcon:!1,model:c,direction:s,isPagination:n})},wK=$g();wK.onMount=e=>{const t=new Map,n=new ResizeObserver(e=>{for(const n of e){const e=t.get(n.target);e&&e.current(n)}});return e({callbacks:t,observer:n}),()=>{t.clear(),n.disconnect()}};const CK=({ref:e,callback:t})=>{const n=Qg(wK),r=M(t);r.current=t,j(()=>{const t=e.current;return void 0===n?()=>{}:(t&&(n.callbacks.set(t,r),n.observer.observe(t)),()=>{t&&(n.callbacks.delete(t),n.observer.unobserve(t))})},[e,r,n])},EK=Mu(Sd)({display:"flex",alignItems:"flex-end",justifyContent:"center",width:"100%",boxSizing:"border-box"}),RK=({children:e})=>{const t=w.useRef(null),[n,r]=P(()=>new Set(e.filter(({props:e})=>void 0!==e.prio&&e.children).map(({key:e})=>e))),o=k(()=>Array.from(e).sort((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)),[e]),i=L(e=>{const t=new Set,n=e.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach(e=>{if(e.props.ignore||!e.props.children)return;const r=e.props.minWidth+1;void 0===e.props.prio||i+r<=n?i+=r:t.add(e.key)}),r(e=>e.size===t.size&&[...e].every(e=>t.has(e))?e:t)},[o]);return CK({ref:t,callback:i}),Yt.jsx(EK,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!n.has(e.key))})},AK=({children:e})=>e,IK=(e,t)=>!e.isLocked&&e.isDim&&t,kK=({column:e,open:t,setOpen:n})=>{const r=Qg(_W),o=Qg(Eb),i=Qg(Fb),a=Qg(ob);Qg(nb);const s=w.useRef(null),l=L(()=>{n(!1)},[n]),u=IU({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return Yt.jsx(UB,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??r.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),u(),n(!0)},children:Yt.jsx(zU,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},PK=({column:e})=>{const{sortDirection:t,isActivelySorted:n}=e,r="A"===t?Yt.jsx(CB,{height:kB,"data-testid":"head-cell-sort-ascending-icon"}):Yt.jsx(xB,{height:kB,"data-testid":"head-cell-sort-descending-icon"});return n?Yt.jsx(aK,{children:r}):void 0},MK=0,DK=1,TK=2,OK=3,qK=e=>{const{column:t,open:n,setOpen:r,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=Qg(_W),u=Qg(Fb),{measureText:c}=Lm(l.header),[d,p]=P(!1),f=M(null),h=M(null),m=M(null),g="number"==typeof a&&a>Zm.PixelsMin+18;return Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs(RK,{children:[Yt.jsx(AK,{prio:TK,minWidth:FB,children:vK(t)?Yt.jsx(yK,{column:t}):null},"Lock"),Yt.jsx(AK,{prio:DK,minWidth:FB,children:gK(t,s)?Yt.jsx(bK,{column:t}):null},"Cyclic"),Yt.jsx(AK,{ignore:!0,children:Yt.jsx(PK,{column:t})},"Sort"),Yt.jsx(AK,{minWidth:c(t.label)+8,children:Yt.jsx(WB,{justifyContent:t.headTextAlign,children:Yt.jsx(fK,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),Yt.jsx(AK,{prio:g?void 0:MK,minWidth:FB,children:d||IK(t,s)?Yt.jsx(kK,{open:d,setOpen:p,column:t}):null},"Search"),Yt.jsx(AK,{prio:OK,minWidth:FB,children:s?Yt.jsx(xK,{menuIconRef:m,column:t,open:n,setOpen:r}):null},"Menu")]}),s?Yt.jsxs(Yt.Fragment,{children:[Yt.jsx($B,{ref:h,direction:u,isPagination:o}),Yt.jsx($B,{ref:f,direction:u}),Yt.jsx(SK,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:n,setOpen:r})]}):null]})},LK=Mu("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:n})=>({...t,background:e,color:n})),NK=()=>{},jK=({column:e,isPagination:t})=>{const n=Qg(_W),r=Qg(Fb),o=Qg(_G),i=Qg(wW),a=!1,s=Qg(Ib)?hK:qK;return Yt.jsx(LK,{className:"sn-table-cell",applicableStyle:{...n.header,...FG(n,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:_B(r,a,o),borderLeftWidth:zB(r,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:e.headerColor?.background??n.header.background,color:e.headerColor?.color??n.header.color,children:Yt.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:NK})})},_K=({isPagination:e})=>{const t=Qg(CW),[n,r]=P();p_({onDragStart:e=>{const t=e.operation.source?.id;r(t)},onDragEnd:()=>{}});const o=n?t.find(e=>e.id===n):void 0;return o?Yt.jsx(Bj,{children:Yt.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:Yt.jsx(jK,{column:o,isPagination:e})})}):null},zK=ZR($g(async e=>{e(yb);const t=e(Kb);return t?.getEffectiveProperties()}),e=>e),FK=$g(e=>e(zK)?.qHyperCubeDef),$K=[YN.configure({activationConstraints:[new WN.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],HK=gj.plugins.filter(e=>e!==CL),BK=(e,t,n)=>{const r=JSON.stringify(t),o=JSON.stringify(n);if(r!==o)return{qPath:e,qOp:"Replace",qValue:o}},VK=(e,t,n,r,o)=>{if(!e||!t||r===o)return;const i=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:n,visibleColumnIds:r,sourceId:o,targetId:i})=>{const a=e$({qDimensions:e,qMeasures:t}),s=[...e,...t],l=r.findIndex(e=>e===o),u=r.findIndex(e=>e===i);if(l<0||u<0||l===u)return;const c=((e,t,n)=>{const r=[...e],[o]=r.splice(t,1);return r.splice(n,0,o),r})(r,l,u),d=new Map(c.map((e,t)=>[e,t])),p=a.toSorted((e,t)=>{const n=d.get(e.id),r=d.get(t.id);return void 0===n||void 0===r?0:n-r}),f=p.filter(e=>e.isDimension).map(e=>e.def),h=p.filter(e=>!e.isDimension).map(e=>e.def),m=[...f,...h],g=new Map(m.map((e,t)=>[e.qDef.cId,t]));return{qDimensions:f,qMeasures:h,qInterColumnSortOrder:t$({previousColumns:s,nextColumns:m,qInterColumnSortOrder:n}),qColumnOrder:c.map(e=>g.get(e)).filter(e=>void 0!==e)}})({qDimensions:t.qDimensions,qMeasures:t.qMeasures,qInterColumnSortOrder:t.qInterColumnSortOrder,visibleColumnIds:n.map(e=>e.id),sourceId:r,targetId:o});if(!i)return;const a=[BK("/qHyperCubeDef/qDimensions",t.qDimensions,i.qDimensions),BK("/qHyperCubeDef/qMeasures",t.qMeasures,i.qMeasures),BK("/qHyperCubeDef/qInterColumnSortOrder",t.qInterColumnSortOrder,i.qInterColumnSortOrder),BK("/qHyperCubeDef/qColumnOrder",t.qColumnOrder,i.qColumnOrder)].filter(e=>void 0!==e);0!==a.length&&e.applyPatches(a,!0)},WK=({children:e})=>{const t=Qg(Kb),n=Qg(FK),r=Qg(CW);return Yt.jsx(Fj,{onDragOver:e=>{const o=e.operation.source?.id,i=e.operation.target?.id;void 0!==i&&o!==i&&VK(t,n,r,o,i)},sensors:$K,plugins:HK,children:e})};function UK(e,t){const n=M(!1);O(()=>{n.current?e():n.current=!0},t)}const GK=(e,t)=>{const n=Qg(Ub);O(()=>{const r=e.current;if(!r)return;const o=e=>{tK(e,t,n)};return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}},[e,t,n])},KK=$g(JH),YK=hk(e=>$g(t=>{const[n,r]=t(KK);return 0===n&&r===e})),XK=()=>{const e=Qg(rb);O(()=>{e.notifyIsDoneRendering()})};var JK={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 zwischen den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerelementen zu wechseln. Drücken Sie die Leertaste in den Kopfzellen, um das Spaltenmenü zu öffnen, und drücken Sie die Leertaste in den Körperzellen, um eine Auswahl zu treffen. Duch die Auswahl wird der Seiteninhalt aktualisiert. Die vollständige Liste der Navigationssteuerungen finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate between table cells and tab to move to pagination controls. Press space on header cells to open the column menu, press space on body cells to make selections. Selections will cause content on the page to be updated. The full list of navigation controls can be found in the documentation.","es-ES":"Utilice las teclas de flecha para desplazarse entre las celdas de la tabla y la pestaña a fin de pasar a los controles de paginación. Pulse la barra espaciadora en las celdas del encabezado para abrir el menú de columnas; pulse la barra espaciadora en las celdas del cuerpo para realizar selecciones. Las selecciones harán que se actualice el contenido de la página. Encontrará la lista completa de controles de navegación en la documentación.","fr-FR":"Utilisez les touches fléchées pour naviguer parmi les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Appuyez sur la touche Espace dans les cellules d'en-tête pour ouvrir le menu de la colonne. Appuyez sur Espace dans les cellules de corps pour effectuer une sélection. Les sélections actualiseront le contenu de la page. Vous pouvez consulter la liste complète des commandes de navigation dans la documentation.","it-IT":"Utilizzare i tasti freccia per navigare tra le celle della tabella e il tasto TAB per passare ai controlli di paginazione. Premere lo spazio nelle celle dell'intestazione per aprire il menu della colonna; premere lo spazio nelle celle del corpo per effettuare selezioni. Le selezioni determineranno l'aggiornamento del contenuto della pagina. È possibile trovare l'elenco completo dei controlli di navigazione nella documentazione.","ja-JP":"矢印キーで表のセル間を移動し、タブ キーでページネーション コントロールに移動します。ヘッダー セルでスペースを押すと列メニューが開き、ボディ セルでスペースを押すと選択ができます。選択によって、ページのコンテンツが更新されます。ナビゲーション コントロールの全リストは、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 표 셀 사이를 탐색하고, 탭을 사용하여 페이지 번호 컨트롤로 이동하십시오. 헤더 셀에서 스페이스바를 눌러 열 메뉴를 열고, 본문 셀에서 스페이스바를 눌러 선택하십시오. 선택하면 페이지의 콘텐츠가 업데이트됩니다. 전체 탐색 컨트롤 목록은 설명서에서 확인할 수 있습니다.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren tussen tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Druk op de spatietoets in koptekstcellen om het kolommenu te openen, druk op de spatietoets in hoofdtekstcellen om selecties te maken. Door selecties te maken, wordt de inhoud op de pagina bijgewerkt. De volledige lijst met besturingselementen voor navigatie vindt u in de documentatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się między komórkami tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Naciśnij klawisz spacji na komórkach nagłówka, aby otworzyć menu kolumny i naciśnij go na komórkach treści, aby dokonać wyborów. Wybory będą powodować aktualizację zawartości na stronie. Pełną listę nawigacyjnych elementów sterujących można znaleźć w dokumentacji.","pt-BR":"Use as teclas de seta para navegar entre as células da tabela e a tecla Tab para mover para os controles de paginação. Pressione espaço nas células do cabeçalho para abrir o menu da coluna, pressione espaço nas células do corpo para fazer seleções. As seleções farão com que o conteúdo da página seja atualizado. A lista completa de controles de navegação pode ser encontrada na documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения между ячейками таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Нажмите пробел на ячейках заголовка, чтобы открыть меню столбца; нажмите пробел на ячейках тела, чтобы сделать выборки. Выборки приведут к обновлению содержимого страницы. Полный перечень элементов управления навигацией см. в документации.","sv-SE":"Använd piltangenterna för att navigera mellan tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Tryck på mellanslag på rubrikceller för att öppna kolumnmenyn och tryck på mellanslag på innehållsceller för att göra urval. Med urval kommer innehåll på sidan att uppdateras. Den fullständiga listan med navigeringsreglage.","tr-TR":"Tablo hücreleri arasında gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Sütun menüsünü açmak için başlık hücrelerinde boşluğa basın, seçim yapmak için gövde hücrelerinde boşluğa basın. Seçimler, sayfadaki içeriğin güncellenmesine neden olur. Navigasyon kontrollerinin tam listesi belgede bulunabilir.","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":"已依遞減順序排序。"}}};const ZK=$g(e=>{const t=e(rv),n=e(Qb),r=e(bb);let o;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(JK).forEach(t=>{e.add(JK[t])})}(t),({keys:e,politeness:i="polite"})=>{const a=e.map(e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)}).join(" "),s=n.querySelector(`.${XH.First}`),l=n.querySelector(`.${XH.Second}`);if(!s||!l)return void r.error({msg:"could not find aria-live elements, which means accessibility is not working properly"});let u;o===XH.First?(u=l,o=XH.Second):(u=s,o=XH.First),u.innerHTML=u.innerHTML.endsWith(" ")?a:`${a} `,u.setAttribute("aria-live",i)}}),QK=(e,t)=>{const n=Qg(ZK),r=Qg(Qb),o=Qg(IW),i=Qg(AW),a=Qg(RW),s=Qg(wW),[l,u]=tb(KK),c=Qg(Pb),d=Qg(Ub);UK(()=>{const t=((e,t,n=!1)=>{const r=[WG(t),e[1]];return n?r:JH})(l,s,c);(({resetCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(XG(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=GG(t,e);n.current?(JG(s),n.current=!1):KG(s),r&&(a({keys:[s?.textContent??""]}),RG(a,s,r))})({resetCellCoord:t,rootElement:r,shouldRefocus:e,setFocusedCellCoord:u,isSelectionMode:c,keyboard:d,announce:n})},[a.length,i,o,t])},eY=e=>{Em(e),AG(e)&&ig(e.currentTarget)},tY=e=>{MG(e.evt)&&(Em(e.evt),QG(e))},nY=e=>{const{evt:t,totalsPosition:n,cell:r,isSelectionMode:o}=e;if(!MG(t))return;Em(t);const i=((e,t)=>[e.pageRowIdx+WG(t),e.pageColIdx])(r,n),a=UG(o,n),{nextCell:s,nextCellCoord:l}=QG({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:n,selectionDispatch:r,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&n.isSelectable?r({type:KH.SelectMultiAdd,payload:{cell:n,evt:e,announce:o}}):RG(o,a,i)})({...e,nextCell:s})},rY=e=>{const{evt:t}=e;IG(t)?(({evt:e,totalRowCount:t,rowsPerPage:n,page:r,updateShouldRefocus:o,handleChangePage:i})=>{Em(e);const a=Math.ceil(t/n)-1;e.key===Xm.Right&&r<a?(o(),i(r+1)):e.key===Xm.Left&&r>0&&(o(),i(r-1))})(e):t.key===Xm.Esc?(({evt:e,keyboard:t,isSelectionMode:n})=>{t.enabled&&!n&&(Em(e),t.blur?.(!0))})(e):kG(t.key)&&Em(t)},oY=e=>{const{evt:t,selectionsAPI:n}=e;if(t.currentTarget.classList.contains(GH.Disabled))return void Em(t);const r={...e,isSelectionMode:!!n?.isModal()};switch(t.key){case Xm.Space:(({evt:e,cell:t,isSelectionsEnabled:n,selectionDispatch:r,announce:o})=>{Em(e),t.isSelectable&&n&&r({type:KH.Select,payload:{cell:t,evt:e,announce:o}})})(r);break;case Xm.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{Em(n),e&&(t?.confirm(),r({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(r);break;case Xm.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{e&&(Em(n),t?.cancel(),r({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(r);break;case Xm.C:eY(t);break;case Xm.Tab:(({evt:e,keyboard:t,isSelectionMode:n,paginationNeeded:r})=>{const o=e.shiftKey||!r;t.enabled&&n&&o&&(Em(e),Cm(e.currentTarget,t,e.shiftKey))})(r);break;default:nY(r)}},iY=e=>{const t=Qg(GB),n=eb(KB),r=eb(YB),o=Qg(UH),i=M();CK({ref:e,callback:a=>{const s=()=>{if(e.current){const e=a.borderBoxSize.at(0)?.inlineSize??0,t=a.borderBoxSize.at(0)?.blockSize??0,o=a.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.contentBoxSize.at(0)?.blockSize??0);r(e-o),n(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()}}),O(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},aY=Mu("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),sY=Mu(Vh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),lY=Mu(kh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),uY=()=>Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(aY,{className:XH.First,"data-testid":XH.First,"aria-live":"polite","aria-atomic":"true"}),Yt.jsx(aY,{className:XH.Second,"data-testid":XH.Second,"aria-live":"polite","aria-atomic":"true"})]}),cY=e=>{const t=M(new Map),n=M(null);O(()=>{n.current=e(t.current),t.current.forEach((e,t)=>{n.current?.observe(t)});const r=t.current,o=n.current;return()=>{o.disconnect(),r.clear()}},[e,n,t]);const r=L((e,r)=>{t.current.set(e,r),n.current?.observe(e)},[t,n]),o=L(e=>{t.current.delete(e),n.current?.unobserve(e)},[n,t]);return k(()=>({addTask:r,removeTask:o}),[r,o])},dY=e=>new ResizeObserver(t=>{t.forEach(t=>{const n=e.get(t.target);n?.(t)})}),pY=()=>cY(dY),fY=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=Qg(Mb),r=Qg(Ub),o=eb(NG);O(()=>{const i=()=>{o({type:KH.Reset})},a=()=>{o({type:KH.Clear})},s=()=>{t.current?.contains(document.activeElement)?e():r.enabled&&r.blur?.(!0),i()};return n?.on("deactivated",i),n?.on("canceled",i),n?.on("confirmed",s),n?.on("cleared",a),()=>{n?.removeListener("deactivated",i),n?.removeListener("canceled",i),n?.removeListener("confirmed",s),n?.removeListener("cleared",a)}},[n,r,o,e,t])},hY=e=>{e.stopPropagation()},mY=({href:e,text:t,interactions:n,color:r})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:hY,color:bm.LINK,style:{pointerEvents:n.active?"auto":"none",color:r??void 0,opacity:n.active&&n.passive||r?void 0:.4}}),gY=({href:e,text:t,interactions:n,color:r})=>Yt.jsx($p,{...mY({href:e,text:t,interactions:n,color:r}),children:t}),bY=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),vY=window.cancelIdleCallback??(e=>{clearTimeout(e)}),yY="qDimensionInfo/0",xY="qMeasureInfo/0",SY="x",wY="y",CY=e=>({key:"bars",type:"box",data:{extract:{field:yY,props:{start:0,end:{field:xY}}}},settings:{major:{scale:SY},minor:{scale:wY},box:{maxWidthPx:8,fill:{fn:e}}}}),EY=e=>({key:"p",type:"point",data:{extract:{field:yY,props:{y:{field:xY}}}},settings:{x:{scale:SY},y:{scale:wY},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),RY=({qNum:e})=>void 0===e?0:Math.sign(e),AY=(e,t)=>{const{primary:n,nil:r,others:o}=e.getDataColorSpecials(),i=Sm(e,t?.negative,n),a=Sm(e,t?.positive,n);return{key:"pos-neg",type:"box",data:{extract:{field:yY,props:{start:0,end:{field:xY,value:RY}}}},settings:{major:{scale:SY},minor:{scale:wY},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?r:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},IY=(e,{type:t,showDots:n,colors:r,colorMin:o,colorMax:i})=>{const a=((e,t,n,r)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=Sm(e,t?.main,o),l=Sm(e,t?.max,s),u=Sm(e,t?.min,s),c=Sm(e,t?.first,s),d=Sm(e,t?.last,s);return e=>{const t=wY in e.datum?wY:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=r?l:e.datum[t].value<=n?u:e.data.items.at(0)===e.datum?c:e.data.items.at(-1)===e.datum?d:s}})(e,r,o,i);switch(t){case"bars":return[CY(a)];case"dots":return[EY(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:yY,props:{v:{field:xY}}}},settings:{coordinates:{major:{scale:SY},minor:{scale:wY,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(Sm(e,r?.main,e.getDataColorSpecials().primary));return n?[t,EY(a)]:[t]}case"posNeg":return[AY(e,r)];default:return[]}},kY=e=>({qDimensionInfo:[{qFallbackTitle:"",qCardinal:1}],qMeasureInfo:[{qFallbackTitle:""}],qDataPages:[{qArea:{qTop:0,qLeft:0,qHeight:e.length,qWidth:2},qMatrix:e}],qEffectiveInterColumnSortOrder:[0,1],qSize:{qcx:2,qcy:e.length},qMode:"S"}),PY=(e,t,n,r)=>({y:{data:{field:xY},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:n},x:{data:{extract:{field:yY}},paddingInner:.3,paddingOuter:0,invert:"rtl"===r,align:"rtl"===r?1:0,maxPxStep:12}}),MY=K();MY.use(G),MY.renderer.prio(["canvas"]);const DY={resolve:()=>{},promise:{}},TY=({chart:e,element:t,requestId:n,theme:r,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=M(e.isDownloadedAsPDForImage?It():DY);return{addChartPromiseToQueue:L(()=>{e.waitForPromise(t.current.promise)},[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:L(()=>{if(null===t.current||null!==e.current)return;u();n.current=bY(()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:n,miniChartData:r,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:u}=r;return MY.chart({element:e,data:{type:"q",key:"qHyperCube",data:kY(s)},settings:{scales:PY(a,l,u,i),components:IY(t,r),strategy:n?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:r,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))},{timeout:2e3})},[t,e,u,n,r,o,a,i,l]),safeCancelIdleCallback:L(()=>{null!==n.current&&vY(n.current),n.current=null,l()},[n,l])}},OY=e=>{const t=M(null),n=M(!1);return L(r=>{const o=r.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(vY(e.current),e.current=null)})(t),n.current?0!==o?null!==e.current&&(t.current=bY(()=>{e.current?.update()},{timeout:2e3})):n.current=!1:n.current=!0},[e])},qY=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:n,isSnapshot:r,miniChartData:o,downloadService:i,direction:a})=>{const s=M(null),l=M(null),u=M(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=TY({element:s,chart:l,requestId:u,theme:n,isSnapshot:r,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:n,renderChartWithRequestIdleCallback:r,chart:o})=>{const i=L(e=>{e.isIntersecting?r():n()},[r,n]);O(()=>{if(!e.current||!t)return()=>{};const r=e.current;return t.addTask(r,i),()=>{t.removeTask(r),n(),o.current?.destroy(),o.current=null}},[o,e,t,n,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:n,intersectionObserverTaskScheduler:r})=>{O(()=>r?()=>{}:(e(),()=>{t(),n.current?.destroy(),n.current=null}),[r,t,e,n])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:n})=>{const r=OY(t);O(()=>{const t=e.current;return t?(n.addTask(t,r),()=>{n.removeTask(t)}):()=>{}},[e,r,n])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},LY=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=qY({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return Yt.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},NY=e=>{let t="center",n="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?n="left":"flex-end"===e?.horizontal&&(n="right"),`${n} ${t}`},jY=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},_Y=({representation:e,textStyle:t,maxImageHeight:n,wrapInContainer:r})=>{const o=Qg(Fb),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=Yt.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:n,objectFit:jY(s),objectPosition:NY(l),overflow:"hidden"}});return r?Yt.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?n:"100%",overflow:"hidden",display:"flex",justifyContent:u?OB(o,e):void 0},children:c}):c},zY=({size:e,iconKey:t,color:n,pvStyle:r})=>{const o=t&&EB[t];return o&&Yt.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:n,height:e,...r},children:Yt.jsx(o,{style:{height:e}})})},FY=({representation:e,cellValue:t,paginationCellAlign:n})=>{const r=Qg(_W),o=Qg(Fb),i=Qg(nv),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=RB(e,t,o,i),d=(e=>parseInt(e||kB,10))(r.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?Yt.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:n??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:u?p:void 0},children:["left"===h&&zY({size:d,iconKey:f,color:p}),Yt.jsx(fK,{isNumeric:!0,children:a}),"right"===h&&zY({size:d,iconKey:f,color:p})]}):zY({size:d,iconKey:f,color:p})},$Y=(e,t,n)=>e.contentStaticLineCount?t*(n??e.grid.contentLineClamp):t,HY=({forwardRef:e,cell:t,style:n,virtualizedCell:r,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=Qg(_W),u=Qg($W),c=Qg(rb),d=Qg(yb),p=Qg(nv),f=Qg(Fb),h=Qg(Tb),m=Qg(Pb);if(t.representation.type===u$.Image&&!t.representation.url?.trim())return null;if(t.representation.type===u$.Image)return Yt.jsx(_Y,{representation:t.representation,textStyle:n,maxImageHeight:$Y(l,u,o),wrapInContainer:!r});let g=t.representation.text;t.representation.type!==u$.Link||m||t.isNull||(g=Yt.jsx(gY,{href:t.representation.url,text:t.representation.text,interactions:h,color:n.cellForegroundColor}));const b="string"==typeof(v=t.qIsNull?t.representation.text:t.qNum)&&v.length>0||"number"==typeof v?+v:NaN;var v;return t.representation.type!==u$.Indicator||Number.isNaN(b)?t.representation.type===u$.MiniChart&&t.representation.miniChart&&!t.isNull?Yt.jsx(LY,{height:$Y(l,u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:p,isSnapshot:!!d.snapshotData,direction:f,downloadService:c}):Yt.jsx(fK,{forwardRef:e,isDual:t.isDual,isNumeric:t.isNumeric,lineClamp:o,isPagination:!r,children:g}):Yt.jsx(FY,{representation:t.representation,cellValue:b,paginationCellAlign:r?void 0:s})},BY=()=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:Yt.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),VY=Mu("div")({"& path":{stroke:"none !important"}}),WY=({children:e,cellSelectionState:t,hideTickIcon:n})=>t!==GH.Selected||n?e:Yt.jsxs(dK,{children:[e,Yt.jsx(VY,{children:Yt.jsx(BY,{})})]}),UY=e=>{const t=function(){const e=$j(),t=Cj(()=>null==e?void 0:e.dragOperation.source,[e]),n=Cj(()=>null==e?void 0:e.dragOperation.target,[e]);return{get source(){return t.value},get target(){return n.value}}}();return t.source&&t.source.id!==e?.5:1},GY=(e,t,n,r)=>({handleMouseDown:r=>{e?.(r);const o=r.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{n({type:KH.SelectMultiEnd})};n({type:KH.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&n({type:KH.SelectMultiAdd,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:e=>{0===e.button&&n({type:KH.SelectMouseUp,payload:{cell:t,evt:e,announce:r}})}}),KY=e=>{const t=Qg(kW),n=Qg(wW),r=Qg(ZK),o=Qg(Qb),i=Qg(Fb),a=eb(KK),s=eb(NG),l=Qg(Ub),u=Qg(Lb),c=Qg(Mb),d=d=>{oY({evt:d,rootElement:o,selectionsAPI:c,cell:e,selectionDispatch:s,isSelectionsEnabled:u,setFocusedCellCoord:a,announce:r,keyboard:l,paginationNeeded:t,totalsPosition:n,direction:i})},p=e=>{((e,t)=>{e.key===Xm.Shift&&t({type:KH.SelectMultiEnd})})(e,s)},f=()=>{((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;eK([s,a],t,n,r)})(e,o,a,l,n)};if(!u)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=GY(f,e,s,r);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},YY=e=>{O(()=>()=>{jG.remove(e)},[e])},XY=(e,t,n,r)=>{if(!n.isNull)return e;const o=r?t.dimensionNull:t.measureNull,i={...e,...o};if(!t.grid.zebraStripes.show)return i;const a=r?t.grid.zebraStripes.overrideDimNullValueColor:t.grid.zebraStripes.overrideMeasNullValueColor,s=r?t.grid.zebraStripes.overrideDimNullValueBackground:t.grid.zebraStripes.overrideMeasNullValueBackground;return a&&(i.color=e.color),s&&(i.background=e.background),i},JY=(e,t,n)=>{const{color:r,background:o}=e.grid.zebraStripes[n];return{...t,...r?{color:r}:void 0,...o?{background:o}:void 0}},ZY=(e,t,n)=>{if(t.grid.zebraStripes.show){const r=(n.rowIdx+1)%2==0;return JY(t,e,r?"even":"odd")}return e},QY=(e,t)=>{const n=Qg(_W),r=Qg(jG(e)),o=Qg(gb),i=e.isTotalRow&&o("TLV-2303-SUB-TOTALS");YY(e);let a=t.isDim?n.dimension.values:n.measure.values;a=ZY(a,n,e),a=i?n.subTotalRow:a,a=XY(a,n,e,t.isDim);const s=e.isNull||i&&t.isDim?a:aV(a,e.qAttrExps,t.qAttrExprInfoIDs),l=i?s:function(e,t,n){return t===GH.Selected?{...e,...n}:t===GH.Disabled?{...e,background:`${AB}, ${e.background}`}:e}(s,r,n.selectedColors);return{cellStyle:{...l,borderColor:n.grid.border},representationStyle:s,cellSelectionState:r}},eX=Mu(Lh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),tX=Mu(nm,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})(({hover:e,hoverColors:t,height:n})=>({height:n,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}})),nX=Mu(Fh,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...DB,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),rX=Mu(Fh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...DB,...e,fontWeight:PB,position:"sticky",padding:r.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?n:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0})),oX=({cell:e,column:t,columnIndex:n,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o})=>{const i=Qg(Fb),a=Qg(Tb),{onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d}=KY(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=QY(e,t),m=UY(t.id);return Yt.jsx(nX,{cellStyle:{...p,opacity:m},scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${Ym}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d,children:Yt.jsx(WY,{cellSelectionState:h,hideTickIcon:!!e.isTotalRow,children:Yt.jsx(HY,{cell:e,style:f,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o,paginationCellAlign:jB(i,e.align)})})})},iX=$g(0),aX=({column:e,totalsPosition:t,onKeyDown:n,onMouseDown:r})=>{const o=Qg(_W),i=Qg(qb),a=Qg(iX),s=UY(e.id);return Yt.jsx(rX,{totalsStyle:{...o.totalRow,...FG(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${Ym}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:n,onMouseDown:r,children:Yt.jsx(fK,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},sX=()=>{const e=Qg(wW),t=Qg(CW),n=Qg(RW),r=Qg(Qb),o=Qg(Ob),i=Qg(Fb),a=eb(KK),s=Qg(Pb),l=Qg(Ub);return Yt.jsx(nm,{className:"sn-table-row sn-table-totals-row",children:t.map((t,u)=>{const c=[e.atTop?1:n.length+1,u];return Yt.jsx(aX,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:n,isInteractionEnabled:r}=e;if(!t&&r)switch(n.key){case Xm.C:eY(n);break;case Xm.Space:n.preventDefault();break;default:tY(e)}else Em(n)})({evt:e,rootElement:r,cellCoord:c,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{eK(c,r,a,l)}},t.id)})})};var lX=z(sX);const uX=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=Qg(RW),r=Qg(wW),o=Qg(CW),i=Qg(_W),a=Qg(HW),s=Qg(BW),l=Qg(yb),u=!!nV(l)?.content?.hoverEffect;fY({updateShouldRefocus:e,tableWrapperRef:t});const c=(e=>{const t=L(t=>new IntersectionObserver(e=>{e.forEach(e=>{const n=t.get(e.target);n?.(e)})},{root:e.current}),[e]);return cY(t)})(t),d=pY();return Yt.jsxs(eX,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[r.atTop?Yt.jsx(lX,{}):void 0,n.map((e,t)=>{const n=e.at(0)?.isTotalRow??!1;return Yt.jsx(tX,{hoverColors:i.grid.hoverColors,hover:u,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:n?s:a,children:o.map((t,n)=>{const{id:r}=t,o=e[n];return Yt.jsx(oX,{columnIndex:n,cell:o,column:t,intersectionObserverTaskScheduler:c,resizeObserverTaskScheduler:d},r)})},`row-${t}`)}),r.atBottom?Yt.jsx(lX,{}):void 0]})};var cX=z(uX);const dX=(e,t)=>!!e?.skipHeader||!!t.hideHeader,pX=$g(e=>{const t=e(yb),n=e(Gb);if(n)return(e,{isDim:r,colIdx:o})=>{const i=r?o:o-t.qHyperCube.qDimensionInfo.length,a=`/qHyperCubeDef/${r?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=t.qHyperCube[r?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...e})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(e)};n.applyPatches([l],!0)}}),fX=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o,label:i}=e,a=Qg(pX),s=Qg(Fb),l=Qg(Ob),u=Qg(rv),[c,d]=tb(KW);if(!l)return null;return Yt.jsx(rU,{columnWidth:c.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{n?.();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{YG(e);const t=e.closest(".sn-table-cell");JG(t)})(e.currentTarget)},setIsAdjustingWidth:r,accessibilityRelatedArgs:{translator:u,columnLabel:i},direction:s})},hX=e=>e.target?.getAttribute("class")?.includes(Jm),mX=({isInteractionEnabled:e,column:t})=>{const[n,r]=P(!1),o=Qg($G),i=Qg(GB);return{open:n,setOpen:r,handleOpenMenu:t=>{!e||hX(t)||i||r(!0)},toggleSortOrder:n=>{e&&!hX(n)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(n)&&(n.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var gX=class extends UT{constructor(e,t){super(e,t),this.boundingRectangle=Yk(null),this.destroy=iP(()=>{if(!this.options)return;const{dragOperation:t}=e,{status:n}=t;if(n.initialized){const{element:e}=this.options,n="function"==typeof e?e(t):e;if(!n)return;let r;const o=()=>{this.boundingRectangle.value=aO(n)},i=()=>{r||(r=setTimeout(()=>{o(),r=void 0},25))},a=new ResizeObserver(o);return a.observe(n),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}})}apply(e){const{shape:t,transform:n}=e;if(!t)return n;const r=this.boundingRectangle.value;if(!r)return n;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,u=o.center.y-a/2,c=function(e,t,n){const r=I_({},t);return e.boundingRectangle.top+t.y<=n.top?r.y=n.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=n.top+n.height&&(r.y=n.top+n.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=n.left?r.x=n.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=n.left+n.width&&(r.x=n.left+n.width-e.boundingRectangle.right),r}(new RM(l,u,s,a),n,r);return c}};gX.configure=cD(gX);const bX=({invert:e})=>({dragOperation:t,droppable:n})=>{if(!n.shape)return null;const{shape:r}=t;if(!r)return null;const o=function(e){return e.sortable?.index}(n);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=r.current;return"left"===a&&l.left+.3*l.width<=n.shape.center.x||"right"===a&&l.right-.3*l.width>=n.shape.center.x?{id:n.id,value:1/EM.distance(n.shape.center,s),type:xT.Collision,priority:yT.Normal}:null},vX=[gX.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],yX=(e,t)=>{const n=Qg(Fb),r=!Qg(jb);return Wz({id:e.id,disabled:r,index:t,type:"item",accept:"item",group:"column",modifiers:vX,data:e,plugins:e=>[...e,mN.configure({feedback:"clone"})],collisionDetector:bX({invert:"rtl"===n})})},xX=({column:e,columnIndex:t,columnsLength:n})=>{const r=Qg(_W),o=Qg(Qb),i=Qg(Fb),a=Qg(Tb),s=Qg(CW),l=Qg(wW),u=Qg(KW)[t],c=eb(KK),d=Qg(YK(t)),p=Qg(jb),f=Qg(Ub),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=mX({isInteractionEnabled:p,column:e}),v=eb(GB),{ref:y,isDragging:x}=yX(e,t),S=UY(e.id),w=Qg(Ib),C=w?hK:qK,E=e.isActivelySorted?YH[e.sortDirection]:void 0,R=h?Km:void 0,A=h?"true":void 0,I=t===n-1,k=[0,e.pageColIdx],P={width:u,zIndex:s.length-t},M=d&&0===t&&!f.enabled&&p?0:-1;return Yt.jsxs(rK,{"data-dragging":x,ref:y,headerStyle:{...r.header,...FG(r,l,!0),opacity:S},background:w&&h?e.headerColor?.headerMenuActiveBackground??r.headerMenuActiveBackground:e.headerColor?.background??r.header.background,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,color:e.headerColor?.color??r.header.color,interactions:a,style:P,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${Ym}`,tabIndex:M,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:n,handleOpenMenu:r}=e;if(t)switch(n.key){case Xm.C:eY(n);break;case Xm.Enter:case Xm.Space:r?.(n);break;default:tY(e)}else Em(n)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:c,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&eK(n,t,r,o)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:c,keyboard:f,isInteractionEnabled:p})},onClick:w?g:b,"aria-sort":E,"aria-controls":R,"aria-expanded":A,"aria-haspopup":"true",children:[Yt.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:u}),Yt.jsx(fX,{column:e,isLastColumn:I,setIsAdjustingWidth:v})]},e.id)},SX=()=>{const e=Qg(CW),t=Qg(_W),n=Qg(yb),r=Qg(Hb),o=eb(iX),i=Qg(KW),a=M(null),s=dX(r,n);return O(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),Yt.jsx(Xh,{style:{visibility:s?"collapse":void 0},children:Yt.jsx(sK,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,n)=>Yt.jsx(xX,{column:t,columnIndex:n,columnsLength:e.length},t.id))})})};var wX=z(SX);var CX=z(()=>{const e=Qg(ZK),[t,n]=tb(fW),{page:r,rowsPerPage:o}=t,i=Qg($b),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:u,rows:c,columns:d}=Qg(SW),p=Qg(_W),f=Qg(XV),h=Qg(yb),m=Qg(nv),g=Qg(Zb),b=Qg(Qb),v=Qg(Hb),y=Qg(Fb),x=Qg(Tb),S=Qg(rv),w=Qg(_G),C=eb(NG),E=Qg(Pb),R=Qg(Ub),A=M(!1),I=M(null),k=M(null),P=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(c.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,D=_b(h,v),T=D?f.scrollLeft??0:0,q=D?f.rowPartialHeight??0:0,N=L(()=>{A.current=b.getElementsByTagName("table")[0].contains(document.activeElement)},[b]),j=L(r=>{n({...t,page:r}),e({keys:[["SNTable.Pagination.PageStatusReport",(r+1).toString(),l.toString()]],politeness:"assertive"})},[t,n,l,e]),_=L(r=>{n({...t,page:0,rowsPerPage:r}),e({keys:[["SNTable.Pagination.RowsPerPageChange",r.toString()]],politeness:"assertive"})},[e,t,n]);return(e=>{const t=Qg(Fb),n=Qg(XV);O(()=>{const r=e.current;if(!r)return;const o=e=>{((e,t,n)=>{if(0===e.deltaX)return;e.stopPropagation();const r=n.scrollWidth-n.offsetWidth,{scrollLeft:o}=n;let i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&e.preventDefault()})(e,"rtl"===t,r)},i=e=>{n.scrollLeft=e.currentTarget?.scrollLeft||0};return r.addEventListener("wheel",o),r.addEventListener("scroll",i),()=>{r.removeEventListener("wheel",o),r.removeEventListener("scroll",i)}},[e,t,n])})(I),GK(k,A),(()=>{const e=Qg(Qb),t=Qg(Ub),n=Qg(KK);$m(()=>{const r=GG(e,n);t.active?JG(r):(r?.blur(),XG(e))},[t.active,e])})(),QK(A,r),O(()=>{const e=I.current;e&&(e.scrollLeft=T,e.scrollTop=q)},[t,s,T,q]),UK(()=>{C({type:KH.UpdatePageRows,payload:{pageRows:c}})},[c]),XK(),iY(I),Yt.jsxs(WK,{children:[Yt.jsxs(uK,{ref:k,dir:y,onKeyDown:e=>{rY({evt:e,totalRowCount:s,page:r,rowsPerPage:o,handleChangePage:j,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[Yt.jsx(uY,{}),Yt.jsxs(sY,{ref:I,className:"sn-table-container",fullHeight:!!i||!x.active||!u,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[Yt.jsxs(lY,{stickyHeader:!0,"aria-label":P,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[Yt.jsx(wX,{}),Yt.jsx(cX,{updateShouldRefocus:N,tableWrapperRef:k})]}),Yt.jsx(zG,{})]}),Yt.jsx(CG,{footerContainer:i,pageInfo:t,paginationNeeded:u,theme:m,totalRowCount:s,totalColumnCount:a,totalPages:l,keyboard:R,translator:S,interactions:x,rect:g,layout:h,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:E,direction:y})]}),Yt.jsx(_K,{isPagination:!0})]})});const EX=$g(0),RX=$g(e=>{const t=e(xb);return Math.min(sV,t)}),AX=$g(e=>{const t=e(xb);return t===sV?0:Math.floor(t/sV)}),IX=$g(e=>{const t=e(EX),n=e(AX);return Math.min(t,n)}),kX=$g(e=>({page:e(IX),rowsPerPage:e(RX),rowsPerPageOptions:[]}),(e,t,n)=>{const r=e(AX);t(EX,Math.max(0,Math.min(n,r)))}),PX=$g(null),MX=$g(null),DX=$g(e=>{const t=e(kX),n=e(xb);return Math.min(t.rowsPerPage,n-t.page*t.rowsPerPage)}),TX=$g(null),OX=$g(null),qX=$g(e=>e(wW).atTop?2:1),LX=$g(e=>e(wW).atTop?1:e(qX)+e(DX)),NX=$g(e=>UG(Boolean(e(Pb)),e(wW))),jX=$g(e=>({firstBodyRowIdx:e(qX),totalsRowIdx:e(LX),allowedRows:e(NX)})),_X=$g(e=>({rootElement:e(Qb),totalsPosition:e(wW),rowCount:e(DX),colCount:e(EW),columnWidths:e(KW)})),zX=$g(e=>({scrollToCell:e(TX),scrollableContainerElement:e(OX)})),FX=$g(e=>({keyboard:e(Ub),isInSelectionMode:e(Pb),selectionsAPI:e(Mb),isSelectionsEnabled:e(Lb)})),$X=$g(e=>({direction:e(Fb),isInteractionEnabled:e(jb),paginationNeeded:e(kW),announce:e(ZK),shouldRefocusRef:e(PX)})),HX=10,BX=e=>e.atTop?2:1,VX=(e,[t,n],r,o)=>{const i=BX(r);if(0===t)return e.querySelector(`.sn-table-head-row [data-col="${n}"]`);if(r.atTop&&1===t)return e.querySelector(`.sn-table-totals-row [data-col="${n}"]`);const a=t-i;return a>=0&&a<o?e.querySelector(`.sn-table-body .sn-table-cell[rowindex="${a}"][columnindex="${n}"]`):e.querySelector(`.sn-table-totals-row [data-col="${n}"]`)},WX=(e,t,n,r,o,i,a,s,l)=>{if(!e)return l(!1),()=>{};const[u,c]=n,d=u-BX(r),p=d>=0&&d<o;let f=a,h=!1,m=null;const g=()=>h||s&&!s(),b=()=>{g()||(p&&e(d,c),m=requestAnimationFrame(()=>{if(g())return;const e=((e,t)=>{if(!e||!t)return!1;const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.top>=r.top&&n.bottom<=r.bottom&&n.left>=r.left&&n.right<=r.right})(VX(t,n,r,o),i);if(!e)return f>0?(f-=1,void b()):void l(!1);l(!0)}))};return b(),()=>{h=!0,null!==m&&cancelAnimationFrame(m)}},UX=(e,t,n,r,o,i)=>e<i?[t,e+1]:t<r?[t+1,o]:[t,e],GX=(e,t,n,r,o,i)=>e>o?[t,e-1]:t>n?[t-1,i]:[t,e],KX=(e,[t,n],r,o,i,a={top:0,bottom:0},s)=>{const l=a.top>0,u=a.top,c=r-1-a.bottom,d=o-1;switch(e.key){case Xm.Down:case Xm.Up:t=((e,t,n,r)=>e===Xm.Down&&t<r?t+1:e===Xm.Up&&t>n?t-1:t)(e.key,t,u,c);break;case Xm.Right:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?GX(e,t,n,0,o,i):UX(e,t,0,r,o,i))(n,t,u,c,0,d,i));break;case Xm.Left:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?UX(e,t,0,r,o,i):GX(e,t,n,0,o,i))(n,t,u,c,0,d,i));break;case Xm.Home:l?t=Math.max(u,t-HX):(AG(e)&&(t=u),n=0);break;case Xm.End:l?t=Math.min(c,t+HX):(AG(e)&&(t=c),n=d);break;case Xm.PageDown:t=Math.min(c,t+HX);break;case Xm.PageUp:if(l)t=Math.max(u,t-HX);else{const e=s?BX(s):1,n=t-e;t=n>0&&n<=HX?e:Math.max(u,t-HX)}}return[t,n]},YX=e=>{((e,t)=>{e.querySelectorAll(t).forEach(e=>{e.setAttribute("tabIndex","-1")})})(e,".sn-table-cell[tabindex='0']")},XX=[Xm.Home,Xm.End,Xm.PageUp,Xm.PageDown],JX=()=>{const e=M(!1),t=M(0),n=M(0),r=M(null),o=M(null),i=M(null),a=M(0),s=eb(KK),l=eb(NG),u=Qg(gb)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE"),{rootElement:c,totalsPosition:d,rowCount:p,colCount:f,columnWidths:h}=Qg(_X),{firstBodyRowIdx:m,allowedRows:g,totalsRowIdx:b}=Qg(jX),{scrollToCell:v,scrollableContainerElement:y}=Qg(zX),{keyboard:x,isInSelectionMode:S,selectionsAPI:w,isSelectionsEnabled:C}=Qg(FX),{direction:E,announce:R,isInteractionEnabled:A,paginationNeeded:I,shouldRefocusRef:P}=Qg($X),D=k(()=>(e=>{const t=new Array(e.length+1);t[0]=0;for(let n=0;n<e.length;n++)t[n+1]=t[n]+(e[n]??0);return t})(h),[h]);O(()=>()=>{t.current+=1,n.current+=1,a.current+=1,r.current?.(),r.current=null,o.current?.(),o.current=null,i.current?.(),i.current=null},[]);const T=L((e,t,n,r)=>{const o=t=>{if(r&&!r())return void n?.(!1);const i=VX(c,e,d,p);if(i)return document.activeElement!==i&&HG(i),document.activeElement===i?void n?.(!0):t>0?void requestAnimationFrame(()=>{o(t-1)}):void n?.(!1);t>0?requestAnimationFrame(()=>{o(t-1)}):n?.(!1)};requestAnimationFrame(()=>{o(t)})},[c,d,p]),q=L((e,t)=>{const r=a.current+1;a.current=r;let i=0;const s=Date.now()+5e3,l=()=>{if(a.current!==r)return;if(n.current!==t)return;if(c instanceof HTMLElement&&!c.isConnected)return;if(Date.now()>s||i>=5)return;const u=document.activeElement;u&&u!==document.body&&u!==document.documentElement||(i+=1,P&&(P.current=!0),o.current?.(),o.current=WX(v,c,e,d,p,y,10,()=>a.current===r&&n.current===t,()=>{T(e,300,()=>{P&&(P.current=!1)},()=>a.current===r&&n.current===t)})),requestAnimationFrame(()=>{requestAnimationFrame(l)})};requestAnimationFrame(()=>{requestAnimationFrame(l)})},[T,c,p,v,y,P,d]),N=L(()=>(P&&(P.current=!0),t.current+=1,t.current),[P]),j=L(()=>{t.current+=1,i.current?.(),i.current=null},[]),_=L((e,n)=>{const r=o=>{t.current===e&&(i.current?.(),i.current=WX(v,c,n,d,p,y,10,()=>t.current===e,()=>{if(t.current!==e)return;const i=VX(c,n,d,p);i&&document.activeElement!==i&&HG(i),o>0?requestAnimationFrame(()=>{r(o-1)}):t.current===e&&P&&(P.current=!1)}))};requestAnimationFrame(()=>{requestAnimationFrame(()=>{r(300)})})},[c,d,p,v,P,y]),z=L((e,t)=>{if(!MG(e))return;Em(e),j(),n.current+=1;const o=n.current;a.current+=1,r.current?.(),r.current=null;const i=((e,t)=>BX(t)+e+(t.atBottom?1:0))(p,d),l=KX(e,t,i,f,E,g,d);YX(c),s(l);const[,u]=l,[,h]=t;return u!==h&&((e,t,n)=>{if(!e)return;const r=t[n]??0,o=t[n+1]??r,{scrollLeft:i,clientWidth:a}=e;r<i?e.scrollLeft=r:o>i+a&&(e.scrollLeft=o-a)})(y,D,u),P&&(P.current=!0),r.current=WX(v,c,l,d,p,y,10,()=>n.current===o,()=>{T(l,300,t=>{P&&(P.current=!1),t&&(e=>XX.includes(e))(e.key)&&q(l,o)},()=>n.current===o)}),l},[c,d,p,f,E,v,s,g,y,P,T,j,D,q]),F=L(e=>{e.key===Xm.Esc?x.enabled&&!S&&(Em(e),x.blur?.(!0)):kG(e.key)&&Em(e)},[x,S]),$=L((e,t,n)=>{switch(e.key){case Xm.C:Em(e),A&&(e.ctrlKey||e.metaKey)&&ig(e.currentTarget);break;case Xm.Enter:case Xm.Space:if(!A){Em(e);break}n?.(e);break;default:z(e,[0,t])}},[z,A]),H=L((t,r,o,i)=>{const a=[r+m,o];switch(t.key){case Xm.Space:if(Em(t),i.isSelectable&&C){e.current=!0;const n=N();l({type:KH.Select,payload:{cell:i,evt:t,announce:R}}),_(n,a)}break;case Xm.Enter:if(Em(t),e.current=!1,S){N(),s(JH),w?.confirm(),y&&(y.scrollTop=0,y.scrollLeft=0);const e=t=>{v?.(0,0),t>0&&requestAnimationFrame(()=>{e(t-1)})};e(10),n.current+=1;const t=n.current;T(JH,300,()=>{P&&(P.current=!1)},()=>n.current===t)}break;case Xm.Esc:if(e.current=!1,S){Em(t);const e=N();w?.cancel(),_(e,a)}break;case Xm.C:Em(t),A&&(t.ctrlKey||t.metaKey)&&ig(t.currentTarget);break;case Xm.Tab:{const e=t.shiftKey||!I;x.enabled&&S&&e&&(Em(t),Cm(t.currentTarget,x,t.shiftKey));break}default:{const n=t.key===Xm.Left||t.key===Xm.Right,r=S||Boolean(w?.isModal())||e.current;if(n&&r){Em(t);break}const o=z(t,a);!!o&&o[0]!==a[0]&&t.shiftKey&&C&&i.isSelectable&&l({type:KH.SelectMultiAdd,payload:{cell:i,evt:t,announce:R}});break}}},[m,z,C,l,R,S,w,x,I,A,N,_,s,v,y,T,P]),B=L(t=>{t.key===Xm.Space&&(e.current=!1),t.key===Xm.Shift&&l({type:KH.SelectMultiEnd})},[l]),V=L((e,t)=>{if(S)Em(e);else{if(e.key!==Xm.Space)return e.key===Xm.C?(Em(e),void(A&&(e.ctrlKey||e.metaKey)&&ig(e.currentTarget))):void z(e,[b,t]);e.preventDefault()}},[S,z,b,A]),W=L(e=>{j(),n.current+=1;const t=n.current;YX(c),s(e),x.enabled&&x.focus?.(),T(e,2,n=>{n&&q(e,t)},()=>n.current===t)},[c,s,x,T,j,q]);return{handleWrapperKeyDown:F,handleHeadKeyDown:$,handleBodyKeyDown:H,handleBodyKeyUp:B,handleTotalsKeyDown:V,focusHeadCellOnClick:L(e=>{u&&W([0,e])},[W,u]),focusBodyCellOnClick:L((e,t)=>{u&&W([e+m,t])},[W,m,u]),focusTotalsCellOnClick:L(e=>{u&&W([b,e])},[W,b,u])}};var ZX=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function QX(e,t){return e===t||!(!ZX(e)||!ZX(t))}function eJ(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!QX(e[n],t[n]))return!1;return!0}function tJ(e,t){var n;void 0===t&&(t=eJ);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var nJ="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function rJ(e){cancelAnimationFrame(e.id)}function oJ(e,t){var n=nJ();var r={id:requestAnimationFrame(function o(){nJ()-n>=t?e.call(null):r.id=requestAnimationFrame(o)})};return r}var iJ=-1;function aJ(e){if(void 0===e&&(e=!1),-1===iJ||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),iJ=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return iJ}var sJ=null;function lJ(e){if(void 0===e&&(e=!1),null===sJ||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?sJ="positive-descending":(t.scrollLeft=1,sJ=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),sJ}return sJ}var uJ=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function cJ(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,Ju(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Ju(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=tJ(function(e,t,n,o,i,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),r._callOnScroll=void 0,r._callOnScroll=tJ(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,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=r._getItemStyleCache(m&&s,m&&l,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h: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=tJ(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,s=t.scrollHeight,l=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(lJ()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-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&&rJ(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=oJ(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}$u(t,e),t.getDerivedStateFromProps=function(e,t){return dJ(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,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=aJ();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=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,m,this._instanceProps,x):m,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(lJ()){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&&rJ(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?uJ:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],E=S[1],R=this._getVerticalRangeToRender(),A=R[0],I=R[1],k=[];if(r>0&&g)for(var P=A;P<=I;P++)for(var M=w;M<=E;M++)k.push(C(t,{columnIndex:M,data:d,isScrolling:v?x:void 0,key:f({columnIndex:M,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,M)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:qn({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},C(u||c||"div",{children:k,ref:l,style:{height:D,pointerEvents:x?"none":void 0,width:T}}))},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],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.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,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},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,s=a.isScrolling,l=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),h=f(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(B),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var dJ=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},pJ=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 s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},fJ=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 s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},hJ=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 s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},mJ=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?gJ(e,t,n,i,0,r):bJ(e,t,n,Math.max(0,i),r)},gJ=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),s=hJ(e,t,a,n).offset;if(s===i)return a;s<i?o=a+1:s>i&&(r=a-1)}return o>0?o-1:0},bJ=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&hJ(e,t,r,n).offset<o;)r+=a,a*=2;return gJ(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},vJ=function(e,t,n,r,o,i,a){var s="column"===e?t.width:t.height,l=hJ(e,t,n,i),u="column"===e?fJ(t,i):pJ(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===r&&(r=o>=d-s&&o<=c+s?"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}},yJ=cJ({getColumnOffset:function(e,t,n){return hJ("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return mJ("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=hJ("column",e,t,r),s=n+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=hJ("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:pJ,getEstimatedTotalWidth:fJ,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return vJ("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return vJ("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return hJ("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return mJ("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=hJ("row",e,t,r),s=n+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=hJ("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}}),xJ=function(e,t){return e};function SJ(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=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=l(r.props,Ju(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Ju(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=tJ(function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})}),r._callOnScroll=void 0,r._callOnScroll=tJ(function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})}),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,c=r._getItemStyleCache(u&&s,u&&l,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"===l,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=tJ(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(lJ()){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&&rJ(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=oJ(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}$u(t,e),t.getDerivedStateFromProps=function(e,t){return wJ(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 s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?aJ():0:l.scrollHeight>l.clientHeight?aJ():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},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(lJ()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&rJ(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?xJ:d,f=e.layout,h=e.outerElementType,m=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,w=this._getRangeToRender(),E=w[0],R=w[1],A=[];if(u>0)for(var I=E;I<=R;I++)A.push(C(t,{data:c,key:p(I,c),index:I,isScrolling:b?y:void 0,style:this._getItemStyle(I)}));var k=r(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:qn({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},C(s||l||"div",{children:A,ref:a,style:{height:x?"100%":k,pointerEvents:y?"none":void 0,width:x?k:"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,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,l=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,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}(B),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var wJ=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},CJ=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=r(l);o[l]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},EJ=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=CJ(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},RJ=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&CJ(e,n,t).offset<r;)n+=i,i*=2;return EJ(e,t,Math.min(n,o-1),Math.floor(n/2),r)},AJ=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 s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},IJ=SJ({getItemOffset:function(e,t,n){return CJ(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:AJ,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=CJ(e,t,o),p=AJ(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=h-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return r>=h&&r<=f?r:r<h?h: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?EJ(e,t,o,0,n):RJ(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,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=CJ(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=CJ(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 kJ(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 PJ=["style"],MJ=["style"];function DJ(e,t){var n=e.style,r=Ln(e,PJ),o=t.style,i=Ln(t,MJ);return!kJ(n,o)&&!kJ(r,i)}const TJ=$g(0),OJ=$g(0),qJ=$g(0),LJ=$g(e=>e(TJ)+e(OJ)),NJ=$g(e=>{const t=e(Zb),n=e(kW),r=t.height-(n?41:0);return{width:t.width,height:r}}),jJ=$g(e=>{const t=e(NJ),n=e(KB),r=e(YB);return{width:t.width-r,height:t.height-n}}),_J=$g(e=>{const t=e(jJ),n=e(LJ),r=e(qJ);return Math.min(t.height-n,r)}),zJ=$g(-1),FJ=hk(e=>$g(t=>t(zJ)===e)),$J=({style:e})=>Yt.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var HJ=w.memo($J,DJ);const BJ=$g(e=>{const t=e(jJ),n=e(HW),r=e(LJ),o=e(qJ)+r,i=e(DX)*n+r;return o<2*t.height?o:i}),VJ=$g(e=>e(BJ)<=e(NJ).height),WJ=()=>{},UJ=e=>{e.preventDefault()};const GJ=({columnIndex:e,rowIndex:t,style:n,data:r})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u,onKeyDown:c,onKeyUp:d,onCellClick:p}=r,f=Qg(FJ(t)),h=eb(zJ),m=Qg(_W),g=Qg(Fb),b=Qg(qb),v=Qg(jb),y=Qg(_G),x=Qg(gb),S=Qg(VJ),w=o[t]?.[e],{handleMouseDown:C,handleMouseOver:E,handleMouseUp:R,cellSelectionState:A}=function(e){const t="object"==typeof e,n=Qg(Lb),r=eb(NG),o=Qg(jG(e));if(YY(e),t&&n){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=GY(UJ,e,r,WJ);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(w),I=((e,t,n,r)=>{const o=M(null),i=n&&(!n.isNumeric||n.isDual),a=n?.isTotalRow??!1,s=L(n=>{const o=n.contentBoxSize.at(0)?.blockSize;o&&i&&r(o,e,t,a)},[a,t,r,e,i]);return CK({ref:o,callback:s}),o})(t,e,w,s),k=i[e]?.isDim?m.dimension.values:m.measure.values,P=UY(i[e].id);if("object"==typeof w){const r=((e,t,n,r,o,i,a)=>{const s=e.isTotalRow&&a("TLV-2303-SUB-TOTALS");let l=ZY(o,i,e);l=s?i.subTotalRow:l,l=XY(l,i,e,t.isDim);const u=e.isNull||s&&t.isDim?l:aV(l,e.qAttrExps,t.qAttrExprInfoIDs);return r!==GH.Selected||s?r!==GH.Disabled||s?n?{...u,...i.grid.hoverColors}:u:{...u,color:n?i.grid.hoverColors?.color:u.color,background:`${AB}, ${n?i.grid.hoverColors?.background:u.background}`}:{...u,...i.selectedColors}})(w,i[e],a&&f,A,k,m,x),o={rowindex:t,columnindex:e},s=n=>{v&&p?.(t,e),C?.(n)},M=c?n=>{c(n,t,e,w)}:void 0;return Yt.jsx("div",{className:`sn-table-cell ${A} ${Ym}`,tabIndex:-1,style:{...n,...r,display:"flex",alignItems:"start",borderColor:m.grid.border,borderTop:"0px",borderBottomWidth:!S&&w.isLastRow?"0px":"1px",borderRightWidth:_B(g,w.isLastColumn,y),borderLeftWidth:zB(g,w.isLastColumn,y),justifyContent:qB(w,g),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:w.align,opacity:P},onMouseDown:s,onMouseUp:R,onMouseOver:E,onMouseEnter:a?()=>{h(t)}:void 0,onMouseLeave:a?()=>{h(-1)}:void 0,onKeyDown:M,onKeyUp:d,title:b?w.representation.text:void 0,...o,children:Yt.jsx(WY,{cellSelectionState:A,hideTickIcon:!!w.isTotalRow,children:Yt.jsx(HY,{forwardRef:m.contentStaticLineCount||1===l?void 0:I,cell:w,style:r,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return Yt.jsx(HJ,{style:{...n,...k,borderColor:m.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:P}})};var KJ=z(GJ,DJ);const YJ=ZR($g(async e=>{const t=e(yb),n=e(Gb),r=e(kX).page,{qDataPages:o}=t.qHyperCube;if(0!==r||0===o.length){const e=r*Math.min(sV,t.qHyperCube.qSize.qcy);if(n&&"getHyperCubeData"in n)return n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),XJ=$g(e=>{const t=e(DX),n=e(jJ),r=e(HW);return Math.min(t,Math.ceil(n.height/r))}),JJ=$g(e=>{const t=e(KW),n=e(jJ);return t.reduce((e,t)=>e.width<n.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}).count}),ZJ=e=>{const t=M(e);return t.current=e,t},QJ=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,eZ=e=>-1===e.qElemNumber||!!e.qIsTotalCell,tZ=(e,t,n,r,o)=>{const i=e[n];if(!i)return!0;for(let e=t;e<t+r;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},nZ=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some(e=>!e[t])},rZ=(e,t,n,r,o,i,a,s)=>{e.forEach(e=>{e.qMatrix.forEach((l,u)=>{const c=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,n,r,o,i,a,s,l,u)=>{const{qSize:c}=a.qHyperCube,d=r.qTop+n,p=o+n,f=e[p]??[],h=t.some(eZ);return t.forEach((e,t)=>{const n=t+r.qLeft;if(f.at(n))return;const{colIdx:o,isDim:m,isLocked:g,bodyTextAlign:b,selectionColIdx:v,qAttrExprInfoIndex:y,representation:x,conditionalColoring:S,qMiniChart:w}=i[n],C=s.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),E=!m&&e.qIsNull,R=m&&uW(e,m),A=E||R?lW(m,e,a,C):e.qText,I=E?eB(A):QH(e),k=QH(e)&&!eB(e.qText??"");f[n]={id:QF(),...e,align:iW(I,b,u),rowIdx:d,colIdx:o,isSelectable:m&&!g&&!h&&!R,isTotalRow:h,pageRowIdx:p,pageColIdx:n,selectionColIdx:v,isLastRow:d===c.qcy-1,isLastColumn:n===c.qcx-1,isNumeric:I,isDual:k,isNull:(!E||!I)&&uW(e,m),representation:YV({cell:e,representationProperties:x,attrExprInfoIndex:y,env:s,conditionalColoring:S,miniChartOnMeasure:w,getText:()=>A,direction:u,enabledFeatures:{[u$.Image]:!0,[u$.Indicator]:!0,[u$.MiniChart]:!0}})},l(f[n],d,n)}),{row:f,pageRowIdx:p}})(n,l,u,e.qArea,c,r,o,i,a,s);n[p]=d})})},oZ=({gridState:e,setEstimatedCellHeight:t})=>{const n=Qg(yb),r=Qg(nv),o=Qg(Gb),i=Qg(mb),a=Qg(Fb),s=Qg(kX),l=Qg(YJ),u=Qg(CW),c=Qg(DX),d=Qg(XJ),p=Qg(JJ),f=M([]),h=L((e,r)=>{const o=Array.isArray(r)?r.slice(0,c):(e=>Array(e).fill(void 0))(c);return rZ(e,s,o,u,n,i,t,a),f.current=o,o},[c,s,u,n,i,t,a]),[m,g]=P(()=>h(l??[]));$m(()=>{g(h(l??[]))},[l,a,c]);const b=((e,t)=>{const n=Qg(bb),r=M(new Set),o=M(new Set),i=M(new Set),a=ZJ(e),s=ZJ(t),l=k(()=>({enqueue:e=>{const t=QJ(e);i.current.has(t)||(r.current.add(e),i.current.add(t),1===r.current.size&&setTimeout(async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),o.current.add(e);try{const t=(e=>{const t=[];return e.forEach(e=>{if(t.length>0){const n=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(n,e)?n.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(n,e)?n.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})}),t})(e),n=await a.current(t);o.current.has(e)&&s.current(n)}catch(t){e.forEach(e=>{i.current.delete(QJ(e))}),n.error({msg:"Failed to fetch pages",payload:t})}finally{o.current.delete(e)}}},75))},clear:()=>{r.current.clear(),o.current.clear(),i.current.clear()}}),[n,a,s]);return l})(e=>o&&"getHyperCubeData"in o?o.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([]),e=>{g(t=>h(e,t))}),v=L((e,t,n,r)=>{for(let o=e;o<e+n;o++)if(nZ(f.current,o,t,r)){const e={qLeft:o,qTop:t,qHeight:r,qWidth:1};b.enqueue(e)}},[b]),y=L((e,t,n,r)=>{for(let o=t;o<t+r;o++){const t=Math.max(0,o-s.page*s.rowsPerPage);if(tZ(f.current,e,t,n,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:n};b.enqueue(t)}}},[b,s]);return O(()=>{if(void 0===l)return;const{qcx:t,qcy:r}=n.qHyperCube.qSize,o=e.current.overscanRowStartIndex,i=e.current.overscanColumnStartIndex,a=o+s.page*s.rowsPerPage,u=t-i,c=s.rowsPerPage-o,f=Math.min(100,u,t,p+5),h=Math.min(100,c,r,d+25);return y(i,a,f,h),()=>{b.clear()}},[l,n,d,p,s,b,y,e,r]),{rowsInPage:m,loadRows:y,loadColumns:v}},iZ=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},aZ=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,sZ=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>{const o=Qg(_W),i=Qg(KW),{estimateLineCount:a}=Lm(o.dimension.values),s=XB(o.dimension.values.fontSize),l=e||t||1===n;return L((e,t,o)=>{if(l||e.representation.type===u$.Image||e.isNumeric&&!e.isDual)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(n,Math.max(1,c));r(d*s,t,o,e.isTotalRow??!1)},[l,i,a,n,s,r])},lZ=({isStaticNbrOfLines:e,minRowHeight:t,state:n,staticRowHeight:r=0})=>{const o=Qg(XV);j(()=>{const i=e?r:((e,t)=>{const n=0===t?0:e/t;return Math.ceil(n)})(n.sumHeight,n.rowHeights.size);o.estimatedRowHeight=Math.max(i,t)},[e,t,n,r,o])},uZ=({isSnapshot:e,gridRef:t})=>{const n=Qg(_W),r=Qg(DX),[o,i]=P(()=>({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})),a=Qg($W),s=Qg(HW),l=Qg(BW),u=!!n.contentStaticLineCount,c=Math.max(8e6/r,s,l)-9,d=c+9,p=Math.max(1,Math.min(n.grid.contentLineClamp,Math.round(c/a))),f=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:n})=>n?t*e+8+1:void 0)({lineClamp:p,lineHeight:a,isStaticNbrOfLines:u});(({gridRef:e,setState:t})=>{const n=Qg(yb),r=Qg(kX),o=Qg(KW),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;$m(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})},[n.qHyperCube.qSize.qcx,n.qHyperCube.qSize.qcy,r.page,i,a]),$m(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,setState:i});const h=(({setState:e,maxCellHeight:t,gridRef:n})=>{const r=Qg(HW),o=Qg(BW);return L((i,a,s,l=!1)=>{$(()=>{e(e=>{const u=l?o:r,c=Math.max(u,i+9),d=Math.min(t,c),p=e.cellHeightsInGrid.get(a)??e.cellHeightsInGrid.set(a,new Map).get(a);if(!aZ(p.get(s),d))return e;const f={...e},h=e.rowHeights.get(a);p.set(s,d);const m=void 0===h||d>=h?d:iZ(p);return f.rowHeights.set(a,m),f.sumHeight=e.sumHeight-(h??0)+m,n.current?.resetAfterIndices({columnIndex:s,rowIndex:a,shouldForceUpdate:!1}),f})})},[e,t,r,o,n])})({maxCellHeight:d,setState:i,gridRef:t}),m=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>L((o,i,a,s)=>{e||t||1===n||r(o,i,a,s)},[e,t,n,r]))({isSnapshot:e,isStaticNbrOfLines:u,lineClamp:p,setCellHeight:h}),g=sZ({isSnapshot:e,isStaticNbrOfLines:u,lineClamp:p,setCellHeight:h}),b=L(e=>u?f??s:o.rowHeights.get(e)??s,[u,s,o.rowHeights,f]);return lZ({isStaticNbrOfLines:u,minRowHeight:s,state:o,staticRowHeight:f}),{setMeasuredCellHeight:m,setEstimatedCellHeight:g,getRowHeight:b,lineClamp:p}},cZ=(e,t)=>{j(()=>()=>{t(0)},[e,t]);const n=L(e=>{const n=e.contentBoxSize.at(0)?.blockSize;void 0!==n&&t(n)},[t]);CK({ref:e,callback:n})};let dZ=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const pZ=({loadRows:e,loadColumns:t,gridState:n})=>{const r=Qg(XV),o=Qg(yb),i=Qg(kX),a=Qg(DX);return L(({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},n,r)=>{let o,i;return o=r>t?dZ.Down:r<t?dZ.Up:dZ.None,i=n>e?dZ.Right:n<e?dZ.Left:dZ.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(n.current,s,u);if(n.current.overscanColumnStartIndex=s,n.current.overscanColumnStopIndex=l,n.current.overscanRowStartIndex=u,n.current.overscanRowStopIndex=c,u>a)return;const b=s,v=u+i.page*i.rowsPerPage,y=l-s+1,x=c-u+1;if(r.visibleLeft=d,r.visibleWidth=p-d+1,r.visibleTop=f+i.page*i.rowsPerPage,r.visibleHeight=h-f+1,r.page=i.page,r.rowsPerPage=i.rowsPerPage,m===dZ.Down){const t=x+25;e(b,v,y,u+t>a?a-u:t)}else if(m===dZ.Up){const t=x+25,n=i.page*i.rowsPerPage,r=Math.max(n,v-25);e(b,r,y,t)}if(g===dZ.Right){const e=o.qHyperCube.qSize.qcx-b,n=y+5,r=Math.min(e,n);t(b,v,r,x)}else if(g===dZ.Left){const e=Math.max(0,b-5),n=Math.min(o.qHyperCube.qSize.qcx,y+5);t(e,v,n,x)}},[n,a,i.page,i.rowsPerPage,r,e,o.qHyperCube.qSize.qcx,t])};const fZ=({columnIndex:e,data:t,rowIndex:n})=>{const r=t.rowsInPage[n]?.[e];return r?.id??`${n}-${e}`},hZ=(e,t)=>{if(!e||!t)return;const n=e.scrollHeight-e.clientHeight,r=Math.round(n*(e=>{const t=e.scrollHeight-e.clientHeight;return t<=0?0:Math.max(0,Math.min(1,e.scrollTop/t))})(t));e.scrollTop!==r&&(e.scrollTop=r)},mZ={overflow:"hidden",willChange:"auto"},gZ=F((e,t)=>{const{handleBodyKeyDown:n,handleBodyKeyUp:r,focusBodyCellOnClick:o}=JX(),i=Qg(CW),a=Qg(jJ),s=eb(qJ),l=Qg(_J),u=Qg(XV),c=Qg(yb),d=Qg(Fb),p=Qg(KW),f=Qg(DX),h=Qg(OX),m=eb(TX),g=M(null),b=M(null),v=M(null),y=M({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),x=M(0),S=!!nV(c)?.content?.hoverEffect,{setMeasuredCellHeight:w,setEstimatedCellHeight:C,getRowHeight:E,lineClamp:R}=uZ({isSnapshot:!!c.snapshotData,gridRef:g}),{rowsInPage:A,loadRows:I,loadColumns:P}=oZ({gridState:y,setEstimatedCellHeight:C}),D=pZ({loadRows:I,loadColumns:P,gridState:y}),T=pY(),q=k(()=>({rowsInPage:A,columns:i,isHoverEnabled:S,lineClamp:R,setMeasuredCellHeight:w,resizeObserverTaskScheduler:T,onKeyDown:n,onKeyUp:r,onCellClick:o}),[A,i,S,R,w,T,n,r,o]);return j(()=>{1===x.current&&g.current?.scrollToItem({rowIndex:f-1,align:"start"})}),function(e){const t=eb(NG),{shouldRefocusRef:n}=Qg($X),r=Qg(Qb),o=Qg(MX);O(()=>{t({type:KH.UpdatePageRows,payload:{pageRows:e}})},[t,e]);const i=L(()=>{n&&(n.current=r.contains(document.activeElement))},[n,r]);fY({updateShouldRefocus:i,tableWrapperRef:{current:o}})}(A),H(t,()=>({interpolatedScrollTo:(e,t)=>{const n=(v.current?.clientHeight??l)-l,r=Math.round(n*e);x.current=e,1===x.current?(g.current?.scrollToItem({rowIndex:f-1,align:"start"}),g.current?.scrollTo({scrollLeft:t})):g.current?.scrollTo({scrollTop:r,scrollLeft:t})}}),[v,l,f]),O(()=>(m(()=>(e,t)=>{g.current?.scrollToItem({rowIndex:e,columnIndex:t,align:"auto"}),hZ(h,b.current)}),()=>{m(null)}),[h,m]),cZ(v,s),Yt.jsx(yJ,{"data-key":"body",ref:g,outerRef:b,innerRef:v,style:mZ,columnCount:i.length,columnWidth:e=>p[e],height:l,rowCount:f,rowHeight:E,estimatedRowHeight:u.estimatedRowHeight,width:a.width,itemData:q,onItemsRendered:D,itemKey:fZ,className:"sn-table-body",direction:d,children:KJ})});var bZ=z(gZ);const vZ=({children:e})=>{const t=Qg(JW),n=Qg(BJ);return Yt.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:n},children:e})},yZ=(e,t)=>{const n=M(null),r=Qg(KW);j(()=>{n.current&&t(n.current.getBoundingClientRect().height+9,e)},[t,n,e,r.length]);const o=L(n=>{const r=n.contentBoxSize.at(0)?.blockSize;r&&t(r+9,e)},[e,t]);return CK({ref:n,callback:o}),n},xZ=Mu("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({interactions:e,hoverBackground:t,background:n,applicableStyle:r,color:o})=>({...r,background:n,color:o,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}})),SZ=({index:e,style:t,data:n})=>{const{columns:r,columResizeHandler:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=Qg(_W),u=Qg(Fb),c=Qg(Tb),d=Qg(_G),p=eb(GB),f=Qg(wW),h=Qg(jb),m=Qg(KW)[e],g=Qg(Ub),b=Qg(YK(e)),v=r[e],{open:y,setOpen:x,handleOpenMenu:S,toggleSortOrder:w}=mX({isInteractionEnabled:h,column:v}),C=Qg(Ib),E=yZ(e,i),R=r.length-1===e,A=C?hK:qK,{ref:I,isDragging:k}=yX(v,e),P=UY(v.id),M=b&&!g.enabled&&h?0:-1,D=a?t=>{a(t,e,S)}:void 0;return Yt.jsxs(xZ,{"data-dragging":k,ref:I,className:`sn-table-cell ${Ym}`,title:c.passive?v.label:void 0,onClick:C?S:w,applicableStyle:{...l.header,...FG(l,f,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:_B(u,R,d),borderLeftWidth:zB(u,R,d),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:v.headTextAlign,boxSizing:"border-box",zIndex:r.length-e,flexDirection:"right"===v.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:P},interactions:c,hoverBackground:v.headerColor?.headerMenuHoverBackground??l.headerMenuHoverBackground,background:C&&y?v.headerColor?.headerMenuActiveBackground??l.headerMenuActiveBackground:v.headerColor?.background??l.header.background,color:v.headerColor?.color??l.header.color,tabIndex:M,onKeyDown:D,onMouseDown:t=>{t.preventDefault(),h&&s?.(e)},"data-col":e,children:[Yt.jsx(A,{forwardRef:E,column:v,isInteractionEnabled:h,open:y,setOpen:x,columnWidth:m}),Yt.jsx(fX,{column:v,isLastColumn:R,onColumnResize:o,setIsAdjustingWidth:p})]})},wZ=e=>{const[t,n]=P(new Map);$m(()=>{n(new Map)},[e.length]);const r=L((e,t)=>{n(n=>aZ(n.get(t),e)?new Map(n).set(t,e):n)},[]);return{rowHeight:k(()=>iZ(t),[t]),setMeasuredCellHeight:r}},CZ=(e,t)=>{H(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},EZ=e=>{const t=Qg(nv),n=Qg(yb),r=Qg(kX),o=Qg(KW);$m(()=>{e.current?.resetAfterIndex(0,!1)},[n,r,e,o,t])},RZ={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},AZ=F((e,t)=>{const{columResizeHandler:n}=e,r=Qg(CW),o=Qg(jJ),i=eb(TJ),a=w.useRef(null),s=M(null),l=Qg(zW),u=Qg(yb),c=Qg(Hb),d=Qg(Fb),p=Qg(KW),{rowHeight:f,setMeasuredCellHeight:h}=wZ(r),m=dX(c,u),{handleHeadKeyDown:g,focusHeadCellOnClick:b}=JX();return CZ(t,a),EZ(a),cZ(s,i),Yt.jsx(IJ,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...RZ,...m?{display:"none"}:void 0},itemCount:r.length,itemSize:e=>p[e],height:Math.max(f+8,l),width:o.width,itemKey:e=>r[e].id,itemData:{columns:r,columResizeHandler:n,setMeasuredCellHeight:h,onKeyDown:g,onCellClick:b},direction:d,children:SZ})});var IZ=z(AZ);const kZ=F((e,t)=>{const{children:n,onScroll:r}=e,o=Qg(Fb),i=Qg(Nb),{width:a,height:s}=Qg(NJ),l=eb(OX),u=L(e=>{l(e),"function"==typeof t?t(e):t&&(t.current=e)},[t,l]);return Yt.jsx("div",{"data-testid":"scrollable-container",ref:u,style:{overflow:i?"auto":"hidden",width:a,height:s},onScroll:r,dir:o,tabIndex:-1,children:n})}),PZ=({children:e})=>{const t=Qg(Fb),n=Qg(jJ);return Yt.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==t?"0px":void 0,right:"rtl"===t?"0px":void 0,width:n.width,height:n.height},children:e})},MZ=({index:e,style:t,data:n})=>{const{columns:r,totals:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=Qg(_W),u=Qg(yb),c=Qg(Fb),d=Qg(qb),p=Qg(jb),f=Qg(_G),h=Qg(VJ),m=yZ(e,i),g=r[e].totalInfo,{totalsTextAlign:b,isTotalNumeric:v}=r[e],y=u.qHyperCube.qSize.qcx-1===e,x=UY(r[e].id),S=a?t=>{a(t,e)}:void 0;return Yt.jsx("div",{className:`sn-table-cell ${Ym}`,tabIndex:-1,title:d?g:void 0,"data-col":e,onKeyDown:S,onMouseDown:t=>{t.preventDefault(),p&&s?.(e)},style:{...t,...l.totalRow,...FG(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:_B(c,y,f),borderLeftWidth:zB(c,y,f),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:h&&o.atBottom||o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:b,textAlign:b,boxSizing:"border-box",cursor:"default",opacity:x},children:Yt.jsx(fK,{forwardRef:v?void 0:m,isNumeric:v,children:g})})},DZ=F((e,t)=>{const{totals:n}=e,r=Qg(CW),o=Qg(jJ),i=eb(OJ),a=M(null),s=M(null),l=Qg(FW),u=Qg(Fb),c=Qg(yb),d=Qg(KW),{rowHeight:p,setMeasuredCellHeight:f}=wZ(r),{handleTotalsKeyDown:h,focusTotalsCellOnClick:m}=JX();return CZ(t,a),EZ(a),cZ(s,i),Yt.jsx(IJ,{className:"sn-table-totals-row",ref:a,outerRef:s,layout:"horizontal",style:RZ,itemCount:c.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l),width:o.width,itemData:{columns:r,totals:n,setMeasuredCellHeight:f,onKeyDown:h,onCellClick:m},direction:u,children:MZ})});var TZ=z(DZ);const OZ=(e,t,n)=>{const r=Qg(Fb),o=Qg(XV);return L(i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,u=((e,t)=>{const{scrollWidth:n,clientWidth:r,scrollLeft:o}=e,i=n-r;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,r),c=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=c,o.scrollLeft=u,n.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)},[o,n,e,t,r])};var qZ=z(()=>{const e=Qg(wW),t=M(null),n=M(null),r=M(null),o=M(null),i=OZ(n,r,o),a=L(()=>{t.current&&(t.current.scrollTop=0)},[t]);XK(),(e=>{const t=Qg(EW),n=Qg(kX),r=Qg(nv),o=Qg(DX);O(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),O(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[n,o,r,e])})(t),iY(t);const s=Yt.jsx(TZ,{ref:r,totals:e},"totals");return Yt.jsxs(WK,{children:[Yt.jsx(kZ,{ref:t,onScroll:i,children:Yt.jsxs(vZ,{children:[Yt.jsxs(PZ,{children:[Yt.jsx(IZ,{ref:n,columResizeHandler:a}),e.atTop?s:null,Yt.jsx(bZ,{ref:o}),e.atBottom?s:null]}),Yt.jsx(zG,{})]})}),Yt.jsx(_K,{isPagination:!1})]})});const LZ=()=>{const e=Qg(yb),t=Qg(Zb),n=Qg(Tb),{paginationNeeded:r,totalRowCount:o,totalColumnCount:i,totalPages:a}=Qg(SW),s=Qg(nv),l=Qg(rv),u=Qg(Ub),[c,d]=tb(kX),p=M(null),f=M(!1),h=eb(PX),m=eb(MX);O(()=>{h(f)},[h]);const g=w.useCallback(e=>{p.current=e,m(e)},[m]),{handleWrapperKeyDown:b}=JX();return(()=>{const e=Qg(Qb),{keyboard:t}=Qg(FX),n=Qg(KK),r=Qg(wW),o=Qg(DX),{scrollToCell:i}=Qg(zX),{shouldRefocusRef:a}=Qg($X),s=M({focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}),l=M(null),u=M(null);j(()=>{s.current={focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}},[n,r,o,i,e]),O(()=>{let e=!1;const{focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:c}=s.current;if("function"==typeof c.querySelector){if(t.active){const[t,a]=n,d=r.atTop?2:1;if(t>=d&&t<d+o){null!==u.current&&(cancelAnimationFrame(u.current),u.current=null),i?.(t-d,a);const n=t=>{if(e)return;const r=VX(s.current.rootElement,s.current.focusedCellCoord,s.current.totalsPosition,s.current.rowCount);r&&document.activeElement!==r&&HG(r),r&&document.activeElement===r||t>0&&(l.current=requestAnimationFrame(()=>{n(t-1)}))};l.current=requestAnimationFrame(()=>{e||n(5)})}else{const e=VX(c,n,r,o);e&&HG(e)}}else null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),u.current=requestAnimationFrame(()=>{if(e)return;const t=s.current;if(a?.current)return;if(t.rootElement.contains(document.activeElement))return;const n=VX(t.rootElement,t.focusedCellCoord,t.totalsPosition,t.rowCount);n?.blur(),YX(t.rootElement)});return()=>{e=!0,null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),null!==u.current&&(cancelAnimationFrame(u.current),u.current=null)}}},[t.active,e,a])})(),GK(p,f),Yt.jsxs(uK,{ref:g,"data-testid":"sn-table",onKeyDown:b,children:[Yt.jsx(uY,{}),Yt.jsx(qZ,{}),Yt.jsx(CG,{paginationNeeded:r,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:u,translator:l,theme:s,interactions:n,rect:t,layout:e})]})};var NZ=z(LZ);const jZ=e=>{const t=e.get(Gb),n=e.get(Vb),r=e.get(vb),o=e.get(Fb);a(()=>{r&&t&&(n?function(e){const t=e.get(Fb),n=e.get(tv),r=QW(t);n.render(Yt.jsx(yi,{stylisPlugins:"rtl"===t?[BH]:void 0,children:Yt.jsx(Tu,{theme:r,children:Yt.jsx(Gg,{store:e,children:Yt.jsx(ZW,{children:Yt.jsx(CX,{})})})})}))}(e):function(e){const t=e.get(Fb),n=e.get(tv),r=QW(t);n.render(Yt.jsx(w.StrictMode,{children:Yt.jsx(Tu,{theme:r,children:Yt.jsx(Gg,{store:e,children:Yt.jsx(ZW,{children:Yt.jsx(NZ,{})})})})}))}(e))},[r,n,e,t,o])};function _Z(e,t){const n=e.getElementsByClassName("sn-table-container")[0];if(!n)return{};const r=n.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:r.y+i.height+(t.atTop?s.height:0),bottom:r.y+r.height-(t.atBottom?s.height:0)},c=((e,t)=>{if(!e)return-1;for(let n=0;n<e.length;n++)if(e[n].getBoundingClientRect().bottom>t.top)return n;return-1})(l,u),d=((e,t)=>{if(!e)return-1;for(let n=e.length-1;n>-1;n--){const r=e[n].getBoundingClientRect();if(t.bottom>r.top)return n}return-1})(l,u),p=((e,t,n)=>{if(!e||0===e.length||n<0)return 0;const r=e[n].getBoundingClientRect();return Math.max(t.top-r.top,0)})(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const zZ=(e,t)=>{if(t)for(let n=0;n<t.length;n++){const r=t[n].getAttribute("rowindex");if(r&&parseInt(r,10)===e)return t[n]}},FZ=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const $Z=(e,t,n,r,o)=>{if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||cW.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},HZ=(e,t,n,r,o)=>{if(r&&!r.isMultiPage)return r;const i=tW(e,r);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=_Z(n,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:$Z(a,o,e,t,r),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}}const{visibleRowStartIndex:a=-1,visibleRowEndIndex:s=-1}=function(e,t){const n=e.querySelector(".sn-table-body"),r=n?.getBoundingClientRect(),o=n?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!r)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=zZ(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=r.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+c,visibleRowEndIndex:p+c};const g=r.y+r.height,b=(FZ(h,m,g)?d:d+1)+c;let v=p+c;const y=zZ(p,o),x=y?.getBoundingClientRect();return y&&x&&(FZ(x,m,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(n,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:$Z(s,a,e,t,r),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},BZ=({store:e})=>{const t=e.get(yb),n=e.get(Gb),r=e.get(Qb),o=e.get(Jb),i=e.get(Hb),a=e.get(Vb);c(async s=>{const l=s;if(!l.snapshotData||!n||l.snapshotData.content)return l;if("getHyperCubeData"in n){const s=e.get(XV),{rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b}=HZ(t,s,r,i,a);l.qHyperCube.qDataPages=await n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:h,qWidth:t.qHyperCube.qSize.qcx,qHeight:m}]),l.snapshotData.content={rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b,size:{width:o.width,height:o.height},estimatedRowHeight:s.estimatedRowHeight}}return l}),d(()=>({getViewState:()=>HZ(t,e.get(XV),r,i,a)}),[t,e,r,a])},VZ={version:JSON.stringify("6.54.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};var WZ=e=>({properties:{initial:VZ},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:t=>Ev({...t,env:e}),exportProperties:vv,exploration:BF(e)});const UZ=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),GZ=e=>e.getStyle("object","straightTableV2","backgroundColor")}}});
|
|
121
|
+
*/var iH=(rH||(rH=1,function(e,t){var n;function r(e,t){var n=[],r=0;function o(e){return n.push(e),t}function i(){return n[r++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}n=new function(){var e="`TMP`",t="`COMMENT`",n="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",a="direction\\s*:\\s*",s="['\"]?\\s*",l="(^|[^a-zA-Z])",u="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",c="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",d="(?:[_a-z0-9-]|"+n+"|"+c+")",p=o+"(?:\\s*"+i+"|-?(?:[_a-z]|"+n+"|"+c+")"+d+"*)?",f="((?:-?"+p+")|(?:inherit|auto))",h="((?:-?"+p+")|(?:inherit|auto)|(?:calc\\((?:(?:(?:\\(|\\)|\\t| )|(?:-?"+o+"(?:\\s*"+i+")?)|(?:\\+|\\-|\\*|\\/)){3,})\\)))",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+n+"|"+c+")*?",b="(?![a-zA-Z])",v="(?!("+d+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",y="(?!"+g+s+"\\))",x="(?="+g+s+"\\))",S="(\\s*(?:!important\\s*)?[;}])",w=/`TMP`/g,C=/`TMPLTR`/g,E=/`TMPRTL`/g,R=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),A=new RegExp("("+u+v+"[^;}]+;?)","gi"),I=new RegExp("("+u+"[^\\}]*?})","gi"),k=new RegExp("("+a+")ltr","gi"),P=new RegExp("("+a+")rtl","gi"),M=new RegExp(l+"(left)"+b+y+v,"gi"),D=new RegExp(l+"(right)"+b+y+v,"gi"),T=new RegExp(l+"(left)"+x,"gi"),O=new RegExp(l+"(right)"+x,"gi"),q=/(:dir\( *)ltr( *\))/g,L=/(:dir\( *)rtl( *\))/g,N=new RegExp(l+"(ltr)"+x,"gi"),j=new RegExp(l+"(rtl)"+x,"gi"),_=new RegExp(l+"([ns]?)e-resize","gi"),z=new RegExp(l+"([ns]?)w-resize","gi"),F=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+h+"(\\s+)"+h+"(\\s+)"+h+"(\\s+)"+h+S,"gi"),$=new RegExp("((?:-color|border-style)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+S,"gi"),H=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+p+")","gi"),B=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),V=new RegExp("(border-radius\\s*:\\s*)"+f+"(?:(?:\\s+"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?)?(?:(?:(?:\\s*\\/\\s*)"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?(?:\\s+"+f+")?)?"+S,"gi"),W=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+f,"gi"),U=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+m,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+m+"(\\s*)"+f,"gi"),K=new RegExp("(text-shadow\\s*:\\s*)"+f,"gi"),Y=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+f+"(\\s*\\))","gi"),X=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+f+"((?:\\s*,\\s*"+f+"){0,2}\\s*\\))","gi");function J(e,t,n){var r,o;return t.split("(").length>t.split(")").length?e:("%"===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 Z(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 Q(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?Z(r)+" / "+Z(o):Z(r))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,n){return t+ee(n)}function ne(e,t,n,r,o){return t+n+ee(r)+o}function re(e,t,n,r,o){return t+n+r+ee(o)}return{transform:function(n,o){var i=new r(A,"`NOFLIP_SINGLE`"),a=new r(I,"`NOFLIP_CLASS`"),s=new r(R,t);return n=s.tokenize(a.tokenize(i.tokenize(n.replace("`","%60")))),o.transformDirInUrl&&(n=n.replace(q,"$1`TMPLTR`$2").replace(L,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(j,"$1ltr").replace(w,"rtl").replace(C,"ltr").replace(E,"rtl")),o.transformEdgeInUrl&&(n=n.replace(T,"$1"+e).replace(O,"$1left").replace(w,"right")),n=n.replace(k,"$1"+e).replace(P,"$1ltr").replace(w,"rtl").replace(M,"$1"+e).replace(D,"$1left").replace(w,"right").replace(_,"$1$2"+e).replace(z,"$1$2e-resize").replace(w,"w-resize").replace(V,Q).replace(W,te).replace(U,re).replace(G,re).replace(K,te).replace(Y,ne).replace(X,ne).replace(F,"$1$2$3$8$5$6$7$4$9").replace($,"$1$2$3$8$5$6$7$4$9").replace(H,J).replace(B,J),n=i.detokenize(a.detokenize(s.detokenize(n)))}}},e.exports?t.transform=function(e,t,r){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof r&&(o.transformEdgeInUrl=r)),n.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=n)}(oH,oH.exports)),oH.exports),aH=Bt(iH),sH="comm",lH="rule",uH="decl",cH=Math.abs,dH=String.fromCharCode;function pH(e){return e.trim()}function fH(e,t,n){return e.replace(t,n)}function hH(e,t){return 0|e.charCodeAt(t)}function mH(e,t,n){return e.slice(t,n)}function gH(e){return e.length}function bH(e,t){return t.push(e),e}var vH=1,yH=1,xH=0,SH=0,wH=0,CH="";function EH(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:vH,column:yH,length:a,return:"",siblings:s}}function RH(){return wH=SH>0?hH(CH,--SH):0,yH--,10===wH&&(yH=1,vH--),wH}function AH(){return wH=SH<xH?hH(CH,SH++):0,yH++,10===wH&&(yH=1,vH++),wH}function IH(){return hH(CH,SH)}function kH(){return SH}function PH(e,t){return mH(CH,e,t)}function MH(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function DH(e){return pH(PH(SH-1,qH(91===e?e+2:40===e?e+1:e)))}function TH(e){for(;(wH=IH())&&wH<33;)AH();return MH(e)>2||MH(wH)>3?"":" "}function OH(e,t){for(;--t&&AH()&&!(wH<48||wH>102||wH>57&&wH<65||wH>70&&wH<97););return PH(e,kH()+(t<6&&32==IH()&&32==AH()))}function qH(e){for(;AH();)switch(wH){case e:return SH;case 34:case 39:34!==e&&39!==e&&qH(wH);break;case 40:41===e&&qH(e);break;case 92:AH()}return SH}function LH(e,t){for(;AH()&&e+wH!==57&&(e+wH!==84||47!==IH()););return"/*"+PH(t,SH-1)+"*"+dH(47===e?e:AH())}function NH(e){for(;!MH(IH());)AH();return PH(e,SH)}function jH(e){return function(e){return CH="",e}(_H("",null,null,null,[""],e=function(e){return vH=yH=1,xH=gH(CH=e),SH=0,[]}(e),0,[0],e))}function _H(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y=0,x="",S=o,w=i,C=r,E=x;g;)switch(h=y,y=AH()){case 40:108!=h&&58==hH(E,d-1)?(v++,E+="("):E+=DH(y);break;case 41:v--,E+=")";break;case 34:case 39:case 91:E+=DH(y);break;case 9:case 10:case 13:case 32:if(v>0){E+=dH(y);break}E+=TH(h);break;case 92:E+=OH(kH()-1,7);continue;case 47:switch(IH()){case 42:case 47:bH(FH(LH(AH(),kH()),t,n,l),l),5!=MH(h||1)&&5!=MH(IH()||1)||!gH(E)||" "===mH(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*m:s[u++]=gH(E)*b;case 125*m:case 59:case 0:if(v>0&&y){E+=dH(y);break}switch(y){case 0:case 125:g=0;case 59+c:-1==b&&(E=fH(E,/\f/g,"")),f>0&&(gH(E)-d||0===m)&&bH(f>32?$H(E+";",r,n,d-1,l):$H(fH(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if(bH(C=zH(E,t,n,u,c,o,s,x,S=[],w=[],d,i),i),123===y)if(0===c)_H(E,t,C,C,S,i,d,s,w);else{switch(p){case 99:if(110===hH(E,3))break;case 108:if(97===hH(E,2))break;default:c=0;case 100:case 109:case 115:}c?_H(e,C,C,r&&bH(zH(e,C,C,0,0,o,s,x,o,S=[],d,w),w),o,w,d,s,r?S:w):_H(E,C,C,C,[""],w,0,s,w)}}u=c=f=0,m=b=1,x=E="",d=a;break;case 58:d=1+gH(E),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==RH())continue;switch(E+=dH(y),y*m){case 38:b=c>0?1:(E+="\f",-1);break;case 44:if(v>0)break;s[u++]=(gH(E)-1)*b,b=1;break;case 64:45===IH()&&(E+=DH(AH())),p=IH(),c=d=gH(x=E+=NH(kH())),y++;break;case 45:45===h&&2==gH(E)&&(m=0)}}return i}function zH(e,t,n,r,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=function(e){return e.length}(f),m=0,g=0,b=0;m<r;++m)for(var v=0,y=mH(e,p+1,p=cH(g=a[m])),x=e;v<h;++v)(x=pH(g>0?f[v]+" "+y:fH(y,/&\f/g,f[v])))&&(l[b++]=x);return EH(e,t,n,0===o?lH:s,l,u,c,d)}function FH(e,t,n,r){return EH(e,t,n,sH,dH(wH),mH(e,2,-2),0,r)}function $H(e,t,n,r,o){return EH(e,t,n,uH,mH(e,0,r),mH(e,r+1,-1),r,o)}function HH(e,t,n){switch(e.type){case"@import":case uH:case sH:return e.return=e.return||e.value;case lH:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===sH&&(e.children=e.value)})}var r=function(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}(Array.prototype.concat(e.children),HH);return gH(r)?e.return=e.value+"{"+r+"}":""}function BH(e,t,n,r){if("@keyframes"===e.type||"@supports"===e.type||e.type===lH&&(!e.parent||"@media"===e.parent.type||e.parent.type===lH)){var o=aH.transform(HH(e));e.children=o?jH(o)[0].children:[],e.return=""}}Object.defineProperty(BH,"name",{value:"stylisRTLPlugin"});const VH=hk(({options:e,...t})=>$g(qm(t,e)()),(e,t)=>e.fontSize===t.fontSize&&e.fontFamily===t.fontFamily&&e.fontStyle===t.fontStyle&&e.fontWeight===t.fontWeight&&e.options?.maxNbrLinesOfText===t.options?.maxNbrLinesOfText&&e.options?.allowLineBreaks===t.options?.allowLineBreaks);class WH{#y={on:new Map,once:new Map};#x=10;#S(e){this.listenerCount(e)>this.#x&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#w(e,t,n){const r=this.#y[e].get(t)??new Set;r.add(n),this.#y[e].set(t,r),this.#S(t)}setMaxListeners(e){this.#x=e}on(e,t){this.#w("on",e,t)}once(e,t){this.#w("once",e,t)}off(e,t){this.#y.on.get(e)?.delete(t),this.#y.once.get(e)?.delete(t)}emit(e,...t){this.#y.on.get(e)?.forEach(e=>{e(...t)}),this.#y.once.get(e)?.forEach(e=>{e(...t)}),this.#y.once.delete(e)}listenerCount(e){return(this.#y.on.get(e)?.size??0)+(this.#y.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#y.on.clear(),this.#y.once.clear()):(this.#y.on.delete(e),this.#y.once.delete(e))}}const UH=$g(()=>new WH);let GH=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),KH=function(e){return e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows",e}({}),YH=function(e){return e.A="ascending",e.D="descending",e}({}),XH=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const JH=[0,0],ZH=e=>"number"==typeof e&&!Number.isNaN(+e),QH=e=>ZH(e.qNum),eB=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),tB=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),nB=(e,t,n)=>{const r=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return n.getColorPickerColor(r)},rB=(e,t,n)=>{const r={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const n=e.limits&&e.limits.concat().sort((e,t)=>e.value-t.value);return{lowerLimit:n&&t>0?n[t-1]:{value:0,gradient:!1},upperLimit:n&&n[t]?n[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,n,r,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=r===i.value?1:(r-a.value)/(i.value-a.value);return a.gradient&&i.gradient?r-a.value<i.value-r?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[n].color,t:r}})(a,r,t,n,e);return se(e.localPaletteColors[t].color??"").blend(se(s.color??""),s.t)},oB=(e,t,n)=>{const r=((e,t)=>{const{limits:n}=e;return n&&(e.limits=n.sort((e,t)=>e.value-t.value),e.limits=n.map(e=>({...e,value:tB(t,e.value)}))),e})({...e},t),o=r.paletteColors||r.localPaletteColors;return o&&(r.localPaletteColors=o.concat().map((e,t)=>({color:nB(r,t,n)}))),r},iB=(e,t,n,r)=>{const o=oB(e,n,r),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let n="",r=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=r&&t<i){n=rB(e,a,t);break}r=i}return n})(o,t);return a},aB=(e,t)=>{const n=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),r=n.some(e=>!ZH(e));return 0===n.length||r?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===n.length?((e,t)=>{const n=e[0]-t;if(0===n||!ZH(n)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return n>0?{min:t-.5*Math.abs(t),max:e[0]+2*n}:{min:e[0]+2*n,max:t+.5*Math.abs(t)}})(n,t):((e,t)=>{let n=e[e.length-1]-e[0];return n=n>0?n:1,{min:Math.min(t,e[0])-n/2,max:Math.max(t,e[e.length-1])+n/2}})(n,t)},sB=(e,t)=>{const{limits:n}=e.segments;if(!n)return;const r=((e,t)=>{const{min:n,max:r}=aB(e,t),o=Math.abs(t);return{min:n??t-o,max:r??t+o}})(n,t),o=((e,t,n)=>{const{limits:r,paletteColors:o,localPaletteColors:i}=e.segments;if(!r||!ZH(t))return 0;let a=n&&ZH(n)?Math.min(n,t):0;const s=r.sort((e,t)=>e.value-t.value),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,r.min);return{limitRange:r,limitPaletteColorIndex:o}},lB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),uB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),cB=F((e,t)=>Yt.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[Yt.jsx("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),Yt.jsx("use",{fillRule:"evenodd"})]})),dB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})})),pB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})})),fB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})})),hB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M2 7.5h12v1H2z"})})),mB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})})),gB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),bB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})})),vB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})})),yB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),xB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})})),SB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})})),wB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})})),CB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})})),EB={m:yB,"ï":bB,R:CB,S:xB,T:SB,U:wB,P:gB,Q:fB,"è":F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})})),"¢":dB,"©":cB,"23F4":pB,2013:vB,"&":mB,add:lB,"minus-2":hB,dot:uB},RB=(e,t,n,r)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=sB(o,t),a=((e,t,n,r)=>{const{segments:o}=e;if(!o||!n)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,n.limitPaletteColorIndex))return nB(o,n.limitPaletteColorIndex,r);const a=tB(n.limitRange,t);return iB(o,a,n.limitRange,r)})(o,t,i,r),{paletteColors:s}=o.segments,l=i?.limitPaletteColorIndex||0,u=s[l]?.icon??"dot",{indicator:c}=e;let d=c?.position||"right";return"rtl"===n&&(d="right"===d?"left":"right"),{color:a,iconKey:u,position:d}},AB=(hm().palette.primary.light,"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)"),IB=4/3,kB="12px",PB="600",MB="Source Sans Pro, sans-serif",DB={height:"auto",fontSize:kB,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},TB={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:PB},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},OB=(e,t)=>"rtl"===e&&"center"!==t.resolvedImagePosition?.horizontal?t.resolvedImagePosition?.horizontal&&(e=>"flex-start"===e?"flex-end":"flex-start")(t.resolvedImagePosition?.horizontal):t.resolvedImagePosition?.horizontal,qB=(e,t)=>e.representation.type===u$.Image&&"fitHeight"===e.representation.imageSize?OB(t,e.representation):e.align,LB=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",NB=(e,t,n)=>{if(!t&&"rtl"===n){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},jB=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,_B=(e,t,n)=>"rtl"===e||t&&!n?"0px":"1px",zB=(e,t,n)=>"rtl"===e?t&&!n?"0px":"1px":"0px",FB=24,$B=Mu("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),HB=Mu(Sd,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})(({textAlign:e,theme:t,direction:n,isPagination:r})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===n?LB(e,r):void 0})),BB=Mu(Sd,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})(({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:n})=>{const r=e?"24px":"";let o;switch(n){case"left":o={gridTemplateColumns:t?`20px 2fr ${r}`:`1fr ${r}`};break;case"center":{const n=e||t;o={gridTemplateColumns:n?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:n?2:1},[`& .${Um}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${r} 2fr 20px`:`${r} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${Um}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),VB=Mu(Sd,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),WB=Mu(Sd,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),UB=Mu(Dc,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})(({hoverBackground:e,activeBackground:t,isActive:n,order:r})=>({padding:"4px !important",width:"fit-content",height:"auto",background:n?t:void 0,"&:hover":{background:e},color:"inherit",order:r})),GB=$g(),KB=$g(0),YB=$g(0),XB=e=>parseInt(e??DB.fontSize,10)*IB,JB=4/3,ZB=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function QB(e,t,n={index:-1}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const eV=(e,t)=>e?{borderBottomColor:bm.DARK_MODE_BORDER,borderRightColor:bm.DARK_MODE_BORDER,borderLeftColor:bm.DARK_MODE_BORDER,borderTopColor:bm.DARK_MODE_BORDER}:{borderLeftColor:bm.BORDER_MEDIUM,borderRightColor:bm.BORDER_MEDIUM,borderTopColor:bm.BORDER_HEAVY,borderBottomColor:t?bm.BORDER_HEAVY:bm.BORDER_LIGHT},tV=(e,t,n)=>{if(e&&t&&n){const r=(e=>parseInt(e,10)*JB+8+1)(e);return r*(t+2)<n.clientHeight-40?"1px":"0px"}return"0px"},nV=e=>e.components?.find(e=>"theme"===e.key),rV=(e,t,n,r=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:ZB(n?.fontColor)?QB(bm.TEXT,t,n?.fontColor):i||bm.TEXT,fontSize:n?.fontSize&&`${n.fontSize}px`||a,padding:n&&"padding"in n?n.padding:void 0,...eV(t.background.isDark,r)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function oV(e,t,n){const r=nV(e)?.header,o=rV("header",t,r,n);return o.background=(e=>{if(void 0===e)return;const t=se(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=xm(o.background??bm.WHITE,eg),o.activeBackground=xm(o.background??bm.WHITE,tg),o}const iV=(e,t)=>{const n=e.toLowerCase().match(/<[^>]+>/g)??[];return n.forEach(e=>(e=>e in TB)(e)&&Object.assign(t,TB[e])),t};function aV(e,t,n){const r={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach((e,t)=>{const i=e.qText,a=i&&wm(i);a&&(r[n[t]]=a),o=i?iV(i,o):o}),r.cellBackgroundColor&&!r.cellForegroundColor&&(r.cellForegroundColor=vm(r.cellBackgroundColor)),{...e,...r,color:r.cellForegroundColor||e.color,background:r.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const sV=25e4,lV=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,uV=5e6,cV=5e5;const dV={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const n=e.indexOf("=");let r,o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,n){return{key:pV(e),value:pV(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:n}}(r,o,i))}),t}};function pV(e){try{return decodeURIComponent(e)}catch{return e}}function fV(e){if(!(this instanceof fV))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>dV.fromSearchString(t.search)}})}function hV(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/shouldNotDecodePlus/gi,"%2B")}fV.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},fV.encodeSearchParams=function(e){let t,n="";for(let r=0;r<e.length;r++)t=e[r],n+=0===r?"?":"&",n+=hV(t.key),t.value?n+=`=${hV(t.value)}`:n+=t.useEqualSign?"=":"";return n};var mV=class{_hasNext(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}constructor(e){this._input=e,this._pushback=null,this._temp=null,this._index=0,this._mark=0}pushback(e){this._pushback=e}index(){return this._index}hasNext(){return null!=this._pushback||this._hasNext()}next(){if(null!=this._pushback){const e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}nextHex(){const e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}peek(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}mark(){this._temp=this._pushback,this._mark=this._index}reset(){this._pushback=this._temp,this._index=this._mark}remainder(){let e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}},gV=class{decode(e){let t="";const n=new mV(e);let r;for(;n.hasNext();)r=this.decodeCharacter(n),t+=null!=r?r:n.next();return t}decodeCharacter(e){return e.next()}};const bV=e=>e>=0&&e<=1114111,vV=e=>e.match(/[\s]/);var yV=class extends gV{decodeCharacter(e){e.mark();const t=e.next();let n,r,o;if(null==t||"\\"!==t)return e.reset(),null;const i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(n=i,r=0;r<5&&(o=e.next(),null!=o&&!vV(o));r++){if("NaN"===parseInt(o,16)){e.pushback(o);break}n+=o}const a=parseInt(n,16);return bV(a)?String.fromCharCode(a):"�"}},xV=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}},SV=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,n,r){let o,i;if(t.length===n)return i=this._value,this.setValue(r),i;const a=t.charAt(n);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,n+1,r)}get(e,t){if(e.length<=t)return this._value;const n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return xV.newInstanceIfNeeded(e,this._value);const n=this.getNextNode(e.charAt(t));if(!n)return xV.newInstanceIfNeeded(e,t,this._value);const r=n.getLongestMatch(e,t+1);return r||xV.newInstanceIfNeeded(e,t,this._value)}},wV=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new SV);const n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}};const CV=(()=>{const e=[],t=[],n=new wV;let r,o,i;for(r in e["""]="34",e["&"]="38",e["<"]="60",e[">"]="62",e[" "]="160",e["¡"]="161",e["¢"]="162",e["£"]="163",e["¤"]="164",e["¥"]="165",e["¦"]="166",e["§"]="167",e["¨"]="168",e["©"]="169",e["ª"]="170",e["«"]="171",e["¬"]="172",e["­"]="173",e["®"]="174",e["¯"]="175",e["°"]="176",e["±"]="177",e["²"]="178",e["³"]="179",e["´"]="180",e["µ"]="181",e["¶"]="182",e["·"]="183",e["¸"]="184",e["¹"]="185",e["º"]="186",e["»"]="187",e["¼"]="188",e["½"]="189",e["¾"]="190",e["¿"]="191",e["À"]="192",e["Á"]="193",e["Â"]="194",e["Ã"]="195",e["Ä"]="196",e["Å"]="197",e["Æ"]="198",e["Ç"]="199",e["È"]="200",e["É"]="201",e["Ê"]="202",e["Ë"]="203",e["Ì"]="204",e["Í"]="205",e["Î"]="206",e["Ï"]="207",e["Ð"]="208",e["Ñ"]="209",e["Ò"]="210",e["Ó"]="211",e["Ô"]="212",e["Õ"]="213",e["Ö"]="214",e["×"]="215",e["Ø"]="216",e["Ù"]="217",e["Ú"]="218",e["Û"]="219",e["Ü"]="220",e["Ý"]="221",e["Þ"]="222",e["ß"]="223",e["à"]="224",e["á"]="225",e["â"]="226",e["ã"]="227",e["ä"]="228",e["å"]="229",e["æ"]="230",e["ç"]="231",e["è"]="232",e["é"]="233",e["ê"]="234",e["ë"]="235",e["ì"]="236",e["í"]="237",e["î"]="238",e["ï"]="239",e["ð"]="240",e["ñ"]="241",e["ò"]="242",e["ó"]="243",e["ô"]="244",e["õ"]="245",e["ö"]="246",e["÷"]="247",e["ø"]="248",e["ù"]="249",e["ú"]="250",e["û"]="251",e["ü"]="252",e["ý"]="253",e["þ"]="254",e["ÿ"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["¬in"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[r]&&e.hasOwnProperty(r)&&(t[e[r]]=r);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),n.put(i,String.fromCharCode(o)));return n})();var EV=class extends gV{decodeCharacter(e){let t;e.mark();const n=e.next();if(null==n||"&"!==n)return e.reset(),null;const r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(t=this._getNumericEntity(e),null!=t)return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,n,r,o="";for(t=Math.min(e.remainder().length,CV.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();const i=CV.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),i.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,16);return!Number.isNaN(+r)&&bV(r)?String.fromCharCode(r):null}_parseNumber(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,10);return!Number.isNaN(+r)&&bV(r)?String.fromCharCode(r):null}},RV=class extends gV{decodeCharacter(e){e.mark();const t=e.next();let n,r,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(n="",r=0;r<2;r++)o=e.nextHex(),null!=o&&(n+=o);return 2===n.length&&(i=parseInt(n,16),bV(i))?String.fromCharCode(i):(e.reset(),null)}};let AV;"undefined"!=typeof document&&(AV=document.createElement("div"));const IV=Array.prototype.indexOf,kV=[",",".","_"," "],PV=[",",".","-","_"," "],MV={width:["%"],height:["%"]},DV={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},TV={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":DV.image,"background-color":DV.color,"border-color":DV.color,"border-image":DV.image,color:DV.color,icon:DV.image,"list-style-image":DV.image,"outline-color":DV.color},OV={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function qV(e,t,n){let r;if(t){if(IV)return IV.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function LV(e){if(null==e)return"";let t="";const n=document.createTextNode(e);return AV.appendChild(n),t=AV.innerHTML,AV.removeChild(n),t}function NV(e,t,n){let r,o,i,a,s,l,u,c,d;for(e=_V(e).toLowerCase(),t=_V(t),i=0;i<OV.attr_name.length;i++)if(e.match(OV.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<OV.attr_val.length;i++)if(t.toLowerCase().match(OV.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(r=MV[e],r||(r=PV),o="",!n){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&qV(u,r)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return n||(o+='"'),o}function jV(e,t,n){let r,o,i,a,s,l,u,c,d,p;if(e=_V(e).toLowerCase(),t=_V(t),qV(e,OV.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(r=0;r<OV.css_val.length;r++)if(t.toLowerCase().indexOf(OV.css_val[r])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=TV[e],o||(o=DV.default),i="",!n){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&qV(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function _V(e,t){let n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;const s=[new EV,new RV,new yV];for(;!a;){r=n;for(let e=0;e<s.length;e++)i=s[e].decode(n),i!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}const zV=[];for(let e=0;e<255;e++)zV[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);const FV={html:e=>LV(e.unsafe),css(e){let t,n=[];const r=[],o={};let i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=jV(t,n[t],!0),i+=jV(t,n[t],!0),o[t]=r[t]);return e.map?o:i},attr(e){let t=[];const n=[],r={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(n[e]=NV(e,t[e],!0),o+=NV(e,t[e],!0),r[e]=n[e]);return e.map?r:o}};function $V(e,t){throw new Error(t)}var HV={canonicalize:_V,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,n;const r=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n=e[t],r===n)continue;void 0!==n&&(r[t]=n)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?FV.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&$V(this,"Invalid parameter type"),FV.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&$V(this,"Invalid parameter type"),FV.attr(e)):void $V(this,"Invalid parameter type")},encodeForAttr:NV,encodeForAttr2:function(e){return NV("nonsens",e,!0)},encodeForCSS:jV,encodeForHref:function(e){_V(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new fV(e),n=fV.encodeAuthorityAndPath(t.authorityAndPath),r=t.searchParams;e=n+fV.encodeSearchParams(r)+t.hash;const o=decodeURI(e).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let n,r,o,i,a,s;for(t||(t=kV),s="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),qV(o,t)>=0||null==zV[i]?s+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),s+=`\\x${a}${r.toUpperCase()}`):(a="0000".substr(r.length),s+=`\\u${a}${r.toUpperCase()}`));return s},encodeForHTML:LV,encodeForURL:function(e,t){let n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=_V(t).toLowerCase():$V(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':"",n},isSafeDataURL:(e,t)=>{const{maxByteSizeSvg:n=cV,maxByteSizeImage:r=uV}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,n,r]=lV.exec(e.trim())??[];return{encoding:n,data:r,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,n)=>{const r={type:e};if(t?.includes(";base64"))try{return new Blob([atob(n)],r).size}catch{return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0})(o,i,a);return"image/svg+xml"===o?s<=n:s<=r},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const n=function(e){let t=e,n="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("/.."===t){t="/";const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),r=e?e[0]:"";t=t.slice(r.length),n+=r}return n}(t);return""!==n&&"/"!==n&&n}};const BV=(e,t)=>t.qAttrExps?.qValues?.[e],VV=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},WV=({text:e,url:t,imageSize:n,imagePosition:r,labelStructure:o,imageBox:i,direction:a})=>!r||t&&(t.toLowerCase().includes("javascript:")||!HV.isSafeDataURL(t))?{type:u$.Text,url:void 0,text:e,labelStructure:o}:{type:u$.Image,url:t||"",text:e,imageSize:n,resolvedImagePosition:VV(r,a),labelStructure:o,imageBox:i},UV=(e,t,n,r)=>{if(!e.qMiniChart||!t?.miniChart||!n)return{type:u$.Text,text:r};const{minY:o,maxY:i}=((e,t,n)=>{const r="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=r?n.qYMin:e.qMiniChart.qMin,a=r?n.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,n),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:u$.MiniChart,text:r,miniChart:a}},GV=(e,t,n)=>{const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=r?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return n?.urlPosition===c$.Attribute?void 0:n?.urlLabel},KV=({labelStructure:e,text:t,url:n})=>{try{if(!n)throw Error("Invalid url");return{type:u$.Link,url:HV.encodeForHref(n),text:t,labelStructure:e}}catch{return{type:u$.Text,url:void 0,text:t,labelStructure:e}}},YV=({cell:e,representationProperties:t,attrExprInfoIndex:n,env:r,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=d$(t),d=s(e);return c===u$.Image&&u[u$.Image]&&!r.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,n,r,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=BV(n.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),WV({text:r,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){const t=i?i.originalValue:r;if(-1===n.imageLabel)return WV({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=BV(n.imageLabel??-1,e)?.qText??r;return WV({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:u$.Text,url:void 0,labelStructure:i,text:r}})(e,t,n,d,l,a):c===u$.Link?((e,t,n,r,o)=>{const{urlPosition:i}=t??{};if(i===c$.Attribute){const i=GV(n.url??-1,e,t);return KV({labelStructure:r,text:o||i||"",url:i})}if(i===c$.Dimension){const i=GV(n.urlLabel??-1,e,t)||o;return r&&(r.maskedValue=i),KV({text:i,labelStructure:r,url:r?.originalValue??o})}return{type:u$.Text,url:void 0,text:o,labelStructure:r}})(e,t,n,a,d):c===u$.Indicator&&u[u$.Indicator]&&!r.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,n)=>{const{indicator:r}=e??{};return{type:u$.Indicator,url:void 0,text:n,indicator:{applySegmentColors:r?.applySegmentColors,position:r?.position,showTextValues:r?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===u$.MiniChart&&u[u$.MiniChart]&&!r.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?UV(e,t,i,d):{type:u$.Text,url:void 0,text:d,labelStructure:a}},XV=$g(e=>{const t=e(Hb),n=e(Rb);return e(Ab),{qTop:0,qHeight:0,rowPartialHeight:n?.content?.rowPartialHeight??0,visibleTop:n?.content?.visibleTop??t?.visibleTop,visibleHeight:n?.content?.visibleHeight??t?.visibleHeight,scrollLeft:n?.content?.scrollLeft??t?.scrollLeft??0,scrollTopRatio:n?.content?.scrollTopRatio??t?.scrollTopRatio,rowsPerPage:n?.content?.rowsPerPage??t?.rowsPerPage,page:n?.content?.page??t?.page,estimatedRowHeight:n?.content?.estimatedRowHeight??0}}),JV=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},n)=>(e[t]=n,e),{}),ZV=({cId:e})=>e??QF(),QV=1e4;function eW(e,t){return[...t].reverse().find(t=>t*e<=QV)||Math.floor(QV/e)}function tW(e,t){if(t?.skipTotals)return{atTop:!1,atBottom:!1};const n=e.qHyperCube.qDimensionInfo.length>0,r=e.qHyperCube.qMeasureInfo.length>0,o=e.qHyperCube.qGrandTotalRow.length>0,i=e.totals?.show,a=e.totals?.position;if(o&&(n&&r||!i&&!n)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function nW(e,t,n,r){return t?0===n?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(r)?.qText??""}function rW(e,t){const n=e.qHyperCube.qGrandTotalRow.at(t);return ZH(n?.qNum)}function oW(e,t,n,r,o){return e&&!e.auto?r&&"rtl"===o&&"center"!==e.align?{headTextAlign:"right"===e.align?"left":"right",totalsTextAlign:"right"===e.align?"left":"right",bodyTextAlign:"right"===e.align?"left":"right"}:{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:r||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:n?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:n?"right":"left",bodyTextAlign:"auto"}}const iW=(e,t,n,r)=>"auto"!==t?t:r||"rtl"!==n?e?"right":"left":e?"left":"right",aW=(e,t)=>{if(!e)return;const{background:n,foreground:r}=e,o=se(n??""),i=se(r??""),a=t?"getRGB":"getRGBA",s=o.isInvalid()?void 0:o[a](),l=s?xm(s,eg):void 0,u=s?xm(s,tg):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:vm(s),headerMenuHoverBackground:l,headerMenuActiveBackground:u}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:u}};const sW=(e,t,n,r=()=>!1)=>{const{qHyperCube:{qColumnOrder:o,qDimensionInfo:i,qMeasureInfo:a}}=e,s=i.length+a.length,l=((e,t,n)=>{const r=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce((e,o)=>{const i=o<r,{qError:a}=i?t[o]:n[o-r];return 7005===a?.qErrorCode?i?e.hiddenDim.push(o):e.hiddenMea.push(o):e.visible.push(o),e},{visible:[],hiddenDim:[],hiddenMea:[]});return o.map((e,t)=>{const n=e<r,o=(n?i:a).filter(t=>t<e).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:n?s:void 0,visibleMeasureInfoIdx:n?void 0:s-r}})})(o.length===s?o:Array.from(Array(s).keys()),i,a);return l.map(o=>function(e,t,n,r,o=()=>!1){const{qDimensionInfo:i,qMeasureInfo:a,qEffectiveInterColumnSortOrder:s}=e.qHyperCube,{colIdx:l,pageColIdx:u,visibleDimInfoIdx:c,visibleMeasureInfoIdx:d}=t,p=i.length,f=l<p,h=f?i[l]:a[l-p],m=f&&i[l].qGrouping===ng.Cyclic,g=l===s[0];let b,v,y="",x=!1,S=-1,w=0,C=[];const{representation:E,conditionalColoring:R}=h;if(f&&void 0!==c){const e=h;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=c,({qDimensionType:b}=e)}else({qMiniChart:v}=h);const{qFallbackTitle:A,textAlign:I,qAttrExprInfo:k,qSortIndicator:P,qReverseSort:M,qApprMaxGlyphCount:D,columnWidth:T,qLibraryId:O,headerColor:q}=h;return{isDim:f,isCyclic:m,isLocked:x,fieldId:y,colIdx:l,qLibraryId:O,pageColIdx:u,qApprMaxGlyphCount:D,qReverseSort:M,columnWidth:T??{type:Qm.Auto},selectionColIdx:S,isActivelySorted:g,id:ZV(h),label:A??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:k.map(e=>e.id),qAttrExprInfoIndex:JV(h),sortDirection:P&&"N"!==P?P:"A",totalInfo:nW(e,f,u,d??-1),...!f&&{isTotalNumeric:rW(e,d??-1)},...oW(I,b,f,n,r),representation:E,conditionalColoring:f?void 0:R,qMiniChart:v,headerColor:o("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?aW(q,n):void 0}}(e,o,t,n,r))},lW=(e,t,n,r)=>e?(r?n.nullValueRepresentation?.dimensionText:void 0)??t.qText??"-":n.nullValueRepresentation?.text??t.qText??"-",uW=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,cW={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},dW=$g(e=>{const t=e(pW),n=e(yb),r=e(XV),o=n.qHyperCube.qSize.qcy,i=r.visibleHeight??t.rowsPerPage,a=r.visibleTop??t.page*i,s=r.visibleHeight??Math.min(i,o-a),l=n.qHyperCube.qSize.qcx;return t.page>0&&a>=o?{...t,page:0}:s*l>QV?{...t,rowsPerPage:eW(l,t.rowsPerPageOptions),page:0}:t}),pW=$g(cW),fW=$g(e=>{const t=e(yb),n=e(Hb),r=e(XV);return _b(t,n)?{page:r.page||cW.page,rowsPerPage:r.rowsPerPage||cW.rowsPerPage,rowsPerPageOptions:cW.rowsPerPageOptions}:e(dW)},(e,t,n)=>{t(pW,e=>({...e,...n}))}),hW=!0,mW=e=>-1===e.qElemNumber||!!e.qIsTotalCell,gW=$g(async e=>{const t=e(yb),n=e(Hb),r=e(Fb),{page:o,rowsPerPage:i}=e(fW),a=e(XV),s=e(Gb),l=e(mb),u=e(Sb),c=e(gb),d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/i),h=a.visibleTop??o*i,m=a.visibleHeight??Math.min(i,p-h),g=p>10,b=tW(t,n),v=sW(t,hW,r,c),y=l.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),x=await(async(e,t,n)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const r=t.qHyperCube.qDataPages.at(0),o=r?.qArea;return r&&o?.qLeft===n.qLeft&&o.qTop===n.qTop&&o.qWidth===n.qWidth&&o.qHeight>=n.qHeight?[{...r,qMatrix:r.qMatrix.slice(0,n.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[n]):[]})(s,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});u||(a.qTop=h,a.qHeight=m,a.rowsPerPage=i,a.page=o);const S=x.at(0)?.qMatrix.map((e,n)=>{const o=[],i=e.some(mW);return v.forEach((a,s)=>{const u=e[s],c=!a.isDim&&u.qIsNull,d=a.isDim&&uW(u,a.isDim),p=c||d?lW(a.isDim,u,t,y):u.qText,f=c?eB(p):QH(u),g=QH(u)&&!eB(u.qText??"");o[s]={id:QF(),...u,align:iW(f,a.bodyTextAlign,r,hW),rowIdx:n+h,colIdx:a.colIdx,pageRowIdx:n,pageColIdx:s,selectionColIdx:a.selectionColIdx,isSelectable:a.isDim&&!a.isLocked&&!i&&!d,isTotalRow:i,isLastRow:n===m-1,isNumeric:f,isDual:g,isNull:(!c||!f)&&uW(u,a.isDim),representation:YV({cell:u,representationProperties:a.representation,attrExprInfoIndex:a.qAttrExprInfoIndex,env:l,conditionalColoring:a.conditionalColoring,miniChartOnMeasure:a.qMiniChart,getText:()=>p,direction:r,enabledFeatures:{[u$.Image]:!0,[u$.Indicator]:!0,[u$.MiniChart]:!0}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}),bW=ZR(gW,e=>e),vW=$g(e=>{const t=e(yb),n=e(Hb),r=e(Tb),o=e(Fb),i=e(gb),a=sW(t,false,o,i),s=tW(t,n),l=t.qHyperCube.qSize.qcy,u=Math.min(sV,l),c=l>sV&&!!r.active;return{totalsPosition:s,columns:a,rows:[],totalRowCount:l,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/u),paginationNeeded:c}}),yW={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},xW=$g(),SW=$g(e=>{const t=e(Vb),n=e(xW);return n||(t?e(bW)??yW:e(vW))}),wW=$g(e=>e(SW).totalsPosition),CW=$g(e=>e(SW).columns),EW=$g(e=>e(CW).length),RW=$g(e=>e(SW).rows),AW=$g(e=>e(SW).totalRowCount),IW=$g(e=>e(SW).totalColumnCount),kW=$g(e=>e(SW).paginationNeeded),PW=$g(e=>{const t=e(Qb),n=e(nv),r=e(yb),o=e(wW),i=e(RW),a=o.atTop,s=function(e,t,n,r){const o=nV(e)?.content,i=rV("content",t,o);i.background=t.background.color;const a=tV(i.fontSize,n,r),s=o?.hoverColor,l=o?.hoverFontColor,u=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),c=t.getStyle("object","","straightTableV2.content.hover.color"),d=ZB(l)||!!c,p=ZB(s)||!!u,f=d||p;let h;h=ZB(s)?QB(bm.HOVER,t,s):u||(d?"":bm.HOVER);const m=f?QB(vm(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(r,n,i.length,t),l=oV(r,n,!a),u=function(e,t,n){const r=nV(e)?.content,o=rV("content",t,r),{borderBottomColor:i,borderTopColor:a,background:s}=oV(e,t,n);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(r,n,a);return{body:s,head:l,totals:u}}),MW=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?"transparent":n}},DW=(e,t,n)=>{const{objectColorFromCSS:r,sheetColorFromCSS:o}=e.background,i=MW(e,t?.background),a=e.getStyle("","",n);return{backgroundColor:i||r||a,backgroundFromStyling:i,sheetColorFromCSS:o}},TW=(e,t,n,r=bm.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=DW(e,t,n);return Im(i,o,a,r)??r},OW=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return kB}},qW=e=>e?.some(e=>"italic"===e)?"italic":"normal",LW=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?PB:"normal",NW=e=>!1===e?1:3,jW=e=>e?.some(e=>"underline"===e)?"underline":"none",_W=$g(e=>{const t=e(Hb),n=e(Vb),r=e(nv),o=e(yb),i=e(PW),a=e(gb),{header:s,dimensionValues:l,measureValues:u,totalValues:c,subTotalValues:d,nullValues:p,dimensionNullValues:f,grid:h,content:m}=nV(o)??{},g=a("VNA-670-SEPARATE_NULL_VALUE_STYLING"),b=n?bm.WHITE:bm.TRANSPARENT,v=TW(r,s,"object.straightTableV2.dimension.label.name.backgroundColor",b),y=t?.maxLineCount??m?.rowHeight??r.getStyle("object.straightTableV2","grid","lineClamp"),x=(g?f:void 0)??p;return{header:{fontFamily:s?.fontFamily??r.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??MB,fontSize:OW(s?.fontSize??r.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:qW(s?.fontStyle),fontWeight:LW(s?.fontStyle,PB),textDecoration:jW(s?.fontStyle),color:MW(r,s?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??bm.TEXT,background:v},headerMenuHoverBackground:xm(v,eg),headerMenuActiveBackground:xm(v,tg),dimension:{values:{fontFamily:l?.fontFamily??r.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??MB,fontSize:OW(l?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:qW(l?.fontStyle),fontWeight:LW(l?.fontStyle,"normal"),textDecoration:jW(l?.fontStyle),color:MW(r,l?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??bm.TEXT,background:DW(r,l,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??bm.TRANSPARENT}},measure:{values:{fontFamily:u?.fontFamily??r.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??MB,fontSize:OW(u?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:qW(u?.fontStyle),fontWeight:LW(u?.fontStyle,"normal"),textDecoration:jW(u?.fontStyle),color:MW(r,u?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??bm.TEXT,background:DW(r,u,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??bm.TRANSPARENT}},totalRow:{fontFamily:c?.fontFamily??r.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??MB,fontSize:OW(c?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:qW(c?.fontStyle),fontWeight:LW(c?.fontStyle,PB),textDecoration:jW(c?.fontStyle),color:MW(r,c?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??bm.TEXT,background:TW(r,c,"object.straightTableV2.total.label.value.backgroundColor",b)},subTotalRow:{fontFamily:d?.fontFamily??r.getStyle("object.straightTableV2.subTotal","label.value","fontFamily")??i.totals.fontFamily??MB,fontSize:OW(d?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.subTotal","label.value","fontSize")??i.totals.fontSize),fontStyle:qW(d?.fontStyle),fontWeight:LW(d?.fontStyle,PB),textDecoration:jW(d?.fontStyle),color:MW(r,d?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.subTotal","label.value","color")??i.totals.color??bm.TEXT,background:TW(r,d,"object.straightTableV2.subTotal.label.value.backgroundColor",b)},dimensionNull:{fontStyle:qW(x?.fontStyle),fontWeight:LW(x?.fontStyle,"normal"),textDecoration:jW(x?.fontStyle),color:MW(r,x?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??bm.TEXT,background:MW(r,x?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??bm.NULL_VALUE_BACKGROUND},measureNull:{fontStyle:qW(p?.fontStyle),fontWeight:LW(p?.fontStyle,"normal"),textDecoration:jW(p?.fontStyle),color:MW(r,p?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??bm.TEXT,background:MW(r,p?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??bm.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:y??NW(o.multiline?.wrapTextInCells),headerLineClamp:NW(o.multiline?.wrapTextInHeaders),border:MW(r,h?.border)??r.getStyle("object.straightTableV2","grid","borderColor")??(r.background.isDark?bm.DARK_MODE_BORDER:bm.BORDER_MEDIUM),divider:MW(r,h?.divider)??r.getStyle("object.straightTableV2.grid","","divider.borderColor")??bm.BORDER_HEAVY,hoverColors:{color:MW(r,m?.hoverFontColor)??r.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:MW(r,m?.hoverColor)??r.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!h?.zebraStripes?.show,odd:{color:MW(r,h?.zebraStripes?.color?.odd),background:MW(r,h?.zebraStripes?.background?.odd)},even:{color:MW(r,h?.zebraStripes?.color?.even),background:MW(r,h?.zebraStripes?.background?.even)},overrideDimNullValueBackground:void 0===MW(r,x?.background),overrideDimNullValueColor:void 0===MW(r,x?.fontColor),overrideMeasNullValueBackground:void 0===MW(r,p?.background),overrideMeasNullValueColor:void 0===MW(r,p?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:ym(r),contentStaticLineCount:y}}),zW=$g(e=>{const t=e(_W);return Math.max(XB(t.header.fontSize)+8,32)}),FW=$g(e=>{const t=e(_W),n=XB(t.totalRow.fontSize);return Math.max(n+9,24)}),$W=$g(e=>{const t=e(_W),n=e(wb),r=e(Cb);return Math.max(n>0?XB(t.dimension.values.fontSize):0,r>0?XB(t.measure.values.fontSize):0)}),HW=$g(e=>{const t=e(_W),n=e($W),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),BW=$g(e=>{const t=e(_W),n=XB(t.subTotalRow.fontSize),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),VW=(e,t,n)=>{if(!e.length)return[];const r=[],o=[];let i=t;if(e.forEach((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:u},label:c,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{r[a]=Math.min(Zm.PixelsMax,Math.max(Zm.PixelsMin,f)),i-=r[a]};switch(s){case Qm.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?Zm.PixelsDefault:+e)(l),h();break;case Qm.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?Zm.PercentageDefault:+e)(u)/100*t,h();break;case Qm.FitToContent:e.representation?.type===u$.Image?o.push(a):(f=n(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case Qm.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}}),o.length){const e=i/o.length;o.forEach(t=>{r[t]=Math.max(Zm.AutoMinTable,e)})}return r},WW=$g(e=>{const t=e(_W),n=e(SW).totalsPosition,r=e(Ib),{measureText:o}=e(VH({...t.header,fontWeight:PB})),{measureText:i}=e(VH({...t.totalRow,fontWeight:PB})),{estimateWidth:a}=e(VH(t.dimension.values)),{estimateWidth:s}=e(VH(t.measure.values)),l=n.atBottom||n.atTop;return(e,t,n,u,c,d,p)=>{let f;if(r){const t=4;let n=25;n+=t+24,u&&(n+=20+t),c&&(n+=20),f=o(e)+n}else{let t=9;t+=16,p&&(t+=FB),t+=FB,t+=FB,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(n))}}),UW=$g(null),GW=$g(e=>{const t=e(SW),n=e(Zb).width,r=e(YB),o=e(WW);return VW(t.columns,n-r,o)}),KW=$g(e=>e(UW)??e(GW),(e,t,n)=>{t(UW,n)}),YW=CA(e=>{const t=e(UH);!1===e(GB)&&t.emit("done-adjusting-column-width")}),XW=CA((e,t)=>{e(yb),t(UW,null)}),JW=$g(e=>e(KW).reduce((e,t)=>e+t,0)),ZW=({children:e})=>(Qg(XW),Qg(YW),e);function QW(e){const t=hm();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),cu({...t,direction:e})}const eU={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},tU={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},nU=Mu("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:n})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===n?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...eU},"&::-moz-range-track":{...eU},"&::-ms-track":{...eU},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...tU},"&::-moz-range-thumb":{...tU},"&::-ms-thumb":{...tU},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}})),rU=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:u,accessibilityRelatedArgs:c,direction:d="ltr"})=>{const p=Bm({translator:c.translator}),f=M({initWidth:e,columnWidth:e,initX:0}),h=n?0:1,m=r&&!u,g=()=>m?f.current.columnWidth-h:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};$m(()=>{m&&v()},[e]);const y=e=>{const t=Math.max(e,Zm.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:Qm.Pixels,pixels:f.current.columnWidth};a(e)}l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{Em(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),x()},C=e=>{const t="rtl"===d?f.current.initWidth+-f.current.initX-e.touches[0].clientX:f.current.initWidth+e.touches[0].clientX-f.current.initX;y(t)},E=e=>{Em(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!r&&s?e=>{if(e.key===Xm.Left||e.key===Xm.Right){Em(e);const t=5,n=e.key===Xm.Left?t:-t,r="rtl"===d?n:-n;l?.(!0),y(f.current.columnWidth+r)}else e.key===Xm.Space||e.key===Xm.Enter?(Em(e),s(e),l?.(!1),x()):e.key===Xm.Esc&&(Em(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return Yt.jsx(nU,{style:b,hoverColor:o,isLastColumn:n,className:Jm,"data-testid":Jm,onMouseDown:e=>{Em(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:Qm.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Em(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":Zm.PixelsMin,"aria-valuemax":Zm.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},oU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),iU=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const n=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",n,t)}catch(e){console.error(e)}}}return null},aU=Mu(Sd,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:n})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:n?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:n?"100%":void 0,alignItems:"center",justifyContent:"center"})),sU=Mu(oU,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),lU=Mu(jf)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),uU=Mu(mp)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),cU=Mu(Hf)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),dU=Mu(Hf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})(({theme:e,isSubMenu:t,isActive:n})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:n?"rgba(0, 0, 0, 0.05)":"transparent"})),pU=Mu("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:n||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),fU=Mu("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),hU=Mu(jc)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),mU=Mu(cf,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({width:16,minWidth:"unset !important",marginRight:n||"rtl"!==t?e.spacing(1.5):0,marginLeft:n||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),gU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),bU=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?bU(t):t:e.parentElement?.children?.[0]},vU=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?vU(t):t},yU=e=>{const{key:t,currentTarget:n}=e,r=document.activeElement??n;if(t===Xm.Down||t===Xm.Up){const n=e=>t===Xm.Down?bU(e):vU(e);e.preventDefault(),e.stopPropagation();let o=n(r);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=n(o)}}},xU=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...n})=>({...n,...e?{onClick:async n=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(n)}}:{}}))})));let SU={};const wU=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:u,isPagination:c})=>{const[d,p]=P(!1),f=w.useRef(null),h=L(e=>{e.stopPropagation(),p(!1)},[p]);return Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs(dU,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),SU={}),a?.length&&(p(!0),SU[r]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:yU,children:[l?Yt.jsx(pU,{direction:u,isPagination:c}):null,Yt.jsxs(fU,{children:[Yt.jsx(mU,{direction:u,isPagination:c,children:Yt.jsx(o,{})}),Yt.jsx(hU,{variant:"body2",children:r})]}),a?.length?Yt.jsx(gU,{}):null]},t),a?.length?Yt.jsx(AU,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:xU(a,SU),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},CU=({menuGroup:e,isSubMenu:t,direction:n,isPagination:r})=>e.map(e=>[[e.groupHeading&&Yt.jsx(cU,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>Yt.jsx(wU,{...e,isSubMenu:t,direction:n,isPagination:r},e.id))].filter(Boolean)]),EU=({itemGroups:e,isSubMenu:t,direction:n,isPagination:r})=>e.map((o,i)=>[CU({menuGroup:o,isSubMenu:t,direction:n,isPagination:r}),i<e.length-1?Yt.jsx(uU,{"data-testid":"group-divider",variant:"middle"}):void 0]),RU={appear:0,enter:0,exit:0},AU=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>r.length?Yt.jsx(lU,{className:Gm,open:t,anchorEl:e,onClose:n,transitionDuration:RU,MenuListProps:{id:Km},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:EU({itemGroups:r,isSubMenu:a,direction:s,isPagination:l})}):null,IU=({qLibraryId:e,fieldId:t,searchRelatedArgs:n,selectionRelatedArgs:r,direction:o,onPopoverClose:i})=>L(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(n?.embed){const{embed:e,listboxRef:t}=n;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:n.sortCriteria,stateName:r?.qStateName,direction:o,onPopoverClose:i})}},[e,t,n,r?.qStateName,o,i]),kU=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),PU=(e,t)=>e.some(e=>t[e]>0),MU={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},DU=({open:e,qStateName:t="$",headerData:n,app:r})=>{const[o,i]=P(null),[a,s]=P(MU);return $m(()=>{e||(s(MU),i(null))},[e]),O(()=>{if(!r?.createSessionObject||!n.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&r.destroySessionObject(o)};return(async()=>{try{const e=kU(t,n),u=await r.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};o=c.qInfo?.qId,a?l():(i(u),d&&s((e=>({canSelectAll:PU(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:PU(["qSelected"],e),canSelectPossible:PU(["qOption"],e),canSelectAlternative:PU(["qAlternative"],e),canSelectExcluded:PU(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,r,n,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},TU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})})),OU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})})),qU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})})),LU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})})),NU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})})),jU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})})),_U=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})})),zU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})})),FU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})})),$U=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),HU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),BU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),VU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})}));let WU=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const UU="/qListObjectDef",GU=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(n[WU.Sorting]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),r(!1)},icon:TU,enabled:a,isActive:!!n&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),r(!1)},icon:LU,enabled:s,isActive:!!n&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:_U,subMenus:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:e=>{e.stopPropagation(),r(!1),d(n)},enabled:!0,icon:kF,isActive:e.groupDimensionPos===n}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];n[WU.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:zU,enabled:!0}]}]),!e.isLocked&&n[WU.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:VU,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAll(UU))},icon:FU,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectPossible(UU))},icon:BU,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAlternative(UU))},icon:$U,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectExcluded(UU))},icon:HU,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.clearSelections(UU))},icon:OU,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.expandCallback()},icon:jU,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.collapseCallback()},icon:NU,enabled:!0}]}]),o.length>0&&f.push(...o)}return n[WU.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),c?.(u)},icon:qU,enabled:!0}]}]),f},KU=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:u,selectionRelatedArgs:c,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:b=Vm})=>{const v=M(null),y=Bm({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=r,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=DU({open:e,headerData:r,app:C,qStateName:c?.qStateName}),A=iU({model:f,headerData:r}),I=IU({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),k=L(e=>{e.stopPropagation(),t(!1)},[t]),P=L(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?Yt.jsxs(aU,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:Um,onClick:!1===g?P:void 0,ref:v,isAccessibleHeader:g,children:[s?Yt.jsx(sU,{height:b,className:Wm,"data-testid":Wm,isInteractionsActive:i.active??!1,children:Yt.jsx(oU,{})}):null,Yt.jsx(AU,{open:e,anchorEl:!1===g?v.current:n.current,onClose:k,menuGroups:GU({headerData:r,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:I,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:n,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},YU=e=>e.isDark?{background:e.color,borderColor:bm.DARK_MODE_BORDER,color:bm.DARK_MODE_TEXT,disabledColor:bm.DARK_MODE_DISABLED,iconColor:bm.DARK_MODE_TEXT}:{background:e.color,borderColor:bm.BORDER_MEDIUM,color:bm.TEXT,disabledColor:bm.DISABLED},XU=Mu(Sd,{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}`})),JU=Mu(wh,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),ZU=Mu(Dd,{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)})),QU=Mu(jc)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),eG=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=k(()=>YU(r.background),[r]);if(!n.active)return null;const a=o?Yt.jsx(XU,{footerStyle:i,children:e}):null;return t?V.createPortal(e,t):a},tG=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),nG=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),rG=D({}),oG=()=>N(rG),iG=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(c)?0:-1,v=k(()=>YU(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=Bm({translator:d}),S=k(()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:v,tabIndex:b,width:y,visibilityThreshold:g}),[t,n,r,o,i,a,s,l,u,c,x,p,f,h,m,v,b,y,g]);return Yt.jsx(rG.Provider,{value:S,children:e})},aG=({disabledCondition:e,pageNumber:t,type:n,footerStyle:r,handleChangePage:o,translator:i,interactions:a,tabIndex:s})=>({footerStyle:r,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":i.get(`NebulaTableUtils.Pagination.${n}`),title:a.passive?i.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?void 0:()=>{o(t)}});let sG=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),lG=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});const uG=()=>{const{direction:e,pageInfo:t,width:n,interactions:r,visibilityThreshold:o,footerStyle:i,handleChangePage:a,translator:s,tabIndex:l}=oG(),u=0===t.page,c=aG({type:sG.FirstPage,disabledCondition:u,pageNumber:0,footerStyle:i,handleChangePage:a,translator:s,interactions:r,tabIndex:l});return n<=(o?.firstPage||lG.FirstPage)?null:Yt.jsx(ZU,{...c,disabled:!r.active,children:"rtl"===e?Yt.jsx(nG,{height:Vm}):Yt.jsx(tG,{height:Vm})})},cG=(e,t,n=!1)=>{n&&e.key===Xm.Tab&&!e.shiftKey&&(Em(e),Cm(e.target,t,!1))},dG=()=>{const{direction:e,pageInfo:t,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a,visibilityThreshold:s,footerStyle:l,handleChangePage:u,translator:c,tabIndex:d}=oG(),p=t.page>=r-1,f=aG({type:sG.LastPage,disabledCondition:p,pageNumber:r-1,footerStyle:l,handleChangePage:u,translator:c,interactions:a,tabIndex:d}),h=n.enabled?e=>{cG(e,n,o)}:void 0;return i<=(s?.lastPage||lG.LastPage)?null:Yt.jsx(ZU,{...f,onKeyDown:h,disabled:!a.active,children:"rtl"===e?Yt.jsx(tG,{height:Vm}):Yt.jsx(nG,{height:Vm})})},pG=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),fG=()=>{const{direction:e,pageInfo:t,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a,footerStyle:s,handleChangePage:l,translator:u,tabIndex:c}=oG(),d=t.page>=r-1,p=aG({type:sG.NextPage,disabledCondition:d,pageNumber:t.page+1,footerStyle:s,handleChangePage:l,translator:u,interactions:a,tabIndex:c}),f=!(i>lG.FirstPage&&i>lG.LastPage)&&n.enabled?e=>{cG(e,n,o)}:void 0;return Yt.jsx(ZU,{...p,onKeyDown:f,disabled:!a.active,children:"rtl"===e?Yt.jsx(pG,{height:Vm}):Yt.jsx(gU,{height:Vm})})},hG=()=>{const{direction:e,pageInfo:t,interactions:n,footerStyle:r,handleChangePage:o,translator:i,tabIndex:a}=oG(),s=0===t.page,l=aG({type:sG.PreviousPage,disabledCondition:s,pageNumber:t.page-1,footerStyle:r,handleChangePage:o,translator:i,interactions:n,tabIndex:a});return Yt.jsx(ZU,{...l,disabled:!n.active,children:"rtl"===e?Yt.jsx(gU,{height:Vm}):Yt.jsx(pG,{height:Vm})})},mG=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r,visibilityThreshold:o}=oG(),{page:i,rowsPerPage:a}=n;if(t<=(o?.displayedRowsLabel||lG.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,r)}`,r.toString()]);return Yt.jsx(QU,{variant:"caption",dir:"ltr",children:s})},gG=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=oG(),u=o.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs(QU,{variant:"caption",id:p,children:[c,":"]}),Yt.jsx(JU,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:f,disabled:!l.active,children:n})]})},bG=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:n,width:r,handleChangeRowsPerPage:o,visibilityThreshold:i}=oG();if(!(!!e.rowsPerPageOptions?.length&&!t&&r>(i?.rowsPerPage||lG.RowsPerPage)&&n<=100)||void 0===e.rowsPerPageOptions)return null;const a=Yt.jsx(Yt.Fragment,{children:e.rowsPerPageOptions.map(e=>Yt.jsx("option",{value:e,children:e},e))});return Yt.jsx(gG,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},vG=1e3,yG="…",xG=({totalPages:e,page:t})=>{const n=Math.min(e,vG),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-vG):0,a=Array.from(Array(n).keys()).map(e=>{const t=e+i;return Yt.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(Yt.jsx("option",{value:yG,disabled:!0,children:yG},"startMoreOptions")),o<e-1&&a.push(Yt.jsx("option",{value:yG,disabled:!0,children:yG},"endMoreOptions")),Yt.jsx(Yt.Fragment,{children:a})},SG=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r,visibilityThreshold:o}=oG(),{page:i}=e;if(t<=(o?.selectPage||lG.SelectPage))return null;const a=Yt.jsx(xG,{totalPages:n,page:i});return Yt.jsx(gG,{name:"SelectPage",value:i,options:a,handleChange:e=>{r(+e.target.value)}})};var wG=z(e=>Yt.jsxs(iG,{...e,children:[Yt.jsx(bG,{}),Yt.jsx(SG,{}),Yt.jsx(mG,{}),Yt.jsx(uG,{}),Yt.jsx(hG,{}),Yt.jsx(fG,{}),Yt.jsx(dG,{})]}));const CG=e=>Yt.jsx(eG,{...e,children:Yt.jsx(wG,{...e})}),EG=(e,t,n)=>{const r=n.size,o=r>=t.size;if(r){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===r?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",r.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},RG=(e,t,n)=>{n&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},AG=e=>e.ctrlKey||e.metaKey,IG=e=>e.shiftKey&&AG(e),kG=e=>[Xm.Left,Xm.Right,Xm.Up,Xm.Down].includes(e),PG=e=>e.shiftKey&&kG(e.key),MG=e=>(e=>kG(e)||[Xm.Home,Xm.End,Xm.PageUp,Xm.PageDown].includes(e))(e.key)&&!IG(e),DG=(e,t)=>{const{api:n,rows:r,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)n?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(r)}return l=((e,t,n)=>{const{qElemNumber:r,rowIdx:o}=t;return n.ctrlKey||n.metaKey?(new Map).set(r,o):(e.has(r)?e.delete(r):e.set(r,o),new Map(e))})(l,i,s),EG(a,r,l),l.size?(n?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(n?.cancel(),{...e,rows:l,colIdx:-1})},TG=(e,t)=>{const{api:n,rows:r,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:u}=t;if(!(a||"key"in u&&PG(u)))return e;-1===o&&n?.begin(["/qHyperCubeDef"]);const c=((e,t,n,r,o)=>{if(!n.isSelectable)return t;const i=new Map(t);if("key"in r&&PG(r)){i.set(n.qElemNumber,n.rowIdx);const t=r.key===Xm.Down?1:-1,o=e[n.pageRowIdx+t][n.pageColIdx];return o.isSelectable&&i.set(o.qElemNumber,n.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,n.pageRowIdx),s=Math.max(o.pageRowIdx,n.pageRowIdx);for(let t=a;t<=s;t++){const n=e[t][o.pageColIdx];n.isSelectable&&i.set(n.qElemNumber,n.rowIdx)}return i})(i,r,s,u,a);return EG(l,r,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},OG=e=>{const{api:t,rows:n,colIdx:r,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(n.values()),[r]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},qG=(e,t)=>{switch(t.type){case KH.Select:return DG(e,t.payload);case KH.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:n})=>!n||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",n),{...e,firstCell:t,mouseupOutsideCallback:n}))(e,t.payload);case KH.SelectMouseUp:return((e,t)=>OG(e.isSelectMultiValues||e.firstCell!==t.cell?e:DG(e,t)))(e,t.payload);case KH.SelectMultiAdd:return TG(e,t.payload);case KH.SelectMultiEnd:return OG(e);case KH.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case KH.Clear:return e.rows.size?{...e,rows:new Map}:e;case KH.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},LG=$g(e=>{const t=e(Mb);return function(e,t){return $g(e,function(e,n,r){n(this,t(e(this),r))})}({pageRows:e(SW).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},qG)}),NG=$g(e=>e(e(LG)),(e,t,n)=>{t(e(LG),n)}),jG=hk(e=>$g(t=>{const{colIdx:n,rows:r,api:o}=t(NG);return"object"==typeof e&&o?.isModal()?n!==e.selectionColIdx?GH.Disabled:r.has(e.qElemNumber)?GH.Selected:GH.Possible:GH.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),_G=$g(e=>{const t=e(JW),n=e(Zb).width,r=e(YB);return t>0&&t+r<n}),zG=()=>{const[e,t]=P(!1);return p_({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?Yt.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},FG=(e,{atTop:t,atBottom:n},r)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!r&&n?e.grid.divider:e.grid.border,borderBottomColor:r&&!t||!r&&t?e.grid.divider:e.grid.border}),$G=$g(e=>{const t=e(wb),n=e(Kb);if(void 0!==n)return async(e,r)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,u=o?i:i-t,c=await n.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=r!==s||l;if(!o){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),n.applyPatches(p,!0)}}),HG=e=>{e&&(e.focus(),(e=>{e?.setAttribute("tabIndex","0")})(e))},BG=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r})=>(e>n?e--:t>n&&(t--,e=r),[t,e]),VG=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r,lastRowIdx:o})=>(e<r?e++:t<o&&(t++,e=n),[t,e]),WG=e=>e.atTop?2:1,UG=(e,t)=>({top:e?WG(t):0,bottom:e&&t.atBottom?1:0}),GG=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],KG=e=>e?.setAttribute("tabIndex","0"),YG=e=>e?.setAttribute("tabIndex","-1"),XG=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(YG)},JG=e=>{e?.focus(),KG(e)},ZG=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${Jm}`);JG(t)},0)},QG=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,allowedRows:o,direction:i})=>{XG(t);const a=((e,t,n,r,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[u,c]=n;switch(e.key){case Xm.Down:u<s&&u++;break;case Xm.Up:u>a&&u--;break;case Xm.Right:if(i)break;[u,c]="rtl"===r?BG({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):VG({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case Xm.Left:if(i)break;[u,c]="rtl"===r?VG({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):BG({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case Xm.Home:(AG(e)||i)&&(u=a),i||(c=0);break;case Xm.End:(AG(e)||i)&&(u=s),i||(c=l);break;case Xm.PageDown:u=Math.min(s,u+10);break;case Xm.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,n,i,o),s=GG(t,a);return JG(s),((e,t)=>{const n=t.getElementsByClassName("sn-table-container")[0];if(!n?.scrollTo)return;const[r,o]=e;if(r<2)n.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[r].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<n.scrollTop){const t=n.scrollTop-i.offsetHeight-e.offsetHeight;n.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),r(a),{nextCell:s,nextCellCoord:a}},eK=(e,t,n,r)=>{XG(t),n(e),r.enabled&&!r.active?r.focus?.():JG(GG(t,e))},tK=(e,t,n)=>{const r=e.currentTarget;if(!r)return;const o=e.relatedTarget??document.activeElement;if(!!o?.closest(`.${Gm}`))return;const i=!!o&&r.contains(o);!n.enabled||t.current||i||(e=>{const t=e.querySelector(`.${XH.First}`),n=e.querySelector(`.${XH.Second}`);t&&n&&(t.innerHTML="",n.innerHTML="")})(r),((e,t,n)=>{const r=e.currentTarget;if(!n.enabled||t.current||!r)return;const o=e.relatedTarget??document.activeElement;o&&r.contains(o)||n.blur?.(!1)})(e,t,n)},nK=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10M3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0zM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0"})})),rK=Mu(Fh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:n,background:r,color:o})=>({...DB,...e,cursor:t.active?"pointer":"default",background:r,color:o,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?n:r}})),oK=Mu("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:kB,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),iK=parseInt(kB,10)/2,aK=Mu("div")({position:"absolute",bottom:-iK,left:`calc(50% - ${iK}px)`}),sK=Mu(nm)({position:"sticky",top:0,zIndex:1}),lK={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},uK=Mu(Sd)({height:"100%","& .sn-table-cell:focus-visible":{outline:"none",boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"& .sn-table-cell:focus:not(:focus-visible)":{outline:"none"}}),cK=Mu("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e&&"isDual"!==e})(({lineClamp:e,isHeadCell:t=!1,isPagination:n=!1,isNumeric:r=!1,isDual:o=!1})=>r&&!o||1===e&&!t?{...lK,whiteSpace:"nowrap",display:n?"block":void 0}:{...lK,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),dK=Mu("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),pK="cell-text",fK=({children:e,forwardRef:t,isNumeric:n=!1,isPagination:r=!1,isHeadCell:o=!1,isDual:i=!1,lineClamp:a})=>{const s=Qg(_W);return o?Yt.jsx(cK,{"data-testid":pK,ref:t,className:"sn-table-cell-text",lineClamp:s.grid.headerLineClamp,isPagination:r,isHeadCell:!0,style:{direction:n?"ltr":void 0},children:e}):Yt.jsx(cK,{"data-testid":pK,ref:t,className:"sn-table-cell-text",isDual:i,isNumeric:n,lineClamp:a??s.grid.contentLineClamp,isPagination:r,style:{direction:n?"ltr":void 0},children:e})},hK=e=>{const{column:t,isInteractionEnabled:n,open:r,setOpen:o,isPagination:i,forwardRef:a}=e,s=Qg(Eb),l=Qg($G),u=Qg(Fb),c=Qg(Tb),d=Qg(ob),p=Qg(rv),f=Qg(nb),h=Qg(KW)[t.pageColIdx],m=Qg(Gb),g=M(null),b=M(null),v=(({column:e,columnWidth:t})=>{const n=Qg(_W),{measureText:r}=Lm({fontSize:n.header.fontSize,fontFamily:n.header.fontFamily,fontWeight:PB});let o=!1,i=!1,a=!1;const s=e.isLocked,l=e.isActivelySorted,u=t-25,c=s?20:0,d=l?20:0;let p=r(e.label);return s&&p+c<=u&&(a=!0,p+=c,l&&p+d<=u&&(i=!0,p+=d)),!s&&l&&p+d<=u&&(i=!0,p+=d),p+24<=u&&(o=!0),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({column:t,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:n,shouldShowLockIcon:r},o)=>{const i="A"===e?Yt.jsx(TU,{height:kB,"data-testid":"head-cell-sort-ascending-icon"}):Yt.jsx(LU,{height:kB,"data-testid":"head-cell-sort-descending-icon"}),a=n?Yt.jsx(oK,{align:t,dir:o,children:i}):void 0,s=r?Yt.jsx(VB,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:Yt.jsx(nK,{height:kB,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,v,u);return Yt.jsxs(BB,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:NB(t,i,u),children:[S,Yt.jsxs(HB,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:u,isPagination:i,children:[y,Yt.jsx(fK,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),n?Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(KU,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[WU.Sorting]:!0,[WU.Searching]:!0,[WU.Selections]:!0,[WU.AdjusterHeaderSize]:!0},open:r,setOpen:o,interactions:c,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),l?.(t,n)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:b},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:ZG},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:u,isPagination:i,isAccessibleHeader:!0}),Yt.jsx($B,{ref:b,direction:u,isPagination:i}),Yt.jsx($B,{ref:g,direction:u})]}):null]})},mK=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M6 2h10V1H6zm5 5h5V6h-5zm5 5h-5v-1h5zM5 10h1v2.663a3.5 3.5 0 1 0-2.922.036l-.406.914A4.501 4.501 0 1 1 7.329 13H9v1H5z"})})),gK=(e,t)=>e.isCyclic&&t,bK=({column:e})=>{const t=Qg(_W),n=Qg(Fb),r=Qg(Gb),o=w.useRef(null),[i,a]=w.useState(!1),s=iU({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(UB,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:Yt.jsx(mK,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),Yt.jsx(AU,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:e=>{e.stopPropagation(),a(!1),s?.(n)},enabled:!0,icon:kF,isActive:e.groupDimensionPos===n}))}]],anchorEl:o.current,direction:n,isPagination:!1})]})},vK=e=>e.isLocked,yK=({column:e})=>{const t=Qg(nb),n=Qg(Eb),r=Qg(bb),o=Qg(_W);return Yt.jsx(UB,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,onClick:o=>{o.stopPropagation(),(async(e,t,n,r={warn:()=>{},error:()=>{}})=>{const o=kU(t??"$",n);let i;try{const t=await(e?.createSessionObject(o));i=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){r.error({msg:"Failed to unlock field from table header",payload:e})}finally{i&&(await(e?.destroySessionObject(i))||r.error({msg:"Failed to destroy session object when unlocking field from table header"}))}})(t,n,e,r)},children:Yt.jsx(nK,{height:16,"data-testid":"head-cell-lock-icon"})})},xK=({column:e,menuIconRef:t,open:n,setOpen:r})=>{const o=Qg(_W);return Yt.jsx(UB,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??o.headerMenuActiveBackground,isActive:n,order:e.isDim?void 0:-1,onClick:e=>{e.stopPropagation(),r(e=>!e)},ref:t,children:Yt.jsx(oU,{height:16})})},SK=({anchorRef:e,column:t,isPagination:n,listboxRef:r,open:o,setOpen:i})=>{const a=Qg(nb),s=Qg(Fb),l=Qg(ob),u=Qg(Tb),c=Qg(Gb),d=Qg(Eb),p=Qg(rv),f=Qg($G);return Yt.jsx(KU,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[WU.Sorting]:!0,[WU.Searching]:!0,[WU.Selections]:!0,[WU.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:u,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),f?.(t,n)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:r},selectionRelatedArgs:{app:a,qStateName:d},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:ZG},shouldShowMenuIcon:!1,model:c,direction:s,isPagination:n})},wK=$g();wK.onMount=e=>{const t=new Map,n=new ResizeObserver(e=>{for(const n of e){const e=t.get(n.target);e&&e.current(n)}});return e({callbacks:t,observer:n}),()=>{t.clear(),n.disconnect()}};const CK=({ref:e,callback:t})=>{const n=Qg(wK),r=M(t);r.current=t,j(()=>{const t=e.current;return void 0===n?()=>{}:(t&&(n.callbacks.set(t,r),n.observer.observe(t)),()=>{t&&(n.callbacks.delete(t),n.observer.unobserve(t))})},[e,r,n])},EK=Mu(Sd)({display:"flex",alignItems:"flex-end",justifyContent:"center",width:"100%",boxSizing:"border-box"}),RK=({children:e})=>{const t=w.useRef(null),[n,r]=P(()=>new Set(e.filter(({props:e})=>void 0!==e.prio&&e.children).map(({key:e})=>e))),o=k(()=>Array.from(e).sort((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)),[e]),i=L(e=>{const t=new Set,n=e.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach(e=>{if(e.props.ignore||!e.props.children)return;const r=e.props.minWidth+1;void 0===e.props.prio||i+r<=n?i+=r:t.add(e.key)}),r(e=>e.size===t.size&&[...e].every(e=>t.has(e))?e:t)},[o]);return CK({ref:t,callback:i}),Yt.jsx(EK,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!n.has(e.key))})},AK=({children:e})=>e,IK=(e,t)=>!e.isLocked&&e.isDim&&t,kK=({column:e,open:t,setOpen:n})=>{const r=Qg(_W),o=Qg(Eb),i=Qg(Fb),a=Qg(ob);Qg(nb);const s=w.useRef(null),l=L(()=>{n(!1)},[n]),u=IU({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return Yt.jsx(UB,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??r.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),u(),n(!0)},children:Yt.jsx(zU,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},PK=({column:e})=>{const{sortDirection:t,isActivelySorted:n}=e,r="A"===t?Yt.jsx(CB,{height:kB,"data-testid":"head-cell-sort-ascending-icon"}):Yt.jsx(xB,{height:kB,"data-testid":"head-cell-sort-descending-icon"});return n?Yt.jsx(aK,{children:r}):void 0},MK=0,DK=1,TK=2,OK=3,qK=e=>{const{column:t,open:n,setOpen:r,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=Qg(_W),u=Qg(Fb),{measureText:c}=Lm(l.header),[d,p]=P(!1),f=M(null),h=M(null),m=M(null),g="number"==typeof a&&a>Zm.PixelsMin+18;return Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs(RK,{children:[Yt.jsx(AK,{prio:TK,minWidth:FB,children:vK(t)?Yt.jsx(yK,{column:t}):null},"Lock"),Yt.jsx(AK,{prio:DK,minWidth:FB,children:gK(t,s)?Yt.jsx(bK,{column:t}):null},"Cyclic"),Yt.jsx(AK,{ignore:!0,children:Yt.jsx(PK,{column:t})},"Sort"),Yt.jsx(AK,{minWidth:c(t.label)+8,children:Yt.jsx(WB,{justifyContent:t.headTextAlign,children:Yt.jsx(fK,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),Yt.jsx(AK,{prio:g?void 0:MK,minWidth:FB,children:d||IK(t,s)?Yt.jsx(kK,{open:d,setOpen:p,column:t}):null},"Search"),Yt.jsx(AK,{prio:OK,minWidth:FB,children:s?Yt.jsx(xK,{menuIconRef:m,column:t,open:n,setOpen:r}):null},"Menu")]}),s?Yt.jsxs(Yt.Fragment,{children:[Yt.jsx($B,{ref:h,direction:u,isPagination:o}),Yt.jsx($B,{ref:f,direction:u}),Yt.jsx(SK,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:n,setOpen:r})]}):null]})},LK=Mu("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:n})=>({...t,background:e,color:n})),NK=()=>{},jK=({column:e,isPagination:t})=>{const n=Qg(_W),r=Qg(Fb),o=Qg(_G),i=Qg(wW),a=!1,s=Qg(Ib)?hK:qK;return Yt.jsx(LK,{className:"sn-table-cell",applicableStyle:{...n.header,...FG(n,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:_B(r,a,o),borderLeftWidth:zB(r,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:e.headerColor?.background??n.header.background,color:e.headerColor?.color??n.header.color,children:Yt.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:NK})})},_K=({isPagination:e})=>{const t=Qg(CW),[n,r]=P();p_({onDragStart:e=>{const t=e.operation.source?.id;r(t)},onDragEnd:()=>{}});const o=n?t.find(e=>e.id===n):void 0;return o?Yt.jsx(Bj,{children:Yt.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:Yt.jsx(jK,{column:o,isPagination:e})})}):null},zK=ZR($g(async e=>{e(yb);const t=e(Kb);return t?.getEffectiveProperties()}),e=>e),FK=$g(e=>e(zK)?.qHyperCubeDef),$K=[YN.configure({activationConstraints:[new WN.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],HK=gj.plugins.filter(e=>e!==CL),BK=(e,t,n)=>{const r=JSON.stringify(t),o=JSON.stringify(n);if(r!==o)return{qPath:e,qOp:"Replace",qValue:o}},VK=(e,t,n,r,o)=>{if(!e||!t||r===o)return;const i=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:n,visibleColumnIds:r,sourceId:o,targetId:i})=>{const a=e$({qDimensions:e,qMeasures:t}),s=[...e,...t],l=r.findIndex(e=>e===o),u=r.findIndex(e=>e===i);if(l<0||u<0||l===u)return;const c=((e,t,n)=>{const r=[...e],[o]=r.splice(t,1);return r.splice(n,0,o),r})(r,l,u),d=new Map(c.map((e,t)=>[e,t])),p=a.toSorted((e,t)=>{const n=d.get(e.id),r=d.get(t.id);return void 0===n||void 0===r?0:n-r}),f=p.filter(e=>e.isDimension).map(e=>e.def),h=p.filter(e=>!e.isDimension).map(e=>e.def),m=[...f,...h],g=new Map(m.map((e,t)=>[e.qDef.cId,t]));return{qDimensions:f,qMeasures:h,qInterColumnSortOrder:t$({previousColumns:s,nextColumns:m,qInterColumnSortOrder:n}),qColumnOrder:c.map(e=>g.get(e)).filter(e=>void 0!==e)}})({qDimensions:t.qDimensions,qMeasures:t.qMeasures,qInterColumnSortOrder:t.qInterColumnSortOrder,visibleColumnIds:n.map(e=>e.id),sourceId:r,targetId:o});if(!i)return;const a=[BK("/qHyperCubeDef/qDimensions",t.qDimensions,i.qDimensions),BK("/qHyperCubeDef/qMeasures",t.qMeasures,i.qMeasures),BK("/qHyperCubeDef/qInterColumnSortOrder",t.qInterColumnSortOrder,i.qInterColumnSortOrder),BK("/qHyperCubeDef/qColumnOrder",t.qColumnOrder,i.qColumnOrder)].filter(e=>void 0!==e);0!==a.length&&e.applyPatches(a,!0)},WK=({children:e})=>{const t=Qg(Kb),n=Qg(FK),r=Qg(CW);return Yt.jsx(Fj,{onDragOver:e=>{const o=e.operation.source?.id,i=e.operation.target?.id;void 0!==i&&o!==i&&VK(t,n,r,o,i)},sensors:$K,plugins:HK,children:e})};function UK(e,t){const n=M(!1);O(()=>{n.current?e():n.current=!0},t)}const GK=(e,t)=>{const n=Qg(Ub);O(()=>{const r=e.current;if(!r)return;const o=e=>{tK(e,t,n)};return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}},[e,t,n])},KK=$g(JH),YK=hk(e=>$g(t=>{const[n,r]=t(KK);return 0===n&&r===e})),XK=()=>{const e=Qg(rb);O(()=>{e.notifyIsDoneRendering()})};var JK={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 zwischen den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerelementen zu wechseln. Drücken Sie die Leertaste in den Kopfzellen, um das Spaltenmenü zu öffnen, und drücken Sie die Leertaste in den Körperzellen, um eine Auswahl zu treffen. Duch die Auswahl wird der Seiteninhalt aktualisiert. Die vollständige Liste der Navigationssteuerungen finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate between table cells and tab to move to pagination controls. Press space on header cells to open the column menu, press space on body cells to make selections. Selections will cause content on the page to be updated. The full list of navigation controls can be found in the documentation.","es-ES":"Utilice las teclas de flecha para desplazarse entre las celdas de la tabla y la pestaña a fin de pasar a los controles de paginación. Pulse la barra espaciadora en las celdas del encabezado para abrir el menú de columnas; pulse la barra espaciadora en las celdas del cuerpo para realizar selecciones. Las selecciones harán que se actualice el contenido de la página. Encontrará la lista completa de controles de navegación en la documentación.","fr-FR":"Utilisez les touches fléchées pour naviguer parmi les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Appuyez sur la touche Espace dans les cellules d'en-tête pour ouvrir le menu de la colonne. Appuyez sur Espace dans les cellules de corps pour effectuer une sélection. Les sélections actualiseront le contenu de la page. Vous pouvez consulter la liste complète des commandes de navigation dans la documentation.","it-IT":"Utilizzare i tasti freccia per navigare tra le celle della tabella e il tasto TAB per passare ai controlli di paginazione. Premere lo spazio nelle celle dell'intestazione per aprire il menu della colonna; premere lo spazio nelle celle del corpo per effettuare selezioni. Le selezioni determineranno l'aggiornamento del contenuto della pagina. È possibile trovare l'elenco completo dei controlli di navigazione nella documentazione.","ja-JP":"矢印キーで表のセル間を移動し、タブ キーでページネーション コントロールに移動します。ヘッダー セルでスペースを押すと列メニューが開き、ボディ セルでスペースを押すと選択ができます。選択によって、ページのコンテンツが更新されます。ナビゲーション コントロールの全リストは、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 표 셀 사이를 탐색하고, 탭을 사용하여 페이지 번호 컨트롤로 이동하십시오. 헤더 셀에서 스페이스바를 눌러 열 메뉴를 열고, 본문 셀에서 스페이스바를 눌러 선택하십시오. 선택하면 페이지의 콘텐츠가 업데이트됩니다. 전체 탐색 컨트롤 목록은 설명서에서 확인할 수 있습니다.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren tussen tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Druk op de spatietoets in koptekstcellen om het kolommenu te openen, druk op de spatietoets in hoofdtekstcellen om selecties te maken. Door selecties te maken, wordt de inhoud op de pagina bijgewerkt. De volledige lijst met besturingselementen voor navigatie vindt u in de documentatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się między komórkami tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Naciśnij klawisz spacji na komórkach nagłówka, aby otworzyć menu kolumny i naciśnij go na komórkach treści, aby dokonać wyborów. Wybory będą powodować aktualizację zawartości na stronie. Pełną listę nawigacyjnych elementów sterujących można znaleźć w dokumentacji.","pt-BR":"Use as teclas de seta para navegar entre as células da tabela e a tecla Tab para mover para os controles de paginação. Pressione espaço nas células do cabeçalho para abrir o menu da coluna, pressione espaço nas células do corpo para fazer seleções. As seleções farão com que o conteúdo da página seja atualizado. A lista completa de controles de navegação pode ser encontrada na documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения между ячейками таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Нажмите пробел на ячейках заголовка, чтобы открыть меню столбца; нажмите пробел на ячейках тела, чтобы сделать выборки. Выборки приведут к обновлению содержимого страницы. Полный перечень элементов управления навигацией см. в документации.","sv-SE":"Använd piltangenterna för att navigera mellan tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Tryck på mellanslag på rubrikceller för att öppna kolumnmenyn och tryck på mellanslag på innehållsceller för att göra urval. Med urval kommer innehåll på sidan att uppdateras. Den fullständiga listan med navigeringsreglage.","tr-TR":"Tablo hücreleri arasında gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Sütun menüsünü açmak için başlık hücrelerinde boşluğa basın, seçim yapmak için gövde hücrelerinde boşluğa basın. Seçimler, sayfadaki içeriğin güncellenmesine neden olur. Navigasyon kontrollerinin tam listesi belgede bulunabilir.","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":"已依遞減順序排序。"}}};const ZK=$g(e=>{const t=e(rv),n=e(Qb),r=e(bb);let o;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(JK).forEach(t=>{e.add(JK[t])})}(t),({keys:e,politeness:i="polite"})=>{const a=e.map(e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)}).join(" "),s=n.querySelector(`.${XH.First}`),l=n.querySelector(`.${XH.Second}`);if(!s||!l)return void r.error({msg:"could not find aria-live elements, which means accessibility is not working properly"});let u;o===XH.First?(u=l,o=XH.Second):(u=s,o=XH.First),u.innerHTML=u.innerHTML.endsWith(" ")?a:`${a} `,u.setAttribute("aria-live",i)}}),QK=(e,t)=>{const n=Qg(ZK),r=Qg(Qb),o=Qg(IW),i=Qg(AW),a=Qg(RW),s=Qg(wW),[l,u]=tb(KK),c=Qg(Pb),d=Qg(Ub);UK(()=>{const t=((e,t,n=!1)=>{const r=[WG(t),e[1]];return n?r:JH})(l,s,c);(({resetCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(XG(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=GG(t,e);n.current?(JG(s),n.current=!1):KG(s),r&&(a({keys:[s?.textContent??""]}),RG(a,s,r))})({resetCellCoord:t,rootElement:r,shouldRefocus:e,setFocusedCellCoord:u,isSelectionMode:c,keyboard:d,announce:n})},[a.length,i,o,t])},eY=e=>{Em(e),AG(e)&&ig(e.currentTarget)},tY=e=>{MG(e.evt)&&(Em(e.evt),QG(e))},nY=e=>{const{evt:t,totalsPosition:n,cell:r,isSelectionMode:o}=e;if(!MG(t))return;Em(t);const i=((e,t)=>[e.pageRowIdx+WG(t),e.pageColIdx])(r,n),a=UG(o,n),{nextCell:s,nextCellCoord:l}=QG({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:n,selectionDispatch:r,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&n.isSelectable?r({type:KH.SelectMultiAdd,payload:{cell:n,evt:e,announce:o}}):RG(o,a,i)})({...e,nextCell:s})},rY=e=>{const{evt:t}=e;IG(t)?(({evt:e,totalRowCount:t,rowsPerPage:n,page:r,updateShouldRefocus:o,handleChangePage:i})=>{Em(e);const a=Math.ceil(t/n)-1;e.key===Xm.Right&&r<a?(o(),i(r+1)):e.key===Xm.Left&&r>0&&(o(),i(r-1))})(e):t.key===Xm.Esc?(({evt:e,keyboard:t,isSelectionMode:n})=>{t.enabled&&!n&&(Em(e),t.blur?.(!0))})(e):kG(t.key)&&Em(t)},oY=e=>{const{evt:t,selectionsAPI:n}=e;if(t.currentTarget.classList.contains(GH.Disabled))return void Em(t);const r={...e,isSelectionMode:!!n?.isModal()};switch(t.key){case Xm.Space:(({evt:e,cell:t,isSelectionsEnabled:n,selectionDispatch:r,announce:o})=>{Em(e),t.isSelectable&&n&&r({type:KH.Select,payload:{cell:t,evt:e,announce:o}})})(r);break;case Xm.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{Em(n),e&&(t?.confirm(),r({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(r);break;case Xm.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{e&&(Em(n),t?.cancel(),r({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(r);break;case Xm.C:eY(t);break;case Xm.Tab:(({evt:e,keyboard:t,isSelectionMode:n,paginationNeeded:r})=>{const o=e.shiftKey||!r;t.enabled&&n&&o&&(Em(e),Cm(e.currentTarget,t,e.shiftKey))})(r);break;default:nY(r)}},iY=e=>{const t=Qg(GB),n=eb(KB),r=eb(YB),o=Qg(UH),i=M();CK({ref:e,callback:a=>{const s=()=>{if(e.current){const e=a.borderBoxSize.at(0)?.inlineSize??0,t=a.borderBoxSize.at(0)?.blockSize??0,o=a.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.contentBoxSize.at(0)?.blockSize??0);r(e-o),n(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()}}),O(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},aY=Mu("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),sY=Mu(Vh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),lY=Mu(kh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),uY=()=>Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(aY,{className:XH.First,"data-testid":XH.First,"aria-live":"polite","aria-atomic":"true"}),Yt.jsx(aY,{className:XH.Second,"data-testid":XH.Second,"aria-live":"polite","aria-atomic":"true"})]}),cY=e=>{const t=M(new Map),n=M(null);O(()=>{n.current=e(t.current),t.current.forEach((e,t)=>{n.current?.observe(t)});const r=t.current,o=n.current;return()=>{o.disconnect(),r.clear()}},[e,n,t]);const r=L((e,r)=>{t.current.set(e,r),n.current?.observe(e)},[t,n]),o=L(e=>{t.current.delete(e),n.current?.unobserve(e)},[n,t]);return k(()=>({addTask:r,removeTask:o}),[r,o])},dY=e=>new ResizeObserver(t=>{t.forEach(t=>{const n=e.get(t.target);n?.(t)})}),pY=()=>cY(dY),fY=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=Qg(Mb),r=Qg(Ub),o=eb(NG);O(()=>{const i=()=>{o({type:KH.Reset})},a=()=>{o({type:KH.Clear})},s=()=>{t.current?.contains(document.activeElement)?e():r.enabled&&r.blur?.(!0),i()};return n?.on("deactivated",i),n?.on("canceled",i),n?.on("confirmed",s),n?.on("cleared",a),()=>{n?.removeListener("deactivated",i),n?.removeListener("canceled",i),n?.removeListener("confirmed",s),n?.removeListener("cleared",a)}},[n,r,o,e,t])},hY=e=>{e.stopPropagation()},mY=({href:e,text:t,interactions:n,color:r})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:hY,color:bm.LINK,style:{pointerEvents:n.active?"auto":"none",color:r??void 0,opacity:n.active&&n.passive||r?void 0:.4}}),gY=({href:e,text:t,interactions:n,color:r})=>Yt.jsx($p,{...mY({href:e,text:t,interactions:n,color:r}),children:t}),bY=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),vY=window.cancelIdleCallback??(e=>{clearTimeout(e)}),yY="qDimensionInfo/0",xY="qMeasureInfo/0",SY="x",wY="y",CY=e=>({key:"bars",type:"box",data:{extract:{field:yY,props:{start:0,end:{field:xY}}}},settings:{major:{scale:SY},minor:{scale:wY},box:{maxWidthPx:8,fill:{fn:e}}}}),EY=e=>({key:"p",type:"point",data:{extract:{field:yY,props:{y:{field:xY}}}},settings:{x:{scale:SY},y:{scale:wY},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),RY=({qNum:e})=>void 0===e?0:Math.sign(e),AY=(e,t)=>{const{primary:n,nil:r,others:o}=e.getDataColorSpecials(),i=Sm(e,t?.negative,n),a=Sm(e,t?.positive,n);return{key:"pos-neg",type:"box",data:{extract:{field:yY,props:{start:0,end:{field:xY,value:RY}}}},settings:{major:{scale:SY},minor:{scale:wY},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?r:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},IY=(e,{type:t,showDots:n,colors:r,colorMin:o,colorMax:i})=>{const a=((e,t,n,r)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=Sm(e,t?.main,o),l=Sm(e,t?.max,s),u=Sm(e,t?.min,s),c=Sm(e,t?.first,s),d=Sm(e,t?.last,s);return e=>{const t=wY in e.datum?wY:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=r?l:e.datum[t].value<=n?u:e.data.items.at(0)===e.datum?c:e.data.items.at(-1)===e.datum?d:s}})(e,r,o,i);switch(t){case"bars":return[CY(a)];case"dots":return[EY(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:yY,props:{v:{field:xY}}}},settings:{coordinates:{major:{scale:SY},minor:{scale:wY,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(Sm(e,r?.main,e.getDataColorSpecials().primary));return n?[t,EY(a)]:[t]}case"posNeg":return[AY(e,r)];default:return[]}},kY=e=>({qDimensionInfo:[{qFallbackTitle:"",qCardinal:1}],qMeasureInfo:[{qFallbackTitle:""}],qDataPages:[{qArea:{qTop:0,qLeft:0,qHeight:e.length,qWidth:2},qMatrix:e}],qEffectiveInterColumnSortOrder:[0,1],qSize:{qcx:2,qcy:e.length},qMode:"S"}),PY=(e,t,n,r)=>({y:{data:{field:xY},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:n},x:{data:{extract:{field:yY}},paddingInner:.3,paddingOuter:0,invert:"rtl"===r,align:"rtl"===r?1:0,maxPxStep:12}}),MY=K();MY.use(G),MY.renderer.prio(["canvas"]);const DY={resolve:()=>{},promise:{}},TY=({chart:e,element:t,requestId:n,theme:r,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=M(e.isDownloadedAsPDForImage?It():DY);return{addChartPromiseToQueue:L(()=>{e.waitForPromise(t.current.promise)},[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:L(()=>{if(null===t.current||null!==e.current)return;u();n.current=bY(()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:n,miniChartData:r,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:u}=r;return MY.chart({element:e,data:{type:"q",key:"qHyperCube",data:kY(s)},settings:{scales:PY(a,l,u,i),components:IY(t,r),strategy:n?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:r,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))},{timeout:2e3})},[t,e,u,n,r,o,a,i,l]),safeCancelIdleCallback:L(()=>{null!==n.current&&vY(n.current),n.current=null,l()},[n,l])}},OY=e=>{const t=M(null),n=M(!1);return L(r=>{const o=r.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(vY(e.current),e.current=null)})(t),n.current?0!==o?null!==e.current&&(t.current=bY(()=>{e.current?.update()},{timeout:2e3})):n.current=!1:n.current=!0},[e])},qY=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:n,isSnapshot:r,miniChartData:o,downloadService:i,direction:a})=>{const s=M(null),l=M(null),u=M(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=TY({element:s,chart:l,requestId:u,theme:n,isSnapshot:r,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:n,renderChartWithRequestIdleCallback:r,chart:o})=>{const i=L(e=>{e.isIntersecting?r():n()},[r,n]);O(()=>{if(!e.current||!t)return()=>{};const r=e.current;return t.addTask(r,i),()=>{t.removeTask(r),n(),o.current?.destroy(),o.current=null}},[o,e,t,n,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:n,intersectionObserverTaskScheduler:r})=>{O(()=>r?()=>{}:(e(),()=>{t(),n.current?.destroy(),n.current=null}),[r,t,e,n])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:n})=>{const r=OY(t);O(()=>{const t=e.current;return t?(n.addTask(t,r),()=>{n.removeTask(t)}):()=>{}},[e,r,n])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},LY=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=qY({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return Yt.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},NY=e=>{let t="center",n="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?n="left":"flex-end"===e?.horizontal&&(n="right"),`${n} ${t}`},jY=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},_Y=({representation:e,textStyle:t,maxImageHeight:n,wrapInContainer:r})=>{const o=Qg(Fb),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=Yt.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:n,objectFit:jY(s),objectPosition:NY(l),overflow:"hidden"}});return r?Yt.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?n:"100%",overflow:"hidden",display:"flex",justifyContent:u?OB(o,e):void 0},children:c}):c},zY=({size:e,iconKey:t,color:n,pvStyle:r})=>{const o=t&&EB[t];return o&&Yt.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:n,height:e,...r},children:Yt.jsx(o,{style:{height:e}})})},FY=({representation:e,cellValue:t,paginationCellAlign:n})=>{const r=Qg(_W),o=Qg(Fb),i=Qg(nv),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=RB(e,t,o,i),d=(e=>parseInt(e||kB,10))(r.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?Yt.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:n??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:u?p:void 0},children:["left"===h&&zY({size:d,iconKey:f,color:p}),Yt.jsx(fK,{isNumeric:!0,children:a}),"right"===h&&zY({size:d,iconKey:f,color:p})]}):zY({size:d,iconKey:f,color:p})},$Y=(e,t,n)=>e.contentStaticLineCount?t*(n??e.grid.contentLineClamp):t,HY=({forwardRef:e,cell:t,style:n,virtualizedCell:r,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=Qg(_W),u=Qg($W),c=Qg(rb),d=Qg(yb),p=Qg(nv),f=Qg(Fb),h=Qg(Tb),m=Qg(Pb);if(t.representation.type===u$.Image&&!t.representation.url?.trim())return null;if(t.representation.type===u$.Image)return Yt.jsx(_Y,{representation:t.representation,textStyle:n,maxImageHeight:$Y(l,u,o),wrapInContainer:!r});let g=t.representation.text;t.representation.type!==u$.Link||m||t.isNull||(g=Yt.jsx(gY,{href:t.representation.url,text:t.representation.text,interactions:h,color:n.cellForegroundColor}));const b="string"==typeof(v=t.qIsNull?t.representation.text:t.qNum)&&v.length>0||"number"==typeof v?+v:NaN;var v;return t.representation.type!==u$.Indicator||Number.isNaN(b)?t.representation.type===u$.MiniChart&&t.representation.miniChart&&!t.isNull?Yt.jsx(LY,{height:$Y(l,u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:p,isSnapshot:!!d.snapshotData,direction:f,downloadService:c}):Yt.jsx(fK,{forwardRef:e,isDual:t.isDual,isNumeric:t.isNumeric,lineClamp:o,isPagination:!r,children:g}):Yt.jsx(FY,{representation:t.representation,cellValue:b,paginationCellAlign:r?void 0:s})},BY=()=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:Yt.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),VY=Mu("div")({"& path":{stroke:"none !important"}}),WY=({children:e,cellSelectionState:t,hideTickIcon:n})=>t!==GH.Selected||n?e:Yt.jsxs(dK,{children:[e,Yt.jsx(VY,{children:Yt.jsx(BY,{})})]}),UY=e=>{const t=function(){const e=$j(),t=Cj(()=>null==e?void 0:e.dragOperation.source,[e]),n=Cj(()=>null==e?void 0:e.dragOperation.target,[e]);return{get source(){return t.value},get target(){return n.value}}}();return t.source&&t.source.id!==e?.5:1},GY=(e,t,n,r)=>({handleMouseDown:r=>{e?.(r);const o=r.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{n({type:KH.SelectMultiEnd})};n({type:KH.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&n({type:KH.SelectMultiAdd,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:e=>{0===e.button&&n({type:KH.SelectMouseUp,payload:{cell:t,evt:e,announce:r}})}}),KY=e=>{const t=Qg(kW),n=Qg(wW),r=Qg(ZK),o=Qg(Qb),i=Qg(Fb),a=eb(KK),s=eb(NG),l=Qg(Ub),u=Qg(Lb),c=Qg(Mb),d=d=>{oY({evt:d,rootElement:o,selectionsAPI:c,cell:e,selectionDispatch:s,isSelectionsEnabled:u,setFocusedCellCoord:a,announce:r,keyboard:l,paginationNeeded:t,totalsPosition:n,direction:i})},p=e=>{((e,t)=>{e.key===Xm.Shift&&t({type:KH.SelectMultiEnd})})(e,s)},f=()=>{((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;eK([s,a],t,n,r)})(e,o,a,l,n)};if(!u)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=GY(f,e,s,r);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},YY=e=>{O(()=>()=>{jG.remove(e)},[e])},XY=(e,t,n,r)=>{if(!n.isNull)return e;const o=r?t.dimensionNull:t.measureNull,i={...e,...o};if(!t.grid.zebraStripes.show)return i;const a=r?t.grid.zebraStripes.overrideDimNullValueColor:t.grid.zebraStripes.overrideMeasNullValueColor,s=r?t.grid.zebraStripes.overrideDimNullValueBackground:t.grid.zebraStripes.overrideMeasNullValueBackground;return a&&(i.color=e.color),s&&(i.background=e.background),i},JY=(e,t,n)=>{const{color:r,background:o}=e.grid.zebraStripes[n];return{...t,...r?{color:r}:void 0,...o?{background:o}:void 0}},ZY=(e,t,n)=>{if(t.grid.zebraStripes.show){const r=(n.rowIdx+1)%2==0;return JY(t,e,r?"even":"odd")}return e},QY=(e,t)=>{const n=Qg(_W),r=Qg(jG(e)),o=Qg(gb),i=e.isTotalRow&&o("TLV-2303-SUB-TOTALS");YY(e);let a=t.isDim?n.dimension.values:n.measure.values;a=ZY(a,n,e),a=i?n.subTotalRow:a,a=XY(a,n,e,t.isDim);const s=e.isNull||i&&t.isDim?a:aV(a,e.qAttrExps,t.qAttrExprInfoIDs),l=i?s:function(e,t,n){return t===GH.Selected?{...e,...n}:t===GH.Disabled?{...e,background:`${AB}, ${e.background}`}:e}(s,r,n.selectedColors);return{cellStyle:{...l,borderColor:n.grid.border},representationStyle:s,cellSelectionState:r}},eX=Mu(Lh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),tX=Mu(nm,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})(({hover:e,hoverColors:t,height:n})=>({height:n,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}})),nX=Mu(Fh,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...DB,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),rX=Mu(Fh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...DB,...e,fontWeight:PB,position:"sticky",padding:r.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?n:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0})),oX=({cell:e,column:t,columnIndex:n,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o})=>{const i=Qg(Fb),a=Qg(Tb),{onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d}=KY(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=QY(e,t),m=UY(t.id);return Yt.jsx(nX,{cellStyle:{...p,opacity:m},scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${Ym}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d,children:Yt.jsx(WY,{cellSelectionState:h,hideTickIcon:!!e.isTotalRow,children:Yt.jsx(HY,{cell:e,style:f,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o,paginationCellAlign:jB(i,e.align)})})})},iX=$g(0),aX=({column:e,totalsPosition:t,onKeyDown:n,onMouseDown:r})=>{const o=Qg(_W),i=Qg(qb),a=Qg(iX),s=UY(e.id);return Yt.jsx(rX,{totalsStyle:{...o.totalRow,...FG(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${Ym}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:n,onMouseDown:r,children:Yt.jsx(fK,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},sX=()=>{const e=Qg(wW),t=Qg(CW),n=Qg(RW),r=Qg(Qb),o=Qg(Ob),i=Qg(Fb),a=eb(KK),s=Qg(Pb),l=Qg(Ub);return Yt.jsx(nm,{className:"sn-table-row sn-table-totals-row",children:t.map((t,u)=>{const c=[e.atTop?1:n.length+1,u];return Yt.jsx(aX,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:n,isInteractionEnabled:r}=e;if(!t&&r)switch(n.key){case Xm.C:eY(n);break;case Xm.Space:n.preventDefault();break;default:tY(e)}else Em(n)})({evt:e,rootElement:r,cellCoord:c,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{eK(c,r,a,l)}},t.id)})})};var lX=z(sX);const uX=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=Qg(RW),r=Qg(wW),o=Qg(CW),i=Qg(_W),a=Qg(HW),s=Qg(BW),l=Qg(yb),u=!!nV(l)?.content?.hoverEffect;fY({updateShouldRefocus:e,tableWrapperRef:t});const c=(e=>{const t=L(t=>new IntersectionObserver(e=>{e.forEach(e=>{const n=t.get(e.target);n?.(e)})},{root:e.current}),[e]);return cY(t)})(t),d=pY();return Yt.jsxs(eX,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[r.atTop?Yt.jsx(lX,{}):void 0,n.map((e,t)=>{const n=e.at(0)?.isTotalRow??!1;return Yt.jsx(tX,{hoverColors:i.grid.hoverColors,hover:u,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:n?s:a,children:o.map((t,n)=>{const{id:r}=t,o=e[n];return Yt.jsx(oX,{columnIndex:n,cell:o,column:t,intersectionObserverTaskScheduler:c,resizeObserverTaskScheduler:d},r)})},`row-${t}`)}),r.atBottom?Yt.jsx(lX,{}):void 0]})};var cX=z(uX);const dX=(e,t)=>!!e?.skipHeader||!!t.hideHeader,pX=$g(e=>{const t=e(yb),n=e(Gb);if(n)return(e,{isDim:r,colIdx:o})=>{const i=r?o:o-t.qHyperCube.qDimensionInfo.length,a=`/qHyperCubeDef/${r?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=t.qHyperCube[r?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...e})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(e)};n.applyPatches([l],!0)}}),fX=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o,label:i}=e,a=Qg(pX),s=Qg(Fb),l=Qg(Ob),u=Qg(rv),[c,d]=tb(KW);if(!l)return null;return Yt.jsx(rU,{columnWidth:c.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{n?.();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{YG(e);const t=e.closest(".sn-table-cell");JG(t)})(e.currentTarget)},setIsAdjustingWidth:r,accessibilityRelatedArgs:{translator:u,columnLabel:i},direction:s})},hX=e=>e.target?.getAttribute("class")?.includes(Jm),mX=({isInteractionEnabled:e,column:t})=>{const[n,r]=P(!1),o=Qg($G),i=Qg(GB);return{open:n,setOpen:r,handleOpenMenu:t=>{!e||hX(t)||i||r(!0)},toggleSortOrder:n=>{e&&!hX(n)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(n)&&(n.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var gX=class extends UT{constructor(e,t){super(e,t),this.boundingRectangle=Yk(null),this.destroy=iP(()=>{if(!this.options)return;const{dragOperation:t}=e,{status:n}=t;if(n.initialized){const{element:e}=this.options,n="function"==typeof e?e(t):e;if(!n)return;let r;const o=()=>{this.boundingRectangle.value=aO(n)},i=()=>{r||(r=setTimeout(()=>{o(),r=void 0},25))},a=new ResizeObserver(o);return a.observe(n),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}})}apply(e){const{shape:t,transform:n}=e;if(!t)return n;const r=this.boundingRectangle.value;if(!r)return n;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,u=o.center.y-a/2,c=function(e,t,n){const r=I_({},t);return e.boundingRectangle.top+t.y<=n.top?r.y=n.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=n.top+n.height&&(r.y=n.top+n.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=n.left?r.x=n.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=n.left+n.width&&(r.x=n.left+n.width-e.boundingRectangle.right),r}(new RM(l,u,s,a),n,r);return c}};gX.configure=cD(gX);const bX=({invert:e})=>({dragOperation:t,droppable:n})=>{if(!n.shape)return null;const{shape:r}=t;if(!r)return null;const o=function(e){return e.sortable?.index}(n);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=r.current;return"left"===a&&l.left+.3*l.width<=n.shape.center.x||"right"===a&&l.right-.3*l.width>=n.shape.center.x?{id:n.id,value:1/EM.distance(n.shape.center,s),type:xT.Collision,priority:yT.Normal}:null},vX=[gX.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],yX=(e,t)=>{const n=Qg(Fb),r=!Qg(jb);return Wz({id:e.id,disabled:r,index:t,type:"item",accept:"item",group:"column",modifiers:vX,data:e,plugins:e=>[...e,mN.configure({feedback:"clone"})],collisionDetector:bX({invert:"rtl"===n})})},xX=({column:e,columnIndex:t,columnsLength:n})=>{const r=Qg(_W),o=Qg(Qb),i=Qg(Fb),a=Qg(Tb),s=Qg(CW),l=Qg(wW),u=Qg(KW)[t],c=eb(KK),d=Qg(YK(t)),p=Qg(jb),f=Qg(Ub),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=mX({isInteractionEnabled:p,column:e}),v=eb(GB),{ref:y,isDragging:x}=yX(e,t),S=UY(e.id),w=Qg(Ib),C=w?hK:qK,E=e.isActivelySorted?YH[e.sortDirection]:void 0,R=h?Km:void 0,A=h?"true":void 0,I=t===n-1,k=[0,e.pageColIdx],P={width:u,zIndex:s.length-t},M=d&&0===t&&!f.enabled&&p?0:-1;return Yt.jsxs(rK,{"data-dragging":x,ref:y,headerStyle:{...r.header,...FG(r,l,!0),opacity:S},background:w&&h?e.headerColor?.headerMenuActiveBackground??r.headerMenuActiveBackground:e.headerColor?.background??r.header.background,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,color:e.headerColor?.color??r.header.color,interactions:a,style:P,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${Ym}`,tabIndex:M,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:n,handleOpenMenu:r}=e;if(t)switch(n.key){case Xm.C:eY(n);break;case Xm.Enter:case Xm.Space:r?.(n);break;default:tY(e)}else Em(n)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:c,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&eK(n,t,r,o)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:c,keyboard:f,isInteractionEnabled:p})},onClick:w?g:b,"aria-sort":E,"aria-controls":R,"aria-expanded":A,"aria-haspopup":"true",children:[Yt.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:u}),Yt.jsx(fX,{column:e,isLastColumn:I,setIsAdjustingWidth:v})]},e.id)},SX=()=>{const e=Qg(CW),t=Qg(_W),n=Qg(yb),r=Qg(Hb),o=eb(iX),i=Qg(KW),a=M(null),s=dX(r,n);return O(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),Yt.jsx(Xh,{style:{visibility:s?"collapse":void 0},children:Yt.jsx(sK,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,n)=>Yt.jsx(xX,{column:t,columnIndex:n,columnsLength:e.length},t.id))})})};var wX=z(SX);var CX=z(()=>{const e=Qg(ZK),[t,n]=tb(fW),{page:r,rowsPerPage:o}=t,i=Qg($b),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:u,rows:c,columns:d}=Qg(SW),p=Qg(_W),f=Qg(XV),h=Qg(yb),m=Qg(nv),g=Qg(Zb),b=Qg(Qb),v=Qg(Hb),y=Qg(Fb),x=Qg(Tb),S=Qg(rv),w=Qg(_G),C=eb(NG),E=Qg(Pb),R=Qg(Ub),A=M(!1),I=M(null),k=M(null),P=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(c.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,D=_b(h,v),T=D?f.scrollLeft??0:0,q=D?f.rowPartialHeight??0:0,N=L(()=>{A.current=b.getElementsByTagName("table")[0].contains(document.activeElement)},[b]),j=L(r=>{n({...t,page:r}),e({keys:[["SNTable.Pagination.PageStatusReport",(r+1).toString(),l.toString()]],politeness:"assertive"})},[t,n,l,e]),_=L(r=>{n({...t,page:0,rowsPerPage:r}),e({keys:[["SNTable.Pagination.RowsPerPageChange",r.toString()]],politeness:"assertive"})},[e,t,n]);return(e=>{const t=Qg(Fb),n=Qg(XV);O(()=>{const r=e.current;if(!r)return;const o=e=>{((e,t,n)=>{if(0===e.deltaX)return;e.stopPropagation();const r=n.scrollWidth-n.offsetWidth,{scrollLeft:o}=n;let i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&e.preventDefault()})(e,"rtl"===t,r)},i=e=>{n.scrollLeft=e.currentTarget?.scrollLeft||0};return r.addEventListener("wheel",o),r.addEventListener("scroll",i),()=>{r.removeEventListener("wheel",o),r.removeEventListener("scroll",i)}},[e,t,n])})(I),GK(k,A),(()=>{const e=Qg(Qb),t=Qg(Ub),n=Qg(KK);$m(()=>{const r=GG(e,n);t.active?JG(r):(r?.blur(),XG(e))},[t.active,e])})(),QK(A,r),O(()=>{const e=I.current;e&&(e.scrollLeft=T,e.scrollTop=q)},[t,s,T,q]),UK(()=>{C({type:KH.UpdatePageRows,payload:{pageRows:c}})},[c]),XK(),iY(I),Yt.jsxs(WK,{children:[Yt.jsxs(uK,{ref:k,dir:y,onKeyDown:e=>{rY({evt:e,totalRowCount:s,page:r,rowsPerPage:o,handleChangePage:j,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[Yt.jsx(uY,{}),Yt.jsxs(sY,{ref:I,className:"sn-table-container",fullHeight:!!i||!x.active||!u,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[Yt.jsxs(lY,{stickyHeader:!0,"aria-label":P,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[Yt.jsx(wX,{}),Yt.jsx(cX,{updateShouldRefocus:N,tableWrapperRef:k})]}),Yt.jsx(zG,{})]}),Yt.jsx(CG,{footerContainer:i,pageInfo:t,paginationNeeded:u,theme:m,totalRowCount:s,totalColumnCount:a,totalPages:l,keyboard:R,translator:S,interactions:x,rect:g,layout:h,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:E,direction:y})]}),Yt.jsx(_K,{isPagination:!0})]})});const EX=$g(0),RX=$g(e=>{const t=e(xb);return Math.min(sV,t)}),AX=$g(e=>{const t=e(xb);return t===sV?0:Math.floor(t/sV)}),IX=$g(e=>{const t=e(EX),n=e(AX);return Math.min(t,n)}),kX=$g(e=>({page:e(IX),rowsPerPage:e(RX),rowsPerPageOptions:[]}),(e,t,n)=>{const r=e(AX);t(EX,Math.max(0,Math.min(n,r)))}),PX=$g(null),MX=$g(null),DX=$g(e=>{const t=e(kX),n=e(xb);return Math.min(t.rowsPerPage,n-t.page*t.rowsPerPage)}),TX=$g(null),OX=$g(null),qX=$g(e=>e(wW).atTop?2:1),LX=$g(e=>e(wW).atTop?1:e(qX)+e(DX)),NX=$g(e=>UG(Boolean(e(Pb)),e(wW))),jX=$g(e=>({firstBodyRowIdx:e(qX),totalsRowIdx:e(LX),allowedRows:e(NX)})),_X=$g(e=>({rootElement:e(Qb),totalsPosition:e(wW),rowCount:e(DX),colCount:e(EW),columnWidths:e(KW)})),zX=$g(e=>({scrollToCell:e(TX),scrollableContainerElement:e(OX)})),FX=$g(e=>({keyboard:e(Ub),isInSelectionMode:e(Pb),selectionsAPI:e(Mb),isSelectionsEnabled:e(Lb)})),$X=$g(e=>({direction:e(Fb),isInteractionEnabled:e(jb),paginationNeeded:e(kW),announce:e(ZK),shouldRefocusRef:e(PX)})),HX=10,BX=e=>e.atTop?2:1,VX=(e,[t,n],r,o)=>{const i=BX(r);if(0===t)return e.querySelector(`.sn-table-head-row [data-col="${n}"]`);if(r.atTop&&1===t)return e.querySelector(`.sn-table-totals-row [data-col="${n}"]`);const a=t-i;return a>=0&&a<o?e.querySelector(`.sn-table-body .sn-table-cell[rowindex="${a}"][columnindex="${n}"]`):e.querySelector(`.sn-table-totals-row [data-col="${n}"]`)},WX=(e,t,n,r,o,i,a,s,l)=>{if(!e)return l(!1),()=>{};const[u,c]=n,d=u-BX(r),p=d>=0&&d<o;let f=a,h=!1,m=null;const g=()=>h||s&&!s(),b=()=>{g()||(p&&e(d,c),m=requestAnimationFrame(()=>{if(g())return;const e=((e,t)=>{if(!e||!t)return!1;const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.top>=r.top&&n.bottom<=r.bottom&&n.left>=r.left&&n.right<=r.right})(VX(t,n,r,o),i);if(!e)return f>0?(f-=1,void b()):void l(!1);l(!0)}))};return b(),()=>{h=!0,null!==m&&cancelAnimationFrame(m)}},UX=(e,t,n,r,o,i)=>e<i?[t,e+1]:t<r?[t+1,o]:[t,e],GX=(e,t,n,r,o,i)=>e>o?[t,e-1]:t>n?[t-1,i]:[t,e],KX=(e,[t,n],r,o,i,a={top:0,bottom:0},s)=>{const l=a.top>0,u=a.top,c=r-1-a.bottom,d=o-1;switch(e.key){case Xm.Down:case Xm.Up:t=((e,t,n,r)=>e===Xm.Down&&t<r?t+1:e===Xm.Up&&t>n?t-1:t)(e.key,t,u,c);break;case Xm.Right:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?GX(e,t,n,0,o,i):UX(e,t,0,r,o,i))(n,t,u,c,0,d,i));break;case Xm.Left:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?UX(e,t,0,r,o,i):GX(e,t,n,0,o,i))(n,t,u,c,0,d,i));break;case Xm.Home:l?t=Math.max(u,t-HX):(AG(e)&&(t=u),n=0);break;case Xm.End:l?t=Math.min(c,t+HX):(AG(e)&&(t=c),n=d);break;case Xm.PageDown:t=Math.min(c,t+HX);break;case Xm.PageUp:if(l)t=Math.max(u,t-HX);else{const e=s?BX(s):1,n=t-e;t=n>0&&n<=HX?e:Math.max(u,t-HX)}}return[t,n]},YX=e=>{((e,t)=>{e.querySelectorAll(t).forEach(e=>{e.setAttribute("tabIndex","-1")})})(e,".sn-table-cell[tabindex='0']")},XX=[Xm.Home,Xm.End,Xm.PageUp,Xm.PageDown],JX=()=>{const e=M(!1),t=M(0),n=M(0),r=M(null),o=M(null),i=M(null),a=M(0),s=eb(KK),l=eb(NG),u=Qg(gb)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE"),{rootElement:c,totalsPosition:d,rowCount:p,colCount:f,columnWidths:h}=Qg(_X),{firstBodyRowIdx:m,allowedRows:g,totalsRowIdx:b}=Qg(jX),{scrollToCell:v,scrollableContainerElement:y}=Qg(zX),{keyboard:x,isInSelectionMode:S,selectionsAPI:w,isSelectionsEnabled:C}=Qg(FX),{direction:E,announce:R,isInteractionEnabled:A,paginationNeeded:I,shouldRefocusRef:P}=Qg($X),D=k(()=>(e=>{const t=new Array(e.length+1);t[0]=0;for(let n=0;n<e.length;n++)t[n+1]=t[n]+(e[n]??0);return t})(h),[h]);O(()=>()=>{t.current+=1,n.current+=1,a.current+=1,r.current?.(),r.current=null,o.current?.(),o.current=null,i.current?.(),i.current=null},[]);const T=L((e,t,n,r)=>{const o=t=>{if(r&&!r())return void n?.(!1);const i=VX(c,e,d,p);if(i)return document.activeElement!==i&&HG(i),document.activeElement===i?void n?.(!0):t>0?void requestAnimationFrame(()=>{o(t-1)}):void n?.(!1);t>0?requestAnimationFrame(()=>{o(t-1)}):n?.(!1)};requestAnimationFrame(()=>{o(t)})},[c,d,p]),q=L((e,t)=>{const r=a.current+1;a.current=r;let i=0;const s=Date.now()+5e3,l=()=>{if(a.current!==r)return;if(n.current!==t)return;if(c instanceof HTMLElement&&!c.isConnected)return;if(Date.now()>s||i>=5)return;const u=document.activeElement;u&&u!==document.body&&u!==document.documentElement||(i+=1,P&&(P.current=!0),o.current?.(),o.current=WX(v,c,e,d,p,y,10,()=>a.current===r&&n.current===t,()=>{T(e,300,()=>{P&&(P.current=!1)},()=>a.current===r&&n.current===t)})),requestAnimationFrame(()=>{requestAnimationFrame(l)})};requestAnimationFrame(()=>{requestAnimationFrame(l)})},[T,c,p,v,y,P,d]),N=L(()=>(P&&(P.current=!0),t.current+=1,t.current),[P]),j=L(()=>{t.current+=1,i.current?.(),i.current=null},[]),_=L((e,n)=>{const r=o=>{t.current===e&&(i.current?.(),i.current=WX(v,c,n,d,p,y,10,()=>t.current===e,()=>{if(t.current!==e)return;const i=VX(c,n,d,p);i&&document.activeElement!==i&&HG(i),o>0?requestAnimationFrame(()=>{r(o-1)}):t.current===e&&P&&(P.current=!1)}))};requestAnimationFrame(()=>{requestAnimationFrame(()=>{r(300)})})},[c,d,p,v,P,y]),z=L((e,t)=>{if(!MG(e))return;Em(e),j(),n.current+=1;const o=n.current;a.current+=1,r.current?.(),r.current=null;const i=((e,t)=>BX(t)+e+(t.atBottom?1:0))(p,d),l=KX(e,t,i,f,E,g,d);YX(c),s(l);const[,u]=l,[,h]=t;return u!==h&&((e,t,n)=>{if(!e)return;const r=t[n]??0,o=t[n+1]??r,{scrollLeft:i,clientWidth:a}=e;r<i?e.scrollLeft=r:o>i+a&&(e.scrollLeft=o-a)})(y,D,u),P&&(P.current=!0),r.current=WX(v,c,l,d,p,y,10,()=>n.current===o,()=>{T(l,300,t=>{P&&(P.current=!1),t&&(e=>XX.includes(e))(e.key)&&q(l,o)},()=>n.current===o)}),l},[c,d,p,f,E,v,s,g,y,P,T,j,D,q]),F=L(e=>{e.key===Xm.Esc?x.enabled&&!S&&(Em(e),x.blur?.(!0)):kG(e.key)&&Em(e)},[x,S]),$=L((e,t,n)=>{switch(e.key){case Xm.C:Em(e),A&&(e.ctrlKey||e.metaKey)&&ig(e.currentTarget);break;case Xm.Enter:case Xm.Space:if(!A){Em(e);break}n?.(e);break;default:z(e,[0,t])}},[z,A]),H=L((t,r,o,i)=>{const a=[r+m,o];switch(t.key){case Xm.Space:if(Em(t),i.isSelectable&&C){e.current=!0;const n=N();l({type:KH.Select,payload:{cell:i,evt:t,announce:R}}),_(n,a)}break;case Xm.Enter:if(Em(t),e.current=!1,S){N(),s(JH),w?.confirm(),y&&(y.scrollTop=0,y.scrollLeft=0);const e=t=>{v?.(0,0),t>0&&requestAnimationFrame(()=>{e(t-1)})};e(10),n.current+=1;const t=n.current;T(JH,300,()=>{P&&(P.current=!1)},()=>n.current===t)}break;case Xm.Esc:if(e.current=!1,S){Em(t);const e=N();w?.cancel(),_(e,a)}break;case Xm.C:Em(t),A&&(t.ctrlKey||t.metaKey)&&ig(t.currentTarget);break;case Xm.Tab:{const e=t.shiftKey||!I;x.enabled&&S&&e&&(Em(t),Cm(t.currentTarget,x,t.shiftKey));break}default:{const n=t.key===Xm.Left||t.key===Xm.Right,r=S||Boolean(w?.isModal())||e.current;if(n&&r){Em(t);break}const o=z(t,a);!!o&&o[0]!==a[0]&&t.shiftKey&&C&&i.isSelectable&&l({type:KH.SelectMultiAdd,payload:{cell:i,evt:t,announce:R}});break}}},[m,z,C,l,R,S,w,x,I,A,N,_,s,v,y,T,P]),B=L(t=>{t.key===Xm.Space&&(e.current=!1),t.key===Xm.Shift&&l({type:KH.SelectMultiEnd})},[l]),V=L((e,t)=>{if(S)Em(e);else{if(e.key!==Xm.Space)return e.key===Xm.C?(Em(e),void(A&&(e.ctrlKey||e.metaKey)&&ig(e.currentTarget))):void z(e,[b,t]);e.preventDefault()}},[S,z,b,A]),W=L(e=>{j(),n.current+=1;const t=n.current;YX(c),s(e),x.enabled&&x.focus?.(),T(e,2,n=>{n&&q(e,t)},()=>n.current===t)},[c,s,x,T,j,q]);return{handleWrapperKeyDown:F,handleHeadKeyDown:$,handleBodyKeyDown:H,handleBodyKeyUp:B,handleTotalsKeyDown:V,focusHeadCellOnClick:L(e=>{u&&W([0,e])},[W,u]),focusBodyCellOnClick:L((e,t)=>{u&&W([e+m,t])},[W,m,u]),focusTotalsCellOnClick:L(e=>{u&&W([b,e])},[W,b,u])}};var ZX=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function QX(e,t){return e===t||!(!ZX(e)||!ZX(t))}function eJ(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!QX(e[n],t[n]))return!1;return!0}function tJ(e,t){var n;void 0===t&&(t=eJ);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var nJ="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function rJ(e){cancelAnimationFrame(e.id)}function oJ(e,t){var n=nJ();var r={id:requestAnimationFrame(function o(){nJ()-n>=t?e.call(null):r.id=requestAnimationFrame(o)})};return r}var iJ=-1;function aJ(e){if(void 0===e&&(e=!1),-1===iJ||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),iJ=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return iJ}var sJ=null;function lJ(e){if(void 0===e&&(e=!1),null===sJ||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?sJ="positive-descending":(t.scrollLeft=1,sJ=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),sJ}return sJ}var uJ=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function cJ(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,Ju(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Ju(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=tJ(function(e,t,n,o,i,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),r._callOnScroll=void 0,r._callOnScroll=tJ(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,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=r._getItemStyleCache(m&&s,m&&l,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h: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=tJ(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,s=t.scrollHeight,l=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(lJ()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-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&&rJ(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=oJ(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}$u(t,e),t.getDerivedStateFromProps=function(e,t){return dJ(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,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=aJ();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=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,m,this._instanceProps,x):m,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(lJ()){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&&rJ(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?uJ:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],E=S[1],R=this._getVerticalRangeToRender(),A=R[0],I=R[1],k=[];if(r>0&&g)for(var P=A;P<=I;P++)for(var M=w;M<=E;M++)k.push(C(t,{columnIndex:M,data:d,isScrolling:v?x:void 0,key:f({columnIndex:M,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,M)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:qn({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},C(u||c||"div",{children:k,ref:l,style:{height:D,pointerEvents:x?"none":void 0,width:T}}))},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],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.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,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},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,s=a.isScrolling,l=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),h=f(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(B),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var dJ=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},pJ=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 s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},fJ=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 s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},hJ=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 s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},mJ=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?gJ(e,t,n,i,0,r):bJ(e,t,n,Math.max(0,i),r)},gJ=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),s=hJ(e,t,a,n).offset;if(s===i)return a;s<i?o=a+1:s>i&&(r=a-1)}return o>0?o-1:0},bJ=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&hJ(e,t,r,n).offset<o;)r+=a,a*=2;return gJ(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},vJ=function(e,t,n,r,o,i,a){var s="column"===e?t.width:t.height,l=hJ(e,t,n,i),u="column"===e?fJ(t,i):pJ(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===r&&(r=o>=d-s&&o<=c+s?"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}},yJ=cJ({getColumnOffset:function(e,t,n){return hJ("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return mJ("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=hJ("column",e,t,r),s=n+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=hJ("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:pJ,getEstimatedTotalWidth:fJ,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return vJ("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return vJ("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return hJ("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return mJ("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=hJ("row",e,t,r),s=n+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=hJ("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}}),xJ=function(e,t){return e};function SJ(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=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=l(r.props,Ju(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Ju(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=tJ(function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})}),r._callOnScroll=void 0,r._callOnScroll=tJ(function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})}),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,c=r._getItemStyleCache(u&&s,u&&l,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"===l,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=tJ(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(lJ()){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&&rJ(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=oJ(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}$u(t,e),t.getDerivedStateFromProps=function(e,t){return wJ(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 s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?aJ():0:l.scrollHeight>l.clientHeight?aJ():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},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(lJ()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&rJ(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?xJ:d,f=e.layout,h=e.outerElementType,m=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,w=this._getRangeToRender(),E=w[0],R=w[1],A=[];if(u>0)for(var I=E;I<=R;I++)A.push(C(t,{data:c,key:p(I,c),index:I,isScrolling:b?y:void 0,style:this._getItemStyle(I)}));var k=r(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:qn({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},C(s||l||"div",{children:A,ref:a,style:{height:x?"100%":k,pointerEvents:y?"none":void 0,width:x?k:"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,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,l=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,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}(B),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var wJ=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},CJ=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=r(l);o[l]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},EJ=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=CJ(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},RJ=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&CJ(e,n,t).offset<r;)n+=i,i*=2;return EJ(e,t,Math.min(n,o-1),Math.floor(n/2),r)},AJ=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 s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},IJ=SJ({getItemOffset:function(e,t,n){return CJ(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:AJ,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=CJ(e,t,o),p=AJ(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=h-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return r>=h&&r<=f?r:r<h?h: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?EJ(e,t,o,0,n):RJ(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,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=CJ(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=CJ(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 kJ(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 PJ=["style"],MJ=["style"];function DJ(e,t){var n=e.style,r=Ln(e,PJ),o=t.style,i=Ln(t,MJ);return!kJ(n,o)&&!kJ(r,i)}const TJ=$g(0),OJ=$g(0),qJ=$g(0),LJ=$g(e=>e(TJ)+e(OJ)),NJ=$g(e=>{const t=e(Zb),n=e(kW),r=t.height-(n?41:0);return{width:t.width,height:r}}),jJ=$g(e=>{const t=e(NJ),n=e(KB),r=e(YB);return{width:t.width-r,height:t.height-n}}),_J=$g(e=>{const t=e(jJ),n=e(LJ),r=e(qJ);return Math.min(t.height-n,r)}),zJ=$g(-1),FJ=hk(e=>$g(t=>t(zJ)===e)),$J=({style:e})=>Yt.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var HJ=w.memo($J,DJ);const BJ=$g(e=>{const t=e(jJ),n=e(HW),r=e(LJ),o=e(qJ)+r,i=e(DX)*n+r;return o<2*t.height?o:i}),VJ=$g(e=>e(BJ)<=e(NJ).height),WJ=()=>{},UJ=e=>{e.preventDefault()};const GJ=({columnIndex:e,rowIndex:t,style:n,data:r})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u,onKeyDown:c,onKeyUp:d,onCellClick:p}=r,f=Qg(FJ(t)),h=eb(zJ),m=Qg(_W),g=Qg(Fb),b=Qg(qb),v=Qg(jb),y=Qg(_G),x=Qg(gb),S=Qg(VJ),w=o[t]?.[e],{handleMouseDown:C,handleMouseOver:E,handleMouseUp:R,cellSelectionState:A}=function(e){const t="object"==typeof e,n=Qg(Lb),r=eb(NG),o=Qg(jG(e));if(YY(e),t&&n){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=GY(UJ,e,r,WJ);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(w),I=((e,t,n,r)=>{const o=M(null),i=n&&(!n.isNumeric||n.isDual),a=n?.isTotalRow??!1,s=L(n=>{const o=n.contentBoxSize.at(0)?.blockSize;o&&i&&r(o,e,t,a)},[a,t,r,e,i]);return CK({ref:o,callback:s}),o})(t,e,w,s),k=i[e]?.isDim?m.dimension.values:m.measure.values,P=UY(i[e].id);if("object"==typeof w){const r=((e,t,n,r,o,i,a)=>{const s=e.isTotalRow&&a("TLV-2303-SUB-TOTALS");let l=ZY(o,i,e);l=s?i.subTotalRow:l,l=XY(l,i,e,t.isDim);const u=e.isNull||s&&t.isDim?l:aV(l,e.qAttrExps,t.qAttrExprInfoIDs);return r!==GH.Selected||s?r!==GH.Disabled||s?n?{...u,...i.grid.hoverColors}:u:{...u,color:n?i.grid.hoverColors?.color:u.color,background:`${AB}, ${n?i.grid.hoverColors?.background:u.background}`}:{...u,...i.selectedColors}})(w,i[e],a&&f,A,k,m,x),o={rowindex:t,columnindex:e},s=n=>{v&&p?.(t,e),C?.(n)},M=c?n=>{c(n,t,e,w)}:void 0;return Yt.jsx("div",{className:`sn-table-cell ${A} ${Ym}`,tabIndex:-1,style:{...n,...r,display:"flex",alignItems:"start",borderColor:m.grid.border,borderTop:"0px",borderBottomWidth:!S&&w.isLastRow?"0px":"1px",borderRightWidth:_B(g,w.isLastColumn,y),borderLeftWidth:zB(g,w.isLastColumn,y),justifyContent:qB(w,g),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:w.align,opacity:P},onMouseDown:s,onMouseUp:R,onMouseOver:E,onMouseEnter:a?()=>{h(t)}:void 0,onMouseLeave:a?()=>{h(-1)}:void 0,onKeyDown:M,onKeyUp:d,title:b?w.representation.text:void 0,...o,children:Yt.jsx(WY,{cellSelectionState:A,hideTickIcon:!!w.isTotalRow,children:Yt.jsx(HY,{forwardRef:m.contentStaticLineCount||1===l?void 0:I,cell:w,style:r,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return Yt.jsx(HJ,{style:{...n,...k,borderColor:m.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:P}})};var KJ=z(GJ,DJ);const YJ=ZR($g(async e=>{const t=e(yb),n=e(Gb),r=e(kX).page,{qDataPages:o}=t.qHyperCube;if(0!==r||0===o.length){const e=r*Math.min(sV,t.qHyperCube.qSize.qcy);if(n&&"getHyperCubeData"in n)return n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),XJ=$g(e=>{const t=e(DX),n=e(jJ),r=e(HW);return Math.min(t,Math.ceil(n.height/r))}),JJ=$g(e=>{const t=e(KW),n=e(jJ);return t.reduce((e,t)=>e.width<n.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}).count}),ZJ=e=>{const t=M(e);return t.current=e,t},QJ=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,eZ=e=>-1===e.qElemNumber||!!e.qIsTotalCell,tZ=(e,t,n,r,o)=>{const i=e[n];if(!i)return!0;for(let e=t;e<t+r;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},nZ=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some(e=>!e[t])},rZ=(e,t,n,r,o,i,a,s)=>{e.forEach(e=>{e.qMatrix.forEach((l,u)=>{const c=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,n,r,o,i,a,s,l,u)=>{const{qSize:c}=a.qHyperCube,d=r.qTop+n,p=o+n,f=e[p]??[],h=t.some(eZ);return t.forEach((e,t)=>{const n=t+r.qLeft;if(f.at(n))return;const{colIdx:o,isDim:m,isLocked:g,bodyTextAlign:b,selectionColIdx:v,qAttrExprInfoIndex:y,representation:x,conditionalColoring:S,qMiniChart:w}=i[n],C=s.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),E=!m&&e.qIsNull,R=m&&uW(e,m),A=E||R?lW(m,e,a,C):e.qText,I=E?eB(A):QH(e),k=QH(e)&&!eB(e.qText??"");f[n]={id:QF(),...e,align:iW(I,b,u),rowIdx:d,colIdx:o,isSelectable:m&&!g&&!h&&!R,isTotalRow:h,pageRowIdx:p,pageColIdx:n,selectionColIdx:v,isLastRow:d===c.qcy-1,isLastColumn:n===c.qcx-1,isNumeric:I,isDual:k,isNull:(!E||!I)&&uW(e,m),representation:YV({cell:e,representationProperties:x,attrExprInfoIndex:y,env:s,conditionalColoring:S,miniChartOnMeasure:w,getText:()=>A,direction:u,enabledFeatures:{[u$.Image]:!0,[u$.Indicator]:!0,[u$.MiniChart]:!0}})},l(f[n],d,n)}),{row:f,pageRowIdx:p}})(n,l,u,e.qArea,c,r,o,i,a,s);n[p]=d})})},oZ=({gridState:e,setEstimatedCellHeight:t})=>{const n=Qg(yb),r=Qg(nv),o=Qg(Gb),i=Qg(mb),a=Qg(Fb),s=Qg(kX),l=Qg(YJ),u=Qg(CW),c=Qg(DX),d=Qg(XJ),p=Qg(JJ),f=M([]),h=L((e,r)=>{const o=Array.isArray(r)?r.slice(0,c):(e=>Array(e).fill(void 0))(c);return rZ(e,s,o,u,n,i,t,a),f.current=o,o},[c,s,u,n,i,t,a]),[m,g]=P(()=>h(l??[]));$m(()=>{g(h(l??[]))},[l,a,c]);const b=((e,t)=>{const n=Qg(bb),r=M(new Set),o=M(new Set),i=M(new Set),a=ZJ(e),s=ZJ(t),l=k(()=>({enqueue:e=>{const t=QJ(e);i.current.has(t)||(r.current.add(e),i.current.add(t),1===r.current.size&&setTimeout(async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),o.current.add(e);try{const t=(e=>{const t=[];return e.forEach(e=>{if(t.length>0){const n=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(n,e)?n.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(n,e)?n.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})}),t})(e),n=await a.current(t);o.current.has(e)&&s.current(n)}catch(t){e.forEach(e=>{i.current.delete(QJ(e))}),n.error({msg:"Failed to fetch pages",payload:t})}finally{o.current.delete(e)}}},75))},clear:()=>{r.current.clear(),o.current.clear(),i.current.clear()}}),[n,a,s]);return l})(e=>o&&"getHyperCubeData"in o?o.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([]),e=>{g(t=>h(e,t))}),v=L((e,t,n,r)=>{for(let o=e;o<e+n;o++)if(nZ(f.current,o,t,r)){const e={qLeft:o,qTop:t,qHeight:r,qWidth:1};b.enqueue(e)}},[b]),y=L((e,t,n,r)=>{for(let o=t;o<t+r;o++){const t=Math.max(0,o-s.page*s.rowsPerPage);if(tZ(f.current,e,t,n,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:n};b.enqueue(t)}}},[b,s]);return O(()=>{if(void 0===l)return;const{qcx:t,qcy:r}=n.qHyperCube.qSize,o=e.current.overscanRowStartIndex,i=e.current.overscanColumnStartIndex,a=o+s.page*s.rowsPerPage,u=t-i,c=s.rowsPerPage-o,f=Math.min(100,u,t,p+5),h=Math.min(100,c,r,d+25);return y(i,a,f,h),()=>{b.clear()}},[l,n,d,p,s,b,y,e,r]),{rowsInPage:m,loadRows:y,loadColumns:v}},iZ=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},aZ=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,sZ=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>{const o=Qg(_W),i=Qg(KW),{estimateLineCount:a}=Lm(o.dimension.values),s=XB(o.dimension.values.fontSize),l=e||t||1===n;return L((e,t,o)=>{if(l||e.representation.type===u$.Image||e.isNumeric&&!e.isDual)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(n,Math.max(1,c));r(d*s,t,o,e.isTotalRow??!1)},[l,i,a,n,s,r])},lZ=({isStaticNbrOfLines:e,minRowHeight:t,state:n,staticRowHeight:r=0})=>{const o=Qg(XV);j(()=>{const i=e?r:((e,t)=>{const n=0===t?0:e/t;return Math.ceil(n)})(n.sumHeight,n.rowHeights.size);o.estimatedRowHeight=Math.max(i,t)},[e,t,n,r,o])},uZ=({isSnapshot:e,gridRef:t})=>{const n=Qg(_W),r=Qg(DX),[o,i]=P(()=>({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})),a=Qg($W),s=Qg(HW),l=Qg(BW),u=!!n.contentStaticLineCount,c=Math.max(8e6/r,s,l)-9,d=c+9,p=Math.max(1,Math.min(n.grid.contentLineClamp,Math.round(c/a))),f=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:n})=>n?t*e+8+1:void 0)({lineClamp:p,lineHeight:a,isStaticNbrOfLines:u});(({gridRef:e,setState:t})=>{const n=Qg(yb),r=Qg(kX),o=Qg(KW),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;$m(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})},[n.qHyperCube.qSize.qcx,n.qHyperCube.qSize.qcy,r.page,i,a]),$m(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,setState:i});const h=(({setState:e,maxCellHeight:t,gridRef:n})=>{const r=Qg(HW),o=Qg(BW);return L((i,a,s,l=!1)=>{$(()=>{e(e=>{const u=l?o:r,c=Math.max(u,i+9),d=Math.min(t,c),p=e.cellHeightsInGrid.get(a)??e.cellHeightsInGrid.set(a,new Map).get(a);if(!aZ(p.get(s),d))return e;const f={...e},h=e.rowHeights.get(a);p.set(s,d);const m=void 0===h||d>=h?d:iZ(p);return f.rowHeights.set(a,m),f.sumHeight=e.sumHeight-(h??0)+m,n.current?.resetAfterIndices({columnIndex:s,rowIndex:a,shouldForceUpdate:!1}),f})})},[e,t,r,o,n])})({maxCellHeight:d,setState:i,gridRef:t}),m=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>L((o,i,a,s)=>{e||t||1===n||r(o,i,a,s)},[e,t,n,r]))({isSnapshot:e,isStaticNbrOfLines:u,lineClamp:p,setCellHeight:h}),g=sZ({isSnapshot:e,isStaticNbrOfLines:u,lineClamp:p,setCellHeight:h}),b=L(e=>u?f??s:o.rowHeights.get(e)??s,[u,s,o.rowHeights,f]);return lZ({isStaticNbrOfLines:u,minRowHeight:s,state:o,staticRowHeight:f}),{setMeasuredCellHeight:m,setEstimatedCellHeight:g,getRowHeight:b,lineClamp:p}},cZ=(e,t)=>{j(()=>()=>{t(0)},[e,t]);const n=L(e=>{const n=e.contentBoxSize.at(0)?.blockSize;void 0!==n&&t(n)},[t]);CK({ref:e,callback:n})};let dZ=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const pZ=({loadRows:e,loadColumns:t,gridState:n})=>{const r=Qg(XV),o=Qg(yb),i=Qg(kX),a=Qg(DX);return L(({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},n,r)=>{let o,i;return o=r>t?dZ.Down:r<t?dZ.Up:dZ.None,i=n>e?dZ.Right:n<e?dZ.Left:dZ.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(n.current,s,u);if(n.current.overscanColumnStartIndex=s,n.current.overscanColumnStopIndex=l,n.current.overscanRowStartIndex=u,n.current.overscanRowStopIndex=c,u>a)return;const b=s,v=u+i.page*i.rowsPerPage,y=l-s+1,x=c-u+1;if(r.visibleLeft=d,r.visibleWidth=p-d+1,r.visibleTop=f+i.page*i.rowsPerPage,r.visibleHeight=h-f+1,r.page=i.page,r.rowsPerPage=i.rowsPerPage,m===dZ.Down){const t=x+25;e(b,v,y,u+t>a?a-u:t)}else if(m===dZ.Up){const t=x+25,n=i.page*i.rowsPerPage,r=Math.max(n,v-25);e(b,r,y,t)}if(g===dZ.Right){const e=o.qHyperCube.qSize.qcx-b,n=y+5,r=Math.min(e,n);t(b,v,r,x)}else if(g===dZ.Left){const e=Math.max(0,b-5),n=Math.min(o.qHyperCube.qSize.qcx,y+5);t(e,v,n,x)}},[n,a,i.page,i.rowsPerPage,r,e,o.qHyperCube.qSize.qcx,t])};const fZ=({columnIndex:e,data:t,rowIndex:n})=>{const r=t.rowsInPage[n]?.[e];return r?.id??`${n}-${e}`},hZ=(e,t)=>{if(!e||!t)return;const n=e.scrollHeight-e.clientHeight,r=Math.round(n*(e=>{const t=e.scrollHeight-e.clientHeight;return t<=0?0:Math.max(0,Math.min(1,e.scrollTop/t))})(t));e.scrollTop!==r&&(e.scrollTop=r)},mZ={overflow:"hidden",willChange:"auto"},gZ=F((e,t)=>{const{handleBodyKeyDown:n,handleBodyKeyUp:r,focusBodyCellOnClick:o}=JX(),i=Qg(CW),a=Qg(jJ),s=eb(qJ),l=Qg(_J),u=Qg(XV),c=Qg(yb),d=Qg(Fb),p=Qg(KW),f=Qg(DX),h=Qg(OX),m=eb(TX),g=M(null),b=M(null),v=M(null),y=M({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),x=M(0),S=!!nV(c)?.content?.hoverEffect,{setMeasuredCellHeight:w,setEstimatedCellHeight:C,getRowHeight:E,lineClamp:R}=uZ({isSnapshot:!!c.snapshotData,gridRef:g}),{rowsInPage:A,loadRows:I,loadColumns:P}=oZ({gridState:y,setEstimatedCellHeight:C}),D=pZ({loadRows:I,loadColumns:P,gridState:y}),T=pY(),q=k(()=>({rowsInPage:A,columns:i,isHoverEnabled:S,lineClamp:R,setMeasuredCellHeight:w,resizeObserverTaskScheduler:T,onKeyDown:n,onKeyUp:r,onCellClick:o}),[A,i,S,R,w,T,n,r,o]);return j(()=>{1===x.current&&g.current?.scrollToItem({rowIndex:f-1,align:"start"})}),function(e){const t=eb(NG),{shouldRefocusRef:n}=Qg($X),r=Qg(Qb),o=Qg(MX);O(()=>{t({type:KH.UpdatePageRows,payload:{pageRows:e}})},[t,e]);const i=L(()=>{n&&(n.current=r.contains(document.activeElement))},[n,r]);fY({updateShouldRefocus:i,tableWrapperRef:{current:o}})}(A),H(t,()=>({interpolatedScrollTo:(e,t)=>{const n=(v.current?.clientHeight??l)-l,r=Math.round(n*e);x.current=e,1===x.current?(g.current?.scrollToItem({rowIndex:f-1,align:"start"}),g.current?.scrollTo({scrollLeft:t})):g.current?.scrollTo({scrollTop:r,scrollLeft:t})}}),[v,l,f]),O(()=>(m(()=>(e,t)=>{g.current?.scrollToItem({rowIndex:e,columnIndex:t,align:"auto"}),hZ(h,b.current)}),()=>{m(null)}),[h,m]),cZ(v,s),Yt.jsx(yJ,{"data-key":"body",ref:g,outerRef:b,innerRef:v,style:mZ,columnCount:i.length,columnWidth:e=>p[e],height:l,rowCount:f,rowHeight:E,estimatedRowHeight:u.estimatedRowHeight,width:a.width,itemData:q,onItemsRendered:D,itemKey:fZ,className:"sn-table-body",direction:d,children:KJ})});var bZ=z(gZ);const vZ=({children:e})=>{const t=Qg(JW),n=Qg(BJ);return Yt.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:n},children:e})},yZ=(e,t)=>{const n=M(null),r=Qg(KW);j(()=>{n.current&&t(n.current.getBoundingClientRect().height+9,e)},[t,n,e,r.length]);const o=L(n=>{const r=n.contentBoxSize.at(0)?.blockSize;r&&t(r+9,e)},[e,t]);return CK({ref:n,callback:o}),n},xZ=Mu("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({interactions:e,hoverBackground:t,background:n,applicableStyle:r,color:o})=>({...r,background:n,color:o,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}})),SZ=({index:e,style:t,data:n})=>{const{columns:r,columResizeHandler:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=Qg(_W),u=Qg(Fb),c=Qg(Tb),d=Qg(_G),p=eb(GB),f=Qg(wW),h=Qg(jb),m=Qg(KW)[e],g=Qg(Ub),b=Qg(YK(e)),v=r[e],{open:y,setOpen:x,handleOpenMenu:S,toggleSortOrder:w}=mX({isInteractionEnabled:h,column:v}),C=Qg(Ib),E=yZ(e,i),R=r.length-1===e,A=C?hK:qK,{ref:I,isDragging:k}=yX(v,e),P=UY(v.id),M=b&&!g.enabled&&h?0:-1,D=a?t=>{a(t,e,S)}:void 0;return Yt.jsxs(xZ,{"data-dragging":k,ref:I,className:`sn-table-cell ${Ym}`,title:c.passive?v.label:void 0,onClick:C?S:w,applicableStyle:{...l.header,...FG(l,f,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:_B(u,R,d),borderLeftWidth:zB(u,R,d),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:v.headTextAlign,boxSizing:"border-box",zIndex:r.length-e,flexDirection:"right"===v.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:P},interactions:c,hoverBackground:v.headerColor?.headerMenuHoverBackground??l.headerMenuHoverBackground,background:C&&y?v.headerColor?.headerMenuActiveBackground??l.headerMenuActiveBackground:v.headerColor?.background??l.header.background,color:v.headerColor?.color??l.header.color,tabIndex:M,onKeyDown:D,onMouseDown:t=>{t.preventDefault(),h&&s?.(e)},"data-col":e,children:[Yt.jsx(A,{forwardRef:E,column:v,isInteractionEnabled:h,open:y,setOpen:x,columnWidth:m}),Yt.jsx(fX,{column:v,isLastColumn:R,onColumnResize:o,setIsAdjustingWidth:p})]})},wZ=e=>{const[t,n]=P(new Map);$m(()=>{n(new Map)},[e.length]);const r=L((e,t)=>{n(n=>aZ(n.get(t),e)?new Map(n).set(t,e):n)},[]);return{rowHeight:k(()=>iZ(t),[t]),setMeasuredCellHeight:r}},CZ=(e,t)=>{H(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},EZ=e=>{const t=Qg(nv),n=Qg(yb),r=Qg(kX),o=Qg(KW);$m(()=>{e.current?.resetAfterIndex(0,!1)},[n,r,e,o,t])},RZ={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},AZ=F((e,t)=>{const{columResizeHandler:n}=e,r=Qg(CW),o=Qg(jJ),i=eb(TJ),a=w.useRef(null),s=M(null),l=Qg(zW),u=Qg(yb),c=Qg(Hb),d=Qg(Fb),p=Qg(KW),{rowHeight:f,setMeasuredCellHeight:h}=wZ(r),m=dX(c,u),{handleHeadKeyDown:g,focusHeadCellOnClick:b}=JX();return CZ(t,a),EZ(a),cZ(s,i),Yt.jsx(IJ,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...RZ,...m?{display:"none"}:void 0},itemCount:r.length,itemSize:e=>p[e],height:Math.max(f+8,l),width:o.width,itemKey:e=>r[e].id,itemData:{columns:r,columResizeHandler:n,setMeasuredCellHeight:h,onKeyDown:g,onCellClick:b},direction:d,children:SZ})});var IZ=z(AZ);const kZ=F((e,t)=>{const{children:n,onScroll:r}=e,o=Qg(Fb),i=Qg(Nb),{width:a,height:s}=Qg(NJ),l=eb(OX),u=L(e=>{l(e),"function"==typeof t?t(e):t&&(t.current=e)},[t,l]);return Yt.jsx("div",{"data-testid":"scrollable-container",ref:u,style:{overflow:i?"auto":"hidden",width:a,height:s},onScroll:r,dir:o,tabIndex:-1,children:n})}),PZ=({children:e})=>{const t=Qg(Fb),n=Qg(jJ);return Yt.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==t?"0px":void 0,right:"rtl"===t?"0px":void 0,width:n.width,height:n.height},children:e})},MZ=({index:e,style:t,data:n})=>{const{columns:r,totals:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=Qg(_W),u=Qg(yb),c=Qg(Fb),d=Qg(qb),p=Qg(jb),f=Qg(_G),h=Qg(VJ),m=yZ(e,i),g=r[e].totalInfo,{totalsTextAlign:b,isTotalNumeric:v}=r[e],y=u.qHyperCube.qSize.qcx-1===e,x=UY(r[e].id),S=a?t=>{a(t,e)}:void 0;return Yt.jsx("div",{className:`sn-table-cell ${Ym}`,tabIndex:-1,title:d?g:void 0,"data-col":e,onKeyDown:S,onMouseDown:t=>{t.preventDefault(),p&&s?.(e)},style:{...t,...l.totalRow,...FG(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:_B(c,y,f),borderLeftWidth:zB(c,y,f),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:h&&o.atBottom||o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:b,textAlign:b,boxSizing:"border-box",cursor:"default",opacity:x},children:Yt.jsx(fK,{forwardRef:v?void 0:m,isNumeric:v,children:g})})},DZ=F((e,t)=>{const{totals:n}=e,r=Qg(CW),o=Qg(jJ),i=eb(OJ),a=M(null),s=M(null),l=Qg(FW),u=Qg(Fb),c=Qg(yb),d=Qg(KW),{rowHeight:p,setMeasuredCellHeight:f}=wZ(r),{handleTotalsKeyDown:h,focusTotalsCellOnClick:m}=JX();return CZ(t,a),EZ(a),cZ(s,i),Yt.jsx(IJ,{className:"sn-table-totals-row",ref:a,outerRef:s,layout:"horizontal",style:RZ,itemCount:c.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l),width:o.width,itemData:{columns:r,totals:n,setMeasuredCellHeight:f,onKeyDown:h,onCellClick:m},direction:u,children:MZ})});var TZ=z(DZ);const OZ=(e,t,n)=>{const r=Qg(Fb),o=Qg(XV);return L(i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,u=((e,t)=>{const{scrollWidth:n,clientWidth:r,scrollLeft:o}=e,i=n-r;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,r),c=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=c,o.scrollLeft=u,n.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)},[o,n,e,t,r])};var qZ=z(()=>{const e=Qg(wW),t=M(null),n=M(null),r=M(null),o=M(null),i=OZ(n,r,o),a=L(()=>{t.current&&(t.current.scrollTop=0)},[t]);XK(),(e=>{const t=Qg(EW),n=Qg(kX),r=Qg(nv),o=Qg(DX);O(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),O(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[n,o,r,e])})(t),iY(t);const s=Yt.jsx(TZ,{ref:r,totals:e},"totals");return Yt.jsxs(WK,{children:[Yt.jsx(kZ,{ref:t,onScroll:i,children:Yt.jsxs(vZ,{children:[Yt.jsxs(PZ,{children:[Yt.jsx(IZ,{ref:n,columResizeHandler:a}),e.atTop?s:null,Yt.jsx(bZ,{ref:o}),e.atBottom?s:null]}),Yt.jsx(zG,{})]})}),Yt.jsx(_K,{isPagination:!1})]})});const LZ=()=>{const e=Qg(yb),t=Qg(Zb),n=Qg(Tb),{paginationNeeded:r,totalRowCount:o,totalColumnCount:i,totalPages:a}=Qg(SW),s=Qg(nv),l=Qg(rv),u=Qg(Ub),[c,d]=tb(kX),p=M(null),f=M(!1),h=eb(PX),m=eb(MX);O(()=>{h(f)},[h]);const g=w.useCallback(e=>{p.current=e,m(e)},[m]),{handleWrapperKeyDown:b}=JX();return(()=>{const e=Qg(Qb),{keyboard:t}=Qg(FX),n=Qg(KK),r=Qg(wW),o=Qg(DX),{scrollToCell:i}=Qg(zX),{shouldRefocusRef:a}=Qg($X),s=M({focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}),l=M(null),u=M(null);j(()=>{s.current={focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}},[n,r,o,i,e]),O(()=>{let e=!1;const{focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:c}=s.current;if("function"==typeof c.querySelector){if(t.active){const[t,a]=n,d=r.atTop?2:1;if(t>=d&&t<d+o){null!==u.current&&(cancelAnimationFrame(u.current),u.current=null),i?.(t-d,a);const n=t=>{if(e)return;const r=VX(s.current.rootElement,s.current.focusedCellCoord,s.current.totalsPosition,s.current.rowCount);r&&document.activeElement!==r&&HG(r),r&&document.activeElement===r||t>0&&(l.current=requestAnimationFrame(()=>{n(t-1)}))};l.current=requestAnimationFrame(()=>{e||n(5)})}else{const e=VX(c,n,r,o);e&&HG(e)}}else null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),u.current=requestAnimationFrame(()=>{if(e)return;const t=s.current;if(a?.current)return;if(t.rootElement.contains(document.activeElement))return;const n=VX(t.rootElement,t.focusedCellCoord,t.totalsPosition,t.rowCount);n?.blur(),YX(t.rootElement)});return()=>{e=!0,null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),null!==u.current&&(cancelAnimationFrame(u.current),u.current=null)}}},[t.active,e,a])})(),GK(p,f),Yt.jsxs(uK,{ref:g,"data-testid":"sn-table",onKeyDown:b,children:[Yt.jsx(uY,{}),Yt.jsx(qZ,{}),Yt.jsx(CG,{paginationNeeded:r,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:u,translator:l,theme:s,interactions:n,rect:t,layout:e})]})};var NZ=z(LZ);const jZ=e=>{const t=e.get(Gb),n=e.get(Vb),r=e.get(vb),o=e.get(Fb);a(()=>{r&&t&&(n?function(e){const t=e.get(Fb),n=e.get(tv),r=QW(t);n.render(Yt.jsx(yi,{stylisPlugins:"rtl"===t?[BH]:void 0,children:Yt.jsx(Tu,{theme:r,children:Yt.jsx(Gg,{store:e,children:Yt.jsx(ZW,{children:Yt.jsx(CX,{})})})})}))}(e):function(e){const t=e.get(Fb),n=e.get(tv),r=QW(t);n.render(Yt.jsx(w.StrictMode,{children:Yt.jsx(Tu,{theme:r,children:Yt.jsx(Gg,{store:e,children:Yt.jsx(ZW,{children:Yt.jsx(NZ,{})})})})}))}(e))},[r,n,e,t,o])};function _Z(e,t){const n=e.getElementsByClassName("sn-table-container")[0];if(!n)return{};const r=n.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:r.y+i.height+(t.atTop?s.height:0),bottom:r.y+r.height-(t.atBottom?s.height:0)},c=((e,t)=>{if(!e)return-1;for(let n=0;n<e.length;n++)if(e[n].getBoundingClientRect().bottom>t.top)return n;return-1})(l,u),d=((e,t)=>{if(!e)return-1;for(let n=e.length-1;n>-1;n--){const r=e[n].getBoundingClientRect();if(t.bottom>r.top)return n}return-1})(l,u),p=((e,t,n)=>{if(!e||0===e.length||n<0)return 0;const r=e[n].getBoundingClientRect();return Math.max(t.top-r.top,0)})(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const zZ=(e,t)=>{if(t)for(let n=0;n<t.length;n++){const r=t[n].getAttribute("rowindex");if(r&&parseInt(r,10)===e)return t[n]}},FZ=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const $Z=(e,t,n,r,o)=>{if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||cW.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},HZ=(e,t,n,r,o)=>{if(r&&!r.isMultiPage)return r;const i=tW(e,r);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=_Z(n,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:$Z(a,o,e,t,r),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}}const{visibleRowStartIndex:a=-1,visibleRowEndIndex:s=-1}=function(e,t){const n=e.querySelector(".sn-table-body"),r=n?.getBoundingClientRect(),o=n?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!r)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=zZ(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=r.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+c,visibleRowEndIndex:p+c};const g=r.y+r.height,b=(FZ(h,m,g)?d:d+1)+c;let v=p+c;const y=zZ(p,o),x=y?.getBoundingClientRect();return y&&x&&(FZ(x,m,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(n,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:$Z(s,a,e,t,r),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},BZ=({store:e})=>{const t=e.get(yb),n=e.get(Gb),r=e.get(Qb),o=e.get(Jb),i=e.get(Hb),a=e.get(Vb);c(async s=>{const l=s;if(!l.snapshotData||!n||l.snapshotData.content)return l;if("getHyperCubeData"in n){const s=e.get(XV),{rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b}=HZ(t,s,r,i,a);l.qHyperCube.qDataPages=await n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:h,qWidth:t.qHyperCube.qSize.qcx,qHeight:m}]),l.snapshotData.content={rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b,size:{width:o.width,height:o.height},estimatedRowHeight:s.estimatedRowHeight}}return l}),d(()=>({getViewState:()=>HZ(t,e.get(XV),r,i,a)}),[t,e,r,a])},VZ={version:JSON.stringify("6.56.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[],accessibleHeader:!1};var WZ=e=>({properties:{initial:VZ},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:t=>Ev({...t,env:e}),exportProperties:vv,exploration:BF(e)});const UZ=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),GZ=e=>e.getStyle("object","straightTableV2","backgroundColor")}}});
|